From rob.page@digicool.com Mon Mar 1 00:21:43 1999 From: rob.page@digicool.com (Rob Page) Date: Sun, 28 Feb 1999 19:21:43 -0500 Subject: [Zope] Z SQL Methods Message-ID: <613145F79272D211914B0020AFF640190690E5@GANDALF> > Search table foo for matches with a "like" select, user > clicks on an item > and a new query is run using params from the clicked link. > The next page > would be the result of the multitable query. > > I've not a clue how I should format the sytax for first > result returned > using DTML. Before I start into it has anyone else done this yet? If I understand you correctly, you might try something like: Step1QueryForm --------------
sqlFoo -------- SELECT record_id, first_name, last_name, fav_color_code, postal_code FROM foo WHERE memo_field LIKE Step2QueryForm -----------------

Click on one of the results:

--Rob Page -- Rob Page Phone: +1 540 371 6909 Digital Creations Fax: +1 540 371 1201 From garys@magna.com.au Mon Mar 1 06:04:10 1999 From: garys@magna.com.au (Gary Stephenson) Date: Mon, 01 Mar 1999 17:04:10 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> Message-ID: <36DA2DDA.138FF09A@magna.com.au> Amos Latteier wrote: > > Correct. This is what's supposed to be there. Does the FAQ Tool not work > when you install it? Are you using Zope 1.10.2? > > -Amos My Zope Zen seem to have gone negative (started at zero - and just got worse :( ) but HOW do you install it. I could find no mention of any "lever"s in the ZMG.pdf, and I have tried as many ways as I could think of to get my Zope (1.10.2 on ZAP) to read/import the FAQ product, but no cigar - not even close! Where does one put which files, and what procedure does one go through to invoke said "Lever" functionality. Sorry about this, but surely I can't be the *only* one that is totally lost. (Come to think of it, maybe I can!) -Hoping-for-a-positive-Zope-Zen-before-the-millenium-ly yours: (I just love those signoff thingies - one day I'll even think of a good one myself!) - gary From amos@aracnet.com Mon Mar 1 08:32:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 00:32:35 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <4.1.19990228202918.00aca300@mail.atmm.nl> References: <3.0.5.32.19990227203949.01188af0@mail.aracnet.com> <003d01be62ac$c17f1260$fa01a8c0@rogue.easystreet.com> Message-ID: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> At 08:33 PM 2/28/99 +0100, Martijn Pieters wrote: >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at >home, running Win98, and I checked the source of the Product >initialisation. When I twiddle with it a bit, swicth off the try/except >errorhandling, I discovered that it is the product.dat file. Here is the >traceback: ... >It looks like the Lever isn't platform independent. It certainly looks like you are having a problem, but since I developed to FAQ Tool under win32 and it works fine for me under Linux, I don't agree with you assessment of the problem. Would you please file a bug report in the collector including this traceback. This is getting deeper than I can easily troubleshoot. Thanks. -Amos From chsrinfo@guetali.fr Mon Mar 1 09:44:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 13:44:54 +0400 Subject: [Zope] acquisition from parent within standard_html_header Message-ID: <010201be63c8$48369be0$147800a0@pc-pi0> Hello, I want to *add* content to the default standard_html_header in a subfolder that we call, say, SF. The standard_html_header in SF reads: But since an object acquire from itself, this did not work (infinite traceback, obviously because the stack is filled with recursive calls) So I wrote: And it works for object accessed within SF. But when I create sub-folder *under* SF, say SSF, I end up with an error. How could i write this? Regards, Jephte CLAIN Service Informatique CHSR From mj@atmm.nl Mon Mar 1 09:47:39 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 10:47:39 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> Message-ID: <4.1.19990301104630.00a604d0@lisp.atmm.nl> At 22:34 27/02/99 , Amos Latteier wrote: >Hi Everyone: > >As part of writing an article on Zope for WebReview, I've put together an >example FAQ Tool for Zope. If you've seen Guido's FAQ Wizard then you know >what the FAQ Tool is about. I assume this means Zope will also appear in the Application Server list of WebReview? (http://appservers.webreview.com). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:06:41 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:06:41 -0000 (GMT) Subject: [Zope] hiding tracebacks, and catching exceptions In-Reply-To: <613145F79272D211914B0020AFF6401907BA8F@GANDALF> Message-ID: On 26-Feb-99 Paul Everitt wrote: > > Julian wrote: >> On 25-Feb-99 Paul Everitt wrote: >> > >> > >> > >> >

This page referenced a bad variable.

>> > >> >> If I want to do this at the moment, I'm going to have to use >> an "external >> method"? > > The above would require writing a DTML tag. I meant, doing the equivalent (catching exceptions) not implementing the same syntax. --- Julian Morrison Programmer (Zereau Ltd) From mj@atmm.nl Mon Mar 1 10:11:27 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:11:27 +0100 Subject: [Zope] acquisition from parent within standard_html_header In-Reply-To: <010201be63c8$48369be0$147800a0@pc-pi0> Message-ID: <4.1.19990301110950.00a5e830@lisp.atmm.nl> At 10:44 01/03/99 , Service Informatique CHSR wrote: >Hello, > >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? > I got it working using the following code: This only works when this code is in a sub-Folder, and the standard_html_header can be found in the root folder. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:16:18 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:16:18 -0000 (GMT) Subject: [Zope] External / Internal Methods In-Reply-To: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: On 26-Feb-99 Michael Bernstein wrote: > "Christopher G. Petrilli" wrote: >> >> I vaguely recall this being discussed in the past, but I can't find it >> in my archives... >> >> Has anyone tried to make a comparable thing to an "External Method" but >> that is contained in the database itself? > > I believe that this was rejected by DC because of security issues. > Letting people store and run Python code directly in the database is > essentially the same as giving someone complete access to the system. Does python have anything equivalent to Perl's taint mode? Because if it does then this could be used. That and restricting allowable APIs from internal methods - again, if this is possible. --- Julian Morrison Programmer (Zereau Ltd) From chsrinfo@guetali.fr Mon Mar 1 10:38:49 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 14:38:49 +0400 Subject: [Zope] Re: acquisition from parent within standard_html_header Message-ID: <011f01be63cf$d2d977c0$147800a0@pc-pi0> Hello, Sorry for the waste of bandwith. I found the problem. But the story is interresting enough to be shared. See at the end of the message. >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? Well, I found that standard_html_header were called several times, and that's what caused the error. Let SF/standard_html_header be: --------8<-------- Hello! --------8<-------- Then, when I access http://mysite/SF, I get: --------8<-------- [pretty standard_html_header] Hello! Hello! This is the index_html document in SF. --------8<-------- Why is Hello! printed twice??? From SSF, I get Hello! printed 3 times... Regards, CLAIN Jephte Service Informatique CHSR. From chalaouxf@synbio.tpgnet.net Mon Mar 1 10:22:37 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 1 Mar 1999 11:22:37 +0100 Subject: [Zope] Find something in Zope mailing list Message-ID: <19990301104352489.AAB134@[195.10.9.163]> Hi, It becomes difficult to find something in Zope mailing list. Is there a find tool to look inside message aera? FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From mj@atmm.nl Mon Mar 1 10:43:12 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:43:12 +0100 Subject: [Zope] Find something in Zope mailing list In-Reply-To: <19990301104352489.AAB134@[195.10.9.163]> Message-ID: <4.1.19990301114206.00a7dd60@lisp.atmm.nl> At 11:22 01/03/99 , FR Chalaoux wrote: >Hi, > >It becomes difficult to find something in Zope mailing list. >Is there a find tool to look inside message aera? > >FR > EGroups archives the mailinglist. At http://www.egroups.com/lists/zope you can find a search interface, which quite often actually works. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Mon Mar 1 11:49:43 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 06:49:43 -0500 Subject: [Zope] Incoming mail, scheduling Message-ID: <613145F79272D211914B0020AFF6401907BAAA@GANDALF> Eric wrote: > Hmmmm. I'd prefer it if users could add tasks without > bothering me, but not > all of them can cope with cron. What's the stuff in the > lib/python/Scheduler directory? Unfortunately the word "comatose" springs to mind. :^( We need to get our concurrency story in better shape to allow multiple things happening simultaneously. --Paul From raver@box.dust.za.net Mon Mar 1 12:22:34 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 13:22:34 +0100 Subject: [Zope] Zope and Apache - again Message-ID: <19990301132234.A682@RaVER.duck.org> Hi all! I know the question has been up to debate earlier on the list, but still... I can't get Apache to send authorization headers on to Zope - even tough I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite and to let apache authenticate /cgi-bin/Zope/). I also grabbed the latest Zap release, but that one din't work (broken?). Also had a look at the zap.conf file and tried using some in my httpd.conf file, but I still had no luck. Now - here is my current config: Linux 2.0.35 Python 1.5.1 Zope 1.10.2 Apache 1.3.4 Something there that doesn't play well together? If not - what is wrong?? Appreciate all the help I can get! Sture Lygren From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 12:28:49 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 12:28:49 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> This may sound like a bit of an obvious suggestion, but it caught me out. Check the Directory directive for /cgi-bin and make sure that the ExecCGI option is set. It should look something like this: AllowOverride none Options ExecCGi Order allow,deny Allow from all Apache 1.3.4 by default doesn't have the ExecCGI option set. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 12:22 PM Subject: [Zope] Zope and Apache - again >Hi all! > >I know the question has been up to debate earlier on the list, but still... > >I can't get Apache to send authorization headers on to Zope - even tough >I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite >and to let apache authenticate /cgi-bin/Zope/). I also grabbed the >latest Zap release, but that one din't work (broken?). Also had a look at >the zap.conf file and tried using some in my httpd.conf file, but I still >had no luck. > >Now - here is my current config: > >Linux 2.0.35 >Python 1.5.1 >Zope 1.10.2 >Apache 1.3.4 > >Something there that doesn't play well together? > >If not - what is wrong?? > >Appreciate all the help I can get! > >Sture Lygren > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From bkc@murkworks.com Mon Mar 1 12:21:11 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 08:21:11 -0400 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> References: <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <199903011315.IAA25687@anvil.murkworks.com> On 1 Mar 99, at 0:32, Amos Latteier wrote: > >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this > >at home, running Win98, and I checked the source of the Product > >initialisation. When I twiddle with it a bit, swicth off the try/except > >errorhandling, I discovered that it is the product.dat file. Here is the > >traceback: > ... I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down. I'm running 1.10.2 on NT with ZServer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From mj@atmm.nl Mon Mar 1 14:08:20 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 15:08:20 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <199903011315.IAA25687@anvil.murkworks.com> References: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <4.1.19990301145717.00a06d60@lisp.atmm.nl> At 13:21 01/03/99 , Brad Clements wrote: >I don't get a traceback because I didn't "fiddle", the FAQ item shows up >in the control panel, but is not in the Add drop-down. > >I'm running 1.10.2 on NT with ZServer. The 'fiddling' involves disbling the exception handling of the product initialisation. Normally, a 'Levered' product, that has been distributed, has a product.dat file. This file contains the compressed pickled reprensentation of the product, which basicly consists of other Zope objects, with a Principia Factory. When Zope can't uncompress and depickle the product.dat file, you only get to see that the Product is installed, but it doesn't contain anything (which a Levered Product actually should), and nothing else happens or can happen. If you want to know more on how to use the 'Lever', read up at http://www.zope.org/Documentation/Guides/ZMG/ZMG-HTML/ZMG.html#pgfId-986684 (Zope Manager's Guide, Creating Zoipe Products). When you disable the exception handling in initializeProduct in Product.py, and restart Zope, it will exit with the traceback I reported. I have reported this to DC with the Collector, but I used Win98. You are using WinNT, which is interesting.. Something goes wrong with decompressing the product.dat file on win32 platforms (Amos says he tested it succesfully on Linux). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 14:14:22 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 14:14:22 -0000 (GMT) Subject: [Zope] inclusions from external methods Message-ID: What is the equivalent of from an external method? --- Julian Morrison Programmer (Zereau Ltd) From petrilli@amber.org Mon Mar 1 14:50:12 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 09:50:12 -0500 Subject: [Zope] External / Internal Methods In-Reply-To: ; from julian@zereau.net on Mon, Mar 01, 1999 at 10:16:18AM -0000 References: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: <19990301095012.53908@amber.org> On Mon, Mar 01, 1999 at 10:16:18AM -0000, julian@zereau.net wrote: > > On 26-Feb-99 Michael Bernstein wrote: > > "Christopher G. Petrilli" wrote: > >> > >> I vaguely recall this being discussed in the past, but I can't find it > >> in my archives... > >> > >> Has anyone tried to make a comparable thing to an "External Method" but > >> that is contained in the database itself? > > > > I believe that this was rejected by DC because of security issues. > > Letting people store and run Python code directly in the database is > > essentially the same as giving someone complete access to the system. > > Does python have anything equivalent to Perl's taint mode? Because if it does > then this could be used. That and restricting allowable APIs from internal > methods - again, if this is possible. > I don't want to get into a language war, but as someone who lives and breathes security, taint mode is a joke. Python's rexec module would be great (as would Bastion), but this is going to require a much higher level of ZopeZen to implement than I currently have. Yes I know my proposal was wrought with huge security problems, but regardless it is valuable to a some people in the near term (such as those of us on the STarship). BTW, requiring write access to the file system is only trivially more secure. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Mon Mar 1 15:54:04 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 16:54:04 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk>; from Phil Harris on Mon, Mar 01, 1999 at 12:28:49PM -0000 References: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> Message-ID: <19990301165404.A981@RaVER.duck.org> On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: > This may sound like a bit of an obvious suggestion, but it caught me out. > > Check the Directory directive for /cgi-bin and make sure that > the ExecCGI option is set. > > It should look something like this: > > > AllowOverride none > Options ExecCGi > Order allow,deny > Allow from all > > > Apache 1.3.4 by default doesn't have the ExecCGI option set. > > HTH > > Phil > ----- Original Message ----- > From: > To: > Sent: Monday, March 01, 1999 12:22 PM > Subject: [Zope] Zope and Apache - again > > Unfortunately the ExecCGI option didn't help much. Thanks anyways. I'm still stuck at the point where I get 'Authorization failed'. I've checked and double checked my Zope/access file and I use correct username and passwd. The filepermissions should also be set correct (according to the instructions given in the INSTALL.txt file). Problem is, as far as I can tell, connected to the way the rewrite module does the rewrite.... Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the authorization header actually works? If it works - is there someone that can say exactly how apache should be configured and compiled to get it working (best of all also put in a working httpd.conf also)? And again.....Appreciate all teh help I can get! From Paul@digicool.com Mon Mar 1 16:03:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 11:03:24 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> > If it works - is there someone that can say exactly how > apache should be > configured and compiled to get it working (best of all also > put in a working > httpd.conf also)? We'd prefer that you start with the Zap distribution, as it removes a whole bunch of variables. Can you tell us what was the error with using Zap? --Paul From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 16:01:14 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 16:01:14 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <00cc01be63fc$bbf4e5d0$5c773fc1@ml.uwcm.ac.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Well the WEBSERVER.txt instructions work for me. Find attached a working httpd.conf. Also attahced is a module listing from my 'httpd'. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 3:54 PM Subject: Re: [Zope] Zope and Apache - again >On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: >> This may sound like a bit of an obvious suggestion, but it caught me out. >> >> Check the Directory directive for /cgi-bin and make sure that >> the ExecCGI option is set. >> >> It should look something like this: >> >> >> AllowOverride none >> Options ExecCGi >> Order allow,deny >> Allow from all >> >> >> Apache 1.3.4 by default doesn't have the ExecCGI option set. >> >> HTH >> >> Phil >> ----- Original Message ----- >> From: >> To: >> Sent: Monday, March 01, 1999 12:22 PM >> Subject: [Zope] Zope and Apache - again >> >> > >Unfortunately the ExecCGI option didn't help much. Thanks anyways. > >I'm still stuck at the >point where I get 'Authorization failed'. I've checked and double checked my >Zope/access file and I use correct username and passwd. The filepermissions >should also be set correct (according to the instructions given in the >INSTALL.txt file). Problem is, as far as I can tell, connected to the way >the rewrite module does the rewrite.... > >Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the >authorization header actually works? > >If it works - is there someone that can say exactly how apache should be >configured and compiled to get it working (best of all also put in a working >httpd.conf also)? > >And again.....Appreciate all teh help I can get! > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.list" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.list" Compiled-in modules:=0A= http_core.c=0A= mod_mmap_static.c=0A= mod_env.c=0A= mod_log_config.c=0A= mod_log_agent.c=0A= mod_log_referer.c=0A= mod_mime_magic.c=0A= mod_mime.c=0A= mod_negotiation.c=0A= mod_status.c=0A= mod_info.c=0A= mod_include.c=0A= mod_autoindex.c=0A= mod_dir.c=0A= mod_cgi.c=0A= mod_asis.c=0A= mod_imap.c=0A= mod_actions.c=0A= mod_speling.c=0A= mod_userdir.c=0A= mod_proxy.c=0A= mod_alias.c=0A= mod_rewrite.c=0A= mod_access.c=0A= mod_auth.c=0A= mod_auth_anon.c=0A= mod_auth_dbm.c=0A= mod_auth_db.c=0A= mod_digest.c=0A= mod_cern_meta.c=0A= mod_expires.c=0A= mod_headers.c=0A= mod_usertrack.c=0A= mod_example.c=0A= mod_unique_id.c=0A= mod_so.c=0A= mod_setenvif.c=0A= mod_php3.c=0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.conf" ##=0A= ## httpd.conf -- Apache HTTP server configuration file=0A= ##=0A= =0A= #=0A= # Based upon the NCSA server configuration files originally by Rob = McCool.=0A= #=0A= # This is the main Apache server configuration file. It contains the=0A= # configuration directives that give the server its instructions.=0A= # See for detailed information about=0A= # the directives.=0A= #=0A= # Do NOT simply read the instructions in here without understanding=0A= # what they do. They're here only as hints or reminders. If you are = unsure=0A= # consult the online docs. You have been warned. =0A= #=0A= # After this file is processed, the server will look for and process=0A= # /www/conf/srm.conf and then /www/conf/access.conf=0A= # unless you have overridden these with ResourceConfig and/or=0A= # AccessConfig directives here.=0A= #=0A= # The configuration directives are grouped into three basic sections:=0A= # 1. Directives that control the operation of the Apache server process = as a=0A= # whole (the 'global environment').=0A= # 2. Directives that define the parameters of the 'main' or 'default' = server,=0A= # which responds to requests that aren't handled by a virtual host.=0A= # These directives also provide default values for the settings=0A= # of all virtual hosts.=0A= # 3. Settings for virtual hosts, which allow Web requests to be sent to=0A= # different IP addresses or hostnames and have them handled by the=0A= # same Apache server process.=0A= #=0A= # Configuration and logfile names: If the filenames you specify for many=0A= # of the server's control files begin with "/" (or "drive:/" for Win32), = the=0A= # server will use that explicit path. If the filenames do *not* begin=0A= # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"=0A= # with ServerRoot set to "/usr/local/apache" will be interpreted by the=0A= # server as "/usr/local/apache/logs/foo.log".=0A= #=0A= =0A= ### Section 1: Global Environment=0A= #=0A= # The directives in this section affect the overall operation of Apache,=0A= # such as the number of concurrent requests it can handle or where it=0A= # can find its configuration files.=0A= #=0A= =0A= #=0A= # ServerType is either inetd, or standalone. Inetd mode is only = supported on=0A= # Unix platforms.=0A= #=0A= ServerType standalone=0A= =0A= #=0A= # ServerRoot: The top of the directory tree under which the server's=0A= # configuration, error, and log files are kept.=0A= #=0A= # NOTE! If you intend to place this on an NFS (or otherwise network)=0A= # mounted filesystem then please read the LockFile documentation=0A= # (available at );=0A= # you will save yourself a lot of trouble.=0A= #=0A= # Do NOT add a slash at the end of the directory path.=0A= #=0A= ServerRoot "/www"=0A= =0A= #=0A= # The LockFile directive sets the path to the lockfile used when Apache=0A= # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or=0A= # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at=0A= # its default value. The main reason for changing it is if the logs=0A= # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL=0A= # DISK. The PID of the main server process is automatically appended to=0A= # the filename. =0A= #=0A= #LockFile /www/logs/httpd.lock=0A= =0A= #=0A= # PidFile: The file in which the server should record its process=0A= # identification number when it starts.=0A= #=0A= PidFile /www/logs/httpd.pid=0A= =0A= #=0A= # ScoreBoardFile: File used to store internal server process information.=0A= # Not all architectures require this. But if yours does (you'll know = because=0A= # this file will be created when you run Apache) then you *must* ensure = that=0A= # no two invocations of Apache share the same scoreboard file.=0A= #=0A= ScoreBoardFile /www/logs/httpd.scoreboard=0A= =0A= #=0A= # In the standard configuration, the server will process httpd.conf,=0A= # srm.conf, and access.conf in that order. The latter two files are=0A= # now distributed empty, as it is recommended that all directives=0A= # be kept in a single file for simplicity. The commented-out values=0A= # below are the built-in defaults. You can have the server ignore=0A= # these files altogether by using "/dev/null" (for Unix) or=0A= # "nul" (for Win32) for the arguments to the directives.=0A= #=0A= #ResourceConfig conf/srm.conf=0A= #AccessConfig conf/access.conf=0A= =0A= #=0A= # Timeout: The number of seconds before receives and sends time out.=0A= #=0A= Timeout 300=0A= =0A= #=0A= # KeepAlive: Whether or not to allow persistent connections (more than=0A= # one request per connection). Set to "Off" to deactivate.=0A= #=0A= KeepAlive On=0A= =0A= #=0A= # MaxKeepAliveRequests: The maximum number of requests to allow=0A= # during a persistent connection. Set to 0 to allow an unlimited amount.=0A= # We recommend you leave this number high, for maximum performance.=0A= #=0A= MaxKeepAliveRequests 100=0A= =0A= #=0A= # KeepAliveTimeout: Number of seconds to wait for the next request from = the=0A= # same client on the same connection.=0A= #=0A= KeepAliveTimeout 15=0A= =0A= #=0A= # Server-pool size regulation. Rather than making you guess how many=0A= # server processes you need, Apache dynamically adapts to the load it=0A= # sees --- that is, it tries to maintain enough server processes to=0A= # handle the current load, plus a few spare servers to handle transient=0A= # load spikes (e.g., multiple simultaneous requests from a single=0A= # Netscape browser).=0A= #=0A= # It does this by periodically checking how many servers are waiting=0A= # for a request. If there are fewer than MinSpareServers, it creates=0A= # a new spare. If there are more than MaxSpareServers, some of the=0A= # spares die off. The default values in httpd.conf-dist are probably OK=0A= # for most sites.=0A= #=0A= MinSpareServers 5=0A= MaxSpareServers 10=0A= =0A= #=0A= # Number of servers to start initially --- should be a reasonable = ballpark=0A= # figure.=0A= #=0A= StartServers 5=0A= =0A= #=0A= # Limit on total number of servers running, i.e., limit on the number=0A= # of clients who can simultaneously connect --- if this limit is ever=0A= # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.=0A= # It is intended mainly as a brake to keep a runaway server from taking=0A= # the system with it as it spirals down...=0A= #=0A= MaxClients 150=0A= =0A= #=0A= # MaxRequestsPerChild: the number of requests each child process is=0A= # allowed to process before the child dies. The child will exit so=0A= # as to avoid problems after prolonged use when Apache (and maybe the=0A= # libraries it uses) leak memory or other resources. On most systems, = this=0A= # isn't really needed, but a few (such as Solaris) do have notable leaks=0A= # in the libraries.=0A= #=0A= MaxRequestsPerChild 30=0A= =0A= #=0A= # Listen: Allows you to bind Apache to specific IP addresses and/or=0A= # ports, in addition to the default. See also the =0A= # directive.=0A= #=0A= #Listen 3000=0A= #Listen 12.34.56.78:80=0A= =0A= #=0A= # BindAddress: You can support virtual hosts with this option. This = directive=0A= # is used to tell the server which IP address to listen to. It can either=0A= # contain "*", an IP address, or a fully qualified Internet domain name.=0A= # See also the and Listen directives.=0A= #=0A= #BindAddress *=0A= =0A= #=0A= # Dynamic Shared Object (DSO) Support=0A= #=0A= # To be able to use the functionality of a module which was built as a = DSO you=0A= # have to place corresponding `LoadModule' lines at this location so the=0A= # directives contained in it are actually available _before_ they are = used.=0A= # Please read the file README.DSO in the Apache 1.3 distribution for more=0A= # details about the DSO mechanism and run `httpd -l' for the list of = already=0A= # built-in (statically linked and thus always available) modules in your = httpd=0A= # binary.=0A= #=0A= # Note: The order is which modules are loaded is important. Don't change=0A= # the order below without expert advice.=0A= #=0A= # Example:=0A= # LoadModule foo_module libexec/mod_foo.so=0A= =0A= #=0A= # ExtendedStatus controls whether Apache will generate "full" status=0A= # information (ExtendedStatus On) or just basic information = (ExtendedStatus=0A= # Off) when the "server-status" handler is called. The default is Off.=0A= #=0A= #ExtendedStatus On=0A= =0A= ### Section 2: 'Main' server configuration=0A= #=0A= # The directives in this section set up the values used by the 'main'=0A= # server, which responds to any requests that aren't handled by a=0A= # definition. These values also provide defaults for=0A= # any containers you may define later in the file.=0A= #=0A= # All of these directives may appear inside containers,=0A= # in which case these default settings will be overridden for the=0A= # virtual host being defined.=0A= #=0A= =0A= #=0A= # If your ServerType directive (set earlier in the 'Global Environment'=0A= # section) is set to "inetd", the next few directives don't have any=0A= # effect since their settings are defined by the inetd configuration.=0A= # Skip ahead to the ServerAdmin directive.=0A= #=0A= =0A= #=0A= # Port: The port to which the standalone server listens. For=0A= # ports < 1023, you will need httpd to be run as root initially.=0A= #=0A= Port 80=0A= =0A= #=0A= # If you wish httpd to run as a different user or group, you must run=0A= # httpd as root initially and it will switch. =0A= #=0A= # User/Group: The name (or #number) of the user/group to run httpd as.=0A= # . On SCO (ODT 3) use "User nouser" and "Group nogroup".=0A= # . On HPUX you may not be able to use shared memory as nobody, and the=0A= # suggested workaround is to create a user www and use that user.=0A= # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)=0A= # when the value of (unsigned)Group is above 60000; =0A= # don't use Group nogroup on these systems!=0A= #=0A= User nobody=0A= Group nogroup=0A= =0A= #=0A= # ServerAdmin: Your address, where problems with the server should be=0A= # e-mailed. This address appears on some server-generated pages, such=0A= # as error documents.=0A= #=0A= ServerAdmin root@d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # ServerName allows you to set a host name which is sent back to clients = for=0A= # your server if it's different than the one the program would get = (i.e., use=0A= # "www" instead of the host's real name).=0A= #=0A= # Note: You cannot just invent host names and hope they work. The name = you =0A= # define here must be a valid DNS name for your host. If you don't = understand=0A= # this, ask your network administrator.=0A= # If your host doesn't have a registered DNS name, enter its IP address = here.=0A= # You will have to access it by its address (e.g., http://123.45.67.89/)=0A= # anyway, and this will make redirections work in a sensible way.=0A= #=0A= ServerName d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # DocumentRoot: The directory out of which you will serve your=0A= # documents. By default, all requests are taken from this directory, but=0A= # symbolic links and aliases may be used to point to other locations.=0A= #=0A= DocumentRoot "/www/htdocs"=0A= =0A= #=0A= # Each directory to which Apache has access, can be configured with = respect=0A= # to which services and features are allowed and/or disabled in that=0A= # directory (and its subdirectories). =0A= #=0A= # First, we configure the "default" to be a very restrictive set of =0A= # permissions. =0A= #=0A= =0A= Options FollowSymLinks=0A= AllowOverride None=0A= =0A= =0A= #=0A= # Note that from this point forward you must specifically allow=0A= # particular features to be enabled - so if something's not working as=0A= # you might expect, make sure that you have specifically enabled it=0A= # below.=0A= #=0A= =0A= #=0A= # This should be changed to whatever you set DocumentRoot to.=0A= #=0A= =0A= =0A= #=0A= # This may also be "None", "All", or any combination of "Indexes",=0A= # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".=0A= #=0A= # Note that "MultiViews" must be named *explicitly* --- "Options All"=0A= # doesn't give it to you.=0A= #=0A= Options Indexes FollowSymLinks=0A= =0A= #=0A= # This controls which options the .htaccess files in directories can=0A= # override. Can also be "All", or any combination of "Options", = "FileInfo", =0A= # "AuthConfig", and "Limit"=0A= #=0A= AllowOverride None=0A= =0A= #=0A= # Controls who can get stuff from this server.=0A= #=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # UserDir: The name of the directory which is appended onto a user's home=0A= # directory if a ~user request is received.=0A= #=0A= UserDir public_html=0A= =0A= #=0A= # Control access to UserDir directories. The following is an example=0A= # for a site where these directories are restricted to read-only.=0A= #=0A= #=0A= # AllowOverride FileInfo AuthConfig Limit=0A= # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec=0A= # =0A= # Order allow,deny=0A= # Allow from all=0A= # =0A= # =0A= # Order deny,allow=0A= # Deny from all=0A= # =0A= #=0A= =0A= #=0A= # DirectoryIndex: Name of the file or files to use as a pre-written HTML=0A= # directory index. Separate multiple entries with spaces.=0A= #=0A= DirectoryIndex index.html=0A= =0A= #=0A= # AccessFileName: The name of the file to look for in each directory=0A= # for access control information.=0A= #=0A= AccessFileName .htaccess=0A= =0A= #=0A= # The following lines prevent .htaccess files from being viewed by=0A= # Web clients. Since .htaccess files often contain authorization=0A= # information, access is disallowed for security reasons. Comment=0A= # these lines out if you want Web visitors to see the contents of=0A= # .htaccess files. If you change the AccessFileName directive above,=0A= # be sure to make the corresponding changes here.=0A= #=0A= =0A= Order allow,deny=0A= Deny from all=0A= =0A= =0A= #=0A= # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with = each=0A= # document that was negotiated on the basis of content. This asks proxy=0A= # servers not to cache the document. Uncommenting the following line = disables=0A= # this behavior, and proxies will be allowed to cache the documents.=0A= #=0A= #CacheNegotiatedDocs=0A= =0A= #=0A= # UseCanonicalName: (new for 1.3) With this setting turned on, whenever=0A= # Apache needs to construct a self-referencing URL (a URL that refers = back=0A= # to the server the response is coming from) it will use ServerName and=0A= # Port to form a "canonical" name. With this setting off, Apache will=0A= # use the hostname:port that the client supplied, when possible. This=0A= # also affects SERVER_NAME and SERVER_PORT in CGI scripts.=0A= #=0A= UseCanonicalName On=0A= =0A= #=0A= # TypesConfig describes where the mime.types file (or equivalent) is=0A= # to be found.=0A= #=0A= TypesConfig /www/conf/mime.types=0A= =0A= #=0A= # DefaultType is the default MIME type the server will use for a document=0A= # if it cannot otherwise determine one, such as from filename extensions.=0A= # If your server contains mostly text or HTML documents, "text/plain" is=0A= # a good value. If most of your content is binary, such as applications=0A= # or images, you may want to use "application/octet-stream" instead to=0A= # keep browsers from trying to display binary files as though they are=0A= # text.=0A= #=0A= DefaultType text/plain=0A= =0A= #=0A= # The mod_mime_magic module allows the server to use various hints from = the=0A= # contents of the file itself to determine its type. The MIMEMagicFile=0A= # directive tells the module where the hint definitions are located.=0A= # mod_mime_magic is not part of the default server (you have to add=0A= # it yourself with a LoadModule [see the DSO paragraph in the 'Global=0A= # Environment' section], or recompile the server and include = mod_mime_magic=0A= # as part of the configuration), so it's enclosed in an = container.=0A= # This means that the MIMEMagicFile directive will only be processed if = the=0A= # module is part of the server.=0A= #=0A= =0A= MIMEMagicFile /www/conf/magic=0A= =0A= =0A= #=0A= # HostnameLookups: Log the names of clients or just their IP addresses=0A= # e.g., www.apache.org (on) or 204.62.129.132 (off).=0A= # The default is off because it'd be overall better for the net if people=0A= # had to knowingly turn this feature on, since enabling it means that=0A= # each client request will result in AT LEAST one lookup request to the=0A= # nameserver.=0A= #=0A= HostnameLookups Off=0A= =0A= #=0A= # ErrorLog: The location of the error log file.=0A= # If you do not specify an ErrorLog directive within a =0A= # container, error messages relating to that virtual host will be=0A= # logged here. If you *do* define an error logfile for a =0A= # container, that host's errors will be logged there and not here.=0A= #=0A= ErrorLog /www/logs/error_log=0A= =0A= #=0A= # LogLevel: Control the number of messages logged to the error_log.=0A= # Possible values include: debug, info, notice, warn, error, crit,=0A= # alert, emerg.=0A= #=0A= LogLevel warn=0A= =0A= #=0A= # The following directives define some format nicknames for use with=0A= # a CustomLog directive (see below).=0A= #=0A= LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" = combined=0A= LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A= LogFormat "%{Referer}i -> %U" referer=0A= LogFormat "%{User-agent}i" agent=0A= =0A= #=0A= # The location and format of the access logfile (Common Logfile Format).=0A= # If you do not define any access logfiles within a =0A= # container, they will be logged here. Contrariwise, if you *do*=0A= # define per- access logfiles, transactions will be=0A= # logged therein and *not* in this file.=0A= #=0A= CustomLog /www/logs/access_log common=0A= =0A= #=0A= # If you would like to have agent and referer logfiles, uncomment the=0A= # following directives.=0A= #=0A= CustomLog /www/logs/referer_log referer=0A= CustomLog /www/logs/agent_log agent=0A= =0A= #=0A= # If you prefer a single logfile with access, agent, and referer = information=0A= # (Combined Logfile Format) you can use the following directive.=0A= #=0A= CustomLog /www/logs/access_log combined=0A= =0A= #=0A= # Optionally add a line containing the server version and virtual host=0A= # name to server-generated pages (error documents, FTP directory = listings,=0A= # mod_status and mod_info output etc., but not CGI generated documents).=0A= # Set to "EMail" to also include a mailto: link to the ServerAdmin.=0A= # Set to one of: On | Off | EMail=0A= #=0A= ServerSignature On=0A= =0A= #=0A= # Aliases: Add here as many aliases as you need (with no limit). The = format is =0A= # Alias fakename realname=0A= #=0A= # Note that if you include a trailing / on fakename then the server will=0A= # require it to be present in the URL. So "/icons" isn't aliased in this=0A= # example, only "/icons/"..=0A= #=0A= Alias /icons/ "/www/icons/"=0A= =0A= =0A= Options Indexes MultiViews=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # ScriptAlias: This controls which directories contain server scripts.=0A= # ScriptAliases are essentially the same as Aliases, except that=0A= # documents in the realname directory are treated as applications and=0A= # run by the server when requested rather than as documents sent to the = client.=0A= # The same rules about trailing "/" apply to ScriptAlias directives as to=0A= # Alias.=0A= #=0A= ScriptAlias /cgi-bin/ "/www/cgi-bin/"=0A= ScriptAlias /Zope/ "/www/cgi-bin/Zope/"=0A= =0A= #=0A= # "/www/cgi-bin" should be changed to whatever your ScriptAliased=0A= # CGI directory exists, if you have that configured.=0A= #=0A= =0A= AllowOverride none=0A= Options ExecCGI=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # Redirect allows you to tell clients about documents which used to = exist in=0A= # your server's namespace, but do not anymore. This allows you to tell = the=0A= # clients where to look for the relocated document.=0A= # Format: Redirect old-URI new-URL=0A= #=0A= =0A= #=0A= # Directives controlling the display of server-generated directory = listings.=0A= #=0A= =0A= #=0A= # FancyIndexing is whether you want fancy directory indexing or standard=0A= #=0A= IndexOptions FancyIndexing=0A= =0A= #=0A= # AddIcon* directives tell the server which icon to show for different=0A= # files or filename extensions. These are only displayed for=0A= # FancyIndexed directories.=0A= #=0A= AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A= =0A= AddIconByType (TXT,/icons/text.gif) text/*=0A= AddIconByType (IMG,/icons/image2.gif) image/*=0A= AddIconByType (SND,/icons/sound2.gif) audio/*=0A= AddIconByType (VID,/icons/movie.gif) video/*=0A= =0A= AddIcon /icons/binary.gif .bin .exe=0A= AddIcon /icons/binhex.gif .hqx=0A= AddIcon /icons/tar.gif .tar=0A= AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A= AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip=0A= AddIcon /icons/a.gif .ps .ai .eps=0A= AddIcon /icons/layout.gif .html .shtml .htm .pdf=0A= AddIcon /icons/text.gif .txt=0A= AddIcon /icons/c.gif .c=0A= AddIcon /icons/p.gif .pl .py=0A= AddIcon /icons/f.gif .for=0A= AddIcon /icons/dvi.gif .dvi=0A= AddIcon /icons/uuencoded.gif .uu=0A= AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A= AddIcon /icons/tex.gif .tex=0A= AddIcon /icons/bomb.gif core=0A= =0A= AddIcon /icons/back.gif ..=0A= AddIcon /icons/hand.right.gif README=0A= AddIcon /icons/folder.gif ^^DIRECTORY^^=0A= AddIcon /icons/blank.gif ^^BLANKICON^^=0A= =0A= #=0A= # DefaultIcon is which icon to show for files which do not have an icon=0A= # explicitly set.=0A= #=0A= DefaultIcon /icons/unknown.gif=0A= =0A= #=0A= # AddDescription allows you to place a short description after a file in=0A= # server-generated indexes. These are only displayed for FancyIndexed=0A= # directories.=0A= # Format: AddDescription "description" filename=0A= #=0A= #AddDescription "GZIP compressed document" .gz=0A= #AddDescription "tar archive" .tar=0A= #AddDescription "GZIP compressed tar archive" .tgz=0A= =0A= #=0A= # ReadmeName is the name of the README file the server will look for by=0A= # default, and append to directory listings.=0A= #=0A= # HeaderName is the name of a file which should be prepended to=0A= # directory indexes. =0A= #=0A= # The server will first look for name.html and include it if found.=0A= # If name.html doesn't exist, the server will then look for name.txt=0A= # and include it as plaintext if found.=0A= #=0A= ReadmeName README=0A= HeaderName HEADER=0A= =0A= #=0A= # IndexIgnore is a set of filenames which directory indexing should = ignore=0A= # and not include in the listing. Shell-style wildcarding is permitted.=0A= #=0A= IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t=0A= =0A= #=0A= # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) = uncompress=0A= # information on the fly. Note: Not all browsers support this.=0A= # Despite the name similarity, the following Add* directives have nothing=0A= # to do with the FancyIndexing customization directives above.=0A= #=0A= AddEncoding x-compress Z=0A= AddEncoding x-gzip gz=0A= =0A= #=0A= # AddLanguage allows you to specify the language of a document. You can=0A= # then use content negotiation to give a browser a file in a language=0A= # it can understand. Note that the suffix does not have to be the same=0A= # as the language keyword --- those with documents in Polish (whose=0A= # net-standard language code is pl) may wish to use "AddLanguage pl .po" =0A= # to avoid the ambiguity with the common suffix for perl scripts.=0A= #=0A= AddLanguage en .en=0A= AddLanguage fr .fr=0A= AddLanguage de .de=0A= AddLanguage da .da=0A= AddLanguage el .el=0A= AddLanguage it .it=0A= =0A= #=0A= # LanguagePriority allows you to give precedence to some languages=0A= # in case of a tie during content negotiation.=0A= # Just list the languages in decreasing order of preference.=0A= #=0A= LanguagePriority en fr de=0A= =0A= #=0A= # AddType allows you to tweak mime.types without actually editing it, or = to=0A= # make certain files to be certain types.=0A= #=0A= # For example, the PHP3 module (not part of the Apache distribution)=0A= # will typically use:=0A= #=0A= AddType application/x-httpd-php3 .phtml .php3=0A= AddType application/x-httpd-php3-source .phps=0A= =0A= #=0A= # AddHandler allows you to map certain file extensions to "handlers",=0A= # actions unrelated to filetype. These can be either built into the = server=0A= # or added with the Action command (see below)=0A= #=0A= # If you want to use server side includes, or CGI outside=0A= # ScriptAliased directories, uncomment the following lines.=0A= #=0A= # To use CGI scripts:=0A= #=0A= AddHandler cgi-script .cgi=0A= AddHandler cgi-script .pl=0A= =0A= #=0A= # To use server-parsed HTML files=0A= #=0A= #AddType text/html .shtml=0A= #AddHandler server-parsed .shtml=0A= =0A= #=0A= # Uncomment the following line to enable Apache's send-asis HTTP file=0A= # feature=0A= #=0A= #AddHandler send-as-is asis=0A= =0A= #=0A= # If you wish to use server-parsed imagemap files, use=0A= #=0A= #AddHandler imap-file map=0A= =0A= #=0A= # To enable type maps, you might want to use=0A= #=0A= #AddHandler type-map var=0A= =0A= #=0A= # Action lets you define media types that will execute a script whenever=0A= # a matching file is called. This eliminates the need for repeated URL=0A= # pathnames for oft-used CGI file processors.=0A= # Format: Action media/type /cgi-script/location=0A= # Format: Action handler-name /cgi-script/location=0A= #=0A= =0A= #=0A= # MetaDir: specifies the name of the directory in which Apache can find=0A= # meta information files. These files contain additional HTTP headers=0A= # to include when sending the document=0A= #=0A= #MetaDir .web=0A= =0A= #=0A= # MetaSuffix: specifies the file name suffix for the file containing the=0A= # meta information.=0A= #=0A= #MetaSuffix .meta=0A= =0A= #=0A= # Customizable error response (Apache style)=0A= # these come in three flavors=0A= #=0A= # 1) plain text=0A= #ErrorDocument 500 "The server made a boo boo.=0A= # n.b. the (") marks it as text, it does not get output=0A= #=0A= # 2) local redirects=0A= #ErrorDocument 404 /missing.html=0A= # to redirect to local URL /missing.html=0A= #ErrorDocument 404 /cgi-bin/missing_handler.pl=0A= # N.B.: You can redirect to a script or a document using = server-side-includes.=0A= #=0A= # 3) external redirects=0A= #ErrorDocument 402 http://some.other_server.com/subscription_info.html=0A= # N.B.: Many of the environment variables associated with the original=0A= # request will *not* be available to such a script.=0A= =0A= #=0A= # The following directives modify normal HTTP response behavior.=0A= # The first directive disables keepalive for Netscape 2.x and browsers = that=0A= # spoof it. There are known problems with these browser implementations.=0A= # The second directive is for Microsoft Internet Explorer 4.0b2=0A= # which has a broken HTTP/1.1 implementation and does not properly=0A= # support keepalive when it is used on 301 or 302 (redirect) responses.=0A= #=0A= BrowserMatch "Mozilla/2" nokeepalive=0A= BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0=0A= =0A= #=0A= # The following directive disables HTTP/1.1 responses to browsers which=0A= # are in violation of the HTTP/1.0 spec by not being able to grok a=0A= # basic 1.1 response.=0A= #=0A= BrowserMatch "RealPlayer 4\.0" force-response-1.0=0A= BrowserMatch "Java/1\.0" force-response-1.0=0A= BrowserMatch "JDK/1\.0" force-response-1.0=0A= =0A= #=0A= # Allow server status reports, with the URL of = http://servername/server-status=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-status=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Allow remote server configuration reports, with the URL of=0A= # http://servername/server-info (requires that mod_info.c be loaded).=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-info=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # There have been reports of people trying to abuse an old bug from = pre-1.1=0A= # days. This bug involved a CGI script distributed as a part of Apache.=0A= # By uncommenting these lines you can redirect these attacks to a = logging =0A= # script on phf.apache.org. Or, you can record them yourself, using the = script=0A= # support/phf_abuse_log.cgi.=0A= #=0A= #=0A= # Deny from all=0A= # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi=0A= #=0A= =0A= #=0A= # Proxy Server directives. Uncomment the following lines to=0A= # enable the proxy server:=0A= #=0A= #=0A= #ProxyRequests On=0A= #=0A= #=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Enable/disable the handling of HTTP/1.1 "Via:" headers.=0A= # ("Full" adds the server version; "Block" removes all outgoing Via: = headers)=0A= # Set to one of: Off | On | Full | Block=0A= #=0A= #ProxyVia On=0A= =0A= #=0A= # To enable the cache as well, edit and uncomment the following lines:=0A= # (no cacheing without CacheRoot)=0A= #=0A= #CacheRoot "/www/proxy"=0A= #CacheSize 5=0A= #CacheGcInterval 4=0A= #CacheMaxExpire 24=0A= #CacheLastModifiedFactor 0.1=0A= #CacheDefaultExpire 1=0A= #NoCache a_domain.com another_domain.edu joes.garage_sale.com=0A= =0A= #=0A= # End of proxy directives.=0A= =0A= ### Section 3: Virtual Hosts=0A= #=0A= # VirtualHost: If you want to maintain multiple domains/hostnames on your=0A= # machine you can setup VirtualHost containers for them.=0A= # Please see the documentation at = =0A= # for further details before you try to setup virtual hosts.=0A= # You may use the command line option '-S' to verify your virtual host=0A= # configuration.=0A= =0A= #=0A= # If you want to use name-based virtual hosts you need to define at=0A= # least one IP address (and port number) for them.=0A= #=0A= #NameVirtualHost 12.34.56.78:80=0A= NameVirtualHost 193.63.119.119=0A= =0A= #=0A= # VirtualHost example:=0A= # Almost any Apache directive may go into a VirtualHost container.=0A= #=0A= #=0A= # ServerAdmin webmaster@host.some_domain.com=0A= # DocumentRoot /www/docs/host.some_domain.com=0A= # ServerName host.some_domain.com=0A= # ErrorLog logs/host.some_domain.com-error_log=0A= # CustomLog logs/host.some_domain.com-access_log common=0A= #=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName d033.ml.uwcm.ac.uk=0A= ErrorLog logs/d033.ml.uwcm.ac.uk-error_log=0A= CustomLog logs/d033.ml.uwcm.ac.uk-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/z/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName z.realdns.com=0A= ErrorLog logs/z.realdns.com-error_log=0A= CustomLog logs/z.realdns.com-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= CheckSpelling on=0A= =0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410-- From michel@digicool.com Mon Mar 1 16:17:31 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:17:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 7:23 AM > To: zope@zope.org > Subject: [Zope] Zope and Apache - again > Now - here is my current config: > > Linux 2.0.35 > Python 1.5.1 > Zope 1.10.2 > Apache 1.3.4 > > Something there that doesn't play well together? > The only difference between your setup and the setup used to compile Zap is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there might be an incompatability with Zap on 5.1. Has anyone on the list gotten Zap working on this platform? Also, please send us the details of the error you get with Zap. When you say it's broken, how does it break? Does the starzap script fail to run? Does it say 'Apache did NOT start sucessfuly' and then spit up the last 10 lines of your error log? If so, what are those lines? -Michel > > Sture Lygren > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Wiebe Kunst" Can somebody please help me out. I've read through most of the postings to the list, but I'm still in the dark. I have defined a DTML documentproperty of type lines. Each line represents the ID of another DTML document. When using:
I get the ID's. I tried all kinds of variations on this code (including the ones suggested by Amos) but are still unable to turn those ID's into rendered objects. Regards Wiebe Kunst From ShawH@STHS.org Mon Mar 1 16:31:06 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Mon, 1 Mar 1999 10:31:06 -0600 Subject: [Zope] ZMySQLDA installation Message-ID: You need to install python... Or adjust the Makefile.pre.in to look at Zope's internal python, instead of trying to find the external one. Actually, from a quick runthrough of the Makefile.pre.in, you should set the enviroment variable PYTHON to point to the local python binary; I mean the one internal to zope, like PYTHON=/home/zope/bin/python export PYTHON (in bash) or setenv PYTHON /home/zope/bin/python (in tcsh) ... (and no I am not quite certain on the syntax here). The 'make -f Makefile.pre.in boot' appears to call $(PYTHON) with parameters that cause it to return the proper location for the python configuration files, etc. Good luck. > ---------- > From: Timothy Grant[SMTP:tjg@avalongroup.net] > Sent: Sunday, February 28, 1999 5:39 PM > To: Zope Folk > Subject: [Zope] ZMySQLDA installation > > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: > > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it > right. > I then downloaded the ZMySQLDA from the Zope site. > > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 > > Any help would be greatly appreciated. > > -- > Stand Fast, > tjg. > =================================================== > Timothy Grant > VP Technology/CTO > Avalon Technology Group > tjg@avalongroup.net > www.avalongroup.net > (503) 246-3630 voice > (503) 246-3124 fax > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Mon Mar 1 16:57:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:57:55 -0500 Subject: [Zope] NotMail 0.0.5 alpha release Message-ID: <613145F79272D211914B0020AFF6401907BAB1@GANDALF> Greetings Zopesters, I have been working on a little pet Zope Product project for months now. Getting hired at digicool put the brakes on it a little but I have finally gotten the time to polish it up a bit for alpha release. Check out: http://starship.python.net:9673/crew/furtrapper/NotMail for NotMail. NotMail is a clone of 'other' popular web-mail interfaces. Please download and evaluate. But first a word of warning: NotMail is alpha. It is being released with the intention of harvesting other developers who are interesting in breaking it, fixing it, and improving it. Although it is a cool program, it is unstable (try pointing it at Exchange!) and not complete. I have tried to document it in code as much as possible, and it does contain a nice README.txt. You are expected to be able to infer the workings of NotMail by the source, or by telepathy, whatever. If NotMail makes your hard drive partition go bye-bye or makes your imap server think it's a dhcp server that's the way the cookie crumbles. Okay, now a word of license: NotMail is released under the GNU General Public License. Give yourself a piece of mind and send the Free Software Foundation a donation. You'd do it for NPR wouldn't you? Now a kind word about Digital Creations: Digicool has been kind enough to let me waste a small fraction of my time to release this today. They also let me use their computer to check my personal mail, etc. Please don't infer that because I work for Digicool that NotMail is a product of Digital Creations. Please do not submit NotMail bugs to the Collector or send reports to support@digicool.com. These things are for Zope and other Digicool products. It is ok to discuss it in the list but I'd prefer all discussion happen using the cool Confera discussion that can be found in the same place you can get NotMail. Regards, Michel From raver@box.dust.za.net Mon Mar 1 19:03:56 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:03:56 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF640190D9E1B@GANDALF>; from Paul Everitt on Mon, Mar 01, 1999 at 11:03:24AM -0500 References: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> Message-ID: <19990301200356.A1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:03:24AM -0500, Paul Everitt wrote: > > > If it works - is there someone that can say exactly how > > apache should be > > configured and compiled to get it working (best of all also > > put in a working > > httpd.conf also)? > > We'd prefer that you start with the Zap distribution, as it removes a > whole bunch of variables. Can you tell us what was the error with using > Zap? > > --Paul > What I did: 1) Extract the Zap distro into my top level Zope dir. Entered the Zap dir and did ./startzap. This happened: './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' 2) I figured the httpd equivalent 'zap' was broken and replaced it with my httpd (from apache 1.3.4). Again I fired up zap with ./startzap. This happened: No complaints this time. Apache (or rather zap) fires up correctly, but when I try to reach the server with netscape or lynx (http://localhost/, (I changed port back to 80)) I get 'Document contains no data'. Same goes for trying: http://localhost/cgi-bin/Zope/manage - I get 'zero sized reply', 'The requested URL could not be retrived'. Now - seems like there are some settings missing from the zap.conf file? Or if nothings wrong - then maby give the readme-file a facelift and make it more clear to ppl like me what to do to get it running. Zope seems just too good to just let go!! Hope to get it running soon Regards Sture Lygren From michel@digicool.com Mon Mar 1 19:25:45 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:25:45 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 2:04 PM > To: zope@zope.org > Subject: Re: [Zope] Zope and Apache - again > What I did: > > 1) Extract the Zap distro into my top level Zope dir. Entered > the Zap dir and > did ./startzap. > > This happened: > > './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' > I just did a fresh install and this works for me. Can you run bin/zap by hand from the shell prompt? Have you tried downloading a fresh copy of the Zap tarball? > 2) I figured the httpd equivalent 'zap' was broken and > replaced it with my > httpd (from apache 1.3.4). Again I fired up zap with ./startzap. > > This happened: > > No complaints this time. Apache (or rather zap) fires up > correctly, but when > I try to reach the server with netscape or lynx (http://localhost/, (I > changed port back to 80)) I get 'Document contains no data'. > > Same goes for trying: http://localhost/cgi-bin/Zope/manage - > I get 'zero > sized reply', 'The requested URL could not be retrived'. > Your own httpd binary might not be compiled properly for Zope use, check out the Zap FAQ at http://www.zope.org/Community/Projects/Zap. Doh, I just noticed that this is not an obvious link from the d/l page. I will make it so. > Now - seems like there are some settings missing from the > zap.conf file? > The conf file that comes with zap is ok. We and others tested it quite a bit. > Or if nothings wrong - then maby give the readme-file a facelift and > make it more clear to ppl like me what to do to get it running. > When we figure out your problem, it will get added to the docs. > Zope seems just too good to just let go!! It is that good. > > Hope to get it running soon > > Regards Sture Lygren > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Bern.McCarty@bentley.com Mon Mar 1 19:15:17 1999 From: Bern.McCarty@bentley.com (Bern McCarty) Date: Mon, 1 Mar 1999 14:15:17 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibility? Message-ID: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect. In our case it is a given that a specialized JVM will be embedded in all of our products and more and more of our own source will be written in Java, so code which can integrate with Java easily is all the more interesting to us. We already have a product which uses traditional Python behind a web server to provide an entirely through-the-web user interface for product configuration/administration. My aim has been to replace the traditional Python with JPython since we'll have lot's of Java stuff we'll want to be using on the server going forward anyway. It looks like Zope would enable us to do what we are already doing more easily (and therefore better). So here's hoping we'll one day see Z-over-P-over-J. Yeah. I know it would have to be slower. Zope looks cool. Bern McCarty From michel@digicool.com Mon Mar 1 19:46:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:46:52 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF6401907BAB6@GANDALF> > -----Original Message----- > From: Bern McCarty [mailto:Bern.McCarty@bentley.com] > Sent: Monday, March 01, 1999 2:15 PM > To: zope@zope.org > Subject: [Zope] Is a JPython implemention within the realm of > possibility? > > > > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPytho > So > here's hoping we'll one day see Z-over-P-over-J. > I am not the expert about this, but: Zope is written entirely in Python, except for a few 'kernel' like components written in C. If you translate these components into Java, you might just have something there. I'm not a Java guy so I have no real idea. > Yeah. I know it would have to be slower. From what Ken was telling me JPython is actually quite well designed and speedy, even for a Java program. :) If you've commited yourself to Java then I assume you've allready resigned yourself to the performance penalty and are considering it in your engineering goals. Performance may not be your primary goal in the first place. > > Zope looks cool. Oh it is. > > Bern McCarty > -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Mon Mar 1 19:47:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 14:47:28 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF640190D9E20@GANDALF> Bern wrote: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPython) > in addition to operation under traditional Python. I know it > would probably > be a large undertaking and that there may well be better > places to spend > precious energy, but I thought I'd register my interest in > the prospect. This was one of the things that I hoped to see by going Open Source. So far there have been ports to operating systems that we just wouldn't have supported, which is a great to see. I'm intrigued by someone that really knows Java picking up a JZope effort. As for Digital Creations, I doubt you'll see us focus on it unless one of our consulting customers requires it. Same old story -- never enought time :^( --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From pj@sam.engr.sgi.com Mon Mar 1 19:40:14 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Mon, 1 Mar 1999 11:40:14 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903011940.LAA18485@sam.engr.sgi.com> I'm just beginning with Zope, and just beginning with a project to develop some new software product management (bug tracking and such) tools for use within Silicon Graphics (SGI). Zope appears to be an excellent fit for many of our needs. I will need to connect with an existing large Sybase database (the existing bug data). I can freely choose to use either Linux or Irix for the server side operating system. From which server O.S. would it be easiest to get Zope connected to Sybase? Something I read on www.zope.org led me to suspect that I should use Irix, so that I can use our Sybase licensed library, and that Linux wouldn't work, because of a lack of the needed library. Is that so? Any other obvious factors that I should consider in this choice? ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From raver@box.dust.za.net Mon Mar 1 19:48:46 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:48:46 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAAF@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 11:17:31AM -0500 References: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> Message-ID: <19990301204846.B1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:17:31AM -0500, Michel Pelletier wrote: > > > > -----Original Message----- > > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > > Sent: Monday, March 01, 1999 7:23 AM > > To: zope@zope.org > > Subject: [Zope] Zope and Apache - again > > Now - here is my current config: > > > > Linux 2.0.35 > > Python 1.5.1 > > Zope 1.10.2 > > Apache 1.3.4 > > > > Something there that doesn't play well together? > > > > The only difference between your setup and the setup used to compile Zap > is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 > kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there > might be an incompatability with Zap on 5.1. Has anyone on the list > gotten Zap working on this platform? Also, please send us the details > of the error you get with Zap. When you say it's broken, how does it > break? Does the starzap script fail to run? Does it say 'Apache did > NOT start sucessfuly' and then spit up the last 10 lines of your error > log? If so, what are those lines? Hmmm - I'm a slackware guy. And no glibc guy either.... Still the zap bin starts from the prompt and when I changed some settings in zapctl then ./startzap also worked. That is the zap process shows on ps, but I'm not able to connect to the server with any browsers. Now - whats wrong? > > -Michel > > > > > Sture Lygren > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > From da@ski.org Mon Mar 1 19:47:39 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 11:47:39 -0800 (Pacific Standard Time) Subject: [Zope] Is a JPython implemention within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program (under JPython) > in addition to operation under traditional Python. I know it would probably > be a large undertaking and that there may well be better places to spend > precious energy, but I thought I'd register my interest in the prospect. My guess is that the hardest part of such an undertaking would be to convert Jim's extensions to Java/JPython. Specifically, ExtensionClasses and Acquisition are probably the hardest to do (I believe many of the others are just fast implementations of Python versions). Jim Hugunin mentioned that he had thought a bit about ExtensionClasses, but I'm not sure how far that went. The efficient POS and other extensions are also clearly a significant undertaking, but maybe not as hard to translate. However, I don't see it happening until someone has a commercial motivation to invest the large required number of hours into it. --david From amos@aracnet.com Mon Mar 1 19:53:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 11:53:19 -0800 Subject: [Zope] Is a JPython implementation within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> At 02:15 PM 3/1/99 -0500, Bern McCarty wrote: > >I am wondering if it is within the realm of possibility that the Zope >project might eventually support operation as a Java program (under JPython) >in addition to operation under traditional Python. I know it would probably >be a large undertaking and that there may well be better places to spend >precious energy, but I thought I'd register my interest in the prospect. Zope relies on a lot of code in C as well as Python, so I doubt you'll see Zope on JPython anytime soon. However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'. -Amos From pje@telecommunity.com Mon Mar 1 20:15:31 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:15:31 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <199903011940.LAA18485@sam.engr.sgi.com> Message-ID: <3.0.5.32.19990301151531.01230100@telecommunity.com> At 11:40 AM 3/1/99 -0800, Paul Jackson wrote: >I'm just beginning with Zope, and just beginning with a >project to develop some new software product management >(bug tracking and such) tools for use within Silicon >Graphics (SGI). > >Zope appears to be an excellent fit for many of our >needs. > >I will need to connect with an existing large Sybase >database (the existing bug data). > >I can freely choose to use either Linux or Irix for >the server side operating system. > >>From which server O.S. would it be easiest to get Zope >connected to Sybase? Something I read on www.zope.org >led me to suspect that I should use Irix, so that I >can use our Sybase licensed library, and that Linux >wouldn't work, because of a lack of the needed library. > >Is that so? Any other obvious factors that I should >consider in this choice? FWIW, my shop is running Sybase OpenClient 11.1.1 on IRIX 6.2, 6.4, and 6.5 on a Challenge/S, O2000, and Challenge/L, respectively. I successfully installed ZSybaseDA into Zope on the Challenge/S; haven't tried on any others. Also FWIW, I have experienced nothing but problems getting PCGI to work on any of the IRIX platforms; your mileage may vary. (Coincidentally, the company I work for owns a couple hundred SGI boxes and we keep our inventory of them in a ZPublisher app... it's on mySQL, though, not Sybase. OTOH, our request tracking system is a ZPublisher-on-Sybase app.) From jeffbauer@bigfoot.com Mon Mar 1 20:29:12 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 14:29:12 -0600 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <36DAF898.14B40EF0@rubic.com> > Also FWIW, I have experienced nothing but problems > getting PCGI to work on any of the IRIX platforms; > your mileage may vary. Does this include the latest version of PCGI? FWIW, I'm willing to work with anyone getting PCGI to work on their platform of choice. Best regards, Jeff Bauer Rubicon, Inc. From Jose.Lacal@icn.siemens.com Mon Mar 1 20:39:00 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Mon, 1 Mar 1999 15:39:00 -0500 Subject: [Zope] MailHost problems. Message-ID: <85256727.00714502.00@li01.lm.ssc.siemens.com> Folks: Error message when trying to send e-mail from a Zope-generated web-form. I did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still get the following error message:

Copyright 1999 Siemens I & CN. Maintained by Jose C. Lacal.

Platform: Red Hat 5.1 Zope 1.10.2 Both sendmail and DNS are properly installed since I was able to send e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" I'm no Zope expert, so any suggestions appreciated. Regards. From pje@telecommunity.com Mon Mar 1 20:37:28 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:37:28 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <36DAF898.14B40EF0@rubic.com> References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <3.0.5.32.19990301153728.01372a00@telecommunity.com> At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > >Does this include the latest version of PCGI? > >FWIW, I'm willing to work with anyone getting PCGI >to work on their platform of choice. The last version I tried was the one distributed with Zope 1.9.0 - it exhibited the same fail-on-process startup behavior as previous versions, so I went to ZServer as a stopgap until I could complete a FastCGI replacement. I'm now using FastCGI, so it's no longer an issue. From drew_csillag@geocities.com Mon Mar 1 20:43:35 1999 From: drew_csillag@geocities.com (Andrew Csillag) Date: Mon, 01 Mar 1999 15:43:35 -0500 Subject: [Zope] Is a JPython implementation within the realm ofpossibility? References: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> Message-ID: <36DAFBF7.DE205CAB@starmedia.net> Amos Latteier wrote: > > However, ZPublisher (Zope's ORB) could be made to work with JPython without > too much trouble. In fact a while ago I tried this and succeeded, though it > was quite slow. The main issue is that ZPublisher uses 'regex' while > JPython uses 're'. Actually, some time ago I sent Jim some code that was a regex mockup implemented using re. It didn't do all of regex, but enough to make DocumentTemplate work. -- "There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence." - Jeremy S. Anderson From bkc@murkworks.com Mon Mar 1 19:51:08 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 15:51:08 -0400 Subject: [Zope] MailHost problems. In-Reply-To: <85256727.00714502.00@li01.lm.ssc.siemens.com> Message-ID: <199903012045.PAA26056@anvil.murkworks.com> On 1 Mar 99, at 15:39, Jose.Lacal@icn.siemens.com wrote: > Error message when trying to send e-mail from a Zope-generated web-form. I > did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still > get the following error message: > > > >
>

Copyright 1999 Siemens I & CN. Maintained by > Jose C. Lacal. HREF="http://www.linux.org"> >

> > > > > Platform: > > Red Hat 5.1 > Zope 1.10.2 > > Both sendmail and DNS are properly installed since I was able to send > e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" > > > I'm no Zope expert, so any suggestions appreciated. > > Regards. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From raver@box.dust.za.net Mon Mar 1 21:22:52 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 22:22:52 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAB4@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 02:25:45PM -0500 References: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> Message-ID: <19990301222252.A9776@RaVER.duck.org> I give up! From rocon@pivot.net Mon Mar 1 22:04:51 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 1 Mar 1999 17:04:51 -0500 Subject: [Zope] The Zope Starship (for Python PSA) Message-ID: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> I Followed the URL backward from: Michel Pelletier's "You've Not Mail !!!" Page, http://starship.python.net:9673/crew/furtrapper/NotMail Hey, this is neat, starship.python.net must be running ZOPE because the port is "9673" !!! therefore going to: http://starship.python.net:9673 "Welcome to Zope at the Starship Python!" So, to join the crew of the Starship and get your own ZOPE pages on the internet requires PSA membership. One can join now and pay for a half year $50/yr or $25 for half. Membership wouldn't be effective until April 1st (a Foolish day!) So, Zope is cool and so is Python. I am considering joining PSA on the strength of Zope and Elegance of Python but I'm concerned that Python doesn't seem to have much "MindShare" like Java or Perl. Ok so our local Borders has only one book on Python: "Programming Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. The shelves are full of books on Java and there are quite a few Perl books. What is the BIG PICTURE here? Is Python so good that lot of programming tomes are unnecessary? Why is there so little press on Python and so much for the less Elegant and slower Java? Is Python a "secret weapon"? If so, the secret should get out to the world so Python gets more mind share and doesn't develop cobwebs. ***So, where are the rabid Python fans?*** Yes, a bunch of them are on the ZOPE list. Great answers to these questions will only help ZOPE! -bobo connor From quinn@challenge.calarts.edu Mon Mar 1 22:17:08 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Mon, 01 Mar 1999 14:17:08 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903012217.OAA20295@challenge.calarts.edu> philip wrote: > At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > > > >Does this include the latest version of PCGI? > > > >FWIW, I'm willing to work with anyone getting PCGI > >to work on their platform of choice. > > The last version I tried was the one distributed with Zope 1.9.0 - it > exhibited the same fail-on-process startup behavior as previous versions, > so I went to ZServer as a stopgap until I could complete a FastCGI > replacement. I'm now using FastCGI, so it's no longer an issue. I'm using pcgi from 1.9.0 (README says it's 2.0a4) under Irix 5.3 (yes, I know, I keep bugging the sysadmin to upgrade :) ). Occaisionally, pcgi fails to start up, logging "Interrupted system call (116) unable to connect, fd=4". I also had the same problem when using FastCGI w/ threads: the application would hang and I'd get an "interrupted system call" in the log after a while. I have never experienced either of these problems under linux, so might this be an Irix problem? I remember that Philip also suspected an Irix "sockets-and-threads-don't-mix" problem, which appears to be what I have experienced as well. Philip, is theaded FastCGI still broken on Irix? From jeffbauer@bigfoot.com Mon Mar 1 22:34:44 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 16:34:44 -0600 Subject: [Zope] The Zope Starship (for Python PSA) References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <36DB1604.AB0002A2@rubic.com> Robert OConnor wrote: > What is the BIG PICTURE here? Is Python so good > that lot of programming tomes are unnecessary? As a language qua language, Python is so good in design and implementation that it has few dark mysteries that require a lot of documentation to explain. The existing Python books are quite good, with at least 4 more in the works. More Python books are necessary to explain things like Win32/COM programming, for instance, than the language itself. Perl has lots of books, because for the past 2 years, almost anything that offered to make Perl programming easy was given shelf space. Java has lots of books because almost everything in Java has to be written in Java, and the Java libraries have been a moving target for so long. More important than the number of books (how many Perl books do you really need, after the Camel?) is the level of support/platforms in the Python community, which is quite high. It will probably never attain the proportion of mindshare that Perl or Java has, but is has critical mass, and a lot of compentent people who contribute code. Too many companies now rely upon Python as their core development language for it to go away anytime soon. More importantly: You'll spend more time learning about the eccentricities of whatever your environment demands, be it Unix, Windows, web servers, CE devices, COM, Tk, etc. than learning the language itself. This is Python's great (and under-reported) strength. Best regards, Jeff Bauer Rubicon, Inc. From tjg@avalongroup.net Mon Mar 1 22:28:08 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Mon, 01 Mar 1999 14:28:08 -0800 Subject: [Zope] ZMySQLDA installation Message-ID: <36DB1478.E2D7915E@avalongroup.net> Hi all, This is probably more of a newbie Linux question than a newbie Zope question, but I'm going to ask it here anyway: I would like to connect Zope to a database, so I have setup both PostgreSQL and MySQL. My reading tells me that MySQL is probably the better choice as a web backend (Any comments from those of you more knowledgable than I would be appreciated!) So I downloaded the MySQL source, compiled, installed and tested it. It looks like I did it right. I then downloaded the ZMySQLDA from the Zope site. I have followed the directions--I think, but get the following error when trying to do the initial make: [tjg@puddleglum src]$ make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho n/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python /Products/ZMySQLDA/src' make: *** [boot] Error 2 Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From da@ski.org Mon Mar 1 22:41:17 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 14:41:17 -0800 (Pacific Standard Time) Subject: [Zope] The Zope Starship (for Python PSA) In-Reply-To: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: > Ok so our local Borders has only one book on Python: "Programming > Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. > The shelves are full of books on Java and there are quite a few Perl > books. FYI: I know of at least 5 other Python-related book projects in various stages of development. One of those should be hitting those same shelves in April sometime (http://www.oreilly.com/catalog/lpython/). It even mentions Zope in a couple of places. [Disclosure: I'm a coauthor of said book] > What is the BIG PICTURE here? Is Python so good that lot of > programming tomes are unnecessary? Python is certainly easier to learn than some other languages. > Why is there so little press on Python and so much for the less > Elegant and slower Java? Mostly, because Java is backed by a multibillion dollar company with lots of $$'s for public relations. --david ObZope: I'm having a hard time with the 'access' file -- it looks as if my Zope installation (w/ ZServer) only accesses the first entry in the file. What am I missing? From garys@magna.com.au Mon Mar 1 22:51:00 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 09:51:00 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> Message-ID: <36DB19D4.77F33EA7@magna.com.au> Amos Latteier wrote: > At 05:04 PM 3/1/99 +1100, you wrote: > >Amos Latteier wrote: > > > >> > >> Correct. This is what's supposed to be there. Does the FAQ Tool not work > >> when you install it? Are you using Zope 1.10.2? > >> > >> -Amos > > > >My Zope Zen seem to have gone negative (started at zero - and just got worse > >:( ) but HOW do you install it. > > I hate to tell you to RTFM, but did you try the "Installation Instructions" > on the page where you downloaded it? > A perfectly reasonable suggestion - and one that I have made many times myself! I did, in fact, RTFM - but the FM makes absolutely zero mention of anything "leverish", to adopt a seemingly Zopish mode of Englishish. ;-) I followed your link given in another message, and realised that what I had been reading about in terms of Product Distributions was (I think) what you refer to as the "Lever". IAC, I followed the instructions given, and when it didn't work I went back, and worked my way through the Product Tutorial exercise - excellent! The POLL product works fine! But the levered faq product .DAT file apparently failed to unpickle - as described by others in this thread. My product management screen shows the FAQ product as installed, but the actual product directory still has just the three files from the tarball. In my case, however, it is on a Linux ZAP system - so the problem is not confined to Win32 as others have conjectured. Hope this helps, and apologies for the lack of specifics in my previous post. Can we please have the term "lever" clarified and documented a little better. -my-FAQ-product-having-FA-Q's-in-it-ly yours gary From mvoltchenko@platinum.com Mon Mar 1 23:04:28 1999 From: mvoltchenko@platinum.com (mvoltchenko@platinum.com) Date: Mon, 1 Mar 1999 17:04:28 -0600 Subject: [Zope] Z Oracle Database Connection doesn't show up. Message-ID: <86256727.007E80F3.00@platinum.com> I have compiled and installed Python 1.5.1, Zope 1.10.2 - all works fine. I downloded and installed ZOracle DA, following all the steps in the README file. However, I can't get Z Oracle Database Connection to show up in the list of available item types in Zope mangement interface. Any suggestions would be greatly appreciated. Marina Voltchenko. From jeffbauer@bigfoot.com Mon Mar 1 23:08:33 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 17:08:33 -0600 Subject: [Zope] ZMySQLDA installation References: <36DB1478.E2D7915E@avalongroup.net> Message-ID: <36DB1DF1.C2EB63BD@rubic.com> Timothy Grant wrote: > I would like to connect Zope to a database, so I have > setup both PostgreSQL and MySQL. My reading tells me that > MySQL is probably the better choice as a web backend (Any > comments from those of you more knowledgable than I would > be appreciated!) My experience was MySQL had better support for large streams of text data and blobs than PostgreSQL. However, MySQL also lacks support for transactions. This probably contributes to its speed, which in turn makes it popular for web apps. Best regards, Jeff Bauer Rubicon, Inc. From petrilli@amber.org Mon Mar 1 23:09:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 18:09:07 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: ; from David Ascher on Mon, Mar 01, 1999 at 02:41:17PM -0800 References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <19990301180907.03092@amber.org> On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > Zope installation (w/ ZServer) only accesses the first entry in the file. > What am I missing? > THis is completely correct. The access file is ONLY for the global-overall-uberuser :-) Everything else should be defined in the database itself :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From garys@magna.com.au Mon Mar 1 23:53:07 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 10:53:07 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <36DB2863.DF5662BF@magna.com.au> Amos Latteier wrote: > > > But the levered faq product .DAT file apparently failed to > >unpickle - as described by others in this thread. > > Can you tell me why you believe this to be the case? > I assumed that the .DAT file contained all the component DTML and PY scripts etc and that these would be expanded into the Product's home directory somehow. Is this not the case? Is the .DAT distribution a way of distributing the objects without the source ? (more Cathedral than Bazaar) > > >My product management screen > >shows the FAQ product as installed, but the actual product directory still > has > >just the three files from the tarball. > > This is normal. That's what's supposed to be there. > > Does the FAQ item show up in the product add list? No - but it does show up in the installed products control panel. > If not, then you have a > problem. If you have this problem, then please send to me, not the zope > list, information about your platform, and the version of Zope you have > installed. As stated before, Zope 1.10.2 running on ZAP-Linux. many tias, gary From Anthony Baxter Mon Mar 1 23:56:39 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 10:56:39 +1100 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: Your message of "Mon, 01 Mar 1999 18:09:07 CDT." <19990301180907.03092@amber.org> Message-ID: <199903012356.KAA01601@mbuna.arbhome.com.au> > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > > Zope installation (w/ ZServer) only accesses the first entry in the file. > > What am I missing? > > > > THis is completely correct. The access file is ONLY for the > global-overall-uberuser :-) Everything else should be defined in the > database itself :-) Note that you could, pretty easily, write a new UserFolder type object which worked off an access file. Could be useful for people who are generating the access file from an /etc/passwd file, or whatever. Anthony From michel@digicool.com Tue Mar 2 00:14:54 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 19:14:54 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) Message-ID: <613145F79272D211914B0020AFF6401907BAB8@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Monday, March 01, 1999 6:57 PM > To: Christopher G. Petrilli > Cc: zope@zope.org > Subject: Re: [Zope] Access File (was: The Zope Starship (for Python > PSA)) > > > > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > > > ObZope: I'm having a hard time with the 'access' file -- > it looks as if my > > > Zope installation (w/ ZServer) only accesses the first > entry in the file. > > > What am I missing? > > > > > > > THis is completely correct. The access file is ONLY for the > > global-overall-uberuser :-) Everything else should be > defined in the > > database itself :-) > > Note that you could, pretty easily, write a new UserFolder type object > which worked off an access file. Could be useful for people > who are generating > the access file from an /etc/passwd file, or whatever. > You could also skip the generation step and write a UserFolder which works off of /etc/passwd. In fact, NotMail could use this as a helper too. Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From DAve@mail.netraven.com Tue Mar 2 04:36:23 1999 From: DAve@mail.netraven.com (Dave G) Date: Mon, 1 Mar 1999 20:36:23 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: Has anyone else experienced a problem getting Explorer to connect with Zserver? I have no problem with any version of Navigator but MSIE 3.01 and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an "error with Explorer's internet extensions has failed". Very baffling, I can connect just fine via telnet using the following requests, ZServer (medusa) returns a proper html page. Requests sent: GET / HTTP/1.0 Connection: Keep-Alive Host: www.fishwrapper.com Accept: image/gif, image/jpeg, */* GET / HTTP/1.0 accept: image/gif, image/jpeg, */* GET / HTTP/1.1 accept: image/gif, image/jpeg, */* response recieved: Status: 200 OK Content-Length: 1307 Content-Type: text/html blah, blah, blah..... (note the difference in the sent host and recieved host, the host arg in the start script sets the host for the ftp server, not the webserver...) I can see nothing in the responses that would cause MSIE to fail, note this has been tested from four different PC's on three different ip's, including a local connection from my Lan. Strangly enough I did a stream capture and hit my server and the startship server (also running ZServer) and the two responses differ even though the requests were from the same browser on the same connection. request for http://www.fishwrapper.com/ followed by my servers response : Send 357 bytes on stream 4. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Pragma: no-cache <00000067< Host: www.fishwrapper.com <00000082< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000BF< image/png, */* <000000CF< Accept-Encoding: gzip <000000E6< Accept-Language: en <000000FB< Accept-Charset: iso-8859-1,*,utf-8 <0000011F< Cookie: sql_pref__rows="10"; sql_pref__cols="65"; dtpref_cols="9 <0000015F< 5" <00000163< Receive 1364 bytes on stream 4. >00000000> Status: 200 OK >0000000F> Content-Length: 1303 >00000024> Content-Type: text/html >0000003C> >0000003D> blah, blah, blah..... request for http://starship.python.net/ followed by starship's response : Send 276 bytes on stream 1. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Host: starship.python.net:9673 <00000075< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000B2< image/png, */* <000000C2< Accept-Encoding: gzip <000000D9< Accept-Language: en <000000EE< Accept-Charset: iso-8859-1,*,utf-8 <00000112< Receive 1254 bytes on stream 1. >00000000> HTTP/1.0 200 OK >00000011> Server: Medusa/1.4 >00000025> Content-Length: 1112 >0000003B> Content-Type: text/html >00000054> Connection: close >00000067> Date: Tue, 02 Mar 1999 02:24:00 GMT >0000008C> >0000008E> >00000095> blah, blah, blah..... Do starships ZServer and mine differ? My http_server.py script carries RC_ID of: "v 1.4 1999/01/18 22:44:49 amos" I downloaded a fresh copy of ZServer when I grabbed the newest copy of Zope. Any clues? I've been documenting and testing everything I could think of, I'd report a bug but it seems MSIE works with the Starship server, so I think it's not a bug so much as something wrong on my end? Slackware V 3.6 Zope v 1.10.2 ZServer 1.0a2 DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From tseaver@palladion.com Tue Mar 2 06:05:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 00:05:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <36DB2602.1DB0C1E8@palladion.com> <19990301202550.44519@amber.org> <36DB5BB7.A6DA0185@palladion.com> <19990301223719.63315@amber.org> <36DB5E48.6FE6AED4@lyra.org> <19990301225006.05483@amber.org> Message-ID: <36DB7F96.41DA505B@palladion.com> Christopher G. Petrilli wrote: > > On Mon, Mar 01, 1999 at 07:43:04PM -0800, Greg Stein wrote: > > Christopher G. Petrilli wrote: > > > On Mon, Mar 01, 1999 at 09:32:07PM -0600, Tres Seaver wrote: > > > > As one who comes down firmly on the "weenie" side of the great "content manager" > > > > vs. "web weenie" divide, I am naturally inclined to code up Zopoids as > > > > ExternalMethods. The docs say to put them under the $ZOPEROOT/lib/python, but > > > > that seems icky for a "shared" Zope like the one on starship. > > > Well, right now that's the only way it's supported... it's not really > > > inteded for an ISP situation with hundereds of "untrusted" users, which > > > is kinda how we're using it right now. FOr now, unfortunately, I'm > > > makign the executive decision that ExternalMethods are verbotten until > > > we can figure out a way to isolate them from one-anohter. If someone > > > wants to develop a derived ExternalMethod that uses rexec or some such > > > to control it's access to the database, that'd be great. > > > > > > > Whither should such gems be placed? > > > > > > Well, unfortunatly all of them would run wit the permissions of "root" > > > as far as I understand it... someone else correct me, but this is how it > > > was explained to me... basically they'd be able to do anything. > > > > Can't you run Zope as another user? That could eliminate a number of > > issues. > > I'm sorry, I wasn't clear ;-) What I meant was that the method has > unlimited abilities to peruse the object database... it doesn't have any > abilities outside it that aren't avilable to the zope process itself > (which in this case runs as uid 'zope'). > > The concern is taht it would be able to circumvent other user's security > since it wouldn't be enforced against the ExternalMethod. I understand the security problems inherent in ExternalMethods; unfortunately, without them, Zope is merely an "also-ran" in the web applicaton race, from my perspective. DTML in isolation is not an "ASP-killer." I'm CC'ing the Zope list, in hopes that someone there can either allay or slay our fears. It seems to me that the security problem is that ExternalMethods can get access to "sibling objects" of the object on which they are invoked, right? I mean, if we could make the siblings inaccessible, and acquired properties read-only, then we should be ok, no? Ugh, I don't grok acquisition well enough to tackle that myself, I fear. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Tue Mar 2 06:47:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 17:47:36 +1100 Subject: [Zope] terminating DTML parsing... Message-ID: <199903020647.RAA07473@mbuna.arbhome.com.au> from inside DTML, is there a way to say "don't process any further DTML, just return this to the user"? What I'm looking at is a small DTML snippet that gets included at the top of a number of pages, and looks for a particular variable to be set. If it's not set, it should just display a small "please enter a widget name" form which submits back to the same page, and not display the rest of the page at all. will just doing a RESPONSE.redirect() automatically do this? Anthony From piers@cs.su.oz.au Tue Mar 2 06:54:28 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Tue, 02 Mar 1999 17:54:28 +1100 Subject: [Zope] Help with editing Product dtml files Message-ID: <129.78.8.1.126.8280.920360936.257.8891> I'm making a Zope "Product" for managing and creating student surveys (which I hope to contribute via zope.org) but I'm having trouble with a couple of techniques: 1. How does one enable a dtml file that is instantiated as in my_dtml = HTMLFile('my', globals()) available for editing in the products' management screen? There's probably more to this - as at the moment the management screen goes straight to the "index_html" form as with the "Poll" Product. 2. What's the approved way to catch database errors in methods? I'm creating tables on the fly, and need to check if the table exists before trying to create it. (I'd use a "tables" method if all the database interfaces supported it. I'd also use a try/except but the database objects have different names for their exceptions.) From jarvis.sd082@ex.tel.co.jp Tue Mar 2 09:40:22 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 18:40:22 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Hi All! First off, I'd like to thank Digital Creations for an excellent (and really fun) product. I'm building a prototype web site interface for a database where I work using Zope 1.10.2 and the ZOracleDA product and have a some questions. 1. When trying to do a join (a lazy query, I know) like: select a.*, b.* from tablea a, tableb b where a.b_id=a.id Both tables have an ID column so Zope raises a 'ValueError' exception with the message 'Duplicate column name, ID'. I wonder if instead of raising an exception something like the following could be done? A diff of Shared/DC/ZRDB/Results.py: 120,131c120 < #raise ValueError, 'Duplicate column name, %s' % name < < #instead of error, append an extension to < #create a unique name < tempname=name < nameext=1 < while schema.has_key(name): < name=tempname+'_'+str(nameext) < nameext=nameext+1 < < #update with newly created name < item['name']=name --- > raise ValueError, 'Duplicate column name, %s' % name I tested this some and it seems to work. Are there any problems that could be caused by doing this? 2. I'll post the other questions separately because they are unrelated. TIA!, John Jarvis Tokyo Electron, FE Ltd. From mj@antracietm.nl Tue Mar 2 09:49:28 1999 From: mj@antracietm.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 10:49:28 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <36DB2863.DF5662BF@magna.com.au> References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <4.1.19990302103050.00a84500@lisp.atmm.nl> At 00:53 02/03/99 , Gary Stephenson wrote: >I assumed that the .DAT file contained all the component DTML and PY scripts >etc >and that these would be expanded into the Product's home directory somehow. Is >this not the case? Is the .DAT distribution a way of distributing the objects >without the source ? (more Cathedral than Bazaar) The .DAT file only contains information to be added to the Object Database. It won't be expanded into files onto your harddisk. Zope stores all instances of classes in it's object databse, via a process called 'pickling'. This, in simple terms, means that all data stored in an object is turned into one stream of data that can be stored in a file. As a 'Levered' product contains nothing but instances of classes, not the classes themselves, it suffices to distribute only the compressed pickled contents of the product. The source for the used classes you allready have (at least with the FAQ you do, it uses only DTML Methods and Folders), and the DTML scripts can be viewed in Zope, so you do get all the source. The objects that make up the product should normally be automaticly decompressed and imported into Zope, but the decrompressing seems to be failing. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jarvis.sd082@ex.tel.co.jp Tue Mar 2 10:09:28 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 19:09:28 +0900 Subject: [Zope] DTML #var null= problem/patch Message-ID: <8174B1EE3D2CD21180960000F8056723CFB32E@telisnt1020.is.tel.co.jp> Thank you for pointing out how to fix this. At first, the patch didn't work with ZSQLMethods until I made a small change: 271a272,274 > #richard jone's null patch --- slightly modified by jj > elif have_arg('null') and not val: > val = args['null'] val wasn't set to None and so the null attribute never got used. Since None is false, the above should be OK. (It seems to work for me, anyway :^) John Jarvis Tokyo Electron, FE Ltd. > -----Original Message----- > From: richard.jones@fulcrum.com.au [SMTP:richard.jones@fulcrum.com.au] > Sent: Monday, March 01, 1999 8:31 AM > To: Philip Aylesworth > Cc: zope@zope.org > Subject: Re: [Zope] DTML #var null= problem/patch > > > [Philip Aylesworth] > > Does your patch mean that I don't need a fmt= atribute? > > Yes. > > > > Are you using 1.9 or 1.10? > > Does 1.10 do the same thing? > > My patch was against 1.10 > > > > Should you send this to the collector? From the documentation I expected > it > > to work without the fmt= atribute, therefore, it could be considered a > bug, > > right? > > Yep, I've submitted a report to the Collector. > > > Richard > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From akhavr@compchem.kiev.ua Tue Mar 2 11:05:39 1999 From: akhavr@compchem.kiev.ua (Andrey V Khavryutchenko) Date: 02 Mar 1999 13:05:39 +0200 Subject: [Zope] Bobo distribution Message-ID: Hi! I'm looking for Bobo (not Zope) distribution tarball. Looks like it is taken from the web away. I need to create very simple application. Zope is an overkill for it. Anyone? -- SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr Shick's Law: There is no problem a good miracle can't solve. From sfranke@cdc-group.com Tue Mar 2 11:27:41 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 12:27:41 +0100 Subject: [Zope] Bobo distribution Message-ID: <01E40461E003D21195CC0080296495D80B12B1@gates.cdc-group.com> Bobo is now called "ZPublisher". You dan download it separately on http://www.zope.org/Download/ZPublisher Stefan Andrey V Khavryutchenko wote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it > is > taken from the web away. > > I need to create very simple application. Zope is an overkill for it. > > Anyone? > > -- > SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr > > Shick's Law: > There is no problem a good miracle can't solve. > From ajung@sz-sb.de Tue Mar 2 11:58:47 1999 From: ajung@sz-sb.de (Andreas Jung) Date: Tue, 2 Mar 1999 12:58:47 +0100 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <19990302125847.A22379@sz-sb.de> Reply-To: Hello, we want to use the DCOracle module for Python inside a commercial production process in our house. We don't sell a product with DCOracle nor we redistribute DCOracle in any form. Is the use of DCOracle for this purposes free ? Thanks Andreas From Paul@digicool.com Tue Mar 2 12:17:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:17:14 -0500 Subject: [Zope] terminating DTML parsing... Message-ID: <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Anthony wrote: > from inside DTML, is there a way to say "don't process any > further DTML, > just return this to the user"? Umm, ?? --Paul From Paul@digicool.com Tue Mar 2 12:19:01 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:19:01 -0500 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <613145F79272D211914B0020AFF640190D9E2C@GANDALF> Andreas writes: > we want to use the DCOracle module for Python inside a commercial > production > process in our house. We don't sell a product with DCOracle > nor we redistribute DCOracle in any form. Is the use of DCOracle > for this purposes free ? Yes, DCOracle is free and Open Source. --Paul From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From JPGlutting@cspt.es Tue Mar 2 13:23:41 1999 From: JPGlutting@cspt.es (JP Glutting) Date: Tue, 2 Mar 1999 13:23:41 MET-1MEST Subject: [Zope] AUTHENTICATED_USER Message-ID: <153C1D93564@sahara.cspt.es> Does anyone have any more information on AUTHENTICATED_USER? We saw a while back that it has properties (AUTHENTICATED_USER.has_role(['Manager', 'Editor'])). I would like to be able to get the user name, and use that to index simple files for users. Is there something like AUTHENTICATED_USER['UserName']?? This is essentially the information that is returned if you try . However, if you try something like , it does not work. The only way I have been able to use this information so far is to put in a form, and pass it in a REQUEST to another page. But I want to be able to get this information directly. I have even tried REQUEST.set('myUser', AUTHENTICATED_USER) inthe header, but this has the same problem (unsurprisingly) as AUTHENTICATED_USER itself. Any hints? Thanks, JP From julian@zereau.net Tue Mar 2 13:06:21 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 13:06:21 -0000 (GMT) Subject: [Zope] calling a function with arguments? Message-ID: I want to call a function I have made, with arguments. 1) is there any way to call it direct, complete with module name? It would mean getting Zope to import that module. 2) I know I can put it in an external metod and use but it needs arguments, so I'll need to set and re-set the same DTML-namespace variable throughout the document, in which case, how do I alter/set DTML varibles from within DTML? --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 13:58:23 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 08:58:23 -0500 Subject: [Zope] AUTHENTICATED_USER Message-ID: <613145F79272D211914B0020AFF64019FD7A@GANDALF> > Does anyone have any more information on AUTHENTICATED_USER? > We saw a while > back that it has properties (AUTHENTICATED_USER.has_role(['Manager', > 'Editor'])). I would like to be able to get the user name, > and use that to > index simple files for users. Is there something like > AUTHENTICATED_USER['UserName']?? This is essentially the > information that is > returned if you try . However, > if you try > something like , it does not > work. AUTHENTICATED_USER itself is an object -- the reason gives you the user name is that it effectively does an str() on the user object. To work with the user name directly, you can use the getUserName() method of the user object: Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 13:49:14 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 08:49:14 -0500 (EST) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On Tue, 2 Mar 1999 julian@zereau.net wrote: > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same DTML-namespace > variable throughout the document, in which case, how do I alter/set DTML > varibles from within DTML? > I am not sure I understand your problem. Default arguments can be given in the definition of the function. If you need to pass a variable in an external method you can just do Additionally the self argument in the external method definition is replaced by the object (or containing folder) that calls the method so you have access to the namespace of the object through self. Pavlos From sfranke@cdc-group.com Tue Mar 2 14:05:25 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 15:05:25 +0100 Subject: [Zope] calling a function with arguments? Message-ID: <01E40461E003D21195CC0080296495D80B12B2@gates.cdc-group.com> julian@zereau.net wrote: > I want to call a function I have made, with arguments. > > 1) is there any way to call it direct, complete with module name? It > would mean > getting Zope to import that module. > Where is your function located? Is it an external method? In this case imports in the method's file work fine, but only inside Zope's search path (practically, the installation path and lib subdirectory). A good place to put your modules and packages is the lib//shared/ dir. > > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same > DTML-namespace > variable throughout the document, in which case, how do I alter/set > DTML > varibles from within DTML? > try (the quotation marks are important) Stefan From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From julian@zereau.net Tue Mar 2 14:12:48 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 14:12:48 -0000 (GMT) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On 02-Mar-99 Pavlos Christoforou wrote: > Thanks, this is exactly what I was looking for. --- Julian Morrison Programmer (Zereau Ltd) From mj@antraciet.nl Tue Mar 2 14:34:37 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 15:34:37 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <153C1D93564@sahara.cspt.es> Message-ID: <4.1.19990302144353.00ba8560@lisp.atmm.nl> At 14:23 02/03/99 , JP Glutting wrote: >Does anyone have any more information on AUTHENTICATED_USER? We saw a while >back that it has properties (AUTHENTICATED_USER.has_role(['Manager', >'Editor'])). I would like to be able to get the user name, and use that to >index simple files for users. Is there something like >AUTHENTICATED_USER['UserName']?? This is essentially the information that is >returned if you try . However, if you try >something like , it does not >work. > Use More hints linke this can be found in the User.py file in your lib/python/AccessControl directory. The following functions could be usefull: getUserName(self): Return the username of a user getRoles(self): Return the list of roles assigned to a user. getDomains(self): Return the list of domain restrictions for a user allowed(self, parent, roles=None): Check wether the user has access to parent hasRole(self, parent, roles=None): Check wether the user has the specified roles has_role(self, roles): Check wether the user has the specified roles allowed & hasRole are one and the same. When called with parent=None, it just returns wether the user has the named roles. has_role also checks for roles, but doesn't automatically include the Anonymous role. So, hasRole(None, 'Anonymous') always returns true, but has_role('Anonymous') returns false for every user that has been authenticated. Note that AUTHENTICATED_USER is always defined, also for anonymous access. Here is a little example of what you could do with these functions: Display user info You are the user named .

You have the following roles:

  • You have no roles defined.

    You are allowed to log in from the following domains:

  • You can log in from any domain.

    You have the 'Manager' role.
    You have the 'Anonymous' role. You are therefore an anonymous user.
    You have the 'nonexistent' role.
    The last call to has_role is to show that the user defined in the 'access' file in the root folder of your Zope installation, has ALL roles, including non-existent ones. And even more interesting, the call to getRoles() will get you 'manage', a misspelled version of the 'Manager' role. This is probably the only way to reliably recognize the superuser. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Brian@digicool.com Tue Mar 2 15:08:47 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 10:08:47 -0500 Subject: [Zope] Re: [Crew] External Methods? Message-ID: <613145F79272D211914B0020AFF64019FD7B@GANDALF> > I understand the security problems inherent in > ExternalMethods; unfortunately, > without them, Zope is merely an "also-ran" in the web > applicaton race, from my > perspective. DTML in isolation is not an "ASP-killer." > > I'm CC'ing the Zope list, in hopes that someone there can > either allay or slay > our fears. > > It seems to me that the security problem is that > ExternalMethods can get access > to "sibling objects" of the object on which they are invoked, > right? I mean, if > we could make the siblings inaccessible, and acquired > properties read-only, then > we should be ok, no? Ugh, I don't grok acquisition well > enough to tackle that > myself, I fear. Well, it's actually deeper than that. You are correct in saying that DTML alone is not an ASP-killer. Consider the similarities between Zope and, for example, ASP/COM (though the same holds true for practically any other system as well): ASP lets you use the services provided by (COM) objects, which may be provided by the server or provided independently. I'm sure that MS tries to make the server-provided objects fairly safe, but there is _nothing_ stopping a programmer from writing and installing a COM object with an evil() method that wipes out your C: drive, except the fact that presumably the sysadmin exercises some control over making these independent services available. The same holds true for Zope (and any other app server out there). Like ASP/COM, External Methods give you the ability to provide more powerful services for use by your application. It also gives you exactly the same problems (though I'm sure that evil() method could be developed in a quarter of the time in Python :) Basically, with power comes responsibility, and I can't really imagine any system that could _safely_ allow possibly-untrusted people to write (basically) arbitrary code. It's not even really a matter of what services are or are not available to those people. I'm sure that many, many hours and much brain-power went into the design of Java's security mechanisms. Even so, if I were a web site manager I still couldn't let untrusted users write their own arbitrary java code to run in my web or app server. Even after I had figured out a way to wall off every service I could think of that could possibly be harmful, the user could still probably just do the Java equivalent of: while 1: pass Zope DTML goes to a good deal of trouble to minimize these problems in DTML itself, and we would certainly consider any concrete ideas on how to make External Methods safer. Can you give me some examples of other app servers that you feel deal with safety of external services in a better way? I'd be happy to do some looking into how others are dealing with this. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From michel@digicool.com Tue Mar 2 15:18:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:18:30 -0500 Subject: [Zope] Help with editing Product dtml files Message-ID: <613145F79272D211914B0020AFF6401907BABA@GANDALF> > -----Original Message----- > From: Piers Lauder [mailto:piers@cs.su.oz.au] > Sent: Tuesday, March 02, 1999 1:54 AM > To: Zope Mailinglist > Subject: [Zope] Help with editing Product dtml files > > > I'm making a Zope "Product" for managing and creating student surveys > (which I hope to contribute via zope.org) but I'm having > trouble with a > couple of techniques: > > 1. How does one enable a dtml file that is instantiated as in > my_dtml = HTMLFile('my', globals()) > available for editing in the products' management screen? > Make your Product a Folderoid (zopespeak for a Folder Object) that contains it's own user interface which the manager can edit. Your __init__ function initially loads the documents off disk into the Folder. Confera and NotMail both do this (Confera does it a little smarter). > There's probably more to this - as at the moment the management > screen goes straight to the "index_html" form as with the "Poll" > Product. > > 2. What's the approved way to catch database errors in methods? > I'll let someone who has more experience with those areas answer this one. :) > I'm creating tables on the fly, and need to check if the table > exists before trying to create it. (I'd use a "tables" method if > all the database interfaces supported it. I'd also use > a try/except > but the database objects have different names for their > exceptions.) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From julian@zereau.net Tue Mar 2 15:17:00 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 15:17:00 -0000 (GMT) Subject: [Zope] Re: [Crew] External Methods? In-Reply-To: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: On 02-Mar-99 Brian Lloyd wrote: > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. There absolutely does need to be an "unprotected mode" available though - the system designers might *need* it to do scary destructive things like deleting files. Zope should not get in the way. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 15:34:35 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 10:34:35 -0500 (EST) Subject: [Zope] Zope needs a FAQ. Message-ID: Zopistas Seems that the activity on the Zope list has exploded. A lot of the questions I read in the posts have been raised many times in the past. I believe a FAQ on the Zope site is neccessary. Do the folks at digital creations have time to set it up? Pavlos From michel@digicool.com Tue Mar 2 15:54:18 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:54:18 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BABB@GANDALF> > -----Original Message----- > From: Martijn Pieters [mailto:mj@antraciet.nl] > Sent: Tuesday, March 02, 1999 9:35 AM > To: JP Glutting; zope@zope.org > Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. > > This is an excellent post. I want to add that _getPassword() is a handy function also if you want to use your Zope user to authenticate into an external system, like POP3 or IMAP. -Michel > Use > > More hints linke this can be found in the User.py file in your > lib/python/AccessControl directory. > > The following functions could be usefull: > > getUserName(self): Return the username of a user > getRoles(self): Return the list of roles assigned to a user. > getDomains(self): Return the list of domain restrictions for a user > allowed(self, parent, roles=None): Check wether the user has > access to parent > hasRole(self, parent, roles=None): Check wether the user has > the specified > roles > has_role(self, roles): Check wether the user has the specified roles > > allowed & hasRole are one and the same. When called with > parent=None, it > just returns wether the user has the named roles. has_role > also checks for > roles, but doesn't automatically include the Anonymous role. So, > hasRole(None, 'Anonymous') always returns true, but > has_role('Anonymous') > returns false for every user that has been authenticated. > > Note that AUTHENTICATED_USER is always defined, also for > anonymous access. > > Here is a little example of what you could do with these functions: > > Display user info > You are the user named .

    > > > You have the following roles: > > >

  • > > > You have no roles defined. > >

    > > > You are allowed to log in from the following domains: > > >

  • > > > You can log in from any domain. > >

    > > > You have the 'Manager' role.
    > > > > You have the 'Anonymous' role. You are therefore an anonymous > user.
    > > > > You have the 'nonexistent' role.
    > > > > The last call to has_role is to show that the user defined in > the 'access' > file in the root folder of your Zope installation, has ALL > roles, including > non-existent ones. And even more interesting, the call to > getRoles() will > get you 'manage', a misspelled version of the 'Manager' role. This is > probably the only way to reliably recognize the superuser. > > > -- > M.J. Pieters, Web Developer > | Antraciethttp://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From bkc@murkworks.com Tue Mar 2 14:42:43 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 10:42:43 -0400 Subject: [Zope] ZServer and MSIE (long & detailed) In-Reply-To: Message-ID: <199903021536.KAA27681@anvil.murkworks.com> On 1 Mar 99, at 20:36, Dave G wrote: > Has anyone else experienced a problem getting Explorer to connect with > Zserver? I have no problem with any version of Navigator but MSIE 3.01 > and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an > "error with Explorer's internet extensions has failed". Edit Zserver/medusa/http_server.py around line 55, change to: use_chunked = 0 Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From Armin.Tschammer@oi42.kwu.siemens.de Tue Mar 2 15:53:07 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Tue, 02 Mar 1999 16:53:07 +0100 Subject: [Zope] ZPublisher or Bobo and stdout Message-ID: <36DC0962.7996940D@oi42.kwu.siemens.de> Hi, The followowing problem seems very fundamental to me. I already did a post to this group to this topic and I got the following answer: On Wed, 13 Jan 1999, Dr. Armin Tschammer wrote: > I publish the following Modul with Bobo: > Very simple: > > hello.py: > > import sys, os, time > import DocumentTemplate > > lib=sys.path[0] > sys.path.append(os.path.join(lib,'DT')) > > def hello(): > "Display a greeting" > # print "rrr" > X3 = DocumentTemplate.HTMLFile(lib+'/hello.dtml') > return X3() > Now, when I make the commentated line print "rrr" active, I get > Internal Server Error The "print" goes directly to the webserver, which confused it: it expects HTTP headers like "HTTP/1.0 200 Okay". The "return" sends your data to *Zope*, which then does the header stuff for you. Same with cookies, content-type, etc. Summary: dont use 'print', or redirect stdout to a log file. Now the problem is deeper, what shall I do when I am import C++ Modules in Python ( extending Python), and that modules are writing to the stdout via "cout" or "printf", I have no influence to that. If I change the stdout via "freopen( "file, "wr", stdout )" or stuff like that, I have no chance to switch back to the *real* stdout ( look at the c-faq of comp.lang.c ), and I *have to* switch back because of the cgi-mechnism, which uses ZPublisher. The only the chance to handle stuff like that is to work with two processes in the Zopemechanism. A Zopeserver which tells the Zope Client to start a pythonfunction. Now all stdout happens on the client and the server listen for a string on a socket ( or something similar ). Now when the server gets the string it does all necessary wrapping ( content-type and so on ), and send it to the Xserver via its stdout. Or is there a less complicate solution ? Thanks in advance Armin From Paul@digicool.com Tue Mar 2 16:04:31 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 11:04:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E37@GANDALF> raver wrote: > I give up! That's unfortunate, but we understand. Getting *anything* to work with Apache's mod_rewrite module is quite a chore. It doesn't help that distributions like RedHat 5.2 ship it in a broken way, then people blame us for it, then we track down a problem that is completely outside Zope. Did you follow the recommendations to start with the built-in webserver before trying integrate with Apache? If so, did that work? --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From mj@antraciet.nl Tue Mar 2 16:04:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 17:04:41 +0100 Subject: [Zope] Zope needs a FAQ. In-Reply-To: Message-ID: <4.1.19990302165933.00bd1160@lisp.atmm.nl> At 16:34 02/03/99 , Pavlos Christoforou wrote: >Zopistas > >Seems that the activity on the Zope list has exploded. A lot of the >questions I read in the posts have been raised many times in the past. I >believe a FAQ on the Zope site is neccessary. > >Do the folks at digital creations have time to set it up? > >Pavlos > I believe this is allready under construction: http://www.zope.org/Community/Services By far from incomplete, but it is the right direction. I think Amos' FAQ tool should be utilized there somewhere, and maybe some people from this list willing to help out DC should fill it in, because it looks like Ken Manheimer (who has been charged with community communications) allready seems overloaded. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From bkc@murkworks.com Tue Mar 2 15:05:41 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 11:05:41 -0400 Subject: [Zope] Request.py and duplicate column names In-Reply-To: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Message-ID: <199903021559.KAA27718@anvil.murkworks.com> On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > 1. When trying to do a join (a lazy query, I know) like: > > select a.*, b.* > from tablea a, tableb b > where a.b_id=a.id What about select * from tablea a, tableb b where a.b_id=a.id Wouldn't this give you vars called a.id and b.id? Hmmm... I bet Zope won't like that. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From julian@zereau.net Tue Mar 2 16:19:38 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 16:19:38 -0000 (GMT) Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: On 02-Mar-99 Michel Pelletier wrote: > > This is an excellent post. I want to add that _getPassword() is a handy > function also if you want to use your Zope user to authenticate into an > external system, like POP3 or IMAP. It occurs to me that a DTML document could contain this in a transparent sendmail form, assuming there is already a handy Mailhost set up, to capture and mail off the password of anyone browsing the page... --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 16:34:26 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 11:34:26 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF64019FD7C@GANDALF> > > This is an excellent post. I want to add that > _getPassword() is a handy > > function also if you want to use your Zope user to > authenticate into an > > external system, like POP3 or IMAP. > > It occurs to me that a DTML document could contain this in a > transparent > sendmail form, assuming there is already a handy Mailhost set > up, to capture > and mail off the password of anyone browsing the page... Not really -- you can't access _getPassword() from DTML. You would have to write an external method to do that (which implies that you have access to the filesystem, and could get the passwords anyway if you wanted them that bad...) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From zopelist@regalint.com Tue Mar 2 16:37:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 11:37:27 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: While we are on the subject of AUTHENTICATED_USER, I would like my users to be able to "logout" so that they then become anonymous again. Any ideas? I have seen this on Dejanews. It would be useful so that authorized users don't leave themselves logged in if they don't quit Netscape. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From chris.hunter@humancode.com Tue Mar 2 16:45:56 1999 From: chris.hunter@humancode.com (Chris Hunter) Date: Tue, 02 Mar 1999 10:45:56 -0600 Subject: [Zope] Request.py and duplicate column names References: <199903021559.KAA27718@anvil.murkworks.com> Message-ID: <36DC15C4.5527844D@humancode.com> Brad Clements wrote: > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > 1. When trying to do a join (a lazy query, I know) like: > > > > select a.*, b.* > > from tablea a, tableb b > > where a.b_id=a.id Is there any chance that you're trying to do something like: select * from a, b where a.b_id = b.id ^ Note that I'm joining a field in a to a field in b here (not 2 fields in a) Hope this helps. --chris From M.Faassen@vet.uu.nl Tue Mar 2 16:45:22 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:45:22 +0100 Subject: [Zope] Zope needs a FAQ. References: <4.1.19990302165933.00bd1160@lisp.atmm.nl> Message-ID: <36DC15A2.39FC35C6@pop.vet.uu.nl> Martijn Pieters wrote: > > At 16:34 02/03/99 , Pavlos Christoforou wrote: > > >Seems that the activity on the Zope list has exploded. A lot of the > >questions I read in the posts have been raised many times in the past. I > >believe a FAQ on the Zope site is neccessary. [snip] > I believe this is allready under construction: > http://www.zope.org/Community/Services > > By far from incomplete, but it is the right direction. I think Amos' FAQ tool > should be utilized there somewhere, and maybe some people from this list > willing to help out DC should fill it in, because it looks like Ken Manheimer > (who has been charged with community communications) allready seems overloaded. More generally speaking, we should be organizing the Zope documentation project. There was word of it before, but haven't heard much on it recently. In fact, the messages that I can find in my mailbox on it is people saying we should start such a project :). I'd obviously be very useful. As an example: I myself have sent some (obscure) questions to the list the week before last, and have only managed to receive an answer that confused me more (I welcomed the answer though, of course!). I sent more questions and observations last week, but haven't received answers yet (perhaps it's because I'm doing something fundamentally wrong with Zope but I'd like to hear it if that's so). Of course I'd like to see my questions answered. A FAQ would help filter out all the less obscure questions so that my obscure questions might get answers. :) So, the Zope Communication Project (hereby started if it doesn't exist yet, this is open source after all :) should make its first priority to create a fairly exhaustive FAQ. I currently have some time to invest in the ZDP (he said, tempting fate; work's slow right now, but this can change quickly). Anyway, I'll help. If only with the *questions* side of the FAQ, perhaps, but I can help. :) Initial Plan of Action for the ZDP: - Produce a fairly exhaustive FAQ, mining the mailing list for good questions and answers. - Organize the ZDP itself. :) Regards, Martijn From Dave.Goodrich@Premera.com Tue Mar 2 16:51:53 1999 From: Dave.Goodrich@Premera.com (Dave Goodrich) Date: Tue, 2 Mar 1999 08:51:53 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: <1DBBCA4F9A86D21196BB0008C7A48FD6041A2A@MLTRD31> (Dummy Dummy Dummy......) I should have known that, it was a stumbling block with Mac cgi's, but I never noticed it when I checked http_server.py. I imagine that will fix it. It's the little stuff that gets ya, thanks. DAve. > -----Original Message----- > From: Brad Clements [mailto:bkc@murkworks.com] > Sent: Tuesday, March 02, 1999 6:43 AM > To: Dave G; zope@zope.org > Subject: Re: [Zope] ZServer and MSIE (long & detailed) > > > On 1 Mar 99, at 20:36, Dave G wrote: > > > Has anyone else experienced a problem getting Explorer to > connect with > > Zserver? I have no problem with any version of Navigator > but MSIE 3.01 > > and 4.0 and 4.5 for both Mac and Windows throw up an error > box claiming an > > "error with Explorer's internet extensions has failed". > > > Edit Zserver/medusa/http_server.py > > around line 55, change to: > > use_chunked = 0 > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 > From M.Faassen@vet.uu.nl Tue Mar 2 16:54:16 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:54:16 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Hi there, Hereby I announce in absolute adhoc anarchistic fashion the Zope Documentation Project. The Zope Documentation Project aims to generate documention on anything Zope. The Zope Documentation Project needs people who wants to help. It needs these people to get organized. To get focused, I propose the ZDP's initial project is to provide FAQs on various Zope topics. We can mine the mailing list for good questions and answers. The ZDP asks everybody to contribute. Right now we need everything. :) We need questions and answers, and we need to categorize these in separate FAQ sections. We need Zope webspace somewhere to put up the FAQ, I assume using the FAQ product. We need to develop the FAQ product further, if necessary. We need whatever you can think of. The prime mean of communications for the ZDP is the Zope mailing list, until further notice. I suggest that to keep the mailing list somewhat organized we prepend our mailing list subjects with '[ZDP]'. If somebody has a better way, we'll do it a better way. Note that while I'm sending out this message, I'm not anything official. I'm just attempting to get the ball rolling. *nudges the ball* Regards, Martijn From wmlph@d033.ml.uwcm.ac.uk Tue Mar 2 17:01:20 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 2 Mar 1999 17:01:20 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Yay, Martin. Cheers from all involved. Phil ----- Original Message ----- From: Martijn Faassen To: Sent: Tuesday, March 02, 1999 4:54 PM Subject: [Zope] [ZDP] Announcing the Zope Documentation Project >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > >The Zope Documentation Project needs people who wants to help. It needs >these people to get organized. > >To get focused, I propose the ZDP's initial project is to provide FAQs >on various Zope topics. We can mine the mailing list for good questions >and answers. > >The ZDP asks everybody to contribute. Right now we need everything. :) >We need questions and answers, and we need to categorize these in >separate FAQ sections. We need Zope webspace somewhere to put up the >FAQ, I assume using the FAQ product. We need to develop the FAQ product >further, if necessary. We need whatever you can think of. > >The prime mean of communications for the ZDP is the Zope mailing list, >until further notice. I suggest that to keep the mailing list somewhat >organized we prepend our mailing list subjects with '[ZDP]'. If somebody >has a better way, we'll do it a better way. > >Note that while I'm sending out this message, I'm not anything official. >I'm just attempting to get the ball rolling. > >*nudges the ball* > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From robin@alldunn.com Tue Mar 2 17:14:51 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 09:14:51 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. Message-ID: <008601be64d0$33854620$8725d2d1@rogue.jenkon-dev.com> > >The objects that make up the product should normally be automaticly >decompressed and imported into Zope, but the decrompressing seems to be >failing. > Could it be a 1.5.1 vs 1.5.2b2 thing? I have 1.5.1 and it failed for me. Is the zlib.pyd in 1.5.2 based on a newer version of the zlib library that may not be forward compatible? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From oyvindmo@pvv.ntnu.no Tue Mar 2 18:14:07 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:14:07 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) Message-ID: Trying to get started with Zope on a FreeBSD machine. I did the following: * Downloaded source distribution of Zope-1.10.2 * Extracted it * cd into directory and ran 'python wo_pcgi.py' (no error messages) * ./start I then get the following in var/serve.log (slightly edited for slightly more readability): Traceback (innermost last): File "serve.py", line 90, in ? ZopeHTTPServer.main(sys.argv[1:]+[os.path.join(os.getcwd(),'lib','python','Main.py')]) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/Main.py", line 90, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/__init__.py", line 99, in ? import SingleThreadedTransaction, Persistence, PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SingleThreadedTransaction.py", line 110, in ? from PickleDictionary import PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/PickleDictionary.py", line 91, in ? import marshal,time,Persistence,SimpleDB, PickleJar File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", line 104, in ? from cPickle import Pickler, Unpickler ImportError: /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I don't have any experience with Zope or even Python, but am I right in guessing that this looks like a problem with the python binary and not with Zope? Any ideas to precisely what the problem might be? python is v1.5.1. C compiler used is gcc 2.7.2.x. -- Øyvind Møll oyvindmo@pvv.ntnu.no From raver@box.dust.za.net Tue Mar 2 18:29:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 2 Mar 1999 19:29:03 +0100 Subject: [Zope] Zope and Apache - MADE IT! In-Reply-To: <613145F79272D211914B0020AFF640190D9E37@GANDALF>; from Paul Everitt on Tue, Mar 02, 1999 at 11:04:31AM -0500 References: <613145F79272D211914B0020AFF640190D9E37@GANDALF> Message-ID: <19990302192903.A5042@RaVER.duck.org> On Tue, Mar 02, 1999 at 11:04:31AM -0500, Paul Everitt wrote: > > raver wrote: > > I give up! > > That's unfortunate, but we understand. Getting *anything* to work with > Apache's mod_rewrite module is quite a chore. It doesn't help that > distributions like RedHat 5.2 ship it in a broken way, then people blame > us for it, then we track down a problem that is completely outside Zope. > > Did you follow the recommendations to start with the built-in webserver > before trying integrate with Apache? If so, did that work? > > --Paul > > Paul Everitt Digital Creations > paul@digicool.com 540.371.6909 > I finally got it working - just couldn't get it off my mind. Was kinda mindblowing the whole thing but finally - YES I MADE IT! :) What I did was to jump off the mod_rewrite thing and try let apache handle the authentication all together. At first I didn't know of the htpasswd binary (stupid as I am) so things didn't work at first. Then htpasswd lit my eyes - did the 'htpasswd -c' thing and ended up with a working AuthUserFile. Now the trick was to configure the damned thing in httpd.conf - this worked out ok: """ ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" AllowOverride None Options FollowSymLinks ExecCGI Order allow, deny Allow from all AddHandler cgi-script .cgi AuthType Basic AuthName Zope-in AuthUserFile /usr/local/apache/conf/zope_auth require valid-user # 'zope_auth' created with htpasswd -c /usr/local/apache/conf/zope_auth \ 'username' """ Actually - just like the manual tells me to. I did some wrong links and generally fucked things up. Thanks for keeping me going at least (that goes to all U ppl answering me) - sorry for taking up your time. Sture Lygren Sture Lygren From zopelist@regalint.com Tue Mar 2 18:25:51 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 13:25:51 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: Excellent! Maybe one of the Web Hosts who offer Zope hosting would be interested in the excellent public relations derived from hosting the ZDP. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Tue Mar 2 18:34:14 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 13:34:14 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: ; from Philip Aylesworth on Tue, Mar 02, 1999 at 01:25:51PM -0500 References: Message-ID: <19990302133414.09101@amber.org> On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > Excellent! > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > the excellent public relations derived from hosting the ZDP. > If not, I can probably provide resources (within reason :-) for this. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From oyvindmo@pvv.ntnu.no Tue Mar 2 18:44:16 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:44:16 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) In-Reply-To: References: Message-ID: * Oyvind Moll | | Trying to get started with Zope on a FreeBSD machine. [snip] | I then get the following in var/serve.log (slightly edited for | slightly more readability): [snip] | | File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", | line 104, in ? | from cPickle import Pickler, Unpickler | ImportError: | /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I discovered that my python binary was compiled without thread support. I think this is the case for many FreeBSD machines which haven't been updated recently-ish; maybe the ZDPers could mention this in a FAQ or something. Could the build script(s) check for proper thread support upon building? -- Øyvind Møll oyvindmo@pvv.ntnu.no From rob.page@digicool.com Tue Mar 2 18:58:27 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 2 Mar 1999 13:58:27 -0500 Subject: [Zope] RFQ: Upgd Netscape 2.x auth patch to Netscape 3.5.x Message-ID: <613145F79272D211914B0020AFF64019069109@GANDALF> Hello everyone: Some of you may know that many moons ago we (Brian) developed a plug-in for Netscape Enterprise Server (ES) 2.x (and FastTrack -- based on the same libraries) that addressed Netscape's nasty habit of removing authenticated_user information from the environment before calling CGI apps. Obviously, this has a deleterious effect on interesting zope applications. Fortunately (?), we are up to our armpits in projects and initiatives. As a result, we need someone to do a bit of work to upgrade the plug-in from ES 2.x to ES 3.5.x. I can provide the following files from our 2.x incarnation: o plug-in source code o obj.conf o magnus.conf The source code is only 153 lines of generously formatted C (w/lots of defs) so I'm hopeful that this isn't a HUGE task. I'm interested in hearing quotes from people in the community that have experience with the NSAPI and would, for a reasonable fee, develop, compile (Solaris 2.6 and NT4) and test an upgraded plug-in. The work would be contributed back under the ZPL. Naturally, I'd also entertain offers from people to do this for free! :^) --Rob P.S. - I KNOW there are some NSAPI wizards out there so don't be shy! -- Rob Page V: 540 371 6909 Digital Creations http://www.digicool.com From jae@kavi.com Tue Mar 2 19:41:57 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:41:57 -0800 (PST) Subject: [Zope] ZPublisher or Bobo and stdout In-Reply-To: <36DC0962.7996940D@oi42.kwu.siemens.de> Message-ID: On Tue, 2 Mar 1999, Dr. Armin Tschammer wrote: > Or is there a less complicate solution ? How about Mr. Creosote. This is a wonderful little utility from Jeff Bauer. It basically an example implementation of socket datagrams... ie. it lets you print out via a socket to a little server program. Its great for debugging Zope/Bobo apps. Here's Mr. Creosote's web page for more info... http://starship.python.net/crew/jbauer/creosote/index.html --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tseaver@palladion.com Tue Mar 2 19:43:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 13:43:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: <36DC3F4E.C7D86C0E@palladion.com> Brian Lloyd wrote: > > > > > > It seems to me that the security problem is that > > ExternalMethods can get access > > to "sibling objects" of the object on which they are invoked, > > right? I mean, if > > we could make the siblings inaccessible, and acquired > > properties read-only, then > > we should be ok, no? Ugh, I don't grok acquisition well > > enough to tackle that > > myself, I fear. > > Well, it's actually deeper than that. You are correct in saying > that DTML alone is not an ASP-killer. Consider the similarities > between Zope and, for example, ASP/COM (though the same holds true > for practically any other system as well): Please don't ge me wrong: I _like_ ExternalMethod / Product as a way to extend Zope. My comment is in the context of not (currently) being able to add ExternalMethods to my Zope demesne on starship, given the (quite legitimate) security concerns of the Zopemeister. > > ASP lets you use the services provided by (COM) objects, which may > be provided by the server or provided independently. I'm sure that > MS tries to make the server-provided objects fairly safe, but there > is _nothing_ stopping a programmer from writing and installing a COM > object with an evil() method that wipes out your C: drive, except the > fact that presumably the sysadmin exercises some control over making > these independent services available. I looked at the ExternalMethod source last night a bit: the actual method execution is done via an apply() call, after loading and compiling the code for the function. We might be able to come up with an alternate product which used a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python code stored in the Zbase itself. The particulars of my case are that the control structures of DTML are not quite powerful enough to accomplish my task; of course, strengthening them, even in a "sandbox" model, still leaves open the possibility for buggy/malicious code to do ugly things (like your example below). > > The same holds true for Zope (and any other app server out there). > Like ASP/COM, External Methods give you the ability to provide more > powerful services for use by your application. It also gives you > exactly the same problems (though I'm sure that evil() method could > be developed in a quarter of the time in Python :) > > Basically, with power comes responsibility, and I can't really imagine > any system that could _safely_ allow possibly-untrusted people to write > (basically) arbitrary code. It's not even really a matter of what services > are or are not available to those people. I'm sure that many, many hours > and much brain-power went into the design of Java's security mechanisms. > Even so, if I were a web site manager I still couldn't let untrusted > users write their own arbitrary java code to run in my web or app > server. > > Even after I had figured out a way to wall off every service I could > think of that could possibly be harmful, the user could still probably just do > the Java equivalent of: > > while 1: > pass > > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. Any Turing machine can do "while 1: pass", so no sufficiently general syntax is "safe" from this attack. Actually, the possibility which seemed most interesting was Doug Wyatt's suggestion of "federating" a set of independent Zbases under one (at least apparently one) server. Then any damage my ExternalMethod did would be to the Zbase would be on my own head, at least. If that server were actually a process running as me, then standard system security procedures should probably be fine. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jae@kavi.com Tue Mar 2 19:50:50 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:50:50 -0800 (PST) Subject: [Zope] ZMySQLDA installation In-Reply-To: <36DB1478.E2D7915E@avalongroup.net> Message-ID: On Mon, 1 Mar 1999, Timothy Grant wrote: > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: Which distribution are you using? > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it right. > I then downloaded the ZMySQLDA from the Zope site. You might want to consider switching to one of the official binary kits available from MySQL's homepage. MySQL is notoriously picky about how it is compiled. > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 Looks like you didn't install the development libraries for python (python-devel or python-dev). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From petrilli@amber.org Tue Mar 2 19:56:03 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 14:56:03 -0500 Subject: [Zope] Re: External Methods? In-Reply-To: <36DC3F4E.C7D86C0E@palladion.com>; from Tres Seaver on Tue, Mar 02, 1999 at 01:43:10PM -0600 References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> Message-ID: <19990302145603.03234@amber.org> On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > I looked at the ExternalMethod source last night a bit: the actual method > execution is done via an apply() call, after loading and compiling the code for > the function. We might be able to come up with an alternate product which used > a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python > code stored in the Zbase itself. This was an idea I'd proffered, but honestly haven't looked at enough yet to know whether it would work... it SHOULD work, but it might require some modifications to the aquisition code, but I've not looked neough yet. > The particulars of my case are that the control structures of DTML are not quite > powerful enough to accomplish my task; of course, strengthening them, even in a > "sandbox" model, still leaves open the possibility for buggy/malicious code to > do ugly things (like your example below). Well, it might help if you offered what control strucuture you need, we might be able to come up wit han interim solution. > Actually, the possibility which seemed most interesting was Doug Wyatt's > suggestion of "federating" a set of independent Zbases under one (at least > apparently one) server. Then any damage my ExternalMethod did would be to the > Zbase would be on my own head, at least. If that server were actually a process > running as me, then standard system security procedures should probably be fine. > TO me this is just a hack to get around it near term, and doesn't fix the problem. Also if you have 100 users, do you have 100 instances of zope running under 1 ZServer? That sounds like a true administrative nightmare... And substantial overkill. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rwolff@noao.edu Tue Mar 2 20:12:36 1999 From: rwolff@noao.edu (Richard Wolff) Date: Tue, 2 Mar 1999 13:12:36 -0700 Subject: [Zope] FTop level name Message-ID: <199903022012.NAA27462@daikon.tuc.noao.edu> This feels so dumb but: How do I change the manage page so it says, for example, "Plutonia" next to the top folder, instead of "Zope"? From tseaver@palladion.com Tue Mar 2 20:16:27 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 14:16:27 -0600 Subject: [Zope] Re: [Crew] Re: External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> <19990302145603.03234@amber.org> Message-ID: <36DC471B.686654F9@palladion.com> Christopher G. Petrilli wrote: > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > The particulars of my case are that the control structures of DTML are not quite > > powerful enough to accomplish my task; of course, strengthening them, even in a > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > do ugly things (like your example below). > > Well, it might help if you offered what control strucuture you need, we > might be able to come up wit han interim solution. Ok, the "teeth-cutting" example I am trying to implement generates math-facts problems for my five year old. In Python, two trivial functions: I _think_ this one is easy in DTML: def problem( max_term, operators ) : """ Generate a single math-fact problem whose terms are within range( max_term + 1 ), using one of the supplied operators. """ lhs = random.randrange( max_term + 1 ) rhs = random.randrange( max_term + 1 ) operation = operators[ random.randrange( len( operators ) ) ] return ( lhs, operation, rhs ) But not this one: def gen_problem( max_term, operators ) : """ Generate a math-fact problem whose terms and results are all within range( max_term ), using the supplied operators. """ while 1 : # Arbitrary looping! (could benefit from # the dreaded assignment-in-conditional :) probStr = "%d %s %d" % problem( max_term, operators ) result = eval( probStr ) if 0 <= result and result <= max_term : return probStr And of course, the DTML syntax for something like this is going to be ugly. > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > suggestion of "federating" a set of independent Zbases under one (at least > > apparently one) server. Then any damage my ExternalMethod did would be to the > > Zbase would be on my own head, at least. If that server were actually a process > > running as me, then standard system security procedures should probably be fine. > > > > TO me this is just a hack to get around it near term, and doesn't fix > the problem. Also if you have 100 users, do you have 100 instances of > zope running under 1 ZServer? That sounds like a true administrative > nightmare... And substantial overkill. One instance per "sandbox", not one per user (although on starship this is a distinction without a difference). The "content manager only" applications will do fine in a single Zope instance, as now. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Jose.Lacal@icn.siemens.com Tue Mar 2 21:02:05 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 2 Mar 1999 16:02:05 -0500 Subject: [Zope] Zope 1.10.2 dies every so often. Message-ID: <85256728.007360D6.00@li01.lm.ssc.siemens.com> Folks: My installation of Zope 1.10.2 dies every so often, from once a week to twice a day (like today). I am running Red Hat 5.0 on a 486 / 32 Mb RAM. I upgraded from Zope 1.9.0 to 1.10.2 /var/server.errors says: WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006. brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:46] "GET /documents/portable.pdf HTTP/1.1" 200 - Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:47] "GET /documents/portable.pdf HTTP/1.1" 200 -Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+ IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:54] "GET /documents/portable.pdf HTTP/1.1" 200 - Obviously I have something wrong here. Any ideas? TIA. From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 21:00:18 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 16:00:18 -0500 (EST) Subject: [Zope] Re: [Crew] Re: External Methods? In-Reply-To: <36DC471B.686654F9@palladion.com> Message-ID: In my experience many situations where external methods are needed do not require access to the Zope data tree, like the math test example you presented. One approach is to use a second server that does XML-RPC (Fredrik Lundh has already written a client and a simple server) and set an account/folder where everybody can upload their scripts and access them through XML-RPC calls from their Zope environment. I suppose we can write a product that provides the client site of the XML-RPC based on Fredrik's implementation. As for the server site Jim once mentioned that the support should go in ZPublisher but initially a simple server based on python standard libraries will be adequate. Or use the newly released asyncore libs though I suspect a multithreading server will be better in this situation. If however one requires access to the 'self' argument of an external method such an approach will not be adequate. Usually though one can collect the relevant parameters by using DTML calls and send them to the XML-RPC server for processing. Pavlos On Tue, 2 Mar 1999, Tres Seaver wrote: > Christopher G. Petrilli wrote: > > > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > > > The particulars of my case are that the control structures of DTML are not quite > > > powerful enough to accomplish my task; of course, strengthening them, even in a > > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > > do ugly things (like your example below). > > > > Well, it might help if you offered what control strucuture you need, we > > might be able to come up wit han interim solution. > > Ok, the "teeth-cutting" example I am trying to implement generates math-facts > problems for my five year old. In Python, two trivial functions: > > > I _think_ this one is easy in DTML: > > def problem( max_term, operators ) : > """ Generate a single math-fact problem whose terms are within > range( max_term + 1 ), using one of the supplied operators. > """ > lhs = random.randrange( max_term + 1 ) > rhs = random.randrange( max_term + 1 ) > operation = operators[ random.randrange( len( operators ) ) ] > return ( lhs, operation, rhs ) > > But not this one: > > def gen_problem( max_term, operators ) : > """ Generate a math-fact problem whose terms and results are all within > range( max_term ), using the supplied operators. > """ > > while 1 : # Arbitrary looping! (could benefit from > # the dreaded assignment-in-conditional :) > > probStr = "%d %s %d" % problem( max_term, operators ) > result = eval( probStr ) > > if 0 <= result and result <= max_term : > return probStr > > And of course, the DTML syntax for something like this is going to be ugly. > > > > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > > suggestion of "federating" a set of independent Zbases under one (at least > > > apparently one) server. Then any damage my ExternalMethod did would be to the > > > Zbase would be on my own head, at least. If that server were actually a process > > > running as me, then standard system security procedures should probably be fine. > > > > > > > TO me this is just a hack to get around it near term, and doesn't fix > > the problem. Also if you have 100 users, do you have 100 instances of > > zope running under 1 ZServer? That sounds like a true administrative > > nightmare... And substantial overkill. > > One instance per "sandbox", not one per user (although on starship this is a > distinction without a difference). The "content manager only" applications will > do fine in a single Zope instance, as now. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From aaron@cs.rutgers.edu Tue Mar 2 21:10:50 1999 From: aaron@cs.rutgers.edu (Aaron Watters) Date: Tue, 2 Mar 1999 16:10:50 -0500 (EST) Subject: [Zope] Re: [Crew] Re: [Zope] Re: [Crew] Re: External Methods? Message-ID: <199903022110.QAA22581@athos.rutgers.edu> Suggestion: for python-python data transfer and storage XML-RPC is overkill. Python already has marshal which will be a lot faster and I think do the same thing. Also, if you haven't, please have a look at what I did using gadfly and cgi. I know it's more conventional and hence boring, but nevertheless... http://starship.skyport.net/crew/aaron_watters/kwParsing/chatcgi.cgi (source included). -- Aaron Watters From robin@alldunn.com Tue Mar 2 21:25:20 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 13:25:20 -0800 Subject: [Zope] Setting properties based on security Message-ID: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> I have a folder with various boolean properties associated with it which are accessed by the dtml docs as flags for enabling or disabling content. Turn off the flag and a chunk of the page goes away when it is next viewed. This works great, but I would like to associate that behaviour with the security attributes. In other words, when somebody in the Anonymous role is viewing objects in the folder the properties should be unset, but when users in the manager (or some other specific role) view the pages then the properties should be set and those parts of the pages are activated. How can this be done? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From klm@digicool.com Tue Mar 2 20:14:58 1999 From: klm@digicool.com (Ken Manheimer) Date: Tue, 2 Mar 1999 15:14:58 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF640190BED65@GANDALF> Martijn Faassen wrote: > Hereby I announce in absolute adhoc anarchistic fashion the Zope > Documentation Project. The Zope Documentation Project aims to generate > documention on anything Zope. Thank you, Martijn, you've made my day! This is extremely cool. As you might expect, here at digicool we're yearning to produce more and better documentation, and, as with other things, we want to have more time and energy to do it than we do. This kind of effort from you, and from anyone else who can help, is *severely* appreciated. I know i'll be participating - question is, besides scraping together the time we can, how else can digicool help? Some thoughts, below... > The Zope Documentation Project needs people who wants to help. It needs > these people to get organized. > > To get focused, I propose the ZDP's initial project is to provide FAQs > on various Zope topics. We can mine the mailing list for good questions > and answers. > > The ZDP asks everybody to contribute. Right now we need everything. :) > We need questions and answers, and we need to categorize these in > separate FAQ sections. We need Zope webspace somewhere to put up the > FAQ, I assume using the FAQ product. We need to develop the FAQ product > further, if necessary. We need whatever you can think of. > > The prime mean of communications for the ZDP is the Zope mailing list, > until further notice. I suggest that to keep the mailing list somewhat > organized we prepend our mailing list subjects with '[ZDP]'. If somebody > has a better way, we'll do it a better way. Some thoughts: - We would be happy to provide a mailing list or two for you all - If it makes sense (logistically, for us as well as for you), we could host the FAQ stuff or whatever on zope.org. This we'll have to discuss - both what all might want, and what we can safely and effectively do... (I've been thinking about requirements for a collaborative FAQ mechanism, which can be tricky if you want it to be available for contribution to the community in general, yet still remain organized enough for people to find what they're seeking. An interesting problem...) > > Note that while I'm sending out this message, I'm not anything official. > I'm just attempting to get the ball rolling. > > *nudges the ball* Yay! Ken klm@digicool.com From Paul@digicool.com Tue Mar 2 20:29:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 15:29:56 -0500 Subject: [Zope] Anyone want to give a talk about Zope at WWW8? Message-ID: <613145F79272D211914B0020AFF640190D9E4A@GANDALF> David wrote: > http://www.utoronto.ca/ian/WWW8/sessions.html > > See session 6, run by our friend Cameron Laird. Actually I emailed a talk proposal for the last one (Brian Behlendorf's Open Source one). --Paul From Anthony Baxter Tue Mar 2 22:20:50 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 09:20:50 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Tue, 02 Mar 1999 15:34:37 BST." <4.1.19990302144353.00ba8560@lisp.atmm.nl> Message-ID: <199903022220.JAA08390@mbuna.arbhome.com.au> Note that this snippet: > > You have the following roles: > > >

  • > > > You have no roles defined. > can also be written: You have the following roles:
  • You have no roles defined. That is, #in can have an #else clause, which is called when the sequence is zero length. I find this easier to read (particularly when the expression to generate the sequence is large.) Anthony Anthony From DAve@mail.netraven.com Wed Mar 3 00:33:07 1999 From: DAve@mail.netraven.com (Dave G) Date: Tue, 2 Mar 1999 16:33:07 -0800 Subject: [Zope] ZServer and MSIE Message-ID: For those interested changing the "chunks=1" to "chunks=0" in http_server.py did in fact fix the incompatibility with MSIE and ZServer. Zope's, I don't consider this a bug with ZServer but with MSIE as this also plauged me using Frontier cgi's many times, the fix was the same. So I'm not creating a bug report unless you want this documented. DAve. >I too have noticed this on occasion. I believe that the problem has to do >with ZServer's attempt at chunking responses. > >The next version of ZServer will significantly alter the way ZServer >handles HTTP response munging issues like this, and hopefully will fix this >problem. > >Thanks for the bug report. > >-Amos > >P.S. Until then Brad Clements's advice to change use_chunked=1 to >use_chunked=0 in medusa/http_server.py may help. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From jarvis.sd082@ex.tel.co.jp Wed Mar 3 00:53:43 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 3 Mar 1999 09:53:43 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB385@telisnt1020.is.tel.co.jp> Oops! The a.b_id=a.id was a typo in my mail. Sorry about that. I did mean a.b_id=b.id. I also tried out Brad Clements' suggestion (thanks, I would have never thought to write it that way!) but it raises the same exception. It works fine with the patch, though. Thank you for your responses! John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: chris.hunter@humancode.com [SMTP:chris.hunter@humancode.com] > Sent: Wednesday, March 03, 1999 1:46 AM > To: bkc@murkworks.com > Cc: TFE MMS JARVIS JOHN; zope@zope.org > Subject: Re: [Zope] Request.py and duplicate column names > > > > Brad Clements wrote: > > > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > > > 1. When trying to do a join (a lazy query, I know) like: > > > > > > select a.*, b.* > > > from tablea a, tableb b > > > where a.b_id=a.id > > Is there any chance that you're trying to do something > like: > > select * > from a, b > where a.b_id = b.id > ^ > Note that I'm joining a field in a to a field > in b here (not 2 fields in a) > > Hope this helps. > > --chris > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From Anthony Baxter Wed Mar 3 01:38:28 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 12:38:28 +1100 Subject: [Zope] Zope 1.10.2 dies every so often. In-Reply-To: Your message of "Tue, 02 Mar 1999 16:02:05 CDT." <85256728.007360D6.00@li01.lm.ssc.siemens.com> Message-ID: <199903030138.MAA08759@mbuna.arbhome.com.au> > WARNING: Python C API version mismatch for module _pg: This Python has API > version 1007, module _pg has version 1006. Hm - this indicates you've upgraded your Python since the module _pg was compiled (postgres?) It's not the cause of the following error, but it is something you might want to fix, anyway. The error looks to be caused by ZopeHTTPServer not handling a client aborting the connection. Looking into the code, at around line 240 of ZopeHTTPServer/ZopeHTTPServer.py, the write() method of ResponseWriter should probably trap IOError and ignore it. Something like wrapping the two calls to write() in the write method like try: write.... except IOError: pass would be a blunt fix to it. I don't think DC want to continue to support ZopeHTTPServer, tho. You might want to try to upgrade to ZServer, instead. Anthony From luke@geeklife.com Wed Mar 3 04:10:04 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 2 Mar 1999 20:10:04 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903030410.UAA00469@hipmail2.gohip.com> I'm *really* newbie. I have table with data like this: field1 field2 ------ ------ red 3/1/99 blue 3/1/99 green 3/1/99 brown 3/2/99 yellow 3/2/99 I'd like to render this in DTML from the data: Monday, March 1 red blue green Tuesday, March 2 brown yellow How do I do that? Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From mj@antraciet.nl Wed Mar 3 07:52:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 08:52:48 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303085121.00bb78a0@lisp.atmm.nl> At 17:19 02/03/99 , julian@zereau.net wrote: >On 02-Mar-99 Michel Pelletier wrote: >> >> This is an excellent post. I want to add that _getPassword() is a handy >> function also if you want to use your Zope user to authenticate into an >> external system, like POP3 or IMAP. > >It occurs to me that a DTML document could contain this in a transparent >sendmail form, assuming there is already a handy Mailhost set up, to capture >and mail off the password of anyone browsing the page... > No, because from DTML you can't call methods starting with an underscore. This was actually the reason I didn't include this in my overview. You can still use it in en external method, I know. But then again, I can do a heck of a lot more bad things in external methods. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:06:38 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:06:38 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303090101.00bb6180@lisp.atmm.nl> At 17:37 02/03/99 , you wrote: >While we are on the subject of AUTHENTICATED_USER, I would like my users to >be able to "logout" so that they then become anonymous again. > >Any ideas? > >I have seen this on Dejanews. It would be useful so that authorized users >don't leave themselves logged in if they don't quit Netscape. > >Phil. > This is very hard to do from the serverside. I can force a new login, but I cannot stop a browser from authenticating itself at every request, therefore effectivly becoming anonymous. Problem is more that HTTP is stateless, a user is not 'still logged in', but it autenticates itself at every request. Only when the server says that the authentication is incorrect, does the browser ask for the username and password. What you could do, is write your own UserFolder/User combo, that stores a last-access time on the User object, and checks for this every time a user is authenticated. If the difference is greater than, say 15 minutes, you force a reauthentication by raising a permission denied. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:11:28 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:11:28 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Message-ID: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> At 17:54 02/03/99 , Martijn Faassen wrote: >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > I know it is against netiquette to send *me too!* messages, but I'm doing it anyway... Just to show support, count me in. I allready started rewriting the AUTHENTICATED _USER doc and the tree tag info. The-other-Dutchman-named-Martijn-i-ly yours, Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Anthony Baxter Wed Mar 3 08:20:53 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 19:20:53 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Wed, 03 Mar 1999 09:06:38 BST." <4.1.19990303090101.00bb6180@lisp.atmm.nl> Message-ID: <199903030820.TAA10202@mbuna.arbhome.com.au> > What you could do, is write your own UserFolder/User combo, that stores a > last-access time on the User object, and checks for this every time a user is > authenticated. If the difference is greater than, say 15 minutes, you force a > reauthentication by raising a permission denied. I tried playing with this once upon a time, but I found that the stupid browser still cached the original result and would continue to use it after the failed login/relogin combination. Most frustrating. Anthony From jay@tomigaya.shibuya.tokyo.jp Thu Mar 4 17:31:28 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Thu, 04 Mar 1999 17:31:28 Subject: [Zope] need help with IIS/ODBC Message-ID: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> As a novice (who's loving Zope!) I'm having a terrible time trying to get Zope1.10.2 on NT with IIS to connect to MS SQL with a Z ODBC connection. Previously I had no problem getting Zope 1.9/ZopeHTTPServer to connect to MS SQL via Z ODBC. Recently I upgraded to 1.10.2 without a hitch, and was able to run it with IIS 4.0 after putting the (PCGI executable?) MYZOPE.exe in /InetPub/scripts/ and turning off in IIS both Basic Authentication and NT Challenge/Response as I read here in the list. My problem now is that when I try to open my db connection (exactly the same connection that was working with 1.9 & ZopeHTTPServer) I get the following error from IIS: >HTTP Error 400 >400 Bad Request >Due to malformed syntax, the request could not be understood by >the server. The client should not repeat the request without modifications. In trying to figure out what's going on I've noticed a couple things. First, and I think most illustrative, if I try to add a new Z ODBC connection, none of my ODBC sources are showing up in the available list (except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 Zope with ZopeHTTPServer all my ODBC connections show up just fine. Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by side with the functioning 1.9/ZopeHTTPServer, I printed our the environment variables of both and noticed some differences - USERPROFILE's are Default User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least USERDOMAIN in the 1.10.2/IIS environ, with no luck. I've read all the posts from the list that I could find dealing with IIS and ODBC, but couldn't find anything with info on this type of trouble. Have I made a boneheaded mistake and started to look in the wrong places for the fix? Any help/info/pointers would be hugely appreciated as I continue to bang my head on my keyboard hoping that I'll soon clear this hurdle and get back to having fun with Zope! Thanks! Jay From mj@antraciet.nl Wed Mar 3 08:35:46 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:35:46 +0100 Subject: [Zope] Setting properties based on security In-Reply-To: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990303092944.00bb3220@lisp.atmm.nl> At 22:25 02/03/99 , Robin Dunn wrote: >I have a folder with various boolean properties associated with it which are >accessed by the dtml docs as flags for enabling or disabling content. Turn >off the flag and a chunk of the page goes away when it is next viewed. This >works great, but I would like to associate that behaviour with the security >attributes. In other words, when somebody in the Anonymous role is viewing >objects in the folder the properties should be unset, but when users in the >manager (or some other specific role) view the pages then the properties >should be set and those parts of the pages are activated. > >How can this be done? > You could, using AUTHENTICATED_USER.has_role() and manage_changeProperties(). I think it will be better if you completely skip the property setting though.. You could just show content using Content _only_ for the Anonymous user Content for users with the Manager role. This way you don't accidently let any properties float around, causing content to be shown to the wrong people. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 09:05:35 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:05:35 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903030410.UAA00469@hipmail2.gohip.com> Message-ID: <4.1.19990303094004.00bba4e0@lisp.atmm.nl> At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: > >field1 field2 >------ ------ >red 3/1/99 >blue 3/1/99 >green 3/1/99 >brown 3/2/99 >yellow 3/2/99 > >I'd like to render this in DTML from the data: > >Monday, March 1 > red > blue > green >Tuesday, March 2 > brown > yellow > >How do I do that? > You can use the #in tag's grouping features for this. If you use GROUP BY in your SELECT statement, or use the appropriate sorting, you can use the following DTML code to get the desired output, assuming the column names are the same as in your example: ,
    Sorry, no colors in your query. The variables first-xxx and last-xxx are set whenever the field with name xxx starts/ends in a sequence. For more information on this, read the Zope DTML User's Guide (http://www.zope.org/Documentation/Guides/DTML -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From cg@acriter.com Wed Mar 3 08:58:29 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 09:58:29 +0100 Subject: [Zope] ZPublisher and creating children Message-ID: <36DCF9B5.97A62E66@acriter.com> Hi, I'm using ZPublisher+DocumentTemplate+BoboPOS in a cgi environment, because that's all I need (and can use on my ISP's box). In the couple of things I've developed so far, a pattern has emerged that disturbs me: if you have a container object, when adding a child, the whole add thing is done in the parent. IIIRC, I fetched this design from the (Bobo) Trinkets example when I started: class Container.... add = HTMLFile(....) def do_add(self, childattrone, childattrtwo, childattrthree): d = self._items d[childattrone] = Child(childattrone, childattrtwo, childattrthree) self._items = d class Child... def __init__(self, childattrone, childattrtwo, childattrthree): .... edit = HTMLFile(....) def do_edit(self, childattrone, childattrtwo, childattrthree): .... The Container, IMHO, "knows" too much about the Child in this case, and it's hard to modify the attribute set of the Child class. Am I doing something wrong? Is there a design pattern here I'm not aware of? Regards, Cees From mj@antraciet.nl Wed Mar 3 09:24:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:24:44 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990303102401.00bb1310@lisp.atmm.nl> At 18:31 04/03/99 , Jay Ashton wrote: >My problem now is that when I try to open my db connection (exactly the >same connection that was working with 1.9 & ZopeHTTPServer) I get the >following error from IIS: > >>HTTP Error 400 >>400 Bad Request >>Due to malformed syntax, the request could not be understood by >>the server. The client should not repeat the request without modifications. I have exactly the same problem with an Access database, same error. I'll file a bug report. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Wed Mar 3 10:10:24 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:10:24 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Message-ID: <36DD0A90.1FC53ED0@pop.vet.uu.nl> Phil Harris wrote: > > Cheers from all involved. Thanks! This implies you're involved in the ZDP as of now, right? :) Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:12:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:12:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <19990302133414.09101@amber.org> Message-ID: <36DD0B22.7681AC07@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > > Excellent! > > > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > > the excellent public relations derived from hosting the ZDP. > > > > If not, I can probably provide resources (within reason :-) for this. These are good ideas (and thanks Chris for the offer!), but Ken Manheimer later on in the list is offering space on www.zope.org, and that would of course be perfect. Thanks again though! Martijn From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 10:13:32 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 10:13:32 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <00ab01be655e$7e558e60$5c773fc1@ml.uwcm.ac.uk> If ther's anything I can do, let me know. Ain't collaboration wonderful? Phil ----- Original Message ----- From: Martijn Faassen Cc: Sent: Wednesday, March 03, 1999 10:10 AM Subject: Re: [Zope] [ZDP] Announcing the Zope Documentation Project >Phil Harris wrote: >> >> Cheers from all involved. > >Thanks! This implies you're involved in the ZDP as of now, right? :) > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From andreas@mtg.co.at Wed Mar 3 10:35:57 1999 From: andreas@mtg.co.at (Andreas Kostyrka) Date: Wed, 3 Mar 1999 11:35:57 +0100 (CET) Subject: [Zope] Bobo distribution In-Reply-To: Message-ID: On 2 Mar 1999, Andrey V Khavryutchenko wrote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it is > taken from the web away. ftp://heaven.oeh.univie.ac.at/pub/mirrors/bobo-mirror/bobo/ Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98. From M.Faassen@vet.uu.nl Wed Mar 3 10:52:32 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:52:32 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF640190BED65@GANDALF> Message-ID: <36DD1470.531A427@pop.vet.uu.nl> Ken Manheimer wrote: > > Martijn Faassen wrote: > > > Hereby I announce in absolute adhoc anarchistic fashion the Zope > > Documentation Project. The Zope Documentation Project aims to generate > > documention on anything Zope. > > Thank you, Martijn, you've made my day! This is extremely cool. I'm glad I made someone's day. :) > As you might expect, here at digicool we're yearning to produce more and > better documentation, and, as with other things, we want to have more > time and energy to do it than we do. It was getting obvious that this was so. You guys all did a great job, and still are doing a great job, but the volume of questions and documention requests has exploded in the mean time. Which is great, in fact, of course, as it shows people are interested. [snip] > Some thoughts: > > - We would be happy to provide a mailing list or two for you all This would be great! We probably don't want to be spread out too much so one mailing list would be best (zdp@zope.org?). I also intend to make regular announcements of ZDP's progress (and some advertising to get people more involved in the project) on the main Zope list (or future multiple main Zope lists :). Right now though to keep the ball rolling I'll be using the normal list to send out messages. > - If it makes sense (logistically, for us as well as for you), we could > host the FAQ stuff or whatever on zope.org. This we'll have to discuss - > both what all might want, and what we can safely and effectively do... Zope.org would I think be the ZDP's favorite place to be hosted on, so that'd be very nice. Your thoughts on how we could best arrange this (who gets manage access to the place, if we develop in a branch we export to you, or develop in there directly, or use FTP, or possibly something else, etc) are welcome. > (I've been thinking about requirements for a collaborative FAQ > mechanism, which can be tricky if you want it to be available for > contribution to the community in general, yet still remain organized > enough for people to find what they're seeking. An interesting > problem...) Independently (for local purposes) I've been thinking about making a FAQ wizard product myself, but I got stranded somewhere in the beginning (my laments I posted some time ago to the list :). But at least I've given some thought to the design. Now Amos made one, and we can build on that. The use of the tree tag is nice, but probably a simple list is more useful in some cases (one can do a text search in it, for instance). From my cursory glance at the management screens of the example, it seems that it's not hard to produce that. What would also be nice is some way to simply generate plain ascii text versions of the FAQ as well, along with possibly some other versions. We could also think about generating DocBook SGML (which then can be converted in a lot of different formats with for instance the Linux SGMLtools 2.0). I haven't given too much thought to collaboration mechanisms. It would be useful to have the ability to easily move questions around in the list from one section to the other. My plan is to early on just get any question/answer pairs we can come up with (from mining the mailing list, documentation, and whatever people contribute). Later on we can then organize these in categories, once the pattern becomes clear (likely we'd have a DMTL section, for instance, and an installation section). If there's flexibility in moving questions around the FAQ might be developed more quickly. People could contribute question/answer pairs (or just questions) in some 'contribution area' and the managers of the list can then edit these and move them to the right sections of the list after doing so. The contribution area should still be visible for everybody, so that even the raw entries can be useful. I'm brainstorming right now, so here's another idea: if someone sees a question in the 'contributed' area that he knows the answer to, that person should be able to write in an answer. Even with the already edited questions in the main list it would be useful if people could leave comments ("I tried this but it didn't work for such and such reason. But if I did this and that, I got it working."). The editors can then later review all that's added and integrate it into the main text. Right now I intend to just assemble a big raw plaintext file (structured text!), though; anyone can work with these. It's good to keep the process moving. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:55:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:55:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> Message-ID: <36DD1536.1ADF8CD4@pop.vet.uu.nl> Martijn Pieters wrote: > > At 17:54 02/03/99 , Martijn Faassen wrote: > >Hi there, > > > >Hereby I announce in absolute adhoc anarchistic fashion the Zope > >Documentation Project. The Zope Documentation Project aims to generate > >documention on anything Zope. > > > > I know it is against netiquette to send *me too!* messages, but I'm doing it > anyway... As long as the *me too!* message doesn't include the entire previous message body it's not against my personal netiquette. :) > Just to show support, count me in. I allready started rewriting the > AUTHENTICATED _USER doc and the tree tag info. Shows of support are *great* netiquette. :) Thanks! Regards, Martijn From Oliver Thuns Wed Mar 3 11:24:46 1999 From: Oliver Thuns (Oliver Thuns) Date: Wed, 03 Mar 1999 12:24:46 +0100 Subject: [Zope] ZServer (FTP): socket.error: host not found Message-ID: <199903031225.EAA23367@zope.codeit.com> >It works for me. Check to be certain that your DNS has a PTR record for >your host. Winsock is SUPPOSED to support this for "localhost" even >without DNS, but if you're multi-homed that may be a problem. I have no DNS, it's a local system only. I'm using Windows 95 and this doesn't work. But it should no problem to "fix" the ftp_server. The IP_ADDRESS could set in start.py and this address is used by the http_server module, but not by the ftp_server module. >> If I start ZServer under Windows I get the following error ind the >> ftp_server module. This can be easily fixed by changing line 57 and >> inserting the IP, but this is not very nice. Could you fix this? >> >> Traceback (innermost last): >> File "start.py", line 20, in ? >> import ZServerFTP >> File "ZServerFTP.py", line 158, in ? >> from medusa.ftp_server import ftp_channel, ftp_server >> File "medusa\ftp_server.py", line 57, in ? >> IP_ADDRESS = socket.gethostbyname (socket.gethostname()) >> socket.error: host not found From julian@zereau.net Wed Mar 3 13:01:30 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 13:01:30 -0000 (GMT) Subject: [Zope] count of items in group? Message-ID: Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture). --- Julian Morrison Programmer (Zereau Ltd) From sfranke@cdc-group.com Wed Mar 3 13:01:07 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Wed, 3 Mar 1999 14:01:07 +0100 Subject: [Zope] Strange problem calling a base classes method Message-ID: <01E40461E003D21195CC0080296495D80B12B3@gates.cdc-group.com> While debugging a Product that inherits from OFS.Folder stumbled across the following problem (copied from the debugger command line stopped inside one of my Product's methods): >>> self.__class__.__bases__[0].__bases__[3].__bases__[1] >>> isinstance (self, OFS.CopySupport.CopySource) 0 >>> (self.__class__.__bases__[0].__bases__[3].__bases__[1] is OFS.CopySupport.CopySource) 1 The first line says self is an instance of OFS.CopySupport.CopySource, the second says it's not. The class objects are identical. My problem is that I'm not able to override one of OFS.CopySupport.CopySource's methods and to call the base classes method from inside. At that point I get a TypeError: unbound method must be called with class instance 1st argument which usually occurs when calling an unbound method with an instance of the wrong class. I'm clueless.. Stefan From mj@antraciet.nl Wed Mar 3 13:37:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 14:37:04 +0100 Subject: [Zope] count of items in group? In-Reply-To: Message-ID: <4.1.19990303142401.00b9a7f0@lisp.atmm.nl> At 14:01 03/03/99 , julian@zereau.net wrote: >Using the "in" tag's grouping capability, is there any way to get the count of >items in that group? I need this so I can have a table with one row per item >and a cell rowspanned for all the group's items (eg: related products and their >picture). > No, there isn't. You will have to use the SQL statement, to add a calculated value column to it's output. You should be able to use COUNT to achieve this. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Wed Mar 3 13:54:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:47 -0500 Subject: [Zope] ZPublisher and creating children Message-ID: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Cees wrote: > The Container, IMHO, "knows" too much about the Child in this > case, and > it's hard to modify the attribute set of the Child class. Am I doing > something wrong? Is there a design pattern here I'm not aware of? Actually this example shows the beauty of Zope/Bobo programming -- the code looks completely like normal Python code, no CGI hackery involved. Anyway, this is really a Python question, IMO. You don't the arguments to the Child's constructor to be hardwired in the Parent, right? You could take a route where pass a dictionary, e.g. REQUEST, into the Child's constructor and let it figure out for itself what it needs. This feels less OO and doesn't let Zope/Bobo help you with type conversions and raising exceptions for missing arguments. --Paul From Paul@digicool.com Wed Mar 3 13:54:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:49 -0500 Subject: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAC0@GANDALF> Martijn wrote: > I have exactly the same problem with an Access database, same > error. I'll file > a bug report. Good timing. We are planning a Collector Day At The Beach pizza party on Friday. We'll gather everybody together for a couple of hours, discuss a bunch of submitted issues, and try to clear them out. I'll articulate a policy on support within a week. We still haven't emerged from our network hell -- our dedicated line hasn't been installed yet -- but things are slowing getting under control. I want to double the number of people working here within two months. If anybody wants a job at Zope HQ, email me! --Paul From Paul@digicool.com Wed Mar 3 13:54:50 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:50 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Phil wrote: > If ther's anything I can do, let me know. > > Ain't collaboration wonderful? Count me in as well. I'm meeting with some folks today to get a Zope training course scheduled. I'll create the preliminary docs which they will improve and use for the course. Thus I'll have some some material for a (perhaps four day) training course to contribute. BTW, is there any interest here in a Zope training course? --Paul From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 13:48:56 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 13:48:56 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> You thinking of running one in UK 8^) ----- Original Message ----- From: Paul Everitt To: Phil Harris Cc: Sent: Wednesday, March 03, 1999 1:54 PM Subject: RE: [Zope] [ZDP] Announcing the Zope Documentation Project > >Phil wrote: >> If ther's anything I can do, let me know. >> >> Ain't collaboration wonderful? > >Count me in as well. I'm meeting with some folks today to get a Zope >training course scheduled. I'll create the preliminary docs which they >will improve and use for the course. Thus I'll have some some material >for a (perhaps four day) training course to contribute. > >BTW, is there any interest here in a Zope training course? > >--Paul From M.Faassen@vet.uu.nl Wed Mar 3 13:57:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 14:57:43 +0100 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Hi everybody, Here is a start. I just randomly browsed the mailing list and created a completely uncategorized set of questions and answers for the FAQ. I even snuck in a question of myself, see if you can answer it. :) If you see a problem with some of these questions or answers, send a followup with suggested corrections to the list and I'll include them in the FAQ. If you have more question/answer pairs, go ahead and followup too. I prefer these things to appear in the list (in a thread, and marked by [ZDP]) for now, as this might stop people from writing the same FAQs twice. I hope in a while we'll get somekind of collaborative FAQ environment going that makes all this easier. I'd prefer additions to the FAQ in StructuredText for now. See what follows for an example of the format I have in mind. If you think another format works better feel free to convert. (yes, that's the theme of open source; if you want something done differently, feel free to do the work to change it :). Here's what I have so far, enjoy! * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use: <!--#var "external_method_name(arguments)"--> to call any External Method in the folder (or acquired by the folder). The more explicit alternative is: <!--#var expr="external_method_name(arguments)"--> The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). From cg@acriter.com Wed Mar 3 14:09:59 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 15:09:59 +0100 Subject: [Zope] ZPublisher and creating children References: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Message-ID: <36DD42B7.7C838624@acriter.com> Paul Everitt wrote: > Cees wrote: > > The Container, IMHO, "knows" too much about the Child in this > > case, and > > it's hard to modify the attribute set of the Child class. Am I doing > > something wrong? Is there a design pattern here I'm not aware of? > > Actually this example shows the beauty of Zope/Bobo programming -- the > code looks completely like normal Python code, no CGI hackery involved. > > Anyway, this is really a Python question, IMO. You don't the arguments > to the Child's constructor to be hardwired in the Parent, right? Well, the underlying issue is the stateless-ness of the whole thing. In normal python, you'd create an empty child, call the child's editing form so the user can enter initial data, and only after the user's commit add the child to the container: def addChild(self): newChild = Child() if newChild.editForm() == true: container.append(newChild) in short. I've attempted this in the ZPublisher environment, but to no avail - either it didn't work at all or it got very messy (with the Child needing to know about the Parent, etcetera). I must say, I was under a bit of time pressure last night when looking for alternatives (wanted to have a beta release on my website before breakfast), I haven't got around playing with hidden form variables etcetera yet - that could work. Just hoped somebody on the list here would have a canned answer - I'm a lazy guy ;-) From tony.mcdonald@ncl.ac.uk Wed Mar 3 14:41:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 3 Mar 1999 14:41:53 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: Hi all, This is quite a long email where I ask a lot of questions about Zope, but I hope you'll be lenient with me as I think I have a few hard decisions to make! Some background: I'm one of the web developers here, with a remit to implement a curriculum database that can; (a) support the Medical Faculty here (b) get rolled out to three other Medical-related sites, each with their own 'look and feel' (c) possibly implement a University-wide curriculum database. The curriculum database is essentially delivering online study guides (over 100 for each Faculty) whose source is originally from very well marked up Word Documents. In addition, we include multiple choice questions, file upload of lecture notes etc. and some 'active' web pages showing dynamical processes in medicine etc. The curriculum database needs to be searchable across its entire breadth (although initially restricted to the one site), so that students and faculty can find occurences of, say, 'lung cancer' in lecture resources - this is to plan for curriculum management, so that we can find out if we're pushing subjects too much (or indeed, whether we're pushing a subject at all!). We have other applications (nearly all of which are written in Perl/PHP3) and want to seemlessly integrate them into the curriculum database. Currently we do all our development work on Unix, using Apache virtual web servers, MySQL as our database engine and Perl running as a CGI for most of our applications. My input has been to introduce PHP-3 (an Apache module with a bulit-in XML parser) and some XML knowledge to the group. I've been looking at a scenario where our study guides are converted in XML using Omnimark and held as static XML documents in a database. They are then rendered into HTML/RTF and put into static web directories. The student can run a program that extracts elements from selected XML documents and creates a customised set of HTML pages or RTF document that is built for them 'on the fly'. My manager was a bit worried about all these static pages lying about and to be honest so am I, but extracting the relevant XML from a database to render into individual HTML pages seems a massive drain on the system. I found out about Zope Monday morning, dl'ed it, installed it, got one or two things working... and have been worried sick ever since. My problem? is that I can see how Zope can do so much for us, but it seems to need a hell of a gut-wrench to do so. There also doesn't seem to be an easy 'half-way' house to move to Zope. I've read a lot of the documentation, and am doing so constantly, but the wisdom of the list would be very helpful indeed. The questions: a) Is there a way for us to 'dump' the non-dynamic parts of a Zope database into static HTML pages. This would act as a way to say to the team "look, we have a parachute!". b) Can I integrate with the Perl/PHP3 programs that we have (the Perl programs are mainly .cgi, but the PHP3 programs are server-side scripted, and as such are embedded into the HTML itself). This is so that I can c) Is there any way of using the XML documents that I'm creating into the database and parsing them to produce either HTML or RTF output? d) I know that this a terrible question to ask... but is Zope likely to 'remain' open-source (we're worried about getting stuck with a proprietary system)?. e) Can I 'point' an Apache virtual server to run a Zope cgi (ie dropping the :port requirment). f) I'd like to have the option to have user authentication information coming from a database - is this possible? g) We have something like 200 main level directories holding the study guides, each with up to 200 files in them - is that pushing the Zope database too far? h) We also need resources such as QuickTime movies, images PowerPoint slides etc. to be uploaded - would they sit in the database or can they be held somewhere else (and what happens about file name conflicts)? i) Does Zope have the equivalent of 'server logs', which we use for research. j) Is it possible to have a 'pointer' at a location in the Zope database that will point to a 'real, honest to goodness' HTML file on the server (ie something like a redirect..oops I think I may have answered my own question) and lastly k) What kind of loads have people put Zope under (10,000 +hits a day, 100k?). We have one application which has 170 Medical Students sitting in front of screens and clicking a button at the same time (they're selecting their final year options) which then starts 170 CGI-based Perl processes off interrogating and updating the database. This really grinds the system down... I hope that I haven't bored everyone to tears here - it's just that Zope seems to do an awful lot of what I need, and I'd really like to know what I'm letting myself in for if I start using it for everything I do.... many many thanks, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From michel@digicool.com Wed Mar 3 14:39:57 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 09:39:57 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BAC2@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Wednesday, March 03, 1999 3:21 AM > To: Martijn Pieters > Cc: zope@zope.org > Subject: Re: [Zope] AUTHENTICATED_USER, and what you can do with it. > > > > > What you could do, is write your own UserFolder/User combo, > that stores a > > last-access time on the User object, and checks for this > every time a user is > > authenticated. If the difference is greater than, say 15 > minutes, you force a > > reauthentication by raising a permission denied. > > I tried playing with this once upon a time, but I found that > the stupid > browser still cached the original result and would continue > to use it after > the failed login/relogin combination. Most frustrating. > Cookies or passing around secret messages would be the way to avoid this, don't use Basic authentication at all. The UserDB product shows off a User Folder than uses cookies, and possibly today I am releasing a User Folder product that authenticates off of a flat file, like /etc/passwd for alpha testing which also uses either Basic or Cookie auth. If you use Cookie auth you are presented with a login/logout screen to set/clear the cookie. -Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From luke@geeklife.com Wed Mar 3 15:17:35 1999 From: luke@geeklife.com (Luke Duff) Date: Wed, 3 Mar 1999 07:17:35 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903031517.HAA31270@hipmail1.gohip.com> Thanks for the help, but... My problem is a little bit harder than that. The data in field2 is date *and* time. So like this: field1 field2 ------ --------------- red 3/1/99 10:00 AM blue 3/1/99 11:00 AM green 3/1/99 03:00 PM brown 3/2/99 10:00 AM yellow 3/2/99 04:30 PM I've seen in the guide where you can format a data field when outputting, but how do actually extract the day-of-the-month number and put it in a temp variable. The pseudo-code I've used before to do this before is: tempday = 0 for each record if tempday<>dayofmonth(datefield) then print out a header print out other fields tempday = dayofmonth(datefield) next I'm just having a little trouble translating that into DTML. Creating a simple temporary variable seems overly complicated. Luke ============================================================ Martijn Pieters wrote: At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: >> >>>field1 field2 >>>>------ ------ >>>>>red 3/1/99 >>>>>>blue 3/1/99 >>>>>>>green 3/1/99 >>>>>>>>brown 3/2/99 >>>>>>>>>yellow 3/2/99 >>>>>>>>>> >>>>>>>>>>>I'd like to render this in DTML from the data: >>>>>>>>>>>> >>>>>>>>>>>>>Monday, March 1 >>>>>>>>>>>>>> red >>>>>>>>>>>>>>> blue >>>>>>>>>>>>>>>> green >>>>>>>>>>>>>>>>>Tuesday, March 2 >>>>>>>>>>>>>>>>>> brown >>>>>>>>>>>>>>>>>>> yellow >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>How do I do that? >>>>>>>>>>>>>>>>>>>>>> You can use the #in tag's grouping features for this. ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From michel@digicool.com Wed Mar 3 15:17:04 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 10:17:04 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Wednesday, March 03, 1999 9:42 AM > To: zope@zope.org > Subject: [Zope] Some tough questions about zope... (long) > > > Hi all, > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! > > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. > > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > If you continue to use it you will get the Zope Zen. :) > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". This begs the question we've asked around here so many times, 'What is data?' Everything in Zope is Dynamic, in my thoughs, 'non-dynamic' is a Document with not DTML in it. But there is no way for Zope to sniff a document and see if it contains dynamic structures or not. Perhaps what could be done is to write a simple MyDocument that you stipulate in policy never to have dynamic stuff in it, and then write a crawler scripts that sucks out all such documents into a local file structure. There maybe easier solutions. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can ...do what? ;) Zope can call your cgi scripts just like they are, as URLs. They would, of course, have to be external to Zope and if you have a bunch of little ones you may find it better (and a damn sight easier) to rewrite them as Python in Zope as external methods. (DTML is also a rather powerful language for being so simple). Just leave your PHP stuff in your documents; Zope will parse out the DTML and return it to the server, which will parse out the PHP stuff and return it to the browser. In fact, you can probably make DTML and PHP work together nicely and simplify much of your PHP code. In the quickie case you don't need to change your PHP. > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? Zope doesn't contain an XML parser. You would need to do this with an external package. > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. Yes. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yes. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Yes. There is an unsupported open source User Folder Product called UserDB, where you tell it how to query your DB and it uses that for authentication. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Not at all. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? ooo. Someone has yet to write an ExternalFile product (though I suspect it would be fairly simple) to add objects to the db that refer to files outside the db. For now you can upload them as File objects to be contained entirely in the db. The same rules that apply to file name conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't have the same object id in the same folder. (With a minor non-exception of aquisition, all lower folders can see the contents of higher folders, but if you place an object in a lower folder with the same id as an object in a higher folder the lower object will override the higher object. Get that?) > i) Does Zope have the equivalent of 'server logs', which we > use for research. Since Zope is served through a web server you can continue to use the server logs. In other words, No. ;) Object by Object logging is something we've discussed, but would require *a lot* of thought and work. > j) Is it possible to have a 'pointer' at a location in the Zope > database that will point to a 'real, honest to goodness' HTML file on > the server (ie something like a redirect..oops I think I may have > answered my own question) If that file is being served up by Apache then you can just use it's URL as a 'pointer'. > and lastly > k) What kind of loads have people put Zope under (10,000 +hits a day, > 100k?). We have one application which has 170 Medical Students > sitting in front of screens and clicking a button at the same time > (they're selecting their final year options) which then starts 170 > CGI-based Perl processes off interrogating and updating the database. > This really grinds the system down... Ah yes, the inevitable benchmarking question. There are lots of issues here, memory footprint vs processor speed vs concurrent access...etc. The quick word is, Zope is fast and it will get much faster. Zope is currently not concurrent but will be in 2.0. Zope+Apache is a bit slow due to the pcgi bottleneck and is much improved by using ZServer. As it stands now, ZServer is something like twice to 10 times faster than Zope+Apache. Medusa (the web core of ZServer) serializes the requests into Zope at the moment, but when 2.0 comes out it will be the fastest web application platform on earth. Don't quote me. > > I hope that I haven't bored everyone to tears here - it's just that > Zope seems to do an awful lot of what I need, and I'd really like to > know what I'm letting myself in for if I start using it for > everything I do.... No problemo. > > many many thanks, > tone. -Michel > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mj@antraciet.nl Wed Mar 3 15:16:17 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:16:17 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Message-ID: <4.1.19990303155923.00b8acb0@lisp.atmm.nl> Let me try to answer (some) of your questions: >The questions: >a) Is there a way for us to 'dump' the non-dynamic parts of a Zope >database into static HTML pages. This would act as a way to say to >the team "look, we have a parachute!". I will be looking into this, as soon as I have the time. The answer for now is: probably, because everyone wants to download a local copy of part of any website at some point. There are tools out there to do this, I haven't looked for them yet. >b) Can I integrate with the Perl/PHP3 programs that we have (the Perl >programs are mainly .cgi, but the PHP3 programs are server-side >scripted, and as such are embedded into the HTML itself). This is so >that I can Just run Zope via Apache (see below). >c) Is there any way of using the XML documents that I'm creating into >the database and parsing them to produce either HTML or RTF output? Python is very capable of parsing XML. You will have to write an External Method to handle this, though. An example of XML parsing can be found at http://www.zope.org/Download/Contrib/XMLConfig.tar.gz. This Zope Product parses a static XML file for use in Zope. >d) I know that this a terrible question to ask... but is Zope likely >to 'remain' open-source (we're worried about getting stuck with a >proprietary system)?. I certainly do hope so. I intent to use it en expand on it heavily anyway, and sodo others. These extensions will generally be Open Source themselves, making it hard for Digital Creations to pull Zope out of the Open Source domain. >e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >dropping the :port requirment). Yes. The doc/WEBSERVER.txt will start you on this. Be warned though, there are some problems with Apache and Zope integration, for reasons that others are better equiped to explain. >f) I'd like to have the option to have user authentication >information coming from a database - is this possible? Yes, you can find the UserDB Product at http://www.zope.org/Download/Prereleases/UserDB/UserDb-1.2.0-nonbin.tar.gz. >g) We have something like 200 main level directories holding the >study guides, each with up to 200 files in them - is that pushing the >Zope database too far? Nah, Zope has handled much more than that allready. Ask Paul =). >h) We also need resources such as QuickTime movies, images PowerPoint >slides etc. to be uploaded - would they sit in the database or can >they be held somewhere else (and what happens about file name >conflicts)? Zope can store any filetype you want it to. Filename conflicts are handled the same way a filesystem handles them: In the same Folder, you cannot have two objects with the same name at once. But because it is a hierachical system, you can use the same name in two different folders. >i) Does Zope have the equivalent of 'server logs', which we use for research. ZopeHTTPServer's output is it's serverlog. You can start it up with STDOUT redirected into a file. When you use Apache as your webserver, all requests will be logged through Apache itself. >j) Is it possible to have a 'pointer' at a location in the Zope >database that will point to a 'real, honest to goodness' HTML file on >the server (ie something like a redirect..oops I think I may have >answered my own question) You said it yourself =). >and lastly >k) What kind of loads have people put Zope under (10,000 +hits a day, >100k?). We have one application which has 170 Medical Students >sitting in front of screens and clicking a button at the same time >(they're selecting their final year options) which then starts 170 >CGI-based Perl processes off interrogating and updating the database. >This really grinds the system down... Zope will be much much faster. I can't give you any direct numbers, maybe someone else on this list can. You basicly don't have the overhead of starting a fullblown new process for every request, and Zope pools Database connectiosn for you, so you don't have the initial connection overhead either. And, your code isn't compiled everytime, like with Perl. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 3 15:25:47 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 10:25:47 -0500 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: ; from Tony McDonald on Wed, Mar 03, 1999 at 02:41:53PM +0000 References: Message-ID: <19990303102547.A6002@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 02:41:53PM +0000, Tony McDonald wrote: ,----- | Hi all, | This is quite a long email where I ask a lot of questions about Zope, | but I hope you'll be lenient with me as I think I have a few hard | decisions to make! I know the feeling. I was choosing between ColdFusion and Zope for developing my new application and had some similar questions. Ultimately, I chose Zope. [nice application description deleted] | a) Is there a way for us to 'dump' the non-dynamic parts of a Zope | database into static HTML pages. This would act as a way to say to | the team "look, we have a parachute!". Right now, there isn't. This question has come up repeatedly on the list, to the point where DC is getting sick of hearing it and thinking of actually implementing something :) They have said it would be pretty easy, and I believe it. I think the basic idea is to write a method that will go through the Folders and use the DocumentTemplate code to render out the pages. | b) Can I integrate with the Perl/PHP3 programs that we have (the Perl | programs are mainly .cgi, but the PHP3 programs are server-side | scripted, and as such are embedded into the HTML itself). This is so | that I can If you're using Zope with Apache, you use mod_rewrite to get the authentication headers passed to Zope. You can also use mod_rewrite to decide how URLs map to content on your server. For example, you can have all of the content on your site go through your Zope.cgi, but /cgi-bin/* can go directly to your CGI or PHP files. You can access MySQL from Zope, PHP and Perl, so they can all use the same data source for the databases. | c) Is there any way of using the XML documents that I'm creating into | the database and parsing them to produce either HTML or RTF output? I'll leave this one to people more knowledgeable about XML. | d) I know that this a terrible question to ask... but is Zope likely | to 'remain' open-source (we're worried about getting stuck with a | proprietary system)?. I think it would be tough for DC to try to take it back at this point :) Even if DC did decide to not release any more updates to Zope, the community would probably continue working from the 1.10.2 code. Anyhow, DC had sound business reasons to release Zope as Open Source. Over time, they will likely get a lot of benefits by having done so and by encouraging outsiders (like us) to work with and improve Zope. | e) Can I 'point' an Apache virtual server to run a Zope cgi (ie | dropping the :port requirment). Yes. This uses a technique called Persistent CGI. It works quite well. There is also a hope that there will be better integration with Apache in the future. Also, as ZServer stabilizes, you may find good reason to migrate from Apache to it. | f) I'd like to have the option to have user authentication | information coming from a database - is this possible? There is an unsupported bit of code called UserDB which is designed for this. | g) We have something like 200 main level directories holding the | study guides, each with up to 200 files in them - is that pushing the | Zope database too far? Though I have no first hand experience with a Zope DB this large, the DC guys have said that they've worked with some very large DBs. | h) We also need resources such as QuickTime movies, images PowerPoint | slides etc. to be uploaded - would they sit in the database or can | they be held somewhere else (and what happens about file name | conflicts)? You could put them in either place. There would probably be some advantages to putting them in the database. For example, your standard Zope security rules will apply to the downloading and updating of the files. | i) Does Zope have the equivalent of 'server logs', which we use for research. I don't know about ZServer, but if you use Apache as your web server you will be able to use your standard server logs. | j) Is it possible to have a 'pointer' at a location in the Zope | database that will point to a 'real, honest to goodness' HTML file on | the server (ie something like a redirect..oops I think I may have | answered my own question) Yes, you can do a redirect. | and lastly | k) What kind of loads have people put Zope under (10,000 +hits a day, | 100k?). We have one application which has 170 Medical Students | sitting in front of screens and clicking a button at the same time | (they're selecting their final year options) which then starts 170 | CGI-based Perl processes off interrogating and updating the database. | This really grinds the system down... I've heard it said that Zope should be able to handle 500k hits or more on reasonable hardware. Of course, this depends on exactly what the server has to go through for each of those hits, etc. DC is also working on concurrency for Zope 2.0. This will probably enable you to handle a whole bunch of requests. `----- Good luck! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From mj@antraciet.nl Wed Mar 3 15:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:47:52 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903031517.HAA31270@hipmail1.gohip.com> Message-ID: <4.1.19990303163641.00a17d40@lisp.atmm.nl> At 16:17 03/03/99 , Luke Duff wrote: >Thanks for the help, but... > >My problem is a little bit harder than that. The data in field2 is date *and* >time. So like this: > >field1 field2 >------ --------------- >red 3/1/99 10:00 AM >blue 3/1/99 11:00 AM >green 3/1/99 03:00 PM >brown 3/2/99 10:00 AM >yellow 3/2/99 04:30 PM > >I've seen in the guide where you can format a data field when outputting, but >how do actually extract the day-of-the-month number and put it in a temp >variable. The pseudo-code I've used before to do this before is: > >tempday = 0 >for each record > if tempday<>dayofmonth(datefield) then > print out a header > print out other fields > tempday = dayofmonth(datefield) >next > You'll have to use SQL function for this. In MySQL you could do the following: SELECT field1, DATE_FORMAT(field2, "W, M d") as datefield FROM MyDB. Put this in a Z SQL Method, and then the following DTML will get you your results: ,
    Sorry, no colors in your query. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 15:57:23 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 10:57:23 -0500 (EST) Subject: [Zope] ZPublisher and creating children In-Reply-To: <36DD42B7.7C838624@acriter.com> Message-ID: On Wed, 3 Mar 1999, Cees de Groot wrote: > etcetera yet - that could work. Just hoped somebody on the list here would > have a canned answer - I'm a lazy guy ;-) > Everybody on this list is lazy ;-) This is my approach: First define a Webobject class that every object needs to inherit. The simplest could be just: class WebObject: def __init__(self,name): '''__init__(self,name) ''' self.name=string.replace(name,' ','_') def _set_root(self,root_obj,parent_path): '''_set_root(self,root_obj,parent_path) sets the root object and relative path. Note: one will never need to pass parent_path directly. I also need to have a reference to the root object so I can do stuff remotely similar to acquisition''' self.root=root_obj self.rel_path=parent_path+self.name+os.sep class Container(WebObject): def __init__(self,name): WebObject.__init__(self,name) ##Holds contents self._d={} def __getitem__(self, key): return self._d[key] def items(self): return self._d.items() def _do_add(self,object): '''_do_add(self,object) Adds object in container. Object MUST have inherited the WebObject class.''' name=object.name if hasattr(self,name) or self._d.has_key(name): raise ValueError,'Object with same name exists in WebFolder' d=self._d object._set_root(self.root,self.rel_path) d[name]=object self._d=d So you can create any object that has inherited the WebObject class independently and add it to the container instance. Pavlos From mj@antraciet.nl Wed Mar 3 15:58:14 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:58:14 +0100 Subject: [Zope] [ZDP] Tree FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <4.1.19990303153836.00a64c50@lisp.atmm.nl> My two cents on the tree tag: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: <!--#tree branches_expr="objectValues(['Folder'])"--> <A HREF="<!--#var URL1-->/<!--#var id-->"> <!--#var title_or_id--> </A> <!--#/tree--> * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: <A HREF="<!--#var URL0-->?expand_all=1"> Expand all</A>| <A HREF="<!--#var URL0-->?collapse_all=1"> Collapse all</A> <!--#tree--><!--#var id--><!--#/tree--> * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: <!--#tree single--><!--#var id--><!--#/tree--> More cents will follow. Martijn -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Wed Mar 3 16:44:20 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:44:20 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: >Here is a start. Great start! Could I suggest that there be FAQs for different catagories? My list would include: DTML external methods Win32 (maybe there are specific issues, if so I don't want to read about them :) SQL methods patches/hacks to Zope I am sure that I can find lots of work for you! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From zopelist@regalint.com Wed Mar 3 16:45:32 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:45:32 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> Message-ID: >You thinking of running one in UK 8^) Maybe Michigan/Ontario area? Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rkw@dataplex.net Wed Mar 3 16:47:07 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 3 Mar 1999 10:47:07 -0600 (CST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: This sounds like something we need. I know that I could use it. If folks will critique this design, I'll implement it. - - Proposed Access Method - - It is desired to be able to have "non DTML" files incorporated in a Zope URL system. These files might be static GIF files, quicktime movies, or just plain old HTML. Obviously, they might be "included" in a DTML page by simply referencing them directly by their URL. However, I can see cases where one would like the access to be under the control of the Zope system. For example, access controls might apply. I believe that we can achieve this by having an object which represents an ExternalFS mount point. In general, we map a URL onto a node of the FS. It would be directly analogous to a symbolic link (ln -s). The Zope mount point would enforce permissions just as if the file were loaded into the Zope DB. Objects can be "imported" without having them take up space in the database. Their creation and maintanence can be handled outside the Zope system. They are rendered by "cat"ing their contents. By permitting substitutions in the link, we can create effective reformatting of the visible FS. As an example, I am monitoring customer traffic. "mrtg" automatically generates graphs for each customer. In Zope, I could create customized displays by importing these files. By using the ExFS, I can update the graphics without affecting Zope. Further, assuming /mygraphs/today/customer1.gif /mygraphs/today/customer2.gif /mygraphs/yesterday/customer1.gif /mygraphs/yesterday/customer2.gif we can map them onto somewhere/KustomerA/graphs/today somewhere/KustomerA/graphs/yesterday by substituting a property of the Kustomer - - - Thoughts and/or suggestions? Richard On Wed, 3 Mar 1999, Michel Pelletier wrote: > ooo. Someone has yet to write an ExternalFile product (though I suspect > it would be fairly simple) to add objects to the db that refer to files > outside the db. For now you can upload them as File objects to be > contained entirely in the db. The same rules that apply to file name > conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't > have the same object id in the same folder. (With a minor non-exception > of aquisition, all lower folders can see the contents of higher folders, > but if you place an object in a lower folder with the same id as an > object in a higher folder the lower object will override the higher > object. Get that?) From mbernstein@profitscape.net Wed Mar 3 17:00:13 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:00:13 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Message-ID: <36DD6A9D.557592FB@profitscape.net> Paul Everitt wrote: > BTW, is there any interest here in a Zope training course? Yes, at least theoretically. What would be covered and is this an online or offline course? Michael Bernstein. From bkc@murkworks.com Wed Mar 3 16:17:07 1999 From: bkc@murkworks.com (Brad Clements) Date: Wed, 3 Mar 1999 12:17:07 -0400 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903031711.MAA29620@anvil.murkworks.com> On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. Time to move this to zope-dev? anyway, I think this sounds like a good idea. It harkens back to an inquiry I made about byte-serving PDF files. I don't want to dump my pdf's into the database. If you can implement this, I think I could implement byte-serving. Although byte-serve could be handled at the ZServer level, I think for large external files it'd be more effective at the "cat" level -B Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From kid@ans.net Wed Mar 3 17:26:15 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 12:26:15 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <19990303122615.A6474@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: ,----- | >Here is a start. | | Great start! | | Could I suggest that there be FAQs for different catagories? This is a good idea. I can see this FAQ growing very, very quickly. So, I would suggest that we start thinking about a hierarchy already... a couple suggestions below: | | My list would include: | Installation * building * win32 * freeBSD * etc. * server configuration * zap * apache * ZServer | DTML | external methods | Win32 (maybe there are specific issues, if so I don't want to read about | them :) I'm not sure if there will be many platform specific issues after installation... | SQL methods | patches/hacks to Zope | | I am sure that I can find lots of work for you! | | Phil A | | ------------------------------------------ | Philip Aylesworth zopelist@regalint.com | Regal International | | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From julian@zereau.net Wed Mar 3 17:31:31 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:31:31 -0000 (GMT) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903031711.MAA29620@anvil.murkworks.com> Message-ID: On 03-Mar-99 Brad Clements wrote: > On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > > >> This sounds like something we need. >> I know that I could use it. >> If folks will critique this design, I'll implement it. > > > Time to move this to zope-dev? > > anyway, I think this sounds like a good idea. It harkens back to an > inquiry I made about byte-serving PDF files. I don't want to dump my > pdf's into the database. > > If you can implement this, I think I could implement byte-serving. > > Although byte-serve could be handled at the ZServer level, I think for > large external files it'd be more effective at the "cat" level How safe would it be, to allow any random user to use the add menu to create arbitrary symlinks into the native file system tree? --- Julian Morrison Programmer (Zereau Ltd) From mbernstein@profitscape.net Wed Mar 3 17:32:20 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:32:20 -0800 Subject: [Zope] count of items in group? References: Message-ID: <36DD7224.67AED2C5@profitscape.net> julian@zereau.net wrote: > > Using the "in" tag's grouping capability, is there any way to get the count of > items in that group? I need this so I can have a table with one row per item > and a cell rowspanned for all the group's items (eg: related products and their > picture). Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit. Michael Bernstein. From julian@zereau.net Wed Mar 3 17:34:16 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:34:16 -0000 (GMT) Subject: [Zope] count of items in group? In-Reply-To: <36DD7224.67AED2C5@profitscape.net> Message-ID: On 03-Mar-99 Michael Bernstein wrote: > julian@zereau.net wrote: >> >> Using the "in" tag's grouping capability, is there any way to get the count >> of >> items in that group? I need this so I can have a table with one row per item >> and a cell rowspanned for all the group's items (eg: related products and >> their >> picture). > > Rather than using rowspan, use nested tables. I haven't done this in > Zope yet, but it was always my solution of choice in ColdFusion. It also > makes it easier to debug your layout in a WYSIWYG editor. It does, of > course, bloat your HTML a bit. It will work, and I'm going to have to in the short term, but I really would like the multiple columns for each item to line up down the page, without ugly fixed-width hacks. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 17:40:19 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 12:40:19 -0500 (EST) Subject: [Zope] Crossposting Message-ID: Is it possible to have a filter on the mailing lists that will drop any posts on the main zope site that appear to be cross-posted on the zope-dev site? Pavlos From zopelist@regalint.com Wed Mar 3 18:00:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 13:00:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <19990303122615.A6474@throwingcopper.ans.net> References: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Maybe by splitting up the FAQs we could split up the work, too! Have a different person/group resposible for each FAQ. Of course there would be nothing stopping some energetic type being involved with all of them :) Also, I think that HOWTOs of the Linux type would be a great idea. They have a person/group responsible for each HOWTO to keep it up to date and add/edit things as needed. I am just commenting from the sidelines. Right now I barely have time to scan through the zope-list! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Wed Mar 3 18:53:55 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 13:53:55 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 01:00:03PM -0500 References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <19990303135355.47418@amber.org> On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > Maybe by splitting up the FAQs we could split up the work, too! Have a > different person/group resposible for each FAQ. Well, I think it'd be nice if there was someone "responsible" for each major section, this would keep everyone from getting swamped. > Of course there would be nothing stopping some energetic type being > involved with all of them :) :-) I for one have no problem causing trouble in everyone's life! > Also, I think that HOWTOs of the Linux type would be a great idea. They > have a person/group responsible for each HOWTO to keep it up to date and > add/edit things as needed. You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and I'm sure Guido/Fred wouldn't mind us using this. It works real well, and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets you do the "bigger" stuff in a nice pretty way. What would also be nice is a list of "bigger" issues that people would liek to see explained more... something that's more than a single question. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rocon@pivot.net Wed Mar 3 20:28:27 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 3 Mar 1999 15:28:27 -0500 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Christopher G. Petrilli wrote:... >You can find a "howto" LaTeX stylesheet in the >Python CVS checkout, and I'm sure Guido/Fred >wouldn't mind us using this. It works real well, >and can target HTML, ASCII (I think), >Postscript, PDF, etc... this lets >you do the "bigger" stuff in a nice pretty way. Ok, I found: http://www.python.org/doc/howto/writing.html the link on that page: you can grab [Fred Drake's documentation distribution], and use... Is broken with a "Error 404: File Not Found" Searching for "LaTeX CVS" didn't quite get it can you please provide the links? Not only will this be good for the DOC project but also for general use in targeting HTML PDF etc....etc... TIA -bobo connor From michel@digicool.com Wed Mar 3 20:48:32 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 15:48:32 -0500 Subject: [Zope] etcUserFolder Product Message-ID: <613145F79272D211914B0020AFF6401907BACC@GANDALF> Greetings, (This is crossposted because it is a product anouncement, and contains interesting developer pointers) I've have massaged the source code for UserDb and created a new user folder products called etcUserFolder. This products authenticates off of a flat file of usernames:cryptedpasswords. If there is anything trailing the crypted password it is ignored, so any /etc/passwd file will work. It is generaly not recommended, however, to use your /etc/passwd file for security reasons. This is an unsuported product and has been written because it was asked for a few times, and I felt the community could use another good example of writing user folders. It also shows off cookie authentication which Brian perfected with UserDb. Here is the documentation: etcUserFolder requires a directory called 'etcUsers' in which to place your file containing the uid:pwd pairs. This directory may be an INSTANCE_HOME (typicaly your top level Zope dir), SOFTWARE_HOME (typicaly 'lib/python') or in the etcUserFolder directory. Jim wrote a nifty function called getPath that sniffs all of these places for a directory and file of your choosing. This function is included in etcUserFolder and will be included as a standard function of the next release. Other Product authors may find it interesting. Since the flat file is meant to be b/w compatable with /etc/passwd and htpasswd style files, there is no Role associated with the users it authenticates. You can specify a default role which is, by default, 'etcUser'. I have not done extensive testing of this, therefore it is a pre-release. Please send bug-reports and hopefully a patch to me (michel@digicool.com) http://www.zope.org/Download/Prereleases/etcUserFolder/etcUserFolder.tar .gz -Michel From phila@regalint.com Wed Mar 3 20:44:25 1999 From: phila@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 15:44:25 -0500 Subject: [Zope] DTML Method vs Document Message-ID: I just upgraded to 1.10.2 and I noticed that when creating a new document I have a choice of DTML document and DTML method. This seems useful. I noticed that all my DTML documents and DTML methods have the icon for a DTML method. Everything seems to work. What is the difference between a DTML document and a DTML method? Seems to me a method should not be surfable but they are. Is it possible to change my documents to DTML documents? Even just for housekeeping. One other unrelated question: What is a Principia Draft? ------------------------------------------------------------------- Philip Aylesworth Information Systems Manager phila@regalint.com PGP public key: http://www.regalint.com/PGPkeys/phila.html From petrilli@amber.org Wed Mar 3 21:05:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 16:05:07 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Wed, Mar 03, 1999 at 03:28:27PM -0500 References: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: <19990303160507.37050@amber.org> On Wed, Mar 03, 1999 at 03:28:27PM -0500, Robert OConnor wrote: >[Robert mentions problems with the links on the web site] I just had a quick exchange with Fred Drake (who handles most of the documentation duties for the Python organization), and he is aware of this problem, and has forwarded the issue to AMK who is responsible for teh HOWTO stuff. IN the mean time, he suggests grabbing the latex documentation whihc will have it all in it. If this is too painful, I can post a snapshot of the pieces taht are needed from the current CVS repository. The URL for the LaTeX documentation is: http://www.python.org/ftp/python/doc/latex-1.5.2b2.tgz Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jae@kavi.com Wed Mar 3 21:04:07 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:04:07 -0800 (PST) Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DD1470.531A427@pop.vet.uu.nl> Message-ID: On Wed, 3 Mar 1999, Martijn Faassen wrote: > What would also be nice is some way to simply generate plain ascii text > versions of the FAQ as well, along with possibly some other versions. We > could also think about generating DocBook SGML (which then can be > converted in a lot of different formats with for instance the Linux > SGMLtools 2.0). I would love to see this feature (generating DocBook SGML). I thought about something like this myself (for my howto), but I just don't have the time at the moment. I could probably find enough time to help out a little though. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Wed Mar 3 21:10:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 16:10:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: >Is broken with a "Error 404: File Not Found" >Searching for "LaTeX CVS" didn't quite get it >can you please provide the links? Try ftp://ftp.python.org/pub/python/doc/latex-1.5.2b2.tgz Thanks, Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tjg@avalongroup.net Wed Mar 3 21:06:43 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Wed, 03 Mar 1999 13:06:43 -0800 Subject: [Zope] ZMySQLDA Message-ID: <36DDA463.683D9460@avalongroup.net> Hi, I'm playing with Zope, and have been trying to get Zope to talk to MySQL using the MySQLDA. I'm running RedHat 5.2 Since there were caveats about having MySQL development enabled, and such, I downloaded the source distribution for MySQL and made it. It appears to be working very nicely. When I follow the procedures outlined in the README, the following happens: I run make -f Makefile.pre.in boot and everything works correctly. I then run make and get the following error. gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql -lmysqlclien t -lm -o MySQLmodule.so ld: cannot open -lmysqlclient: No such file or directory make: *** [MySQLmodule.so] Error 1 I did a locate on mysqlclient, and coudln't find the file. though I did find some called libmysqlclient. So I changed the both Setup and Setup.in to reflect that other name. however, I still get the above error. Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From jae@kavi.com Wed Mar 3 21:48:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:48:33 -0800 (PST) Subject: [Zope] ZMySQLDA In-Reply-To: <36DDA463.683D9460@avalongroup.net> Message-ID: On Wed, 3 Mar 1999, Timothy Grant wrote: > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. Your problem wasn't with the library, -lmysqlclient refers to libmysqlclient (think of the -l as short for lib). The problem probably was that libmysqlclient wasn't on the path gcc searched for libraries. This is controled by the -L argument (-L is library paths). So... here's what to do: 1. Get everything cleaned up (ie. back in the condition after first untarring ZMySQL). 2. Edit Setup.in, add -L to the end of the last line. 3. Proceed as usual (make -f Makefile.pre.in boot; make) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From ron@rotflol.cx Wed Mar 3 21:57:31 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 22:57:31 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Your message of "Wed, 03 Mar 1999 10:17:04 EST." <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903032157.WAA00348@heaven.rotflol.cx> > > > > -----Original Message----- > > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > > Sent: Wednesday, March 03, 1999 9:42 AM > > To: zope@zope.org > > Subject: [Zope] Some tough questions about zope... (long) > > > > > > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > > programs are mainly .cgi, but the PHP3 programs are server-side > > scripted, and as such are embedded into the HTML itself). This is so > > that I can > > ...do what? ;) Zope can call your cgi scripts just like they are, as > URLs. They would, of course, have to be external to Zope and if you > have a bunch of little ones you may find it better (and a damn sight > easier) to rewrite them as Python in Zope as external methods. (DTML is > also a rather powerful language for being so simple). Just leave your > PHP stuff in your documents; Zope will parse out the DTML and return it > to the server, which will parse out the PHP stuff and return it to the > browser. In fact, you can probably make DTML and PHP work together > nicely and simplify much of your PHP code. In the quickie case you > don't need to change your PHP. If this would work (having Apache parse the PHP code in the pages returned by Zope), you would save me a lot of painfull converting working PHP code (mainly database related) and I would gradually convert from PHP/Apache to Zope/Python/Apache. Pleaz tell me how this neat trick is done... (maybe some fiddling with the headers???) Hint: Creating a DTML Document/method with the following contents doesn't fool Apache in rendering PHP!

    Give me the (PHP) money...

    Read the phpinfo between the lines... NOT!!

    -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From raver@box.dust.za.net Wed Mar 3 22:02:07 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 3 Mar 1999 23:02:07 +0100 Subject: [Zope] Data from forms into a database - how? Message-ID: <19990303230207.A1292@RaVER.duck.org> Hello! Don't laugh at me - this is probably a very simple thing to do, but as I'm new to zope and can't find description of how this is accomplished I seek your help. I get data out of my database (MySQL) by querying, but how can I have data collected by forms showeled into the database? Appreciate any help I can get! Sture Lygren From michel@digicool.com Wed Mar 3 22:24:41 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 17:24:41 -0500 Subject: [Zope] DTML Method vs Document [ZDP?] Message-ID: <613145F79272D211914B0020AFF6401907BACD@GANDALF> > -----Original Message----- > From: Philip Aylesworth [mailto:phila@regalint.com] > Sent: Wednesday, March 03, 1999 3:44 PM > To: Zope List > Subject: [Zope] DTML Method vs Document > > > I just upgraded to 1.10.2 and I noticed that when creating a > new document I > have a choice of DTML document and DTML method. This seems useful. I > noticed that all my DTML documents and DTML methods have the > icon for a > DTML method. Everything seems to work. > > What is the difference between a DTML document and a DTML > method? Seems to > me a method should not be surfable but they are. > This is my take on the situation. As far as I can tell this is pretty deep voodoo. A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called foo, and it contained a DTML Method called bar, then bar is a method of foo. foo doesn't contain the object bar, it has the method bar bound to it. What this means is that from bar's point of view, 'self' is a Folder object, and any properties it sees are properties of foo, not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of DTMLDocument.DTMLDocument. They can manage their own Properties (because they inherit PropertyManager.PropertyManager). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question 'Am I showing some other objects content through me?' is Yes. DTML Documents should be used when the answer to the question 'Am I the content I want to display?' is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. (BTW Martijn, perhaps the above should go in the FAQs) If this isn't clear to you don't worry, it isn't even really clear to me. There is no way, but there really should be a way to convert between the two because the roles for a DTML widget may change from Method to Document as your system evolves. This will probably be a feature in the next release. (This is the answer to the question 'Can I convert between DTML Meths and DTML Docs?' for the FAQs) > Is it possible to change my documents to DTML documents? Even just for > housekeeping. > See directly above. > One other unrelated question: What is a Principia Draft? > Ugh..good question... I need to find that one out myself. > > > ------------------------------------------------------------------- > Philip Aylesworth Information Systems Manager > phila@regalint.com > PGP public key: http://www.regalint.com/PGPkeys/phila.html > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mjd@networklogic.com Wed Mar 3 22:23:44 1999 From: mjd@networklogic.com (Maurice Davis) Date: Wed, 03 Mar 1999 14:23:44 -0800 Subject: [Zope] Version 0.3 of ZPyGreSQLDA Message-ID: <36DDB670.4B15C6A4@networklogic.com> Version 0.3 of ZPyGreSQLDA has been posted to the Contrib area of the Zope site. This version upgrades to PyGreSQL 2.3 and compiles under Zope-1.10.2. It now closes the backend connection to postgres when the database connection is shut down from Zope. Maury From ron@rotflol.cx Wed Mar 3 22:42:30 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 23:42:30 +0100 Subject: [Zope] ZMySQLDA In-Reply-To: Your message of "Wed, 03 Mar 1999 13:06:43 PST." <36DDA463.683D9460@avalongroup.net> Message-ID: <199903032242.XAA02180@heaven.rotflol.cx> > Hi, > > I'm playing with Zope, and have been trying to get Zope to talk to MySQL > using the MySQLDA. > > I'm running RedHat 5.2 > > Since there were caveats about having MySQL development enabled, and > such, I downloaded the source distribution for MySQL and made it. It > appears to be working very nicely. > > When I follow the procedures outlined in the README, the following > happens: > > I run make -f Makefile.pre.in boot and everything works correctly. > > I then run make and get the following error. > gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 > -DHAVE_CONFIG > _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c > ./MySQLmodule.c: In function `pythonify_row': > ./MySQLmodule.c:238: warning: assignment from incompatible pointer type > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. > > Any help would be greatly appreciated. You almost made it ;=) The -lmysqlclient does refer to the libmysqlclient you found, but you should only modify the path pointing to it. This is done in the Setp[.in] just before the -lmysqlclient; modify the '-L/', if have this set to -L/usr/local/lib/mysql. [ZDP] Maybe this is something for the FAQ? -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From jae@kavi.com Wed Mar 3 23:03:12 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 15:03:12 -0800 (PST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903032157.WAA00348@heaven.rotflol.cx> Message-ID: On Wed, 3 Mar 1999, Ronald Offerman wrote: > > also a rather powerful language for being so simple). Just leave your > > PHP stuff in your documents; Zope will parse out the DTML and return it > > to the server, which will parse out the PHP stuff and return it to the > > browser. In fact, you can probably make DTML and PHP work together > > nicely and simplify much of your PHP code. In the quickie case you > > don't need to change your PHP. > > If this would work (having Apache parse the PHP code in the pages > returned by Zope), you would save me a lot of painfull converting > working PHP code (mainly database related) and I would gradually convert > from PHP/Apache to Zope/Python/Apache. This can't be done currently. I researched this a while back, trying to get server side includes to work. There's actually an entry in the Apache FAQ about it: """ 9.How can I have my script output parsed? So you want to include SSI directives in the output from your CGI script, but can't figure out how to do it? The short answer is "you can't." This is potentially a security liability and, more importantly, it can not be cleanly implemented under the current server API. The best workaround is for your script itself to do what the SSIs would be doing. After all, it's generating the rest of the content. This is a feature The Apache Group hopes to add in the next major release after 1.3. """ Though this is about SSI, it basically means (I believe) that apache can't take back the output of a CGI for additional module handling. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From neves@inf.puc-rio.br Wed Mar 3 23:22:43 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 03 Mar 1999 20:22:43 -0300 Subject: [Zope] Data from forms into a database - how? References: <19990303230207.A1292@RaVER.duck.org> Message-ID: <36DDC443.EF76DAE0@inf.puc-rio.br> raver@box.dust.za.net wrote: > > Hello! > > Don't laugh at me - this is probably a very simple thing to do, but > as I'm new to zope and can't find description of how this is accomplished > I seek your help. I get data out of my database (MySQL) by querying, but > how can I have data collected by forms showeled into the database? > > Appreciate any help I can get! > Hi Sture, try to use the P MySQL Input wizard in the contrib download area. It will automatically create a insert sql method and a form for you. So you can just follow the pattern. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From michel@digicool.com Wed Mar 3 23:42:05 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 18:42:05 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BACF@GANDALF> > -----Original Message----- > From: John Eikenberry [mailto:jae@kavi.com] > Sent: Wednesday, March 03, 1999 6:03 PM > To: Ronald Offerman > Cc: Michel Pelletier; Tony McDonald; zope@zope.org; > ron@heaven.rotflol.cx > Subject: Re: [Zope] Some tough questions about zope... (long) > > > On Wed, 3 Mar 1999, Ronald Offerman wrote: > > > > also a rather powerful language for being so simple). > Just leave your > > > PHP stuff in your documents; Zope will parse out the DTML > and return it > > > to the server, which will parse out the PHP stuff and > return it to the > > > browser. In fact, you can probably make DTML and PHP > work together > > > nicely and simplify much of your PHP code. In the > quickie case you > > > don't need to change your PHP. > > > > If this would work (having Apache parse the PHP code in the pages > > returned by Zope), you would save me a lot of painfull converting > > working PHP code (mainly database related) and I would > gradually convert > > from PHP/Apache to Zope/Python/Apache. > > This can't be done currently. I researched this a while back, > trying to > get server side includes to work. There's actually an entry > in the Apache > FAQ about it: > > """ > 9.How can I have my script output parsed? > > So you want to include SSI directives in the output from your CGI > script, but can't figure out how to do it? The short > answer is "you > can't." This is potentially a security liability and, more > importantly, it can not be cleanly implemented under the current > server API. The best workaround is for your script > itself to do what > the SSIs would be doing. After all, it's generating the > rest of the > content. > > This is a feature The Apache Group hopes to add in the next major > release after 1.3. > """ > > Though this is about SSI, it basically means (I believe) that > apache can't > take back the output of a CGI for additional module handling. > > --- Well paint me blue and call me a liar. At least it's planned. Michel > > John Eikenberry > [jae@kavi.com - http://taos.kavi.com/~jae/] > ______________________________________________________________ > "A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From reedstrm@rice.edu Thu Mar 4 00:02:51 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Wed, 03 Mar 1999 18:02:51 -0600 Subject: [Zope] Indirect variable references References: <3.0.5.32.19990204010511.01588de0@mail.aracnet.com> Message-ID: <36DDCDAB.E2D20FD@rice.edu> Amos Latteier wrote: I'm piggy backing this on Amos's post from a while ago, because that is where I finally found my answer. I could have sworn I had seen (and used!) a DTML code fragment that displayed the form variables sent to it, with there values. Obviously, this involves indirection. After hunting through my (extensive) zope-list archive, I couldn't find it, so I started over, with the help of Amos's text and wrote one. I often need little tools like this to debug between my forms and sql actions, so I can see what's really going on! I call it 'show_vars' The only tricky thing in it is that sequence-item is an invalid variable name, so I need to wrap it in _[''] which leads to the double wrap when dereferencing to get the value. Anyway, hope someone else finds it useful!
    Form VariableValue
    Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From oyvindmo@pvv.ntnu.no Thu Mar 4 00:18:41 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 04 Mar 1999 01:18:41 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: Message-ID: * John Eikenberry | | On Wed, 3 Mar 1999, Ronald Offerman wrote: | | > > also a rather powerful language for being so simple). Just leave your | > > PHP stuff in your documents; Zope will parse out the DTML and return it | > > to the server, which will parse out the PHP stuff and return it to the | > > browser. In fact, you can probably make DTML and PHP work together | > > nicely and simplify much of your PHP code. In the quickie case you | > > don't need to change your PHP. | > | > If this would work (having Apache parse the PHP code in the pages | > returned by Zope), you would save me a lot of painfull converting | > working PHP code (mainly database related) and I would gradually convert | > from PHP/Apache to Zope/Python/Apache. | | This can't be done currently. I researched this a while back, trying to | get server side includes to work. [...] | Though this is about SSI, it basically means (I believe) that apache can't | take back the output of a CGI for additional module handling. I haven't tried it, but it could possibly be done by running two Apaches: one which stands "in front of" the other. The front-side Apache would rewrite every access into a PHP wrapper-script which include()s a corresponding URL from the back-side Apache where the Zope things would be done. On the other hand, I really should be asleep now so all this _may_ be utter nonsense, but I do think it's possible. It may even be possible with a single Apache, but that's more hairy than I dare think about right now. Good night. (Btw, my suggested hack isn't in total disagreement with the quoted FAQ entry, because my hack surely won't work with SSI. PHP3 isn't an official Apache module, so they don't neccessarily mention things like this in their FAQ.) -- Øyvind Møll oyvindmo@pvv.ntnu.no From Anthony Baxter Thu Mar 4 00:24:34 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 04 Mar 1999 11:24:34 +1100 Subject: [Zope] debugging ZServer FTP sessions. Message-ID: <199903040024.LAA11235@mbuna.arbhome.com.au> I'm attempting to use ZServer's ftp daemon to upload a number of images into my database, however no matter what I try I always get back ftp> put sidebar.gif local: sidebar.gif remote: sidebar.gif 200 PORT command successful. 150 Opening Binary connection for sidebar.gif 550 Error creating file. 189 bytes sent in 0.00139 secs (1.3e+02 Kbytes/sec) ftp> I've tried this with an image that doesn't exist, as well as for one that already exists. Is it just a matter of "it doesn't work for images" or what? Also, where does ZServer send errors from ftp sessions? It looks to me like it's just silently eating them. :( Anthony From rushing@nightmare.com Thu Mar 4 01:03:59 1999 From: rushing@nightmare.com (rushing@nightmare.com) Date: Wed, 3 Mar 1999 17:03:59 -0800 (PST) Subject: [Zope] ZServerFTP In-Reply-To: <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> References: <008401be622b$0a80edd0$fa01a8c0@rogue.easystreet.com> <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> Message-ID: <14045.55810.997842.777915@gnome.nightmare.com> Amos Latteier writes: > At 12:27 AM 2/27/99 -0800, you wrote: > >HomeSite's FTP mode is apparently trying to use the FTP commands "MODE S" > >and "STRU F" to which ZServer is responding with a "500 '%s': command not > >understood." % command and then HomeSite bails out and never fetches any > >directory listings or anything. > > > >Is there any intent to support these commands? It sure would be nice. > > Right now we are trying not to add a lot of FTP commands to ZServer that > Medusa's FTP server doesn't already support, and it seems that Medusa > doesn't support these right now. > > I'll look into these commands and if they are easy to implement and make > sense for Zope, I'll try. Of course, patches are always welcome. In all the world you might find 4 machines still plugged in that support 'record' or 'page' structure. The default is 'file', which is what that command is trying to do. Add these two methods to ftp_server.py::ftp_channel def cmd_stru (self, line): 'obsolete - set file transfer structure' if line[1] in 'fF': # f == 'file' self.respond ('200 STRU F Ok') else: self.respond ('504 Unimplemented STRU type') def cmd_mode (self, line): 'obsolete - set file transfer mode' if line[1] in 'sS': # f == 'file' self.respond ('200 MODE S Ok') else: self.respond ('502 Unimplemented MODE type') And that should do the trick. [these changes have just been checked into my CVS repository, too] -Sam From mj@antraciet.nl Thu Mar 4 09:06:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:06:39 +0100 Subject: [Zope] DTML Method vs Document In-Reply-To: Message-ID: <4.1.19990304090459.00bef1b0@lisp.atmm.nl> At 21:44 03/03/99 , Philip Aylesworth wrote: >What is the difference between a DTML document and a DTML method? Seems to >me a method should not be surfable but they are. > >Is it possible to change my documents to DTML documents? Even just for >housekeeping. Micheal answered these perfectly. >One other unrelated question: What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. This has allready been reported as a bug to the Collector by me. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder. I think that Folder objects _used_ to call title_and_id on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using it's id and title separetly. Principia Drafts made use of the call to title_and_id to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's users__draft__.manage_main method, and reach the Session controls by calling its manage_approve__draft__ method. The URLS are: http://yoursever.com/Zope/Draft/users__draft__/manage_main and http://yoursever.com/Zope/Draft/manage_approve__draft__ Martijn Ps. Martijn, I am CCing to you for use in the FAQ. I know it still needs editing.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 4 09:19:50 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:19:50 +0300 (MSK) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BACF@GANDALF> Message-ID: Hi! On Wed, 3 Mar 1999, Michel Pelletier wrote: > > Though this is about SSI, it basically means (I believe) that > > apache can't > > take back the output of a CGI for additional module handling. > > > > --- > > Well paint me blue and call me a liar. At least it's planned. It will be implemented with Layered (stacked) handlers. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phd@sun.med.ru Thu Mar 4 09:29:41 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:29:41 +0300 (MSK) Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Hello! I am new to Zope, and i want to clarify some problems. On Wed, 3 Mar 1999, Martijn Faassen wrote: > * How do I call an external method from DTML? As far as I understand there are DTML objects (templates), Products and External methods. There is no such thing as "Internal" methods (objects, that live in Zope's object database). Are these 3 the only 3 kinds of executable (callable) things? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Thu Mar 4 09:30:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:30:45 +0100 Subject: [Zope] [ZDP] Showing form data Message-ID: <4.1.19990304101312.00b9b100@lisp.atmm.nl> * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Thu Mar 4 09:32:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:32:44 +0100 Subject: [Zope] [ZDP] Showing form data (take two) In-Reply-To: <4.1.19990304101312.00b9b100@lisp.atmm.nl> Message-ID: <4.1.19990304103150.00b90ef0@lisp.atmm.nl> Take two, now with escaped HTML.... * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: <!--#in "REQUEST.form.items()" sort--> <!--#var sequence-key-->: <!--#var sequence-item--><BR> <!--#/in--> Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Thu Mar 4 09:40:40 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:40:40 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: Message-ID: <36DE5518.109B83A2@pop.vet.uu.nl> John Eikenberry wrote: > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > > What would also be nice is some way to simply generate plain ascii text > > versions of the FAQ as well, along with possibly some other versions. We > > could also think about generating DocBook SGML (which then can be > > converted in a lot of different formats with for instance the Linux > > SGMLtools 2.0). > > I would love to see this feature (generating DocBook SGML). I thought > about something like this myself (for my howto), but I just don't have the > time at the moment. I could probably find enough time to help out a little > though. I'm randomly assuming here you know more about DocBook SGML than I do, so here I'm involuntarily inofficially but you can back out of it immediately appointing you the ZDP DocBook SGML expert. :) I think perhaps the first thing you could do is get together with people in the Latex thread for docs; they seem to have come up with it independently. I know even less Latex than SGML and SGML seems a closer fit with the XML-ish direction the web's taking, so my question would be to point out the advantages of SGML to everybody. Regards and thanks in advance, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 09:45:31 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:45:31 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <36DE563B.C19C92A5@pop.vet.uu.nl> Kevin Dangoor wrote: > On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: > > Here is a start. > > > > Great start! > > > > Could I suggest that there be FAQs for different catagories? > This is a good idea. I can see this FAQ growing very, very quickly. > So, I would suggest that we start thinking about a hierarchy > already... [snip proposed hierarchies] Yup, splitting up the FAQ into different categories appears to be pretty needed, so this is a good idea. My idea is to 'involunteer' you category maker guys to take the assembled FAQ that I'll produce hopefully today (in a few hours), and put each question in the category you feel it belongs to. This way I have to do less work and thinking. :) Realizes-he-is-talking-to-two-people-so-you-can-always-say-I-thought-the-other-guy-would-do-itly yours, (wow, a long one :) Martijn From Armin.Tschammer@oi42.kwu.siemens.de Thu Mar 4 09:49:39 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Thu, 04 Mar 1999 10:49:39 +0100 Subject: [Zope] Bobo or ZPublisher and stdout ( Solution: Client/Server) Message-ID: <36DE5733.60F87988@oi42.kwu.siemens.de> Hi, I already sent some postings to this topic, but I would like to discuss the following problem again and how it could be solved. Imagine there is a big C++/Python project. The application is mainly prgrammed in C/C++ und one supports a scritpting interface to that application via the SWIG mechanism - the target language is Python. During the developping process many stuff is written to the stdout - during initialization ( before the main-function ), during execution ( in the main-function ), and in the destructors of the static instances ( after the main-function ). Now we want to do some web-stuff via ZPublisher, we define a function which return a html string, which is calculated through calling functions from our scritpting interface of our application, that means beside my correct calculated string there is many stuff sent to stdout, that confuses the Xserver and I get an error. Ok, you would say switch the stdout to a file via calling c-funcions like dup() or dup2( ) and encapsulate this in a function (wrapped via SWIG), which is called in the function which I call from the URL in the browser. Less cryptic: xy.py: start(): "XXXXXXX" #Now all stdout goes in a file stdout2file( "log.txt") .... HTMLstring = .... # sitches the stdout back ( REVerse ) # The way is free for CGI REVstdout2file() return HTMLstring the URL: http://myserver:3333/yyy/cgi-bin/xy/start BUT with this method I have no chance to chatch stuff which is written to the stdout in the destrutors of the static instances, because we already have switched back to the "usual" stdout (for a correctly working cgi-mechnism). The some problem one have with things which are written to the stdout during the initialisation of the static instances. ( Imagine python itself is compiled against a library which writes some stuff to stdout during initialization). I see only one solution: If there is a ZPublisher Server process which says to a client process do everything and give me a calculated string via sockets or something like that, I have not to take care about stuff which is written to the stdout at the client process. Or are there better solutions ? Thanks in advance, Armin From M.Faassen@vet.uu.nl Thu Mar 4 10:02:39 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 11:02:39 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> <19990303135355.47418@amber.org> Message-ID: <36DE5A3F.39DA2C28@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > > Maybe by splitting up the FAQs we could split up the work, too! Have a > > different person/group resposible for each FAQ. > > Well, I think it'd be nice if there was someone "responsible" for each > major section, this would keep everyone from getting swamped. Yes, this would be a good idea. My first priority however is to get as much of a FAQ as possible out there. Organization we'll do at the same time. Otherwise we run the risk getting bogged down in organizing who does what. That said, volunteers who want to manage specific sections of the FAQ are very welcome to step forward. Procedure is as follows: you get to name your topic; the first person who names a particular topic and produces a FAQ for it (assembling it from the FAQ we have now, and hopefully adding more of his or her own to it) will be manager for that section, unless that person doesn't want to, of course. :) I suggest to mail this list instead of me personally, so that other people can respond friday and during the weekend, when I won't be around to check the mail. We're working on getting a zdp@zope.org mailing list too, but I can't say yet when that'll be ready. [snip] ] > > Also, I think that HOWTOs of the Linux type would be a great idea. They > > have a person/group responsible for each HOWTO to keep it up to date and > > add/edit things as needed. Aren't there some HOWTOs out there already on the Zope site? (there are FAQs too but that doesn't stop us of course). HOWTOs and FAQs of course have some overlap; we'll just see how it evolves. > You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and > I'm sure Guido/Fred wouldn't mind us using this. It works real well, > and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets > you do the "bigger" stuff in a nice pretty way. Earlier I suggested using SGML Docbook for this purpose; I've appointed John Eikenberry (without any feedback from him :) as our official SGML docbook expert. One advantage of Docbook SGML is that it's the new Linux standard for writing documentation. > What would also be nice is a list of "bigger" issues that people would > liek to see explained more... something that's more than a single > question. I think essentially a HOWTO is a particular frequently asked question with a very long answer. :) Regards, Martijn From Rheal.Dugas@CAN.XEROX.com Thu Mar 4 13:02:53 1999 From: Rheal.Dugas@CAN.XEROX.com (Dugas, Rheal) Date: Thu, 4 Mar 1999 08:02:53 -0500 Subject: [Zope] Query Message-ID: HI all I am a color specialist with Xerox. What i am doing with Zope is setting up a Knowedge database for my fellow color specialist. I am having a bit of a problem setting up a search query. Following is what i have know, Could somebody tell me how i could improve on this query. SELECT * FROM problems WHERE problems_rip_model LIKE OR problems.prob_descript LIKE '%%' OR problems.prob_solution LIKE '%%' Is this the proper code or is there a better way of doing it? Thank You Rheal J. Dugas 1-800-939-3769 ext 1074 From Paul@digicool.com Thu Mar 4 13:34:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:24 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Philip wrote: > Maybe Michigan/Ontario area? Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) No, right now we're considering partnering with a technology training company in Washington DC. --Paul From Paul@digicool.com Thu Mar 4 13:34:25 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:25 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD2@GANDALF> Michael wrote: > Yes, at least theoretically. What would be covered and is > this an online > or offline course? My rough sketch right now is a four-day course: Day One -- Zope for Content Managers Day Two -- Zope Programming Using Zope Day Three -- Zope Programming Using Python Day Four -- Relational Databases and Zope -- Zope for System Administrators It would be a professionally produced and delivered "in the classroom" class, a la Learning Tree. That is, I won't be doing it. :^) Instead, I'll produce a poor version of the whole thing and give it to them, including the first customer that will send maybe 7 people. My poor version would probably become an online version. Just my thoughts currently. --Paul From rocon@pivot.net Thu Mar 4 13:37:40 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 4 Mar 1999 08:37:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Hi Martijn, >I suggest to mail this list instead of me personally, so that other >people can respond friday and during the weekend, when I won't be around >to check the mail. We're working on getting a zdp@zope.org mailing list >too, but I can't say yet when that'll be ready. This ZDP list appears to be ready now although only Ken [List admin] is signed up. I added my name using: http://www.zope.org/mailman/listinfo/zdp The list of ZDP collaborators (subscribers) is at: http://www.zope.org/mailman/roster/zdp -bobo connor bob@rocnet.com From M.Faassen@vet.uu.nl Thu Mar 4 13:43:49 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 14:43:49 +0100 Subject: [Zope] [ZDP] List appears ready References: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Message-ID: <36DE8E15.A3901B2A@pop.vet.uu.nl> Robert OConnor wrote: > > Hi Martijn, > > >I suggest to mail this list instead of me personally, so that other > >people can respond friday and during the weekend, when I won't be around > >to check the mail. We're working on getting a zdp@zope.org mailing list > >too, but I can't say yet when that'll be ready. > > This ZDP list appears to be ready now although only Ken [List admin] > is signed up. I know, Ken sent me a mail. :) I still need to subscribe to it. > I added my name using: > > http://www.zope.org/mailman/listinfo/zdp > > The list of ZDP collaborators (subscribers) is at: > > http://www.zope.org/mailman/roster/zdp I guess this counts as an announcement. Ken asked me to do it, but I just mailed him I'd rather he did it (as he knows more about these things than I do, and I won't be available to deal with problems until monday, after today, thursday). But, now you did, so that's fine too. :) Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 14:16:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:16:50 +0100 Subject: [Zope] ZDP's Ad-hoc Zope FAQ version 0.1 Message-ID: <36DE95D2.A35366C2@pop.vet.uu.nl> Hi everybody, Here is the new ad-hoc FAQ. I'll start versioning it as of now; this is version 0.1. How we'll do the actual versioning we'll still have to decide on, but at least we have a way to refer to this one now. Regards, Martijn ---- Note on the use of the Zope mailing lists: The Zope Documentation Project is getting its own mailing list (zdp@zope.org). In an attempt to gain publicity and support among the Zope community, I'll post this development FAQ to the main Zope list as well, however. Feel free to respond to it on either list for now, but you are encouraged to join the ZDP mailing list and to send new FAQ suggestions there. You can subscribe to the ZDP mailing list by using the page: http://www.zope.org/mailman/listinfo/zdp Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured, unrelated questions are mixed haphazardly. If you feel the calling to categorize the FAQ or to maintain the questions for a particular topic, feel free to mail your changes to the list, and thanks in advance! Note on the code examples and StructuredText: I've reconsidered and used normal '<' and '>' characters in sample DTML, for the reason that at least the FAQ is readable as text then. If you try to feed this FAQ through:: there will be an error message in Zope, however. For some reason Zope seems to try to interprete even StructuredText that uses & escape codes. Until this issue is resolved it is not possible to render this document into HTML. In my uninformed opinion, StructuredText code examples shouldn't be interpreted by Zope as actual DTML. There may be some rather subtle technical difficulties involved however. Any input on this is very welcome. Until the matter is resolved, the FAQ document will use StructuredText in the plaintext readable way. Thanks to Martijn Pieters in being so considerate to supply HTML escaped DTML examples; it's unfortunate his efforts weren't useful this time. Note on my availability: Martijn Faassen (me!), ad-hoc FAQ maintainer of the ZDP's Zope FAQ is generally not available to read or respond to email on friday, saturday and sunday. It is suggested ZDP related communication goes through the ZDP mailing list at zdp@zope.org anyway, and is not sent directly Martijn. This way anyone who wants to do something for the ZDP (such as editing and extending the FAQ) does not have to wait for Martijn to read his mail, having all relevant information available on the list. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them)::
    * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. * What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's 'users__draft__.manage_main' method, and reach the Session controls by calling its 'manage_approve__draft__' method. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ From M.Faassen@vet.uu.nl Thu Mar 4 14:51:55 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:51:55 +0100 Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) References: Message-ID: <36DE9E0A.393AD83B@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > I am new to Zope, and i want to clarify some problems. > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > * How do I call an external method from DTML? > > As far as I understand there are DTML objects (templates), Products and > External methods. There is no such thing as "Internal" methods (objects, > that live in Zope's object database). Are these 3 the only 3 kinds of > executable (callable) things? Hm, DTML methods can be called as well, naturally, that's why they're called methods. They're called through URL. The DTML method then is executed. This means executing any DTML in it and returning the resulting HTML to the caller. One way of 'calling' a DTML method is by using it in a form action, like this:
    (or method="GET", of course) This does go through the browser, but it feels like you're calling 'your_dtml_method' when the user presses the submit button. This is another way of 'calling' a DTML method: I'm sure there are more ways, and I'm a bit vague about this, so I'll leave it up to other people to turn this into a nice FAQ. :) Regards, Martijn From zopelist@regalint.com Thu Mar 4 14:50:57 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 4 Mar 1999 09:50:57 -0500 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br> References: <19990303230207.A1292@RaVER.duck.org> Message-ID: >raver@box.dust.za.net wrote: >> >> Hello! >> >> Don't laugh at me - this is probably a very simple thing to do, but >> as I'm new to zope and can't find description of how this is accomplished >> I seek your help. I get data out of my database (MySQL) by querying, but >> how can I have data collected by forms showeled into the database? >> >> Appreciate any help I can get! >> > >Hi Sture, >try to use the P MySQL Input wizard in the contrib download area. It >will automatically create a insert sql method and a form for you. So you >can just follow the pattern. So that is what the MySQL Input wizard does. I've been meaning to look at it. Instead of saving time by using it, I did it manually. It is not that hard but you have to understand what is happening. 1. HTML form (eg. form_html) collects data and sends it to a DTML document (eg input_html) (that is the only tricky concept). For example: (That :int tag does error checking. It is optional. They are documented in the Z SQL Database Methods User's Guide) 2. The receiving doc (input_html) calls an SQL method (eg input_sql) with an in tag. If you do a select after your INSERT or UPDATE you can use it between the in tags, otherwise you can just display a message or do a redirect after it. 3. Your SQL method (input_sql) would be something like: INSERT INTO database (num) VALUES ( ) SELECT num, etc You don't need to do a select but if you do don't forget the between any SQL statements. Have fun! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From mj@antraciet.nl Thu Mar 4 15:18:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 16:18:02 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> Message-ID: <4.1.19990304161646.00bdb160@lisp.atmm.nl> At 15:50 04/03/99 , Philip Aylesworth wrote: >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with >an in tag. > > > > >If you do a select after your INSERT or UPDATE you can use it between the >in tags, otherwise you can just display a message or do a redirect after it. If you don't do anything with the returned data, a #call will suffice: -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From arw@ifu.net Thu Mar 4 15:31:37 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 10:31:37 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <36DEA759.4FCDB933@ifu.net> Hi. I've been getting a lot of confusing complaints about gadfly that turn out to be Zope bugs. Just for the record. ZGadflyDA doesn't support more than one db, gadfly does. ZGadflyDA doesn't support newlines in string literals, gadfly does. ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x faster. ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 (October 1998) where a lot of other bugs are fixed.... I'm sure these will be fixed soon, in fact I'd offer a patch if I could figure out how the thing works, but until then, Yours truly, -- Aaron Watters http;//www.chordate.com From michel@digicool.com Thu Mar 4 15:44:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 4 Mar 1999 10:44:22 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAD9@GANDALF> > -----Original Message----- > From: Aaron Watters [mailto:arw@ifu.net] > Sent: Thursday, March 04, 1999 10:32 AM > To: zope@zope.org; crew@server.python.net; jeffbauer@bigfoot.com > Subject: [Zope] zope ZGadfly DA buggy > > > Hi. I've been getting a lot of confusing complaints about gadfly > that turn out to be Zope bugs. Just for the record. > > ZGadflyDA doesn't support more than one db, gadfly does. > ZGadflyDA doesn't support newlines in string literals, gadfly does. > ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x > faster. > ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 > (October 1998) where a lot of other bugs are fixed.... > > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, > Yours truly, > -- Aaron Watters http;//www.chordate.com > > Aaron, could you please submit a collector bug with the above information? We will make sure the next release takes a stab at these (at the least use the latest version!) -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From klm@digicool.com Thu Mar 4 16:51:40 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 11:51:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <613145F79272D211914B0020AFF640190BED77@GANDALF> Martijn Faassen wrote: > > Robert OConnor wrote: > > This ZDP list appears to be ready now although only Ken [List admin] > > is signed up. > > I know, Ken sent me a mail. :) I still need to subscribe to it. > [...] > I guess this counts as an announcement. Ken asked me to do it, but I > just mailed him I'd rather he did it (as he knows more about these > things than I do, and I won't be available to deal with problems until > monday, after today, thursday). > > But, now you did, so that's fine too. :) Umm - i know it's redundant at this point, but for completeness sake - the Zope Documentation Project mailing list is open and ready for business. Thanks again to martijn for instigating this effort - have at it! Ken Manheimer klm@digicool.com From klm@digicool.com Thu Mar 4 17:10:38 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 12:10:38 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <613145F79272D211914B0020AFF640190BED78@GANDALF> Martijn Pieters wrote: > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. As a new zope user, and also according to my general documentation sensibilities, i suspect it would be very valuable to have a catalogue of the various special variables (like sequence-key and sequence-item) and the various entities (REQUEST.cookies, ...) available to the DTML programmer. There may already be some sort of catalogues around - in which case pointers to those kinds of resources would be very nice to have... Ken From the perspective of a new user of zope, as well as from the perspective of completeness, one thing i think would be From amos@aracnet.com Thu Mar 4 17:11:05 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 04 Mar 1999 09:11:05 -0800 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> At 05:31 PM 3/4/99, Jay Ashton wrote: >In trying to figure out what's going on I've noticed a couple things. >First, and I think most illustrative, if I try to add a new Z ODBC >connection, none of my ODBC sources are showing up in the available list >(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >Zope with ZopeHTTPServer all my ODBC connections show up just fine. > >Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >variables of both and noticed some differences - USERPROFILE's are Default >User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >USERDOMAIN in the 1.10.2/IIS environ, with no luck. I think at least this part of your problem may be due to the fact that Zope is running as a different user under IIS than it is under ZopeHTTPServer. My guess is that it can't see your datasources since they weren't created as 'System' datasources. Check under the windows ODBC control panel and make sure your DSNs appear under 'system dsn', not 'user dsn'. -Amos From jeffrey@Digicool.com Thu Mar 4 17:20:13 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 04 Mar 1999 12:20:13 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <199903041720.JAA27601@zope.codeit.com> >From: Martijn Pieters >To: Zope Mailinglist >Subject: [Zope] [ZDP] Showing form data >Date: Thu, Mar 4, 1999, 4:30 AM > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. > > Show showing all form data can be done like this:: > > > :
    > > > Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() > for all REQUEST variables, including CGI Environment variables. The most supremely easy way is::
    :) .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Thu Mar 4 17:32:36 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 04 Mar 1999 09:32:36 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Message-ID: <36DEC3B4.D6B3C99@profitscape.net> Paul Everitt wrote: > Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) ROAD TRIP! From tjg@avalongroup.net Thu Mar 4 19:40:55 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 11:40:55 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DEE1C7.39E6E77F@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From skip@mojam.com (Skip Montanaro) Thu Mar 4 20:21:31 1999 From: skip@mojam.com (Skip Montanaro) (skip@mojam.com (Skip Montanaro)) Date: Thu, 4 Mar 1999 15:21:31 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/site-packages? Message-ID: <199903042021.PAA00587@dolphin.calendar.com> Can the contents of Zope's lib/python directory safely be copied to the site-packages directory of the Python install directory? Thx, Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@mojam.com | Musi-Cal: http://www.musi-cal.com/ 518-372-5583 From arw@ifu.net Thu Mar 4 20:39:29 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 15:39:29 -0500 Subject: [Zope] gadfly bug in charstring literal recognition [fixable] References: <199903041633.IAA26276@zope.codeit.com> <36DEBB14.8C3AF1FD@digicool.com> <36DEC913.36F30F17@ifu.net> <36DED050.A1C0ED43@digicool.com> <36DEDF94.6B3CD6FF@ifu.net> Message-ID: <36DEEF81.ACFD17AC@ifu.net> Oops. One "zope bug" I complained of was mine. If it had been reported to the gadfly-rdbms list it would have been fixed back when. viz: Aaron Watters wrote: > [copied to gadfly-rdbms list] > > Jim Fulton wrote: > >...most RDBMSs (as in all but gadfly) > > > accept: > > > > cursor.execute(""" > > select name > > from table > > where descr = 'this > > doesn''t work for two reasons' > > """) > > > > Are you saying that the SQL spec disallows newlines in > > quoted strings? > > I actually was unaware of that. I'll look to my docus. In the > mean time if you want it, in sqlgen.py change the charstre to > > charstre = "'[^']*'" > > ===interactively > >>> c.execute(""" > select 'this > doesn''t work for two reasons' > from dual""") > >>> print c.pp() > > ========================================================= > this > doesn't work for two reasons > ===end ... > -- Aaron Watters > > ps: and thanks. post script: The current usage of gadfly in Zope makes gadfly do lots of parsing as in insert into table(a,b,c) values (1,2,3) insert into table(a,b,c) values (6,2,3) insert into table(a,b,c) values (1,7,3) insert into table(a,b,c) values (1,2,8) The "right" way to do this would be to take advantage of gadfly's dynamic parameter/multiinsert feature executing insert into table(a,b,c) values (?,?,?) ONCE with dynamic parameters list [(1,2,3), (6,2,3), (1,7,3), (1,2,8)] which would run much faster than thrashing the parser with the individual inserts above (with kjbuckets present). In general dynamic parameters on repeated statements reduce parsing and binding overhead (even for other types of statements). However, I understand this may be hard to implement as it would require special features for the gadfly "adapter" not of value for the other adapters. Oh well. Anyway, in future please post/forward/crosspost any gadfly related issues to the gadfly list. I just discovered a pile of complaints on the zope list this morning and I found it distressing. I don't normally read the zope list. -- Aaron Watters http://www.chordate.com From robin@alldunn.com Thu Mar 4 21:24:49 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 13:24:49 -0800 Subject: [Zope] evaluating attribute values Message-ID: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> How can I evaluate a #var equivallent for setting a tag attribute value? For example, Zope doesn't like this: --> or this: (it tries to use smtpHost as the host name, instead of its value) Help! -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From jae@kavi.com Thu Mar 4 22:05:21 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 14:05:21 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > For example, Zope doesn't like this: > > --> > > or this: > > > > (it tries to use smtpHost as the host name, instead of its value) Try: or this: --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jody@ldeo.columbia.edu Thu Mar 4 22:12:16 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Thu, 4 Mar 1999 17:12:16 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903042212.RAA16927@hog> I have a long running process that will be started by Zope. This process has a CORBA interface that is implemented using ILU. I would like to be able to asynchronously have this process generate data for Zope. My basic questions are: o Can I have an ILU mainloop inside of Zope? (I really don't care if I have to hack Zope or if I can use an external method.) o Should I fork/exec the long running process and give the process a URL that indicates where the data should be written? (I can use pickles or sql.) o How do I tell Zope that new data is avaliable if the process is external to Zope? Jody Winston From John Eikenberry Thu Mar 4 22:26:18 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 14:26:18 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: Ok, what's the trick to getting special characters to be converted to their escape codes (eg. " to "). This is particularly important for forms in which the user may enter these types of character. For instance, if I create a property on a folder that is a string, and if the string I enter has quotes around it... it doesn't show in the interface the next time I go to edit the properties. For example, in MCExam, the 2nd sample question has this as an answer "bar, spam". If I go to the folder's properties to change it, it doesn't show up. In the source it looks like: Obviously, if I then save changes, the value is gone altogether. Is there a way of automatically converting quotes and other special characters to their escape codes (like the sqlquote method)? Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From robin@alldunn.com Thu Mar 4 22:37:05 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 14:37:05 -0800 Subject: [Zope] evaluating attribute values Message-ID: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Sorry, your ideas don't work either. This time I get a NameError for mhost in the following code in SendMailtag.py. mhost is never being created. if self.mailhost: mhost=md[self.mailhost] elif self.smtphost: mhost=MailBase() mhost._init(localHost=gethostname(), smtpHost=self.smtphost, smtpPort=self.port) mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, self.subject) -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: John Eikenberry To: Robin Dunn Cc: zope Date: Thursday, March 04, 1999 1:17 PM Subject: Re: [Zope] evaluating attribute values >On Thu, 4 Mar 1999, Robin Dunn wrote: > >> For example, Zope doesn't like this: >> >> --> >> >> or this: >> >> >> >> (it tries to use smtpHost as the host name, instead of its value) > >Try: > > > >or this: > > > >--- > >John Eikenberry >[jae@kavi.com - http://taos.kavi.com/~jae/] >______________________________________________________________ >"A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 4 22:42:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 17:42:51 -0500 (EST) Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <199903042212.RAA16927@hog> Message-ID: Are you the wonderful folk that manage the atmospheric database at LDEO?? If so thanks a lot. I use it all the time for my work! On Thu, 4 Mar 1999, Jody Winston wrote: > I have a long running process that will be started by Zope. This > process has a CORBA interface that is implemented using ILU. I would > like to be able to asynchronously have this process generate data for > Zope. I do not know much about CORBA but you might find it helpful to check the ZClient library that comes with Zope. You can use ZClient to script Zope actions. In other words you can have your CORBA proccess running independently of Zope and whenever there are available data you can call Zope using ZClient and update whatever you need to. Pavlos From reedstrm@wallace.ece.rice.edu Thu Mar 4 23:08:29 1999 From: reedstrm@wallace.ece.rice.edu (Ross J. Reedstrom) Date: Thu, 4 Mar 1999 17:08:29 -0600 (CST) Subject: [Zope] special characters In-Reply-To: from John Eikenberry at "Mar 4, 99 02:26:18 pm" Message-ID: > it looks like: > > value=""bar, spam""> > > Obviously, if I then save changes, the value is gone altogether. > > Is there a way of automatically converting quotes and other special > characters to their escape codes (like the sqlquote method)? Grovelling through the source I find something called html_quote in lib/python/DocumentTemplate/DT_Util.py, so I tried: Which seems to so the right thing in the generated source. I'm not sure how to get at the equivalent method call, though. Does that help? (p.s. there's url_quote, as well) -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From raver@box.dust.za.net Thu Mar 4 23:16:22 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:16:22 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br>; from Paulo Eduardo Neves on Wed, Mar 03, 1999 at 08:22:43PM -0300 References: <19990303230207.A1292@RaVER.duck.org> <36DDC443.EF76DAE0@inf.puc-rio.br> Message-ID: <19990305001622.A479@RaVER.duck.org> On Wed, Mar 03, 1999 at 08:22:43PM -0300, Paulo Eduardo Neves wrote: > raver@box.dust.za.net wrote: > > > > Hello! > > > > Don't laugh at me - this is probably a very simple thing to do, but > > as I'm new to zope and can't find description of how this is accomplished > > I seek your help. I get data out of my database (MySQL) by querying, but > > how can I have data collected by forms showeled into the database? > > > > Appreciate any help I can get! > > > > Hi Sture, > try to use the P MySQL Input wizard in the contrib download area. It > will automatically create a insert sql method and a form for you. So you > can just follow the pattern. > Actually just after I sent the mail initially I spottet the Input Wizard at the zope site. It works just great. Thanks! > []s > -- > Paulo Eduardo Neves > PUC-Rio de Janeiro > Pager: Central: 292-4499 cod. 213 99 64 > ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html > From John Eikenberry Thu Mar 4 23:12:12 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 15:12:12 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > Sorry, your ideas don't work either. > > This time I get a NameError for mhost in the following code in > SendMailtag.py. mhost is never being created. > > > if self.mailhost: > mhost=md[self.mailhost] > elif self.smtphost: > mhost=MailBase() > mhost._init(localHost=gethostname(), smtpHost=self.smtphost, > smtpPort=self.port) > > mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, > self.subject) I think we're trying to assign a string where a mailhost object is needed. I'm not sure how to get around this, without an external method. Though with an external method, it'd be pretty simple: (warning: untested) def get_mailhost(self,property_name): """ gets the mailhost """ mailhost_id = getattr(self,property_name) return getattr(self,mailhost_id) Or something like this... [shrug] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From raver@box.dust.za.net Thu Mar 4 23:26:06 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:26:06 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <4.1.19990304161646.00bdb160@lisp.atmm.nl>; from Martijn Pieters on Thu, Mar 04, 1999 at 04:18:02PM +0100 References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> <4.1.19990304161646.00bdb160@lisp.atmm.nl> Message-ID: <19990305002606.B479@RaVER.duck.org> On Thu, Mar 04, 1999 at 04:18:02PM +0100, Martijn Pieters wrote: > At 15:50 04/03/99 , Philip Aylesworth wrote: > >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with > >an in tag. > > > > > > > > > >If you do a select after your INSERT or UPDATE you can use it between the > >in tags, otherwise you can just display a message or do a redirect after it. > > If you don't do anything with the returned data, a #call will suffice: > > > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > Both answers are much appreciated. Things start to clear up, but ... As far as I understand zope it should also be possible to have forms send data directly to external methods. How do I go abouth to make the argument list in a python function so that it receives more than one 'form variable'. 1 is simple, but my form consists of 5. I get an error constructing the python function to take 5 arguments. How is the 5 'variables' sent to the method? How do I get hold of the values each store? Lotsa questions - probly me doing things the wrong way but - I'm learning:) Sture Lygren From jae@kavi.com Thu Mar 4 23:24:08 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 15:24:08 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: On Thu, 4 Mar 1999, Ross J. Reedstrom wrote: > Grovelling through the source I find something called html_quote in > lib/python/DocumentTemplate/DT_Util.py, so I tried: > > > > Which seems to so the right thing in the generated source. I'm not sure > how to get at the equivalent method call, though. > > Does that help? Yes. This is just what I was looking for. This leads to a followup question/request for the group. 'manage_addProperty' calls various converters from ZPublisher.Converters to format the properties values. Shouldn't html_quote be used when formatting strings and text? This would be trivial to change. Would this cause some problem I don't realize? If not, I'd like to add this to the Collector for the next version. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From da@ski.org Fri Mar 5 00:55:11 1999 From: da@ski.org (David Ascher) Date: Thu, 4 Mar 1999 16:55:11 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem Message-ID: I have a standard_html_header/footer pair which works much like that on zope.org. The header inserts a in the left column. The sidebar DTML method is:

    (show links to sub-folders which don't have the 'hidden' property set). The above works fine in the toplevel folder. In the subfolder, however, nothing shows up, even though there are two folders which do qualify. I'd tried originally to have it be a DTML Document and change the expr to _.objectValues(['Folder']), but that doesn't work at all. What am I missing? --david From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 01:32:06 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 20:32:06 -0500 (EST) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: On Thu, 4 Mar 1999, David Ascher wrote: > > > >

    > > > Check if your DTML properly closes all tags. I had something similar happening to me in a complicated DTML, when some condition failed to add a tag. BTW you can use ... Pavlos From jay@tomigaya.shibuya.tokyo.jp Fri Mar 5 17:47:53 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Fri, 05 Mar 1999 12:47:53 -0500 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> References: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> At 09:11 AM 3/4/99 -0800, you wrote: >At 05:31 PM 3/4/99, Jay Ashton wrote: > >>In trying to figure out what's going on I've noticed a couple things. >>First, and I think most illustrative, if I try to add a new Z ODBC >>connection, none of my ODBC sources are showing up in the available list >>(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >>Zope with ZopeHTTPServer all my ODBC connections show up just fine. >> >>Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >>side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >>variables of both and noticed some differences - USERPROFILE's are Default >>User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >>contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >>USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >>USERDOMAIN in the 1.10.2/IIS environ, with no luck. > >I think at least this part of your problem may be due to the fact that Zope >is running as a different user under IIS than it is under ZopeHTTPServer. >My guess is that it can't see your datasources since they weren't created >as 'System' datasources. Check under the windows ODBC control panel and >make sure your DSNs appear under 'system dsn', not 'user dsn'. > >-Amos Yes! This was exactly what was causing the error. I added a new 'System DSN' which then showed up under IIS, and now I've got a shiny new and perfectly functional Z ODBC Database Connection. Much thanks! - Jay PS - Don't know if this info is helpful, but I noticed that (after I set up a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my IIS/1.10.2 environ was flawed for whatever reason I would receive the cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick poking around I noticed that even after selecting a valid dsn, flaws such as trying to add a connection with an ID already in use, or entering an invalid connection string would give this 400 error - whereas in my ZopeHTTPServer/1.9 environ I would receive relevant and helpful error messages in such situations... Wish I knew more about how to help fix... From tjg@avalongroup.net Fri Mar 5 04:05:33 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 20:05:33 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DF580D.8D43DD51@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 07:40:21 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 02:40:21 -0500 (EST) Subject: [Zope] An interim solution for the FAQ Message-ID: Zopistas Until the SGML experts develop the FAQ format here is an interim solution: I have set up a Zope FAQ site at: http://www.gaaros.com:9673/FAQ

    FAQ Related
    How can one contribute to the FAQ?
    FAQ Related
    How can one contribute to the FAQ? Answer One Answer Two Tag case is not important. and are all equivalent as long as starting and ending tags match. If you want to include DTML or HTML in your answers or questions you need to include the ugly CDATA directive. If there is an error in the formating of your entry the parsing will fail and your entry will not be uploaded, but the entry will be logged. Structured Text is not supported because of the problems that Martijn Faassen discussed on the Zope List. If the section or question already exist in the FAQ then the entries will be appended to the already existing ones, otherwise the new categories will be created.]]>
    How can I download the whole FAQ? The whole FAQ can be exported by clicking on the "Export FAQ" in the navigation margin.
    DTML Scripting
    How do I pass a non-form variable to the next requested URL? ">]]> If everything works ok this e-mail will make the first entry to the FAQ! Pavlos From wmlph@d033.ml.uwcm.ac.uk Fri Mar 5 09:24:36 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 5 Mar 1999 09:24:36 -0000 Subject: [Zope] ZMySQLDA Message-ID: <004d01be66e9$fd393330$5c773fc1@ml.uwcm.ac.uk> Where exactly is the file? find out by doing a locate 'libmysqlclient'. Let's assume that it is in /usr/local/mysql/lib. The easiest way to accomplish what you want is this. 1. cd /etc 2. vi ld.so.conf 3. Goto the end of the file and add a line that says '/usr/local/mysql/lib' replace this with the exact location of you libmysqlient.so.6 4. save the file 5. run 'ldconfig' 6. run 'sync' twice, this just makes sure all changes are written to the disk. This adds the mysql lib directory to the lib search path. HTH Phil ----- Original Message ----- From: Timothy Grant To: Zope Folk Sent: Friday, March 05, 1999 4:05 AM Subject: Re: [Zope] ZMySQLDA >John Eikenberry wrote: > >> 1. Get everything cleaned up (ie. back in the condition after first >> untarring ZMySQL). >> 2. Edit Setup.in, add -L to the end of the >> last line. >> 3. Proceed as usual (make -f Makefile.pre.in boot; make) > >Thanks to both John and Ronald for their kind assitance. I have made it >past >my original error and got everything compiled correctly. However, my >general >Newbieness is still coming back and biting me on the you-know-what. > >The instructions state that I should start python, and then Import the >MySQL >module to make sure it works. When I do, I get yet another error. > >Traceback (innermost last): > File "", line 1, in ? >ImportError: libmysqlclient.so.6: cannot open shared object file: No >such >file or directory > >The file does exist, so I am once again stumped. > >Thank you for your continued assitance. > > >-- >Stand Fast, > tjg. >=================================================== >Timothy Grant >VP Technology/CTO >Avalon Technology Group >tjg@avalongroup.net >www.avalongroup.net >(503) 246-3630 voice >(503) 246-3124 fax > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope From mj@antraciet.nl Fri Mar 5 09:54:01 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 10:54:01 +0100 Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990305105227.00a69140@lisp.atmm.nl> At 22:24 04/03/99 , Robin Dunn wrote: >How can I evaluate a #var equivallent for setting a tag attribute value? > >For example, Zope doesn't like this: > > --> > >or this: > > > >(it tries to use smtpHost as the host name, instead of its value) > > >Help! > Why not use a MailHost Object? On that object you can then set the appropriate SMTP Host, even from DTML code.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:16:30 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:16:30 +0100 Subject: [Zope] special characters In-Reply-To: References: Message-ID: <4.1.19990305105646.00a90870@lisp.atmm.nl> At 00:24 05/03/99 , John Eikenberry wrote: >'manage_addProperty' calls various converters from ZPublisher.Converters >to format the properties values. Shouldn't html_quote be used when >formatting strings and text? This would be trivial to change. Would this >cause some problem I don't realize? If not, I'd like to add this to the >Collector for the next version. > Yes, because you sometimes (most of the time, really), want to have the raw input from the user. If you then use this raw input in HTML again, only *then* should you quote out any HTML. Besides, what if I want the data to be URL quoted? Or SQL quoted? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:18:50 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:18:50 +0100 Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: <4.1.19990305111759.00a68e60@lisp.atmm.nl> At 01:55 05/03/99 , David Ascher wrote: > > > >

    > > > >(show links to sub-folders which don't have the 'hidden' property set). > >The above works fine in the toplevel folder. In the subfolder, however, >nothing shows up, even though there are two folders which do qualify. > >I'd tried originally to have it be a DTML Document and change the expr to >_.objectValues(['Folder']), but that doesn't work at all. > >What am I missing? > Just a quick shot: Could it be that the value 'hidden' is aquired from somewhere else? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:38:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:38:33 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> References: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990305111949.00be5e30@lisp.atmm.nl> At 18:47 05/03/99 , Jay Ashton wrote: >PS - Don't know if this info is helpful, but I noticed that (after I set up >a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my >IIS/1.10.2 environ was flawed for whatever reason I would receive the >cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick >poking around I noticed that even after selecting a valid dsn, flaws such >as trying to add a connection with an ID already in use, or entering an >invalid connection string would give this 400 error - whereas in my >ZopeHTTPServer/1.9 environ I would receive relevant and helpful error >messages in such situations... Wish I knew more about how to help fix... > I did notice today that IIS 4.0 seems to be the cullprit. Whenever Zope returns a 400 error (like 'sorry, an error occured') IIS mangles that into the 400 Bad Request error. This means the traceback is also gone. *grmbl*. Just try and add a Principia Draft and not specify an ID, and compare this to the message returned when using ZopeHTTPServer. I think I'll switch to ZServer. Maybe this should go into the FAQ... I'll cc to ZDP BTW, I hereby retract the bug I reported to the Zope Collector regarding ZODBC connections being broken. I forgot to fill in the ID :|. IIS mangles the returned errormessage. What is the procedure for retracting bug reports? mail support@digicool.com? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 10:46:40 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 05:46:40 -0500 (EST) Subject: [Zope] Plenty of problems. Please Help Message-ID: Zopistas I have encountered problems mainly associated with ZServer and ZAP: I am using Zope-1.9.0 and the preconfigured Apache server to run my Zope site. Last night (a couple of hours ago!) I installed ZServer. It wouldn't run and I had to add the following to start.py to fix it: import sys,os sys.path.insert(0,os.path.join('..','lib','python')) Later on upon entering the management screens I noticed that the id of the top level folder dissappeared which caused the paths to my objects to change. With ZAP (the preconfigured apache) I would visit: http://www.gaaros.com:8080/Gaaros/ to get to the top level directory but with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of links that people have on my site. Switching back to ZAP I got the following error: Temporarily Unavailable

    The resource you requested is temporarily unavailable - please try again later. (102) failure during connect Seems like ZServer changed my root id from "Gaaros" to nothing. I called PickleDictionary on Data.bbb directly from python but I could not even see the subobjects. BTW can the Zope Data.bbb be accessed directly from PickleDictionary?? Also trying to shut ZServer from the control-panel results in a core dump. Ok enough for now, its very late and I cannot think anymore. If anybody has any clues about the root object id problem please let me know. Thanks Pavlos From mj@antraciet.nl Fri Mar 5 10:51:53 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:51:53 +0100 Subject: [Zope] An interim solution for the FAQ In-Reply-To: Message-ID: <4.1.19990305115013.00a11100@lisp.atmm.nl> >To contribute to the FAQ you just have to send e-mail to me or to the >Zope list and include the word FAQ somewhere in the subject. >In the body of your e-mail message you should include (somewhere) an >XMLish faq entry as below: Hmmm.. could we change this the ZDP list? After all, that's what it is there for.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 11:03:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 06:03:52 -0500 (EST) Subject: [Zope] An interim solution for the FAQ In-Reply-To: <4.1.19990305115013.00a11100@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > > Hmmm.. could we change this the ZDP list? After all, that's what it is > there for.. > No problem. Basically I filter all emails arriving in my personal account that contain FAQ in the Subject: field. As I am subscribed to all the Zope lists it doesn't really matter where you send it to. Pavlos From Paul@digicool.com Fri Mar 5 13:21:22 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:22 -0500 Subject: [Zope] RE: [ZDP] Re: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAE3@GANDALF> Martijn wrote: > What is the procedure for retracting bug reports? mail > support@digicool.com? That's a good solution for now. --Paul From Paul@digicool.com Fri Mar 5 13:21:27 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:27 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> Jody wrote: > My basic questions are: > o Can I have an ILU mainloop inside of Zope? (I really don't > care if I have to hack Zope or if I can use an external > method.) This is a poor answer (as most here know I don't have the mental horsepower to provide good responses :^), but...our _intention_ over time is to have "ZServer" allow objects to be published via PCGI, FastCGI, HTTP, FTP, and CORBA simultaneously. Ideally we'd get some kind of Python implementation into the Medusa handler layer. Obviously this approach has some serious drawbacks... Anyway, I realize that I'm not providing much of an answer, so sorry :^( --Paul From Paul@digicool.com Fri Mar 5 13:21:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:28 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Aaron wrote: > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, Right, understood. We had to spend a lot of time figuring out Gadfly in order to host it inside Zope. Thus we labeled it "Demo". I imagine that it is best for everybody if we take Gadfly out of the base Zope and make it an external, no-warranty package like the MySQL support. --Paul From Paul@digicool.com Fri Mar 5 13:21:33 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:33 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAE9@GANDALF> Tony wrote: > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! I appreciate your patience and taking the time to submit well-thought questions. > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. Sounds fantastic! > The curriculum database is essentially delivering online study guides > (over 100 for each Faculty) whose source is originally from very well > marked up Word Documents. In addition, we include multiple choice This is really weird, it just reminded me of a (rather pathetic) dream I had last night. I dreamt that someone created a Python module that would read Word files. My DreamTV must be picking up the wrong channel. > questions, file upload of lecture notes etc. and some 'active' web > pages showing dynamical processes in medicine etc. The curriculum > database needs to be searchable across its entire breadth (although > initially restricted to the one site), so that students and faculty > can find occurences of, say, 'lung cancer' in lecture resources - > this is to plan for curriculum management, so that we can find out if > we're pushing subjects too much (or indeed, whether we're pushing a > subject at all!). We have other applications (nearly all of which are > written in Perl/PHP3) and want to seemlessly integrate them into the > curriculum database. > > Currently we do all our development work on Unix, using Apache > virtual web servers, MySQL as our database engine and Perl running as > a CGI for most of our applications. My input has been to introduce > PHP-3 (an Apache module with a bulit-in XML parser) and some XML > knowledge to the group. I've been looking at a scenario where our > study guides are converted in XML using Omnimark and held as static > XML documents in a database. They are then rendered into HTML/RTF and > put into static web directories. The student can run a program that > extracts elements from selected XML documents and creates a > customised set of HTML pages or RTF document that is built for them > 'on the fly'. My manager was a bit worried about all these static > pages lying about and to be honest so am I, but extracting the > relevant XML from a database to render into individual HTML pages > seems a massive drain on the system. I've been awfully interested in XML in the last few days. Can you describe what user-visible benefits PHP delivers due to its integrated XML parser? Additionally, we are working on Zope searching for a consulting project right now. Actually it is Zope Cataloging. It's still a consulting-only option, but plans are that eventually it will go "below the line". > I found out about Zope Monday morning, dl'ed it, installed it, got > one or two things working... and have been worried sick ever since. Ahhh, you too, eh? Did you have the dream about the chimp and the External Method where...oh, nevermind. :^) > My problem? is that I can see how Zope can do so much for us, but it > seems to need a hell of a gut-wrench to do so. I *think* I have some good news to report on this, but before I squawk, could you detail this gut-wrench a bit more? > There also doesn't seem to be an easy 'half-way' house to > move to Zope. > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". There have been a lot of suggestions on this one. Here's another one: a command-line program that takes everything out, such as the wget program. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? I'd like to have this as well. I've been doing a lot of thinking about this lately. It is a bit more complicated than expected, though... > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. This is the main reason I replied. Having Zope as a free and Open Source(tm) platform is the heart of our business plan. A closed Zope would basically mean we start over completely as a different company. Thus, closing Zope is roughly equivalent to closing our company. With _that_ said, we still need to provide some assurances that we won't legislate the connection between Zope and DC. First, we are trying to keep some arm's length distance between zope.org and Digital Creations. We hope to formalize the way the community participates in the platform. We expect to make it lucrative for other businesses to participate. At the same time, we intend to pursue commercial opportunities atop the platform for vertical applications. Ultimately this is the same question put to Netscape regarding Mozilla during the AOL talks. The answer is simple: "The genie is out of the bottle." Since it is open sourced, Digital Creations must *earn* its stewardship of Zope. If we don't we'll become less relevant. Earning the community's enthusiasm is pretty simple, I think. Unfortunately we aren't doing a good job right now, though we are trying damn hard. But we'll keep trying... In the meantime, I'm absolutely ecstatic to see folks in the community step forward over the last month and lead the way. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yep, the zope.org machine has five virtual hosts. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Previously answered. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Ditto. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? We put them in the database. The 3 Mb Zope binaries are served out of the database, the PDF files are served out of the database. This works so well I don't even think about it any more. --Paul From arw@ifu.net Fri Mar 5 13:42:59 1999 From: arw@ifu.net (Aaron Watters) Date: Fri, 05 Mar 1999 08:42:59 -0500 Subject: [Zope] zope ZGadfly DA buggy References: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Message-ID: <36DFDF63.6CB8C32F@ifu.net> Paul Everitt wrote: > Aaron wrote: > > I'm sure these will be fixed soon, in fact I'd offer a patch > > if I could > > figure out how the thing works, but until then, > > Right, understood. We had to spend a lot of time figuring out Gadfly in > order to host it inside Zope. Thus we labeled it "Demo". hmmm. That's interesting because it works just like oracle or it should,unless there are more bugs you haven't passed on to me. Let me know what caused the problems. Basically any non-conformance with the db-api is a bug. Please report it to the gadfly-rdbms list. > I imagine that it is best for everybody if we take Gadfly out of the > base Zope and make it an external, no-warranty package like the MySQL > support. Yes, this is fine. BTW, it might be hard for your existing customers to upgrade to Gadfly 1.0 since I think the db file formats are different (that's why it was called beta, so I could change things like that). I remain, Yours Truly, Aaron Watters From michel@digicool.com Fri Mar 5 14:48:24 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 09:48:24 -0500 Subject: [Zope] Plenty of problems. Please Help Message-ID: <613145F79272D211914B0020AFF6401907BAEB@GANDALF> 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_01BE6717.3B426460 Content-Type: text/plain > -----Original Message----- > From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu] > Sent: Friday, March 05, 1999 5:47 AM > To: zope@zope.org > Subject: [Zope] Plenty of problems. Please Help > > > Zopistas > > I have encountered problems mainly associated with ZServer and ZAP: > > I am using Zope-1.9.0 and the preconfigured Apache server to > run my Zope > site. Last night (a couple of hours ago!) I installed > ZServer. It wouldn't > run and I had to add the following to start.py to fix it: > I would suggest, first off, to use 1.10.2. ZServer is being developed against 1.10.2, and the latest Zap was tested and confirmed to work with it. > import sys,os > sys.path.insert(0,os.path.join('..','lib','python')) > Yes, there were discussions on this in the list about this problem. Someone needs to go back, rassle up the discussion and submit it to the ZDP. Looks like you found the fix. > Later on upon entering the management screens I noticed that > the id of the > top level folder dissappeared which caused the paths to my objects to > change. With ZAP (the preconfigured apache) I would visit: > http://www.gaaros.com:8080/Gaaros/ to get to the top level > directory but > with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of > links that people have on my site. Hm. Is your Zap .pcgi file named Garros or does your RewriteRule look for Garros and then call PCGI? If so that is why you need to use Garros to reach the server. ZServer can server right out of Zope and doesn't have this problem. Your description makes this sould like it is a production site, I would not suggest running ZServer on a production machine as it is alpha and still buggy. > > Switching back to ZAP I got the following error: > > Temporarily Unavailable >

    > The resource you requested is temporarily unavailable - > please try again > later. > > > > (102) failure during connect > > > > Seems like ZServer changed my root id from "Gaaros" to nothing. This error comes from PCGI. It can't find your .cgi file so Zope isn't even being launched. Did your zap.conf file change (specificly the RewriteRule)? > I called PickleDictionary on Data.bbb directly from python > but I could not > even see the subobjects. BTW can the Zope Data.bbb be > accessed directly > from PickleDictionary?? > You can open a Data.bbb file into a PickleDictionary, but you won't see anything useful unless you really know what your doing. The Database itself is not a Pickle, it is a database of Pickles. I have attached a small 5K script that will be released with 1.10.3 which paruses the database and generates reports. In the future we are intending it to translate the entire database into XML for transport. (Note, we do not intend to use XML as the db format) > Also trying to shut ZServer from the control-panel results in > a core dump. > I suspect this is because you are using 1.9.0 > Ok enough for now, its very late and I cannot think anymore. > > If anybody has any clues about the root object id problem > please let me > know. > > Thanks > > Pavlos > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > ------ =_NextPart_000_01BE6717.3B426460 Content-Type: application/octet-stream; name="bbb.py" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bbb.py" """Read and (re-)format BoboPOS 2 database files=0A= """=0A= =0A= import struct, string, sys, time=0A= =0A= file__version__=3D3.0=0A= packed_version=3D'SDBMV'+struct.pack(">f",file__version__)=0A= =0A= def error(message, fatal=3D0, exc=3D0):=0A= if exc:=0A= sys.stderr.write('%s: %s' % (sys.exc_info()[0], = sys.exc_info()[1]))=0A= sys.stderr.write("\n%s\n" % message)=0A= if fatal: sys.exit(fatal)=0A= =0A= def _read_and_report(file, rpt=3DNone, fromEnd=3D0, both=3D0, = n=3D99999999, show=3D0):=0A= """\=0A= Read a file's index up to the given time.=0A= """=0A= =0A= file.flush()=0A= seek=3Dfile.seek=0A= read=3Dfile.read=0A= unpack=3Dstruct.unpack=0A= split=3Dstring.split=0A= join=3Dstring.join=0A= find=3Dstring.find=0A= seek(0,2)=0A= file_size=3Dfile.tell()=0A= gmtime=3Dtime.gmtime=0A= =0A= if fromEnd: pos=3Dfile_size=0A= else: pos=3Dnewpos=3Dlen(packed_version)=0A= =0A= tlast=3D0=0A= err=3D0=0A= while 1:=0A= if fromEnd:=0A= seek(pos-4)=0A= l=3Dunpack(">i", read(4))[0]=0A= if l=3D=3D0:=0A= b=3Dpos=0A= p=3Dpos-4=0A= while l=3D=3D0:=0A= p=3Dp-4=0A= seek(p)=0A= l=3Dunpack(">i", read(4))[0]=0A= =0A= pos=3Dp+4=0A= error("nulls skipped from %s to %s" % (pos,b)) =0A= p=3Dpos-l=0A= if p < 0:=0A= error('Corrupted data before %s' % pos)=0A= if show > 0:=0A= p=3Dpos-show=0A= if p < 0: p=3D0=0A= seek(p)=0A= p=3Dread(pos-p)=0A= else:=0A= p=3D''=0A= error(p,1)=0A= pos=3Dp=0A= else:=0A= pos=3Dnewpos=0A= =0A= seek(pos)=0A= h=3Dread(24) # 24=3Dheader_size=0A= if not h: break=0A= if len(h) !=3D 24: break=0A= oid,prev,start,tlen,plen=3Dunpack(">iidii",h)=0A= if (prev < 0 or prev >=3D pos or start < tlast=0A= or plen > tlen or plen < 0 or oid < -999):=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= =0A= newpos=3Dpos+tlen=0A= if newpos > file_size:=0A= error('Truncated data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= seek(newpos-4)=0A= if read(4) !=3D h[16:20]:=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0:=0A= seek(pos+24)=0A= error(read(show))=0A= err=3D1=0A= break=0A= =0A= tlast=3Dstart-100=0A= =0A= if rpt is None: continue=0A= n=3Dn-1=0A= if n < 1: break=0A= =0A= seek(pos+24)=0A= p=3Dread(plen)=0A= t=3Dsplit(read(tlen-plen-28),'\t')=0A= tname, user =3D (t+[''])[:2]=0A= t=3Djoin(t[2:],'\t')=0A= start,f=3Ddivmod(start,1)=0A= y,m,d,h,mn,s=3Dgmtime(start)[:6]=0A= s=3Ds+f=0A= start=3D"%.4d-%.2d-%.2d %.2d:%.2d:%.3f" % (y,m,d,h,mn,s)=0A= rpt(pos, oid,start,tname,user,t,p)=0A= =0A= if err and both and not fromEnd:=0A= _read_and_report(file, rpt, 1, 0, n, show)=0A= =0A= =0A= =0A= def none(*ignored): pass=0A= def positions(pos, *ignored): sys.stdout.write("%s\n" % pos)=0A= def tab_delimited(*args):=0A= sys.stdout.write("%s\n" % string.join(args[:-1],'\t'))=0A= =0A= =0A= reports=3D{=0A= 'none': none,=0A= 'positions': positions,=0A= 'tab_delimited': tab_delimited,=0A= }=0A= =0A= if __name__=3D=3D'__main__':=0A= import getopt=0A= =0A= usage=3D"""Usage: %s [options] filename=0A= =0A= where filename is the name of the database file.=0A= =0A= options:=0A= =0A= -r report=0A= =0A= Specify an output report.=0A= =0A= The valid reports are:=0A= %s=0A= =0A= -e=0A= =0A= Read the file from back to front=0A= =0A= -l n=0A= =0A= Show only n records=0A= =0A= -b=0A= =0A= If an error is encountered while reading from front,=0A= ret reading from the back.=0A= =0A= -s n=0A= =0A= If a corrupted data record is found, show the first n=0A= bytes of the corrupted record.=0A= =0A= """ % (sys.argv[0], string.join(reports.keys(), ',\n\t\t'))=0A= =0A= try:=0A= opts, args =3D getopt.getopt(sys.argv[1:],'r:ebl:s:')=0A= filename,=3Dargs=0A= except: error(usage,1,1)=0A= =0A= rpt=3Dnone=0A= fromEnd=3D0=0A= both=3D0=0A= n=3D99999999=0A= show=3D0=0A= for o, v in opts:=0A= o=3Do[1:]=0A= if o=3D=3D'r':=0A= try: rpt=3Dreports[v]=0A= except: error('Invalid report: %s' % v, 1)=0A= elif o=3D=3D'l':=0A= try: n=3Dstring.atoi(v)=0A= except: error('The number of records, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D's':=0A= try: show=3Dstring.atoi(v)=0A= except: error('The number of bytes, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D'e':=0A= fromEnd=3D1=0A= elif o=3D=3D'b':=0A= both=3D1=0A= else:=0A= error('Unrecognized option: -%s' % o, 1)=0A= =0A= try: file=3Dopen(filename)=0A= except: error('Coud not open %s' % filename,1,1)=0A= =0A= _read_and_report(file, rpt, fromEnd, both, n, show)=0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= ------ =_NextPart_000_01BE6717.3B426460-- From jody@ldeo.columbia.edu Fri Mar 5 15:18:45 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Fri, 5 Mar 1999 10:18:45 -0500 Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> (message from Paul Everitt on Fri, 5 Mar 1999 08:21:27 -0500) Message-ID: <199903051518.KAA01296@hog> >>>>> "Paul" == Paul Everitt writes: Paul> Jody wrote: >> My basic questions are: >> o Can I have an ILU mainloop inside of Zope? (I really don't >> care if I have to hack Zope or if I can use an external >> method.) Paul> This is a poor answer (as most here know I don't have the Paul> mental horsepower to provide good responses :^), but...our Paul> _intention_ over time is to have "ZServer" allow objects to Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA Paul> simultaneously. Paul> Ideally we'd get some kind of Python implementation into the Paul> Medusa handler layer. Obviously this approach has some Paul> serious drawbacks... Paul> Anyway, I realize that I'm not providing much of an answer, Paul> so sorry :^( Would it be worthwhile to start looking at and hacking ZServer? Jody From michel@digicool.com Fri Mar 5 15:35:50 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 10:35:50 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAEE@GANDALF> > -----Original Message----- > From: Jody Winston [mailto:jody@ldeo.columbia.edu] > Sent: Friday, March 05, 1999 10:19 AM > To: Paul@digicool.com > Cc: zope@zope.org > Subject: RE: [Zope] Using Zope with CORBA (new user question) > > > >>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? > It's allways worth while! :) I think the point paul was trying to push is that we are interesting in publishing our objects over various transport protocols. If you want to look in this direction, probably the best idea would be to write a Medusa handler. Check out Sam's site at: http://www.nightmare.com/medusa There currently exists an ftp and http medusa handler for Zope, which you can look at in the latest ZServer alpha release availabe at zope.org. I'm not sure is there is a Medusa CORBA handler or not, I suspect not, but maybe there's some type of CORBA out there written in Python? -Michel > Jody > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jeffrey@Digicool.com Fri Mar 5 16:02:55 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 05 Mar 1999 11:02:55 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903051602.IAA27197@zope.codeit.com> >>>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? Yes. ZServer really restores Zope's original intent from the Bobo days: publishing objects through a variety of protocols. I think ILU support was once attempted back in those days. However, a Bobo app at that time could only have one publishing mechanism (ie, CGI, PCGI, FastCGI, ILU, etc...). ZServer allows for multiple publishing mechanisms in the same application, allowing access to the objects through the web, through FTP, or through any other protocol developed for ZServer/Medusa. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From rocon@pivot.net Fri Mar 5 16:57:34 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 11:57:34 -0500 Subject: [Zope] Documents for web and paper Message-ID: <012c01be6729$74f6bd40$0201a8c0@hawkeye.bob.oc> I'm looking for the best way to store and retrieve documents with these requirements: SPECS *Easy storage and retrieval on the web *Pretty printing on paper *Easy simple collaboration (no checkout) *One BASE format for both web and paper *Base format *could be* edited with Word or WP *Preserve text markup: bullets, bolds, underlines, tables, graphics, links...etc. *Search by keyword *Search by full text ******* I look forward to comments and Ideas on implementing this in ZOPE Perhaps some of this has been solved already and I don't know it. EXAMPLE: Say you have a small book/article that is fully contained in a WORD or WP file. It has chapters and sections: Chap1 Plants Section1: Trees Section2: Flowers Section3: Vegetables Section4: Fruits Chap2 Animals Section1: Dogs Section2: Cats Section3: Fish Section4: Humans Ok, as a paper document in the word processor it is laid out *nice* with a new page for each chapter, section, and subheadings for groups of paragraphs in each section. It prints *nice* and can even have a table of contents and index. For the web, the whole book could be one LONNNG web page. Ugly and it doesn't work well. Ideally on the web each chapter and section would be navigable with a left hand frame like table a la http://www.zope.org. Then sections can be placed on separate pages on the right. This means that the one source document becomes multiple html "files" on the web site. *Tree Navigation Ok, for tree navigation like http://localhost:9673/QuickStart Each Chapter and Section becomes a folder and the text from each section is contained in the same named: "dtContent" as in ...9673/QuickStart/Outline/Applications/External/dtContent While the tree is nice, and separate html "files" make the website better, *REVISIONS with TWO OUTPUTS How do you do: Make revisions to the source document in word/WP and have it FLOW automatically to html format or tree format for the web? *Perhaps* XML could come to the rescue as holy grail to help solve this problem??? I understand the idea of mark up but how does it solve the problem of two outputs? Can you have a template that automatically chops up the SOURCE into the appropriate folders/files etc and feeds it to ZOPE? Can this or another template reformat for pretty printing including page numbers that are updated based on the planned printing? Maybe I need to reconsider how documents are stored as source, i.e. not Word. And if not, what tool or mechanism would be best? Maybe the NATIVE source could flow to Word/WP or via a template making for pretty printing. Maybe for simple stuff, the source could be simple text entered on a webpage or sent by e-mail with *simple* markup and parsed automatically? *KEYWORD SEARCH Ok, on the web (and Zope), the benefit is it's searchability: Do we "hide" keywords in the source somehow and in addition use Chapter and Section titles as Keywords? Search for: "dogs" gives a result of Chapter 2 Section 1 in the example as one entry. Additional entries might be lessor cross references such as a keyword "dog" in the Section 4 humans as "man's best friend". *FULL TEXT SEARCH Ok so we search for the word "Daisy" and this word is found in the text in sections: Flowers, Dogs (as a pet name) and Humans (as a proper name). The result is then three line entries that take you to the words. *Zope IDEAS for this? I assume that it would be best to store the documents and source in the ZOPE database rather than an external datasource. Thanks for any input on this -bobo connor bob@rocnet.com From da@ski.org Fri Mar 5 18:02:28 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:02:28 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: <4.1.19990305111759.00a68e60@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 01:55 05/03/99 , David Ascher wrote: > > > > > > > >

    > > > > > > > >(show links to sub-folders which don't have the 'hidden' property set). > > > >The above works fine in the toplevel folder. In the subfolder, however, > >nothing shows up, even though there are two folders which do qualify. > > > >I'd tried originally to have it be a DTML Document and change the expr to > >_.objectValues(['Folder']), but that doesn't work at all. > > > >What am I missing? > > Just a quick shot: Could it be that the value 'hidden' is aquired from > somewhere else? Nah -- getting rid of the hidden test doesn't change a thing. Sorry I confused the issue with that. I think my problem has to do with my lack of understanding of the interactions between acquitision, DTML Methods, DTML docs and namespaces. I just noticed that the standard html headers and footers are methods. That means, if I understand the earlier email, that the default namespace in them is that of the thing they are contained in. So, in my case, the top-level Folder. Now, in the sub-folder, the standard html headers and footers are acquired from the toplevel folder. The standard header does a #var sidebar, which also lives in the toplevel folder, and that gets included fine. Within that sidebar, I'm not sure what the default namespace is -- my fuzzy understanding makes me think that it should be either: a) the / Folder (the 'physical' container for the DTMLMethods) b) the sub Folder (the container for the thing which did the aqcuisition, namely the index_html DTML Document. Problem is, neither of these makes sense given what I'm seeing. If it was a), I'd expect the 'objectValues()' call to return the same list of the subfolders of the toplevel folder every time. If it was b), I'd expect the thing to work and give me the subfolders of the subfolder. Let me try to summarize the hierarchy: / - index_html (#var standard_html_header...#var standard_html_footer) - standard_html_header (#var sidebar) - standard_html_footer - sidebar SubFolder1/ SubFolder2/ - index_html (#var standard_html_header... #var standard_html_footer) - SubSubFolder1 - SubSubFolder2 The top sidebar shows SubFolder1 and SubFolder2, the /SubFolder2 sidebar doesn't show a thing. --david PS: Thanks to pavlos for pointing out the #unless tag. PS: For some reason the title of the root folder is "Zope" in the properties tag but doesn't show up in the tree or in the pathlinks. Anyone have a suggestion? From mbernstein@profitscape.net Fri Mar 5 18:10:27 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 10:10:27 -0800 Subject: [Zope] Simple DTML Method/Acquisition problem References: Message-ID: <36E01E13.6F8A4FB4@profitscape.net> David Ascher wrote: > > I have a standard_html_header/footer pair which works much like that on > zope.org. > > The header inserts a in the left column. The > sidebar DTML method is: > > > > >

    > > > > (show links to sub-folders which don't have the 'hidden' property set). > > The above works fine in the toplevel folder. In the subfolder, however, > nothing shows up, even though there are two folders which do qualify. Try: This will call the method using the root folders' namespace, thereby showing all qualifiying subfolders regardless of where the method is called from. You might have to modify your method to construct absolute URL's. Michael Bernstein. From da@ski.org Fri Mar 5 18:52:10 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:52:10 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem + bug report In-Reply-To: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: On Fri, 5 Mar 1999, Michael Bernstein wrote: > Try: > > This will call the method using the root folders' namespace, thereby > showing all qualifiying subfolders regardless of where the method is > called from. You might have to modify your method to construct absolute > URL's. Thanks! What I actually wanted was sidebar(PARENTS[0], REQUEST), but you pointed me in the direction I needed. Now I have to understand it, but that's much easier with working code. This also led me to find a bug. I was wondering why the REQUEST parameter was needed, so I tried to remove it. The next time I loaded a page calling this code, the ZServer process died with the Win32 equivalent of a segfault. Is it just me? I don't dare try it on another Zope server =). [Zope 1.10.2, latest ZServer, win32, NT4SP3] --david From jae@kavi.com Fri Mar 5 18:52:13 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 5 Mar 1999 10:52:13 -0800 (PST) Subject: [Zope] special characters In-Reply-To: <4.1.19990305105646.00a90870@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 00:24 05/03/99 , John Eikenberry wrote: > >'manage_addProperty' calls various converters from ZPublisher.Converters > >to format the properties values. Shouldn't html_quote be used when > >formatting strings and text? This would be trivial to change. Would this > >cause some problem I don't realize? If not, I'd like to add this to the > >Collector for the next version. > > > > Yes, because you sometimes (most of the time, really), want to have the raw > input from the user. If you then use this raw input in HTML again, only > *then* should you quote out any HTML. Besides, what if I want the data to > be URL quoted? Or SQL quoted? Yeah, I already figured out that the problem was actually in the OFS/properties.dtml file (I moved over to the zope-dev list, as I realized this thread really belongs there). In properties.dtml the 'string' type is listed twice: "> "> 'string' needs to be removed from that first list. I'll be submitting this to the Collector. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From prudek@sol.cz Fri Mar 5 19:14:01 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 05 Mar 1999 20:14:01 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: <36E02CF9.F79E416F@sol.cz> I'm new to Zope. I'm very excited about it's potential, but my first impression is that I will need to master Python in order to use it. I believe Python is an excellent language, but I do not have the time to learn it. Several questions about this: - Can I achieve anything useful in Zope without touching Python? I can learn DTML, of course. - if so, what I can and what I cannot do without Python? - could I, for instance, do something like slashdot.org without Python? - is there a plan to give Zope features (or ready-made modules/factories) that would completely eliminate the need to work with Python (for certain tasks that can be automated or turned into templates)? -- Milos Prudek From jbb@spyderlab.com Fri Mar 5 19:45:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 14:45:11 -0500 (EST) Subject: [Zope] bug with SQL methods? Message-ID: Hi, I'm re-posting to this list because it probably is more suited here... thanks in advance, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com ---------- Forwarded message ---------- Date: Fri, 5 Mar 1999 12:11:02 -0500 (EST) From: Jordan B. Baker To: zope-dev@zope.org Subject: [Zope-dev] SQL methods q: Hi guys: I'm trying to write a SQL method though, and its giving me an error when I try to test it.. Error, exceptions.TypeError: keyword parameter redefined SQL used: Could not render the query template! The query I was using: SELECT searches.engineID as engine, queries.param as query, MAX(searches.timestamp) AS time, searches.position AS position, MIN(lastsearch.timestamp) AS lastupdate, lastsearch.position AS lastsearch, searches.URL as URL, 'NA' as change, engines.graphic as engine_gfx FROM searches LEFT JOIN searches as lastsearch USING (queryID,engineID), engines, queries WHERE lastsearch.timestamp BETWEEN AND AND searches.timestamp BETWEEN AND AND queries.clientID = AND queries.queryID = searches.queryID AND engines.engineID = searches.engineID AND searches.timestamp != lastsearch.timestamp GROUP BY searches.engineID, searches.queryID ORDER BY searches.engineID ASC, searches.queryID ASC, searches.timestamp ASC, lastsearch.timestamp DESC ; Any ideas what I could be doing wrong? BTW, Zope is great! I've been kinda messing around with it for a while, also checking out PHP3 and other UNIX-based scripting languages and I've very impressed. As soon as I figure out what is causing this I plan to write something 'cool' with Zope :) TIA, -jordan. _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev From rocon@pivot.net Fri Mar 5 20:49:30 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 15:49:30 -0500 Subject: [Zope] XML discussions Message-ID: <00be01be6749$aeea0b40$0201a8c0@hawkeye.bob.oc> Hi Paul and Zopesters, Paul writes in the thread: [Zope] Some tough questions about zope... >I've been awfully interested in XML in >the last few days. Can you describe what >user-visible benefits PHP delivers due to its integrated >XML parser? I found a great description about XML in: "20 Questions on XML" http://builder.com/Authoring/Xml20/index.html On Paul's Zope roadmap: (Jan 18th) http://www.zope.org/Information/Roadmap "(2) XML. Zope is a great fit for XML, even better with the machinery from Tabula going in. We also see XML becoming the basis for other initiatives, such as WebDAV and RDF. However, we just can't squeeze out the time to dive in deep. Rather, we'd love to see more community progress like that which popped up this weekend." I did a search for postings that had "XML" in the subject and found 55 messages in ~6 threads between Jan 8th and Feb 2nd Other messages have "XML" in the body. Hopefully we can get some OUTLINE of how ZOPE and XML can work together. --- A framework for further discussions. -bobo connor bob@rocnet.com From michel@digicool.com Fri Mar 5 21:07:09 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:07:09 -0500 Subject: [Zope] Python neccessary to work with Zope? Message-ID: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Friday, March 05, 1999 2:14 PM > To: zope@zope.org > Subject: [Zope] Python neccessary to work with Zope? > > > I'm new to Zope. I'm very excited about it's potential, but my first > impression is that I will need to master Python in order to use it. I > believe Python is an excellent language, but I do not have the time to > learn it. Several questions about this: > You do not need to know a single line of Python to use Zope. But learning Python is a pleasure, not a chore. > - Can I achieve anything useful in Zope without touching Python? I can > learn DTML, of course. > You can do just about anything with DTML. In fact, most 'Products' (read that, 'Zope Extnesions') are mostly DTML. If your not writing a Product then you can stay entirely in the domain of DTML. DTML does use a small bit of Python in itself, these are called expressions. For example, if you had an integer called num you could use: to 'render' it in your web page. To get num + 1 you would use: The contents of "" is a python expression. But it's not a python program. If we didn't use Python we'd of had to have come up with some other language like way of doing this that you'd have had to learn anyway. > - if so, what I can and what I cannot do without Python? > Python is used for the following: To write Products. This is hard core development. To write External Methods, which are used to hook special or wierd/pre-existing python functions into Zope. This is rarely necesary. > - could I, for instance, do something like slashdot.org > without Python? > Yes. There may be a 1% slice of something like slashdot needing a bit of Python. But remember, slashdot is a huge application written entirely in Perl. > - is there a plan to give Zope features (or ready-made > modules/factories) that would completely eliminate the need > to work with > Python (for certain tasks that can be automated or turned into > templates)? > Yep. These are called Zope Classes. They are still in-house here at Digital Creations because we are still debugging/figuring them out. A Zope Class lets your create your own objects that can be added into Zope without writing Python code. > > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Fri Mar 5 21:10:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:10:36 -0500 Subject: [Zope] Simple DTML Method/Acquisition problem + bug report Message-ID: <613145F79272D211914B0020AFF6401907BAF0@GANDALF> > -----Original Message----- > From: David Ascher [mailto:da@ski.org] > Sent: Friday, March 05, 1999 1:52 PM > To: Michael Bernstein > Cc: The Zope Group > Subject: Re: [Zope] Simple DTML Method/Acquisition problem + > bug report > > > On Fri, 5 Mar 1999, Michael Bernstein wrote: > > > Try: > > > > This will call the method using the root folders' namespace, thereby > > showing all qualifiying subfolders regardless of where the method is > > called from. You might have to modify your method to > construct absolute > > URL's. > > Thanks! What I actually wanted was sidebar(PARENTS[0], > REQUEST), but you > pointed me in the direction I needed. Now I have to > understand it, but > that's much easier with working code. > > This also led me to find a bug. I was wondering why the > REQUEST parameter > was needed, so I tried to remove it. The next time I loaded a page > calling this code, the ZServer process died with the Win32 > equivalent of a > segfault. Is it just me? I don't dare try it on another > Zope server =). > [Zope 1.10.2, latest ZServer, win32, NT4SP3] > Could you submit this bug report to the Collector? http://www.zope.org/Collector Thanks, -Michel > --david > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jbb@spyderlab.com Fri Mar 5 21:19:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:19:14 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: More information on my front.. I've been fiddling around a bit trying to find out what is going wrong.. I'm using ZServer/Zope 1.10.2 with ZMySQLDA that I just downloaded 2 days ago. The traceback is as follows: line 384 of DA.py -- __call__ reads: query=apply(self.template, (p,), argdata) I added a bit of debugging code and was able to a take a look at some of the data being passed around: argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', 'pstart': '1', 'sql_quote__': } This is starting to confuse me because simple queries work fine within Zope, its only the query that I posted in my previous message that seems to be fowling things up. I'll keep slagging away until either I figure it out or someone tells me its not something I've done and that I should submit it to the Collector :) -jordan. From Paul@digicool.com Fri Mar 5 21:28:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 16:28:56 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/sit e-packages? Message-ID: <613145F79272D211914B0020AFF640190D9E61@GANDALF> Skip writes: > Can the contents of Zope's lib/python directory safely be > copied to the > site-packages directory of the Python install directory? I asked Jim, who replied: "As far as I know, they can. Note, however, that it will be important for INSTANCE_HOME to be defined." --Paul From Tony.McDonald@newcastle.ac.uk Fri Mar 5 21:37:08 1999 From: Tony.McDonald@newcastle.ac.uk (Tony.McDonald@newcastle.ac.uk) Date: Fri, 5 Mar 1999 21:37:08 +0000 (GMT) Subject: [Zope] DatabaseError: Corrupted data record... Message-ID: <199903052137.VAA24776@finan.ncl.ac.uk> Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... "...there is one small problem!" (MPaTHG) My database has got nuked. I don't know how it happened, but this is the tail of my serve.errors file File "lib/python/OFS/Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "lib/python/BoboPOS/PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "lib/python/BoboPOS/SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "lib/python/BoboPOS/SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "lib/python/BoboPOS/SimpleDB.py", line 1365, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1087646 Trying to 'start' the server again just results in the serve.errors file being touched. As you'll know from my 'Touch Questions' post, I'm a novice in Zope (but I've bought the Lutz 'Programming Python' book, have two more on order and have been reading and rereading the docs all week...so I'm learning fast), but this has me stumped. I haven't got too far into my Zope 'career' yet, so I won't be devastated if I have to replace the database from scratch (how do you do that by the way?), but I'm sorta worried about the way that all my work seems inaccessible to me now. any and all help would be ... appreciated. tone. From jbb@spyderlab.com Fri Mar 5 21:45:56 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:45:56 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: Continuing this great tradition of responding to my own posts :) On Fri, 5 Mar 1999, Jordan B. Baker wrote: > argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', > 'pstart': '1', 'sql_quote__': } > This is starting to confuse me because simple queries work fine within > Zope, its only the query that I posted in my previous message that seems > to be fowling things up. Okay, now it makes sense. Is 'client' a reserved variable? If so, perhaps a warning would be nice if you attempt to use a reserved variable as an argument to a SQL method. Argh.. so I got that fixed and now I am getting another traceback when testing the SQL method! I can't believe it :) Here it is: Error, exceptions.KeyError: unhandled -jordan. From da@ski.org Fri Mar 5 21:45:06 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 13:45:06 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables Message-ID: I need to detect not only whether a list is empty (that's easy with the #if tag for example), but also whether all of the elements in the list have a property. In Python, one could do this with something like: empty = 1 for element in theList: if not element.hidden: empty = 0 print element if theList and not empty: print "no non-hidden elements" What's the equivalent DTML? Can one create a variable in DTML? Can anyone tell I miss my Python when writing DTML? =) From tismer@appliedbiometrics.com Fri Mar 5 22:05:10 1999 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 05 Mar 1999 23:05:10 +0100 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> Message-ID: <36E05516.FBCEC2BE@appliedbiometrics.com> Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. Oh my :-) ... > DatabaseError: Corrupted data record at 1087646 I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-) ciao - chris -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home From da@ski.org Fri Mar 5 22:10:22 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 14:10:22 -0800 (Pacific Standard Time) Subject: [Zope] DTML Method truth value Message-ID: The following method tests false (correctly): But if I change it to: then it tests true (note that nothing happens in the #in block). Is this correct behavior or one for the Collector? --david From rwolff@noao.edu Fri Mar 5 22:11:30 1999 From: rwolff@noao.edu (Richard Wolff) Date: Fri, 5 Mar 1999 15:11:30 -0700 Subject: [Zope] Authentication and Zope.cgi Message-ID: <199903052211.PAA16445@daikon.tuc.noao.edu> I'm in need of a bit of clarification about how Zope starts up and when it decides to do its authentication and why. I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request mymachine/Zope/manage I do indeed get the normal management screen. I haven't been asked in some time for a password, which suprises me; the 'access' file exists and (but?) hasn't changed since installation. I'd really like the root folder to say something other than Zope, so I added to Apache a second rewrite rule that substitues 'mpg' for Zope in the two places (restarted Apache), and copied Zope.cgi in cgi-bin to mpg.cgi . These two cgi files are identical so they point to the same /var directory. If I try mymachine/mpg/manage , I get an authorization failed box, and upon clicking 'retry', I get the usual authentication box with the correct 'access' user entered. I type in the correct password and the system fails again ("You are not authorized to use this system. Username and password are not correct"). So, I'm very curious as to what's going on ... and I wouldn't mind learning how to change the top of the root name as well. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 22:21:54 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 17:21:54 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > What's the equivalent DTML? Can one create a variable in DTML? ... > > Can anyone tell I miss my Python when writing DTML? =) > I try hard to do everything in DTML but ... python is such a breeze. OTH if you have most of your code written in DTML it is so easy to create similar products and move them around. Pavlos From jim@digicool.com Fri Mar 5 22:31:11 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:31:11 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: Message-ID: <36E05B2F.97F986C2@digicool.com> Tony.McDonald@newcastle.ac.uk, Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. What version of Zope are you using? What OS? Were you using NFS? MySQL? Please send *in private mail* me a gzipped tar file (or Zip file) containing the Data.* files from your var directory. Any other thoughts you might have regarding events leading up to this would be helpful. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Fri Mar 5 22:33:07 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:33:07 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> <36E05516.FBCEC2BE@appliedbiometrics.com> Message-ID: <36E05BA3.D5125CF@digicool.com> Christian Tismer wrote: > > Tony.McDonald@newcastle.ac.uk wrote: > > > > > DatabaseError: Corrupted data record at 1087646 > > I didn't try such a thing before. But because the Zope > database is always only appended to (if I'm understanding right), > you might try to truncate the file upto that offset and see > if it is working again? (please keep a backup :-) Good point. I should have mentioned that as a quick recovery, especially if the location is near the end of the file. But please send me the file before you truncate it. :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From da@ski.org Sat Mar 6 00:35:44 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 16:35:44 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > On Fri, 5 Mar 1999, David Ascher wrote: > > > What's the equivalent DTML? Can one create a variable in DTML? > > > ... > Hmm. I want to create a variable whose value is given by another value. Doing: )"--> doesn't make it through the parser. I've tried adding various quotes to no effect. I think I'm going to work on understanding ExternalMethods -- this syntax is not made for me. =) --david From jbb@spyderlab.com Sat Mar 6 00:58:51 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 19:58:51 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Jordan B. Baker wrote: > Error, exceptions.KeyError: unhandled > > Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? Well, I was looking at the code for the MySQLmodule and it appears that it has problems handling some fields. This appears to be a limitation of the MySQLmodule. It currently does not handle the LONGLONG datatype longer timestamps use. At least I assume its the LONGLONG that is messing it up. I haven't looked into that much detail to be honest. I'm not quite sure if this is something that should be included in the FAQ, or considered a known bug, or submitted to the Collector? Thanks, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mbernstein@profitscape.net Sat Mar 6 01:37:26 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 17:37:26 -0800 Subject: [Zope] Webreview Article Message-ID: <36E086D6.B90F1AEF@profitscape.net> Well, it's the end of the day, and no-one else has posted this, so... http://webreview.com/wr/pub/1999/03/05/feature/index2.html This is a link to Amos' Article on Zope in Webreview. Way to go, Amos! BTW, what have the server logs been telling you guys about people visiting zope.org recently? Has traffic been going up? Michael Bernstein. From kslee@plaza1.snu.ac.kr Sat Mar 6 01:57:52 1999 From: kslee@plaza1.snu.ac.kr (LEE, Kwan Soo) Date: Sat, 06 Mar 1999 10:57:52 +0900 Subject: [Zope] Authentication and Zope.cgi References: <199903052211.PAA16445@daikon.tuc.noao.edu> Message-ID: <36E08B9F.1B56136@plaza1.snu.ac.kr> Richard Wolff wrote: > I'm in need of a bit of clarification about how Zope starts up and when > it decides to do its authentication and why. Me, too ;-) > I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request > mymachine/Zope/manage I do indeed get the normal management screen. > I haven't been asked in some time for a password, which suprises me; > the 'access' file exists and (but?) hasn't changed since installation. This surprises me, since as far as I can see, one is always asked for password accessing /Zope/manage. Does netscape 4.07 automatically go through authenticate procedure? > I'd really like the root folder to say something other than Zope, so > I added to Apache a second rewrite rule that substitues 'mpg' for Zope > in the two places (restarted Apache), and copied Zope.cgi in cgi-bin > to mpg.cgi . These two cgi files are identical so they point to the > same /var directory. > > If I try mymachine/mpg/manage , I get an authorization failed box, > and upon clicking 'retry', I get the usual authentication box with > the correct 'access' user entered. I type in the correct password and > the system fails again ("You are not authorized to use this system. > Username and password are not correct"). There are at least two possibility. 1) Misconfigured rewrite rule. 2) mpg.cgi is not altered suitably. (oh, 1+2 gives the 3rd possibility). I was in a similar situation a few days ago. Now one of apache virtual host on my linux box has 1) ordinary apache site tree, 2) experimental(read 'for play') Zope site under hostname/Zope/ (through Zope.cgi) 3) public Zope site under hostname/public/ (through public.cgi) If this is similar enough to what you want achieve and you are desperate enough, just mail me your rewrite rule and Zope.cgi & mpg.cgi with sensitive parts altered suitably. But be aware that I am new to rewrite rules and pcgi world(hence if you are desperate enough). > So, I'm very curious as to what's going on ... and I wouldn't mind > learning how to change the top of the root name as well. This is easy. Just edit BOBO_REALM (NAME?) in your *.cgi file. LEE Kwan Soo. ps. my Zope's have their own var/Data.bbb but you want your Zope to point to the same var/Data.bbb. Oh this seems far beyond the capacity of mortal being. If you really want need this setting, I guess, the easist way to achieve it is getting Zopal blessings from DC(i.e. make a consulting contract with DC). From chadm@sgi.com Fri Mar 5 23:32:04 1999 From: chadm@sgi.com (Chad McDaniel) Date: 05 Mar 1999 15:32:04 -0800 Subject: [Zope] underscores in Z SQL Method Message-ID: Hello all, I recently discovered Zope and am diving right in. I have a Z SQL Method with the following Query Template: --- select * from rw_ProjectData where _id = --- when I test it, I get the following: --- Sorry, an error occurred. Traceback (innermost last): File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /test/viewSRR/manage_test) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/Shared/DC/ZRDB/DA.py, line 302, in manage_test (Object: CopySource) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_In.py, line 599, in renderwb (Object: viewSRR) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Var.py, line 237, in render (Object: _id) KeyError: _id --- I'm guessing that the parsing of the tokens picks up on underscore ('_') even outside of the DTML tags. Does anyone have a solution or workaround? thanks -- -chad From tony.mcdonald@ncl.ac.uk Sat Mar 6 08:23:25 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sat, 06 Mar 1999 08:23:25 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <199903060823.IAA17941@cheviot.ncl.ac.uk> Again, another lengthy one, with some details of word conversions and XML musings. Fingers over 'd' key... >> Some background: >> I'm one of the web developers here, with a remit to implement a >> curriculum database that can; >> (a) support the Medical Faculty here >> (b) get rolled out to three other Medical-related sites, each with >> their own 'look and feel' >> (c) possibly implement a University-wide curriculum database> >Sounds fantastic! > Absolutely. One of the reasons I applied for the job is that the potential for it is so great! >> The curriculum database is essentially delivering online study guides >> (over 100 for each Faculty) whose source is originally from very well >> marked up Word Documents. In addition, we include multiple choice > >This is really weird, it just reminded me of a (rather pathetic) dream I >had last night. I dreamt that someone created a Python module that >would read Word files. > Ouch!, what we do is save the word docs as RTF. A free program (written in Omnimark) called RTF2XML then trundles through it and creates well-formed and valid XML. I then pass it through another Omnimark program that I wrote that turns it into XML that is more suited to what we want. >I've been awfully interested in XML in the last few days. Can you >describe what user-visible benefits PHP delivers due to its integrated >XML parser? > Background:... PHP is a (non OO) server-level scripting language, usually delivered as an Apache module, that has it's roots in C, but with some of the arcane bits removed. It's database integration is very good. The authors have recently built the (almost XML-industry standard) parser Expat into it. ... From my point of view, having the XML parser in PHP meant that (a) I didn't need to call Perl CGIs (with all that overhead), (b) I'd understand the code a bit (I *cannot* do Perl!), (c) there might be a performance boost from having the parser in the Apache Module and (d) I'd be able to map XML elements such as ... into HTML

    ...
    tags or RTF control codes (all of which would be read from a user-defined database) - thus leading to the 'Holy Grail' (ouch!) of being able to render the documents into whatever form the end-user wanted. As well as that, using XML means that I can select all .. tags that match a certain criteria (eg, all first-year study guides that mention cell biology) from *all* our study guides and create a 'composite' document that would be passed through the XML 'converter' to get custom HTML and RTF docs. Of course, once I 'got into' XML I found out that just having the Expat parser around didn't necessarily mean I was going to get all that for free...ie how 'do' you 'search' an XML document to get those matched tags (and possibly their children). Enter XQL and it's friends, DOM and XSL. XQL (Perl module based on a W3C recommendation) works, but it's slow. In short, I was at an impasse. The level of work needed to incorporate XQL into PHP (as a CGI) or (gulp) rewriting it as PHP was just too much. I installed the XML-Config product for Zope and my appetite was whetted. I read about the XML-sig and downloaded the XML-0.5 toolkit from python.org. I tried one or two examples out ... and my jaw literally fell open. By the time I'd looked in the 'dom' directory I was almost gibbering. This was something I felt I might be able to understand (and definitely use). Ooops...I'll shut up as I'm waay of topic. >Additionally, we are working on Zope searching for a consulting project >right now. Actually it is Zope Cataloging. It's still a >consulting-only option, but plans are that eventually it will go "below >the line". That would be most welcome! > >> I found out about Zope Monday morning, dl'ed it, installed it, got >> one or two things working... and have been worried sick ever since. > >Ahhh, you too, eh? Did you have the dream about the chimp and the >External Method where...oh, nevermind. :^) No, but I've spent the last week muttering 'ok, I can use UserDB to authenticate against our StaffDB and allow per-user access to the file upload area', 'yeah, should be able to rewrite my PHP Multi-Choice Question engine in this DTML gubbins', 'ok, I'll pull in the Perl script that does xxx by using a redirect' and the like ... which is probably more scary! > >> My problem? is that I can see how Zope can do so much for us, but it >> seems to need a hell of a gut-wrench to do so. > >I *think* I have some good news to report on this, but before I squawk, >could you detail this gut-wrench a bit more? > Simply this: Zope seems to do just about everything I need (which is basically to provide a *framework* for the Electronic Curriculum - others will fill in *and manage* the content). I can then concentrate on providing features that people need and 'rolling them out' to the users of the systems, confident that they will integrate into the whole system. I think it's a paradigm-shifty thing more than anything else. Everyone in our group *knows* that an .htaccess file allows access to the files in that directory. They all have at least a basic grasp of CGI programming and all recognize the mapping between files in a unix file structure and their representations as web pages. People using Zope will have to break that habit of logging in to change a file ('cos it ain't there!). (for the time being, I've desubscribed from the PHP-lists to give me more room to think!...) >> c) Is there any way of using the XML documents that I'm creating into >> the database and parsing them to produce either HTML or RTF output? > >I'd like to have this as well. I've been doing a lot of thinking about >this lately. It is a bit more complicated than expected, though... This would be extremely useful to have. > >> d) I know that this a terrible question to ask... but is Zope likely >> to 'remain' open-source (we're worried about getting stuck with a >> proprietary system)?. > >This is the main reason I replied. > >Having Zope as a free and Open Source(tm) platform is the heart of our >business plan. A closed Zope would basically mean we start over >completely as a different company. Thus, closing Zope is roughly >equivalent to closing our company. > phew! well I suppose that answers *that* question! > >Earning the community's enthusiasm is pretty simple, I think. >Unfortunately we aren't doing a good job right now, though we are trying >damn hard. But we'll keep trying... > Seems to this newbie that you're doing a pretty *good* job! >> e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >> dropping the :port requirment). > >Yep, the zope.org machine has five virtual hosts. great. > >> h) We also need resources such as QuickTime movies, images PowerPoint >> slides etc. to be uploaded - would they sit in the database or can >> they be held somewhere else (and what happens about file name >> conflicts)? > >We put them in the database. The 3 Mb Zope binaries are served out of >the database, the PDF files are served out of the database. This works >so well I don't even think about it any more. > great again. Thanks for the reply Paul, (and thanks to the others that replied too - I'm not able to reply in person yet...) Cheers, tone. From jay@tomigaya.shibuya.tokyo.jp Sat Mar 6 23:07:33 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Sat, 06 Mar 1999 18:07:33 -0500 Subject: [Zope] Subfolder Access? Message-ID: <3.0.6.32.19990306180733.009318b0@hito.eccosys.com> I think there must be an easy way around a little trouble I'm having, but it's had me stumped for a few days and I can't find any mention in the list/docs. From a dhtml method I want to access a subfolder's sql methods, which is easy enough using . The problem is, because of the amount of methods involved and in order to keep things flexible I want to add the to a standard_header, and the to a standard_footer. Of course, Zope nixes this. So I was hoping there was an end-run around this dilemna - some other way to give access to subfolders. I've tried including the opening and closing WITH's in the same document surrounded by IF's with no luck, and have been wondering if there's a way to set a folder property to accomplish this... - Jay From prudek@sol.cz Sat Mar 6 09:30:44 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 06 Mar 1999 10:30:44 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> Message-ID: <36E0F5C4.4979DF71@sol.cz> Michel Pelletier wrote: > > Subject: [Zope] Python neccessary to work with Zope? > You do not need to know a single line of Python to use Zope. But > learning Python is a pleasure, not a chore. Thanks a lot for your answers, now I will have a deeper look into Zope. -- Milos Prudek From pavlos@gaaros.msrc.sunysb.edu Sat Mar 6 20:03:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sat, 6 Mar 1999 15:03:10 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > > )"--> > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. You cannot nest DTML but you can use _[] to access the namespace. For instance you could do: Have a nice weekend Pavlos From tseaver@palladion.com Sat Mar 6 21:40:16 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 06 Mar 1999 15:40:16 -0600 Subject: [Zope] [DTML] creating variables References: <199903062000.MAA29011@zope.codeit.com> Message-ID: <36E1A0C0.55D44B20@palladion.com> David Ascher wrote: > Subject: > > On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > > > On Fri, 5 Mar 1999, David Ascher wrote: > > > > > What's the equivalent DTML? Can one create a variable in DTML? > > > > > > ... > > > > Hmm. I want to create a variable whose value is given by another value. > Doing: > > )"--> > > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. > > I think I'm going to work on understanding ExternalMethods -- this syntax > is not made for me. =) I too miss Python when working in DTML. But in this case, I think that the following will help: -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From raver@box.dust.za.net Sun Mar 7 12:02:36 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Sun, 7 Mar 1999 13:02:36 +0100 Subject: [Zope] Creating Zope a zope application Message-ID: <19990307130236.A532@RaVER.duck.org> Hi! I'm reading 'A technical introduction to object publishing with Zope'. The doc says 'Creating a Zope application is simply a matter of creating a regular Python module containing the objects to be published, and placing this module along with some Zope-provided support files in the appropriate place on a web server' The doc continues to say that the zope documentation covers this prosess, but I'm not able to find it. So my question is - what are those zope-provided support files, and where am I supposed to place those file along with the python module that I've created? Sture Lygren From Paul@digicool.com Sun Mar 7 15:32:32 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 10:32:32 -0500 Subject: [Zope] [DTML] creating variables Message-ID: <613145F79272D211914B0020AFF6401907BB06@GANDALF> Tres wrote: > I too miss Python when working in DTML. But in this case, I I also wish Python could get into DTML. I look at some of the DTML that gets written and think "Ugh, that's pretty awful." Still, I don't yet see an alternative. --Paul From edcjones@erols.com Sat Mar 6 11:05:18 1999 From: edcjones@erols.com (Edward C. Jones) Date: Sat, 06 Mar 1999 06:05:18 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <36E10BEE.17A0A5DB@erols.com> Are there any Zope users in the Washington, DC area? From michel@digicool.com Sun Mar 7 18:08:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 13:08:36 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <613145F79272D211914B0020AFF6401907BB08@GANDALF> > -----Original Message----- > From: Edward C. Jones [mailto:edcjones@erols.com] > Sent: Saturday, March 06, 1999 6:05 AM > To: zope@zope.org > Subject: [Zope] Washington, DC area Zope users? > > > Are there any Zope users in the Washington, DC area? > > Digital Creations (the mecca of Zope users) is in Fredricksburg, VA. About 50 miles south of DC. -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Sun Mar 7 19:44:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 14:44:17 -0500 Subject: [Zope] Creating Zope a zope application Message-ID: <613145F79272D211914B0020AFF6401907BB0C@GANDALF> Sture wrote: > The doc says 'Creating a Zope application is simply a matter > of creating a > regular Python module containing the objects to be published, > and placing > this module along with some Zope-provided support files in > the appropriate > place on a web server' > > The doc continues to say that the zope documentation covers > this prosess, > but I'm not able to find it. So my question is - what are those > zope-provided support files, and where am I supposed to place > those file > along with the python module that I've created? Docs are still pretty light, but take a look at the Product Tutorial at: http://www.zope.org/Documentation/Reference/API --Paul From tony.mcdonald@ncl.ac.uk Sun Mar 7 20:25:00 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 07 Mar 1999 20:25:00 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <199903072025.UAA09186@cheviot.ncl.ac.uk> Hi, I've read on the zope-dev list that Zope is not multi-threaded. Does this have any ominous implications for server performance? I believe it means problems for people writing products, but does it give problems for folk using Zope in an 'install products and use them' scenario? many thanks for any thoughts, tone. From michel@digicool.com Sun Mar 7 21:00:48 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 16:00:48 -0500 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Sunday, March 07, 1999 3:25 PM > To: zope@zope.org > Subject: [Zope] Zope not multi-threaded - is this a problem? > > > Hi, > I've read on the zope-dev list that Zope is not multi-threaded. > > Does this have any ominous implications for server > performance? I believe it > means problems for people writing products, but does it give > problems for > folk using Zope in an 'install products and use them' scenario? > We can discuss this now, but in a short while it won't really matter. Zope as we know it now is not 'multi-threaded'. The real issue concerning Zope is one of concurrency, since the 'threading' of requests is ussualy created by the web server (Apache using multi-processes or Medusa (ZServer's) use of select(), neither of which use actual 'threads'). There are two areas that we are working on to make zope concurrent. The Database: There is a new version of BoboPOS, called BoboPOS3. It is currently alpha. BoboPOS3 supports concurrent processes opening, reading and writing the Object Database. 'Concurrifying' Zope: Concurrent programs have to be careful about some issues. In particular, the use of global data. These can sneak in on you in wierd ways. For example, in the regex python module (yes, regex has been depreciated for re, but for now regex is faster) certain uses of compiled reg expressions don't work when two 'threads' enter the same expression. Also, there is an issue about passing mutable objects as default arguments to methods. To be truely thread safe, default arguements need to be immutable, or mutable arguments can only be used in immutable ways. These are, as you said, developer issues. Product developers have to be careful not to block Zope for long periods of time. People in the 'install and use them' scenario should not use these types of Products unless they are sure the block times are low, and product developers should be very, very careful about moving their software out into the world if the product blocks. It should be made clear to the user that this software could stop up the whole works. Why is won't matter soon is because we are working on making Zope fully concurrent. -Michel > many thanks for any thoughts, > tone. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From DAve@mail.netraven.com Mon Mar 8 05:14:32 1999 From: DAve@mail.netraven.com (Dave G) Date: Sun, 7 Mar 1999 21:14:32 -0800 Subject: [Zope] Q for the group Message-ID: Advice needed, opinions wanted. I have a situation where there is a group of users with both a private space and a public space. The users homepage is considered private with the public space where all anonymous viewable docs are held. I have two thoughts on how to do this, Zope is capable of either method, I'm curious which method everyone else thinks best, and why. First method; community folder (contents public viewable by permission) user_folder (contents not public viewable by permission) users manage page (not public viewable by aquisition) users public folder (public viewable by permission) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by aquisition) Second method; community folder (contents public viewable by permission) user_folder (contents public viewable by aquisition) users manage page (not public viewable by permission) users public folder (public viewable by aquisition) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by permission) Both have advantages and disadvantages, either way I end up with on - off, off - on, in the permissions hirearchy. Anyone have a good argument for either method? DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From chsrinfo@guetali.fr Mon Mar 8 05:27:14 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 8 Mar 1999 09:27:14 +0400 Subject: [Zope] top level acl_users Folder Message-ID: <002e01be6924$55424c60$147800a0@pc-pi0> Hello, Is it possible to change (I mean: to delete) the top level UserFolder and use something else, say, a UserDb folder? Also, I made a french version of Confera. If someone is insterested, drop me a note. Regards, Jephte CLAIN From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:04:28 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:04:28 +0000 Subject: [Zope] Why doesn't this loop over files? Message-ID: Hi, I've d/led the ZopeDemos folder, installed it and started learning more about Zope, but there's something happening that I'm not sure about. The 'looping' example doesn't seem to iterate correctly over new additions to the folder. The DTML is here:

    Objects of type

    IdTitle
    If I create a new DTML method or document in the folder 'subFolder', it isn't recognised. I've even copy/pasted the documents that do work into the subFolder with no joy. Curiously, new folders *are* recognised. My Question is: What's preventing Zope from reading *all* the Documents in the subFolder? This would be the core of my first real application in Zope (a resource upload/download facility for staff here) so any advice would be appreciated. thanks tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:08:31 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:08:31 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? In-Reply-To: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> Message-ID: > We can discuss this now, but in a short while it won't really matter. > Zope as we know it now is not 'multi-threaded'. The real issue > concerning Zope is one of concurrency, since the 'threading' of requests > is ussualy created by the web server (Apache using multi-processes or > Medusa (ZServer's) use of select(), neither of which use actual > 'threads'). There are two areas that we are working on to make zope > concurrent. Thanks for the informative answer Michel. Look forward to seeing the all-new singing and dancing server! ta tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:31:59 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:31:59 +0000 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: Hi Richard, > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. I don't know if my critiques will be all that useful (being a Zope newbie), but hopefully this will help a bit. > - - Proposed Access Method - - > It is desired to be able to have "non DTML" files incorporated > in a Zope URL system. These files might be static GIF files, > quicktime movies, or just plain old HTML. Yes. > Obviously, they might be "included" in a DTML page by simply > referencing them directly by their URL. However, I can see cases > where one would like the access to be under the control of the Zope > system. Definitely. We have dozens and dozens (eventually hundreds) of files (QT movies, PowerPoints, Word Docs and the like - the mean size is about 600k-1Meg, but we have quite a few monsters at 6-7 Megs). > For example, access controls might apply. I think that this is 'a good thing'. > > The Zope mount point would enforce permissions just as if the > file were loaded into the Zope DB. > > Objects can be "imported" without having them take up space > in the database. Their creation and maintanence can be handled > outside the Zope system. This would be excellent news for us. > They are rendered by "cat"ing their contents. Does this ensure that MIME types are kept with the document, so that 'clicking' on its link will ensure that the correct helper application is invoked? Cheers, Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From M.Faassen@vet.uu.nl Mon Mar 8 10:54:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 08 Mar 1999 11:54:50 +0100 Subject: [Zope] Ad-hoc Zope FAQ version 0.1.1 Message-ID: <36E3AC7A.3C93D5F4@pop.vet.uu.nl> Ad-hoc Zope FAQ version 0.1.1 Note on the use of the Zope mailing lists: The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Please join and help us document Zope! Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured; unrelated questions are mixed haphazardly. If you feel the calling to help categorize the FAQ into sections, or if you'd like to maintain a particular FAQ section, please mail to the ZDP list. Thank you in advance! Note on the use of StructuredText: See the (currently) first FAQ entry for information on how to render this FAQ into HTML using Zope. For more information on StructuredText see:: http://www.zope.org/Documentation/Reference/StructuredText but this link is currently not completely up to date; see the comments in 'lib\python\StructuredText\StructuredText.py' for the current documentation. * How do I render the Structured Text FAQ into HTML cleanly? (in Zope) When including Structured Text (STX) from a DTML Method into another Document with the 'fmt="structured-text"' attribute, it will be quoted twice. This is because the '__str__' method of the 'DocumentTemplate.HTML' class automatically quotes its HTML when called. You can work around this by calling the STX document's 'read_raw()' method to get the unquoted version. This way we can use unquoted Structured Text examples in our FAQ:: Note that if the STX comes from a property the 'read_raw()' workaround is not needed. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] Another possibly is to use '_.getitem()', like this:: _.getitem('sequence-item') The difference is that the first renders 'sequence-item' through DTML, whereas 'getitem()' does not; it returns the raw value of 'sequence-item'. * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like 'REQUEST.form', 'REQUEST.cookies' and even 'REQUEST' itself. Just call the 'items()' method of the dictionary, and the #in tag will provide a 'sequence-key' and 'sequence-item' variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use 'REQUEST.cookies.items()' for all your cookies, and 'REQUEST.items()' for all 'REQUEST' variables, including CGI Environment variables. If you don't mind the format, you could use '
    ' as a shortcut. * What is a Principia Draft? A Principia Draft is a special copy of any Zope object that is invisible to visitors of your site. You can make changes to this copy, and grant access to outsiders to view your changes (or work along with you). When all changes are done, you can approve all the changes, or discard them. Approving will make the changes permanent and visible to your audience. However, currently Drafts can appear to be broken. To add a draft, choose Principia Draft from the popup menu and click 'Add'. Next, you will have to supply an ID for the Draft, and specify on what base object you are going to work. Clicking 'Add' in this screen will create the Draft for you. Next, you will have to specify who will have access to the Draft. Here the problem starts, because of the way Drafts are managed. First, a Draft doesn't acquire any users from its parent, so you will have to add anyone who has to have access explicitly, even if they have already been access to a parent Folder. But the biggest problem is that you can't reach the UserFolder and Approval screens via the management screens. This will make a Draft a bit harder to use, but it still is workable. This second problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Approval management screens. As this now doesn't happen anymore, you will have to type in the URLs to the screens yourself. You can reach the screens calling the Draft object's 'users__draft__.manage_main' and 'manage_approve__draft__' methods. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ So, the next step is typing in the URL to the Draft's UserFolder management screen, and adding all users that should have access to the Draft. These users can now edit and view all changes made to this Draft. When done, you go to the 'manage_approve__draft__' management screen, and approve, or discard the changes. * How does my Folder Product load default documents? Create a list of tuples containing filenames (without '.dtml') and title pairs:: self.defaultDocs = [ ('index', 'NotMail'), ('address', 'Address Book'), ('attach', 'Attach a File'), ('composer', 'Compose a Message'), ('contact', 'Contact Developers'), ('search', 'Search Your Mailboxes'), ('results', 'Your Search Results'), ('folder', 'Mailbox'), ('message', 'Message'), ('help', 'Help'), ('lookup', 'Lookup Users'), ('standard_footer', 'Standard HTML Footer'), ('standard_header', 'Standard HTML Header'), ('noto', 'Message must have at least one recipient.'), ('reminders', 'Your Reminders'), ('save', 'Save Message'), ('logout', 'You have been logged out'), ('GPL', 'The GNU General Public License'), ('sentmail', 'Mail was sent')] # Then iterate over them and create each one for id,title in self.defaultDocs: try: self.defaultDocFile(id, title, id) except: pass # defaultDocFile is a handy little function: def defaultDocFile(self, id, title, file): f=open('%s/Products/NotMail/%s.dtml' % (SOFTWARE_HOME, file)) file=f.read() f.close() self.manage_addDocument(id, title, file) When you are debugging your DTML, it's a pain to keep deleting and creating new instances of your object in order to load the new dtml files off of the disk. This function comes in handy:: def refresh_docs(self, REQUEST): """ refresh documents from disk (for debug purposes) """ for id,title in self.defaultDocs: try: self._delObject(id) except: pass try: self.defaultDocFile(id, title, id) except: pass return self.manage_main(self, REQUEST) Then, assuming your object has an attribute 'debug' you can define some DTML like so in your manage_main screen::

    Refresh Documents from disk

    * How do I add management tabs to my folder sub-class? If you subclass 'OFS.Folder.Folder' to build a folderish object, you may want to keep around the old Folder management tabs, but add some of your own as well. This can be done by mucking with the Folder class 'manage_options' attribute. One problem is that you might want your own custom 'manage_main' but the FolderClass uses 'manage_main' for displaying the contents of the folder. Here is what I did for my EMarket product. By examining Folder's manage_options:: for option in Folder.manage_options: print option We get the following output:: {'label': 'Contents', 'target': 'manage_main', 'action': 'manage_main'} {'label': 'Properties', 'target': 'manage_main', 'action': 'manage_propertiesForm'} {'label': 'Import/Export', 'target': 'manage_main', 'action': 'manage_importExportForm'} {'label': 'Security', 'target': 'manage_main', 'action': 'manage_access'} {'label': 'Undo', 'target': 'manage_main', 'action': 'manage_UndoForm'} {'label': 'Find', 'target': 'manage_main', 'action': 'manage_findFrame'} Notice that the "Contents" tab calls Folder's manage_main attribute. Just rename that in your sub-class with something like:: manage_contents=OFS.Folder.Folder.manage_main and assign that to a different tab. Here is the beginning of the MarketItem class from the EMarket product:: class MarketItem(OFS.Folder.Folder): """A MarketItem """ # Specify a name for the item type: meta_type='MarketItem' # Specify a relative URL for the icon used to display icons: icon='misc_/EMarket/marketItem' # rename Folder's manage_main to manage_contents manage_contents=OFS.Folder.Folder.manage_main manage_main=HTMLFile('marketItemEdit', globals()) manage_image=HTMLFile('marketItemImage', globals()) # Specify definitions for tabs: manage_options=[ {'label':'Attributes', 'action':'manage_main'}, {'label':'ImageUpload','action':'manage_image'}, {'label':'View', 'action':''}, ] # add in the options from the Folder class.... change # the 'action' for Contents to 'manage_contents' for item in OFS.Folder.Folder.manage_options: if item['label'] == 'Contents': # be sure to use a *copy* manage_options.append(item.copy()) manage_options[-1]['action'] = 'manage_contents' else: manage_options.append(item) From doussot@gifrance.com Mon Mar 8 10:56:19 1999 From: doussot@gifrance.com (doussot@gifrance.com) Date: Mon, 8 Mar 1999 11:56:19 +0100 (CET) Subject: [Zope] Netscape server. Message-ID: Hello, In Zope documentation I found this: > Netscape Servers > > * Like Apache, Netscape does not pass HTTP Authorization information to > CGI scripts. We have a plugin at our website that addresses this. > http://www.digicool.com I found a link on Digicool Web site (Free Stuff / nscgi) but it is broken :( Does anyone know where I can find this plugin ? Thanks. (Please CC me your answers, I'm not suscribed to the list) --- Yann Doussot Grey Interactive - France - http://www.gifrance.com/ Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00 From Lutz.Ehrlich@EMBL-Heidelberg.de Mon Mar 8 13:27:33 1999 From: Lutz.Ehrlich@EMBL-Heidelberg.de (Lutz.Ehrlich@EMBL-Heidelberg.de) Date: Mon, 8 Mar 1999 14:27:33 +0100 ('MET) Subject: [Zope] '~' in StructuredText links? Message-ID: <14051.53317.19816.135841@cuckoo.EMBL-Heidelberg.DE> Hi Zopists, using StructuredText ($Id: StructuredText.py,v 1.11 1999/02/08 18:13:12 klm Exp $) for content generation, I find that I can't include tilde (~) characters in hyperlinks, i.e. a string like "brabbel":http://www.embl-heidelberg.de/~ehrlich. is not mapped to

    brabbel.

    but output as literal

    "brabbel":http://www.embl-heidelberg.de/~ehrlich

    . I tried to fix StructuredText,StructuredText.__init__ by inserting '~' into the gsub statements. No success whatsoever... As I couldn't find this entry neither in the Collector nor in the archive, I wonder whether somebody has a patch sitting somewhere? Cheers, Lutz Ps: Congratulations to the people at Digicool. Keep up the great work! ______________________________________________________________________ Lutz Ehrlich web : http://www.embl-heidelberg.de/~ehrlich email: lutz.ehrlich@embl-heidelberg.de European Molecular Biology Laboratory phone: +49-6221-387-140 Meyerhofstr. 1 fax : +49-6221-387-517 D-69012 Heidelberg, Germany From zopelist@regalint.com Mon Mar 8 13:32:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 08:32:45 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I just ran into this error. When I did a SELECT * on joined tables it would give the error but if I named the fields I needed it worked. I played with it a little and got the error again when I named a field that ended in _num in the SELECT. I have four such INT fields that I don't need, they are used by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). As you can see my SELECT list is long and it would have been nice to just use a * since I need almost all the fields. Everything works fine in MySQL client but from Zope I can produce that error. Maybe there is some conflict with the *_num names. What are your field names? SELECT sonum,cust_name,cust_n,description,kickoff,delivery, comment,partnum,pm_n,pm_initials,cad_n,cad_initials, md_n,md_initials,mm_n,mm_initials,division,custdate,RD, manmeet,steel,exp_del FROM jobinfo LEFT JOIN customer ON cust_n=cust_num LEFT JOIN pm ON pm_n=pm_num LEFT JOIN cad ON cad_n=cad_num LEFT JOIN md ON md_n=md_num LEFT JOIN mm ON mm_n=mm_num WHERE AND active='1' ORDER BY sonum DESC >On Fri, 5 Mar 1999, Jordan B. Baker wrote: > >Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? > >Well, I was looking at the code for the MySQLmodule and it appears that it >has problems handling some fields. > >This appears to be a limitation of the MySQLmodule. It currently does not >handle the LONGLONG datatype longer timestamps use. > >At least I assume its the LONGLONG that is messing it up. I haven't >looked into that much detail to be honest. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From jbb@spyderlab.com Mon Mar 8 16:12:06 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 11:12:06 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Philip Aylesworth wrote: > I just ran into this error. When I did a SELECT * on joined tables it would > give the error but if I named the fields I needed it worked. I played with > it a little and got the error again when I named a field that ended in _num > in the SELECT. I have four such INT fields that I don't need, they are used > by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). > As you can see my SELECT list is long and it would have been nice to just > use a * since I need almost all the fields. > > Everything works fine in MySQL client but from Zope I can produce that error. > > Maybe there is some conflict with the *_num names. What are your field names? I was able to find a work around. The problem was the handling of the TIMESTAMP datatype by the MySQLmodule. It doesn't know how to handle a long timestamp unfortunately, so you'll want to retrieve it as a UNIX timestamp or as a formatted date using one of MySQL's many date functions. The other thing is that I doubt it handles double long integers since AFAIK Python doesn't handle these without an extension module. If your query is returning any of these you'll most likely get this response from Zope... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mike@compar.com Mon Mar 8 16:33:34 1999 From: mike@compar.com (Mike Pelletier) Date: Mon, 8 Mar 1999 11:33:34 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Jordan B. Baker wrote: > The other thing is that I doubt it handles double long integers since > AFAIK Python doesn't handle these without an extension module. It sure does: Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> long("99999999999999999") 99999999999999999L >>> 9999999999999L ** 2 99999999999980000000000001L Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can make numbers as large as you have memory for. Or is this not what you mean? Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From jbb@spyderlab.com Mon Mar 8 17:56:59 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 12:56:59 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Mike Pelletier wrote: > On Mon, 8 Mar 1999, Jordan B. Baker wrote: > > > The other thing is that I doubt it handles double long integers since > > AFAIK Python doesn't handle these without an extension module. > > It sure does: > > Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> long("99999999999999999") > 99999999999999999L > >>> 9999999999999L ** 2 > 99999999999980000000000001L > > Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can > make numbers as large as you have memory for. Or is this not what you > mean? Hey, I'm glad you proved me wrong :) It looks like there is a limitation in the MySQLmodule when handling MySQL's LONGLONG datatypes that could probably be corrected. I may take a look at this later, but I am thinking I may just store UNIX timestamps in my database since this is more portable across databases anyways. But anyway, this may be a FAQ item as I'm sure other people may run into it. -jbb. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From chalaouxf@synbio.tpgnet.net Mon Mar 8 17:43:22 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 8 Mar 1999 18:43:22 +0100 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: References: Message-ID: <19990308180532781.AAA136@[195.10.9.163]> Hi All, I fetched FAQ tool from "http://www.zope.org/WebReview/" but the archive contain only : * __init__.py *version.txt *Product.dat No, FAQ.py file. Strange no. Thus, this is maybe why I cant view Faq in the list of objet in Zope!! FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From zopelist@regalint.com Mon Mar 8 18:30:31 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 13:30:31 -0500 Subject: [Zope] Getting an L on integers eg. 53L Message-ID: Here is a strange one -- I am getting an L on the end of integer numbers from MySQL. (They are INT not BIGINT!) It didn't happen in 1.9, and it doesn't happen with methods that I created in 1.9 and moved to 1.10.2 (I think). In I have to use fmt='%d' to get rid of it. I also had a problem when I tried to use one in a redirect: produces: http://server/dir/file_html?num=53L which causes an error. I got around that by adding an int function: Has anybody else experienced this problem? Having to add all this extra code is driving me crazy! Phil A Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From amos@aracnet.com Mon Mar 8 18:57:54 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 10:57:54 -0800 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: <19990308180532781.AAA136@[195.10.9.163]> References: Message-ID: <3.0.5.32.19990308105754.01145910@mail.aracnet.com> At 06:43 PM 3/8/99 +0100, FR Chalaoux wrote: >I fetched FAQ tool from "http://www.zope.org/WebReview/" but the >archive contain only : > >* __init__.py > >*version.txt > >*Product.dat > > >No, FAQ.py file. Strange no. While this may seem strange, this is in fact the normal contents of a Product distribution file for a "levered product". When you build a product through the web inside the control panel, these are the normal files Zope creates inside the product distribution. >Thus, this is maybe why I cant view >Faq in the list of objet in Zope!! Unfortunately this is not the case. The reason you can't use the FAQ is that there is a bug in Zope which keeps some people from being able to use levered distributions. As discussed on the list, it appears to be related to zlib compression. We are aware of the problem and are working to solve it. Thanks for your patience. -Amos P.S. If you're curious about a bug, you can try searching the Collector. http://www.zope.org/Collector In this case a search under "lever" or "faq" would turn up the existing bug report for this problem. From prudek@sol.cz Mon Mar 8 20:48:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 08 Mar 1999 21:48:32 +0100 Subject: [Zope] python binary not found by bash Message-ID: <36E437A0.4788EA32@sol.cz> When I try to install binary distribution of zope (on Linux), I run the install script and end up with: bash: ./python: No such file or firectory even though python binary is there, with correct rights. Does it mean that the binary lacks some libraries? If so, can I find which ones? -- Milos Prudek From bjs@crc.com Mon Mar 8 21:52:50 1999 From: bjs@crc.com (Bryan J. Smith) Date: Mon, 8 Mar 1999 16:52:50 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <199903082152.QAA14654@mail.lsg.crc.com> New subscriber: Zope on Linux/Alpha? I understand the Zope is developed on Linux/Intel and is supported on many other systems. Linux/Alpha was not one listed on the FAQ. Anyone know if it is possible to compile it on Linux/Alpha? Anyone got a precompiled binary for Linux/Alpha? Thanx ... -- Bryan P.S. If not, what are the issues? I may be interested in resolving them. ************************************************************ Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================ Some say the U.S. is run by special interest, including me. I say, cut the middle man out and save the tax payers money. In keeping with the Bill Of Rights, the ACLU would be 1st in charge, the NRA 2nd, etc... -- Just my $0.02 ************************************************************ From michel@digicool.com Mon Mar 8 22:19:17 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 8 Mar 1999 17:19:17 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <613145F79272D211914B0020AFF6401907BB18@GANDALF> > -----Original Message----- > From: Bryan J. Smith [mailto:bjs@crc.com] > Sent: Monday, March 08, 1999 4:53 PM > To: 'Zope List' > Subject: [Zope] New subscriber: Zope on Linux/Alpha? > > > New subscriber: Zope on Linux/Alpha? > > I understand the Zope is developed on Linux/Intel and is > supported on many > other systems. Linux/Alpha was not one listed on the FAQ. > Anyone know if > it is possible to compile it on Linux/Alpha? Anyone got a precompiled > binary for Linux/Alpha? > > Thanx ... > > -- Bryan > > P.S. If not, what are the issues? I may be interested in > resolving them. > No real issues, just d/l the source release and try compiling Zope. I'd recommend having Python 1.5.1. To build the source release to use the built in simple web server, try: '/usr/local/bin/python1.5.1 wo_pcgi.py' to use with Apache (Note, d/l Zap and look at it's .conf file) '/usr/local/bin/python1.5.1 w_pcgi.py' Change the command line to reflect your python binary. Check out, I think, INSTALL.txt in the doc directory. All the C is ANSI, and python is python (grin) so you shouldn't have a problem. -Michel > ************************************************************ > Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com > Software Engineer http://www.SmithConcepts.com/legal.html > ============================================================ > Some say the U.S. is run by special interest, including me. > I say, cut the middle man out and save the tax payers money. > In keeping with the Bill Of Rights, the ACLU would be 1st in > charge, the NRA 2nd, etc... -- Just my $0.02 > ************************************************************ > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From amos@aracnet.com Tue Mar 9 00:40:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 16:40:35 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Hi Guys: I think I've nailed the problem that was keeping people from using the FAQ Tool and levered products in general under windows. I'd love some confirmation that this does or does not solve people's problems. The fix is to open the product.dat file in 'rb' mode. To do this, change line 420 of lib/python/App/Product.py to: f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') Again, let me know if this doesn't work for you. -Amos P.S. Here's a little FAQ to tide you over until you're happily building your own ;-) Q. What's the FAQ Tool any way? A. Find out for yourself at: http://www.zope.org/WebReview/ Q. What's a levered product? A. A Product created through the web by building it inside the Control Panel. See the Zope Manager's Guide for more information. From robin@alldunn.com Tue Mar 9 01:16:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Mon, 8 Mar 1999 17:16:09 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <011401be69ca$6c2d9730$fa01a8c0@rogue> Yep. Didn't work for me before (even for Levered Products I made myself) but now it does. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Amos Latteier To: zope@zope.org Date: Monday, March 08, 1999 4:11 PM Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) >Hi Guys: > >I think I've nailed the problem that was keeping people from using the FAQ >Tool and levered products in general under windows. > >I'd love some confirmation that this does or does not solve people's problems. > >The fix is to open the product.dat file in 'rb' mode. To do this, change >line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') > >Again, let me know if this doesn't work for you. > >-Amos > >P.S. Here's a little FAQ to tide you over until you're happily building >your own ;-) > >Q. What's the FAQ Tool any way? >A. Find out for yourself at: http://www.zope.org/WebReview/ > >Q. What's a levered product? >A. A Product created through the web by building it inside the Control >Panel. See the Zope Manager's Guide for more information. > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From bkc@murkworks.com Tue Mar 9 00:21:51 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 8 Mar 1999 20:21:51 -0400 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) In-Reply-To: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Message-ID: <199903090115.UAA08625@anvil.murkworks.com> On 8 Mar 99, at 16:40, Amos Latteier wrote: > The fix is to open the product.dat file in 'rb' mode. To do this, change > line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' > shshsh') > > Again, let me know if this doesn't work for you. This fix works for me (lline 407 in my Product.py) HOWEVER ... you must delete the FAQ product from the control panel, then restart ZServer for this fix to take effect. Apparently the old FAQ in bobo inhibits re-reading of the product.dat file. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From butchland@yahoo.com Tue Mar 9 02:23:55 1999 From: butchland@yahoo.com (Butch Landingin) Date: Mon, 8 Mar 1999 18:23:55 -0800 (PST) Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <19990309022355.23900.rocketmail@send205.yahoomail.com> In a previous posting, Tony McDonald wrote: >Hi, >I've d/led the ZopeDemos folder, installed it and started learning >more about Zope, but there's something happening that I'm not sure >about. > >The 'looping' example doesn't seem to iterate correctly over new >additions to the folder. The DTML is here: <... additional text deleted ...> There's a bug in the code, something I noticed when I was playing with the examples too. this is the fixed version: 001 002 003 004

    Objects of type

    005 006 007 008 009 010 011
    IdTitle
    012 013 014 About the bug and the fix: the bug was due to the statement looping over the current folder, not the subFolder which it should be. By moving the "with" statement to enclose it (see line 002), the statement VS. where column_name = Is the only advantage of using the first (sqltest) the type checking? I can't find any other obvious advantages. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tony.mcdonald@ncl.ac.uk Tue Mar 9 09:46:27 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 09:46:27 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <19990309022355.23900.rocketmail@send205.yahoomail.com> Message-ID: > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 Butch, Thanks for the reply - but this doesn't work completely either. I can add folders and delete them and the changes made show up in the listing, but adding documents (both documents and methods) has no effect. If I delete the *original* documents created by the installation, they show up as being gone, but even a copy-paste of the original documents doesn't get any new documents/methods etc. to show up. Am I doing a dumb newbie thing here? (I *do* have a folder called 'subFolder' btw). many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From dick.wall@mediamail.telinet.com Tue Mar 9 13:47:08 1999 From: dick.wall@mediamail.telinet.com (Dick Wall) Date: Tue, 09 Mar 1999 08:47:08 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <19990309084120.83ca0fd9.in@mediamail.telinet.com> Hi all, I have been using python for years, and zope for a few months now (lovely), ZServer for weeks, but Windows NT? Not long enough to understand the differences between services and ordinary process (give me a break, I am heavily from a Un*x background) :-). I know when I installed the binary version of Zope on the windows machine here it gave me a service in the services list which I can activate on startup. However, I am betting that this runs the ZopeHTTPServer, not the ZServer which I got as a separate download. I have everything working just lovely with the ZServer now, but it needs to be run as an NT service (and respond to start and stop signals, etc) at which point I freely admit my own inadequacies in this area. Now my question. How can I do what I need to do. Is it simply a case of redirecting a python 'shell' file used by the service to the start.py in the ZServer module, or is there more to it? If it is this simple, which python 'shell' file do I use? If it is not this simple, can someone send me basic instructions on how to do it (why is NT like this - give me an rc.local file any day - I know where I stand with that stuff). Thanks in advance. Dick From michel@digicool.com Tue Mar 9 15:00:46 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:00:46 -0500 Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <613145F79272D211914B0020AFF6401907BB25@GANDALF> > -----Original Message----- > From: Butch Landingin [mailto:butchland@yahoo.com] > Sent: Monday, March 08, 1999 9:24 PM > To: tony.mcdonald@ncl.ac.uk > Cc: Zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > In a previous posting, Tony McDonald wrote: > > >Hi, > >I've d/led the ZopeDemos folder, installed it and started learning > >more about Zope, but there's something happening that I'm not sure > >about. > > > >The 'looping' example doesn't seem to iterate correctly over new > >additions to the folder. The DTML is here: > <... additional text deleted ...> > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 > > About the bug and the fix: > the bug was due to the statement > looping over the current folder, not the subFolder which it should be. > By moving the "with" statement to enclose it (see line 002), the > statement

    Objects of type

    IdTitle
    > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony > McDonald > Sent: Tuesday, March 09, 1999 4:46 AM > To: Butch Landingin > Cc: zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > > > > There's a bug in the code, something I noticed when I was playing > > with the examples too. this is the fixed version: > > > > 001 > > 002 > > 003 > > 004

    Objects of type

    > > 005 > > 006 > > 007 > > 008 > > 009 > > 010 > > 011
    IdTitle
    > > 012 > > 013 > > 014 > > Butch, > Thanks for the reply - but this doesn't work completely either. I can > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. > > Am I doing a dumb newbie thing here? (I *do* have a folder called > 'subFolder' btw). > > many thanks > tone > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Tue Mar 9 15:03:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:03:55 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF6401907BB27@GANDALF> > -----Original Message----- > From: Dick Wall [mailto:dick.wall@mediamail.telinet.com] > Sent: Tuesday, March 09, 1999 8:47 AM > To: zope@zope.org > Subject: [Zope] ZServer as a windows NT service? > > > Hi all, > > > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). > Ahmen brother! Can I get a witness! -Michel > Thanks in advance. > > Dick > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From zopelist@regalint.com Tue Mar 9 15:01:52 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 10:01:52 -0500 Subject: [Zope] sqltest vx. var Message-ID: >Something I'm just curious about... > >where > >VS. > >where column_name = > >Is the only advantage of using the first (sqltest) the type checking? I >can't find any other obvious advantages. > I haven't played with it too much but I think that Zope handles undefined variables properly if you do the sqltest. ie. where and will work if name2 is not defined. It also handles the quoting and SQL syntax (such as doubling single quotes). Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tony.mcdonald@ncl.ac.uk Tue Mar 9 15:04:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 15:04:02 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <000401be6a3c$38a6cc70$ce63efa1@venice> References: Message-ID: > > Tony's problem was that Zope was correctly respecting the meta_type of the > 'old' Document objects included with the demo, but any new documents added > afresh were being created with the 'DTML Document' or 'DTML Method' > meta-types, which were falling through the objectValues 'sieve'. > Andy, Thank you *very* much for this - I thought I was losing my marbles over it! (Now all I need is links to External Files and I'm away! :) Thanks again, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From pavlos@gaaros.msrc.sunysb.edu Tue Mar 9 15:06:13 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 10:06:13 -0500 (EST) Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: Message-ID: On Tue, 9 Mar 1999, Tony McDonald wrote: > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. My guess is that you created your original database in Zope-1.9 and then moved everything into Zope-1.10. If that is the case then you need to replace with or something to that effect. Pavlos From Paul@digicool.com Tue Mar 9 15:21:40 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 9 Mar 1999 10:21:40 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF640190D9E77@GANDALF> Dick wrote: > startup. However, I am betting that this runs the > ZopeHTTPServer, not the Not quite. ZopeHTTPServer is a console app just like ZServer. The service is a PCGI-like thing that runs Zope as a service, listening for named pipe connections from something that is run as a CGI by the web server. > ZServer which I got as a separate download. I have everything > working just > lovely with the ZServer now, but it needs to be run as an NT > service (and > respond to start and stop signals, etc) at which point I > freely admit my > own inadequacies in this area. ZServer is still at alpha 2 so it's premature to focus on things like how it is packaged. I *think* we have all the issues figured out and the next release, perhaps this month, will be a beta1. Until we get into beta, we'll have to hope that someone in the community packages it up as a service. > Now my question. How can I do what I need to do. Is it simply > a case of > redirecting a python 'shell' file used by the service to the > start.py in > the ZServer module, or is there more to it? If it is this > simple, which > python 'shell' file do I use? If it is not this simple, can > someone send me > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). One issue off the top of my head is integration with the NT Event Log. --Paul From rob.page@digicool.com Tue Mar 9 16:05:08 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:05:08 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069142@GANDALF> > >Something I'm just curious about... > > > >where > > > >VS. > > > >where column_name = > > > >Is the only advantage of using the first (sqltest) the type > checking? I > >can't find any other obvious advantages. > > > > I haven't played with it too much but I think that Zope > handles undefined > variables properly if you do the sqltest. > > ie. > > where > and > > will work if name2 is not defined. > > It also handles the quoting and SQL syntax (such as doubling > single quotes). Absolutely... we ran into some situations where the SQL was so dynamic potential security problems arose. sqltest and sqlvar are designed to reduce that exposure. Additionally, we've found a very common rhythm where a search UI might expose all of a large percentage of the available data elements in the RDBMS. Using sqltest lets the user not specify one or more parameters without a lot of messy stuff in the SQL Method. --Rob From zopelist@regalint.com Tue Mar 9 16:06:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 11:06:27 -0500 Subject: [Zope] sqltest vx. var In-Reply-To: Message-ID: >>Something I'm just curious about... >> >>where >> >>VS. >> >>where column_name = >> >>Is the only advantage of using the first (sqltest) the type checking? I >>can't find any other obvious advantages. >> > >I haven't played with it too much but I think that Zope handles undefined >variables properly if you do the sqltest. > >ie. > >where >and > >will work if name2 is not defined. > >It also handles the quoting and SQL syntax (such as doubling single quotes). > I'll correct myself here. I was thinking of the tag. I don't know what does that or won't do... Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rob.page@digicool.com Tue Mar 9 16:23:11 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:23:11 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069145@GANDALF> > I'll correct myself here. I was thinking of the > tag. I > don't know what does that or > won't do... I meant to bring this up in my earlier post -- this tag too, is used to simplify what could be a terribly complicated SQL Method given an indeterminate number and list of search criteria. With this tag you can permit an arbitrary arguments to be supplied connected with your predetermined ANDs and ORs This one tag has, in the past, reduced may SQL Methods into one -- natural maintenance savings. --Rob From jeffrey@Digicool.com Tue Mar 9 16:27:49 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 09 Mar 1999 11:27:49 -0500 Subject: [Zope] sqltest vx. var Message-ID: <199903091627.IAA32000@zope.codeit.com> >From: Philip Aylesworth > I'll correct myself here. I was thinking of the tag. I > don't know what does that or > won't do... A _very very_ nice feature of #sqltest is the 'multiple' feature. For example: SELECT * FROM inbox WHERE If doc_status is passed in as a single value, like "foo", the SQL statement will be rendered as:: SELECT * FROM inbox WHERE doc_status='foo' BUT!!! (this is where it gets good), if doc_status is passed in as a list/sequence, like ["foo", "bar", "drop", "ship"], it will be rendered as:: SELECT * FROM inbox WHERE doc_status in ('foo','bar,'drop','ship') This is an _extremely_ handy feature of #sqltest. Prior to #sqltest, doing the above might be like: SELECT * FROM inbox WHERE doc_status in ( '' , ) (#else used to be used where #unless is used today). The above code also always required doc_status to be passed in as a sequence. #sqltest is smart enough (I believe - i've never been bitten by this) to detect the difference between strings and lists. I've used #sqltest with multiple many times with Acquisition where a folder property would define part of a SQL statement. That property in some cases would be a single value, in other places it would be a tokens or lines property. So, in otherwords, you get the type checking, the multiple, the optional, etc... with #sqltest that you don't get otherwise. About the only problem is that #sqltest currently doesn't do not-equals or "not in (...)". .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From A.K.Heath@shu.ac.uk Tue Mar 9 17:05:39 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Tue, 9 Mar 1999 17:05:39 GMT Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <199903091705.RAA07667@teak.shu.ac.uk> I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? Andy btw: Zope looks really good to me (when I can get over these glitches). --------------------------- Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () From zopelist@regalint.com Tue Mar 9 17:15:29 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 12:15:29 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I found that this problem came up when I used MEDIUMINT in MySQL. I changed my database to INT and it worked fine. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From michel@digicool.com Tue Mar 9 17:29:26 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 12:29:26 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB2E@GANDALF> > -----Original Message----- > From: Andy Heath [mailto:A.K.Heath@shu.ac.uk] > Sent: Tuesday, March 09, 1999 12:06 PM > To: zope@zope.org > Subject: [Zope] tree doesn't work 4me linux amd win32 > > > I'm a zope newbie. > > I just installed on a windows 95 box and on a linux 2.0.something > but I can't get anything with tree working (other stuff seems ok). > > Hadars' second sample app doesn't work for me (the tree part > produces no output). > > Even the minimal > > > > > doesn't produce output (tried this with the second Habar example after > creating the "sub-folders"). > > I get the same behaviour on windows as linux. > > I must be doing something wrong. Clues please ? > I bet your using a DTML Document. Try using a DTML Method. The reason why the tree tag renders nothing for the DTML Document is because DTML Documents are not containers of other objects, they are objects to hold DTML content. DTML Methods are (and this is the suble thing) *methods* of the Folder object that contains them. They are not 'objects' in the same sense of the term used for DTML Documents (I can hear Jim saying now "*everything's* an object"). Because Folder objects *are* containers, the #tree tag used in a Folder's DTML Method will render the contents of that Folder. Hadar's example is a little outdated, it is based on 1.9, in which DTML Documents didn't exist, and all Documents were DTML methods. -Michel > Andy > btw: Zope looks really good to me (when I can get over these > glitches). > > --------------------------- > Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o > Sheffield Hallam University. Phone: +44 114 2534904 /\ > Sheffield, England Fax: +44 114 2533161 () () > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From robin@alldunn.com Tue Mar 9 17:31:35 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 9 Mar 1999 09:31:35 -0800 Subject: [Zope] ZServer as a windows NT service? Message-ID: <006501be6a52$b0bbe900$fa01a8c0@rogue> I currently have ZServer running as a service on two machines using the srvany.exe tool from the NT resource kit or from MSDN. Essentially srvany is the actual service and then you tell it via registry settings what other program you want to run. It works good enough for me for the time being. The only problem is that the service stop message does a hard kill on the ZServer process so any last second updates to the Zope DB might be fragmented if it wasn't finished writing, but with the way the DB works at least the DB will still be usable. I am out of the office right now so I can't provide step by step instructions right now. There is a .doc file that comes with srvany.exe that I followed. I specified that Python was the executeable to be run by srvany, the ZServer directory is to be the CWD, and that the command-line should be start.py. Worked first try. Of course the right thing to do would be to integrate native service capabilities into ZServer itself via the win32api packages. That way ZServer could shhutdown gracefully and could send meaningful things to the event log. But srvany is good enough for alpha level, non-production servers. And I havn't had any problems to speak of dealing with running it as a service. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Dick Wall To: zope@zope.org Date: Tuesday, March 09, 1999 5:09 AM Subject: [Zope] ZServer as a windows NT service? >Hi all, > >I have been using python for years, and zope for a few months now (lovely), >ZServer for weeks, but Windows NT? Not long enough to understand the >differences between services and ordinary process (give me a break, I am >heavily from a Un*x background) :-). > >I know when I installed the binary version of Zope on the windows machine >here it gave me a service in the services list which I can activate on >startup. However, I am betting that this runs the ZopeHTTPServer, not the >ZServer which I got as a separate download. I have everything working just >lovely with the ZServer now, but it needs to be run as an NT service (and >respond to start and stop signals, etc) at which point I freely admit my >own inadequacies in this area. > >Now my question. How can I do what I need to do. Is it simply a case of >redirecting a python 'shell' file used by the service to the start.py in >the ZServer module, or is there more to it? If it is this simple, which >python 'shell' file do I use? If it is not this simple, can someone send me >basic instructions on how to do it (why is NT like this - give me an >rc.local file any day - I know where I stand with that stuff). > >Thanks in advance. > >Dick > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From William_Whitehead@byu.edu Tue Mar 9 17:34:19 1999 From: William_Whitehead@byu.edu (William Whitehead) Date: Tue, 09 Mar 1999 10:34:19 -0700 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <3.0.5.32.19990309103419.00a35920@email.byu.edu> I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I was able to compile and add the ZPyGreSQL Product to my Zope installation. I want to create a Database connection. When I go to create a new one, it asks for the Id, Title, and Database Connection String. What do I put into the Database Connection String? I tried the database I want to use, but it gives Invalid connection String: baseball Is it a rights issue with PostgreSQL or something else? What is it expecting the database connection string field anyway? Thanks for your help! Bill - ====================================================================== William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | Library Information Systems | Email: | 2840 HBLL | mailto:william_whitehead@byu.edu | Provo, UT 84602 | Home Page | | http://www.lib.byu.edu/~wbw | ====================================================================== From ShawH@STHS.org Tue Mar 9 18:24:12 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 9 Mar 1999 12:24:12 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: I have a nifty system whereby each individual I add to a database automatically gets a personal directory and password. One of my users has come to me with a problem. He can add images to his directory, but cannot subsequently edit the image (i.e. open the image's manage screen) as it complains about lack of permissions. The security role he has contains all the image related options I see. He can delete it, btw. This is not an immediate issue, but I do wonder why the permissions don't seem to be working in a sensible manner. Why should he be able to add images, but not manage them? Are there extra 'image manage' permissions? If so, where do I find them? From M.Faassen@vet.uu.nl Tue Mar 9 18:33:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 09 Mar 1999 19:33:44 +0100 Subject: [Zope] FAQ 0.2 - About this FAQ Message-ID: <36E56988.CEF76199@pop.vet.uu.nl> Zope FAQ 0.2 - About this FAQ and the Zope Documention Project * What is this FAQ? This FAQ is a project of the Zope Documentation Project, and aims to answer any (or at least lost) questions you might have about Zope and how to use it. * What is the Zope Documentation Project? The Zope Documentation Project (ZDP) is a community project of Zope users that aims to create documentation for Zope. The first goal of the ZDP is the creation and maintenance of an extensive Zope FAQ, later on other documentation will follow. We welcome everybody to contribute; for instance by sending in questions and answers for the FAQ. * Where is the rest of this FAQ? The Zope FAQ has been split into separate sections. If you are reading this on the ZDP mailing list, you should see the other documents posted as well. If you are reading this on zope@zope.org or zope-dev@zope.org, you will only see this message. The Zope FAQ is under development. It is probably already useful, but because I don't want to spam everybody you will have to look at the ZDP list to see the rest of the FAQ. Everyone is very welcome to join the ZDP list. You can also wait until the ZDP has its web infrastructure going and the FAQ is published on the web. This will hopefully be very soon; we're working on it. * How do I contribute? The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. * How do I join the ZDP mailing list? You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Thanks in advance for your contributions! * Are there other Zope-related FAQs? Yes, there is the "Zope Questions and Answers" at:: http://www.zope.org/Information/QA/ This is maintained by Digital Creations; currently it is the best place to look if you are brand new to Zope. That said, Paul Everitt of Digital Creations has kindly contributed the Zope Questions and Answers to the ZDP (or vice versa; the ZDP is contributing to the Q&A). The ZDP plans to merge the two FAQs shortly. * What is Structured Text and what does it have to do with this FAQ? The FAQ is (currently) written in Structured Text, so you may very well reading the FAQ in Structured Text format (the double colons and the indented paragraph structure give it away). If you are just reading this FAQ you shouldn't worry about it. If you plan to contribute to the ZDP we'd prefer it if your contributions were written in Structured Text, however. For more information see the Structured Text section of this FAQ. * What are these FIXME comments I see scattered through the FAQ? If you are reading the ZDP mailing list or its archives, then it is the FAQ's editor (or possibly a contributor) who is not entirely sure about some details on Zope, and is asking people on the list to help figure it out. If you are reading this FAQ somewhere else, then oops, they don't belong there. Please send a message to the zdp@zope.org list telling us about it, and thanks! * What other sections does this FAQ have? We currently have sections on: o DTML o Zope Administration o Structured Text o External Methods o Builtin Products o Product Development From Jose.Lacal@icn.siemens.com Tue Mar 9 19:27:23 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 14:27:23 -0500 Subject: [Zope] Zope for CD Index? Message-ID: <8525672F.006A78AE.00@li01.lm.ssc.siemens.com> Folks: http://www.freeamp.org/cdindex I don't know if anybody in the community would like to approach these folks and show them how Zope can make their project so much easier to manage / control. "The CD Index project (this is a temporary name -- we should find a better name soon) is designed to replace the badly designed and even worse administered CDDB project." Just a PR hint. Regards. - - - - - I do NOT speak for Siemens. - - - - - "Everything we lack, we make-up in denial." Jose C. Lacal, Senior Engineer, Data Services Siemens I & CN - Boca Raton, FL USA jose.lacal@icn.siemens.com +01 (561) 955-3081 From Brian@digicool.com Tue Mar 9 19:44:10 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 9 Mar 1999 14:44:10 -0500 Subject: [Zope] Images and Zope1.10.2 Message-ID: <613145F79272D211914B0020AFF64019FD80@GANDALF> > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mike@compar.com Tue Mar 9 19:37:04 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 9 Mar 1999 14:37:04 -0500 (EST) Subject: [Zope] ZPyGreSQL Database Connection Problem In-Reply-To: <3.0.5.32.19990309103419.00a35920@email.byu.edu> Message-ID: From lib/python/Products/ZPyGreSQLDA/README.txt: The connection string in Zope should be: baseball@localhost:5432 your_user_name Mike. On Tue, 9 Mar 1999, William Whitehead wrote: > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > was able to compile and add the ZPyGreSQL Product to my Zope installation. > I want to create a Database connection. When I go to create a new one, it > asks for the Id, Title, and Database Connection String. What do I put into > the Database Connection String? I tried the database I want to use, but it > gives > > Invalid connection String: baseball > > Is it a rights issue with PostgreSQL or something else? What is it > expecting the database connection string field anyway? Thanks for your help! > > Bill > > > - > ====================================================================== > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > Library Information Systems | Email: | > 2840 HBLL | mailto:william_whitehead@byu.edu | > Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | > ====================================================================== > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From prudek@sol.cz Tue Mar 9 20:33:13 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 09 Mar 1999 21:33:13 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E58589.2A99E93C@sol.cz> I have a problem with authorization under Apache 1.3.3 I can go to introductory screen but I can't get to ./manage screen. I get Athorization failed, and when I pres cancel I get the traceback below. I have put the lines (with modification reflecting my placement of Zope.cgi) from doc/WEBSERVER.txt at the top of my srm.conf file. I wasn't sure where to put it, since according to Apache documentation the directive is not inherited. Later I copied those lines to Virtual WWW section of www.sol.cz but to no avail. What does the line "Zope configuration maps /Zope/ to the Zope.cgi cgi script" mean? I thought that all I need to do is put Zope.cgi in my cgi-bin, put the above lines into srm.conf, and restart Apache... You can try it on http://www.sol.cz/cgi-bin/Zope.cgi. name is superuser, password is 123 # This is the traceback: You are not authorized to access this resource. No Authorization header found. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /manage) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) -- Milos Prudek From rocon@pivot.net Tue Mar 9 20:44:23 1999 From: rocon@pivot.net (Robert OConnor) Date: Tue, 9 Mar 1999 15:44:23 -0500 Subject: [Zope] Root Folders and Names {Manager's Guide Update} Message-ID: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> * How do I "name" the *blank* root folder? This is the same folder that is named "Plutonia" in the Zope manager's guide. Maybe the root folder has no name so that if I go to http://www.bob.com/ the "Folder at / " will present index_html to requesting browsers. If I did name it "plutonia" would it be accessible both as http://www.bob.com/ and as http://www.bob.com/plutonia ? So maybe I don't need to "name" this root folder. If so, then the Zope manager's guide needs to be clearer. In the fourth paragraph on page 12 it says: "...presuming that your ZOPE is installed at http://your.place.com/Objects and it's management screen is at http://your.place.com/Objects/manage" This does not follow through the document. There is no folder named "Objects" Maybe the document should say: http://plutonia.com/ and it's management screen is at http://plutonia.com/manage" And to manage one of the three departments used in the examples, say for example "News" then: http://plutonia.com/news/manage" Other notes on this issue: Timothy J. Grant asked: "...My problem is that my Root folder in Zope has no name, and it appears that FSIMPORT requires a folder name for it to work." No response was found to this post on the ZOPE list. -bobo connor From luke@geeklife.com Tue Mar 9 21:02:05 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 9 Mar 1999 13:02:05 -0800 Subject: [Zope] NT Server Question Message-ID: <199903092102.NAA24259@hipmail1.gohip.com> I've gotten Zope up and running on my IIS/NT server. Right now I can access it through www.myserver.com/cgi-bin/zope.exe. Is there any tricky way to get it to run as www.myserver.com/zope? including www.myserver.com/zope/folder/object? Can you do that with Apache on NT? I would use ZServer but I need to also be able to run Perl CGI scripts. Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From amos@aracnet.com Tue Mar 9 21:53:22 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 13:53:22 -0800 Subject: [Zope] Root Folders and Names {Manager's Guide Update} In-Reply-To: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> Message-ID: <3.0.5.32.19990309135322.010e9d40@mail.aracnet.com> At 03:44 PM 3/9/99 -0500, Robert OConnor wrote: >* How do I "name" the *blank* root folder? Right now you can't. And you don't need to. The "name" of the root folder is simply the SCRIPT_NAME your webserver uses to access Zope. By default in ZServer and ZopeHTTPServer this is an empty string, since they both normally server one published module, though they both can server multiple published modules. So, you can give your root folder a title, but you can't use Zope to change how your web server calls Zope. Do this with your webserver. In the case of ZServer, check out the zope_handler.py, it has options to set the SCRIPT_NAME. ZopeHTTPServer also has options to set the SCRIPT_NAME with command line arguments. >So maybe I don't need to "name" this root >folder. Right. >If so, then the Zope manager's guide needs >to be clearer. Perhaps the docs should be updated. The manager's guide probably assumes that you're using PCGI, but it shouldn't make this assumption. Hope this helps. -Amos From jeffbauer@bigfoot.com Tue Mar 9 23:05:02 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Tue, 09 Mar 1999 17:05:02 -0600 Subject: [Zope] NT Server Question References: <199903092102.NAA24259@hipmail1.gohip.com> Message-ID: <36E5A91E.B5E9D9FE@rubic.com> Luke Duff wrote: > I've gotten Zope up and running on my IIS/NT server. > Can you do that with Apache on NT? Yes, documented here: http://starship.python.net/crew/jbauer/apachenotes/ Best regards, Jeff Bauer Rubicon, Inc. From jae@kavi.com Wed Mar 10 00:56:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 9 Mar 1999 16:56:07 -0800 (PST) Subject: [Zope] ZSQL methods in parent subfolder Message-ID: Is this behaviour a bug? I have all my ZSQL methods collected together in a folder. If I call these from a sibling folder[1] without any arguments, ie. I get the below error, if I call them with specific arguments, ie. I get no errors. (comp_id was in REQUEST in both cases). [1] by sibling folder I mean something like the following arrangement... /sql/company (where the sql method is stored) /lists/company_list (where the call is made) Here's the error: Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /filter/contacts/index_html) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: index_html) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_In.py, line 656, in renderwob (Object: sql.companies) File lib/python/Shared/DC/ZRDB/DA.py, line 420, in __getitem__ (Object: CopySource) File lib/python/Shared/DC/ZRDB/Aqueduct.py, line 332, in __getitem__ KeyError: (see above) Looking into it, line 332 in Aqueduct.py is a simple key lookup... def __getitem__(self, key): return self._data[key] It would seem that an argument is getting passed in by default when the sql in put in a parent's subfolder. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Wed Mar 10 01:09:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Tue, 9 Mar 1999 17:09:12 -0800 (PST) Subject: [Zope] Q: Setting/Creating variables Message-ID: I have been playing around with Zope/ZPublisher/DocumentTemplate and have been extremely pleased with the ease of development, as well as the power of the Python language. Sometimes I have found myself wanting to save the results of an expression in my DTML code, for use later in the same page (or even an embedded DTML object). The only thing I have used that is similar to DTML is ColdFusion, which has a CFSET tag, ie: or In reading the docs, it looked like I might be able to do something along the lines of but this didn't seem to work, and it's not very elegant either. Am I missing something? None of the howtos or tutorials seem to cover this. A / would be really spiffy. =) Please make sure you CC me if you respond to this message, as I had to unsubscribe due to the overwhelming amount of traffic. Thanks! -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From webmaster@mtear.com Wed Mar 10 01:16:29 1999 From: webmaster@mtear.com (webmaster@mtear.com) Date: Tue, 9 Mar 1999 17:16:29 -0800 Subject: [Zope] tree doesn't work 4me linux amd win32 In-Reply-To: <199903092000.MAA08338@zope.codeit.com> Message-ID: Andy wrote> Subject: [Zope] tree doesn't work 4me linux amd win32 I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? I had the same problem, but only with Zope 1.10.2. I noticed that DTML documents (the default to be created) won't work with the tree tag. If you create a DTML Method (like the old DTML from Zope 1.9) then they work as expected. I don't have a clue as to why this works like this. Maybe its the proerties of the DTML Documents that are acting folderish and tree doesn't know what to do? Hope that helps, Jason Spisak webmaster@mtear.com Jason Spisak Webamster Masterson, Tate & Associates 6151 West Century Boulevard #928 Los Angeles, CA 90045 http://www.mtear.com From TomJenkins@zentuit.com Wed Mar 10 01:17:48 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 9 Mar 1999 20:17:48 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <199903100120.UAA13261@mail.digiweb.com> Hello folks, Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does Medusa/ZopeHTTPServer support SSL? Thanks! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From luciano@magnet.com.br Wed Mar 10 01:52:31 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Tue, 09 Mar 1999 22:52:31 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: Message-ID: <4.1.19990309224955.009de8f0@10.0.0.1> We have been unable to access properties of the new DTML Document objects in the same way we used to access properties of Folders. I don't know whether we are doing something wrong or we found an inconsistency in the new 1.10 Zope API. Here is a very simplified test case illustrating the issue. I have a folder with these contents: folder1 [Folder] - broken_html [DTML Document] - index_html [DTML Document] - sub-document (The Grand Sub-Document) [DTML Document] - sub-folder (The Grand Sub-Folder) [Folder] The source of index_html (which works) is:

    Title of sub-item:

    Author of sub-item:

    This works as expected. The properties title and author of the sub-folder are retrieved. The source of broken_html is exactly the same, except for the sub-document reference:

    Title of sub-item:

    Author of sub-item:

    Viewing this document-method I get a "Zope Unavailable" message with this traceback: So, how do I access properties of sub-documents from a sub-document in the same folder? []s Luciano Ramalho -- Not all who wander are lost. [J.R.R.Tolkien] From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 02:13:50 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 21:13:50 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: On Tue, 9 Mar 1999, Luciano Ramalho wrote: > folder1 [Folder] > - broken_html [DTML Document] > - index_html [DTML Document] > - sub-document (The Grand Sub-Document) [DTML Document] > - sub-folder (The Grand Sub-Folder) [Folder] > > So, how do I access properties of sub-documents from a sub-document in the > same folder? > One way is to use DTML Methods instead of DTML Documents. For more info visit: http://www.gaaros.com:9673/FAQ/ The issue you raise is currently the first entry in the FAQ Pavlos From petrilli@amber.org Wed Mar 10 02:35:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 9 Mar 1999 21:35:04 -0500 Subject: [Zope] ZopeHTTPserver In-Reply-To: <199903100120.UAA13261@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 09, 1999 at 08:17:48PM -0500 References: <199903100120.UAA13261@mail.digiweb.com> Message-ID: <19990309213504.C26240@amber.org> On Tue, Mar 09, 1999 at 08:17:48PM -0500, Tom Jenkins wrote: > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? Nope, ZHS (for short) is derived from the example CGIHTTPServer.py that ships with Python---it's heavily modified though. ZServer is what is derived from Medusa and is currently in alpha (though pretty stable for me). As for SSL, not currently, and I'm not sure what's going to happen with this. You can use Apache+SSL right now for this. I've had some thoughts about it, but I'm not sure how SSL will impact an async-socket based system... the setup of new SSL connections is kind of heavy. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Jose.Lacal@icn.siemens.com Wed Mar 10 03:02:14 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 22:02:14 -0500 Subject: [Zope] Mailhost problems. Message-ID: <85256730.00104603.00@li01.lm.ssc.siemens.com> Folks: I am still stuck with a sendmail / Mailhost problem. Everything works fine except mailing from a DTML document via sendmail. I am using: Red Hat 5.2 Zope 1.10.2 - I created a username of "zope_u" and a group "zope" - I did run the installation script with a command line like: ./install -sAdmin:MyPassword -u zope_u -g zope - I created the Feedback and SendFeedback forms as per the manuals. - I added the user "zope_u" to the mail group. - I modified user zope_u's .bash_profile file to include the path to sendmail in /usr/sbin - If I log-in to the Linux server as zope_u, I _am_ able to call sendmail and to send mail outside of the server. Anything else I missed, folks? Regards. From luciano@magnet.com.br Wed Mar 10 03:19:24 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 00:19:24 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: <4.1.19990310001056.0127a5c0@10.0.0.1> At 21:13 09/03/99 -0500, Pavlos Christoforou wrote: >On Tue, 9 Mar 1999, Luciano Ramalho wrote: >> So, how do I access properties of sub-documents from >> a sub-document in the same folder? >> >One way is to use DTML Methods instead of DTML Documents. I understand the difference between DTML Methods and DTML Documents. The very reason I chose to do it with DTML Documents was to be able to store some special fields, such as 'author' in my example, along with the document. I cannot do that with DTML Methods, as they do not have properties. In Zope 1.0.9 I used folders but I was running into problems with relative links. It seemed natural to switch from my previous folders to the new DTML Documents. I still do not know to reference the properties of a DTML Document 'A' from within a document or method 'B' in located in the same folder as 'A'. Thanks for any help. []s Luciano From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 03:31:59 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 22:31:59 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: On Wed, 10 Mar 1999, Luciano Ramalho wrote: > > The very reason I chose to do it with DTML Documents was to be able to > store some special fields, such as 'author' in my example, along with the > document. I cannot do that with DTML Methods, as they do not have properties. > > In Zope 1.0.9 I used folders but I was running into problems with relative > links. It seemed natural to switch from my previous folders to the new DTML > Documents. You are right. I was using folders too for the same reason. > > I still do not know to reference the properties of a DTML Document 'A' from > within a document or method 'B' in located in the same folder as 'A'. You can use the PARENTS variable. so if you have a folder which contains two DTML Documents A and B then you can access B's properties from A by: PARENTS[1] will return the folder or containing object one level up and PARENTS[-1] will return the top most Folder. Pavlos From luciano@magnet.com.br Wed Mar 10 04:45:22 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 01:45:22 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <4.1.19990310013702.0129a4d0@10.0.0.1> At 22:31 09/03/99 -0500, Pavlos Christoforou wrote: >You can use the PARENTS variable. > >so if you have a folder which contains two DTML Documents A and B then >you can access B's properties from A by: > >PARENTS[1] will return the folder or containing object one level up and >PARENTS[-1] will return the top most Folder. Thanks for your help, Pavlos. I found another way. Instead of writing: I wrote this, and it worked fine: I found a way, but I don't understand why the first syntax worked fine with Folders and fails with DTML Documents. If anyone would like to clarify the semantic difference between _['sub-document'] and _.getitem('sub-document'), I would be even happier. By the way, Pavlo's site http://www.gaaros.com:9673/ is useful! []s Luciano From amos@aracnet.com Wed Mar 10 06:00:04 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 22:00:04 -0800 Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310013702.0129a4d0@10.0.0.1> References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <3.0.5.32.19990309220004.01152aa0@mail.aracnet.com> At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > > >I wrote this, and it worked fine: > > > >I found a way, but I don't understand why the first syntax worked fine with >Folders and fails with DTML Documents. If anyone would like to clarify the >semantic difference between _['sub-document'] and >_.getitem('sub-document'), I would be even happier. The answer is in both the ZDP's FAQ and the DTML Manager's Guide. _['foo'] "renders" foo according to DTML rules. This process mostly consists of calling DTML and other callable objects. _.getitem('foo') simply returns foo as found in the DTML namespace. The reason you were having problems is that _['sub-document'] renders the document to a string. Naturally strings don't have properties. Hence the error you got from Zope, "'string' object has no attribute 'title'". Make sense? -Amos From mwm@phone.net Wed Mar 10 07:58:25 1999 From: mwm@phone.net (Mike Meyer) Date: Tue, 9 Mar 1999 23:58:25 -0800 (PST) Subject: [Zope] Another "no such file" failure... Message-ID: I'm trying to get zope working to study it, but keep stumbling over the "(102) failure during connect" error - with the "No such file or directory" addendum. The underlying OS is FreeBSD 3.1. I want to run it on an Apache web server (at least for now), with the server doing the authentication. That all appears to be working properly - after all, I'm getting errors from pcgi, now, right? The var directory is writable by nobody. In fact, the entire source tree is owned by nobody, which is the user that the Apache httpd is running as. However, I get log file entries from pcgi, even after deleting the pcgi.log file. I initially tried copying the Zope.cgi file to cgi-bin, but noticed that some (unspecified) setting in Zope.cgi might need to change because of that, so I added a second scriptalias to the Apache httpd.conf pointing at the source directory, set the protections on it, and tried to load . No change - the log file records the same error message. The pcgifile.py test reports error attempting: 'from cgi_module_publisher import publish_module' This doesn't appear to exist in the distribution - and I recalled something about that being a holdover from bobo, so I removed that test from the script, and ran it again. The modified version runs cleans. Was I wrong about cgi_module_publisher? Should it be finding that? If not, then what's the next thing to look at? FWIW, here's the entry from httpd.conf section for Zope: SriptAlias /Zope-bin/ "/home/mwm/external-src/Zope-1.10.2-src/" AllowOverride None Options None FollowSymLinks Auth_PGhost sql Auth_PGport 5432 Auth_PGdatabase web Auth_PGpwd_table users Auth_PGuid_field name Auth_PGpwd_field password Auth_PG_encrypted off AuthName "Zope" AuthType basic require valid-user And here's Zope.cgi: #!/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/home/mwm/external-src/Zope-1.10.2-src/lib/python/Main.py PCGI_PUBLISHER=/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_SOCKET_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.soc PCGI_PID_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.pid PCGI_ERROR_LOG=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/home/mwm/external-src/Zope-1.10.2-src Thanx, Message-ID: Hi! On Tue, 9 Mar 1999, Mike Pelletier wrote: > The connection string in Zope should be: > baseball@localhost:5432 your_user_name You don't need hostname and port part, so the connection string can be just "baseball user_name". (BTW, without host:port, libpq will connect to postgres using UNIX sockets, not TCP/IP. I think it is much better - for speed and security) > Mike. > > On Tue, 9 Mar 1999, William Whitehead wrote: > > > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > > was able to compile and add the ZPyGreSQL Product to my Zope installation. > > I want to create a Database connection. When I go to create a new one, it > > asks for the Id, Title, and Database Connection String. What do I put into > > the Database Connection String? I tried the database I want to use, but it > > gives > > > > Invalid connection String: baseball > > > > Is it a rights issue with PostgreSQL or something else? What is it > > expecting the database connection string field anyway? Thanks for your help! > > > > Bill > > > > > > - > > ====================================================================== > > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > > Library Information Systems | Email: | > > 2840 HBLL | mailto:william_whitehead@byu.edu | > > Provo, UT 84602 | Home Page | > > | http://www.lib.byu.edu/~wbw | > > ====================================================================== > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > > > -- > --- | Mike Pelletier Work: 519-746-1607 > /opeware! | Software Developer Home: 519-725-7710 > --- | mike@zopeware.com Fax: 519-746-7566 > http://www.zopeware.com | Zopeware is not endorsed by Digital Creations > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From prudek@sol.cz Wed Mar 10 08:46:10 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 09:46:10 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E63152.C315225C@sol.cz> Hi, I cannot go to management screen of Zope, probably due to some problem with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care to look at it. Thanks! -- Milos Prudek From anthony@interlink.com.au Wed Mar 10 09:07:59 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Wed, 10 Mar 1999 20:07:59 +1100 Subject: [Zope] streaming data through zope from an external method. Message-ID: <199903100907.UAA01717@mbuna.arbhome.com.au> I've got an external method that is generating a (possibly quite large) audio file and sending it back. Right now, I'm generating this in memory in a big string, then returning it to zope. I'd _like_ to be able to just have the external method send the data straight through (maybe in chunks) without having to read it all into memory. Is this possible with zope at all? Anthony From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 09:28:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 09:28:19 -0000 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <000901be6ad8$55ac54b0$5c773fc1@media1> Try something like: dbname@machinename user password the password is optional HTH Phil ----- Original Message ----- From: William Whitehead To: Sent: Tuesday, March 09, 1999 5:34 PM Subject: [Zope] ZPyGreSQL Database Connection Problem >I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I >was able to compile and add the ZPyGreSQL Product to my Zope installation. >I want to create a Database connection. When I go to create a new one, it >asks for the Id, Title, and Database Connection String. What do I put into >the Database Connection String? I tried the database I want to use, but it >gives > >Invalid connection String: baseball > >Is it a rights issue with PostgreSQL or something else? What is it >expecting the database connection string field anyway? Thanks for your help! > >Bill > > >- >====================================================================== >William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | >Library Information Systems | Email: | >2840 HBLL | mailto:william_whitehead@byu.edu | >Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | >====================================================================== > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From mj@antraciet.nl Wed Mar 10 09:30:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:30:41 +0100 Subject: [Zope] ZSQL methods in parent subfolder In-Reply-To: Message-ID: <4.1.19990310102902.00be2630@lisp.atmm.nl> At 01:56 10/03/99 , John Eikenberry wrote: >Is this behaviour a bug? > >I have all my ZSQL methods collected together in a folder. If I call these >from a sibling folder[1] without any arguments, ie. > > > >I get the below error, if I call them with specific arguments, ie. > > > >I get no errors. (comp_id was in REQUEST in both cases). Because you are calling "sql.company" (in quotes), it is assumed to be an expression, and your expression is referencing an attribute, not a method. Try using the following: "sql.company()", or sql.company (without quotes). Note: I didn't test either method. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 10 09:37:57 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:37:57 +0100 Subject: [Zope] Mailhost problems. In-Reply-To: <85256730.00104603.00@li01.lm.ssc.siemens.com> Message-ID: <4.1.19990310103401.00bd6560@lisp.atmm.nl> At 04:02 10/03/99 , Jose.Lacal@icn.siemens.com wrote: > > >Folks: > >I am still stuck with a sendmail / Mailhost problem. Everything works fine >except mailing from a DTML document via sendmail. > > > [SNIP] > >I am using: >Red Hat 5.2 >Zope 1.10.2 > >- I created a username of "zope_u" and a group "zope" > >- I did run the installation script with a command line like: > ./install -sAdmin:MyPassword -u zope_u -g zope > >- I created the Feedback and SendFeedback forms as per the manuals. > >- I added the user "zope_u" to the mail group. > >- I modified user zope_u's .bash_profile file to include the path to >sendmail in /usr/sbin > >- If I log-in to the Linux server as zope_u, I _am_ able to call sendmail >and to send mail outside of the server. > >Anything else I missed, folks? MailHost doesn't use sendmail, but rather opens a socket to the specified sendmail host and uses the SMTP protocol to send the messages. This is somehow prohibited. It looks like there is maybe no SMTP server listening on the specified address and port, or your machine is not allowed to connect. You could try and do a manual telnet to the address and port from the zope_u account and see what happens. Make sure you also go through the motions, like HELO , and such. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Wed Mar 10 10:00:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 10 Mar 1999 10:00:01 +0000 Subject: [Zope] sqltest vx. var In-Reply-To: <199903091627.IAA32000@zope.codeit.com> Message-ID: > > So, in otherwords, you get the type checking, the multiple, the optional, > etc... with #sqltest that you don't get otherwise. About the only problem > is that #sqltest currently doesn't do not-equals or "not in (...)". > .jPS | jeffrey@digicool.com Can #sqltest handle the 'wildcard' situation in MySQL (and probably other DBMSs too) select * from tbl where tbl_val like '%nib%' is a different SQL query from select * from tbl where tbl_val = 'niblet' my attempt... select * from tbl where ta Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Paul@digicool.com Wed Mar 10 11:30:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 10 Mar 1999 06:30:28 -0500 Subject: [Zope] streaming data through zope from an external method. Message-ID: <613145F79272D211914B0020AFF6401907BB34@GANDALF> Anthony wrote: > I've got an external method that is generating a (possibly > quite large) > audio file and sending it back. Right now, I'm generating > this in memory > in a big string, then returning it to zope. I'd _like_ to be > able to just > have the external method send the data straight through > (maybe in chunks) > without having to read it all into memory. Is this possible with zope > at all? I think the first problem will be finding a publisher that streams. PCGI buffers all I/O, perhaps FastCGI doesn't. Even if you didn't, sending it through Zope in chunks would avoid getting Zope's memory footprint up there. One way would be to have the ExternalMethod return a sequence, then do something like: Of course the above might be completely wrong, but you get the drift :^) --Paul From ShawH@STHS.org Wed Mar 10 12:40:43 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 06:40:43 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: It does ! That's why I can't figure out what's wrong. I made certain he had every permission that seemed image related, and he still can't access it. ---------- From: Brian Lloyd [SMTP:Brian@digicool.com] Sent: Tuesday, March 09, 1999 1:44 PM To: 'Shaw, Howard'; 'Zope@zope.org' Subject: RE: [Zope] Images and Zope1.10.2 > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:29:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:29:07 -0000 Subject: [Zope] Image button values Message-ID: <008501be6b02$5b05b580$5c773fc1@media1> This is a multi-part message in MIME format. ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I'm using some image buttons and am having trouble getting the return = values for them. I have a button called answerbtn and the return values would be = 'answerbtn.x' and 'answerbtn.y', I need to check one of these values to = check whether this button was pressed. I have tried _['answerbtn.x'] but I get a traceback from Zope. Any Ideas? TIA Phil phil@media-1.ml.uwcm.ac.uk ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all,
     
    I'm using some image buttons and am = having trouble=20 getting the return values for them.
     
    I have a button called answerbtn and = the return=20 values would be 'answerbtn.x' and 'answerbtn.y', I need to check one of = these=20 values to check whether this button was pressed.
     
    I have tried _['answerbtn.x'] but I get = a traceback=20 from Zope.
     
    Any Ideas?
     
    TIA
     
    Phil
    phil@media-1.ml.uwcm.ac.uk=
     
    ------=_NextPart_000_0082_01BE6B02.5AE423C0-- From jeffbauer@bigfoot.com Wed Mar 10 14:43:58 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Wed, 10 Mar 1999 08:43:58 -0600 Subject: [Zope] Another "no such file" failure... Message-ID: <36E6852E.1C76031D@rubic.com> Mike Meyer wrote: > I'm trying to get zope working to study it, but keep stumbling over > the "(102) failure during connect" error - with the "No such file or > directory" addendum. > > The underlying OS is FreeBSD 3.1. I want to run it on an Apache web > server (at least for now), with the server doing the > authentication. That all appears to be working properly - after all, > I'm getting errors from pcgi, now, right? Correct. > The pcgifile.py test reports > > error attempting: 'from cgi_module_publisher import publish_module' > > This doesn't appear to exist in the distribution - and I recalled > something about that being a holdover from bobo, so I removed that > test from the script, and ran it again. The modified version runs > cleans. > > Was I wrong about cgi_module_publisher? Should it be finding that? If > not, then what's the next thing to look at? Yes, it's a holdover from Bobo days (which some people are still using for existing apps) but you can ignore that particular error. Contact me offline and we'll try to get this resolved. Best regards, Jeff Bauer Rubicon, Inc. From mj@antraciet.nl Wed Mar 10 14:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 15:47:52 +0100 Subject: [Zope] Image button values In-Reply-To: <008501be6b02$5b05b580$5c773fc1@media1> Message-ID: <4.1.19990310154506.00bb7140@lisp.atmm.nl> At 15:29 10/03/99 , you wrote: >Hi all, >I'm using some image buttons and am having trouble getting the return values >for them. >I have a button called answerbtn and the return values would be 'answerbtn.x' >and 'answerbtn.y', I need to check one of these values to check whether this >button was pressed. >I have tried _['answerbtn.x'] but I get a traceback from Zope. >Any Ideas? Try::
    or::
  • : No form items To generate an overview of all form variables your DTML has access to. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:53:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:53:22 -0000 Subject: [Zope] Image button values Message-ID: <009101be6b05$be7e0150$5c773fc1@media1> Thanks for the suggestion Martijn but I've already tried that and it does indeed show variables of the form 'answerbtn.x'. But when I try to access them using one of: or or I get a traceback error, so I am none the wiser 8^( Thanks anyway Any other ideas? Phil phil@media-1.ml.uwcm.ac.uk ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 2:47 PM Subject: Re: [Zope] Image button values >At 15:29 10/03/99 , you wrote: >>Hi all, > >>I'm using some image buttons and am having trouble getting the return values >>for them. > >>I have a button called answerbtn and the return values would be 'answerbtn.x' >>and 'answerbtn.y', I need to check one of these values to check whether this >>button was pressed. > >>I have tried _['answerbtn.x'] but I get a traceback from Zope. > >>Any Ideas? > >Try:: > >
    > >or:: > > >
  • : > > No form items > > >To generate an overview of all form variables your DTML has access to. > > > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From michel@digicool.com Wed Mar 10 15:03:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:03:52 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB38@GANDALF> > > > I had the same problem, but only with Zope 1.10.2. I noticed > that DTML > documents (the default to be created) won't work with the > tree tag. If you > create a DTML Method (like the old DTML from Zope 1.9) then > they work as > expected. I don't have a clue as to why this works like > this. Maybe its > the proerties of the DTML Documents that are acting folderish and tree > doesn't know what to do? Read my reply to the orginal message in this thread as to why the tree tag doesn't work as you expect in DTML Documents. -Michel > > Hope that helps, > > Jason Spisak > webmaster@mtear.com > > Jason Spisak > Webamster > Masterson, Tate & Associates > 6151 West Century Boulevard #928 > Los Angeles, CA 90045 > http://www.mtear.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Wed Mar 10 15:06:19 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:06:19 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <613145F79272D211914B0020AFF6401907BB39@GANDALF> > -----Original Message----- > From: Tom Jenkins [mailto:TomJenkins@zentuit.com] > Sent: Tuesday, March 09, 1999 8:18 PM > To: zope@zope.org > Subject: [Zope] ZopeHTTPserver > > > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? > Thanks! Nope. ZopeHTTPServer is not Medusa, it is based on the HTTPServer that comes with Python. Medusa is it's own product, that we have integrated parts of into ZServer (which uses the core of Medusa to drive it's network end). http://www.nightmare.com/medusa/ For medusa info. http://www.zope.org/ for info on ZServer. Once ZServer is stable (it is alpha at the moment) use of ZopeHTTPServer will be depreciated (but not forgotten). -Michel > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > I suggested holding a "Python Object Oriented Programming Seminar", > but the acronym was unpopular. Joseph Strout, 28 Feb 1997 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 15:01:59 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 16:01:59 +0100 Subject: [Zope] Image button values In-Reply-To: <009101be6b05$be7e0150$5c773fc1@media1> Message-ID: <4.1.19990310160031.00bd7a60@lisp.atmm.nl> At 15:53 10/03/99 , Phil Harris wrote: >Thanks for the suggestion Martijn but I've already tried that and it does >indeed show variables of the form 'answerbtn.x'. But when I try to access >them using one of: > > or > or > > >I get a traceback error, so I am none the wiser 8^( > >Thanks anyway > >Any other ideas? > Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:15:54 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:15:54 -0000 Subject: [Zope] Image button values Message-ID: <00a801be6b08$e43dfa50$5c773fc1@media1> Well I'll give it another go then 8^) Thanks Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:21:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:21:19 -0000 Subject: [Zope] Image button values Message-ID: <00ae01be6b09$a5d91e60$5c773fc1@media1> Martijn, I tried it again, and it worked! It was my fault it didnt work in the first place 8^( Sorry for wasting your time Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From tschruefer@mail.howard.k12.md.us Wed Mar 10 15:27:35 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 10 Mar 1999 10:27:35 -0500 Subject: [Zope] New subscriber: Installing Zope Message-ID: <199903101525.KAA25149@mail.howard.k12.md.us> Having seen Zope recommended on Usenet last week, I decided to check it out, Monday I found the Webreview article in the email box. I have been reading as much as I can find, but one question is always on my mind, when ever I find one of these wonderful, does it all systems. Can I install it ? Not, is it to complicated to install, but do I need root access to the machine to install this application. This question and the answer have killed many a promising application (DB & BBS). So, the question is, can Zope be installed in a typical Telnet account ? The install docs mention, you have to be root user, to install some components, does this mean what I fear it means ? (machine admin, ie. super user) Tom From webmaster@mtear.com Wed Mar 10 12:43:59 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:43:59 -0500 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] Message-ID: <36E6690F.3F29A15@mtear.com> This is a multi-part message in MIME format. --------------FC234E87DDED8B9F783D1ACF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------FC234E87DDED8B9F783D1ACF Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E66801.26F0DC53@mtear.com> Date: Wed, 10 Mar 1999 07:39:29 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Michel Pelletier Subject: Re: [Zope-dev] The Spanish Aquisition References: <613145F79272D211914B0020AFF6401907BB37@GANDALF> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michel Pelletier wrote: > > > -----Original Message----- > > From: Jason Spisak [mailto:webmaster@mtear.com] > > Sent: Tuesday, March 09, 1999 4:57 PM > > To: zope-dev@zope.org > > Subject: [Zope-dev] The Spanish Aquisition > > > > > > Zopistas, > > > > I am trying to reference a property of a Folder that is in a totally > > spearate hirearchy of Zope. When inserted below the folder > > Iwish to grab > > the property of it works fine, but when moves elsewhere it dies. > > > > > > > > > > > > Hmm.. I'm not sure I understand the problem you want to solve, but have > you tried: > > Yes. I am trying to reference a folder that is not in the same path. And I tried your next suggestion a long time ago, with no luck. , and get an error with traceback: ) > > If the folder is one of your ancestors (ie above you and in your path) > you can just reference it's attributes like they were your own. If the > folder you are targeting is above you but not in your path (ie not an > ancestor) but is a child of one of your ancestors, you must first aquire > the folder, and then reference it's property, like this: > > > > The rule is: > If a folder is an ancestor of yours, you can just say > If a folder is a child of one of your ancestors, but not one of your > ancestors (like a cousin), you can say , because you must first aquire the folder. > This doesn't work. My paths are like, /staff/candidates/candidate1, and staff/companies/company1/job1/submission1/MyDocument. I am trying to reference a property of the candidate1 folder in the MyDocument document. Thanks for your time Michel. Jason Spisak webmaster@mtear.com --------------FC234E87DDED8B9F783D1ACF-- From webmaster@mtear.com Wed Mar 10 12:44:21 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:44:21 -0500 Subject: [Zope] [Fwd: [Zope-dev] Vairable Query of TinyTables] Message-ID: <36E66925.458D5754@mtear.com> This is a multi-part message in MIME format. --------------AAF88E2DDEBDA15484C1770F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------AAF88E2DDEBDA15484C1770F Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E6652E.220B4EF3@mtear.com> Date: Wed, 10 Mar 1999 07:27:26 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Martijn Pieters Subject: Re: [Zope-dev] Vairable Query of TinyTables References: <4.1.19990310100907.00bd7100@lisp.atmm.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Worked like a charm! I am obviously new to objects. ;-) Thanks. Jason Spisak webmaster@mtear.com >Martijn Pieters wrote: > > At 22:59 09/03/99 , Jason Spisak wrote: > >By variable query I mean for example: > > > > > > > > > >
    > > > > > > > >Believe it or not, it doesn't choke, it just gives me nothing. > > TinyTables act like dictionary objects I think, and are keyed on strings. > AUTHENTICATED_USER is not a string, but an object, so you'll have to > convert it. Try calling AUTHENTICATED_USER.getUserName() instead. > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ --------------AAF88E2DDEBDA15484C1770F-- From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:40:28 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:40:28 -0000 Subject: [Zope] Image button values Message-ID: <00c201be6b0c$52a8b400$5c773fc1@media1> Hmm, More on the image button saga. It seem's that does indeed work, but doesn't, and neither does the getitem way. Seems weird to me, any ideas? TIA Phil ----- Original Message ----- From: Phil Harris To: ; Martijn Pieters Sent: Wednesday, March 10, 1999 3:21 PM Subject: Re: [Zope] Image button values >Martijn, > >I tried it again, and it worked! > >It was my fault it didnt work in the first place 8^( > >Sorry for wasting your time > >Phil >----- Original Message ----- >From: Martijn Pieters >To: Phil Harris ; >Sent: Wednesday, March 10, 1999 3:01 PM >Subject: Re: [Zope] Image button values > > >>At 15:53 10/03/99 , Phil Harris wrote: >>>Thanks for the suggestion Martijn but I've already tried that and it does >>>indeed show variables of the form 'answerbtn.x'. But when I try to access >>>them using one of: >>> >>> or >>> or >>> >>> >>>I get a traceback error, so I am none the wiser 8^( >>> >>>Thanks anyway >>> >>>Any other ideas? >>> >> >>Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... >> >>-- >>M.J. Pieters, Web Developer >>| Antraciet http://www.antraciet.nl >>| Tel: +31-35-6254545 Fax: +31-35-6254555 >>| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >>| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >>------------------------------------------ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From petrilli@amber.org Wed Mar 10 15:50:27 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 10 Mar 1999 10:50:27 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310105027.C28029@amber.org> On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: > > Can I install it ? Not, is it to complicated to install, but do I need > root access to the machine to install this application. This question > and the answer have killed many a promising application (DB & BBS). You should be able to install a binary package as a typical user on a UNIX machine. If your machine already has Python 1.5.1 or higher installed (don't they all?!?!?! :-) then you can just install the basic source distribution of Zope and do the: $ python wo_pcgi.py Thing :-) You can then use the ZopeHTTPServer on a untrusted port (over 1000) and off you go :-) If you want to use Apache+PCGI you probably will need administrator support, and if yo uwant to be on a port under 1000 you'll need it. > The install docs mention, you have to be root user, to install some > components, does this mean what I fear it means ? (machine admin, ie. > super user) You should be able to get a feel for it without being root. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From michel@digicool.com Wed Mar 10 15:58:12 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:58:12 -0500 Subject: [Zope] Apache Authorization Message-ID: <613145F79272D211914B0020AFF6401907BB3B@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Wednesday, March 10, 1999 3:46 AM > To: zope@zope.org > Subject: [Zope] Apache Authorization > > > Hi, > > I cannot go to management screen of Zope, probably due to some problem > with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care > to look at it. Thanks! > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf file will probably have something your not including in your apache. also, do an 'httpd -l' and make sure you have mod_rewrite compiled and/or dynamicly loaded in. http://www.zope.org/Community/Projects/Zap -Michel > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 16:06:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 17:06:04 +0100 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] In-Reply-To: <36E6690F.3F29A15@mtear.com> Message-ID: <4.1.19990310170353.00bd7f00@lisp.atmm.nl> At 13:43 10/03/99 , Jason Spisak wrote: >This doesn't work. My paths are like, /staff/candidates/candidate1, and >staff/companies/company1/job1/submission1/MyDocument. I am trying to >reference a property of the candidate1 folder in the MyDocument >document. > will work. candidates is the object that is the common ancestor, and from there you can reference objects down that path. You will have to place the expression into quotes, however. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 10 16:14:13 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 10 Mar 1999 11:14:13 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310111413.E5210@throwingcopper.ans.net> You can indeed install it. I had originally had a standard telnet sort of account on a FreeBSD machine. You can basically get a full-featured Zope if your web provider runs apache with mod_rewrite. (If they don't have mod_rewrite, authentication is a little bit more of a headache.) The thing to beware of is that PCGI starts a long running process and many hosting companies will not be pleased about this. Kevin On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: ,----- | | Having seen Zope recommended on Usenet last week, I decided to check it | out, Monday I found the Webreview article in the email box. I have been | reading as much as I can find, but one question is always on my mind, | when ever I find one of these wonderful, does it all systems. | | Can I install it ? Not, is it to complicated to install, but do I need | root access to the machine to install this application. This question | and the answer have killed many a promising application (DB & BBS). | | So, the question is, can Zope be installed in a typical Telnet account ? | | The install docs mention, you have to be root user, to install some | components, does this mean what I fear it means ? (machine admin, ie. | super user) | | | Tom | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From david.a.wagle@healthpartners.com Wed Mar 10 16:56:41 1999 From: david.a.wagle@healthpartners.com (David Wagle) Date: Wed, 10 Mar 1999 10:56:41 -0600 (CST) Subject: [Zope] help on ZMySQL Message-ID: <14054.42057.794893.98199@plato.healthpartners.com> Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- From M.Faassen@vet.uu.nl Wed Mar 10 17:08:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 10 Mar 1999 18:08:28 +0100 Subject: [Zope] title and id properties in DTML methods Message-ID: <36E6A70C.687B26BA@pop.vet.uu.nl> Hi everybody, I'm probably completely confused, but if I understood it right, DTML Methods in Zope 1.10 are the same as Documents in Zope 1.9. I may remember wrongly, but wasn't it so that in 1.9 documents rendered the title and id of the actual document, and not that of the containing folder? In 1.10 in DTML methods, they appear to render the containing folder, instead. The only way I can access title of a DTML method in 1.10, is by referring to it specifically, i.e. . It works as expected with DTML Documents. Is this as it should be? Am I correct about the 1.9 behavior? If so, then DTML Methods don't seem to be exactly equivalent to 1.9 Documents, and this should probably be in the FAQ. :) Regards, Martijn From ShawH@STHS.org Wed Mar 10 19:45:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 13:45:08 -0600 Subject: [Zope] help on ZMySQL Message-ID: Do it without the ';'. When it says 'that was not a query' it simply means that there was no returned results for it to display. If you check the database, the values should have been successfully inserted. ---------- From: David Wagle [SMTP:david.a.wagle@healthpartners.com] Sent: Wednesday, March 10, 1999 10:57 AM To: zope@zope.org Subject: [Zope] help on ZMySQL Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jeffrey@Digicool.com Wed Mar 10 21:56:35 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Wed, 10 Mar 1999 16:56:35 -0500 Subject: [Zope] help on ZMySQL Message-ID: <199903102156.NAA17945@zope.codeit.com> >From: David Wagle > I have a ZSQL method for inserting data into the database. > The database connection is active. > the permissions are correct. > the method is defined roughly as: > > insert into tblname (col1, col3, col4, col5) values > (col1val, "value taht is constant", col4val, col5val); > > when I try and test it, Zope tells me that there > is a parse error near ';'. If you're doing just a single query, you don't need the ';' (or its equivilent). If you're doing multiple queries, use to seperate them. The DA will seperate the queries using this. This is equivilent to what command line or other SQL tools often do with the ';' character. > I remove teh ';' and Zope tells me that > "This was not a query." Nothing is being returned is what this means (or more basically, it wasn't a SELECT based query). .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From prudek@sol.cz Wed Mar 10 22:41:42 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 23:41:42 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E6F526.D5A29939@sol.cz> > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf > file will probably have something your not including in your apache. I can't use another apache just for Zope. I looked into zap.conf and incorporated some changes into my httpd.conf. No way. Since the log file of RewriteLog remains empty, I believe no rewriting takes place, actually. I have about 30 virtual servers on that httpd, maybe there lies the problem? Also this is Apache 1.3.3, do I need Apache 1.3.4? -- Milos Prudek From sfl@beehive.de Thu Mar 11 11:02:28 1999 From: sfl@beehive.de (Sebastian Luehnsdorf) Date: Thu, 11 Mar 1999 12:02:28 +0100 (CET) Subject: [Zope] Apache Authorization In-Reply-To: <36E6F526.D5A29939@sol.cz> Message-ID: On Wed, 10 Mar 1999, Milos Prudek wrote: > Since the log file of RewriteLog remains empty, I believe no rewriting > takes place, actually. I have about 30 virtual servers on that httpd, > maybe there lies the problem? Also this is Apache 1.3.3, do I need > Apache 1.3.4? > hi! No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI option? And did you remember to turn the RewriteEngine on? ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99 From ags@beehive.de Thu Mar 11 12:29:27 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 11 Mar 1999 13:29:27 +0100 (CET) Subject: [Zope] Converting Whitespaces Message-ID: Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex From prudek@sol.cz Thu Mar 11 13:16:25 1999 From: prudek@sol.cz (Milos Prudek) Date: Thu, 11 Mar 1999 14:16:25 +0100 (MET) Subject: [Zope] Apache Authorization In-Reply-To: Message-ID: Yes I turned rewite engine on, but maybe not in the right place. I wrote it into global config. I believe do not need to use ExecCGI, since I use ScriptAlias. And Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope introductory. I'm desperate.... ------------ Milos Prudek On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI > option? And did you remember to turn the RewriteEngine on? From ShawH@STHS.org Thu Mar 11 13:32:47 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Thu, 11 Mar 1999 07:32:47 -0600 Subject: [Zope] FW: [Zope] Converting Whitespaces Message-ID: Once again I forgot to cc the list. Sorry. ---------- From: Shaw, Howard Sent: Thursday, March 11, 1999 7:32 AM To: 'Alexander Schad' Subject: RE: [Zope] Converting Whitespaces Something in an external method similar to this should do the job. from string import split, join def stringtounderscore(str): return join(split(str," "),"_"); which is then called from your page as Alternatively, if this is something you only need occasionally, you can code it directly in DTML... Both of these are untested, but I have tested the join/split command in python directly: >>> join(split("this is a test string"," "),"_") 'this_is_a_test_string' >>> ---------- From: Alexander Schad [SMTP:ags@beehive.de] Sent: Thursday, March 11, 1999 6:29 AM To: zope@zope.org Subject: [Zope] Converting Whitespaces Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" OK - I think I get it, but how do I "convert" a string to a reference to an object, so that I can call properties associated with the object (DTML document). This should be possible, isn't it??? Best regards Wiebe Kunst >At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > >> >> >>I wrote this, and it worked fine: >> >> >> >>I found a way, but I don't understand why the first syntax worked fine with >>Folders and fails with DTML Documents. If anyone would like to clarify the >>semantic difference between _['sub-document'] and >>_.getitem('sub-document'), I would be even happier. > >The answer is in both the ZDP's FAQ and the DTML Manager's Guide. > >_['foo'] "renders" foo according to DTML rules. This process mostly >consists of calling DTML and other callable objects. > >_.getitem('foo') simply returns foo as found in the DTML namespace. > >The reason you were having problems is that _['sub-document'] renders the >document to a string. Naturally strings don't have properties. Hence the >error you got from Zope, "'string' object has no attribute 'title'". > >Make sense? > >-Amos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:14:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:14:27 -0500 (EST) Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Alexander Schad wrote: > I know there is a way to convert underscores to spaces (spacify) but i > need it the other way around is. There a function to convert spaces to > underscores and if not how can i do it elseway? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:26:11 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:26:11 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <000001be6bc9$789ff520$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > OK - I think I get it, but how do I "convert" a string to a reference to an > object, so that I can call properties associated with the object (DTML > document). This should be possible, isn't it??? > >_.getitem('foo') simply returns foo as found in the DTML namespace. > > Wiebe You can use something like: (Is 0 the default?) _.getitem('foo',0) returns a reference to the object with id foo. Pavlos From phd@sun.med.ru Thu Mar 11 14:28:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 17:28:58 +0300 (MSK) Subject: [Zope] non-External Methods Message-ID: Hello! In ExternalMethods.html I found: "ernal Methods operate just like normal methods". But what are "normal" methods? The only thing I know is DTML Scripts. Are there other? Could I put Python code into Object Database? Should I? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phil@media-1.ml.uwcm.ac.uk Thu Mar 11 14:50:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 11 Mar 1999 14:50:07 -0000 Subject: [Zope] Apache Authorization Message-ID: <006e01be6bce$749a5920$5c773fc1@media1> Turn on ExecCGI, you do need it ! ----- Original Message ----- From: Milos Prudek To: Sebastian Luehnsdorf Cc: Sent: Thursday, March 11, 1999 1:16 PM Subject: Re: [Zope] Apache Authorization >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > >------------ >Milos Prudek > >On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > >> No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI >> option? And did you remember to turn the RewriteEngine on? > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" Thanks for a very fast reply, however it doesn't work. I'm still getting: Error value: 'string' object has no attribute 'title'. This is what I'm trying to do: A DTML document (index_html) has a property art1 which has an ID for another DTML document as value (type: string). In index_html I use: which renders the article. I can of course use in the actual article, but I rather don't. So I'm still banging my head in the wall after hours of trying to accomplish this. Can it be a bug with DTML documents?? Best regards Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> OK - I think I get it, but how do I "convert" a string to a reference to an >> object, so that I can call properties associated with the object (DTML >> document). This should be possible, isn't it??? > >> >_.getitem('foo') simply returns foo as found in the DTML namespace. >> > > >Wiebe > >You can use something like: > > (Is 0 the default?) > >_.getitem('foo',0) returns a reference to the object with id foo. > >Pavlos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From M.Faassen@vet.uu.nl Thu Mar 11 15:00:45 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:00:45 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > In ExternalMethods.html I found: "ernal Methods operate just like normal > methods". But what are "normal" methods? The only thing I know is DTML > Scripts. Are there other? Could I put Python code into Object Database? > Should I? I think that DTML Methods (or Documents?) are meant. They are like methods to the folder objects that Zope publishes. Look at: http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I want your subfolder 'bar' (this could be seen as using a method on foo to request 'bar'), and then I want to view 'doc' (which is, let's say, a DTML method) in bar. 'doc' in that case is a method of the bar object, which, when called, returns HTML code (to the browser). An *external* method is a method which comes from outside the Zope object database (though it's loaded into it, and behaves just like a normal internal method). If all this talk turns out to be correct (somebody tell me or send corrections), then I can turn this into a FAQ entry. If anybody else feels like writing this up in a nice way for the FAQ (Oleg?) that'd even be better. Just send your contributions to the ZDP list. Regards, Martijn From phd@sun.med.ru Thu Mar 11 15:08:45 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:08:45 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Message-ID: Hi! That is, there are DTML Scripts and External Methods. Python code is used in External Methods and Products, but never goes into Object Database. On Thu, 11 Mar 1999, Martijn Faassen wrote: > > In ExternalMethods.html I found: "ernal Methods operate just like normal > > methods". But what are "normal" methods? The only thing I know is DTML > > Scripts. Are there other? Could I put Python code into Object Database? > > Should I? > > I think that DTML Methods (or Documents?) are meant. They are like > methods to the folder objects that Zope publishes. Look at: > http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I > want your subfolder 'bar' (this could be seen as using a method on foo > to request 'bar'), and then I want to view 'doc' (which is, let's say, a > DTML method) in bar. 'doc' in that case is a method of the bar object, > which, when called, returns HTML code (to the browser). > > An *external* method is a method which comes from outside the Zope > object database (though it's loaded into it, and behaves just like a > normal internal method). > > If all this talk turns out to be correct (somebody tell me or send > corrections), then I can turn this into a FAQ entry. If anybody else > feels like writing this up in a nice way for the FAQ (Oleg?) that'd even > be better. Just send your contributions to the ZDP list. > > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From M.Faassen@vet.uu.nl Thu Mar 11 15:14:57 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:14:57 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hi! > > That is, there are DTML Scripts and External Methods. Python code is > used in External Methods and Products, but never goes into Object Database. I think it's true Product python code doesn't go into the Object Database, but I'm unclear about what happens with External Method python code. You need press the 'edit' button for an external method in Zope each time you changed something in it and want it updated. This would imply Python code can indeed be part of the Object database, right? Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 11 15:17:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:17:28 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> Message-ID: <36E7DE88.344745B3@pop.vet.uu.nl> Phil Harris wrote: > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a FAQ on this one? (I think I heard the Digicool folks are working on some FAQ document on Apache with Zope too, what's the status on this?). Regards, Martijn From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:28:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:28:52 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <001b01be6bd0$2188dde0$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > A DTML document (index_html) has a property art1 which has an ID for another > DTML document as value (type: string). In index_html I use: which renders the article. I can of course use I haven't tried it myself but is this what you tried? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:40:07 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:40:07 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Actually not. For security reasons the code of an External method does not reside in the Object Database but in the filesystem. When you press the 'edit' button the code is read and evaluated and it is the evaluated code that is stored in the Object Database. There was a thread about whether the source code should be included in the Object Database but I think thge Digital Creators were not convinced. Pavlos From phd@sun.med.ru Thu Mar 11 15:41:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:41:22 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? May be... Thanks for replaying. > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From raver@box.dust.za.net Thu Mar 11 15:51:26 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 16:51:26 +0100 Subject: [Zope] Passing forms data to external python methods Message-ID: <19990311165126.A577@RaVER.duck.org> --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=arg-mail Hi! I have a form here wich should submit 5 values on to an external python method (as 5 arguments to a function). Now - one value from form to function is no problem - more then one is. Questions arise.... How are more than 1 value submitted from a form? How can I get those values passed onto an external method, and have the values assigned to the functions argument? Help is much appreciated! Sture --ZPt4rx8FFjLCG7dd-- From mj@antraciet.nl Thu Mar 11 15:52:20 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 11 Mar 1999 16:52:20 +0100 Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> References: Message-ID: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> At 16:14 11/03/99 , Martijn Faassen wrote: >Oleg Broytmann wrote: >> >> Hi! >> >> That is, there are DTML Scripts and External Methods. Python code is >> used in External Methods and Products, but never goes into Object Database. > >I think it's true Product python code doesn't go into the Object >Database, but I'm unclear about what happens with External Method python >code. You need press the 'edit' button for an external method in Zope >each time you changed something in it and want it updated. This would >imply Python code can indeed be part of the Object database, right? > No, it forces Python to recompile the code. The code itself is NOT stored int the object database. Only instance data is stored in the object database, no code is. Zope classes are said to change all this, aren't they, DC? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 11 15:52:40 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:52:40 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > > imply Python code can indeed be part of the Object database, right? > > Actually not. For security reasons the code of an External method does > not reside in the Object Database but in the filesystem. When you press > the 'edit' button the code is read and evaluated and it is the evaluated What is "evaluated"? Compiled? > code that is stored in the Object Database. There was a thread about > whether the source code should be included in the Object Database but I I watched the thread and did understand the security implications. > think thge Digital Creators were not convinced. > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffrey@Digicool.com Thu Mar 11 15:57:47 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 10:57:47 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111557.HAA09410@zope.codeit.com> >From: Martijn Faassen > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Pressing the 'edit' button "reloads" that particular External Method code into the system. It's not stored in the database at all - the External Method object you add/edit through the Zope management screens is primarily a pointer/wrapper to a method in a module in the Extensions directory. The Edit button in essence acts similar to the reload(module) function in Python. Basically, Zope (and Python) don't have a way of knowing the code in a module has changed unless it's explicitly reloaded, which is a good thing. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 16:07:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 11:07:22 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Oleg Broytmann wrote: > > What is "evaluated"? Compiled? > > > code that is stored in the Object Database. There was a thread about > > whether the source code should be included in the Object Database but I > > I watched the thread and did understand the security implications. > Well this is how I understood the process. Basically the code is read and exec-ed and the the func_code func_code.co_varnames are extracted. Then they apply all the clever tricks to turn the function into a valid Zope method, by (I assume) creating a Zope method and replacing its func_code and the associated func_defaults and arguments with the ones extracted from the external function. The relevant code can be found in Zope/lib/python/App/Extensions.py and Zope/lib/python/Products/ExternalMethod/ExternalMethod.py Pavlos From phd@sun.med.ru Thu Mar 11 16:11:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 19:11:58 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: Hi! Thank you! On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > Well this is how I understood the process. > > Basically the code is read and exec-ed and the the func_code > func_code.co_varnames are extracted. Then they apply all the clever tricks > to turn the function into a valid Zope method, by (I assume) creating a > Zope method and replacing its func_code and the associated func_defaults > and arguments with the ones extracted from the external function. > > The relevant code can be found in > Zope/lib/python/App/Extensions.py and > Zope/lib/python/Products/ExternalMethod/ExternalMethod.py > > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Wiebe Kunst" Yes I did, but... I finally found out by trying: This works like a dream. Thanks a lot again. Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> A DTML document (index_html) has a property art1 which has an ID for another >> DTML document as value (type: string). In index_html I use: which renders the article. I can of course use > >I haven't tried it myself but is this what you tried? > > > >Pavlos > > From jeffrey@Digicool.com Thu Mar 11 17:09:23 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:09:23 -0500 Subject: [Zope] pretty printable pages at zope.org Message-ID: <199903111709.JAA12826@zope.codeit.com> We now have sortof-pretty printable pages at Zope.org :). At the bottom of every page with the standard header/footer is a link "Printable Page" which links to the same page being viewed, but passes a value to standard_html_header/footer that is used to _not_ render the surround Zope layout (sidebar, navigation bar). For example, http://www.zope.org/Information/Zen/HTMLMethods?pp=1 .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From jeffrey@Digicool.com Thu Mar 11 17:27:07 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:27:07 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111726.JAA13377@zope.codeit.com> >From: "Shaw, Howard" > Does this mean that when Zope is stopped and restarted, it is as if > every External Method has its 'edit' button repushed? If I change code > in an External Method, but don't manually reload it, it will be reloaded > the next time the Zope process restarts? This seems to conflict with > Christoforou's description... Perhaps DC can clarify? External Methods are (to the best of my knowledge) evaluated and their compiled code is kept in process memory (effectively cached) the first time the object (the External Method object pointing to a particular module/method) is activated. It is removed from process memory when the object is de-activated. This is kindof a tricky process and may be effectively cleaned up in the near future so I won't go into too many details here. An important thing to keep in mind is (again, this may change soon) that the compiled code is kept locally in each External Method Object. If you have two EM's in Zope pointing to the same code, you have to use the "Edit" button on _both_ External Method objects to effectively reload it. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From raver@box.dust.za.net Thu Mar 11 17:44:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 18:44:13 +0100 Subject: [Zope] Letting everyone view contents of a newly built site Message-ID: <19990311184413.A1175@RaVER.duck.org> Hi! Just made a small test-site, and followed the Zope magager guide to how to let anyone view my newly made site, but thisg doesn't work. The doc say that by default everyone should have access to view the contents of a site made by zope, but here the authorization/authentication dialogue pops up whenever someone try to access the site. Cancelling username/passwd just ends in failure. Why ? I'm using apache as webserver for zope and has made it so that apache handles the authentication bit, but still - shouldn't it let 'anonymous' trough? I've had a look at the security settings for both folders and files and they all let 'anonymous view'. Whats wrong? Sture From M.Faassen@vet.uu.nl Thu Mar 11 17:53:41 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 18:53:41 +0100 Subject: [Zope] non-External Methods References: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> Message-ID: <36E80325.B637033F@pop.vet.uu.nl> Martijn Pieters wrote: > Martijn Faassen wrote: > > You need press the 'edit' button for an external method in Zope > > each time you changed something in it and want it updated. This would > > imply Python code can indeed be part of the Object database, right? > > No, it forces Python to recompile the code. The code itself is NOT stored > int the object database. Only instance data is stored in the object > database, no code is. Zope classes are said to change all this, aren't > they, DC? Aah, of course, I see. Thanks! Martijn From M.Faassen@vet.uu.nl Thu Mar 11 18:09:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:09:54 +0100 Subject: [Zope] non-External Methods References: <199903111726.JAA13377@zope.codeit.com> Message-ID: <36E806F2.F20A4457@pop.vet.uu.nl> Jeffrey P Shell wrote: [enlightnening discussion on External Methods snipped] Thanks everybody, I added this to the FAQ. Regards, Martijn From kid@ans.net Thu Mar 11 18:49:39 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 13:49:39 -0500 Subject: [Zope] Letting everyone view contents of a newly built site In-Reply-To: <19990311184413.A1175@RaVER.duck.org>; from raver@box.dust.za.net on Thu, Mar 11, 1999 at 06:44:13PM +0100 References: <19990311184413.A1175@RaVER.duck.org> Message-ID: <19990311134939.A7002@throwingcopper.ans.net> Hello! On Thu, Mar 11, 1999 at 06:44:13PM +0100, raver@box.dust.za.net wrote: ,----- | Hi! | | Just made a small test-site, and followed the Zope magager guide to how to | let anyone view my newly made site, but thisg doesn't work. The doc say that | by default everyone should have access to view the contents of a site made | by zope, but here the authorization/authentication dialogue pops up whenever | someone try to access the site. Cancelling username/passwd just ends in | failure. Why ? I'm using apache as webserver for zope and has made it so that | apache handles the authentication bit, but still - shouldn't it let | 'anonymous' trough? I've had a look at the security settings for both | folders and files and they all let 'anonymous view'. Whats wrong? When you say that you made it so that Apache handles the authentication, I take that to mean you have created a .htaccess file? If that is the case, Apache will always prompt for the password and check it against your password file. If you use mod_rewrite to let Zope handle authentication, you will not see the password prompt for resources that are available to anonymous users. Kevin | | Sture | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From M.Faassen@vet.uu.nl Thu Mar 11 18:55:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:55:54 +0100 Subject: [Zope] Zope FAQ 0.2.1 and zdp.zope.org Message-ID: <36E811BA.23802256@pop.vet.uu.nl> Zopists, Zope-hackers, Zopineers and Zopistas, The ZDP is pleased to announce the creation of the zdp.zope.org website. Thanks to Brian Brown of BW Group for generously providing Zope space for the ZDP! Also thank you to the wonderful people at Digital Creations for their support. So go ahead and visit us at: http://zdp.zope.org Please note that zdp.zope.org is very much a work in progress, and so is the Zope FAQ (currently at revision 0.2.1). Still, we've come a long way in barely two weeks time! The FAQ appears to be already useful to some people, which is very good to know. The ZDP and the Zope FAQ eagerly await your contributions, by the way. So run and join the ZDP mailing list! My apologies to the people who may have heard this before. :) Regards, Martijn From da@ski.org Thu Mar 11 19:55:43 1999 From: da@ski.org (David Ascher) Date: Thu, 11 Mar 1999 11:55:43 -0800 (Pacific Standard Time) Subject: [Zope] Guestbook Message-ID: The guestbook product is broken in 1.10.2. I've 'fixed' it by removing both references to OFS.DocumentHandler (import and class inheritance). Now it's not broken, but it doesn't seem to work! Anytime I enter any data, it says 'data entered' but nothing ever shows up in the data view. Has anyone fixed this? BTW, I couldn't find an author name listed anywhere. --david From amos@aracnet.com Thu Mar 11 20:37:49 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 11 Mar 1999 12:37:49 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Hello Zopesters: Are you confused by the subtleties of DTML? Want the skinny on advanced DTML tricks and gotchas? Check out my advanced DTML HowTo: http://www.zope.org/Documentation/HowTo/DTML This document explains in detail the concepts behind advanced DTML tricks like indirect variable lookup, setting variables, calling sub-templates with different client objects, etc. Its main emphasis is on understanding how DTML uses a namespace stack to manage variable lookups. Enjoy and send me your feedback. -Amos P.S. Probably at least some of this material will be incorporated into the DTML User's Guide in the future. From M.Faassen@vet.uu.nl Thu Mar 11 21:12:13 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 22:12:13 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E831AD.FF7FE4F4@pop.vet.uu.nl> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Thanks! Although by now I knew most of what was mentioned (though it sure was nice seeing it all together in one place) this will be invaluable for people who want to get up to speed with DTML. Martijn From mbernstein@profitscape.net Thu Mar 11 21:28:31 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 11 Mar 1999 13:28:31 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E8357F.3DE329F@profitscape.net> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Excelent! This is so much clearer than isolated answers to 'how-do-I' questions. This gives me the context I've been missing! Thanks! Michael Bernstein. From crowland@psionic.com Thu Mar 11 22:23:29 1999 From: crowland@psionic.com (Craig H. Rowland) Date: Thu, 11 Mar 1999 16:23:29 -0600 (EST) Subject: [Zope] Newbie questions. Message-ID: Hello, I've looked through all the docs, FAQs and threads of the Zope list for some of these answers and haven't found a clear method described. I'll apologize now if the questions seem obvious, but I'm new to deploying Zope on a web server and need some initial Zope setup guidance. Question 1: Under Zope, what is the proper way to configure the website so users can simply go to http://www.example.com instead of: http://www.example.com/example http://www.example.com:9673/ etc. My understanding is that the mod_rewrite rules will have to come into effect here. Will I also need to do a re-direct of some type? I need some way to direct all URL requests so they are re-written to point to the correct Zope folder. The ideal for me is to have a series of folders in Zope that contain separate websites. The sites can be virtual hosted as needed (although right now I'm only running one site). I can't find a clear description of how to make this happen. Also I don't want to run a separate Zope process and proxy people to the port. I want to have everything running on port 80. I'll have to agree with other posters that a tutorial on the design of the actual Zope site with Zope would be very helpful as they are using a layout of html and hierarchy that is very similar to what I'm pursuing. In fact if someone could provide me with a description of the config they're using it would be a huge help. Question 2: Under .DTML construction of links is it generally considered "better" Zope practice to reference the entire URL or the Zope object hierarchy directly? Question 3: I don't want tracebacks to appear under any circumstances to the end users. I haven't tried anything to counter this yet, but wanted to know what some others have done. Would an approach to this be a try/except positioned in the standard_html_header and footer files? Ideally I would like to catch all exceptions and have it automatically mail the exceptions to the webmaster instead of showing the user (In fact I think this would be a good feature for the product). Question 4: Has anyone pursued a security audit of the Zope code? I've been considering doing this (not that I don't trust the Zope developers, it's just that I don't trust anyone) and would like to work with others if possible. Several of the sites I admin get hacked on very frequently and I'm a little nervous about replacing static web pages with no CGI running anywhere with the exact opposite end of the spectrum with Zope. :) I'm also going to prepare a document describing how to run Zope in a chroot() environment under UNIX to increase security. I'll let the list know when it is complete. Thank you for any responses, -- Craig From gdeering@csu.edu.au Thu Mar 11 23:50:02 1999 From: gdeering@csu.edu.au (Geoff Deering) Date: Fri, 12 Mar 1999 09:50:02 +1000 Subject: [Zope] Zope Benchmarks and Performance testing Message-ID: <000201be6c19$e16afd20$cd86a689@gdeering.mur.csu.edu.au> I'm new to this list. It seems to me that the www.zope.org is rather slow this week. Documents are taking far too long to be parsed. Pings seem reasonable, so I am expecting that the server may be receiving a lot of requests and being overloaded (maybe from the Web Review article). So I am just wondering what the specs of the system that the www.zope.org ISP is using. Also wondering about stress tests and benchmarks for the Zope system. (It must also depend on backend systems etc) Geoff Deering Web Programmer Charles Sturt University From kid@ans.net Thu Mar 11 23:31:54 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 18:31:54 -0500 Subject: [Zope] Problem setting security on a DTML Method Message-ID: <19990311183154.A7550@throwingcopper.ans.net> Hi, Using Zope 1.10.2 on Win95, I was trying to set permissions on a DTML Method. I was trying to set everything except "View" to the Acquired permissions. View was turned on only for "Manager" and "Editor". When I click the change button after setting things as I just described, I get the following Traceback: Traceback (innermost last): File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 877, in publish_module File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /beta/incoming/edit/manage_changePermissions) File C:\Program Files\WebSite\lib\python\AccessControl\Role.py, line 194, in manage_changePermissions (Object: edit) File C:\Program Files\WebSite\lib\python\AccessControl\Permission.py, line 166, in setRoles AttributeError: manage_addProperty If I'm not doing something foolish here, I'll submit this to the Collector. Thanks! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From jae@kavi.com Fri Mar 12 00:02:23 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 11 Mar 1999 16:02:23 -0800 (PST) Subject: [Zope] Newbie questions. In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Craig H. Rowland wrote: > Question 1: > > Under Zope, what is the proper way to configure the website so users can > simply go to http://www.example.com instead of: > > http://www.example.com/example > http://www.example.com:9673/ > etc. Use Apache's VirtualHost ability... Look here for more info: http://www.apache.org/docs/vhosts/ An example: # in httpd.conf # your ip NameVirtualHost 192.123.44.3 # your standard host.domain (this must come first) ServerName your.standard.name DocumentRoot /home/httpd/html # one or more extra virtual hosts ServerName your.zope.name DocumentRoot /home/httpd/html RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From andreww@netscape.com Fri Mar 12 00:35:21 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Thu, 11 Mar 1999 16:35:21 -0800 Subject: [Zope] Lots of questions: Message-ID: <36E86145.7BF0385B@netscape.com> 1) How do I get Zope to run as a service on my NT box so I dont have to stay logged in for it to run? 2) When I upgrad Zope will I have to re-build all of my applications? 3) Is there an IRC channel for ZOPE? IF not I would like to offer the idea of creating one on say the mozilla or slashdot servers 4) Is there anyone interested in working with me on a Zope/Dreamweaver cross-communication project? -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From andy@ictibroker.com Fri Mar 12 01:10:32 1999 From: andy@ictibroker.com (Andy Smith) Date: Thu, 11 Mar 1999 20:10:32 -0500 Subject: [Zope] Guestbook In-Reply-To: Message-ID: <000001be6c25$2026dc40$0363efa1@atlantis.nyr.cable.rcn.com> > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of David > Ascher > Sent: Thursday, March 11, 1999 2:56 PM > To: The Zope Group > Subject: [Zope] Guestbook > > > The guestbook product is broken in 1.10.2. I've 'fixed' it by removing > both references to OFS.DocumentHandler (import and class inheritance). > Now it's not broken, but it doesn't seem to work! Anytime I enter any > data, it says 'data entered' but nothing ever shows up in the data view. > Has anyone fixed this? > > BTW, I couldn't find an author name listed anywhere. > I'm the guilty party (!) I found this problem before but so far haven't found the fix.... here's what I originally posted to the list. I'd like to get this sorted out as I'm also working on a Souped (Zoped?) up version of Amos's poll product, which produces pie-chart gifs in response to the poll results, but it also broke in much the same manner going from 1.9 to 1.10. So any help on this matter would be much appreciated! Cheers, Andy. ============================================================== -----Original Message----- From: Andy Smith [mailto:andy.smith@iname.com] Sent: Friday, February 19, 1999 2:29 PM To: Phil Harris; zope@zope.org Subject: RE: [Zope] Guestbook Product I get the same thing :( Hmm.. looks like DocumentHandler no longer exists. I've taken out DocumentHandler from the Guestbook, to mimick the change that has been made to 'Folder' going from 1.9->1.10. When doing the guestbook, I kept making sideways glances to Folder.py to see how it was done ;) The book no longer crashes but I'm getting some other wierdness. The guestbook is a folderish product which contains two documents that the user can add to change the appearance of the guestbook. They're added by the following lines in the 'add' method ... # Add a Document used to view previous entries fileName = os.path.join(prefix,'index.dtml') index2 = open(fileName,'r').read() i = DTMLMethod(index2,__name__='index_html') print "i is %s" % i.meta_type i.title='Change me to determine how entries are viewed' self._setObject('index_html',i) print "ObjectItems is %s" % list(self.objectItems()) The added objects no longer seem to be showing up in objectItems(). The debug statement, when run on 1.9 prints out the newly added object in the call to 'objectItems()', while on 1.10 it returns an empty list. Is this a side-effect of the removal of DocumentHandler? I thought that _setObject was being inherited from ObjectManager, so wouldn't be affected by the removal of DocumentHandler. Cheers, Andy. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil > Harris > Sent: Friday, February 19, 1999 8:46 AM > To: zope@zope.org > Subject: [Zope] Guestbook Product > > > Has anyone else noticed that the GuestBook Product no longer > works in 1.10? > > Is it just me or what? > > I get a traceback of > > Traceback (innermost last): > File "/usr/local/Zope-1.10.0pr1-src/lib/python/OFS/Application.py", line > 393, in import_products > product=__import__(pname, global_dict, global_dict, silly) > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/__init__.py", > line 7, in ? > import GuestBook > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/Guest > Book.py", > line 7, in ? > from OFS.Document import DocumentHandler, Document > ImportError: cannot import name DocumentHandler > > Any Ideas? > > Phil > From wolf@searchbutton.com Fri Mar 12 04:16:44 1999 From: wolf@searchbutton.com (Wolf Logan) Date: Thu, 11 Mar 1999 20:16:44 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <810F7CEE7B5FD211B68A00400541C762071804@orion.searchbutton.com> i was reading and enjoying the guide when i came across this line: "at different points while rending a DTML document..." i know at times *i've* wanted to rend a DTML document, but i didn't realize that zope did it too. :) > -----Original Message----- > From: Amos Latteier [SMTP:amos@aracnet.com] > Sent: Thursday, March 11, 1999 12:38 PM > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML > From chsrinfo@guetali.fr Fri Mar 12 05:36:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 09:36:36 +0400 Subject: [Zope] Apache Authorization Message-ID: <009401be6c51$67cea7e0$147800a0@pc-pi0> >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > Well, under RedHat 5.2, mod_rewrite is a DSO, and is activated in the *middle* of the httpd.conf. I had the same problem. The rewrite rules put a the top of the file have no effect because they occur *before* mod_rewrite is activated. I had to put the rewrite rules a the end of the file. I works now. I don't know if this will solve your problem, but, just in case... Regards, Jephte CLAIN Service Informatique CHSR From chsrinfo@guetali.fr Fri Mar 12 07:55:17 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 11:55:17 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <00a401be6c5d$caec6180$147800a0@pc-pi0> Hello, Correct me if i'm wrong: one has got to have "access content informations" permission to be able to write: right? I've been bitten with that, and once i gave "access content informations" to the Anonymous User, my problem went away. Also, before I submit this to the Collector, is it normal that the "use mailhost services" doesn't appear in the security tab of the folders? Each product has its permissions that are listed, but nothing with the mailhost object. I had to change it directly in the mailhost object. If it's normal, it means that i can't give global permission for mailhost objects??? What confuse me, however, is that the mailhost object claims to "acquire" permission settings from its parents, but nowhere in its parents i can define the permissions. Regards, Jephte CLAIN Service Informatique CHSR From jim.bickford@flinders.edu.au Fri Mar 12 08:52:47 1999 From: jim.bickford@flinders.edu.au (Jim Bickford) Date: Fri, 12 Mar 1999 18:22:47 +0930 Subject: [Zope] Fsimport problems Message-ID: <36E8D5DF.CD3009CB@flinders.edu.au> Hi... I'm having no luck importing an existing file tree using fsimport with Zope-1.10.2 with pcgi Apache... it seemed to work well under 1.9 ... but then I was also using ZopeHttpServer Could that be the problem or something I have done.. Thanks guys for a great system... Cheers JimB This is the dump: Sorry, an error occurred. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Bio/fsimport) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/home/jimb/AAA-work/bio.www/body', form: fsdir: '/home/jimb/AAA-work/bio.www/body' environ: DOCUMENT_ROOT: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs' HTTP_ACCEPT_ENCODING: 'gzip' SCRIPT_FILENAME: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' PCGI_NAME: 'Main' PCGI_MODULE_PATH: '/usr/local/Zope-1.10.2-linux2-x86/lib/python/Main.py' SERVER_PORT: '9673' PATH_TRANSLATED: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs/Bio/fsimport' REMOTE_ADDR: '129.96.230.155' SCRIPT_NAME: '/Zope' PCGI_EXE: '/usr/local/Zope-1.10.2-linux2-x86/bin/python' HTTP_ACCEPT_LANGUAGE: 'en,de,af' PCGI_PUBLISHER: '/usr/local/Zope-1.10.2-linux2-x86/pcgi/pcgi_publisher.py' GATEWAY_INTERFACE: 'CGI/1.1' SERVER_NAME: 'daphne.bio.flinders.edu.au' HTTP_CONNECTION: 'Keep-Alive' HTTP_USER_AGENT: 'Mozilla/4.5 [en] (WinNT; I)' HTTP_ACCEPT_CHARSET: 'iso-8859-1,*,utf-8' HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*' REQUEST_URI: '/Zope/Bio/fsimport?fsdir=/home/jimb/AAA-work/bio.www/body' PCGI_INFO_FILE: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' HTTP_COOKIE: 'tree-s="eJyLjjaMjQUABOIBog"; dtpref_rows="55"; dtpref_cols="100"' PATH: '/sbin:/usr/sbin:/bin:/usr/bin' QUERY_STRING: 'fsdir=/home/jimb/AAA-work/bio.www/body' SERVER_PROTOCOL: 'HTTP/1.0' HTTP_HOST: 'daphne.bio.flinders.edu.au:9673' SCRIPT_URL: '/Zope/Bio/fsimport' REMOTE_PORT: '1931' PCGI_PID_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.pid' SERVER_SIGNATURE: '' SCRIPT_URI: 'http://daphne.bio.flinders.edu.au:9673/Zope/Bio/fsimport' PCGI_SOCKET_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.soc' SERVER_ADMIN: '[no address given]' SERVER_SOFTWARE: 'Apache/1.3.4 (Unix)' PYTHONHOME: '/usr/local/Zope-1.10.2-linux2-x86' PCGI_DISPLAY_ERRORS: '1' PATH_INFO: '/Bio/fsimport' BOBO_REALM: 'Zope' BOBO_DEBUG_MODE: '1' HTTP_PRAGMA: 'no-cache' REQUEST_METHOD: 'GET' PCGI_ERROR_LOG: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.log' ), {}, (None,))) TypeError: read-only buffer, class -- --------------------------------------------------------------------- Jim.Bickford@flinders.edu.au Biological Sci Flinders University 61 8 8201 3179(v) 61 8 8201 3015(f) South Australia 5042 --------------------------------------------------------------------- From tallard@sagem.fr Fri Mar 12 08:58:21 1999 From: tallard@sagem.fr (Stephane Tallard) Date: Fri, 12 Mar 1999 09:58:21 +0100 Subject: [Zope] PSFS or DTML Message-ID: <36E8D72D.D17C66B8@sagem.fr> Il s'agit d'un message multivolet au format MIME. --------------46BAC34F26042FC3E496775C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all , We try to use DocumentTemplate not for HTML dynamic generation but for C++ generation. For convenience, and because we are familiar with Python we intend to use the Alternate Python String Format Syntax. The generation code is beautiful compared to our previous output.write("blah blah.... ") instructions. Reading the docs, looking at the Zope site, this behaviour doesn't seem to be shared by a lot of zope users. Moreover the Alternate Python String Format Syntax is poorly documented, and DTML features seems to be usable but the way they can be used seem very strange. Basically our needs are to use conditional structures, iterative structures and to call methods. The last point seems to be the hardest one. The following code shows a way to call python methods in python strings but 3 persons during half a day have been necessary to find it out. I suppose you can imagine my questions : Is there a natural and convenient way to find out PSFS expressions going from their DTML equivalent ? Is there a complete documentation on PSFS syntax ? Are the features of DTML and PSFS identical ? And the most important : Do you encourage us to keep on using PSFS instead of DTML ? Thank for your help Stephane my code ================================= import DocumentTemplate ########################################## class attr: def __init__(self,att): self.att = att def get_att(self): return self.att def get_num(self): return len(self.att) ########################################## l__list = [attr('aa'),attr('bb'),attr('cc')] l_str = DocumentTemplate.String(""" %(l_item fmt=get_att)s %(l_item fmt=get_num)3d %(in l_list)[ POUETPOUET %(sequence-var-get_att)s %(in)] """) dict = {'l_item':l__list[1], 'l_list':l__list} print l_str(None,dict) --------------46BAC34F26042FC3E496775C Content-Type: text/x-vcard; charset=us-ascii; name="tallard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Stephane Tallard Content-Disposition: attachment; filename="tallard.vcf" begin:vcard n:;Stephane Tallard x-mozilla-html:FALSE org:Softeam version:2.1 email;internet:tallard@urd24.sagem.fr x-mozilla-cpt:;0 tel;work:01 34 30 57 89 fn:Stephane Tallard end:vcard --------------46BAC34F26042FC3E496775C-- From tony.mcdonald@ncl.ac.uk Fri Mar 12 08:45:21 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 08:45:21 +0000 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: One more voice shouting "thanks!". Just what I needed, this misty Friday morning. tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Armin.Tschammer@oi42.kwu.siemens.de Fri Mar 12 09:13:11 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Fri, 12 Mar 1999 10:13:11 +0100 Subject: [Zope] Newbie dtml question ( very simple ) Message-ID: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Hi, I would like to do things like that: XY.py : d = {} d['x1']=1 d['x2']=2 X = DocumentTemplate.HTMLFile('X3.dtml') string = X(d) WRONG: X3.dtml : Some Stuff More Stuff Other Stuff How does the right X3.dtml file look like ? Thanks, Armin From prudek@sol.cz Fri Mar 12 09:14:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 12 Mar 1999 10:14:40 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> <36E7DE88.344745B3@pop.vet.uu.nl> Message-ID: <36E8DB00.F257932A@sol.cz> > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a > FAQ on this one? (I think I heard the Digicool folks are working on some Well you were both right. I have turned on ExecCGI for my standard cgi-bin directory, where I placed a copy of Zope.cgi. It is NOT neccessary to add statement for /usr/local/zope/ (I thought it was neccessary... so I'm writing it here for the upcoming FAQ). Also I thought that I should use http://www.domain.com/cgi-bin/Zope.cgi address, which brings the introductory screen (that fooled me) but does not allow authorization. The correct address is of course http://www.domain.com/Zope, since that's what the rewrite rule is about. Thanks to all who helped me! -- Milos Prudek From ron@rotflol.cx Fri Mar 12 11:19:24 1999 From: ron@rotflol.cx (ron@rotflol.cx) Date: Fri, 12 Mar 1999 12:19:24 +0100 Subject: [Zope] Tree Tag & SQL Message-ID: <199903121119.MAA31716@heaven.rotflol.cx> I am trying to implemented a directory service using the tree tag where the info from several tables of a database. A simplified outline: +Locations +Offices +People +Phones Tel Fax +Addresses Problem: how to have the tree tag use a different SQL method for each level WITHOUT resorting to external methods, because the directory should be maintainable by mere mortals, not Python or SQL gods. -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From Paul@digicool.com Fri Mar 12 12:18:46 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 07:18:46 -0500 Subject: [Zope] Tree Tag & SQL Message-ID: <613145F79272D211914B0020AFF6401907BB49@GANDALF> Ron wrote: > Problem: how to have the tree tag use a different SQL method > for each level > WITHOUT resorting to external methods, because the directory > should be > maintainable by mere mortals, not Python or SQL gods. Hi Ron. Just a guess, but how about having the tree tag pass in the the current level as an argument to the same SQL method, then have the SQL method adapt itself based on the argument? Remember that an SQL method can embed logic and act like an object using DTML. For instance: select ... select ... etc. --Paul From phd@sun.med.ru Fri Mar 12 12:09:21 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 12 Mar 1999 15:09:21 +0300 (MSK) Subject: [Zope] Zope.cgi -> mod_zope Message-ID: Hello! Is there any plan to make complex "Apache + Zope" even more efficient by making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Paul@digicool.com Fri Mar 12 13:30:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 08:30:47 -0500 Subject: [Zope] Lots of questions: Message-ID: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Andrew "Zopeweaver" Wooldridge wrote: > 1) How do I get Zope to run as a service on my NT box so I > dont have to > stay logged in for it to run? The installer for the Zope NT binary asks you if you want to run as a service -- in fact, that's the default. Take a look at the file "doc/INSTALL.txt", under Installation on Windows, for more information. > 2) When I upgrad Zope will I have to re-build all of my applications? Unless we do something wrong, nope. > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > idea of creating one on say the mozilla or slashdot servers I'm not sure if the Zope universe is big enough yet for that. I rememer Guido doing this for Python about a year ago and nobody showed up. :^) Perhaps if there were coordinated events? > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > cross-communication project? I think the answer will certainly be yes. Go to: http://www.egroups.com/list/zope/ and do a search for Dreamweaver. There are about 18 hits. --Paul From mj@antraciet.nl Fri Mar 12 13:58:00 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 12 Mar 1999 14:58:00 +0100 Subject: [Zope] Zope.cgi -> mod_zope Message-ID: <4.1.19990312145716.00bf3210@lisp.atmm.nl> Whoops, here is a copy for the list as well... (I forgot to 'reply-all', *smirk*) At 13:09 12/03/99 , you wrote: >Hello! > > Is there any plan to make complex "Apache + Zope" even more efficient by >making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? > I do hope there is. If implemented like the Apache JServ module (http://java.apache.org/) it should solve a lot of problems for everyone, adding performance to boot. JServ is in effect a separate process (like Zope) that receives it's request via the Apache server, with the help of a module, that translates the requests into socket calls. If someone modifies the module that comes with JServ to call the Zope process instead of the JServ process..... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 12 14:00:07 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 14:00:07 +0000 Subject: [Zope] Getting slashdot to work... Message-ID: HI all, In my quest to figure out how Zope works, I'm starting with ExtrenalMethods. I've moved slashdot.py into Extensions and set up an external method (id: get_headlines, funstion name: get_headlines, python module: slashdot). My 'calling' DTML is a method (slashdot_headlines) with the following;

    trying 'view' on this method gives the following; ... I *did* have a problem with using a proxy, but got around that by adding this line to slashdot.py (just before the urllib.urlopen() call). urllib.URLopener(proxies={'http': 'http://cache-box.you.domain:your_port'}) What am I doing wrong? many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From jeffbauer@bigfoot.com Fri Mar 12 13:57:26 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Fri, 12 Mar 1999 07:57:26 -0600 Subject: [Zope] Zope.cgi -> mod_zope References: Message-ID: <36E91D46.9DE0A239@rubic.com> Oleg Broytmann wrote: > Is there any plan to make complex "Apache + Zope" even > more efficient by making Zope.cgi a module (mod_zope, > let's name it, or mod_pcgi)? A mod_pcgi Apache module has been discussed. It would certainly be more efficient. One of the issues would be whether pcgi should get out of the process launch business, which would simplify a mod_pcgi and make it easier to debug. -Jeff Bauer From A.K.Heath@shu.ac.uk Fri Mar 12 14:41:16 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Fri, 12 Mar 1999 14:41:16 GMT Subject: [Zope] Create zope property from external method? Message-ID: <199903121441.OAA24954@teak.shu.ac.uk> I'm a zope newbie I have an external method in which I want to check whether a property within zope exists and if it doesn't exist to create it. How can I do this ? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From andreww@netscape.com Fri Mar 12 15:52:12 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 07:52:12 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9382C.DD2C695E@netscape.com> Paul Everitt wrote: > Andrew "Zopeweaver" Wooldridge wrote: > > 1) How do I get Zope to run as a service on my NT box so I > > dont have to > > stay logged in for it to run? > > The installer for the Zope NT binary asks you if you want to run as a > service -- in fact, that's the default. Take a look at the file > "doc/INSTALL.txt", under Installation on Windows, for more information. Ok, I'll check that out. My experience has been than I run it with start.bat and when I close that ms-dos window zope stops. > > > > 2) When I upgrad Zope will I have to re-build all of my applications? > > Unless we do something wrong, nope. > > > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > > idea of creating one on say the mozilla or slashdot servers > > I'm not sure if the Zope universe is big enough yet for that. I rememer > Guido doing this for Python about a year ago and nobody showed up. :^) > > Perhaps if there were coordinated events? > I think that now that zope is "out there " and is open source that you will find more people. Perhaps a news.zope.org newsgroup would be cool as well. From julian@zereau.net Fri Mar 12 16:41:40 1999 From: julian@zereau.net (julian@zereau.net) Date: Fri, 12 Mar 1999 16:41:40 -0000 (GMT) Subject: [Zope] please interpret Message-ID: "TypeError: read-only buffer, class" I keep getting this error, please can someone explain what typically causes it? --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Fri Mar 12 16:56:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 12 Mar 1999 11:56:52 -0500 (EST) Subject: [Zope] Create zope property from external method? In-Reply-To: <199903121441.OAA24954@teak.shu.ac.uk> Message-ID: On Fri, 12 Mar 1999, Andy Heath wrote: > I'm a zope newbie > > I have an external method in which I want to check whether a > property within zope exists and if it doesn't exist to create it. > > How can I do this ? > > Andy If your external method is called from DTML document 'foo' then something like this should do it (untested): def mymethod(self): if not self.hasProperty('myproperty'): self.manage_addProperty('myproperty','hello','string') BTW you can achieve the same effect from DTML Pavlos From jeffrey@Digicool.com Fri Mar 12 18:03:08 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 12 Mar 1999 13:03:08 -0500 Subject: [Zope] please interpret Message-ID: <199903121802.KAA23415@zope.codeit.com> >From: julian@zereau.net > > "TypeError: read-only buffer, class" > > I keep getting this error, please can someone explain what typically causes > it? This is a buglet in ExternalMethod where an exception has been raised and caught by ExternalMethod, and EM is looking at the values of the traceback for some special conditions. It's trying to do a string.lower() call on one of the values that in Python1.4 was always a string, but in Python1.5.x is an instance (in Python 1.5, standard exceptions became classes). This has been fixed and will be in the next release. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Fri Mar 12 19:56:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 11:56:16 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> <36E9382C.DD2C695E@netscape.com> Message-ID: <36E97160.E76D75F0@profitscape.net> Andrew Wooldridge wrote: > > I think that now that zope is "out there " and is open source that you will > find more people. > Perhaps a news.zope.org newsgroup would be cool as well. Welcome to the list Andrew! I'm glad you found my suggestions interesting enough to check Zope out. Regarding my last email, did you figure out how to do PUT and GET from DW yet? And do you know if Macromedia is going to add WebDAV support to DW? In case you missed it, I'd like to point you towards the Advanced DTML Howto: http://www.zope.org/Documentation/HowTo/DTML as that has more thorough information than the DTML guide I showed you before. I would also be interested in a newsgroup, as I am currently filtering the email into a folder and sorting it by thread, but a newsgroup would let me see the the same threaded view from home, as well. This would also have the effect of letting new users see the context of the current posts. Michael Bernstein. From FVilla@GestaltTechnology.com Fri Mar 12 20:45:52 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 12 Mar 1999 15:45:52 -0500 Subject: [Zope] IRC channel Message-ID: <36E97D00.26FB26F9@GestaltTechnology.com> Gentlemen, I am very pleased with Zope and in an effort to support it, I will create a channel called #zope under the EFnet. I am still learning about ZOpe, but I will try to help all I can. Also, I will be placing an infobot to provide lots of information on Zope. Drop by and pay a visit to #zope if you have some time... Cheers, Fredy Villa Gestalt Technology, LLC Fvilla@GestaltTechnology.com From jae@kavi.com Fri Mar 12 21:08:18 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 12 Mar 1999 13:08:18 -0800 (PST) Subject: [Zope] Access Control Advice Message-ID: Hello all, I am working on a Zope app, and would like to see if anyone has any tips for how I should handle access control in this situation... The site is a corporate organization site. It has many corporate members, each has an admin which has control over a subset of information kept in a relational database. I want to have just one role (comp_admin) for this. But each company can only have access to their company info. Thus I need to check that the admin belongs to that company. (there are also regular users who also have to login. they can view, but not modify) The users, passwords and roles are kept in the database too (UserDB). Each company has a unique id, and this is the primary keys in the DB. Each user is associated to the company using this id (a field in their table). Make sense? My current idea is: 1. Have a general main page which both users and admins login to. If they use the admin login, get their company id (comp_id) and create a link to the admin section using the magic of direct traversal (this way they can bookmark the admin page). Eg. admin section ('comp' is the zsql method, 1 is the comp_id, admin is the folder) Thus the comp_id of the company will be available, and I could: A. I could then (mabey?) use the comp_id in the UserDB query (in the admin folder) to only retrieve those people belonging to that company. OR (if I can't get to the comp_id from the UserDB query). B. I could then compare to the person's comp_id to the company's comp_id in each of the effect pages via a new standard_header. Thoughts? Better ways to do this? --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Fri Mar 12 21:30:22 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 12 Mar 1999 16:30:22 -0500 Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: >I know there is a way to convert underscores to spaces (spacify) but i >need it the other way around is. There a function to convert spaces to >underscores and if not how can i do it elseway? I haven't tryed this but on pg 10 of DTML Users Guide check out: maketrans(FROM,TO) and translate(S,TABLE[, DELS]) it seems to do character for character translations. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From kent@goathill.org Fri Mar 12 22:04:17 1999 From: kent@goathill.org (Kent Polk) Date: 12 Mar 1999 22:04:17 GMT Subject: [Zope] Tree Tag & SQL In-Reply-To: <199903121119.MAA31716@heaven.rotflol.cx> Message-ID: <921276256.763497@zoo-of-death.endicor.com> On 12 Mar 1999 05:55:00 -0600, ron@rotflol.cx wrote: >I am trying to implemented a directory service using the tree tag where the >info from several tables of a database. > >A simplified outline: > >+Locations > +Offices > +People > +Phones > Tel > Fax > +Addresses > >Problem: how to have the tree tag use a different SQL method for each level >WITHOUT resorting to external methods, because the directory should be >maintainable by mere mortals, not Python or SQL gods. Brian built a pretty cool way to hook SQL entries to particular folder trees for the PDMS. Each folder has a uniqueid which is stored in a sql table, along with the folder parent heirarchy, when an item is added to the SQL database. This allows each folder to easily identify which SQL entries belong directly to it and which SQL entries belong as children. This allows one to easily do things such as count the number of SQL items which are identified with a folder tree using SQL query syntax. Brian also provided dtml methods to move folders and their relationships around in the Zope heirarchy quite nicely. The mechanism holds quite a few SQL items in it and there has never been a need for a Python or SQL god to do any maintenance on the system at that level. However, it does use both SQL and External Methods. So, don't believe that just because something requires a fairly deep level of competence to create that it requires that same level of competence to maintain (me for example :^). That's simply one mark of a decent implementation. Kent From mbernstein@profitscape.net Sat Mar 13 00:12:28 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 16:12:28 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9AD6C.D3E15A56@profitscape.net> Paul Everitt wrote: > > Andrew "Zopeweaver" Wooldridge wrote: > > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > > cross-communication project? > > I think the answer will certainly be yes. Go to: > > http://www.egroups.com/list/zope/ > > and do a search for Dreamweaver. There are about 18 hits. I've been unable to log in to the egroups archive all day. Is there something wrong with their server? Michael Bernstein. From billr@coinet.com Sat Mar 13 02:26:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 12 Mar 1999 18:26:42 -0800 Subject: [Zope] sequence of numbers Message-ID: <9903121826.ZM7584@saab.coinet.com> This may be a newbie question, but I've loked thru the doc and didn't spot any obvious way to do this, short of an External Method. What I want to do is given a limit number, iterate over a sequence of DTML commands. This would be an obvious use for #in (which I'm using elsewhere for other things) except I don't have a sequence - just the number of items in the sequence, as it were. In psuedo-code, what I'm after is something like this: for (i=0; i < ; i++) { // some DTML/HTML code using "i" } Now if, given a #var, I could get a list - e.g.: --> list = [0, 1, 2, ... max_items] or [1, 2, ... max_items], it doesn't make much difference. then I could just use: // some stuff using Is there an easy way to do this? Is there *any* way to do it? -Bill Randle Central Oregon Internet billr@coinet.com From jkhoffman@usa.net Sat Mar 13 04:18:55 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Fri, 12 Mar 1999 23:18:55 -0500 (EST) Subject: [Zope] User Profiles? Message-ID: I am working on a web site for a local outdoors group. They have about 1,000 members and are growing fast, but their web site needs help. I had lunch with their leader today, and strongly advocated the use of Zope to redo their entire web site. He loved my ideas, and gave me the go ahead on the site. Now, my first question (I'm sure I'll have many) to the group is: How do I create user profiles? Each user of the system needs to have specific information associated with them including: full name, address, telephone numbers, a picture (gif or jpeg, easily uploadable by the user), their interests, a history of the events they've sponsored and/or attended, a buddy list (basically just a collection of other member ids), and so on. I have downloaded the UserDb product, and figure I might be able to extend it to support the extra columns I require. However, a big part of me wants to keep as much of this in Zope as I can. I like the idea of the objectstore, and don't necessarily like having to fudge SQL tables every time I add or remove an attribute from the profiles (not that I will be doing that, necessarily). What do those with a higher Zope Zen Rating than I suggest in this situation? I'm also going to be making an Events Calendar, which is connected up with all the User information (who's running the event, who's signed up to attend, etc.). Is all of this something that Tabula would be good for? If so, who do I have to sleep with to get it? :^) I am willing to write up a case study, testimonial, contribute any code I write back to the community, etc., whatever is requested. I just want to do a good job for these guys, making myself and Zope look good in the process. HELP! *grin* Jeff K. Hoffman From andreww@netscape.com Sat Mar 13 07:20:04 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:20:04 -0800 Subject: [Zope] extending dreamweaver into zope Message-ID: <36EA11A4.C9C0527E@netscape.com> I can see a number of things that DW will (I think) do to help out Zope - but there is one item in the way - FTP support There is no direct way for Dreamweaver to send pages back to Zope without either writing to a filesystem via a LAN or by using FTP (no webdav yet). So my question is this - when will we get ftp support in zope? (not just alpha). I am looking at the dtml spec right now and thinking about building drag-and-drop objects for DW that talk zope. One thing I need is for someone on the zope team or elsewhere to help me test these so that I get the syntax correct. Email me directly at andreww@netscape.com From andreww@netscape.com Sat Mar 13 07:21:30 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:21:30 -0800 Subject: [Zope] the HTML UI - can I help? Message-ID: <36EA11FA.E21D6A0D@netscape.com> I see a number of things that might help enhance the usability of the zope UI, how do I go about submitting those possible changes to the HTML code ? I could mock up a page with HTML and explain how it works... From rob.page@digicool.com Sat Mar 13 14:03:45 1999 From: rob.page@digicool.com (Rob Page) Date: Sat, 13 Mar 1999 09:03:45 -0500 Subject: [Zope] RE: [Zope-dev] De-Authentication / Logout Message-ID: <613145F79272D211914B0020AFF6401906919E@GANDALF> > It's always been my impression that unless Zope can be fitted with a > cookie-based-authentication system (vs. the current > basic-auth), there's > *no* way to force a "logout" because of the way the *browsers* handle > basic-auth. Recent notes about Lynx notwithstanding, I agree. It's extremely frustrating when debugging the security of an app! Zope _CAN_ use a cookie-based authentication scheme with the UserDB product. UserDB uses Database Adapter (e.g., Oracle) to connect to a store of user info (e.g., userid and password). I can imagine some motivated community member taking a look at the current incarnation of UserFolder and UserDB and cookie-ifying the UserFolder. --Rob From zope@zope.org Sat Mar 13 14:00:53 1999 From: zope@zope.org (Wade Leftwich) Date: Sat, 13 Mar 1999 09:00:53 -0500 Subject: [Zope] - XML-style DTML code In-Reply-To: <199902030028.TAA02197@albert.digicool.com> Message-ID: <199903131359.IAA06323@gem.lightlink.com> "Jeffrey P Shell" wrote, back on Feb 2: [snip] > The editing-in-HTML-editors will always be a problem with the current > syntax, in my opinion, because (real code here, and code i'm not at all > ashamed to have written): > > > > will give just about any editor a headache. Cyberstudio, at a minimum, > moves the comment tags outside of the
    When submitting the form, it displays me a new page (generated by Zope) asking me again the auteur parameter, as if the auteur variable wasn't passed to the Z SQL method :-( Someone posted a mail recently with an example use of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' text: INSERT INTO messages (auteur) ... When I try this, I get: Error, pg.error: server fatal error. Please report to your db administrator. SQL used: INSERT INTO messages (auteur) VALUES ('testing again', 'blahblahblah', 'now', 'f') Is there something specific to PostGreSQL ? (Using Zope 1.10.2, PostGreSQL 6.4.2, PyGreSQL-2.2, ZPyGreSQLDA 0.02) I looked in the Z SQL Method User's guide, but nothing is written about adding data to a DB :-( -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From A.K.Heath@shu.ac.uk Sat Mar 13 18:13:29 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Sat, 13 Mar 1999 18:13:29 GMT Subject: [Zope] object modification date - how ? Message-ID: <199903131813.SAA28032@teak.shu.ac.uk> I'm still a zope newbie Is there an easy way I can get a a modification date for an object (so I can do a "last modified on ...")? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From hannu@trust.ee Sat Mar 13 19:08:52 1999 From: hannu@trust.ee (Hannu Krosing) Date: Sat, 13 Mar 1999 21:08:52 +0200 Subject: [Zope] INSERT Syntax with Zope & ZPyGreSQLDA References: <87hfrp1js9.fsf@eurythro.savigny.stp> Message-ID: <36EAB7C4.8DD42BE@trust.ee> lstep@mail.dotcom.fr wrote: > > Hello, > > I'm trying to use PostGreSQL with Zope, but I'm having > problems using the SQL INSERT method in Z methods which > require parameters. > > For example, I make a Z SQL Method named 'foo'. > In it: > INSERT INTO messages > VALUES > (, > 'blahblahblah', 'now', 'f') > > I write the name auteur in the 'arguments' form. > > Next I create a DTML document with: > > Auteur:
    why no type=text ? > > > > When submitting the form, it displays me a new page > (generated by Zope) asking me again the auteur parameter, > as if the auteur variable wasn't passed to the Z SQL method :-( > > Someone posted a mail recently with an example use > of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' > text: INSERT INTO messages (auteur) ... > > When I try this, I get: > > Error, pg.error: server fatal error. Please report to your db administrator. A good to test your SQL is using psql. And upgrading to PyGreSQL 2.3 or later, which return proper sql messages > SQL used: > > INSERT INTO messages (auteur) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') This is definitely wrong ;( something like INSERT INTO messages (auteur,title,bookdate,any_good) VALUES ('testing again', 'blahblahblah', 'now', 'f') might have worked. You may also mean current_date or current_time instead of now or now() From eric.kidd@pobox.com Sat Mar 13 19:47:48 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Sat, 13 Mar 1999 14:47:48 -0500 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com>; from Bill Randle on Fri, Mar 12, 1999 at 06:26:42PM -0800 References: <9903121826.ZM7584@saab.coinet.com> Message-ID: <19990313144748.F30044@moebius.dartmouth.edu> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > This may be a newbie question, but I've loked thru the doc and didn't > spot any obvious way to do this, short of an External Method. I didn't find any other way, either. But here's an External Method you can use. --- begin loop_range.py --- LoopRangeError = 'LoopRangeError' # Name an exception class. loop_range_limit = 100 # Maximum allowable loop index. def loop_range(max): if max <= loop_range_limit: return range(max) else: raise LoopRangeError, max --- end --- Notice that it won't allow the "max" parameter to be bigger than 100. This prevents users from generating near-infinite amounts of HTML and freezing your server. You can edit this to any value you like, or even remove it if you trust all your DTML authors. Now, create an External method with the following properties: id: loop_range title: Loop Iteration Method method: loop_range file: loop_range To use this method in DTML, try the expr attribute of the #in construct: --- begin sample DTML ---

    Index:

    --- end --- > Is there an easy way to do this? Is there *any* way to do it? Yup. ;-) Zope has tons of power hiding under the hood, and a skilled Python programmer could make it do almost anything. Cheers, Eric From tseaver@palladion.com Sat Mar 13 19:48:14 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 13:48:14 -0600 Subject: [Zope] Cool! Attribution! References: <199903122000.MAA26389@zope.codeit.com> Message-ID: <36EAC0FE.AF740889@palladion.com> A quick plug for a "Powered by Zope" site I just saw: http://www.denarius.com/ -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From mj@antraciet.nl Sat Mar 13 06:41:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 07:41:41 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com> Message-ID: <4.1.19990313073352.00aa37b0@mail.atmm.nl> At 03:26 13-3-99 , Bill Randle wrote: >Now if, given a #var, I could get a list - e.g.: > --> list = [0, 1, 2, ... max_items] >or [1, 2, ... max_items], it doesn't make much difference. >then I could just use: > > // some stuff using > > >Is there an easy way to do this? Is there *any* way to do it? One way of doing this would be using an external method: def MyRange(iMax): return range(iMax) -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Sat Mar 13 20:06:42 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 21:06:42 +0100 Subject: [Zope] object modification date - how ? In-Reply-To: <199903131813.SAA28032@teak.shu.ac.uk> Message-ID: <4.1.19990313210503.00aaec60@mail.atmm.nl> At 19:13 13-3-99 , Andy Heath wrote: >I'm still a zope newbie > >Is there an easy way I can get a a modification date for an object >(so I can do a "last modified on ...")? > >Andy The property bobobase_modification_time gives you the last modification time. This is not in the docs, I gleaned it from Zope's source (it is used in amongst other places the document edit screen). This is a good item for the FAQ. Martijn Pieters. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Sat Mar 13 22:59:15 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 13 Mar 1999 23:59:15 +0100 Subject: [Zope] Structured text and lists Message-ID: <36EAEDC2.46997FE5@sol.cz> Can I make ordered/unordered lists using structured text, without doublespacing lines? When I write single spaced lines: - one - two - three it's not rendered as list. And when I write doublespaced lines, it's rendered as doublespaced list... -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 02:38:07 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sat, 13 Mar 1999 21:38:07 -0500 (EST) Subject: [Zope] Bug in sqlvar.py? Message-ID: Hello, everyone. I'm bustin' ass on my project for the outdoors group and ran into a problem with the #sqlvar command. At the top of the file, in the docstring, it says: For example, given the tag:: And, when I submit the query while leaving address2 blank I get: Invalid empty string value for address2 When reading the code, beginning on line 200 there is the else case which handles values of types other than int or float: else: v=str(v) if not v and t=='nb': raise ValueError, ( 'Invalid empty string value for %s' % name) v=md.getitem('sql_quote__',0)(v) #if find(v,"\'") >= 0: v=join(split(v,"\'"),"''") #v="'%s'" % v There is absolutely no check for the optional flag in this case as there are in the cases for int and float. Is this check supposed to be handled elsewhere in the code, and never make it here, or is this an oversight? I can patch it to fix the problem quite easily, but if this is not the preferred way of doing things I'd like to know (to avoid patching it every time a new Zope comes out.) I have two address lines, address1 and address2. I just want it to set address2 to null if the user does not fill it out. Is that too much to ask? :^) As I said, if I'm blatantly overlooking something, please let me know. If not, I'll be happy to submit a patch and/or report this in the collector. Thanks. Hope you all are having a good weekend! jkh From tseaver@palladion.com Sun Mar 14 04:29:45 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 22:29:45 -0600 Subject: [Zope] please interpret Message-ID: <36EB3B39.A630ED79@palladion.com> On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > >From: julian@zereau.net > > > > "TypeError: read-only buffer, class" > > > > I keep getting this error, please can someone explain what typically > > causes it? > > This is a buglet in ExternalMethod where an exception has been raised and > caught by ExternalMethod, and EM is looking at the values of the traceback > for some special conditions. It's trying to do a string.lower() call on > one of the values that in Python1.4 was always a string, but in Python1.5.x > is an instance (in Python 1.5, standard exceptions became classes). This > has been fixed and will be in the next release. Could you post the patch, please? This error message hits me about five ways from Sunday. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Sun Mar 14 04:58:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Sun, 14 Mar 1999 15:58:49 +1100 Subject: [Zope] please interpret In-Reply-To: Your message of "Sat, 13 Mar 1999 22:29:45 MDT." <36EB3B39.A630ED79@palladion.com> Message-ID: <199903140458.PAA15586@mbuna.arbhome.com.au> The following patch should do the magic thing: RCS file: ExternalMethod.py,v retrieving revision 1.1 diff ExternalMethod.py.dist ExternalMethod.py --- ExternalMethod.py.dist +++ ExternalMethod.py @@ -251,7 +251,7 @@ error_type=sys.exc_type error_value=sys.exc_value tb=sys.exc_traceback - if lower(error_type) in ('redirect',): + if lower(str(error_type)) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): It's not the way it's fixed in the new external method code, but it works for me, and should be enough to keep you going... Anthony. >>> Tres Seaver wrote > On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > > > >From: julian@zereau.net > > > > > > "TypeError: read-only buffer, class" > > > > > > I keep getting this error, please can someone explain what typically > > > causes it? > > > > This is a buglet in ExternalMethod where an exception has been raised and > > caught by ExternalMethod, and EM is looking at the values of the traceback > > for some special conditions. It's trying to do a string.lower() call on > > one of the values that in Python1.4 was always a string, but in Python1.5.x > > is an instance (in Python 1.5, standard exceptions became classes). This > > has been fixed and will be in the next release. > > Could you post the patch, please? This error message hits me about five ways > from Sunday. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) -- Anthony Baxter It's never to late to have a happy childhood. From TomJenkins@zentuit.com Sun Mar 14 05:14:03 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 00:14:03 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903140517.AAA01144@mail.digiweb.com> Hello all, First let me start by saying I've finally cleared time to play with zope. Its coming along nicely but I've hit a snag. The following snippet in a form: Staff using MySQL produces the following HTML: Staff Now unfortunately I believe the L is causing the insert to fail with an invalid integer. I specified user_id as integer unsigned zerofill auto_increment. Does anyone know why the 'L' is being return? TIA -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From mj@antraciet.nl Sun Mar 14 08:05:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sun, 14 Mar 1999 09:05:02 +0100 Subject: [Zope] MySQL & integer IDs In-Reply-To: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <4.1.19990314090101.00aaa680@mail.atmm.nl> At 06:14 14-3-99 , Tom Jenkins wrote: >Now unfortunately I believe the L is causing the insert to fail with an >invalid integer. I specified user_id as integer unsigned zerofill >auto_increment. Does anyone know why the 'L' is being return? > The L value is caused by a long integer to string conversion. You can get rid of the L by specifying a C format string, like so: Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From lstep@mail.dotcom.fr Sun Mar 14 10:17:30 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 14 Mar 1999 11:17:30 +0100 Subject: [Zope] 'Enter query parameters' In-Reply-To: Hannu Krosing's message of "Sat, 13 Mar 1999 21:08:52 +0200" References: <87hfrp1js9.fsf@eurythro.savigny.stp> <36EAB7C4.8DD42BE@trust.ee> Message-ID: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Hannu Krosing writes: > > Auteur:
    > > why no type=text ? Oops forgot it. Well it worked without it :-) > This is definitely wrong ;( > > something like > INSERT INTO messages (auteur,title,bookdate,any_good) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') Ow you're right. But this hasn't changed anything, it still ask me for the parameters after clicking on submit :-( In the HTML form, I replaced the action with '' where add_message is the Z SQL method. And it adds correctly the record to my Database, but displays 'This was not a query'. And, well, I don't think taht's the correct method to add records, by using the test method :-)) Is there anywhere an example of product adding some records to a database ? > might have worked. You may also mean current_date or current_time > instead of now or now() What's the difference between now and current_date / current_time I tried all of them, and they give exactly the same result (the good date :-) Thanks, Luc -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From anthony@interlink.com.au Sun Mar 14 12:32:36 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Sun, 14 Mar 1999 23:32:36 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) Message-ID: <199903141232.XAA17000@mbuna.arbhome.com.au> Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ I'm looking for opinions on the LDAP zope product I've been building. Right now, LDAP connections work, LDAP Methods work, but there's still a bit more to do. Right now, the following is unimplemented: In ZLDAPconn: . Anything other than simple_bind(who, passwd) for connecting to the LDAP server . meaningful doc strings In ZLDAPMethods: . Pluggable Brains . Result Caching . Limits on the number of results . Variable interpolation in the filters, and in the base DN . modify or add queries (only search is supported right now) . meaningful doc strings :) Other stuff: . UserLDAP is not finished yet (or released) - the primary issue is the storing of roles and domains. Right now this would have to be some non-standard LDAP attribute... but what should it be? It also probably needs modify and add added to ZLDAPMethods before being really useful. Things I'd like comments on: For ZLDAPconn: what other bind methods would you like to see? For ZLDAPMethods: how should add/modify/query be distinguished? Separate methods? I had planned to get variable interpolation working tonight, but decided I'd rather get an early night. Probably tomorrow evening, instead. Stuff I hope to get going in the next day or so: variable interpolation, pluggable brains. Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ It requires David Leonard's ldapmodule, from http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the ldapmodule works on other platforms (it's available in source, and also as a windows .pyd) it should work elsewhere, too. Anthony From prudek@sol.cz Sun Mar 14 14:56:37 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 15:56:37 +0100 Subject: [Zope] fsimport HowTo Message-ID: <36EBCE25.55F5743A@sol.cz> Trying to use fsimport.py module, I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /ppm/fsimport) File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/web/srvs-sol/www.sol.cz/ppm/index.htm', form: fsdir: '/web/srvs-sol/www.sol.cz/ppm/index.htm' [environ info omitted for brevity] ), {}, (None,))) TypeError: read-only buffer, class I put fsimport.py into /usr/local/zope/Extensions/ (I had to create Extensions dir), and added fsimport external method to a directory 'ppm', then I pointed my browser to http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index.htm, which probably is not the way to do it, is it? -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 15:51:48 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 10:51:48 -0500 (EST) Subject: [Zope] 'Enter query parameters' In-Reply-To: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Message-ID: On 14 Mar 1999 lstep@mail.dotcom.fr wrote: > In the HTML form, I replaced the action with > '' > > where add_message is the Z SQL method. And it adds correctly the > record to my Database, but displays 'This was not a query'. > And, well, I don't think taht's the correct method to add records, > by using the test method :-)) > > Is there anywhere an example of product adding some records to > a database ? Try something like: And then create a DTMLDocument or DTMLMethod called add_message_result like this:

    Success!

    Your message was added successfully! Thanks!

    The success message will only be shown if the query succeeds, because it is below the #call statement. Hope this helps! > Thanks, > Luc jkh From TomJenkins@zentuit.com Sun Mar 14 17:46:36 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 12:46:36 -0500 Subject: [Zope] MySQL & integer IDs In-Reply-To: <4.1.19990314090101.00aaa680@mail.atmm.nl> References: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <199903141749.MAA15778@mail.digiweb.com> > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Sun Mar 14 17:55:13 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 17:55:13 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903141755.RAA06010@cheviot.ncl.ac.uk> > I put fsimport.py into /usr/local/zope/Extensions/ (I had to create > Extensions dir), and added fsimport external method to a directory > 'ppm', then I pointed my browser to > http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index .htm, > which probably is not the way to do it, is it? > > -- > Milos Prudek The docs seem to imply that you provide fsdir with a *directory* ie fsdir=/web/srvs-sol/www.so.cz/ppm http://www.zop.org/Documentation/HowTo/FSimport for more details. tone From prudek@sol.cz Sun Mar 14 18:44:09 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 19:44:09 +0100 Subject: [Zope] fsimport HowTo References: <199903141755.RAA06010@cheviot.ncl.ac.uk> Message-ID: <36EC0379.CA7E445B@sol.cz> > The docs seem to imply that you provide fsdir with a *directory* > ie fsdir=/web/srvs-sol/www.so.cz/ppm I've tried that too. Didn't help. What could be wrong? -- Milos Prudek From ShawH@STHS.org Sun Mar 14 19:25:05 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Sun, 14 Mar 1999 13:25:05 -0600 Subject: [Zope] ZAP Message-ID: How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer. BTW, running ZopeHTTPServer multi-threaded worked well for about 15 minutes. Then suddenly certain pages wouldn't load. I stopped and restarted the server, but the pages still wouldn't load. I also noticed that if I stopped Netscape and hit reload, it would cause several new ZopeHTTPServer instances to appear, and doing so again would continue to create new instances which never seemed to dissappear. Are these locking the items they are downloading? The behavior I saw seemed consonant with it locking the item it was downloading, then failing to recognize the netscape had disconnected, and thus never removed its lock. When I restarted it single-threaded, all the pages came up without a problem. I would really like to move to Zap, but I can't afford at this point to have the URL of the page change. How can I make a Zope pcgi accessible as the root of a Zap install? Please help. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From prudek@sol.cz Sun Mar 14 19:57:08 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 20:57:08 +0100 Subject: [Zope] and it did not work, but when I use it works nicely... How do I do this with #var ? -- Milos Prudek From tony.mcdonald@ncl.ac.uk Sun Mar 14 20:11:37 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 20:11:37 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903142011.UAA19578@cheviot.ncl.ac.uk> >> The docs seem to imply that you provide fsdir with a *directory* >> ie fsdir=/web/srvs-sol/www.so.cz/ppm > > I've tried that too. Didn't help. What could be wrong? > > -- I've imported a directory using fsimport and it worked for me. I can only suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Even more clutching here - did you leave the trailing slash off the fsdir attribute? hth tone From pavlos@gaaros.msrc.sunysb.edu Sun Mar 14 20:23:25 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sun, 14 Mar 1999 15:23:25 -0500 (EST) Subject: [Zope] and it did not should do it but your second method I think is better. > work, but when I use it works nicely... How do I do > this with #var ? Pavlos From tseaver@palladion.com Sun Mar 14 20:50:29 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sun, 14 Mar 1999 14:50:29 -0600 Subject: [Zope] Structured text and lists Message-ID: <36EC2115.8511A0E2@palladion.com> Milos Prudek wrote: > Can I make ordered/unordered lists using structured text, without > doublespacing lines? When I write single spaced lines: > - one > - two > - three > it's not rendered as list. And when I write doublespaced lines, it's > rendered as doublespaced list... In lib/python/StructuredText/StructuredText.py, modify the ul() and ol() methods as follows: Change: if p: p="

    %s

    " % strip(ctag(p)) to if p: p="%s" % strip(ctag(p)) I posted a more robust diff to the zope-dev list last night, which allows replacement of the list-element format string from an ExternalMethod. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From rhww@erols.com Sun Mar 14 22:38:51 1999 From: rhww@erols.com (Robert Wentworth) Date: Sun, 14 Mar 1999 17:38:51 -0500 Subject: [Zope] Simulating static URLs, end-user session management Message-ID: <36EC3A7B.53817A8D@erols.com> Hi. I am very new to Zope, having spent the last day (with only about two hours of sleep) excitedly pouring through the documentation. I still have a lot to digest, but there are some questions I did want to ask at this stage: A) Are there reasonable ways of arranging to have the URLs for some/many Zope generated pages appear, as far as the outside world is concerned, to be URLs for static HTML pages? The issue is one of indexing by search engine robots. I anticipate building a site where most of the content will change fairly slowly, and where there would be a standard set of views of the data which would be essentially static at a logical level. I really want search engines to index those static views. (There would likely also be dynamically generated views which shouldn't be indexed.) So, I think the requirement is that there should be a way of getting to pages with a URL like: http://www.mydomain.com/here/there/everywhere.html as opposed to http://www.mydomain.com/here/there/everywhere or http://www.mydomain.com/here/there?everwhere I supect there are a number of ways of tricking Zope into accepting URLs in the first form, or perhaps into actually generating some static pages which would be served up directly by the HTTP server (though my quick check of the archives suggests this is an unresolved issue). My questions are: 1) Has anyone already done something like this? 2) What approaches could you suggest to accomplish this? 3) Is trying to arrange this likely to be a big task or a little task (as subjective as that question is)? B) On another topic entirely, I am wondering about the issue of tracking sessions of end-users. (Hmmm... maybe I should have done more searching in the archives -- this must be a common issue.) Various application servers (e.g., for Java servlets) that I've looked at provide facilities for maintaining "session" information (not in the sense of a transaction as used in Zope) about end users. Typically this would be done by setting a cookie or by incorporating a session ID into dynamically generated URLs. I haven't noticed anything about this in the Zope documentation. I'm guessing that perhaps that is because Zope is so powerful that implementing something like this yourself is regarded as trivial. But thinking about it a bit, I'm not sure what the Zope mindset would be about how to do this. Zope sends requests directly to objects. But in order to manage a session cookie (or whatnot) you need to add a certain functionality to every (or most HTTP) requests. You certainly don't want to have every object explicitly worry about this. Is there a hook that would allow all requests to pass through some sort of filter that extracts/manages session information? Or is there some other standard solution to this problem? For what it's worth, I am interested in using Zope to build my second E-commerce site. I built the first site by using Python to generate static pages from a data structure, combined with lots of JavaScript and a little Perl CGI. It worked, but I'm sure there is a better way. I was leaning towards a Java servlet plus templating package solution, until I found Zope. I've been a Python proponent for a while, but Zope is threatening to make my brain explode. Talk about paradigm shifts. C) Despite my Python and OO background, it's not easy to absorb it all at once. This does make me somewhat concerned, as my business partner, who will be a content provider, has no OO experience. I don't want to produce a system where it will be hopeless for her (possibly with help from another developer) to take over if I get hit by a bus. Thoughts...? Robert Wentworth rhww@erols.com (aka webmaster@tripplebrookfarm.com) From jeffbauer@bigfoot.com Sun Mar 14 23:03:14 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sun, 14 Mar 1999 17:03:14 -0600 Subject: [Zope] Simulating static URLs, end-user session management References: <36EC3A7B.53817A8D@erols.com> Message-ID: <36EC4032.20B3346E@rubic.com> Robert Wentworth wrote: > C) Despite my Python and OO background, > it's not easy to absorb it all at once. This does > make me somewhat concerned, as my business partner, > who will be a content provider, has no OO experience. > I don't want to produce a system where it will be > hopeless for her (possibly with help from another > developer) to take over if I get hit by a bus. > Thoughts...? Robert, I'm only going to address your last point, but it's something I feel strongly about. Let's ignore the technical issues, except to mention that only you can judge is Zope is appropriate for your situation. Fortunately, you have an excellent opportunity to discover its relative strengths and weaknesses. One of the important secondary issues (some would claim the primary) about Open Source is that it protects your business against the "What happens if Robert gets hit by a bus?" scenario. Digital Creations is in the business of providing support to organizations that use its products. Heck, in this sense it's even superior to key man insurance. Furthermore, because of DC's courageous decision to release Zope as Open Source, not only is your company protected against *your* untimely demise, but it's even secure against the day Hadar decides to transfer all the company assets into hedge funds. Best regards, Jeff Bauer Rubicon, Inc. From hadar@verticality.com Mon Mar 15 01:18:05 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sun, 14 Mar 1999 20:18:05 -0500 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC4032.20B3346E@rubic.com> Message-ID: <000101be6e81$ad7c65c0$7863efa1@hadar.bestweb.net> [excellent answer from Jeff Bauer snipped] > Furthermore, because of DC's courageous decision to > release Zope as Open Source, not only is your company > protected against *your* untimely demise, but it's even > secure against the day Hadar decides to transfer all > the company assets into hedge funds. OUCH. My plan is now unveiled to the world prematurely. That settles it. Jeff, I'm taking back your shares in the hedge fund for telling :-) From JMiller@zefer.com Mon Mar 15 04:01:30 1999 From: JMiller@zefer.com (Justin Miller) Date: Sun, 14 Mar 1999 23:01:30 -0500 Subject: [Zope] Help! How do I make the JobBoard example work? Message-ID: Hi All, As an exercise, I'm trying to get the JobBoard example code given in http://www.zope.org/Documentation/Reference/ObjectPublishingIntro to work in Zope (as opposed to Bobo/ZPublisher), and am having some difficulty. Copying the PeeWee's playhouse example in http://www.zope.org/Documentation/Reference/ExternalMethods, I placed all the JobBoard files in zope/lib/python/shared/JobBoard, made an empty __init__.py file, fixed up the dtml_loc variable, and put a JobBoard_utils.py file into zope/extensions, which reads as follows: "utility to add JobBoard objects to folders" def addJobBoard(self,id): "Add a playhouse to the current folder" if not hasattr(self,id): setattr(self,id,JobBoard("Python Jobs")) return "JobBoard added with id %s" % id else: return "id %s already in use" % id Using Zope's management GUI, I successfully added the addJobBoard function as an external method, and have successfully called it to create a JobBoard object called testJobBoard. However, when I try to view the testJobBoard object, I get an error message that reads "Sorry, the requested document does not exist." The addJobBoard function was added as an external method to the root folder, so my understanding is that the testJobBoard object should also be accessible from within the root folder (that is that its URL is "localhost:9673/testJobBoard"). What am I doing wrong here? Also, what is the proper way to debug this sort of problem? The output of the zope process merely mentions a GET request for the given URL, and the 404 response code -- no further detail is given. Thanks in advance for the help! -Justin http://www.zope.org/Documentation/Reference/ProductTutorial.tar.gz From jkhoffman@usa.net Mon Mar 15 04:30:59 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:30:59 -0500 (EST) Subject: [Zope] ZAP In-Reply-To: Message-ID: On Sun, 14 Mar 1999, Shaw, Howard wrote: > How can I configure ZAP so that all http requests go through the cgi? > Zope is the only thing running through this apache, so I don't want > everything on the site prefixed with Zope/ (or anything else, so no, I > don't just want to know how to change the prefix). This is basically > what is keeping me on ZopeHTTPServer. > > [snip] > > How can I make a Zope pcgi accessible as the root of a Zap install? > Please help. In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do. In httpd.conf, make sure you have these lines (I put them at the end): Alias / /cgi-bin/Zope.cgi # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...] You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is. I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache. Let me know if you have problems; I'll do what I can to help. > Howard C. Shaw III jkh From jkhoffman@usa.net Mon Mar 15 04:32:12 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:32:12 -0500 (EST) Subject: [Zope] and it did not > work, but when I use it works nicely... How do I do > this with #var ? I think you need . I haven't tested this, so I'm not sure it works, but I am 99% sure this is what you're going for. > Milos Prudek jkh From rhww@erols.com Mon Mar 15 05:20:02 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 00:20:02 -0500 Subject: [Zope] mailing list archive download in bulk? Message-ID: <36EC9882.79908EE8@erols.com> Is there any way of downloading large blocks of the Zope mailing list archive in bulk, rather than wading through one message at a time over the web (which is rather painful, especially since I haven't discovered how to get a listing of all the discussion threads so I can be more systematic)? From chsrinfo@guetali.fr Mon Mar 15 05:43:45 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 15 Mar 1999 09:43:45 +0400 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <00e701be6eb0$962a3300$147800a0@pc-pi0> >Are you confused by the subtleties of DTML? Want the skinny on advanced >DTML tricks and gotchas? Check out my advanced DTML HowTo: > >http://www.zope.org/Documentation/HowTo/DTML > Thanks You say "one shouldn't have to use instead of ." However, i find it useful to write: instead of: Hope that helps... Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Mon Mar 15 08:04:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:04:33 +0100 Subject: [Zope] and it did not >work, but when I use it works nicely... How do I do >this with #var ? > is the best way to go. It'll insert a IMG tag with an absolute URL, and if it knows the image width and height, these will be included in the image tag. Make sure you use the quotes! img.name means: the attribute 'name' of the object called 'img'. You can specify the image width and height by hand in the images' property screen, but if you uploaded a PNG or GIF image, Zope will deduce the width and height from the image itself. The next Zope release will also support JPEG image size detection. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:25:50 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:25:50 +0100 Subject: [Zope] . > > I haven't tested this, so I'm not sure it works, but I am 99% sure this is It doesn't work. > what you're going for. Yes, that's what I want. Maybe what I'm trying to do is against object-oriented concept? I can see that images should be kept with the DTML page that calls them. I just need images to be accessible by a group (role) of "image managers", but the code that holds it to together should be accessible to an Admin role only. -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:46:56 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:46:56 +0100 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC3A7B.53817A8D@erols.com> Message-ID: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> At 23:38 14/03/99 , Robert Wentworth wrote: >A) Are there reasonable ways of arranging to have > the URLs for some/many Zope generated pages appear, as > far as the outside world is concerned, to be URLs > for static HTML pages? > > The issue is one of indexing by search engine robots. > I anticipate building a site where most of the > content will change fairly slowly, and where there > would be a standard set of views of the data which > would be essentially static at a logical level. I > really want search engines to index those static > views. (There would likely also be dynamically > generated views which shouldn't be indexed.) > > So, I think the requirement is that there should be a > way of getting to pages with a URL like: > > http://www.mydomain.com/here/there/everywhere.html > > as opposed to > > http://www.mydomain.com/here/there/everywhere > > or > > http://www.mydomain.com/here/there?everwhere > There is little reason to avoid naming your objects with the extension built into the ID, like everywhere.html. You can then simply refer to the object using that ID, which to a not so smart indexing bot will look like an HTML file (but it should *really* look at the MIME-type...). The only problem would be referencing the object, as you have to take precautions to make sure Python doesn't try to reference the attribute named 'html' on the object 'everywhere'. So, as long as you name your DTML Documents that are to be indexed with the .html extension, everything should go fine. >B) On another topic entirely, I am wondering about the issue >of tracking sessions of end-users. (Hmmm... maybe I should >have done more searching in the archives -- this must be >a common issue.) Various application servers (e.g., for >Java servlets) that I've looked at provide facilities >for maintaining "session" information (not in the sense >of a transaction as used in Zope) about end users. Typically >this would be done by setting a cookie or by incorporating >a session ID into dynamically generated URLs. I haven't >noticed anything about this in the Zope documentation. >I'm guessing that perhaps that is because Zope is so >powerful that implementing something like this yourself >is regarded as trivial. But thinking about it a bit, >I'm not sure what the Zope mindset would be about how >to do this. Zope sends requests directly to objects. >But in order to manage a session cookie (or whatnot) >you need to add a certain functionality to every (or >most HTTP) requests. You certainly don't want to have >every object explicitly worry about this. Is there >a hook that would allow all requests to >pass through some sort of filter that extracts/manages >session information? Or is there some other standard >solution to this problem? > No, Zope has no Session tracking facilities at this moment. DC is however working on this. At the moment you will find a 'Session' object in your Zope distribution, but this is a different concept altogether, and will be renamed to 'Version' when client session objects appear. >C) Despite my Python and OO background, >it's not easy to absorb it all at once. This does >make me somewhat concerned, as my business partner, >who will be a content provider, has no OO experience. >I don't want to produce a system where it will be >hopeless for her (possibly with help from another >developer) to take over if I get hit by a bus. >Thoughts...? DC can be hired to help out... and as Zope is now Open Source, a growing number of people can help out. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:53:46 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:53:46 +0100 Subject: [Zope] should do it but your second method I think is > better. Yes, this works. Quotes helped. Now, how can I add border=0 ? -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:55:27 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:55:27 +0100 Subject: [Zope] mailing list archive download in bulk? In-Reply-To: <36EC9882.79908EE8@erols.com> Message-ID: <4.1.19990315095409.00be5640@lisp.atmm.nl> At 06:20 15/03/99 , Robert Wentworth wrote: >Is there any way of downloading large blocks of the >Zope mailing list archive in bulk, rather than >wading through one message at a time over the >web (which is rather painful, especially since >I haven't discovered how to get a listing of >all the discussion threads so I can be more >systematic)? > Download the archive at http://www.zope.org/pipermail/zope/ You can get overviews by thread, date, subject and author, and DL the whole list in Gzip'd files. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:39:19 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:39:19 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: <4.1.19990315103629.00c168a0@lisp.atmm.nl> At 06:43 15/03/99 , Service Informatique CHSR wrote: >You say "one shouldn't have to use instead of >." >However, i find it useful to write: > > > > > >instead of: > > > > > How about or So we can confuse each other even more =). -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:50:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:50:45 +0100 Subject: [Zope] should do it but your second method I think is >> better. > >Yes, this works. Quotes helped. > >Now, how can I add border=0 ? > Yep, you got use there.... calling the Image object doesn't generate extra information like border=0. DC is working on a solution to that, at least, I think they said so. For now you will have to write out the IMG tag yourself: " height="" border=0> I assumed that the img Folder object is a direct subobject of the Zope root object. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 10:18:41 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 11:18:41 +0100 Subject: [Zope] /img/name" width="" Looks terrible :-) I think I rather use for the time being. -- Milos Prudek From julian@zereau.net Mon Mar 15 12:01:09 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:01:09 -0000 (GMT) Subject: [Zope] incrementally improving a product? Message-ID: If I build a product, deploy instances of it, and continue editing and reloading the product, will its instances be improved or will they be frozen at the state they were in when created? Also, is there any problem with the instances failing to work with a newer product version? --- Julian Morrison Programmer (Zereau Ltd) From julian@zereau.net Mon Mar 15 12:16:06 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:16:06 -0000 (GMT) Subject: [Zope] . okay next qustion: I have a image under a folder called "images". should work - except that the image filename contains the "." character (eg: "foo.gif") and this gets confused with the dot notation of the object (it tries to find images/foo/gif and chokes with a traceback) So how do I get round this one? --- Julian Morrison Programmer (Zereau Ltd) From TomJenkins@zentuit.com Mon Mar 15 13:36:28 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 08:36:28 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903151339.IAA24178@mail.digiweb.com> (I'm resending this as I didn't see it appear on the list the first time) > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Mon Mar 15 13:55:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 13:55:02 +0000 Subject: [Zope] Searching a Zope site (in the traditional way) Message-ID: How do you do this?, ie to get a list of files/objects that contain the search term, laid out in a way that the external user would recognise. I don't mean the 'find' tag in the manage screens, by the way... Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 15 14:54:16 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 14:54:16 +0000 Subject: [Zope] File upload product anywhere? Message-ID: Hi all, Has anyone written a file upload 'product' that they'd like to share? My own requirements are that; the files should (optionally) go to a file system, I need to be able to change the interface for the system, the users should be authenticated from an external database, the files (if held in a file system) should retain their associations with folders (for permissions and access), and I'd like it in blueberry please. What I'm basically after is the best of both worlds - Zope permissions/acquisition etc. with the 'safety net' of a file system for large files (and possible batch uploading). My problem (or one of them) is that there's no way that I'm up to speed enough in Zope/Python to start on this...I have a system doing the file upload working well in PHP3, but that (obviously) doesn't have the permissions/acquisition power of Zope. I guess I could do redirects to my PHP3 scripts from within Zope however, but it's hardly (ahem) 'elegant'. any thoughts gratefully accepted. Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From mj@antraciet.nl Mon Mar 15 16:23:03 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 17:23:03 +0100 Subject: [Zope] Searching a Zope site (in the traditional way) In-Reply-To: Message-ID: <4.1.19990315152120.00bb8520@lisp.atmm.nl> At 14:55 15/03/99 , Tony McDonald wrote: >How do you do this?, ie to get a list of files/objects that contain >the search term, laid out in a way that the external user would >recognise. > >I don't mean the 'find' tag in the manage screens, by the way... > The find management screen does give helpful hints. If you want to implement this kind of searching, you'll have to use the same techniques. These are however largely undocumented. The file lib/python/OFS/findResult.dtml should give you a lot of hints on how to implement a search command. It comes down to calling PrincipiaFind on a Folder with the right arguments: obj, obj_ids, obj_metatypes, obj_searchterm, obj_expr, obj_mtime, obj_mspec, obj_permission, obj_roles, search_sub, REQUEST, result, pre where * obj -- base folder to start at * obj_ids -- (optional) list of object ID's to search * obj_metatypes -- (optional) list of meta types to search for (if the string 'all' is in this list, all objects, whatever their meta type will be included in the results). * obj_searchterm -- (optional) literal text to search for in the *source* of DTML Documents and DTML Methods. * obj_expr -- (optional) DTML expression (as would be used in the expr attribute of for example the var tag). If this expression returns true within the context of an object, the object is included in the search results. You could use this for testing on certain properties, like 'foo=bar'. * obj_mtime -- (optional) DateTime object or string that can be converted to a DateTime object, specifying a modification time to compare objects against. Will on default return objects that have been modified since obj_mtime. * obj_mspec -- (optional) When used with obj_mspec, and set to '<', PrincipiaFind will only return objects which have been last modified before the date and time specified by obj_mtime. * obj_permission -- (optional) To be used together with obj_roles. Check if the roles specified by obj_roles have the obj_permission permission. Only these objects are included in the results. * obj_roles -- (optional) List of roles to check for obj_permission access. See obj_permission. * search_sub -- (optional) if true, search subobjects recursively. * REQUEST -- (optional) REQUEST object, used to make sure that AUTHENTICATED_USER is available for obj_expr expressions. * result -- a list of objects to be included in the returned results. Used by the PrincipiaFind method when recursively searching subobjects. Generally of no use to us humble DTML programmers. * pre -- prefix the IDs in the returned result list with pre and a slash. So, when called with pre='foo', and bar is the only object found, PrincipiaFind will return the list of tuples: [('foo/bar', foo)]. This argument is used when recursively searching subobjects, where pre is the relative URL of the object searched. Generally of no use to us humble DTML programmers. The method returns a list of tuples, where the first element of every tuple is the relative URL of the object found (relative to the starting point), and the second element is the object itself. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 16:38:22 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:38:22 +0100 Subject: [Zope] should work - except that the image filename > contains the "." character (eg: "foo.gif") and this gets confused Object name can be different from filename. Thus you name your foo.gif file just Foo, and that's it. -- Milos Prudek From prudek@sol.cz Mon Mar 15 16:40:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:40:40 +0100 Subject: [Zope] database upload Message-ID: <36ED3808.8DDF4B8B@sol.cz> I have MySQL database, and I want to upload my gif files into it through Zope, just like when creating Image component. How can I achieve this? -- Milos Prudek From pje@telecommunity.com Mon Mar 15 16:54:10 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 15 Mar 1999 11:54:10 -0500 Subject: [Zope] should work - except that the image filename >> contains the "." character (eg: "foo.gif") and this gets confused > > >Object name can be different from filename. Thus you name your foo.gif >file just Foo, and that's it. > Or, if you absolutely must have '.' in the filename, try: From julian@zereau.net Mon Mar 15 17:22:42 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 17:22:42 -0000 (GMT) Subject: [Zope] "magic buttons" in forms Message-ID: Two questions about "magic" behavior of form submit buttons: 1)The "cancel" button system, can it be made to work with a button with another value apart from "cancel"? (such as "back" or "home") 2)The system, please can someone explain this, as it is the only way I have yet figured out to do a single form with many destination pages. Also, does this behave differently in DTML methods and DTML documents? --- Julian Morrison Programmer (Zereau Ltd) From M.Faassen@vet.uu.nl Mon Mar 15 17:26:19 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 15 Mar 1999 18:26:19 +0100 Subject: [Zope] Newbie dtml question ( very simple ) References: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Message-ID: <36ED42BB.79076C57@pop.vet.uu.nl> "Dr. Armin Tschammer" wrote: > XY.py : > > d = {} > d['x1']=1 > d['x2']=2 > X = DocumentTemplate.HTMLFile('X3.dtml') > string = X(d) Hmm. Have you tried this, instead? class Foo: pass myfoo = Foo() foo.x1 = 1 foo.x2 = 2 X = DocumentTemplate.HTMLFile('X3.dtml') output = X(foo) Regards, Martijn From amos@aracnet.com Mon Mar 15 17:32:41 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:32:41 -0800 Subject: [Zope] incrementally improving a product? In-Reply-To: Message-ID: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> At 12:01 PM 3/15/99 -0000, julian@zereau.net wrote: >If I build a product, deploy instances of it, and continue editing and >reloading the product, will its instances be improved or will they be frozen at >the state they were in when created? Zope's object database uses Python's pickle facility, so in general instances only store their own data, and use whatever version of the class is available. Classes are not stored in the database. This means that when you change your class, your instances will be updated. >Also, is there any problem with the instances failing to work with a newer >product version? Yes. And this is not a Zope-specific issue, or even a Python-specific issue. Anytime you have long-lived instances and change the class, you may run into problems. Python comes with a couple hooks to help you out. You should look into __getstate__ and __setstate__ which are documented in the Python pickle documentation. Probably the most common type of problem occurs when your new class definition assumes a new attribute which the old instances don't have. An easy way to solve this is to provide a class attribute which gives a reasonable default for this attribute. For example: class MyClassV1: 'Original class' def __init__(self): self.color='red' class MyClassV2: 'Updated class' def __init__(self): self.color='red' self.texture='bumpy' def describe(self): return 'I am %s and %s' % (self.color, self.texture) Notice that instances created with MyClassV1 will not have a 'texture' attribute, so that when the class is updated, old instances will break when you call the new 'describe' method. A simple fix is to provide a default class attribute. For example: class MyClassV2: 'Backward compatible updated class' texture='nondescript' ... Now old instances won't break in the 'describe' method. Another approach is to test for the attribute and update the instance when you're going to use it. For example: def describe(self): if self.texture=='nondescript': self.get_texture() ... If 'describe' is the only place where you use 'texture' then you wouldn't even need to provide a class attribute, and could simply test for the absence of the attribute. Finally you might include version numbers in your instances and test for these, but this seems like overkill. I would suggest sticking to default class attribute solution for most cases. Hope this helps, and good luck. -Amos From amos@aracnet.com Mon Mar 15 17:50:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:50:19 -0800 Subject: [Zope] . > >okay next qustion: I have a image under a folder called "images". > should work - except that the image filename >contains the "." character (eg: "foo.gif") and this gets confused with the dot >notation of the object (it tries to find images/foo/gif and chokes with a >traceback) In general, when you have trouble spelling an object's name in a variable expression because its name is not a legal Python name (e.g. 'sequence-item' or 'foo.gif') then you should use _[] or _.getitem However in your case you can simply get the sub-object with a plain old getattr: Another possibility is to use the with tag: Since these are so ugly, you might consider the simpler manual method of generating the img tag: or else you might consider *not* having a images directory, and keeping your images in the Folders where they're used. Then you can refer to the images directly: And because of acquisition, foo.gif is accessible to all sub-Folders of the Folder it is located in, in the same way. -Amos From doug@sonosphere.com Mon Mar 15 06:59:03 1999 From: doug@sonosphere.com (Doug Wyatt) Date: Mon, 15 Mar 1999 01:59:03 -0500 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: At 9:43 +0400 3/15/99, Service Informatique CHSR wrote: > You say "one shouldn't have to use instead of > ." > However, i find it useful to write: > > > > > > instead of: > > > > I seem to remember that this works, too: Doug -- Doug Wyatt doug@sonosphere.com Sonosphere (electric/improv music) http://www.sonosphere.com/ From prudek@sol.cz Mon Mar 15 18:49:21 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 19:49:21 +0100 Subject: [Zope] fsimport HowTo References: <199903142011.UAA19578@cheviot.ncl.ac.uk> Message-ID: <36ED5631.614CA2A6@sol.cz> > > I've tried that too. Didn't help. What could be wrong? > suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Well, since that's a symlink anyway, I tried to suck directly from /home/pes/public_html. Still nothing. I even changed that dir to be world writable. > Even more clutching here - did you leave the trailing slash off the fsdir > attribute? I tried both. I'm sure I must be crazy. I summarize what I did: 1. downloaded fsimport.py 2. mkdir /usr/local/zope/Extensions 3. chown nobody:www Extensions 4. chmod /usr/local/zope/Extensions to be rwxr-xr-x 4. copied fsimport.py to /usr/local/zope/Extensions 5. chown nobody:www fsimport.py 6. chmod fsimport.py to be rw-r--r-- 7. created External method fsimport inside of ppm 8. put "fsimport" into all 4 fields (Id, Title, Function name, Python module name) 9. http://www.sol.cz/Zope/ppm/fsimport?fsdir=/home/pes/public_html 10. error "TypeError: read-only buffer, class" I must have missed something. -- Milos Prudek From vit@lipetsk.ru Mon Mar 15 19:05:55 1999 From: vit@lipetsk.ru (Victor Gamov) Date: Mon, 15 Mar 1999 22:05:55 +0300 Subject: [Zope] Bugs in pcgi-wrapper? Message-ID: <36ED5A13.9A0210B9@lipetsk.ru> Hi! Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with Apache-1.3.4 box. After succesfully installation I try to connect to cgi-bin/Zope.cgi/manage and got "file does not exist" error message. I look in source code and found that in pcgiConnect() function only socket() & connect() are present. But where is bind()?. When I fix this problem I found new error message "unable to connect". In function pcgiStartProc I found that sigemptyset(&zmask) we use the foollowing: while (sigflag == 0) sigsuspend(&zmask); So, after first iteration we have empty signal set and kill(pid, SIGUSR1) from father will be terminate our process. If I wrong, please correct me. -- CU, Victor Gamov From rhww@erols.com Mon Mar 15 19:14:14 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 14:14:14 -0500 Subject: [Zope] Simulating static URLs, end-user session management References: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> Message-ID: <36ED5C06.F73DA0CD@erols.com> Martijn Pieters wrote: > > At 23:38 14/03/99 , Robert Wentworth wrote: > >A) Are there reasonable ways of arranging to have > > the URLs for some/many Zope generated pages appear, as > > far as the outside world is concerned, to be URLs > > for static HTML pages? ... > There is little reason to avoid naming your objects with the extension > built into the ID, like everywhere.html. You can then simply refer to the > object using that ID, which to a not so smart indexing bot will look like > an HTML file (but it should *really* look at the MIME-type...). Perhaps I'm failing to understand something. Looking at pages on zope.org and some obviously dynamic pages on other sites, they all return a MIME-type of "text/html". Which I think means that a smart indexing bot should *not* simply look at the MIME-type. As I understand it, most search engine robots try to exclude dynamic content because of the justifiable fear that once they start exploring a web of dynamic content they could get lost in an infinite or near-infinite search space. I've read that as a result of this, search engine robots do things like refuse to index any URL with "cgi-bin" in the path, or which do not end in an approved recognized file extension. Do you have a different perception of search engine robot policies/strategies? > The only > problem would be referencing the object, as you have to take precautions to > make sure Python doesn't try to reference the attribute named 'html' on the > object 'everywhere'. Guess I'm going to need to experiment. I'm a little fuzzy on how this would work (but then I'm a little fuzzy in general at this point). > So, as long as you name your DTML Documents that are to be indexed with the > .html extension, everything should go fine. > > >B) On another topic entirely, I am wondering about the issue > >of tracking sessions of end-users. ... > No, Zope has no Session tracking facilities at this moment. DC is however > working on this. At the moment you will find a 'Session' object in your > Zope distribution, but this is a different concept altogether, and will be > renamed to 'Version' when client session objects appear. Are there any projections available re the timing of this? I'm wondering about how much effort to spend on ad-hoc interrim measures. FWIW, in my mind an ideal client session scheme would allow multiple strategies. In most cases using cookies works out for the best, but I would like to be able to accommodate anti-cookie zealots as necessary. On the other hand, I don't want to clutter URLs with session-id's if I don't need to. (I suppose having authenticated users is yet another strategy, and one that Zope currently seems oriented towards. Fine if users really want or need to get into your site or need to perform authorized operations, but not so good if you're trying to entice them in.) Robert Wentworth From rhww@erols.com Mon Mar 15 21:15:27 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 16:15:27 -0500 Subject: [Zope] Newbie: trouble getting started under Windows 98 Message-ID: <36ED786F.60F36D39@erols.com> While I expect to eventually be working under Unix (once I can convince my hosting provider to install Zope), at present I'm trying to use Zope under Windows 98. The problem is: it's not working. I'm using the Zope HTTP server, and I can contact the management system just fine, a prowl around looking at everything. But if I try to add an object (whether it be a DTML Document, a Folder, or an "Item" from the sample_product package (which I installed), what happens is: I am allowed to fill out the form where you enter object creation fields (ID, title, etc.), but when I send that form the HTTP server never returns. Any clues as to how to fix this, or debug it, or get any idea as to what is happening? Robert Wentworth From prudek@sol.cz Mon Mar 15 21:22:49 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:22:49 +0100 Subject: [Zope] Zope modifies HTML order of tags? Message-ID: <36ED7A29.89A174FC@sol.cz> It seems to me that Zope is rendering my HTML tag attributs in different order than in the source. For instance I put into property named tabstart. Looking into source produced by Zope, I found
    Why is Zope doing this? Maybe there's good reason, but I'd like to know, because too smart software is sometimes more burden than a help. Also some attributes are omitted in the rendering process. Property "width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up without vspace statement. -- Milos Prudek From prudek@sol.cz Mon Mar 15 21:15:45 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:15:45 +0100 Subject: [Zope] Feature request - local file browsing Message-ID: <36ED7881.EB1C4F7B@sol.cz> Would it be possible to modify expected file type when I click on browse and want to add local image type? Browser always presents .htm extension, so that I need to change it to *. I run browser from windows, Zope itself is on linux box. -- Milos Prudek From gwachob@findlaw.com Mon Mar 15 23:20:20 1999 From: gwachob@findlaw.com (Gabe Wachob) Date: Mon, 15 Mar 1999 15:20:20 -0800 Subject: [Zope] DTML indirection question again Message-ID: <36ED95B4.4EE4B7DD@findlaw.com> OK, here's the situation. I have a "login" page that I want to list the contents of different directories depending on the value of the AUTHENTICATED_USER Each user has a folder under the folder 'user'. I would like to be able to do (simplified):
    However, I get a TypeError on the #with line (and even if I put in the AUTHENTICATED_USER.id instead of just AUTHENTICATED_USER). What am I doing wrong here? I've tried a lot of different combinations of #with and _.getitem and such.. THANKS -Gabe From andreww@netscape.com Mon Mar 15 23:31:39 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Mon, 15 Mar 1999 15:31:39 -0800 Subject: [Zope] My own zope site... Message-ID: <36ED9827.7A8EB410@netscape.com> I've started a site that will show the results of my work in getting Dreamweaver and Zope to talk to each other - and I would appreciate a link from the zope.org site if there is a section for 3rd party developer links... I will post here (at the web site) ideas for improving the UI for the HTML interface for Zope as well. http://alaji.home.mindspring.com/zopeweaver/ -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From jeffbauer@bigfoot.com Tue Mar 16 02:08:36 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 15 Mar 1999 20:08:36 -0600 Subject: [Zope] Bugs in pcgi-wrapper? References: <36ED5A13.9A0210B9@lipetsk.ru> Message-ID: <36EDBD24.AAFDE1FC@rubic.com> Victor Gamov wrote: > Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with > Apache-1.3.4 box. After succesfully installation I try to connect to > cgi-bin/Zope.cgi/manage and got "file does not exist" error message. > I look in source code and found that in pcgiConnect() function only > socket() & connect() are present. But where is bind()?. When I fix > this problem I found new error message "unable to connect". Victor, I think your problem lies elsewhere. The client does not have to bind a local address before calling connect. The connect() function automatically assigns an unused port to the socket. You will probably find the problem is much more obvious than a low-level socket bug. Check your Zope.cgi paths, permissions, and Apache configuration. Good luck. Jeff Bauer Rubicon, Inc. From rhww@erols.com Tue Mar 16 02:55:13 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 21:55:13 -0500 Subject: [Zope] Re: Newbie: trouble getting started under Windows 98 References: <36ED786F.60F36D39@erols.com> Message-ID: <36EDC811.B13562F9@erols.com> FWIW, after messing around for several hours trying to diagnose this, the problem mysteriously went away. (I uninstalled another version of Python and its extensions, reinstalled them, ran Zope inside Pdb -- and things started working. Got out of Pdb, restarted, and things continued to work. No clue as to why things were consistently hanging before.) > While I expect to eventually be working under Unix > (once I can convince my hosting provider to install Zope), > at present I'm trying to use Zope under Windows 98. > > The problem is: it's not working. > > I'm using the Zope HTTP server, and I can contact the > management system just fine, a prowl around looking > at everything. But if I try to add an object (whether > it be a DTML Document, a Folder, or an "Item" from > the sample_product package (which I installed), what > happens is: > > I am allowed to fill out the form where > you enter object creation fields (ID, title, etc.), > but when I send that form the HTTP server never > returns. > > Any clues as to how to fix this, or debug it, or get any > idea as to what is happening? From TomJenkins@zentuit.com Tue Mar 16 03:49:52 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 22:49:52 -0500 Subject: [Zope] setting variable Message-ID: <199903160352.WAA04182@mail.digiweb.com> Hello folks, I'm stuck on a problem which I hope some one could help me with. I have a database entry form where the user will enter in information for two related tables. When she submits the form, I want to first post one tables information, then call another sql method to get the id generated for that post, then take that value and add it to the REQUEST object and pass it to the second sql insert for inserting to the second table (along with some other parts of the REQUEST object from the form). I'm planning on using MySQL that has a special select: select LAST_INSERT_ID() to return the last auto-generated id value to get the id. I know you can add a variable to the REQUEST object via but how to I get the value from the sql method? The only way I know now is via #var tags but you can't nest the DTML. I hope this makes sense... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 04:17:44 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 23:17:44 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <199903160420.XAA01117@mail.digiweb.com> To followup my last post, I'm getting an exception when trying to use MySQL's "select LAST_INSERT_ID()" function: Error, exceptions.KeyError: unhandled SQL used: select LAST_INSERT_ID() Anybody have any ideas? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From chsrinfo@guetali.fr Tue Mar 16 06:09:10 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 16 Mar 1999 10:09:10 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <000701be6f75$9a8de5c0$147800a0@pc-pi0> Nobody responded. So it went to the Collector. I don't even know if this is a bug. >Also, before I submit this to the Collector, is it normal that the "use >mailhost services" >doesn't appear in the security tab of the folders? Each product has its >permissions >that are listed, but nothing with the mailhost object. >I had to change it directly in the mailhost object. >If it's normal, it means that i can't give global permission for mailhost >objects??? >What confuse me, however, is that the mailhost object claims to "acquire" >permission >settings from its parents, but nowhere in its parents i can define the >permissions. Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Tue Mar 16 09:51:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:51:11 +0100 Subject: [Zope] Feature request - local file browsing In-Reply-To: <36ED7881.EB1C4F7B@sol.cz> Message-ID: <4.1.19990316104251.00bbca50@lisp.atmm.nl> At 22:15 15/03/99 , Milos Prudek wrote: >Would it be possible to modify expected file type when I click on browse >and want to add local image type? Browser always presents .htm >extension, so that I need to change it to *. I run browser from windows, >Zope itself is on linux box. This is something Zope can´t influence, it´s part of the way your browser works. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Tue Mar 16 09:53:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:53:48 +0100 Subject: [Zope] Zope modifies HTML order of tags? In-Reply-To: <36ED7A29.89A174FC@sol.cz> Message-ID: <4.1.19990316105207.00bbe560@lisp.atmm.nl> At 22:22 15/03/99 , Milos Prudek wrote: >It seems to me that Zope is rendering my HTML tag attributs in different >order than in the source. For instance I put >
    >into property named tabstart. >Looking into source produced by Zope, I found >
    >Why is Zope doing this? Maybe there's good reason, but I'd like to know, >because too smart software is sometimes more burden than a help. > >Also some attributes are omitted in the rendering process. Property >"width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up >without vspace statement. Could you supply us with some DTML examples of this behaviour? It´s not something I´ve seen before. Is there any chance your HTML editor is doing this? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Tue Mar 16 10:36:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:36:43 +0100 Subject: [Zope] incrementally improving a product? References: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> Message-ID: <36EE343B.B2953170@pop.vet.uu.nl> Amos Latteier wrote: [snip Amos' answers] Hey, this was a very good answer, so I added this to the FAQ (new updates will be on the zdp.zope.org site later today). Thanks Amos! Regards, Martijn From M.Faassen@vet.uu.nl Tue Mar 16 10:57:38 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:57:38 +0100 Subject: [Zope] sequence of numbers References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <36EE3922.FD588AE4@pop.vet.uu.nl> Eric Kidd wrote: > > On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > > This may be a newbie question, but I've loked thru the doc and didn't > > spot any obvious way to do this, short of an External Method. > > I didn't find any other way, either. But here's an External Method you can > use. [snip external method] I'm wondering; is there a reason why 'range' isn't accessible from DTML in the '_' namespace? Is the reason as you indicated in your external method, i.e. that you don't want people to generate vast ranges from DTML? Just curious, Martijn From mj@antraciet.nl Tue Mar 16 11:58:15 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 12:58:15 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <36EE3922.FD588AE4@pop.vet.uu.nl> References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <4.1.19990316121205.00bcc2a0@lisp.atmm.nl> At 11:57 16/03/99 , Martijn Faassen wrote: >Eric Kidd wrote: >> >> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: >> > This may be a newbie question, but I've loked thru the doc and didn't >> > spot any obvious way to do this, short of an External Method. >> >> I didn't find any other way, either. But here's an External Method you can >> use. > >[snip external method] > >I'm wondering; is there a reason why 'range' isn't accessible from DTML >in the '_' namespace? Is the reason as you indicated in your external >method, i.e. that you don't want people to generate vast ranges from >DTML? > >Just curious, The reason if of course merory flooding attacks. A range that asks for a list of 3 billion items is a wee bit unpolite to the machine. A way of checking would be: RANGELIMIT = 1000 def SafeRange(iFirst, *args): if not len(args): iStart, iEnd, iStep = 0, iFirst, 1 elif len(args) == 1: iStart, iEnd, iStep = iFirst, args[0], 1 elif len(args) == 2: iStart, iEnd, iStep = iFirst, args[0], args[1] else: raise AttributeError, 'SafeRange() requires 1-3 int arguments' if iStep == 0: raise ValueError, 'zero step for SafeRange()' iLen = int((iEnd - iStart) / iStep) if iLen < 0: iLen = 0 if iLen >= RANGELIMIT: raise ValueError, 'SafeRange() too large' return range(iStart, iEnd, iStep) Maybe this should be part of the _ object. Can someone turn this into a patch and supply this to DC? I´m a bit short of time right now. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Tue Mar 16 13:07:30 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Tue, 16 Mar 1999 08:07:30 -0500 Subject: [Zope] IRC channel Message-ID: <36EE5791.1B7AD457@GestaltTechnology.com> Dear Zopists, This is another post to make you aware of a new source of information for Zope. You can access #zope on the EFNet servers. Their is an infobot on this channel that could be a great resouce, but it needs to learn a lot about zope. If you pay a visit to the channel, query the bot by typing: /msg wizkid1 help. This will provide more information on the bot. Cheers, Fredy Villa Gestalt Technology FVilla@GestaltTechnology.com From phil@media-1.ml.uwcm.ac.uk Tue Mar 16 13:22:45 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 16 Mar 1999 13:22:45 -0000 Subject: [Zope] IRC channel Message-ID: <017e01be6fb0$147c24c0$5c773fc1@media1> I for one think this is a brilliant idea! I visit the PHP3 channel on EFNET frequently, a real sense of community and friendship can be built. I really do hope this comes off, so let's make a go of this eh guys 8^) See you there. Phil ----- Original Message ----- From: Fredy Villa To: Sent: Tuesday, March 16, 1999 1:07 PM Subject: [Zope] IRC channel >Dear Zopists, > > This is another post to make you aware of a new source of >information for Zope. You can access #zope on the EFNet servers. Their >is an infobot on this channel that could be a great resouce, but it >needs to learn a lot about zope. If you pay a visit to the channel, >query the bot by typing: /msg wizkid1 help. This will provide more >information on the bot. > >Cheers, > >Fredy Villa >Gestalt Technology >FVilla@GestaltTechnology.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From tschruefer@mail.howard.k12.md.us Tue Mar 16 15:10:54 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Tue, 16 Mar 1999 10:10:54 -0500 Subject: [Zope] Newbie install Q? and the Zope web site Message-ID: <199903161508.KAA22234@mail.howard.k12.md.us> Ok, two questions 1. What happened to the Zope web site, it seems to have gone down yesterday and still is not operating ? 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), but the install instructions do not seem complete. I retrieved the INSTALL.TXT file from the doc directory and started to follow them, but their doesn't seem to be any 'access' file in this distribution. What's more some of the command line options come up as invalid, like -c,which the install program quit on saying it was a invalid option. The -c option doesn't even show up in the --help for the installer. I was hoping there would be some additional install info on the web site, but that's not working. Tom From rob.page@digicool.com Tue Mar 16 15:20:45 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:20:45 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C1@GANDALF> > To followup my last post, I'm getting an exception when > trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() Try: select LAST_INSERT_ID() as fred then grab If this works then I know what the problem is! :^) If you use the database's command line tool and run this SQL statement I bet it returns a single value (i.e., it doesn't return a table). The DA wants to munge and chew on rows in tables. If think that if you use the select LAST_INSERT_ID() as fred you'll get a one-row, one-column table -- this is what Zope wants. --Rob From kid@ans.net Tue Mar 16 15:24:32 1999 From: kid@ans.net (Kevin Dangoor) Date: Tue, 16 Mar 1999 10:24:32 -0500 Subject: [Zope] Newbie install Q? and the Zope web site In-Reply-To: <199903161508.KAA22234@mail.howard.k12.md.us>; from Thomas Schruefer on Tue, Mar 16, 1999 at 10:10:54AM -0500 References: <199903161508.KAA22234@mail.howard.k12.md.us> Message-ID: <19990316102432.D13267@throwingcopper.ans.net> On Tue, Mar 16, 1999 at 10:10:54AM -0500, Thomas Schruefer wrote: ,----- | | Ok, two questions | | 1. What happened to the Zope web site, it seems to have gone down | yesterday and still is not operating ? It works from where I'm at. You may want to try traceroute www.zope.org (or tracert www.zope.org from Windows) to see where things are getting hung up. | | 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), | but the install instructions do not seem complete. I retrieved the | INSTALL.TXT file from the doc directory and started to follow them, but | their doesn't seem to be any 'access' file in this distribution. What's | more some of the command line options come up as invalid, like -c,which | the install program quit on saying it was a invalid option. The -c | option doesn't even show up in the --help for the installer. The access file just needs one line of the format "username:password" and should be in your zope install directory. Since I was using PCGI with Zope, all I did was just untar it, make it and then copy Zope.cgi into my web area... Kevin `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From rob.page@digicool.com Tue Mar 16 15:57:04 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:57:04 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C3@GANDALF> Tom: [Reading from my support script..] This is where I say, "Hmm, I'm no expert on MySQL...." ;^) Anyone else have any ideas? This, um, worked on Sybase!? --Rob Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when > > > trying to use > > > MySQL's "select LAST_INSERT_ID()" function: > > > > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() Rob Page replied: > >Try: > > > > select LAST_INSERT_ID() as fred > > > > then grab > > > > If this works then I know what the problem is! :^) > > > > If you use the database's command line tool and run this > SQL statement I > > bet it returns a single value (i.e., it doesn't return a > table). The DA > > wants to munge and chew on rows in tables. If think that > if you use the > > select LAST_INSERT_ID() as fred you'll get a one-row, > one-column table > > -- this is what Zope wants. Then Tom wrote back: > Hi Rob, > Made the change and tested but still got the exception. > I ran it at the command line (for mysql) and it returns a > "table" with one > row and field From jbb@spyderlab.com Tue Mar 16 17:01:32 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 12:01:32 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com> Message-ID: On Mon, 15 Mar 1999, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Try: select LAST_INSERT_ID()+0 to cast it to an int... Also, check your declaration for LAST_INSERT_ID().. if the above doesn't work you'll need to either try the patch for ZMySQLDA that was posted a week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to cast it to a string and then use a nifty Python fn. to convert it to an integer number. It seems the MySQL driver has problems with some datatypes. There was a patch posted befure.. I'm curious to know if it'll fix this problem... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From M.Faassen@vet.uu.nl Tue Mar 16 17:59:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 18:59:44 +0100 Subject: [Zope] ZDP's FAQs version 0.2.2 Message-ID: <36EE9C0F.A597FA4C@pop.vet.uu.nl> Hi there, Sorry for the cross posting, but the ZDP's Zope FAQs are online with a new version at zdp.zope.org. I hope they are useful. Please continue to contribute! Regards, Martijn (one of the two :), of the Zope Documentation Project From mbernstein@profitscape.net Tue Mar 16 18:21:59 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 10:21:59 -0800 Subject: [Zope] My own zope site... References: <36ED9827.7A8EB410@netscape.com> Message-ID: <36EEA147.50458405@profitscape.net> Andrew Wooldridge wrote: > > I've started a site that will show the results of my work in getting > Dreamweaver and Zope to talk to each other - and I would appreciate a > link from the zope.org site if there is a section for 3rd party > developer links... > > http://alaji.home.mindspring.com/zopeweaver/ I've added this to the Zope category in the Open Directory Project: http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ Michael Bernstein. From Oliver Thuns" Hi! I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a very simple counter module (with PIL). How could I set the mime header to image/gif and return an image? From M.Faassen@vet.uu.nl Tue Mar 16 19:01:14 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 20:01:14 +0100 Subject: [Zope] ZPublisher: How to set the mime header? References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <36EEAA7A.8FA5DC3D@pop.vet.uu.nl> Oliver Thuns wrote: > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? This is in the Zope FAQ, actually, at http://zdp.zope.org/FAQ/external. At least I think I'd apply to ZPublisher as well? How do I return an image from an External Method? Example (for a png image): def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is: RESPONSE.setHeader('content-type','image/png') Regards, Martijn From prudek@sol.cz Tue Mar 16 19:15:57 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 16 Mar 1999 20:15:57 +0100 Subject: [Zope] Zope modifies HTML order of tags? References: <4.1.19990316105207.00bbe560@lisp.atmm.nl> Message-ID: <36EEADED.C6223063@sol.cz> > >It seems to me that Zope is rendering my HTML tag attributs in different > >order than in the source. For instance I put > Could you supply us with some DTML examples of this behaviour? It´s > something I´ve seen before. Is there any chance your HTML editor is doing this? You are right. I wanted to check the frame, which I can't do easily under Netscape, so I pushed File/Edit Frame, and apparently Netscape Composer did it, because when I do "Save frame as...", it looks O.K. Having discovered this, there is no chance I would ever use Composer. I would be happy to have Zope work as closely as possible with Dreamweaver, though. -- Milos Prudek Sonet Online s.r.o. http://www.sol.cz From andy@ictibroker.com Tue Mar 16 19:40:56 1999 From: andy@ictibroker.com (Andy Smith) Date: Tue, 16 Mar 1999 14:40:56 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com> Message-ID: <000001be6fe4$e90f1920$ce63efa1@venice> I've been using this.... (Zope example but should work with ZServer) It was fully expecting to have to mess about with headers to get browsers to recognise the gif, but broswers seem to know a gif when they get one! This example returns gifs in a browser when you do .... http://mysite/renderGif or even (I'm fully prepared to admit there may be better ways of doing it) ;)_ Cheers, Andy. def renderGif(self, size=500, counter=1): """Draw a pie chart""" im = PIL.Image.new('RGB', (size,size)) # Do GIF manipulation stuff here! outFile = cStringIO.StringIO() im.save(outFile, 'GIF') outFile.seek(0) outString = outFile.read() return outString > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Oliver Thuns > Sent: Tuesday, March 16, 1999 1:44 PM > To: zope@zope.org > Subject: [Zope] ZPublisher: How to set the mime header? > > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 16 19:49:17 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 16 Mar 1999 20:49:17 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com>; from Tom Jenkins on Mon, Mar 15, 1999 at 11:17:44PM -0500 References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <19990316204917.A659@RaVER.duck.org> On Mon, Mar 15, 1999 at 11:17:44PM -0500, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Why not use: select 'id_field_name' from 'table' where 'id_field_name' IS NULL id_field_name beeing the field with AUTO_INCREMENT set Hope this helps - Sture > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From eric.kidd@pobox.com Tue Mar 16 19:55:15 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Tue, 16 Mar 1999 14:55:15 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com>; from Oliver Thuns on Tue, Mar 16, 1999 at 07:44:18PM +0100 References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <19990316145515.A484@moebius.dartmouth.edu> On Tue, Mar 16, 1999 at 07:44:18PM +0100, Oliver Thuns wrote: > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? When using Zope to publish XML documents (using DTML Document objects) I often write: Some part of Zope tries to guess the Content-Type otherwise. A lot of this code is directly shared between Zope and Z Publisher, so you might see similar behavior. Cheers, Eric From andreww@netscape.com Tue Mar 16 20:15:47 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Tue, 16 Mar 1999 12:15:47 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <36EEBBF1.B7B05990@netscape.com> Ok, I consider myself pretty technical, but not a UNIX master, and I've used NT enough to know about services, etc. But I cannot for the life of me figure out how to get zope running as a service without manually starting it from start.bat. Could someone please post somewhere a "zope for dummies" description of getting zope running as a service on NT. Here's what I do: I downloaded zope 1.10.2 I unzipped and ran the installer. It works fine to the point where it wants me to choose between running zope alone or as a service. I've tried it "both ways" and although I can get zope running fine by manually starting it from start.bat, and I make the zope service start automatically, it will not work as a service! I dont have any other web server on this machine and dont really care which server I use. I had assumed that ZopeHTTPServer would run as the service, but it doesnt work... Is there just a minimal way to get zope going on it's own? I know the ip address etc. of my system, but that doesnt seem to be the issue. I wouldnt even mind if in the install you had an option for "install default web server" so that zope can piggy back on it. Does it have something to do with setting permissions to the var directory? All I'm basically looking for is sort of a recipe style instruction on how to get it up and running. (With no handwaving like "now configure your system to run the zope.exe". Assume I'm a total idiot... Which I'm not, but I'm still having problems. -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From M.Faassen@vet.uu.nl Tue Mar 16 20:14:04 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 21:14:04 +0100 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEBB8B.31158570@pop.vet.uu.nl> Andrew Wooldridge wrote: [snip getting Zope to run on NT] I've made Zope run on NT with Apache. > I dont have any other web server on this machine and dont really care > which server I use. I had assumed that ZopeHTTPServer would run as the > service, but it doesnt work... No, I don't think that can work. You need another webserver, like Apache (which you can download from www.apache.org, though of course it has its own configuration hassles). > Is there just a minimal way to get zope going on it's own? Hm..Perhaps ZServer, but that's still not stable. Can it run as a service in NT? Otherwise I'd recommend Apache; it can do plenty, though there is a learning curve there. Regards, Martijn From mbernstein@profitscape.net Tue Mar 16 20:42:51 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 12:42:51 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEC24B.BD57D221@profitscape.net> Andrew Wooldridge wrote: > > Ok, I consider myself pretty technical, but not a UNIX master, and I've > used NT enough to know about services, etc. But I cannot for the life > of me figure out how to get zope running as a service without manually > starting it from start.bat. Here's what I did: I downloaded zope 1.10.2 I unzipped and ran the installer. I chose to run zope alone I created a shortcut to start.bat in C:\WINNT\Profiles\All Users\Start Menu\Programs\Startup This will start Zope every time you reboot. Note that it will not get rid of the annoying MSDOS command prompt window. I hope this helps From robin@alldunn.com Tue Mar 16 21:30:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 16 Mar 1999 13:30:09 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <016701be6ff4$30e2b5e0$8725d2d1@rogue.jenkon-dev.com> I posted a message last week about running ZServer as a service. You can find the message at http://www.zope.org/pipermail/zope/1999-March/005030.html I built my Zope from source, so I don't know if this works the same as the self-installer version, but it should be pretty close. 1. Install Zope 1.10.2, choosing to run standalone. 2. Untar the ZServer distribution in the root Zope directory. 3. Test that it works by running start.py in the ZServer directory. 4. Follow the directions in the message linked-to above. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Andrew Wooldridge To: zope@zope.org Date: Tuesday, March 16, 1999 11:34 AM Subject: [Zope] Help - need a brainless guide to getting zope running >Ok, I consider myself pretty technical, but not a UNIX master, and I've >used NT enough to know about services, etc. But I cannot for the life >of me figure out how to get zope running as a service without manually >starting it from start.bat. > > >Could someone please post somewhere a "zope for dummies" description of >getting zope running as a service on NT. > >Here's what I do: > >I downloaded zope 1.10.2 >I unzipped and ran the installer. >It works fine to the point where it wants me to choose between running >zope alone or as a service. >I've tried it "both ways" and although I can get zope running fine by >manually starting it from start.bat, and >I make the zope service start automatically, it will not work as a >service! > >I dont have any other web server on this machine and dont really care >which server I use. I had assumed that ZopeHTTPServer would run as the >service, but it doesnt work... > >Is there just a minimal way to get zope going on it's own? > >I know the ip address etc. of my system, but that doesnt seem to be the >issue. > >I wouldnt even mind if in the install you had an option for "install >default web server" so that zope can piggy back on it. > >Does it have something to do with setting permissions to the var >directory? > >All I'm basically looking for is sort of a recipe style instruction on >how to get it up and running. (With no handwaving like "now configure >your system to run the zope.exe". Assume I'm a total idiot... > >Which I'm not, but I'm still having problems. > > > >-- > >------------------------------------------------------------------------- > >- Andrew Wooldridge - Opinions expressed are my own - >- andreww@netscape.com - http://people.netscape.com/andreww/ >- ICQ: 6345881 - Find It at http://dmoz.org - >------------------------------------------------------------------------- > > > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Tue Mar 16 21:52:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:52:32 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903162155.QAA08372@mail.digiweb.com> OK to follow up, if you use call mysql using the form select CONCAT(LAST_INSERT_ID()) as new_id you get back the correct value in 'last_id' now I'm still having problems with getting that value into the REQUEST object. What goes in place of the ??? (Pardon me if this has been answered already, there was some problems with me getting messages from zope list) Thanks again... > On Mon, 15 Mar 1999, Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when trying to use > > MySQL's "select LAST_INSERT_ID()" function: > > > > Error, exceptions.KeyError: unhandled > > > > SQL used: > > > > select LAST_INSERT_ID() > > > > Anybody have any ideas? > > Try: select LAST_INSERT_ID()+0 to cast it to an int... > > Also, check your declaration for LAST_INSERT_ID().. if the above doesn't > work you'll need to either try the patch for ZMySQLDA that was posted a > week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to > cast it to a string and then use a nifty Python fn. to convert it to an > integer number. > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 21:56:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:56:14 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> References: Message-ID: <199903162159.QAA12320@mail.digiweb.com> > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > Umm that should read select CONCAT(LAST_INSERT_ID()) as last_id -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From jbb@spyderlab.com Tue Mar 16 22:35:08 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:35:08 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> Message-ID: On Tue, 16 Mar 1999, Tom Jenkins wrote: > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > > now I'm still having problems with getting that value into the REQUEST > object. What goes in place of the ??? > > > (Pardon me if this has been answered already, there was some > problems with me getting messages from zope list) > Thanks again... Well, try something like:
  • The id last inserted is where lastInsert is your SQL method Note this is untested code, so caveat emptor :) Have fun, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Tue Mar 16 22:51:20 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:51:20 -0500 (EST) Subject: [Zope] #sqltags Message-ID: Hi: Are the #sqltags documented somewhere? I couldn't find them in the DTML reference manual, etc. I found some examples of their use, but nothing definative. I have no problems reading the source and documenting what I find, I just don't want to be re-inventing the wheel. Specifically I'd like to know about #sqlgroup and friends. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From amos@aracnet.com Tue Mar 16 22:51:50 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 16 Mar 1999 14:51:50 -0800 Subject: [Zope] #sqltags In-Reply-To: Message-ID: <3.0.5.32.19990316145150.011c19a0@mail.aracnet.com> At 05:51 PM 3/16/99 -0500, Jordan B. Baker wrote: >Are the #sqltags documented somewhere? I couldn't find them in the DTML >reference manual, etc. Did you notice the "Z SQL Methods User's Guide": http://www.zope.org/Documentation/Guides/ZSQL I think that this covers what you want to know. -Amos From neves@inf.puc-rio.br Tue Mar 16 22:45:29 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 16 Mar 1999 19:45:29 -0300 Subject: [Zope] setting variable References: <199903160352.WAA04182@mail.digiweb.com> Message-ID: <36EEDF09.91998D6@inf.puc-rio.br> Tom Jenkins wrote: > > Hello folks, > I'm stuck on a problem which I hope some one could help me with. I > have a database entry form where the user will enter in information for > two related tables. When she submits the form, I want to first post one > tables information, then call another sql method to get the id generated > for that post, then take that value and add it to the REQUEST object > and pass it to the second sql insert for inserting to the second table > (along with some other parts of the REQUEST object from the form). Do you really need this? You can put more than one sql commands in a sql method, you just have to put a between them. You can insert in the two tables with just one method. The last_insert_id() should be in the values field of the second insert. Take a look at the code genereated by the sql wizard in the contrib page. > > I'm planning on using MySQL that has a special select: > select LAST_INSERT_ID() > to return the last auto-generated id value to get the id. > > I know you can add a variable to the REQUEST object via > > but how to I get the value from the sql method? The only way I know > now is via #var tags but you can't nest the DTML. Take a look at the other thread. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From rhww@erols.com Tue Mar 16 23:27:35 1999 From: rhww@erols.com (Robert Wentworth) Date: Tue, 16 Mar 1999 18:27:35 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <36EEE8E7.11F8DBC@erols.com> Right now my biggest obstacle to setting up a Zope-powered site could be finding a hosting provider I have confidence in who is willing to run Zope. When I asked my first-choice provider about running Zope, they replied: > Though it's true that we can install programs that need root > instlall, it only so when the program is low CPU/mem use and > non-intrusive. Zope is neither, so to run it you would need to get > your own dedicated server through us. A dedicated server is not a viable option for this site at this point in time. So, a few questions: 1) Are the provider's fears justified? What sort of memory footprint, CPU requirements (for a site that should have fairly low traffic at first), and other impact are Zope likely to have on a hosting provider? 2) Would anyone care to let me know what their experience has been with the two hosting providers (NexusWeb and CodeIt Computing) listed as known to host Zope-based sites? (I've been sufficiently badly burned in the past by bad hosting providers that I cannot justify signing up for a provider without positive recommendations or multiple alternatives for backup.) Robert Wentworth From TomJenkins@zentuit.com Tue Mar 16 23:27:19 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 18:27:19 -0500 Subject: [Zope] setting variable In-Reply-To: <36EEDF09.91998D6@inf.puc-rio.br> Message-ID: <199903162330.SAA24924@mail.digiweb.com> > Do you really need this? You can put more than one sql commands in a sql > method, you just have to put a between them. > You can insert in the two tables with just one method. The > last_insert_id() should be in the values field of the second insert. > Take a look at the code genereated by the sql wizard in the contrib > page. Hey Paulo, thanks for that tip. I didn't know about #var sql_delimiter and the ability to put more than one sql commands in a sql method. I had wondered about it but the #var sql_delimiter was the key. With this information, no I don't need to insert into the REQUEST object. But I'm still curious . Unfortunately, putting last_insert_id() directly into the values of the second insert did not work. It works from mysql command line. INSERT INTO entry_tbl (master_id,submitted_by,staff_id,version,comment) VALUES (LAST_INSERT_ID(), , , , ) It surprised me that it didn't work as I thought it would get sent enmass to mysql for processing so I had thought that the DA wouldn't interfer with it. feeling-very-dense-ly y'rs -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From vanandel@ucar.edu Wed Mar 17 01:44:26 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Tue, 16 Mar 1999 18:44:26 -0700 Subject: [Zope] newbie - permissions on FAQ object Message-ID: <199903170144.SAA26992@stout.atd.ucar.edu> I'm trying to configure a ZOPE FAQ object on starship.python.net . This is Zope v10.10.2 with ZServer 1.0b2 . I'm baffled by the permissions scheme. I've created a FAQ under my ZOPE home: http://starship.python.net:9673/crew/vanandel I'd like selected users to add FAQ entries, but only certain trusted users to be able to create categories. Unfortunately, anyone can add a new category, which is not what I want. The Security Screen for vanandel/NumPy only enables 'view' for anonymous, but still an 'anonymous' user can enter the 'Add a category' screen, without being challenged. There are specific permissions shown for various "add-ins" like TinyTables on the Security screen, but not for the FAQ module. (I'd expect to see permissions for FAQAddCategory.) Also, when I first create a 'FAQ', I can't view it until I create a 'isCategory' property. This seems like a bug, since 'isFAQ' is already created for me. A minor question. I'd obviously like to test ZOPE with various users, to see what ZOPE allows them to do. ZOPE uses cookies to give someone permission, after they've supplied a password. Under Unix, I can manually remove a cookie by editing ~/.netscape/cookies. How do I do this under NT? Are Netscape cookies in the registry (I hope not!). Thanks much for your help. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From mike@icebox.dlogue.net Wed Mar 17 02:40:15 1999 From: mike@icebox.dlogue.net (Michel Pelletier) Date: Tue, 16 Mar 1999 20:40:15 -0600 (CST) Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: <199903141232.XAA17000@mbuna.arbhome.com.au> from "Anthony Baxter" at Mar 14, 99 11:32:36 pm Message-ID: <199903170240.UAA04469@icebox.dlogue.net> > > > Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now > available from http://www.interlink.com.au/anthony/python/ > Excellent. > I'm looking for opinions on the LDAP zope product I've been building. > We here at DC (well, I'm out of the office this week, but I'm there virtualy) have been kicking around an LDAP authentication mechanism, probably a folderoid, to go against LDAP. In fact, this was supposed to be one of my projects when I get back next week. From the details below it looks like you have thought this out well, I didn't even consider making an API of methods like XSQL methods, good idea! > Right now, LDAP connections work, LDAP Methods work, but there's still > a bit more to do. Right now, the following is unimplemented: > > In ZLDAPconn: > . Anything other than simple_bind(who, passwd) for connecting to the > LDAP server That's where we want to start... > . meaningful doc strings > > In ZLDAPMethods: > . Pluggable Brains > . Result Caching > . Limits on the number of results > . Variable interpolation in the filters, and in the base DN > . modify or add queries (only search is supported right now) > . meaningful doc strings :) Under the catagory 'result caching' you might want to consider making some kind of Connection Manager in your LDAP Connection. A model I've been kicking around is a CM class that manages Connections and uses a simple caching algoritm. Wrapping all of the API in a class will also help yu when you want to break out the LDAP stuff and stick it in shared. In this way, it becomes a sort of 'Device Driver' (to use Ken's terminology) for the entire Zope system. We're going to be doing this with the IMAP functionality that NotMail uses. I'm assuming what you call an LDAP connection is like a Database Adapter is to ZSQL methods. Maybe you might want to consider calling these LDAP Adapters. > > Other stuff: > . UserLDAP is not finished yet (or released) - the primary issue is the > storing of roles and domains. Right now this would have to be some > non-standard LDAP attribute... but what should it be? It also probably > needs modify and add added to ZLDAPMethods before being really useful. > The etcUserFolder product has a settable property to change the 'default role' that the users are given. You can check it out from the download page, it is also in cvs under Packages/Products/etcUserFolder > Things I'd like comments on: > For ZLDAPconn: > what other bind methods would you like to see? > For ZLDAPMethods: > how should add/modify/query be distinguished? Separate methods? > I'd have to look at the code, I'll get back to you. (hey paul, I need a laptop!) > I had planned to get variable interpolation working tonight, but decided I'd > rather get an early night. Probably tomorrow evening, instead. Stuff I hope to > get going in the next day or so: variable interpolation, pluggable brains. > Don't hurt yourself. It looks like you got this down pretty good, I'll proablby be looking into incorporating much of this if not all into Zope, want to be in charge of zope LDAP? We can give you an area on the site. > Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from > http://www.interlink.com.au/anthony/python/ > > It requires David Leonard's ldapmodule, from > http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ > > It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the > ldapmodule works on other platforms (it's available in source, and also as > a windows .pyd) it should work elsewhere, too. > > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Wed Mar 17 06:17:46 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 17 Mar 1999 01:17:46 -0500 (EST) Subject: [Zope] recursive document oddity Message-ID: Hey zope freaks: Okay, I am driving myself crazy, maybe I am just doing something silly (hopefully). I am trying to write this recursive SQL result DTML (basically a tree):

    Category

    I have a variable pwd that I want to pass along to recurseCategories.. I tried something like (and in quotes) pwd is used in listCategories to get a list of categories in that 'path' A couple questions: 1. Should I be using a DTML method or a DTML document for something like this? 2. As I recurse will I lose access to documents in my current folder? I got a traceback to seemed to indicate that once I was into a certain depth I couldn't access listCategories. 3. Is there a more Zope-happy way to do this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mj@antraciet.nl Wed Mar 17 07:58:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 17 Mar 1999 08:58:44 +0100 Subject: [Zope] My own zope site... In-Reply-To: <36EEA147.50458405@profitscape.net> References: <36ED9827.7A8EB410@netscape.com> Message-ID: <4.1.19990317085034.00c271d0@lisp.atmm.nl> At 19:21 16/03/99 , Michael Bernstein wrote: >I've added this to the Zope category in the Open Directory Project: > >http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ > I added the ZDP website as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Wed Mar 17 12:28:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 13:28:32 +0100 Subject: [Zope] fsimport Message-ID: <36EF9FF0.EB6B1648@sol.cz> Does fsdir parameter of fsimport specify the remote directory (where Zope is) or local directory (from where I look at Zope)? -- Milos Prudek From prudek@sol.cz Wed Mar 17 13:27:35 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 14:27:35 +0100 Subject: [Zope] fsimport References: <36EF9FF0.EB6B1648@sol.cz> <36EFA878.F90AECE6@plaza1.snu.ac.kr> Message-ID: <36EFADC7.82074370@sol.cz> > > Does fsdir parameter of fsimport specify the remote directory (where > > Zope is) or local directory (from where I look at Zope)? > > remote directory in your terminology OK, so it still does not work for me. If someone on this conference would look at my mail from Monday, I would be grateful. The idea of having to put all my images into Zope by hand makes me very sick :-) -- Milos Prudek From rocon@pivot.net Wed Mar 17 13:54:49 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 17 Mar 1999 08:54:49 -0500 Subject: [Zope] Python Anyone: Linuxworld Article Message-ID: <01b901be707d$c1b77040$0201a8c0@hawkeye.bob.oc> Check out the article in Linuxworld: This is good for ZOPE newbees who wonder what and why about Python (The underlying language of ZOPE). http://www.linuxworld.com/linuxworld/expo/lw-python.html Title: "Python, anyone? " You may have dismissed Python as just another scripting language beginning with 'P,' but more and more open source developers are finding Python has some bite Summary At first, the Python scripting language may sound like another version of Perl, but Robert Richardson highlights the differences that make it useful in its own right. (1,500 words) By Robert Richardson *--- Paul Everitt mentions Zope in the discussion forums related to this article. -bobo connor bob@rocnet.com From raver@box.dust.za.net Wed Mar 17 16:43:16 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 17 Mar 1999 17:43:16 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 References: <199903160420.XAA01117@mail.digiweb.com>; <19990316204917.A659@RaVER.duck.org> <199903161952.OAA01245@mail.digiweb.com> Message-ID: <19990317174316.A263@RaVER.duck.org> On Tue, Mar 16, 1999 at 02:49:43PM -0500, Tom Jenkins wrote: > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() > > > > > > Anybody have any ideas? > > > > Why not use: > > > > select 'id_field_name' from 'table' where 'id_field_name' IS NULL > > > > id_field_name beeing the field with AUTO_INCREMENT set > > > Hi Sture, > Unfortunately, I don't think that'll work since after the insert there will be > a value (non null) in 'id_field_name' > > Thanks for taking the time for a suggestion, I really do appreciate it. > Probly I misunderstod your problem. Anyways I want to say that my suggestion does just what 'select last_insert_id()' does. namely return the number created in an auto_increment field during your last insert Sture Lygren > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > From kid@ans.net Wed Mar 17 16:52:45 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 17 Mar 1999 11:52:45 -0500 Subject: [Zope] Eric Kidd compares Zope and Frontier Message-ID: <19990317115245.A15201@throwingcopper.ans.net> Hi, I just saw an interesting thread over at http://www.scripting.com. Here's the direct link to the article: http://discuss.userland.com/msgReader$4124 Someone wrote a comparison of Zope and Frontier. Followed up by a technology demo of getting the two to talk via XML. Interesting stuff. Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From TomJenkins@zentuit.com Wed Mar 17 16:57:26 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Wed, 17 Mar 1999 11:57:26 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <19990317174316.A263@RaVER.duck.org> References: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 Message-ID: <199903171700.MAA04810@mail.digiweb.com> > Anyways I want to say that my suggestion does just what 'select > last_insert_id()' does. namely return the number created in an > auto_increment field during your last insert > > Sture Lygren > My profound apologies. "select from where IS NULL" does indeed return the same value as last_insert_id(). My apologies again. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From andy.smith@iname.com Wed Mar 17 17:12:23 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:12:23 -0500 Subject: [Zope] (no subject) Message-ID: <000901be7099$53119140$ce63efa1@venice> Hi All, I'm just uploaded a new Product to the contrib area. It is a poll product based on Amos's example. It uses PIL to draw piecharts of the poll results. I was originally going to include a precompiled PIL with the product, but the product swelled to 500k as a result, so instead I've left pointers to where to get PIL in the product documentation. I'll send a hypertext screenshot immediately after this message so that people can decide whether or not they want to go to the effort of downloading and installing PIL. Pls note that there are some problems I'm having with getting the GIFs to update appropriately, so after banging my head against a wall for a while [in true opensource tradition ;) ] I've decided to throw it open to the floor to see if anyone can find a workaround. I've also uploaded a 'fixed' version of the Guestbook example product, which broke going from Zope1.9 -> Zope1.10. Enjoy! Andy. From andy.smith@iname.com Wed Mar 17 17:16:14 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:16:14 -0500 Subject: [Zope] Poll product example screenshot.... Message-ID: <000a01be7099$dc8f2b30$ce63efa1@venice> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here's a screenshot from the new poll product... (Figures chosen at random and don't reflect the current state of mind of any person or persons ;) ). Cheers, A.. Edit Question Object Id question1 Question Piechart Not bad 64.0 (28.32%) Good 43.0 (19.03%) Ugly 32.0 (14.16%) Been Better 87.0 (38.50%) Responses response1 response2 response3 response4 ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

    Here's a=20 screenshot from the new poll product...

    (Figures=20 chosen at random and don't reflect the current state of mind of any = person or=20 persons ;) ).

    Cheers,

    A..

     

    Edit Question Object

  • Id question1
    Question =
    Piechart
      Not= =20 bad 64.0 (28.32%)
      Goo= d 43.0 (19.03%)
      Ugl= y 32.0 (14.16%)
      Bee= n=20 Better 87.0=20 = (38.50%)
    Responses
    =20 res= ponse1=20
    =20 res= ponse2=20
    =20 res= ponse3=20
    =20 res= ponse4=20 =20 =

    ------=_NextPart_000_000B_01BE706F.F3B92330-- From andy@ictibroker.com Wed Mar 17 17:34:02 1999 From: andy@ictibroker.com (Andy Smith) Date: Wed, 17 Mar 1999 12:34:02 -0500 Subject: [Zope] FW: [Zope] Poll product example screenshot.... Message-ID: <001801be709c$59458550$ce63efa1@venice> Hmm... the screenshot didn't seem to 'travel' too well, Guess you'll just have to install PIL to see it. ;) Cheers, A. From jharris@memphis.edu Wed Mar 17 17:52:24 1999 From: jharris@memphis.edu (Jim Harris) Date: Wed, 17 Mar 1999 11:52:24 -0600 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <000701be709e$ea4cd4c0$642fe18d@jharris.coe.memphis.edu> I contacted NexusWeb yesterday and they said they would provide a setup for Zope, but no support. They were not specific as to the setup. They did mention they supported Python. I was going to write them back to see if they ran Zserver, or just provided the links to Apache. They did have msql and mysql. The minimum plan to support Zope was the 50MB/$20 a month plan. The other site was out of my price range ($50/mo). I just started studying Zope yesterday to use for a project I was planning to use Visual Basic/ADO/ASP for. I'm testing on a Win95 machine, but plan to move testing to a Linux box. I decided before signing up with a hosting server to wait for Zope 2, which I've seen a couple of references to. What's the deal on that? One place promised a better integrated web server. If Zope moves more torward being a totally self contained server, then I don't want to mess with Apache or IIS. -----Original Message----- From: Robert Wentworth To: zope@zope.org Date: Tuesday, March 16, 1999 4:25 PM Subject: [Zope] Impact of Zope on hosting provider? >Right now my biggest obstacle to setting up a Zope-powered >site could be finding a hosting provider I have confidence >in who is willing to run Zope. When I asked my first-choice >provider about running Zope, they replied: > >> Though it's true that we can install programs that need root >> instlall, it only so when the program is low CPU/mem use and >> non-intrusive. Zope is neither, so to run it you would need to get >> your own dedicated server through us. > >A dedicated server is not a viable option for this site at >this point in time. So, a few questions: > >1) Are the provider's fears justified? What sort of > memory footprint, CPU requirements (for a site that > should have fairly low traffic at first), and other > impact are Zope likely to have on a hosting provider? > >2) Would anyone care to let me know what their experience > has been with the two hosting providers (NexusWeb and > CodeIt Computing) listed as known to host Zope-based > sites? (I've been sufficiently badly burned in the past > by bad hosting providers that I cannot justify signing > up for a provider without positive recommendations or > multiple alternatives for backup.) > >Robert Wentworth > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From arankine@lucent.com Wed Mar 17 21:07:09 1999 From: arankine@lucent.com (Rankine, Alastair) Date: Thu, 18 Mar 1999 08:07:09 +1100 Subject: [Zope] Newbie questions Message-ID: Hi Zopesters, I'm trying out Zope for the purpose of getting a book catalogue on the web. So far, I'm extremely impressed with it! Of course, I have some questions. (For the record, I am running Zope 1.10.2 with Apache 1.3.something on a MkLinux DR3 box, administered with IE4 on NT). 1. When you edit a DTML document using the Zope management interface and hit the update button, Zope goes away and tries to parse it to ensure that it's consistent DTML. If this fails, you are left with no option but the browser's back button, which, under IE4 anyway, seems to discard the changes you made to the document. Is there a fix or workaround (besides ctrl-A ctrl-C before clicking the update button) for this? Us newbies write lots of bad DTML :) 2. When a folder acquires an index_html document from further up in the heirarchy, the tag refers to the title of the index_html document, rather than the folder being displayed. How do you write the index_html document to display the title of the acquired object, rather than the index_html document itself? (Hope this is clear) 3. Finally, I need some advice about how best to lay out the website. Basically I'm trying to build a site containing a book catalogue. Here's what I've got so far: + Root + Titles [folder] - index_html + OriginSpecies [folder, title: "Origin of the Species", desc: "blah", author: "CharlesDarwin", year: 1854] - cover [image] + DiamondAge [folder, title: "The Diamond Age", desc: "blab", author: "NealStephenson", year: 1995] - cover [image] ... + Authors [folder] - index_html + CharlesDarwin [folder, title: "Charles Darwin", bio: "..."] - photo [image] + NealStephenson [folder, title: "Charles Darwin", bio: "..."] - photo [image] Hope the notation is clear enough. What I want to do is "link" the titles to their authors and vice versa. So the index_html document for Authors would display the author, their picture, bio, and a list of titles by them. A similar arrangement would apply for Titles. The author property of the title (*) links the title to author, but what's the best way to link backwards? Similarly, what's the best way to display the author's information for a title? All advice appreciated! Thanks. (*) assuming only one author for now From tschruefer@mail.howard.k12.md.us Wed Mar 17 21:15:41 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 17 Mar 1999 16:15:41 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903172113.QAA02057@mail.howard.k12.md.us> Thus far my attempts to install the Zope binary release on a Linux machine have been for nothing. The Install documentation and the Install program contradict each other at almost every turn. The docs say use ./install -u but the -u switch is gives a error message, saying it is a invalid switch and not supported at all. The install --help, says nothing about a -u switch. The docs say you can specify the cgi directory, with the -c switch, but the install program says that is a unsupported feature. The -s switch in the docs says this is to provide the superuser login and password to the install routine, yet the install program say this is used to strip tables (perhaps parsing the access file), none of the docs say anything more. I have tried numerous variations, all to no avail. Perhaps the ZDP should have started at the beginning, with usable install instructions, instead of with a FAQ. I must say that the screen shots in the PDF file and those docs are quite nice, but thats about it. Reading the PDF docs, just makes me want to get in and try Zope even more. Is there anyone that could help or give me some pointers ? Tom From cimarron@taylors.org Thu Mar 18 00:35:52 1999 From: cimarron@taylors.org (cimarron@taylors.org) Date: Wed, 17 Mar 1999 16:35:52 -0800 Subject: [Zope] multiple trees Message-ID: <199903180035.QAA28795@christopherrobin.kolo.net> There seems to be a problem with DTML documents which uses more than one .. sections. I'm seeing a python error when attempting to expand any node of the second tree. I'm going to try and fix this on my own as a way to familiarize myself with Zope internals but I thought others on this list might want to be aware of the problem and/or provide information about their own experience with multiple trees. Cimarron Taylor cimarron@taylors.org From wade@okaynetwork.com Thu Mar 18 00:37:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 17 Mar 1999 19:37:33 -0500 Subject: [Zope] ZAP In-Reply-To: References: Message-ID: <199903180036.TAA03738@gem.lightlink.com> > On Sun, 14 Mar 1999, Shaw, Howard wrote: > > > How can I configure ZAP so that all http requests go through the cgi? > > Zope is the only thing running through this apache, so I don't want > > everything on the site prefixed with Zope/ (or anything else, so no, I > > don't just want to know how to change the prefix). This is basically > > what is keeping me on ZopeHTTPServer. > > > > [snip] > > > > How can I make a Zope pcgi accessible as the root of a Zap install? > > Please help. > > In looking through my Apache configuration files, I tried to piece > together what changes I made. Here's what I think you need to do. > > In httpd.conf, make sure you have these lines (I put them at the end): > > Alias / /cgi-bin/Zope.cgi > > # Zope configuration maps /Zope/ to the Zope.cgi CGI script > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > NOTE: In the RewriteRule directive above, the [e=...] stuff should go > directly after the ...Zope.cgi/$1 section, with a space separating them, > e.g. ...Zope.cgi/$1 [e=HTTP...] > > You will need to munge the path in the RewriteRule directive, where it > says /home/httpd to be wherever your document root is. > > I did this a while back, and have since switched from Apache to ZServer to > test it out, so I haven't used it lately. However, this should work, as I > never changed the config files after I stopped using Apache. > > Let me know if you have problems; I'll do what I can to help. > > > Howard C. Shaw III > > jkh > Here's a setup that works for me. ----- ServerName www.okaynetwork.com ServerAdmin wade@okaynetwork.com DocumentRoot /home/ok/htdocs ErrorLog logs/okaynetwork.com-error_log TransferLog logs/okaynetwork.com-access_log RewriteEngine On RewriteLog logs/okaynetwork-rewrite-log RewriteLogLevel 0 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule (.*) /usr/local/Zope/Zope/Zap/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http d-cgi,l] --------- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Anthony Baxter Thu Mar 18 07:29:48 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 18 Mar 1999 18:29:48 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: Your message of "Tue, 16 Mar 1999 20:40:15 MDT." <199903170240.UAA04469@icebox.dlogue.net> Message-ID: <199903180729.SAA06949@mbuna.arbhome.com.au> >>> Michel Pelletier wrote > We here at DC (well, I'm out of the office this week, but I'm there > virtualy) have been kicking around an LDAP authentication mechanism, > probably a folderoid, to go against LDAP. In fact, this was supposed to > be one of my projects when I get back next week. From the details below > it looks like you have thought this out well, I didn't even consider > making an API of methods like XSQL methods, good idea! It's on the list. I was originally going to write a simple LDAP auth object, then thought about it a bit more and realised a generic interface into LDAP would be more useful, then I can bolt the auth on top. > > In ZLDAPconn: > > . Anything other than simple_bind(who, passwd) for connecting to the > > LDAP server > That's where we want to start... The way I figure it, I'll support this first. If/when someone needs something else, I'll look at supporting that. > Under the catagory 'result caching' you might want to consider making some > kind of Connection Manager in your LDAP Connection. A model I've been > kicking around is a CM class that manages Connections and uses a simple > caching algoritm. Not quite sure what you're getting at here :) > Wrapping all of the API in a class will also help yu > when you want to break out the LDAP stuff and stick it in shared. In > this way, it becomes a sort of 'Device Driver' (to use Ken's > terminology) for the entire Zope system. Hm. The LDAP connection already is a class. It's as much a device driver as the current Database Adaptors. > We're going to be doing this > with the IMAP functionality that NotMail uses. I'm assuming what > you call an LDAP connection is like a Database Adapter is to ZSQL methods. > Maybe you might want to consider calling these LDAP Adapters. Good point. Next version, they'll be called that. (I figure I'm allowed to make changes like this between versions 0.1 and 0.2 :) > The etcUserFolder product has a settable property to change the 'default > role' that the users are given. You can check it out from the download > page, it is also in cvs under Packages/Products/etcUserFolder That and maybe allowing a mapping for any organizationalRole that the users have. More useful for the "lecturer", "student" type roles. > I'd have to look at the code, I'll get back to you. (hey paul, I need a > laptop!) Yeah, Paul, get the boy a laptop. :) > > I had planned to get variable interpolation working tonight, but decided I'd > > rather get an early night. Probably tomorrow evening, instead. Stuff I hope > > get going in the next day or so: variable interpolation, pluggable brains. > > > Don't hurt yourself. It looks like you got this down pretty good, I'll > proablby be looking into incorporating much of this if not all into Zope, I've got variable interpolation _mostly_ working. For some reason, though, it doesn't pick up all the namespaces - I'm probably just not using the document templates right. I'm going to add DTML interp. to both the filters and to the baseDN. Depends on my supply of round tuits - I might get the pluggable brains also working shortly. I kinda see how they work now. > want to be in charge of zope LDAP? We can give you an area on the site. Hm - depends if it's easier to get to than my current web site. :) Anthony -- Anthony Baxter It's never to late to have a happy childhood. From Andreas Jung Thu Mar 18 09:17:46 1999 From: Andreas Jung (Andreas Jung) Date: Thu, 18 Mar 1999 10:17:46 +0100 (MET) Subject: [Zope] Python freezes in lwp_sema_p() Message-ID: We are running Python1.5.2b2 (with thread support) , latest DCOracle, Oracle 7.3 under Solaris 2.5.1. Some of our applications hang in about 10% when they run. We trussed the binaries and discovered that they all sleep in a lwp_sema_p() call. Python/thread_cthread.h seems to mention a problem with the Solaris PThreads implementation however I can't figure out if this is the real problem. I am not sure whether it's a problem of Python, DCOracle or the Oracle libraries. Any ideas or comments ? Thanks, Andreas _\|//_ (' O-O ') ------------------------------ooO-(_)-Ooo-------------------------------------- Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH Saarbrücker Daten-Innovations-Center Gutenbergstr. 11-23, D-66103 Saarbrücken, Germany Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509 Email: ajung@sz-sb.de (PGP key available) ------------------------------------------------------------------------------- From rocon@pivot.net Thu Mar 18 13:13:25 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 18 Mar 1999 08:13:25 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <004901be7141$318eaf00$0201a8c0@hawkeye.bob.oc> Hi Thomas, >Is there anyone that could help or give me some pointers ? Yup, those switch options are confusing so I avoid them ;-) First, the most helpful tool for me in working with Linux is "git". This is a nice character based navigation and file management utility. Just type git. It came on my RH Linux and is installed automatically without your request. This program is alot like the DOS Norton Commander that I started using years ago. So you get the distribution: Zope-1_10_2-linux2-x86.tgz I use git's F6 key to rename it zope1102.tgz to ease the long typing. Move it to a newly created directory (F7) named perhaps "zope". Then in that directory, type: tar -xvzf zope1102.tgz A new directory is then created under your new zope directory named: Zope-1_10_2-linux2-x86.tgz/ Go into this directory and type ***This is were you got stuck*** ./install ***No switches!!! Then edit the access file now in this directory and change the obscure username and password to your favorites with F4 key to use "vi" Press i to insert new user/passwrd -- example: zope:gogo Press escape then :wq to save. Then ./start to start zope and maybe later if you EVER want to stop zope (who would ever WANT to stop!, ./stop. BTW, if you want to test the integrity of the downloaded zope distro, only change the t to an x as in: tar -xvzf zope1102.tgz Enjoy!!! -bobo connor From mj@antraciet.nl Thu Mar 18 13:33:05 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 18 Mar 1999 14:33:05 +0100 Subject: [Zope] I don't trust this. Message-ID: <4.1.19990318141119.00c0ad80@lisp.atmm.nl> Hello list, are you there? Sorry, but I haven't had any mail from the Zope list, Zope-Dev list and the ZDP list for over 3 and a half hours. And I don't trust such quiet.. =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tschruefer@mail.howard.k12.md.us Thu Mar 18 17:12:06 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Thu, 18 Mar 1999 12:12:06 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903181710.MAA21630@mail.howard.k12.md.us> >Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: >Hi Thomas, > >***This is were you got stuck*** > >./install > >***No switches!!! > Ok, unstuck, whoops, stuck again. I guess I have to do this in little baby steps. Some sort of initiation ritual, I think. ;-) Now I am getting the error message below even though python is clearly in the bin directory under the Zope install directory. "./install: bin/python: No such file or directory" This is the shell install script: *** #!/bin/sh # Get script dir if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` cd $PYTHONHOME else PYTHONHOME=. fi export PYTHONHOME bin/python inst/product_install.py $* *** A little different than the PERL I am used to seeing, but I've managed to make heads-and-tails of the thing. - I checked the location of python in the Zope install dir, ok. - I checked to ensure that the sh shell was in the bin/ dir, ok. Next up, re-upload the Zope file and check for a corrupted archive. Any other ideas ? From adminjim@coe.memphis.edu Thu Mar 18 19:39:36 1999 From: adminjim@coe.memphis.edu (Jim Harris) Date: Thu, 18 Mar 1999 13:39:36 -0600 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <000601be7177$11a7a940$642fe18d@jharris.coe.memphis.edu> Hope you don't mind me butting in, but if you just want to check out Zope very quickly, run the Windows version on 95/98/NT. It was nothing to install, and I was playing with Zope two minutes after downloading it. Python is also a snap to insall on Windows. -----Original Message----- From: Thomas Schruefer To: Zope Date: Thursday, March 18, 1999 10:09 AM Subject: Re: [Zope] Newbie install help needed !!!!! > > >>Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: > >>Hi Thomas, >> > >>***This is were you got stuck*** >> >>./install >> >>***No switches!!! >> > >Ok, unstuck, whoops, stuck again. > >I guess I have to do this in little baby steps. Some sort of initiation >ritual, I think. ;-) Now I am getting the error message below even >though python is clearly in the bin directory under the Zope install >directory. > >"./install: bin/python: No such file or directory" > >This is the shell install script: > > >*** >#!/bin/sh > ># Get script dir >if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then > PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` > cd $PYTHONHOME >else > PYTHONHOME=. >fi > >export PYTHONHOME >bin/python inst/product_install.py $* >*** > >A little different than the PERL I am used to seeing, but I've managed to >make heads-and-tails of the thing. > > >- I checked the location of python in the Zope install dir, ok. >- I checked to ensure that the sh shell was in the bin/ dir, ok. > > >Next up, re-upload the Zope file and check for a corrupted archive. > > >Any other ideas ? > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Christopher.Abraham@cio.treas.gov Thu Mar 18 21:22:22 1999 From: Christopher.Abraham@cio.treas.gov (Christopher.Abraham@cio.treas.gov) Date: Thu, 18 Mar 1999 16:22:22 -0500 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <85256738.007567CA.00@mail.cio.treas.gov> Hi. Here's the required History: Cold Fusion almost then found PHP3 and now ZOPE. I am running a P100 RH5.2 Apache 1.3, Kernel 2.0.36 and I am pretty sure I have Zope running: http://memes.org But neither my guru or I can get Apache to dance with Zope -- I am having all kinds of problems getting the admin page to work with me and my Login/PW is just not taking. My guru cannot even get it going and suggests using the Python server -- but I shall not be dashed -- any more info you need, I will give you a wee bit more: Want to use MySQL and will be developing a Writer's site -- for my fun and no profit, currently at: http://coelaboration.com -- I want to publish Hyperfiction and Hypertext using Zope as opposed to Perl or flatstatic... Cheers in advance... Chris From tony.mcdonald@ncl.ac.uk Thu Mar 18 22:33:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 18 Mar 1999 22:33:01 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903182236.WAA24270@cheviot.ncl.ac.uk> Hi all, I have an application that consists of 140+ XML documents, roughly 100k bytes each that I want to be able to query (using XSL pattern matching at present) and output to XML/HTML and RTF format. This will happen in real time (if at all possible). At the moment, my XML documents are held as files in a real file system (sacrilige! :). However, I'd like to get them into the database structure if at all possible, as I imagine it will make things easier in terms of searching. For example, the XML file Cell Biology is a good thing. If it weren't for Cell Biology, you wouldn't be around. This is lecture 1. This is lecture 2. A big bok Would lend itself to creation in the Zope database really easily (I think). XML elements (document, topic) and attributes such as id (used to uniquely identify an element) and title would be properties of the DTML document/method. So long as the id numbers were properly arranged, it should be *relatively* (good word that!) simple to recreate the original XML document. I assume that parsing the XML (in actual fact, the DTML doc/method would consist of *very little* XML I think, it all being taken care of in properties) to create HTML would be, again, relatively easy (my own tendency is to use the 'title' attribute as a class identifier for cascading style sheets). My question is, do people think that this idea could fly? I have spent *a long time* looking at how to get our Word (sorry for saying that!) documents into a format that means they can be easily put into a database and thereby benefit from all the good things that means. Several cul-de-sacs and wasted weekends later, it seems to me that Zope is coming out to be the closest thing to a solution for my problem... (I know from off-list discussions that there's a definite 'weirdness' about how people have been wanting/needing to implement things and then finding that (a) Zope does it already, (b) there's a product available or (c) someones working on it... !). any thoughts, as usual, greatly appreciated. tone. From jae@kavi.com Thu Mar 18 22:58:22 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 14:58:22 -0800 (PST) Subject: [Zope] ZSQL direct traveral question Message-ID: I've been messing around with using direct traveral on the ZSQL methods. I'm having a problem getting the traveral to work with anything more than one level of depth, eg: http://zope.kavi.com/mem/2/comp_admin/contacts/ Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. But it does work in this case: http://zope.kavi.com/comp_admin/contacts/mem/2/ Is this a restriction on the use of ZSQL direct traveral, or am I doing something wrong. If this is a restriction on how you can use direct traversal, I was wondering why, and if it'd be possible to 'fix' this. If so, I'm willing to do it and supply a patch, I assume this is functionality comes from Zope/lib/python/Shared/DC/ZRDB/DA.py, either in the DA.__call__ or in the Traverse object. I'll have to mess around with it a bit to figure out exactely whats going on (but I figured I'd ask about it first). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Thu Mar 18 23:21:24 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 18 Mar 1999 18:21:24 -0500 (EST) Subject: [Zope] Parsing XML into/out of the database In-Reply-To: <199903182236.WAA24270@cheviot.ncl.ac.uk> Message-ID: On Thu, 18 Mar 1999, Tony McDonald wrote: > Would lend itself to creation in the Zope database really easily (I think). > XML elements (document, topic) and attributes such as id (used to uniquely > identify an element) and title would be properties of the DTML > document/method. So long as the id numbers were properly arranged, it should > be *relatively* (good word that!) simple to recreate the original XML > document. I assume that parsing the XML (in actual fact, the DTML doc/method > would consist of *very little* XML I think, it all being taken care of in > properties) to create HTML would be, again, relatively easy (my own tendency > is to use the 'title' attribute as a class identifier for cascading style > sheets). > > My question is, do people think that this idea could fly? I have spent *a > long time* looking at how to get our Word (sorry for saying that!) documents This is more or less what I did for my original FAQ product (but on a much smaller scale). I found out XML docs map nicely onto Zope's DB structure. I think you should give it a try because really it is not much effort to implement. Since the FAQ development has moved to zdp.zope.org my site is no longer needed so I created a guest account with the following authentication info: guest bobo at URL http://www.gaaros.com:9673 You can visit it and see my approach to the problem. I should also include the code of the external method that creates the Zope objects. (I believe a couple of more zopistas asked me for source access so here is your chance.) I have backed up Zope's DB so you can mess around as much as you want. Pavlos From jkhoffman@usa.net Thu Mar 18 23:38:42 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 18:38:42 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > I've been messing around with using direct traveral on the ZSQL methods. > I'm having a problem getting the traveral to work with anything more than > one level of depth, eg: > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > But it does work in this case: > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > something wrong. Without seeing your folder hierarchy, I'm not quite sure what's going on. Frankly, my head feels like it's going to explode when I try and figure out how your second example even worked. What are comp_admin and contacts? Folders? Where do they fit in your folder hierarchy? I have an event calendar, in which I use direct traversal of a ZSQL Method to display a particular event. My hierarchy is as follows: + events [Folder] - event_details_html [DTML Method] - dbFindEventById [ZSQL Method] My dbFindEventById method takes on parameter, event_id. To use direct traversal on my dbFindEventById query, using the event_details_html file to display the details of the event with event_id of 2 requires the following URL: http://localhost/events/dbFindEventById/event_id/2/event_details_html At first, I tried: http://localhost/events/dbFindEventById/2/event_details_html which looks very close to your first example, and it did not work. Then I realized you are required to specify the name of the parameter in the URL as well, so I added event_id before the 2, and I was off to the races. I'm sure I've misunderstood your problem somewhere, and if I did, I apologize for spouting off nonsense. But, I figured this just might help, since I got tripped up when I first tried to use direct traversal, also. Better safe than sorry. :^) > John Eikenberry jkh From jae@kavi.com Thu Mar 18 23:58:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 15:58:05 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > I've been messing around with using direct traveral on the ZSQL methods. > > I'm having a problem getting the traveral to work with anything more than > > one level of depth, eg: > > > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > > But it does work in this case: > > > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > > something wrong. > > Without seeing your folder hierarchy, I'm not quite sure what's going on. > Frankly, my head feels like it's going to explode when I try and figure > out how your second example even worked. What are comp_admin and contacts? > Folders? Where do they fit in your folder hierarchy? Ok, a bit more info... mem ZSQL method (on top level - stands for member company) + comp_admin folder (company admin) + contacts folder (contact info for that company) contacts has an index_html which uses information returned from the mem query (its not how I use it, it won't even display with just #var). 'mem' takes one argument: comp_id (of which 2 is a test case) > I have an event calendar, in which I use direct traversal of a ZSQL Method > to display a particular event. My hierarchy is as follows: > > + events [Folder] > - event_details_html [DTML Method] > - dbFindEventById [ZSQL Method] > > My dbFindEventById method takes on parameter, event_id. To use direct > traversal on my dbFindEventById query, using the event_details_html file > to display the details of the event with event_id of 2 requires the > following URL: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > At first, I tried: > > http://localhost/events/dbFindEventById/2/event_details_html > > which looks very close to your first example, and it did not work. Then I > realized you are required to specify the name of the parameter in the URL > as well, so I added event_id before the 2, and I was off to the races. Actually, I've found the reverse to be true. When I try: http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ I get this error: Invalid integer value for comp_id Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 413, in publish (Info: /db/m/comp_id/2/comp_admin/contacts/) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 414, in __getitem__ (Object: CopySource) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 386, in __call__ (Object: CopySource) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File lib/python/Shared/DC/ZRDB/sqltest.py, line 192, in render (Object: comp_id) ValueError: (see above) If I use creosote.spew to output the comp_id value before calling the query (I made spew an external method on the top level, this has come in very handy), the value resolves to 'comp_id'. But when I don't use the comp_id arg (like in the original example, and spew shows the value to be 2), it works fine as long as the method using it is the next on the URL. > I'm sure I've misunderstood your problem somewhere, and if I did, I > apologize for spouting off nonsense. But, I figured this just might help, > since I got tripped up when I first tried to use direct traversal, also. > Better safe than sorry. :^) Actually you are close, but in your example you use it as I said it works. In your code app can you do something like this (fictional change of your example): http://localhost/events/dbFindEventById/ event_id/2/modify_event/edit_event_details_html (should be all one line) Make more sense now? BTW, thanks for the help. :) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Fri Mar 19 02:18:35 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 18:18:35 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > > > At first, I tried: > > > > http://localhost/events/dbFindEventById/2/event_details_html > > > > which looks very close to your first example, and it did not work. Then I > > realized you are required to specify the name of the parameter in the URL > > as well, so I added event_id before the 2, and I was off to the races. > > Actually, I've found the reverse to be true. When I try: > > http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ > > I get this error: > > Invalid integer value for comp_id > < Traceback snipped > Ok, I think I figured out why we have different (opposite) results in this. I don't think you checked the "Allow direct traversal" checkbox on the advanced management page for the ZSQL method. If I unchecked it, then I could traverse like so... http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ After checking it, I could traverse in this way... http://zope.kavi.com/mem/2/comp_admin/contacts/ Strange... :) Still doesn't address my original problem thought. I still can't get access to any of the results of the 'mem/2' query anywhere other than directly after it (on the url). Ie. http://zope.kavi.com/mem/2/comp_admin/contacts/index_html Doesn't work, but... http://zope.kavi.com/mem/2/test_html Does... I'm still digging through the ZSQL code looking for a way to fix this. I'll let everyone know once I've figured it out. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jkhoffman@usa.net Fri Mar 19 03:13:36 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:13:36 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, John Eikenberry wrote: > > [snip] > > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... Ok, here's a thought. What about trying: http://zope.kavi.com/comp_admin/contacts/mem/2/index_html Since the 'mem' ZSQL Method is in your root folder, it will be acquired by all folders below the root folder. Thus, the URL above should tell ZPublisher to go to the /comp_admin/contacts folder, then call the acquired 'mem' ZSQL method, with 2 as an argument, and using index_html to display the results. (Assuming the parameter name is not required, because you have checked 'Allow direct traversal', as you described.) I am curious to know what the 'Allow direct traversal' button does on the Advanced tab. Can anyone else here comment on that? Frankly, I didn't know it existed, as I've been able to use direct traversal just fine without it. It's curious to me that it changes the behavior of the traversal in the manner you demonstrated. I'm dying to know why. :^) > John Eikenberry jkh From jkhoffman@usa.net Fri Mar 19 03:17:47 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:17:47 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > > I'm sure I've misunderstood your problem somewhere, and if I did, I > > apologize for spouting off nonsense. But, I figured this just might help, > > since I got tripped up when I first tried to use direct traversal, also. > > Better safe than sorry. :^) > > Actually you are close, but in your example you use it as I said it works. > In your code app can you do something like this (fictional change of your > example): > > http://localhost/events/dbFindEventById/ > event_id/2/modify_event/edit_event_details_html In this case, I would probably do: http://localhost/events/modify_event/dbFindEventById/ event_id/2/edit_event_details_html (should all be one line) > Make more sense now? Yup. > BTW, thanks for the help. :) You bet. By the way, what in the world is creosote.spew? :^) > John Eikenberry jkh From TomJenkins@zentuit.com Fri Mar 19 03:19:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 22:19:32 -0500 Subject: [Zope] Tracebacks and feeling pretty dumb Message-ID: <199903190322.WAA05466@mail.digiweb.com> Hey folks, Boy I'm feeling mighty dumb, but I just now, after maybe 8 hours of zope stuff (late night after work), discovered where the tracebacks were hiding from me. I searched this list, but never actually saw where they were printed, I finally saw it in the Trinkets Tutorial which I'm sure I read earlier . So just in case someone else is out there in the same boat as I was - the tracebacks are comments in the html error page. DOH! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From kid@kendermedia.com Fri Mar 19 03:47:36 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Thu, 18 Mar 1999 19:47:36 -0800 (PST) Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <19990319034736.16171.rocketmail@send206.yahoomail.com> ---Christopher.Abraham@cio.treas.gov wrote: > http://memes.org > > But neither my guru or I can get Apache > to dance with Zope -- I am having all > kinds of problems getting the admin page > to work with me and my Login/PW is just > not taking. You'll want to check out the doc/WEBSERVER.txt file under your Zope directory. Make sure your running a recent enough version of Apache and have mod_rewrite installed. Then, you need to configure rewrite rules so that Apache will pass authentication info through to Zope. Kevin _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com From simon@joyful.com Fri Mar 19 03:55:39 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 19:55:39 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" References: <36EE5791.1B7AD457@GestaltTechnology.com> Message-ID: Fredy Villa writes: > This is another post to make you aware of a new source of > information for Zope. You can access #zope on the EFNet servers. Their thanks for the resource - I want to check it out. Maybe you could answer this for me and other irc newbies, since I cannot find an answer elsewhere: All EFNet servers I've tried require me to be running "identd". Is there one which doesn't ? It's not on my default redhat system and I won't install it if I don't have to. -Simon From TomJenkins@zentuit.com Fri Mar 19 04:01:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:01:14 -0500 Subject: [Zope] IRC channel In-Reply-To: References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" Message-ID: <199903190404.XAA15203@mail.digiweb.com> > Fredy Villa writes: > > > This is another post to make you aware of a new source of > > information for Zope. You can access #zope on the EFNet servers. Their > > thanks for the resource - I want to check it out. Maybe you could > answer this for me and other irc newbies, since I cannot find an > answer elsewhere: > > All EFNet servers I've tried require me to be running "identd". Is > there one which doesn't ? It's not on my default redhat system and I > won't install it if I don't have to. > Simon, AFAIK, all the EFNet servers require identd. If you are running ip-masq then you need midentd. You can find it at rpmfind website ( http://rpmfind.net/RPM ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From TomJenkins@zentuit.com Fri Mar 19 04:17:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:17:00 -0500 Subject: [Zope] IRC channel In-Reply-To: <199903190404.XAA15203@mail.digiweb.com> References: Message-ID: <199903190420.XAA28663@mail.digiweb.com> > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > Sorry, my mistake, there isn't an rpm for midentd... here's the url ftp://ftp.ox.compsoc.org.uk/pub/users/steve/midentd/ get the midentd-0.1.1.tar.gz file -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From Anthony Baxter Fri Mar 19 04:43:38 1999 From: Anthony Baxter (Anthony Baxter) Date: Fri, 19 Mar 1999 15:43:38 +1100 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Your message of "Thu, 18 Mar 1999 23:01:14 CDT." <199903190404.XAA15203@mail.digiweb.com> Message-ID: <199903190443.PAA11704@mbuna.arbhome.com.au> Heck, identd is a trivial enough protocol. You can always just write one in 2 lines of python which just returns "sod off" as the username. :) That EFnet require it is somewhat puzzling. Anthony > > Fredy Villa writes: > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > From simon@joyful.com Fri Mar 19 06:15:21 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 22:15:21 -0800 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Anthony Baxter's message of "Fri, 19 Mar 1999 15:43:38 +1100" References: <199903190443.PAA11704@mbuna.arbhome.com.au> Message-ID: Anthony Baxter writes: > Heck, identd is a trivial enough protocol. You can always just > write one in 2 lines of python which just returns "sod off" as the > username. :) Heh :) Thanks all, for the info. From kevin@studioinfo.com Fri Mar 19 06:36:21 1999 From: kevin@studioinfo.com (Kevin Teague) Date: Thu, 18 Mar 1999 22:36:21 -0800 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: I installed the Zope binary on a linux box, and everything went well. User authentication worked successfully with Apache using the 'REMOTE USER' environment variable. Then I tried to get ZMySQLDA to work, but I couldn't get the Zope Python install to find 'libmysqlclient'. I got a build of Python 1.5.1 to successfully import MySQL. So I decided to reinstall Zope from source, so that I could use my own Python. The source Zope built okay, but when I tried to start Zope through the web browser I got an "Internal Server Error" message from Apache, the error log said I had a "Premature end of script header". I've checked permission on the var dir and user authentication still seems to work fine. I couldn't figure out why I was getting the error, so I tried re-installing the binary distribution of Zope. No luck there either, I get the same "premature end of script header" error message. I've checked the Zope.cgi file, and it seems o.k. Does anyone have any idea why Zope.cgi is failing on me? Is there something I have to do to Apache or Zope if I've removed the Zope folder and then untarred and re-installed a new Zope? Don't know if this'll help, but this is what I get when I run Zope.cgi from the command line: Status: 500 Internal Server Error Bobo-Exception-File: lib/python/ZPublisher/Request.py Content-Type: text/html Bobo-Exception-Type: exceptions.KeyError Bobo-Exception-Value: SCRIPT_NAME Content-Length: 363 Bobo-Exception-Line: 167 exceptions.KeyError Sorry, an error occurred.

    Kevin Teague Kevin@StudioInfo.com Temporary Nelson address: #6-560 Baker street Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 From tony.mcdonald@ncl.ac.uk Fri Mar 19 06:26:32 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 19 Mar 1999 06:26:32 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903190636.GAA00186@cheviot.ncl.ac.uk> > Since the FAQ development has moved to zdp.zope.org my site is no longer > needed so I created a guest account with the following authentication > info: > Many thanks Pavlos - I saw that the Doc effort had moved to zdp.zope.org and is using structured text, and thought that it was a bit of an opportunity lost (no disrespect to the Zope Doc Effort of course) as I was amazed to see that the FAQ system you wrote was XML-based and hence easily extensible. > guest > bobo > > at URL http://www.gaaros.com:9673 > > You can visit it and see my approach to the problem. I should also include > the code of the external method that creates the Zope objects. (I believe > a couple of more zopistas asked me for source access so here is your > chance.) I have backed up Zope's DB so you can mess around as much as you > want. Thats excellent! - thanks a lot. I'll be snooping around later on once I get into work - I had looked at XMLConfig almost straight away, but had to put it to one side whilst I got to grips with Zope (and Python!) fundamentals. At least I've got somewhere to start from now... again many thanks for this, tone. From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 08:58:20 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 08:58:20 -0000 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <001f01be71e6$a359ca20$5c773fc1@media1> Also, and this is important! Don't forget to make sure that the cgi driectory holding Zope.cgi has ExecCGI turned on. As I said this is important, later versions of Apache don't turn it on by default. HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Dangoor To: ; Sent: Friday, March 19, 1999 3:47 AM Subject: Re: [Zope] Newbie: How to make Apache Play Nice... >---Christopher.Abraham@cio.treas.gov wrote: >> http://memes.org >> >> But neither my guru or I can get Apache >> to dance with Zope -- I am having all >> kinds of problems getting the admin page >> to work with me and my Login/PW is just >> not taking. > >You'll want to check out the doc/WEBSERVER.txt file under your Zope >directory. Make sure your running a recent enough version of Apache >and have mod_rewrite installed. Then, you need to configure rewrite >rules so that Apache will pass authentication info through to Zope. > >Kevin >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 09:03:47 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 09:03:47 -0000 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: <004701be71e7$661d68a0$5c773fc1@media1> The error you get when running Zope.cgi from the command line is a red herring, ignore it? It comes about because SCRIPT_NAME is set by the Web Server and as you aren't running it through such, you will get errors telling you that various ENVVARS do not exist. As to your other problem, hmm, it still sounds as if the var dir is not set correctly, maybe? HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Teague To: Sent: Friday, March 19, 1999 6:36 AM Subject: [Zope] Zope install help needed: "Premature end of script header" >I installed the Zope binary on a linux box, and everything went well. User >authentication worked successfully with Apache using the 'REMOTE USER' >environment variable. Then I tried to get ZMySQLDA to work, but I couldn't >get the Zope Python install to find 'libmysqlclient'. I got a build of >Python 1.5.1 to successfully import MySQL. > >So I decided to reinstall Zope from source, so that I could use my own >Python. The source Zope built okay, but when I tried to start Zope through >the web browser I got an "Internal Server Error" message from Apache, the >error log said I had a "Premature end of script header". I've checked >permission on the var dir and user authentication still seems to work fine. >I couldn't figure out why I was getting the error, so I tried re-installing >the binary distribution of Zope. No luck there either, I get the same >"premature end of script header" error message. I've checked the Zope.cgi >file, and it seems o.k. > >Does anyone have any idea why Zope.cgi is failing on me? Is there something >I have to do to Apache or Zope if I've removed the Zope folder and then >untarred and re-installed a new Zope? > >Don't know if this'll help, but this is what I get when I run Zope.cgi from >the command line: >Status: 500 Internal Server Error >Bobo-Exception-File: lib/python/ZPublisher/Request.py >Content-Type: text/html >Bobo-Exception-Type: exceptions.KeyError >Bobo-Exception-Value: SCRIPT_NAME >Content-Length: 363 >Bobo-Exception-Line: 167 > > > >exceptions.KeyError > > >Sorry, an error occurred.

    > > >Kevin Teague >Kevin@StudioInfo.com > >Temporary Nelson address: #6-560 Baker street >Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jaime@ml.com Fri Mar 19 14:18:57 1999 From: jaime@ml.com (Jaime A. Jofre) Date: Fri, 19 Mar 1999 14:18:57 +0000 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <36F25CD1.69125518@ml.com> Can anyone tell me how to setup up Zope using PCGI with Netscape Enterprise Server 3.51? I have read WEBSERVER.txt, but it only details Apache. Any help would be greatly appreciated. Cheers, Jaime From p.bizzarri@icube.it Fri Mar 19 15:13:06 1999 From: p.bizzarri@icube.it (Paolo Bizzarri) Date: Fri, 19 Mar 1999 16:13:06 +0100 Subject: [Zope] Access control problems. Message-ID: <36F26982.C8DBAF5@icube.it> Hi everybody, I am in a FAQish problem. I am using ZopeHTTPServer for setting up a complex intranet site. However, access control do not seem to work at all. Either I can build a public site (which is viewable by everybody), or I have to use SuperUser passwd to enter in a private site. I would like to allow user A to see folder X but not folder Y, and so on. I have created users, assigned roles, but it seems not to work. BTW, cut & paste do not seem to work at all. Any suggestions ? Thanks. -- ----------------------------------------------------------------------- | Paolo Bizzarri, I3 Icube Srl, Via Ridolfi 15, 56100 Pisa, Italy | | Email: p.bizzarri@icube.it WWW: www.icube.it | | Tel: 050 97 02 07 Fax: 050 36 31 588 | |-----------------------------------------------------------------------| | Red Hat Support Partner & Samba Consultant | ----------------------------------------------------------------------- From FVilla@GestaltTechnology.com Fri Mar 19 15:53:35 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 19 Mar 1999 10:53:35 -0500 Subject: [Zope] IRC channel References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" <199903190404.XAA15203@mail.digiweb.com> Message-ID: <36F272FE.52C87A31@GestaltTechnology.com> Simon, irc.cs.cmu.edu doesn't require it, last I checked. Fredy Villa bohemio@thetruthhurts.com Tom Jenkins wrote: > > Fredy Villa writes: > > > > > This is another post to make you aware of a new source of > > > information for Zope. You can access #zope on the EFNet servers. Their > > > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Y2K problem? The Mayans didn't have a millennium-2K problem! > Eric S. Raymond at IPC7, on learning that the Mayan calendar > takes 28 octillion years to wrap around From Brian@digicool.com Fri Mar 19 16:19:52 1999 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 19 Mar 1999 11:19:52 -0500 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <613145F79272D211914B0020AFF64019FD99@GANDALF> > Can anyone tell me how to setup up Zope using PCGI with Netscape > Enterprise Server 3.51? I have read WEBSERVER.txt, but it > only details > Apache. Any help would be greatly appreciated. > > Cheers, > > Jaime Jaime, Please see the url http://www.zope.org/Download/Prereleases/NetscapePlugin Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jamesh@altavista.net Fri Mar 19 17:11:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 09:11:12 -0800 (PST) Subject: [Zope] Security tab in home grown Product Message-ID: I'm resending this to the zope list, because I didn't get any response from the zope-dev list. Hi. I have made my first Product (a little message wall that people can post colored messages to), but I am having some trouble with the Security tab. When I press the tab, I get a Permissions screen that looks as it should, but when I click the change button (no matter what permissions I change, if any), I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /wall/manage_changePermissions) File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in manage_changePermissions (Object: RoleManager) File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, in setRoles AttributeError: manage_main I don't doubt that I am causing this, but since it isn't occuring in my code, I don't know how to go about finding the source of the problem. Thanks for any help you can give. -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From billr@coinet.com Fri Mar 19 17:31:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 19 Mar 1999 09:31:42 -0800 Subject: [Zope] frames and external method lookups Message-ID: <9903190931.ZM14151@saab.coinet.com> I have a DTML Document that references an External Method. This document is embedded inside another DTML document. If I view this document, then the page is rendered correctly. If I now take this document and reference it from a tag, Zope complains and says it can't find the external method. What's different here that causing me problems? Here's some more details, including the traceback: 1. Zope-1.10.2-linux2-x86 2. The innermost DTML docuemnt (lighttablebar) refers to the extermal method like this: 'looprange' is my external method and is located in the top level folder 'ltblSize' is a property of the document that "includes" this document. This innermost DTML docuemnt is also located in the top-level folder. 3. The next DTML document (lighttable_frame) includes the previous document with a simple #var command (in between some other html stuff): This document has a property named 'ltblSize' defined as 6. This document lives two folders down from the top-level folder I can use the View tab in the manager to see the rendition of this page and it looks just fine and there are no complaints about looprange(). 4. If I include the previous DTML document in another DTML document that is specifying some frames, e.g.: Stock Book When I use the View tab to see what this page looks like, I get the two frames, but in the lighttable_frame frame, I get an error message about looprange being undefined: ---- start of traceback message ---- The specified module, looprange, couldn't be opened. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Gamba_home/Stockbook/LightTable/lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: lighttable_frame) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 205, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_In.py, line 620, in renderwob (Object: looprange(ltblSize)) File lib/python/DocumentTemplate/DT_Util.py, line 266, in eval (Object: looprange(ltblSize)) File , line 0, in ? File lib/python/Products/ExternalMethod/ExternalMethod.py, line 233, in __call__ (Object: CopySource) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 195, in getFunction (Object: CopySource) File lib/python/App/Extensions.py, line 137, in getObject Module Error: (see above) ---- end of traceback message ---- So again, what is happening when the DTML doc is being refered to inside a frame that is different than not in a frame (and more to the point, how do I get around this apparent problem)? -Bill Randle Central Oregon Internet billr@coinet.com From jim@digicool.com Fri Mar 19 17:55:06 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 19 Mar 1999 12:55:06 -0500 Subject: [Zope] Security tab in home grown Product References: Message-ID: <36F28F7A.5B117767@digicool.com> "James A. Hillyerd" wrote: > > I'm resending this to the zope list, because I didn't get any response > from the zope-dev list. > > Hi. > > I have made my first Product (a little message wall that people can post > colored messages to), but I am having some trouble with the Security tab. > When I press the tab, I get a Permissions screen that looks as it should, > but when I click the change button (no matter what permissions I change, > if any), I get the following error: > > Sorry, an error occurred. > > Traceback (innermost last): > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in > publish_module > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in > publish > (Info: /wall/manage_changePermissions) > File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in > manage_changePermissions > (Object: RoleManager) > File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, > in setRoles > AttributeError: manage_main > > I don't doubt that I am causing this, but since it isn't occuring in my > code, I don't know how to go about finding the source of the problem. > > Thanks for any help you can give. Zope (up to 1.10.x) expects every managed object to have a manage_main method that provides the default management interface for the object. You need to rename or create an alias from your default management method to manage_main. In Zope 1.10, there will be a new inherited method, manage_workspace, which should not be overridden, that picks the first item in you manage_options as the default management interface. This gives you more flexibility in naming and will allow more dynamic view management. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jamesh@altavista.net Fri Mar 19 18:32:25 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 10:32:25 -0800 (PST) Subject: [Zope] Security tab in home grown Product In-Reply-To: <36F28F7A.5B117767@digicool.com> Message-ID: On Fri, 19 Mar 1999, Jim Fulton wrote: > > Zope (up to 1.10.x) expects every managed object to have a manage_main > method that provides the default management interface for the object. > > You need to rename or create an alias from your default management > method to manage_main. > Oh, I see. So the manage_main I see is actually being acquired from the folder my product instance is installed in? If so that would explain why adding things to it actually adds things to it's parent folder. If I write a manage_main method, will it start magically working, or do I need to add it to __init__.methods and/or one of the __ac_permissions__ tuples? > In Zope 1.10, there will be a new inherited method, manage_workspace, > which should not be overridden, that picks the first item in you > manage_options as the default management interface. This gives > you more flexibility in naming and will allow more dynamic view > management. > Sounds cool to me. =) [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From ropjes@groovy.xs4all.nl Fri Mar 19 18:52:21 1999 From: ropjes@groovy.xs4all.nl (Rop Slijkerman) Date: Fri, 19 Mar 1999 18:52:21 +0000 (GMT) Subject: [Zope] NameError: In-Reply-To: <9903190931.ZM14151@saab.coinet.com> Message-ID: In a database with personal bookmarks wich I created as a test I get the following error when trying to update a bookmark. This is new. It worked before I had to reinstall Linux from scratch, wich had ofcourse nothing to do with zope. This error is the result of calling this method:

    Your data was Updated in the Database! The SQL statement (SQL_update_bookmarks): UPDATE bookmarks SET naam=, bookmark_url= WHERE nummer= - Rop From mbernstein@profitscape.net Fri Mar 19 19:38:05 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 11:38:05 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 Message-ID: <36F2A79D.FEF0FDD@profitscape.net> I apologize if for the off-topic nature of this post, but felt it was too important to ignore. Microsoft has released IE5, which is non-compliant with many of the standards that Microsoft has helped author. As widespread compliance to standards is one of the things that will greatly enhance Zopes success in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue deserved to be aired here too. The original statement from the WSP can be found at: http://www.webstandards.org/ie5.txt Following is an email posted to another list I am on, as I think this sums up the appropriate responses rather well. Michael Bernstein -------- Original Message -------- From: "A List Apart" Subject: A List Apart - Special Announcement To: "Michael Bernstein" Greetings Webmakers. The following is a special note from our friend Glenn Davis regarding a somewhat urgent and pressing issue. I won't waste time talking about it, as the following explains it all quite well. I hope everyone finds it in them to support the cause. Thanks. -Brian M. Platz, ALA Co-Moderator ------ Greetings! Since 1993 I've done my best to show everyone the good on the web and to help anyone who wanted it gain the knowledge they needed to create that good. Today I'm asking for your help. I'm not asking not as Glenn Davis, CTO of Project Cool, and not as Glenn Davis, cofounder of The Web Standards Project. I'm asking as Glenn Davis, a man who, for the past six years has worked to make the web a better place for everyone. Recently Microsoft released their 5.0 browser and after all this time there is still not 100% support for the standards that make web development easier. Standards that Microsoft helped create. Below are three simple letters. Very to the point letters that ask one very simple question. I'm hoping that you'll pick just one of those letters and use it to ask Microsoft the very simple question within. If you would copy just one of those letters into an email and send that email to wasp@microsoft.com I would very much appreciate it. This email address is one that Microsoft set up for email about standards. I'm also asking that you pass this email along to anyone else who has ever tried to make a webpage. My sincerest thanks for the help you provide. Sincerely and simply, Glenn Davis ------------------ CSS-1 Letter-------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for CSS-1 in your Internet Explorer browser. Could you please respond with the date when I might expect this? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) DOM Letter-------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for the W3C DOM in your Internet Explorer browser. Please let me know when that will happen. A simple date will suffice for a response. If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) HTML 4.0 Letter-------------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for HTML 4.0 in your Internet Explorer browser. On what date will this event occur? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) ------------------- From ben@amvalue.com Fri Mar 19 21:22:14 1999 From: ben@amvalue.com (Benjamin Suto) Date: Fri, 19 Mar 1999 16:22:14 -0500 Subject: [Zope] Web Application Software Message-ID: <36F2C006.9D7E89C9@amvalue.com> I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben From Paul@digicool.com Fri Mar 19 21:33:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 16:33:38 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with which to attach his persona. Glenn got his start at InfiNet, our former majority owner. I remember when he shared a 10x10 office with the other Mac person there. I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, I'm asking as a humble guy that singlehandedly saved the web" part. That paragraph is so pathetic, I can't believe he actually wrote it. IMO opinion, the only cause he is advancing is himself. It's a shame, because browser vendors _do_ need to be beaten into standards compliance and away from bait-and-switch. --Paul > -----Original Message----- > From: Michael Bernstein [mailto:mbernstein@profitscape.net] > Sent: Friday, March 19, 1999 2:38 PM > To: zope@zope.org > Subject: [Zope] OT: A petition condemning non-standard > compliance in IE5 > > > I apologize if for the off-topic nature of this post, but felt it was > too important to ignore. > > Microsoft has released IE5, which is non-compliant with many of the > standards that Microsoft has helped author. As widespread > compliance to > standards is one of the things that will greatly enhance Zopes success > in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue > deserved to be aired here too. > > The original statement from the WSP can be found at: > http://www.webstandards.org/ie5.txt > > Following is an email posted to another list I am on, as I think this > sums up the appropriate responses rather well. > > Michael Bernstein > > -------- Original Message -------- > From: "A List Apart" > Subject: A List Apart - Special Announcement > To: "Michael Bernstein" > > Greetings Webmakers. > > The following is a special note from our friend Glenn Davis > regarding a > somewhat urgent and pressing issue. I won't waste time > talking about it, > as > the following explains it all quite well. I hope everyone finds it in > them > to support the cause. > > Thanks. > > -Brian M. Platz, ALA Co-Moderator > > > ------ > Greetings! > Since 1993 I've done my best to show everyone the good on > the web and > to > help anyone who wanted it gain the knowledge they needed to > create that > good. Today I'm asking for your help. I'm not asking not as Glenn > Davis, > CTO of Project Cool, and not as Glenn Davis, cofounder of The Web > Standards > Project. I'm asking as Glenn Davis, a man who, for the past six years > has > worked to make the web a better place for everyone. > Recently Microsoft released their 5.0 browser and after > all this time > there is still not 100% support for the standards that make web > development > easier. Standards that Microsoft helped create. > Below are three simple letters. Very to the point letters that ask > one > very simple question. I'm hoping that you'll pick just one of those > letters and use it to ask Microsoft the very simple question > within. If > you would copy just one of those letters into an email and send that > email > to wasp@microsoft.com I would very much appreciate it. This email > address > is one that Microsoft set up for email about standards. I'm > also asking > that you pass this email along to anyone else who has ever > tried to make > a > webpage. > My sincerest thanks for the help you provide. > > > Sincerely and simply, > Glenn Davis > > ------------------ > CSS-1 Letter-------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > CSS-1 in your Internet Explorer browser. Could you please > respond with > the > date when I might expect this? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > Sincerely, > (Your name here) > (Your company name here) > > > DOM Letter-------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > the > W3C DOM in your Internet Explorer browser. Please let me > know when that > will happen. A simple date will suffice for a response. > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > HTML 4.0 Letter-------------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > HTML > 4.0 in your Internet Explorer browser. On what date will this event > occur? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > ------------------- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Fri Mar 19 21:25:51 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Fri, 19 Mar 1999 16:25:51 -0500 Subject: [Zope] ZServer licensing Message-ID: <199903192129.QAA13415@mail.digiweb.com> Hello all, Since ZServer is based on Medusa, does a commercial enterprise have to pay the $200/computer license? Or is ZServer released under a true Open Source license (somehow)? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From mbernstein@profitscape.net Fri Mar 19 21:36:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 13:36:16 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 References: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Message-ID: <36F2C350.7DD65AF5@profitscape.net> Paul Everitt wrote: > > Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with > which to attach his persona. Glenn got his start at InfiNet, our former > majority owner. I remember when he shared a 10x10 office with the other > Mac person there. > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, > I'm asking as a humble guy that singlehandedly saved the web" part. > That paragraph is so pathetic, I can't believe he actually wrote it. Ooh, that is so harsh, dude. :^) > IMO opinion, the only cause he is advancing is himself. It's a shame, > because browser vendors _do_ need to be beaten into standards compliance > and away from bait-and-switch. Ok, but what do you think of using the three templated emails? I feel that they're rather well written, and could be effective. After all, this is about results, right? Michael Bernstein From petrilli@amber.org Fri Mar 19 21:40:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Fri, 19 Mar 1999 16:40:24 -0500 Subject: [Zope] ZServer licensing In-Reply-To: <199903192129.QAA13415@mail.digiweb.com>; from Tom Jenkins on Fri, Mar 19, 1999 at 04:25:51PM -0500 References: <199903192129.QAA13415@mail.digiweb.com> Message-ID: <19990319164024.B22929@amber.org> On Fri, Mar 19, 1999 at 04:25:51PM -0500, Tom Jenkins wrote: > Hello all, > Since ZServer is based on Medusa, does a commercial enterprise have > to pay the $200/computer license? Or is ZServer released under a true > Open Source license (somehow)? I believe the current agreement that Digital Creations has reached with Sam Rushing (the author of Medusa) allows for open-source-style distribution of ZServer so long as it's used with Zope. Paul can probably corret the exact legal situation, but basically DC bought an unlimited license to give it away ... say thank you :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From simon@joyful.com Fri Mar 19 22:07:54 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 14:07:54 -0800 Subject: [Zope] ZServer licensing In-Reply-To: Christopher Petrilli's message of "Fri, 19 Mar 1999 16:40:24 -0500" References: <199903192129.QAA13415@mail.digiweb.com> <19990319164024.B22929@amber.org> Message-ID: Christopher Petrilli writes: > probably corret the exact legal situation, but basically DC bought an > unlimited license to give it away ... say thank you :-) they *bought* it ? really ? From Paul@digicool.com Fri Mar 19 23:00:26 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:00:26 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F26@GANDALF> Michael wrote: > Paul wrote: > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. > Hyper Star, > > I'm asking as a humble guy that singlehandedly saved the web" part. > > That paragraph is so pathetic, I can't believe he actually wrote it. > > Ooh, that is so harsh, dude. :^) OK, I agree, and I ought to just focus on his words rather than on him. Public retraction on the personal stuff, BUT I absolutely stand behind taking offense at the words. If you're going to lead an offensive based on principal, make the self-aggrandizement a bit more subtle. Hmm, didn't turn out to be much of a retraction. :^) --Paul From Paul@digicool.com Fri Mar 19 23:04:45 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:04:45 -0500 Subject: [Zope] ZServer licensing Message-ID: <613145F79272D211914B0020AFF640190D9F27@GANDALF> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but basically DC > bought an > > unlimited license to give it away ... say thank you :-) > > they *bought* it ? really ? We reached a mutually agreeable arrangement whereby Medusa could become the core for our object publishing system, under the Zope license. Definately turned out to be a win-win-win (Sam, DC, and Zope). --Paul From simon@joyful.com Fri Mar 19 23:10:31 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 15:10:31 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Fri, 19 Mar 1999 10:53:35 -0500" References: <199903190404.XAA15203@mail.digiweb.com> <36F272FE.52C87A31@GestaltTechnology.com> Message-ID: Fredy Villa writes: > irc.cs.cmu.edu doesn't require it, last I checked. I get: [info] Connecting to irc.cs.cmu.edu port 6667... {irc.cs.cmu.edu} *** Looking up your hostname... {irc.cs.cmu.edu} *** Checking Ident {irc.cs.cmu.edu} *** Found your hostname [info] Not enough parameters: Not enough parameters [info] You have not registered From vanandel@ucar.edu Sat Mar 20 00:56:24 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Fri, 19 Mar 1999 17:56:24 -0700 Subject: [Zope] Status of Collector? Message-ID: <199903200056.RAA27359@stout.atd.ucar.edu> I see that the bug report and feature request lists are implemented using the "Collector". What's the status of this? 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) 2) Is it purchased from Digital Creations? Thanks much. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From jae@kavi.com Sat Mar 20 01:50:55 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 17:50:55 -0800 (PST) Subject: [Zope] ZServer licensing In-Reply-To: <19990319164024.B22929@amber.org> Message-ID: On Fri, 19 Mar 1999, Christopher Petrilli wrote: > I believe the current agreement that Digital Creations has reached with > Sam Rushing (the author of Medusa) allows for open-source-style > distribution of ZServer so long as it's used with Zope. Paul can AFAIK, ZServer was released (including Medusa) under the same license as the rest of Zope. Which means that all of it is free software, including the medusa code it contains. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Sat Mar 20 02:09:29 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 18:09:29 -0800 (PST) Subject: [Zope] #raise problem? Message-ID: I just used the #raise tag for the first time, and its not working the way I thought it was supposed to. When I raise, I get always just get... Sorry, and error occured. (plus the traceback, but that's not relevant) Where my DTML looks like this... You are not authorized to view this information. (I didn't use Unauthorized as I didn't want an a login box) The problem is that I thought that it was supposed to display... You are not authorized to view this information. NOT Sorry, and error occured. Any tips? PS. The title is set to "Permission Denied" as its supposed to. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From hadar@verticality.com Sat Mar 20 15:03:58 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:03:58 -0500 Subject: [Zope] Status of Collector? In-Reply-To: <199903200056.RAA27359@stout.atd.ucar.edu> Message-ID: <000a01be72e2$e1beb620$7863efa1@hadar.bestweb.net> Joe wrote: > I see that the bug report and feature request > lists are implemented using the "Collector". > What's the status of this? > > 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) Nope. > 2) Is it purchased from Digital Creations? Yes. At the moment, we are selling Collector. A number of copies have been sold already. There are a couple of things to note about a few of the packages that we have been selling (relatively privately lately): 1) Most have little documentation (read the source Luke :-) 2) Our license specifically reserves the right to give the software away at some future point (so you need to realize you are paying to get it now, and shouldn't be annoyed when/if others get it for free!) 3) Our license specifically prohibits redistribution, or the creation of derivative works (for distribution) 4) We permit unlimited internal use of the code, including operating public websites 5) We offer email-based support for 90 days (for 2 contacts usually) 6) The license is for 5 developers only. If you have more, you buy more copies 7) Additional support options are available for purchase. The point of the above isn't to make a lot of money. We're selling more copies than we anticipated, but hardly enough to make this our business model. The point of charging is to cover the inevitable support costs of shipping a product that has little documentation, but is more technically advanced to use than the content-oriented Zope general release. A secondary benefit is that people who purchase now are clearly motivated to use the product(s). Therefore, the support questions tend to be focused around real-world use of the products, and help us make them more robust for the inevitable Open Source release (whenever that might be). So, which products are we currently offering for sale? 1) Collector 2) Z Tables 3) Z Network Client 4) Infoseek DA In general, pricing is at $1,500 per package. The exception in the above list is Collector, which is $2,000. The reason? It makes heavy use of Z Tables, so essentially you are getting two products for the price on 1.3333 products :-). Those who wish to discuss this (either to become customers, or to tell me that we're "off base") should write to me directly, and _not_ post to the list. Hadar Pedhazur From hadar@verticality.com Sat Mar 20 15:10:21 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:10:21 -0500 Subject: [Zope] ZServer licensing In-Reply-To: Message-ID: <000b01be72e3$c60f80c0$7863efa1@hadar.bestweb.net> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but > > basically DC bought an unlimited license to give > > it away ... say thank you :-) > > they *bought* it ? really ? I know that a number of people responded to this already, including Paul. However, he didn't give as concrete response as this direct question requests. The answer is _yes_, Digital Creations most definitely paid _real money_ to Sam for the right to embed parts of Medusa in ZServer. However, the intent of the license is to allow unlimited, free, Open Source(tm) use, within the Zope environment. If you don't intend to use Zope, then you should be licensing Medusa separately from Sam Rushing. We highly recommend it (obviously), and have put our money where our mouth is. The reason that this is an important question to answer is that we are so committed to the Open Source movement, that not only do we release stuff that we wrote, but when appropriate, we will invest hard cash to further the community as well (ZServer being but one example). From tpatrick@IndigoNetworks.com Sat Mar 20 18:20:12 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Sat, 20 Mar 1999 12:20:12 -0600 Subject: [Zope] Web Application Software Message-ID: <57D47461794DD211825300A0C9D17EF906C89F@IGOPDC01> I do not know much about btrieve. If you can make btrieve a data source you are home free. All you need is the connector/drivers. http://www.zope.org/Download/Adapters Also look into: http://www.python.org/download/Contributed.html#Database Typically these modules make there way into zope as they are existing python modules. Actually I would gather that Btrieve has a c interface that would make a great product. As with all projects .... it depends. Using attributes is the key to zope. If you take advantage of its ability to store session variables Zope is far better than other solutions because you do not need a database to store info during a transaction, you can simply write it to an attribute in zope thus lowering the # database calls. I guess the implementation depends on allot of variables that were not listed in your email. 1. # of concurrent users 2. # of queries and "How databasy is the application? Big Queries? OnChange?" 3. Specifics on your data model 4. # of tasks required 5. How OO(Object Oriented) are you? It is a difficult concept to cover but developmental access to ZOPE is remote by nature. Anything you can do in Zope is accessible anywhere, by anyone else. Except for installing modules and products, you do not need machine access ---> Everything is done online and inside of Zope. It is convenient that way. Look into the bug collector for the ZOPE site. It allows many levels of access to the bug database except there is not database just Ztables. It might be just the ticket. http://www.zope.org/Collector Also take a look at the example folder here http://www.zope.org/Download/Contrib Specifically the DTML EXAMPLE FOLDER --> IT WILL GIVE YOU LOTS O' CODE and HINTS Just think in OO and Zope will work. Best of luck. Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Benjamin Suto [mailto:ben@amvalue.com] Sent: Friday, March 19, 1999 3:22 PM To: zope@zope.org Subject: [Zope] Web Application Software I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From roeder@berg.net Sat Mar 20 17:47:22 1999 From: roeder@berg.net (Maik Roeder) Date: Sat, 20 Mar 1999 18:47:22 +0100 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <99032019551700.01550@alpha> Hi all ! I am new to Zope, and I have a problem with External Methods. Everytime I change the implementation of my file in Extensions/test.py I have to reimport the External Method to see the changes. What am I doing wrong ? I just want the changes I made to the source code to be reflected when I reload a page ! I hope someone can explain what I am doing wrong here. Maik Röder Some more details: I have a folder called VMBI and an external method test in it. Everything works just fine, the index_html file has a call to the external method, which just prints "Hello World!" So the following URL http://localhost:9673/VMBI/test prints Hello World ! But when I change the original source code to print for example Hello Zope ! Then upon reloading the web page http://localhost:9673/VMBI/test there still is printed Hello World ! What's going on here ? From jae@kavi.com Sat Mar 20 22:08:52 1999 From: jae@kavi.com (John Eikenberry) Date: Sat, 20 Mar 1999 14:08:52 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <99032019551700.01550@alpha> Message-ID: On Sat, 20 Mar 1999, Maik Roeder wrote: > Everytime I change the implementation of my file in Extensions/test.py I have > to reimport the External Method to see the changes. You don't have to delete and recreate an External Method each time you change it's file. But you do have to go back to its properties page and hit the "Edit" button to reload its module (this is actually a nice feature of python, being able to reload modules at run time). > What am I doing wrong ? I just want the changes I made to the source > code to be reflected when I reload a page ! Well, it may be possible to stat the External Methods file each time its used, and reload it if its changed (you'd have to store its last modification time somewhere to compare against). This probably isn't done for performance reasons. Perhaps it could be linked to the BOBO_DEBUG_MODE environmental variable or something to address this issue. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Sat Mar 20 22:52:10 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 14:52:10 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Message-ID: Is there a similar way to reload code for a Product, or is the shutdown/restart of Zope necessary? If I do have to continue the shutdown/restart process, is there any way of tuning PCGI so that it loads up faster? Thanks. -james On Sat, 20 Mar 1999, John Eikenberry wrote: > > You don't have to delete and recreate an External Method each time you > change it's file. But you do have to go back to its properties page and > hit the "Edit" button to reload its module (this is actually a nice > feature of python, being able to reload modules at run time). [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From jamesh@altavista.net Sat Mar 20 23:52:37 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 15:52:37 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <36F42B23.39763A52@rubic.com> Message-ID: On Sat, 20 Mar 1999, Jeff Bauer wrote: > "James A. Hillyerd" wrote: > > If I do have to continue the shutdown/restart process, is > > there any way of tuning PCGI so that it loads up faster? > > In the pcgi/Util directory, you'll find a killpcgi.py > script. You could hack it to perform a restart, i.e. > launch a new pcgi process after killing the old one. > This would speed up your initial connect time and be > much faster during debugging (multiple restarts). > But wouldn't that kill the Zope process instead of having it shut itself down? How gracefully does Zope exit when receiving a SIGTERM? > Best regards, > > Jeff Bauer > Rubicon, Inc. > [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From quinn@challenge.calarts.edu Sun Mar 21 03:25:19 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Sat, 20 Mar 1999 19:25:19 -0800 Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Your message of "Sat, 20 Mar 1999 15:52:37 PST." Message-ID: <199903210325.TAA36206@challenge.calarts.edu> > On Sat, 20 Mar 1999, Jeff Bauer wrote: > > > "James A. Hillyerd" wrote: > > > If I do have to continue the shutdown/restart process, is > > > there any way of tuning PCGI so that it loads up faster? > > > > In the pcgi/Util directory, you'll find a killpcgi.py > > script. You could hack it to perform a restart, i.e. > > launch a new pcgi process after killing the old one. > > This would speed up your initial connect time and be > > much faster during debugging (multiple restarts). > > A simple way that works for me is, when debugging, have a normal cgi version postfixed with -c and use that. This brings me to another thing: the default zope distribution doesn't include ZCGI and friends, I assume because Zope users supposedly have no interest in normal cgi. I think it should be included anyway, so that Full Zope is a superset of Only ZP/ZT. That's more intuitive, and then you don't have to download both if you want to use both :) And ZCGI.py is only a small text file, after all. And perhaps zope users are interested in ZCGI after all, or does zope make assumptions about running persistently (can't see how it could, without violating http's statelessness). And as far as tuning pcgi: you could shorten pcgi_socket():delay or the 2 second sleep() at the end of pcgiStartProc(). The first one could probably be pretty safely shortened with the miniscule cost of a chance of a few extra connect() calls, but the second one should probably stay the same, although I'm not clear on its purpose (give time for the child to sort itself out?). Here's a random question: how come the win32 pcgiConnect uses CONNDELAY (defined in pcgi.h as 1), while the unix version says int delay=1; ? See, that's the problem with open source: all sorts of grubby randoms can go rooting through your code :) From jeffbauer@bigfoot.com Sun Mar 21 04:10:43 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 22:10:43 -0600 Subject: [Zope] Why do I have to reimport External Methods ? References: <199903210325.TAA36206@challenge.calarts.edu> Message-ID: <36F47143.814CF865@rubic.com> Quinn Dunkan wrote: > And as far as tuning pcgi: you could shorten pcgi_socket():delay > or the 2 second sleep() at the end of pcgiStartProc(). The first > one could probably be pretty safely shortened with the miniscule > cost of a chance of a few extra connect() calls, You may season to taste. The 2 second pause seemed safe enough on most tested systems, since we're flying blind. We've reserved an extra header byte to designate out-of-band data that could be much smarter about how to handle this, eventually. > but the second one should probably stay the same, although > I'm not clear on its purpose (give time for the child to > sort itself out?). I don't have the code here, but it's probably trying to avoid some problem that I encountered when it was missing . > Here's a random question: how come the win32 pcgiConnect uses > CONNDELAY (defined in pcgi.h as 1), while the unix version > says int delay=1; ? Probably historical flotsam. The win32 portion of pcgi is almost a completely separate product and only coexists with its Unix cousin by virtue of an overabundance of #ifdef clauses. I've mentioned this before, but it probably won't hurt to repeat. I don't think the win32 version of pcgi as the best solution for this sort of thing. It's mainly there to fill out a niche. Process launch is more expensive under Windows than Unix, so the Medusa/ZServer approach is probably more sensible in that environment, where good performance is desired. > See, that's the problem with open source: all sorts of grubby > randoms can go rooting through your code :) I don't consider that a problem. ;-) Best regards, Jeff Bauer Rubicon, Inc. From tsarna@endicor.com Sun Mar 21 21:17:56 1999 From: tsarna@endicor.com (Ty Sarna) Date: 21 Mar 1999 21:17:56 GMT Subject: [Zope] Calendar tag released Message-ID: <922051077.270607@zoo-of-death.endicor.com> People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From raver@box.dust.za.net Mon Mar 22 09:52:16 1999 From: raver@box.dust.za.net (Raver) Date: Mon, 22 Mar 1999 10:52:16 +0100 Subject: [Zope] Make site searchable Message-ID: <19990322105216.A461@box.dust.za.net> Hi! I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Help is much appreciated! Sture Lygren From wade@okaynetwork.com Mon Mar 22 13:44:22 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 08:44:22 -0500 Subject: [Zope] one 'document' in many 'folders' Message-ID: <199903221343.IAA17544@gem.lightlink.com> As a demonstration project to try and get a client to go with Zope, I'm converting a newsfeed database that I had originally built using Perl. The object of the game is to pull fresh articles from a Reuters server every two hours and put them in a bin. A human editor goes through the bin, culls and sorts the articles, edits where appropriate. One article may appear in more than one section of the site. For example, an article titled "Zope Is Cool" might appear in the Python, Web Development, and Open Source sections. Each section has its own contents page. This is where I get confused. My Perl application simply used the filesystem as a database, and generated three separate static copies of "Zope Is Cool", placing one in each of three directories: /python, /web_development, and /open_source. I suspect there are much better ways to do it in Zope, but how do I organize things? My naive idea is to make each article a Document, one of whose properties is a list (or dictionary) of categories in which it should be placed. Generating each section's contents page would then take some figuring out, and performance on doing the contents page would be a concern. If there's a better way, I'd certainly appreciate hearing about it. Signed, Confused a/k/a Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From sfranke@cdc-group.com Mon Mar 22 14:32:06 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 15:32:06 +0100 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Correct me if I'm wrong, but the only way I see to do this *inside* the Zope application is to keep all your articles inside one folder (pool) and have key documents in your tree structure which reference an article in the pool. I don't know if problems appear when you establish an acyclic directed graph structure in the object hierarchy itself (I asked the question myself months ago without an answer). I see no point why it shouldn't work, but it is not maintained by the application. An interesting fact is that your object's properties vary when accessed by different paths due to the acquisition structure. An object inside Zope's database (again, correct me, if...) doesn't know about its father. It only knows about its sons, the aq_parent path is constructed on each access. Would also like to hear more about this... Stefan > -----Ursprüngliche Nachricht----- > Von: Wade Leftwich [SMTP:wade@lightlink.com] > Gesendet am: Montag, 22. März 1999 13:44 > An: zope@zope.org > Betreff: [Zope] one 'document' in many 'folders' > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should > be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. > > Signed, > > Confused a/k/a > > > > > > Wade Leftwich > Okay Network Services, Ithaca NY > tel 607-277-1334 fax 607-272-3612 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Paul@digicool.com Mon Mar 22 14:49:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 22 Mar 1999 09:49:14 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <613145F79272D211914B0020AFF640190D9F2D@gandalf.digicool.com> Jim wrote: > I decided before signing up with a hosting server to wait for > Zope 2, which > I've seen a couple of references to. What's the deal on > that? One place > promised a better integrated web server. If Zope moves more > torward being a > totally self contained server, then I don't want to mess with > Apache or IIS. I expect ZServer, which is the better integrated package that you're talking about, to enter beta within the next three weeks. --Paul From petrilli@amber.org Mon Mar 22 14:44:11 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 09:44:11 -0500 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net>; from Raver on Mon, Mar 22, 1999 at 10:52:16AM +0100 References: <19990322105216.A461@box.dust.za.net> Message-ID: <19990322094411.A5636@amber.org> On Mon, Mar 22, 1999 at 10:52:16AM +0100, Raver wrote: > Hi! > > I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Check out the FAQ on http://zdp.zope.org it has some information on how to use the built-in searching capabilities :-) It's not perfect, and needs lots more work, but it's a start. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From kid@kendermedia.com Mon Mar 22 15:05:07 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 10:05:07 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <001b01be7475$6665dd20$7c5addc7@kid> ----- Original Message ----- From: Wade Leftwich To: Sent: Monday, March 22, 1999 8:44 AM Subject: [Zope] one 'document' in many 'folders' > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. This application sounds similar to stuff that I (and others on this list are trying to accomplish). > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? My immediate term solution is to make multiple copies of the article in the ZDB. I agree that this is suboptimal. Paul@DC has mentioned that they are working on a "Catalog" feature that they would like to integrate with Zope. This feature will be *perfect* for this application (and many others). Unfortunately, I don't think this is on the very near term radar scope. Depending on how far out Catalog is, and when I manage to finish off the basic necessities for my sites, I was thinking of delving into Zope's btree stuff and trying to put together some kind of search interface. Right now, though, I've still got a bunch of work to do before I get to that point. Kevin From wade@okaynetwork.com Mon Mar 22 15:39:05 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 10:39:05 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <199903221538.KAA22051@gem.lightlink.com> What a great mailing list! I posted my question, shovelled the driveway (Ithaca NY, 8" of heavy wet snow last night), had breakfast and an extra cup of coffee, then came back to my desk to find 2 good answers. Thanks Stefan and Kevin. Well, on the one hand I'm pleased to hear that my question wasn't trivial. But I'm disappointed to hear that my problem is difficult. I'm competing against Cold Fusion here, and the problem resolves itself pretty easily with linked tables. (At least until I actually try to write the code.) So maybe I should just co-opt the competition and use ZSQL? But the odb is so nice, I really want to make it work that way. I don't really need for the URLs to look like a directory structure: instead of /open_source/zopeiscool, it would be okay for the article URL to be /zopeiscool?section=open_source. But that still leaves the problem of generating a contents page for each section. I suppose I could have a script that periodically-or-on-demand walks through the articles and generates a fresh static contents page for each section. Seems kind of non-zopish, but that might be the best way to get decent rendering performance on the contents page anyway. (The site is very active.) >an acyclic directed graph structure in the object hierarchy itself Yow! The original question: > > -----Ursprüngliche Nachricht----- > > Von: Wade Leftwich [SMTP:wade@lightlink.com] > > Gesendet am: Montag, 22. März 1999 13:44 > > An: zope@zope.org > > Betreff: [Zope] one 'document' in many 'folders' > > > > As a demonstration project to try and get a client to go with Zope, I'm > > converting a newsfeed database that I had originally built using Perl. > > > > The object of the game is to pull fresh articles from a Reuters > > server every two hours and put them in a bin. A human editor goes > > through the bin, culls and sorts the articles, edits where > > appropriate. > > > > One article may appear in more than one section of the site. For > > example, an article titled "Zope Is Cool" might appear in the > > Python, Web Development, and Open Source sections. Each > > section has its own contents page. > > > > This is where I get confused. My Perl application simply used the > > filesystem as a database, and generated three separate static > > copies of "Zope Is Cool", placing one in each of three directories: > > /python, /web_development, and /open_source. I suspect there are much > > better ways to do it in Zope, but how do I organize things? > > > > My naive idea is to make each article a Document, one of whose > > properties is a list (or dictionary) of categories in which it should be > > placed. Generating each section's contents page would then take some > > figuring out, and performance on doing the contents page would be a > > concern. > > > > If there's a better way, I'd certainly appreciate hearing about it. > > > > Signed, > > > > Confused a/k/a > > > > > > > > > > > > Wade Leftwich > > Okay Network Services, Ithaca NY > > tel 607-277-1334 fax 607-272-3612 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Mon Mar 22 15:42:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Mon, 22 Mar 1999 10:42:22 -0500 (EST) Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221343.IAA17544@gem.lightlink.com> Message-ID: On Mon, 22 Mar 1999, Wade Leftwich wrote: > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I suggest you try out your idea first. It sounds simple and straightforward and performance won't be a problem unless you have too many entries (but I am only guessing). > placed. Generating each section's contents page would then take > some figuring out, Assuming you have a folder Entries and folders Python and Zope. An entry in the entries folder is a DTML doc with a lines property named sections containing the sections (folder names) where the given entry belongs to. In the root folder you have a DTML method like: (untested)

    contents:

    ... Do something (ie link to the entry or render the entry etc ... you can call this method from inside the index_html method in each section's folder. Pavlos From johanl@bahnhof.se Mon Mar 22 16:38:07 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 17:38:07 +0100 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <4.1.19990322173318.035daf00@mail.bahnhof.se> Pavlos wrote: >Assuming you have a folder Entries and folders Python and Zope. An entry >in the entries folder is a DTML doc with a lines property named sections >containing the sections (folder names) where the given entry belongs to. >In the root folder you have a DTML method like: (untested) This is great, I'm planning on doing exactly this myself. Roughly, if I don't want sluggish performance, what would the upper limit be in regard to number of articles? Are we talking hundreds of articles? Thousands? /J - Zope ultra-newbie ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:01:49 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:01:49 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221538.KAA22051@gem.lightlink.com> Message-ID: <001601be7485$ad4671e0$7863efa1@bestweb.net> Sorry to post a commercial plug here, but it seems in stride with my post from this weekend to another question (Collector). Basically, Z Tables would be a pretty perfect fit (IMHO). I realize that you too realize that (sort of), because you suggested going the ZSQL route. Clearly, there are similarities. But, Z Tables has already been independently benchmarked as _kicking a**_ performance-wise, and is also more closely aligned with the gestalt that you indicated you liked about the object database. Just a thought (and a few bucks, of course :-). From TomJenkins@zentuit.com Mon Mar 22 17:03:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 22 Mar 1999 12:03:00 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903221706.MAA28840@mail.digiweb.com> Hi Phil, Sorry I didn't make things clear (maybe I'll update the list?). Yes I solved my problem and feel really dumb. I didn't realize that the traceback is in the error page as a comment. Once I found that out, I saw immediately that the arguments passed in had a couple of extra fields that I didn't use (the master and detail tables share some initial fields). I took them out of the sql statement and the form, but I didn't remove them from the argument list. (Just an FYI, the system allows you to add additional detail records, the first one is autogenerated from the master) > Hi Tom, > > I have been on vacation and can't tell whether you have solved your problem. > > If you are still having problems email me. I am doing exactly what you > want to do so I will dig through my code and send you some tested examples > if you like. > > Phil. > > >To followup my last post, I'm getting an exception when trying to use > >MySQL's "select LAST_INSERT_ID()" function: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From amos@aracnet.com Mon Mar 22 17:18:12 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 22 Mar 1999 09:18:12 -0800 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net> Message-ID: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> At 10:52 AM 3/22/99 +0100, Raver wrote: >I'm working on an intranet site (using Zope). Now I need to make the site >searchable. Tried using htdig, but without luck (should it work with zopesites?). Unless you do something tricky, I doubt you will be able to get normal search engines to work with a Zope site, since I belive that most search engines want to read HTML files from the filesystem for indexing. >Now I wonder - is there a builtin feature in zope that can fix my problem, or >are there other programs like htdig that works with zope? Right now there is a simple Find mechanism, but it isn't really a robust search facility. In addition, Zope now includes low-level Python packages for indexing. So the basic tools are there, but there isn't an easy to use, out of the box search engine in Zope. We're working on a much better solution to this problem. We're calling it Zope Cataloging, and it is currently built with ZTables. I believe that like ZTables, Zope Cataloging will eventually be free, and become a core part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( -Amos From M.Faassen@vet.uu.nl Mon Mar 22 17:29:08 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 22 Mar 1999 18:29:08 +0100 Subject: [Zope] one 'document' in many 'folders' References: <001601be7485$ad4671e0$7863efa1@bestweb.net> Message-ID: <36F67DE4.4890F29@pop.vet.uu.nl> Hadar Pedhazur wrote: > > Sorry to post a commercial plug here, but it seems in stride > with my post from this weekend to another question > (Collector). As long as it's you (i.e. important cause of Zope's open sourcing) posting commercial plugs on zope@zope.org, I doubt many people would mind. :) [ZTables] Although I'm still a complete ZTables newbie, I've seen ZTables come up repeatedly when there are similar design problems. This would indeed seem to indicate ZTables are a good fit. :) Regards, Martijn From johanl@bahnhof.se Mon Mar 22 17:34:14 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 18:34:14 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <4.1.19990322182853.03607220@mail.bahnhof.se> Amos Latteier wrote: >>I'm working on an intranet site (using Zope). Now I need to make the site >>searchable. Tried using htdig, but without luck (should it work with >zopesites?). > >Unless you do something tricky, I doubt you will be able to get normal >search engines to work with a Zope site, since I belive that most search >engines want to read HTML files from the filesystem for indexing. [Apologies if this post is considered off-topic on this list] You might want to try Webinator, an outstanding search engine available at: http://www.thunderstone.com/webinator/ It's free to use for up to 10,000 documents. It works by fetching documents over HTTP (not your file system), so it should work with Zope. However, the free version requires an Internet connection to check with the license server, so it might be impractical for an intranet soluition without full Internet access. Hope That Helps, /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:46:34 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:46:34 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <36F67DE4.4890F29@pop.vet.uu.nl> Message-ID: <001e01be748b$ed844f60$7863efa1@bestweb.net> Martijn Faassen wrote: > Although I'm still a complete ZTables newbie, > I've seen ZTables come up > repeatedly when there are similar design > problems. This would indeed > seem to indicate ZTables are a good fit. :) I agree :-). Of course, this is precisely why we intend to release it (eventually) as Open Source(tm). We truly feel that the community will benefit, so we will release it. In the meantime, we're swamped, and prioritizing workload based on hard currency makes for simple decisions... From sfranke@cdc-group.com Mon Mar 22 18:19:56 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 19:19:56 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> I just thought a little more about the approach having a pool and some proxy objects that refer to the pool. I think it could be made quite neat when using just the following code for the proxies (DTML documents): So you just need to put zope_is_cool inside your pool and add DTML documents with the above code under the same id to your folder structure wherever you like. Just check it out. Two caveats: - You have to use DTML documents, not methods, otherwise id() refers to the folder's id - Make sure that zope_is_cool really exists inside your pool, or you get an infinite redirection! (zope_is_cool is not found in the pool and then sought for along the aquisiton path, which refers to zope_is_cool itself, which redirects to the pool which ...) Maybe this could be even generalized to some kind of "symbolic link" product. Ideas anyone? Stefan From kid@kendermedia.com Mon Mar 22 18:43:22 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 13:43:22 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> Message-ID: <001d01be7493$df67f820$7c5addc7@kid> ----- Original Message ----- From: Stefan Franke To: ; Sent: Monday, March 22, 1999 1:19 PM Subject: Re: [Zope] one 'document' in many 'folders' > I just thought a little more about the approach having a pool > and some proxy objects that refer to the pool. > > I think it could be made quite neat when using just the > following code for the proxies (DTML documents): > > An alternate solution could be something like for your "link" methods. I think this would take better advantage of acquisition. A document could pick up its headers and footers from the category, instead of the pool. It does seem like someone could create a "symlink" product pretty easily. Kevin From eq3pvl@eq.uc.pt Mon Mar 22 19:45:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Mon, 22 Mar 1999 19:45:09 +0000 Subject: [Zope] Trying to understand the Scheduler Message-ID: <36F69DC5.2FBB044@eq.uc.pt> Zope is great. It's so great that I guess I'm trying to use it for doing something different from what zope it's expected to do. I want to make some SQL scripts to access different databases and collect the data in a new table. That I can do with the following external method that calls see_data and put_data ZSQLMethods def get_data(self): result = self.see_data() self.put_data(value=result._data[0][1]) return None Then I wish to make this kind of data management automatic every hour. I dug in the sources and I found out the Scheduler class, which I think is what I need (is it?). But I'm having some trouble using it. This was the external method I tried (without success). def eventGetData(self): rev = RegularEvent(get_data,(),interval=60) self.schedule(rev) return(None) It seems that RegularEvent is not available. Besides, is schedule available trough acquisition in the folder? Can someone give me some light on this. I don't even know if it's possible to use the Scheduler with external methods so it would be great at least to know I'm in the right path. Thanks -- Pedro Vale Lima eq3pvl@eq.uc.pt From rocon@pivot.net Mon Mar 22 19:49:15 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 22 Mar 1999 14:49:15 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases Message-ID: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Looking for some enlightenment: I understand that Ztables was formerly Tabula an object database. If one were starting from scratch without legacy data would it make sense to use an object database instead of a relational database? If so, is ZTables/Tabula a full, robust database system that can scale up and exceed the features of Oracle or SQLxxx databases? What are the pros/cons of Object vs Relational databases. Currently it appears that Ztables/Tabula is priced at $1,500 but eventually may become open source. From recent posts on the list *"Make site searchable" *"one 'document' in many 'folders'" It seems like Ztables would be an Ideal solution to these problems. ie, rather than the kludge of multiple copies of the SAME document, ONE copy in the database. Also, searching by key or full text would be possible. But for further enlightenment, can anyone point to good examples on the web of the use of ZTables/Tabula? woops, your request to has been denied! :-) -bobo connor From jim@digicool.com Mon Mar 22 19:53:24 1999 From: jim@digicool.com (Jim Fulton) Date: Mon, 22 Mar 1999 14:53:24 -0500 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> Message-ID: <36F69FB4.5787CB99@digicool.com> Do not try to understand the scheduler. It's not really implemented nor is it useful for anything at this time. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Mon Mar 22 20:01:53 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 15:01:53 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases In-Reply-To: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Mon, Mar 22, 1999 at 02:49:15PM -0500 References: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Message-ID: <19990322150153.C5814@amber.org> On Mon, Mar 22, 1999 at 02:49:15PM -0500, Robert OConnor wrote: > Looking for some enlightenment: > > I understand that Ztables was formerly Tabula an > object database. By nature anything named "tabula" wouldn't be a pure object database :-) OODB don't have tables, tables are a relational concept, and I believe ZTables is a relational database last I checked---b ut then I've never seen it either, but the implications by Jim/Paul/et. al. are that it is something along these lines. > If one were starting from scratch without legacy data > would it make sense to use an object database instead > of a relational database? Maybe, it all depends on your data, the interdependencies, and what kind of queries you run, how ad-hoc, and what level of reporting tools you need. OODB are mature, but their supporting structure (reporting tools, modeling tools, and more importantly Zen :-) are quite lacking in my opinion). > If so, is ZTables/Tabula a full, robust database > system that can scale up and exceed the > features of Oracle or SQLxxx databases? i doubt it, but then, Oracle/et al are not necessarily the right answer for all problem sets, it's not a one hammer fits all nails solution. > What are the pros/cons of Object vs > Relational databases. Dear gods, there's thousands of papers written on this topic ;-) References are faster in OODB, ad-hoc is easier in RDB, and there are a billion other blends... it's also necessasry to understand network databases in my mind before you approach OODB. You just can't generalize to this level, it's impossible, and a "quick" overview of OODB v. Relational would require about 30 pages :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From FVilla@GestaltTechnology.com Mon Mar 22 22:25:28 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Mon, 22 Mar 1999 17:25:28 -0500 Subject: [Zope] passings vars to sql method Message-ID: <36F6C357.1F277AE3@GestaltTechnology.com> Zopists, I run into a problem. I have a DTML Methos that call an SQL Method. The SQL method, displayTasks, has two parameters, userID and statusID. The DTML method does have access to the variables userID and statusID prior to calling the sql method with a tag. The DTML method looks like this:

    List of tasks:
    >
    THE SQL methos look like this: select * from task_schedule where task_schedule.userID = AND task_schedule.statusID = -------------------------------------------------- I basically can't run the query because it cannot get a value for userID or statusID. How do I pass these vars to the sql method from a dtml method??? Thanks in advance, Fredy Villa FVilla@GestaltTechnology.com From raver@box.dust.za.net Mon Mar 22 22:30:55 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 22 Mar 1999 23:30:55 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com>; from Amos Latteier on Mon, Mar 22, 1999 at 09:18:12AM -0800 References: <19990322105216.A461@box.dust.za.net> <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> Message-ID: <19990322233055.A314@RaVER.duck.org> On Mon, Mar 22, 1999 at 09:18:12AM -0800, Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > > >Now I wonder - is there a builtin feature in zope that can fix my problem, or > >are there other programs like htdig that works with zope? > > Right now there is a simple Find mechanism, but it isn't really a robust > search facility. In addition, Zope now includes low-level Python packages > for indexing. So the basic tools are there, but there isn't an easy to use, > out of the box search engine in Zope. > > We're working on a much better solution to this problem. We're calling it > Zope Cataloging, and it is currently built with ZTables. I believe that > like ZTables, Zope Cataloging will eventually be free, and become a core > part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( > > -Amos > Sounds promising - hurry up will ya! :) > Sture From jbb@spyderlab.com Mon Mar 22 23:26:00 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 18:26:00 -0500 (EST) Subject: [Zope] passings vars to sql method In-Reply-To: <36F6C357.1F277AE3@GestaltTechnology.com> Message-ID: On Mon, 22 Mar 1999, Fredy Villa wrote: > Zopists, > > I run into a problem. I have a DTML Methos that call an SQL Method. > The SQL method, displayTasks, has two parameters, userID and statusID. > > The DTML method does have access to the variables userID and statusID > prior to calling the sql method with a tag. > > The DTML method looks like this: > > -------------------------------------------------- > I basically can't run the query because it cannot get a value for userID > or statusID. > How do I pass these vars to the sql method from a dtml method??? Freddy, did you make the variables you are passing to your SQL method parameters of the SQL method? If not they won't be looked up in the request, they will only be searched via acquisition. This is described in the Z SQL guide where it shows the order of lookup for SQL method parameters. Have fun! > Thanks in advance, > > Fredy Villa > FVilla@GestaltTechnology.com ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From vanandel@ucar.edu Tue Mar 23 01:30:13 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Mon, 22 Mar 1999 18:30:13 -0700 Subject: [Zope] sort order for tree display? Message-ID: <199903230130.SAA00571@stout.atd.ucar.edu> I'm still experimenting with ZOPE and the FAQ tool, which uses the 'tree' display widget. When I add a category or a FAQ entry, these items seem to appear in reverse order of the order I added them. The FAQ widget index_html DTML contains the line: On what basis are the categories sorted? By name of the object's folder? Is there anyway to get the entries sorted in the order they were entered? Thanks much! Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From webmaster@mtear.com Mon Mar 22 23:48:45 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:48:45 -0500 Subject: [Zope] Re: Zope digest, Vol 1 #185 - 21 msgs References: <199903222000.MAA18778@zope.codeit.com> Message-ID: <36F6D6DD.D270C58E@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From webmaster@mtear.com Mon Mar 22 23:52:03 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:52:03 -0500 Subject: [Zope] Re: Calendar tag References: <199903222000.MAA18778@zope.codeit.com> <36F6D6DD.D270C58E@mtear.com> Message-ID: <36F6D7A3.819ED7E2@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From jarvis.sd082@ex.tel.co.jp Tue Mar 23 03:44:35 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 12:44:35 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Hi all! I'm having a problem with running queries containing long numbers. I found in db.py that the data type NUMBER is converted to an integer which overflows in my case. The errors: Error, oci.error: (1455, 'ORA-01455: converting column overflows integer datatype\012') Traceback (innermost last): File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish (Info: /queries/wisdom/customer-Line/manage_test) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ (Object: CopySource) File db.py, line 198, in query File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, in fetchmany File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, in fetchone File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, in _error oci.error: (see above) I tried changing line 219 in query() in db.py: from if scale==0: type='i' to if scale==0: type='f' in order to force a float type, but this has no effect, it seems. I'm sure that I'm misunderstanding something here. Any pointers to where I can look to fix this would be greatly appreciated. TIA, John Jarvis Tokyo Electron FE, Ltd. From jbb@spyderlab.com Tue Mar 23 04:21:47 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 23:21:47 -0500 (EST) Subject: [Zope] ZOracleDA and long numbers In-Reply-To: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') Without having yet looked at the source(*) could this be an error occuring in Oracle itself? I just noticed the ORA-* which is typically an Oracle error message. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com (*) - BEWARE :) From jarvis.sd082@ex.tel.co.jp Tue Mar 23 04:49:03 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 13:49:03 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA461@telisnt1020.is.tel.co.jp> I have no problems with other applications as long as I stick with floats. Notably, Zope on Windows running through ODBC has no problems--the values are all converted to python L types. (Hey! maybe I should take a look at the ODBC code...) This is what originally led me to believe that the problem wasn't with Oracle, but within the OCI interface to Zope. I also thought that it also might have something to do with my Linux install, but SQL*Net doesn't have problems and Zope works wonderfully except for long numbers. Environment info: Zope 1.10.2 ZOracleDA 2.0.0 RedHat Linux 5.2 Oracle Net8 Client Apache > -----Original Message----- > From: Jordan B. Baker [SMTP:jbb@spyderlab.com] > Sent: Tuesday, March 23, 1999 1:22 PM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. > > ------- > Jordan B. Baker -- jbb@spyderlab.com > weaving the web @ http://www.spyderlab.com > (*) - BEWARE :) > From MHammond@skippinet.com.au Tue Mar 23 07:24:35 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 18:24:35 +1100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <004c01be74fe$35088aa0$0801a8c0@bobcat> Ive started playing with DocTemplate for a project, but I will be using it sans Zope. I hope this is still the appropriate place... I want DocTemplate to expose an object model, and it seems perfect for the task. However, Im having trouble using "." expressions. Code speaks louder than words, so my code is: ## class Spam: def eggs(self): return "Eggs" spam=Spam() from DocumentTemplate import * ss=HTML('Eggs are ') print ss(spam=spam) ss=String('Eggs are %(spam.eggs)s') print ss(spam=spam) ## What Im hoping to do should be quite obvious - I want to refer to "spam.eggs" in the DTML. With the HTML example, #var expr="spam.eggs()" is the best I can get. It seems ugly to me, and I feel there must be a better way. Using the String example, I can't make _anything_ work. Any I missing something? Is there something I can do so that String('Eggs are %(spam.eggs)s') does what I want? Please CC me - Im not on the list (but did peruse the archives before mailing...) Thanks, Mark. From raver@pc-125.andoy.vgs.no Tue Mar 23 11:25:04 1999 From: raver@pc-125.andoy.vgs.no (Sture Lygren) Date: Tue, 23 Mar 1999 12:25:04 +0100 (CET) Subject: [Zope] #tree - trouble Message-ID: Hi! How come this code (from within index_html) doesn't show files and folders within my folder? ( ) doesn't work either) This is using Zope 1.10.2 on linux (2.0.35) All I get is a blank screen - how come?? From Paul@digicool.com Tue Mar 23 11:54:23 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 06:54:23 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Mark wrote: > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) Here's an alternative that works: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) and a second choice: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) --Paul From MHammond@skippinet.com.au Tue Mar 23 12:00:11 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 23:00:11 +1100 Subject: [Zope] Questions about DocumentTemplate. In-Reply-To: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Message-ID: <005001be7524$b4a29960$0801a8c0@bobcat> > Here's an alternative that works: Thanks for the response. My problem is that I want a deep object model. I want the user to be able to say "spam.eggs" or "pantry.eggs" etc. Just using eggs wont do - I really need it qualified. The solution I came up with was: class DotWrapper: def __init__(self, ob): self._obj_ = ob def __getattr__(self, attr): bits = string.split(attr, '.') ob = getattr(self._obj_, bits[0]) for bit in bits[1:]: ob = getattr(ob, bit) return ob Then: s=Spam() print s.ss(DotWrapper(s)) does pretty-much the right thing... Thanks, Mark. From sfranke@cdc-group.com Tue Mar 23 12:40:24 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 13:40:24 +0100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <01E40461E003D21195CC0080296495D80B12E9@gates.cdc-group.com> Mark Hammond wrote: >The solution I came up with was: > > class DotWrapper: > def __init__(self, ob): > self._obj_ = ob > def __getattr__(self, attr): > bits = string.split(attr, '.') > ob = getattr(self._obj_, bits[0]) > for bit in bits[1:]: > ob = getattr(ob, bit) > return ob Small caveat: Since whitespaces could occur in an nested attrbute access ("a. b .x") , it's better to string them first. An alternative approach for DotWrapper's __getattr__ could be (not tested): def __getattr__(self, attr): bits = map (string.strip, string.split(attr, '.')) return reduce (getattr, bits, self._obj) Stefan From wade@okaynetwork.com Tue Mar 23 12:46:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Tue, 23 Mar 1999 07:46:33 -0500 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <199903231245.HAA17730@gem.lightlink.com> At Mon, 22 Mar 1999 09:18:12 -0800 Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > If your search engine works via http it should work OK with Zope. Thunderstone Webinator (thunderstone.com) does this, and there's a free version that I think will do up to 10,000 docs. (The commercial version costs $700.) There's a command-line switch that tells Webinator to go ahead & index URLs that include /cgi- bin/. -- Wade Leftwich (satisfied Thunderstone customer). Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Tue Mar 23 13:35:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 08:35:38 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <613145F79272D211914B0020AFF6401907BB91@gandalf.digicool.com> Thomas wrote: > Thus far my attempts to install the Zope binary release on a Linux > machine have been for nothing. The Install documentation and > the Install > program contradict each other at almost every turn. We'll look at overhauling the install documentation for the next release. In the meantime, could you provide more examples of how it can be improved beyond the -u confusion? --Paul From michel@digicool.com Tue Mar 23 14:17:15 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 23 Mar 1999 09:17:15 -0500 Subject: [Zope] RE: Install Zope on Web Host? Message-ID: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> > -----Original Message----- > From: Jeff Rawlins [mailto:penweb@olypen.com] > Sent: Tuesday, March 23, 1999 8:08 AM > To: support@digicool.com > Subject: Install Zope on Web Host? > > > I can't seem to find on your site whether Zope can be > installed on a web > hosting acct. or must be installed directly on your own server. > Thanks, > Jeff Rawlins > Jeff, I have cc'ed your question to the list, not to defer it, but to let you pick the brains of several people who have tried, some successful, some not, to run zope as a user in a web hosting environment. None of us here have tried it so we're not really the ones to ask. It is true there is no documentation on Zope with web hosting, perhaps your discussion will provide information for the Zope Documentation Project, AKA the Martijn Conspiracy. As I understand it, the web hosting provider you pick is key to the whole issue. If they run the kind of environment that works with Zope, great. If they don't (and most probably don't by default) you must communicate to them clearly what you want. If they are cooperative and cool, they will oblige you and join our Zope hosting family. If you can't get ahold of them and/or they don't care, your out of luck unless you go with a Zope friendly provider of which there are two to be found here.: http://www.zope.org/Community/ZHP -Michel From TomJenkins@zentuit.com Tue Mar 23 14:34:47 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 09:34:47 -0500 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <199903231437.JAA27247@mail.digiweb.com> Hey Sture, Check to see if your index_html is a DTML Document. DTML Document has its own namespace and doesn't use the folder's. If you change DTML Document to a DTML Method then you'll pick up the folder's files and folders. > Hi! > > How come this code (from within index_html) doesn't show files and folders > within my folder? > > > > > > ( ) doesn't work either) > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From kid@kendermedia.com Tue Mar 23 14:51:23 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Tue, 23 Mar 1999 09:51:23 -0500 Subject: [Zope] RE: Install Zope on Web Host? References: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> Message-ID: <002301be753c$9fd86880$7c5addc7@kid> > > -----Original Message----- > > From: Jeff Rawlins [mailto:penweb@olypen.com] > > Sent: Tuesday, March 23, 1999 8:08 AM > > To: support@digicool.com > > Subject: Install Zope on Web Host? > > > > > > I can't seem to find on your site whether Zope can be > > installed on a web > > hosting acct. or must be installed directly on your own server. > > Thanks, > > Jeff Rawlins > > My experience has been that if the hosting company is running Apache (many do) and if they have mod_rewrite installed (which is probably also pretty common), it is not *too* difficult to get Zope running in that environment. However, many hosting companies have policies against creating long running processes. Zope takes up a few MB of memory, which is considerably more than an instance of Apache... so many providers are not keen on that kind of thing. Before putting effort into trying to make Zope work in their environment, you'll probably want to ask them if they are willing to let you run a process that will hang out in memory all the time. CodeIt (one of the Zope hosting companies, http://www.codeit.com) will actually host Zope for you. You don't need to deal with building and configuring the package at all. Kevin From jim@digicool.com Tue Mar 23 15:00:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:00:23 -0500 Subject: [Zope] ZOracleDA and long numbers References: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: <36F7AC87.B2D8C96D@digicool.com> TFE MMS JARVIS JOHN wrote: > > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') > > Traceback (innermost last): > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > (Info: /queries/wisdom/customer-Line/manage_test) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > (Object: CopySource) > File db.py, line 198, in query > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, > in fetchmany > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, > in fetchone > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, > in _error > oci.error: (see above) > > I tried changing line 219 in query() in db.py: > from > if scale==0: type='i' > to > if scale==0: type='f' > > in order to force a float type, but this has no effect, it seems. This typr only affects meta-data seen by some Zope tools. > I'm sure that I'm misunderstanding something here. Nope, you aren't. > Any pointers to where I can look to fix this would be greatly > appreciated. There is a similar change that needs to be made to *work around* this problem. In DCOracle/ociCurs.py, change: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None to: elif dbtype==2: # Number if scale or 1: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None This has the undesirable effect of causing all numbers to be treated as ints. (This is what oracledb does) :( Unfortunately, you can't tell from Oracle column meta data whether values in a column will fit into Python ints. The right way to fix this is to implement Oracle's NUMBER or VARNUM C data types and convert to Python ints or longs on a case by case basis. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:01:21 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:01:21 -0500 Subject: [Zope] ZOracleDA and long numbers References: Message-ID: <36F7ACC1.3D31C5A9@digicool.com> "Jordan B. Baker" wrote: > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. Right, but in this case, it's because DCOracle bound a buffer that was too small to hold the values. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mark@interwalk.com Tue Mar 23 15:01:06 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 23 Mar 1999 07:01:06 -0800 Subject: [Zope] Re: Calendar tag Message-ID: <36F7ACB2.F29C21C4@interwalk.com> Again thanks for the Calendar tag. I just ran across a php3 application that might influence you/others. It is http://screwdriver.net/twig/ The demo show you a live application and is quite cool Mark <36f6d7a3.819ed7e-@mtear.com> wrote: Original Article: http://www.egroups.com/list/zope/?start=3428 > Ty: > > Again, the usefullness of your code is only outweighed by your > generousity. > I'm trying to get a personal schedular for my people, and I didn't want > to go outside of Zope(since they are using that for thier everyday > needs). And here you are with your Calendar tag. Thanks! > > Oh, I am reading your source to gleen how to implement the persistance > of appointments, any hints? > > Jason Spisak > webmaster@mtear.com > > > Message: 1 > From: tsarna@endicor.com (Ty Sarna) > Subject: [Zope] Calendar tag released > Date: 21 Mar 1999 21:17:56 GMT > Organization: Endicor Technologies, Inc., San Antonio, Texas > To: zope@zope.org > > People have been asking for my Calendar tag product, so I've uploaded a > beta version to the contributed software page. With the DateTime class > fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations > sometimes cause botches like repeated days). > > Have fun, and let me know what you think. When I get a chance I'll > probably add a Year mode and polish up the documentation and call it > 1.0. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Brian@digicool.com Tue Mar 23 15:15:45 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 23 Mar 1999 10:15:45 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF64019FDA8@gandalf.digicool.com> Hi Mark. I've cc'ed this to the zope list, since others may find this useful. > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) > > ss=String('Eggs are %(spam.eggs)s') > print ss(spam=spam) > ## > > What Im hoping to do should be quite obvious - I want to refer to > "spam.eggs" in the DTML. > > With the HTML example, #var expr="spam.eggs()" is the best I can > get. It seems ugly to me, and I feel there must be a better way. The is a perfectly valid way to do it. Another way would be to use the "with" tag: Neither is really "more correct" than the other, though the with construct is probably cleaner in situations where you use many services of the object: > Using the String example, I can't make _anything_ work. > > Any I missing something? Is there something I can do so that > String('Eggs are %(spam.eggs)s') does what I want? Hmm - it appears that the expr support is currently broken for the python string format syntax. We'll take a look at that. You can, however, also use the with construct here too: ss=String('eggs are %(with spam)[ %(eggs)s %(with)]') Just in case you hadn't found them already, the latest DTML manuals are on the zope site at: http://www.zope.org/Documentation/Guides/DTML. They contain some examples that try to demonstrate common DTML idioms. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mj@antraciet.nl Tue Mar 23 15:04:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 23 Mar 1999 16:04:39 +0100 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <4.1.19990323153904.00a78f00@mail.atmm.nl> At 12:25 23-3-99 , Sture Lygren wrote: >Hi! > >How come this code (from within index_html) doesn't show files and folders >within my folder? > > > > > >( ) doesn't work either) > >This is using Zope 1.10.2 on linux (2.0.35) > First, you should use branches_expr, instead of branches. And second, it depends on what type of DTML object you have this code in. Is this code in a DTML Method or a DTML Document? If it is a Document, you'll have to specify the Folder you want the tree to start at:: -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jim@digicool.com Tue Mar 23 15:08:38 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:08:38 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <36F7AE76.6431EA6E@digicool.com> Wade Leftwich wrote: > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I think that your approach would work and have the drawbacks you suggest. You could try it and see if performance is actually a problem. Here are some other ideas. First, you can put an object in many folders without creating multiple copies. You can't do this from DTML, but you *can* do it from Python, and therefore, from an external method. This may be the simplest approach. Second, you could come up with some sort of document management system, based on clever indexing machinery, like ZTables or on relational databases. As someone else mentioned, Zope cataloging with use ZTables to provide collections with advanced searching and organizaing features. This is still a work in progress, however. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:17:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:17:23 -0500 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <36F7B083.BD54E19C@digicool.com> Stefan Franke wrote: > > Correct me if I'm wrong, but the only way I see to do this *inside* > the Zope application is to keep all your articles inside one folder > (pool) and have key documents in your tree structure which > reference an article in the pool. You're wrong. ;) There are a numnber of ways to solve this. I suspect the simplest is to simply put the same object in multiple folders. (BTW, this is essentially the same thing as using Unix hard links.) > I don't know if problems appear when you establish an acyclic > directed graph structure in the object hierarchy itself (I asked > the question myself months ago without an answer). Sorry you didn't get an answer. There is no problem with creating acyclic or cyclic graph constructors in the, uh, object hierarchy, which BTW, need not be a hierarchy. :) > I see no point why it shouldn't work, but it is not maintained > by the application. > > An interesting fact is that your object's properties vary when > accessed by different paths due to the acquisition structure. > An object inside Zope's database (again, correct me, if...) > doesn't know about its father. It only knows about its sons, > the aq_parent path is constructed on each access. Yes, exactly. In fact, a better name for aq_parent might be aq_context. > Would also like to hear more about this... Like what? :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phd@sun.med.ru Tue Mar 23 15:31:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:31:22 +0300 (MSK) Subject: [Zope] Database connections Message-ID: Hello! I've finished large project using pure CGI concept (I used Neale's html.py). Now I (and my boss) are thinking of switching to Zope, or at least ZTemplates. While playing with Zope and SQL (I am using Postgres, hence ZPygres Database Adapter), I found that Zope, when loaded into memory by Zope.cgi (I am using Apache, and need to use in the future) opens a database connection for every Folder where I created Connection object. It is bad, as I have many databases, so Zope eats up memory. Another problem - what would do Zope if I restart Postgres (so all current connections break)? Would Zope reestablish connections or just report error? How could I limit number of connections Zope opens? How could I define a timeout, after which Zope close a connection if there is no activity between Zope and Postgres? and reestablish connection when application ask for SQL data? With ZTemplates and CGI all these questions has one easy (but not so nice) answer - there is no constant connection, a connection established on every CGI invocation. PS. BTW, I wrote short introduction to Zope in Russian: http://sun.med.ru/~phd/Russian/Zope/ Any Russian here to verify my understanding of Zope? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From TomJenkins@zentuit.com Tue Mar 23 15:34:50 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 10:34:50 -0500 Subject: [Zope] Database connections In-Reply-To: Message-ID: <199903231537.KAA21461@mail.digiweb.com> > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. As I understand it, you should just create one Connection object in your root folder. Then all the folders underneath the root folder have access to that same Connection object. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From Paul@digicool.com Tue Mar 23 15:48:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 10:48:49 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Oleg writes: > I've finished large project using pure CGI concept (I used Neale's > html.py). Now I (and my boss) are thinking of switching to Zope, or at > least ZTemplates. > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory > by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. Ahh, no need. Just put one Database Connection object in the top folder and all the subfolders will "acquire" it. That is, any SQL Method defined lower down can use it. > It is bad, as I have many databases, so Zope eats up > memory. Another > problem - what would do Zope if I restart Postgres (so all current > connections break)? Would Zope reestablish connections or just report > error? It should re-establish the connection. If it doesn't then there's a bug. This works fine with all the Database Adapters I've used. > How could I limit number of connections Zope opens? How could I There is one connection per Database Connection object. > define a timeout, after which Zope close a connection if there is no Hmm, this is quite a hard thing to do, unfortunately. > activity between Zope and Postgres? and reestablish connection when > application ask for SQL data? > > With ZTemplates and CGI all these questions has one easy > (but not so > nice) answer - there is no constant connection, a connection > established on > every CGI invocation. Of course this means the CPU gets a tremendous beating on every request and the response time goes down. > PS. BTW, I wrote short introduction to Zope in Russian: > http://sun.med.ru/~phd/Russian/Zope/ > Any Russian here to verify my understanding of Zope? Mind if I add a blurb to the Zope News about it? --Paul From phd@sun.med.ru Tue Mar 23 15:45:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:45:55 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > > Database Adapter), I found that Zope, when loaded into memory > > by Zope.cgi > > (I am using Apache, and need to use in the future) opens a database > > connection for every Folder where I created Connection object. > > Ahh, no need. Just put one Database Connection object in the top folder > and all the subfolders will "acquire" it. That is, any SQL Method > defined lower down can use it. There are connections to different databases. So you said "one connection to one database"? > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I'll retest, but currently, when I ask ZPygresDA to close connection, Zope reports "the site has technical difficulties" when I'm trying to access the application. > > define a timeout, after which Zope close a connection if there is no > Hmm, this is quite a hard thing to do, unfortunately. Bad news. :( > > PS. BTW, I wrote short introduction to Zope in Russian: > > http://sun.med.ru/~phd/Russian/Zope/ > > Any Russian here to verify my understanding of Zope? > > Mind if I add a blurb to the Zope News about it? It's Ok. I am not sure about correctness. And it is definetely far from complete. I'll continue working on it. > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Tue Mar 23 15:50:19 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 16:50:19 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Jim Fulton wrote: > Sorry you didn't get an answer. There is no problem with creating > acyclic or cyclic graph constructors in the, uh, object hierarchy, > which BTW, need not be a hierarchy. :) Not too long ago I experimented a little with cyclic structures inside Zope's database. One thing I noticed was, that the copy support failed with tracebacks like this: Traceback (innermost last): File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 877, in publish_module File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 176, in manage_pasteObjects (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 361, in _getCopy (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line 327, in export_file File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line 958, in exportoid ExportError: Object 184337 references itself This led me to the conclusion to better leave my hands off non-hierarchic data structures which differ from those created by the management interface itself. >> Would also like to hear more about this... > Like what? :) More or less simple answers like "this is ok and this is not", or "you can store any complex Python data structure inside the DB, but in conjunction with the management interface, you get the following drawbacks.." I'm still a quite unclear about the object management in the database itself and the management layer Zope adds. But maybe I just have to read the docs harder ;-) Stefan > From Paul@digicool.com Tue Mar 23 16:02:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 11:02:17 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Oleg wrote: > There are connections to different databases. So you said "one > connection to one database"? If you can use one connection string in Postgres to access multiple databases, then you just need one Database Connection. Otherwise, you'll need one connection per database. Note that I don't mean per table -- I don't know much about Postgres and don't know if it organizes tables into separate databases that are selected with a "use database" command. > > > It is bad, as I have many databases, so Zope eats up > > > memory. Another > > > problem - what would do Zope if I restart Postgres (so all current > > > connections break)? Would Zope reestablish connections or > just report > > > error? > > > > It should re-establish the connection. If it doesn't then there's a > > bug. This works fine with all the Database Adapters I've used. > > I'll retest, but currently, when I ask ZPygresDA to close > connection, > Zope reports "the site has technical difficulties" when I'm trying to > access the application. Right, which is the correct behavior, as you had disconnected from the database. I thought your question was about restarting _Zope_, so I had a misunderstanding. I don't know anything about the Postgres client library and whether it can reconnect to a server when the server is shutdown. This definately isn't a Zope issue though -- the client should handle it. --Paul From phd@sun.med.ru Tue Mar 23 16:07:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:07:42 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > Oleg wrote: > > There are connections to different databases. So you said "one > > connection to one database"? > > If you can use one connection string in Postgres to access multiple > databases, then you just need one Database Connection. Otherwise, No. Connection string include database name, so I need one connection for every database. > you'll need one connection per database. Note that I don't mean per > table -- I don't know much about Postgres and don't know if it organizes > tables into separate databases that are selected with a "use database" > command. Yes, I see. > > > > It is bad, as I have many databases, so Zope eats up > > > > memory. Another > > > > problem - what would do Zope if I restart Postgres (so all current > > > > connections break)? Would Zope reestablish connections or > > just report > > > > error? > > > > > > It should re-establish the connection. If it doesn't then there's a > > > bug. This works fine with all the Database Adapters I've used. > > > > I'll retest, but currently, when I ask ZPygresDA to close > > connection, > > Zope reports "the site has technical difficulties" when I'm trying to > > access the application. > > Right, which is the correct behavior, as you had disconnected from the > database. I thought your question was about restarting _Zope_, so I had > a misunderstanding. I meant 3 different situations: 1. I started Potsgres, then started Zope, then restarted Zope - Zope reestablished connections. It's Ok. 2. I started Potsgres, then started Zope, then restarted Postgres. Zope does not reestablish connections: This site is currently experiencing technical difficulties... 3. I started Potsgres, then started Zope, then went to management screen and explicitly close a connection. Zope does not reestablish connections. Situations 2 an3 could be resolved, if I go to management screes, close and reopen database connections. But it is hard to remember "always restart Zope if you restart Postgres"... > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jim@digicool.com Tue Mar 23 16:15:59 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 11:15:59 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Message-ID: <36F7BE3F.CDBF011F@digicool.com> Stefan Franke wrote: > > Jim Fulton wrote: > > Sorry you didn't get an answer. There is no problem with > creating > > acyclic or cyclic graph constructors in the, uh, object > hierarchy, > > which BTW, need not be a hierarchy. :) > > Not too long ago I experimented a little with cyclic structures > inside Zope's database. One thing I noticed was, that the copy > support failed with tracebacks like this: > > Traceback (innermost last): > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 877, in publish_module > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 590, in publish > (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 176, in manage_pasteObjects > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 361, in _getCopy > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line > 327, in export_file > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line > 958, in exportoid > ExportError: Object 184337 references itself > > This led me to the conclusion to better leave my hands > off non-hierarchic data structures which differ from those > created by the management interface itself. I'll admit that cyclic data structures are pretty rare, so handling them may not be totally correct in every case. Export of objects partcipating in cycles is potentially, uh, confusing, unless the cycles are with objects that are totally contained within the object being exported, although containment is pretty hard to check. I should probably take this error check out. > >> Would also like to hear more about this... > > Like what? :) > > More or less simple answers like "this is ok and this > is not", OK, but I need to know what "this" is. I don't think you want me to enumerate all possible "this"s. ;) > or "you can store any complex Python data > structure inside the DB, You can store any complex Python data in the DB subject to: - It must be picklable, - It must follow the persistence rules: - Root objects must be "persistent" meaning they subclass BoboPOS.Persistent (or implement an undocumented interface that BoboPOS.Persistent implements, sigh) - Subobjects of persistent objects must be "persistent" or they must be immutable, or be used immutably, as in: def add_member(self, member): members=self.members # Oops, mutated a list members.append(member) # OK, so pretend it's new and readd it self.members=members > but in conjunction with the > management interface, you get the following drawbacks.." Basically, the objects need to implement certain interfaces if they want to play in the management system. If they don't want to play, they have alot of freedom. We need to do a much better job of documenting these interfaces. > I'm still a quite unclear about the object management > in the database itself The object management at the database level tries to be as transparent as possible. The wish is that you don't have to think about it. Basically, if you follow the rules above, you should be OK. Probably the biggest pitfall in the database is the inability to get to database objects when their classes can no longer be imported, because classes or modules have been moved or deleted or because errors have been introducted into the module source. We need to figure out ways to make these problems easier to diagnose. > and the management layer Zope adds. > But maybe I just have to read the docs harder ;-) Maybe you just need to read my mind better. ;) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Tue Mar 23 16:21:22 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:21:22 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:07:42PM +0300 References: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: <19990323112122.G8268@amber.org> On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > reestablished connections. It's Ok. Ok, so we don't have a problem here :-) > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > does not reestablish connections: This site is currently experiencing > technical difficulties... I agree that if a remote cause forces a database connection to close, it should attempt to re-open it... that should be optional of-course, but should be the default. > 3. I started Potsgres, then started Zope, then went to management screen > and explicitly close a connection. Zope does not reestablish connections. Nope, you closed the connection, you have to open it. This I agree is the appropriate way to behave. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From phd@sun.med.ru Tue Mar 23 16:34:12 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:34:12 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323112122.G8268@amber.org> Message-ID: On Tue, 23 Mar 1999, Christopher Petrilli wrote: > On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > > reestablished connections. It's Ok. > > Ok, so we don't have a problem here :-) Good news! :))) > > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > > does not reestablish connections: This site is currently experiencing > > technical difficulties... > > I agree that if a remote cause forces a database connection to close, it > should attempt to re-open it... that should be optional of-course, but > should be the default. Yes, I think Zope must reopen connection. > > 3. I started Potsgres, then started Zope, then went to management screen > > and explicitly close a connection. Zope does not reestablish connections. > > Nope, you closed the connection, you have to open it. This I agree is > the appropriate way to behave. May be... Well, what about such situation: 4. I started Potsgres, then started Zope, then worked with my application and Postgres failed (postgres fails sometimes). Postgres returned an error and closed connection. Zope, I think, should reopen the connection back, but will it? > Chris > -- > | Christopher Petrilli ``Television is bubble-gum for > | petrilli@amber.org the mind.''-Frank Lloyd Wright Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From petrilli@amber.org Tue Mar 23 16:40:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:40:04 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:34:12PM +0300 References: <19990323112122.G8268@amber.org> Message-ID: <19990323114004.J8268@amber.org> On Tue, Mar 23, 1999 at 07:34:12PM +0300, Oleg Broytmann wrote: > > > > I agree that if a remote cause forces a database connection to close, it > > should attempt to re-open it... that should be optional of-course, but > > should be the default. > > Yes, I think Zope must reopen connection. Well, actually it should be the job of the DA, not Zope. It's not spelled out in a standard anywhere, which probably should be solved. More documentation probably :/ But hey, someone's gotta know what the DA is really supposed to do, other than looking at an existing one. > Well, what about such situation: > > 4. I started Potsgres, then started Zope, then worked with my application > and Postgres failed (postgres fails sometimes). Postgres returned an error > and closed connection. Zope, I think, should reopen the connection back, > but will it? Don't honestly know if it WILL, but it seems reasonable that it should be capable of trying at the very least. Again, this is the responsibility fo the DA, not Zope... that should be made clear. You're using a 3rd party DA, so you might want to talk to them about it as well. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From sfranke@cdc-group.com Tue Mar 23 17:10:39 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 18:10:39 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12ED@gates.cdc-group.com> [Pleased of having caught Jim Fulton in verbose mode 8-] > You can store any complex Python data in the DB subject to: [...] > - Subobjects of persistent objects must be "persistent" or > they must be immutable, or be used immutably, as in: So class Persistent's __setattr__ is basically also the level that transaction and undo support work on? Can I expect the undo support to work if I take care of the persistence rules, regardless of cyclic and acyclic structures? Propably about time to switch to Zope-dev... Stefan From reedstrm@rice.edu Tue Mar 23 18:05:48 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 12:05:48 -0600 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> Message-ID: <36F7D7FC.4E0D66A8@rice.edu> Jim Fulton wrote: > > Do not try to understand the scheduler. It's not really implemented > nor is it useful for anything at this time. > > Jim > Pedro - If you need to do periodic tasks, the wisdom of the list says go with a cron job script attaching to your Zopesite via the ZClient interfaces (caveat: I know nothing about this - just repeating what I've read here) Anyone know were to look for info on this elusive ZClient stuff? To quote Paul Everitt : >As mentioned later, Zope has a simple RPC mechanism -- it's called HTTP! > >ZClient is a package in Zope that automates this. It makes it >convenient to connect to Zope and communicate with it from a scripting, >non-interactive environment. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From petrilli@amber.org Tue Mar 23 18:26:46 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 13:26:46 -0500 Subject: [Zope] Trying to understand the Scheduler In-Reply-To: <36F7D7FC.4E0D66A8@rice.edu>; from Ross J. Reedstrom on Tue, Mar 23, 1999 at 12:05:48PM -0600 References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <19990323132646.N8268@amber.org> On Tue, Mar 23, 1999 at 12:05:48PM -0600, Ross J. Reedstrom wrote: > Jim Fulton wrote: > > > > Do not try to understand the scheduler. It's not really implemented > > nor is it useful for anything at this time. > > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? Read the source luke :-) Actually here's where to find the basics of what you're interested in... .../lib/python/ZPublisher/Client.py This should probably go into the FAQ in the ZDP PDQ ;-) I remember seeing a few examples of it, for the the life of me, I can't find them! Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Tue Mar 23 18:46:09 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:46:09 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <4.1.19990323153904.00a78f00@mail.atmm.nl>; from Martijn Pieters on Tue, Mar 23, 1999 at 04:04:39PM +0100 References: <4.1.19990323153904.00a78f00@mail.atmm.nl> Message-ID: <19990323194609.A251@RaVER.duck.org> On Tue, Mar 23, 1999 at 04:04:39PM +0100, Martijn Pieters wrote: > At 12:25 23-3-99 , Sture Lygren wrote: > >Hi! > > > >How come this code (from within index_html) doesn't show files and folders > >within my folder? > > > > > > > > > > > >( ) doesn't work either) > > > >This is using Zope 1.10.2 on linux (2.0.35) > > > First, you should use branches_expr, instead of branches. And second, it > depends on what type of DTML object you have this code in. Is this code in > a DTML Method or a DTML Document? If it is a Document, you'll have to > specify the Folder you want the tree to start at:: > > > > > Got it working - thanks a lot!!! > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Sture Lygren From raver@box.dust.za.net Tue Mar 23 18:48:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:48:03 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <199903231437.JAA27247@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 23, 1999 at 09:34:47AM -0500 References: <199903231437.JAA27247@mail.digiweb.com> Message-ID: <19990323194803.B251@RaVER.duck.org> On Tue, Mar 23, 1999 at 09:34:47AM -0500, Tom Jenkins wrote: > Hey Sture, > Check to see if your index_html is a DTML Document. DTML > Document has its own namespace and doesn't use the folder's. > > If you change DTML Document to a DTML Method then you'll pick up > the folder's files and folders. That did the trick - thanks! >> > Hi! > > > How come this code (from within index_html) doesn't show files and folders > > within my folder? > > > > > > > > > > > > ( ) doesn't work either) > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Can the denizens of this group enlighten me about what the > advantages of Python are, versus Perl? "python" is more likely > to pass unharmed through your spelling checker than "perl". > An unknown poster and Fredrik Lundh, 11 Sep 1998 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 23 19:01:53 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 20:01:53 +0100 Subject: [Zope] Using database-connection from external methods Message-ID: <19990323200153.C251@RaVER.duck.org> Hi! This will hopefulle be my last questions in a while... Is there some way I can reach/use ZMySQL connection method from within an external method? Rephrase - I have a connection established within Zope - I want to call an external method that handles some sql-queries - is this possible, or should I still have the external method handle it's own connection? Can external methods set/send back variables to the calling document/method? Another question while I'm at it - is the DateTime module in 1.10.2 broke in some way? (I get an error if I try to make a new property with the date type set) Help is much appreciated Sture Lygren From jim@digicool.com Tue Mar 23 19:23:07 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:23:07 -0500 Subject: [Zope] ZClient example (was Re: [Zope] Trying to understand the Scheduler) References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EA1B.E2E2CA71@digicool.com> "Ross J. Reedstrom" wrote: > (snip) > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? (snip) The next release of Zope will have a 'utilities' directory in the distribution that has a load_site.py utility that demonstrates use of ZClient (aka ZPublisher.Client). If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From eq3pvl@eq.uc.pt Tue Mar 23 19:31:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Tue, 23 Mar 1999 19:31:09 +0000 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EBFD.892835C2@eq.uc.pt> "Ross J. Reedstrom" wrote: > Pedro - > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? > After reading Jim's mail I turned myself to the cron. I had already written a simple script to http-call a DTMLDocument that calls my external method. It works, but now that you told me about ZClient I see I could have saved some time with just a single command ZClient.py [-u username:password] url [name=value ...] Thanks guys pedro --- Pedro Vale Lima eq3pvl@eq.uc.pt From jae@kavi.com Tue Mar 23 19:30:08 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:30:08 -0800 (PST) Subject: [Zope] Database connections In-Reply-To: Message-ID: On Tue, 23 Mar 1999, Oleg Broytmann wrote: > On Tue, 23 Mar 1999, Paul Everitt wrote: > > Oleg wrote: > > > There are connections to different databases. So you said "one > > > connection to one database"? > > > > If you can use one connection string in Postgres to access multiple > > databases, then you just need one Database Connection. Otherwise, > > No. Connection string include database name, so I need one connection > for every database. Connection strings for MySQL also require you to include the database, but you can still change databases at runtime via the 'use ' command. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jim@digicool.com Tue Mar 23 19:44:09 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:44:09 -0500 Subject: [Zope] Zope Database in XML Message-ID: <36F7EF09.6AD34A99@digicool.com> A side project of mine is to allow conversion to and from Zope databases (and export files) and XML. This will allow people to more easily access their data without Zope and correct problems, such as moved or renamed software modules, that prevent data from being unpicklable. I've completed a first cut at a tool for converting a Zope database to XML format. It is provided in the file 'bbb.py' in a 'utilities' directory that will be included in the distribution directory of the next Zope release. If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. To run the tool, use: python utilities/bbb.py -rxml var/Data.bbb For now, the tool provides a way to "get at" your data without Zope and get a bit more of an idea of how Zope organizes data in the database. The file uses a module 'ppml.py' (Python pickle markup language :) that must by in the same directory as bbb.py or in the Python path. ppml.py provides for conversion from Python pickles to XML. It will eventually provide conversion from XML to Python pickles. Comments from members of the XML SIG (those who happen to spend time here too) would be welcome. I haven't written a formal DTD for this XML format. I would like to use a standard Python XML pickle format, but I'm not sure if such a thing exists yet. I took the approach of conversion to and from Python pickle format for two reasons: - It allows me to do conversion to and from database format without actually creating any (application objects). This is much faster than creating actual objects and does not require that any application Python modules needed to unpickle objects be around or working. For example, this allows conversion of objects that are not unpicklable. - It means that many of the implementation details of pickling can be avoided. Of course, in combination with the Python pickle modules, pickling objects to XML is straightforward: import pickle, ppml print ppml.ToXMLloads(pickle.dumps(myobject)) Enjoy. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 19:43:42 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:43:42 -0800 (PST) Subject: [Zope] Using database-connection from external methods In-Reply-To: <19990323200153.C251@RaVER.duck.org> Message-ID: On Tue, 23 Mar 1999 raver@box.dust.za.net wrote: > Is there some way I can reach/use ZMySQL connection method from within an > external method? Rephrase - I have a connection established within Zope - I > want to call an external method that handles some sql-queries - is this > possible, or should I still have the external method handle it's own > connection? Just have your external method call ZSQLMethods. For instance, I have an external method which allows the user to upload a file to the database. The external method reads the file, parses it, and calls a ZSQLMethod to update the database. To do this, assuming your ZSQLMethod is in the acquisition heirarchy, simply call it like you would any other method. If you have a ZSQLMethod called 'insert_client', which takes the arguments 'name, company, email', just call it... self.insert_client(name=client_name,company=company_name,email=client_email) > Can external methods set/send back variables to the calling document/method? External methods can modify the current REQUEST object that the DTML uses from name resolution. If you are calling the external method from within the DTML, just use 'self.REQUEST' to access the current REQUEST object. Just create/set items on it like it was a dictionary... sekf.REQUEST['new_key'] = new_value --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:19:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:19:10 -0500 (EST) Subject: [Zope] Zope Database in XML In-Reply-To: <36F7EF09.6AD34A99@digicool.com> Message-ID: On Tue, 23 Mar 1999, Jim Fulton wrote: [Jim announcing a long awaited and exciting new product] > > The file uses a module 'ppml.py' (Python > pickle markup language :) that must by in the I could not find ppml.py in the CVS tree. Pavlos From tpatrick@IndigoNetworks.com Tue Mar 23 20:23:13 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 14:23:13 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> If you can access the database directly through this interface(xml/pickle), couldn't you *potentially* map a network drive to the interface(cifs/nfs). This could allow you to render data in and out of the database through the file system interface rather than ftp/http. Just a thought! Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:25:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:25:27 -0500 (EST) Subject: [Zope] Using database-connection from external methods In-Reply-To: Message-ID: On Tue, 23 Mar 1999, John Eikenberry wrote: > > > Can external methods set/send back variables to the calling document/method? > > External methods can modify the current REQUEST object that the DTML uses > from name resolution. If you are calling the external method from within > the DTML, just use 'self.REQUEST' to access the current REQUEST object. > Just create/set items on it like it was a dictionary... > > sekf.REQUEST['new_key'] = new_value > Alternatively your external method can return objects to the calling DTML. for an external method spammethod you could do omething like: class A: pass def spammethod(self,n): a=[] for i in range(n): tmp=A() tmp.no=i a.append(tmp) return a Then in your DTML you can do something like Pavlos From jim@digicool.com Tue Mar 23 20:29:08 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:29:08 -0500 Subject: [Zope] Zope Database in XML References: Message-ID: <36F7F994.33440542@digicool.com> Pavlos Christoforou wrote: > > On Tue, 23 Mar 1999, Jim Fulton wrote: > > [Jim announcing a long awaited and exciting new product] > > > > > The file uses a module 'ppml.py' (Python > > pickle markup language :) that must by in the > > I could not find ppml.py in the CVS tree. Ugh. I thought I had checked it in, but I handn't. I just checked it in. Try a cvs update. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 20:39:04 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:39:04 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> Message-ID: <36F7FBE8.522F2DE7@digicool.com> Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 20:50:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 12:50:07 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... > > I'm still digging through the ZSQL code looking for a way to fix this. > I'll let everyone know once I've figured it out. Ok, I figured out a way to hack around this limitation of traversing an ZSQLMethod. I whipped up a simple 'pluggable brain' for the ZSQLMethod in question... --------------------------------------------------- from Acquisition import Implicit from Record import Record class req_store_brain(Implicit): """ stores info from sql query in REQUEST """ def __init__(self): new = {} for key in self.__record_schema__.keys(): new[key] = getattr(self,key) self.aq_parent.REQUEST.other.update(new) ---------------------------------------------------- This simply sticks the results of the ZSQLMethod in the REQUEST object. Everything in the heirarchy after this has access to the queries results. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tpatrick@IndigoNetworks.com Tue Mar 23 21:13:57 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 15:13:57 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> What I am referring to is rendering objects in the ZOPE database to a file system view. The object database could be managed as a Network Drive(except that the view would be data in the ZOPE object database). You could through some translation (xml or other) render the object database to CIFS/NFS. 1. Run applications directly from the ZOPE file system. 2. Modify and Render objects through a regular file explorer or file manager potentially an external text editor or file editor(word,excel,other). 3. Objects that had no meaning to the file system view would not be rendered. Attributes to file properties. This is a feature of 8i that oracle is pushing. The rendering of a database to a user that does not realize it is a database. ie. 1. Open a spreadsheet in the Network Drive and see a current version of a file and its data. 2. Intranet is now a shared drive - depending on your privileges - you see different objects. I guess what I am asking is: Can Zope act like a CIFS/NFS file system(virtual file system) with a layer of translation for converting Zope Objects to File system objects directly (XML or other)? If I understand it, this is how the database is rendering objects to HTTP or now(Zserver)FTP. Why can't you render them as a Network file system? Any thought? -----Original Message----- From: Jim Fulton [mailto:jim@digicool.com] Sent: Tuesday, March 23, 1999 2:39 PM To: Theodore Patrick Cc: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From neves@inf.puc-rio.br Tue Mar 23 21:31:53 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 23 Mar 1999 18:31:53 -0300 Subject: [Zope] MySQL loosing connection (Was: [Zope] Database connections) References: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: <36F80849.B7ECF04E@inf.puc-rio.br> Paul Everitt wrote: > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I've just hit something similar in the mysql client. The mysql client has a time-out to close the connection with the server. I'm using it in a test environment where it isn't accessed frequently. The connection is automatically closed and I have to manually close and open the database connection. Has anyone already fixed it? Excuse me if it has already been asked in the list, but the egroups site isn't working. regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From reedstrm@rice.edu Tue Mar 23 21:57:29 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 15:57:29 -0600 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F80E49.66166207@rice.edu> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From jim@digicool.com Tue Mar 23 22:07:44 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 17:07:44 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F810B0.95EA78A6@digicool.com> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > 1. Run applications directly from the ZOPE file system. > 2. Modify and Render objects through a regular file explorer or file manager > potentially an external text editor or file editor(word,excel,other). > 3. Objects that had no meaning to the file system view would not be > rendered. Attributes to file properties. > > This is a feature of 8i that oracle is pushing. The rendering of a database > to a user that does not realize it is a database. > > ie. > 1. Open a spreadsheet in the Network Drive and see a current version of a > file and its data. > 2. Intranet is now a shared drive - depending on your privileges - you see > different objects. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > > If I understand it, this is how the database is rendering objects to HTTP or > now(Zserver)FTP. Why can't you render them as a Network file system? > > Any thought? Ah. I think that this is one of the things that WebDAV is going to accomplish. For example, IE5 can create an thing that looks like that looks like a Windows explorer on a Zope folder. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From raver@box.dust.za.net Tue Mar 23 22:32:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 23:32:13 +0100 Subject: [Zope] Using database-connection from external methods In-Reply-To: ; from John Eikenberry on Tue, Mar 23, 1999 at 11:43:42AM -0800 References: <19990323200153.C251@RaVER.duck.org> Message-ID: <19990323233213.A237@RaVER.duck.org> Got it working! Thanks all!! U have been most helpful. From tpatrick@IndigoNetworks.com Wed Mar 24 00:25:43 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 18:25:43 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8CB@IGOPDC01> Ahhhh.... Oracle's approach to this is an add-on to 8i called IFS(Internet File System). It renders a database to http(woo...woo, Zope does this in its native functionality). Although, they are working on a renderer for native file systems. This would enable object methods for making files on the fly. As Zope already accomplishes this(rendering objects), thus presenting the view of the oo database is thus a filter. HTTP,FTP,CIFS,NFS,POP,IMAP all are protocols that speak the requesting clients language. Make Zope the engine and supply a framework in Zserver to plug in the server renderer. Samba is a great example. It renders between file systems quite well, although it is rather a tough and complex animal and very specialized. Although it would work along the same lines. Actually, there is a PERL module to simulate file systems already. It could be good start. Considering that most file viewing on Windows is moving to HTML, the Network Drive is looking more and more like a simple security login with a connection that is persistent, rather than actually mapping the drive. A distributed (native-CIFS/NFS) file system would change the industry. Actually it already has (http) through a browser window. I am wondering when it will occur as seamlessly as not having to be in a browser. If an ORB existed that could render data to the requesting protocol, it would be a great product, I think ZOPE could do this through the ZServer architecture. The Server in this case is the renderer, the ORB is the fulfillment component and the OO Database is the storage mechanism. The protocol plug-in is stored in Zserver and renders the appropriate view of the data. PROTOCOL | SERVER | ORB | OO DATABASE | HTTP | ZSERVER | --- ZOPE --- | Client dependencies FTP | ZSERVER | --- ZOPE --- | Applications designed to be client/server!!! IMAP | ZSERVER | --- ZOPE --- | POP | ZSERVER | --- ZOPE --- | CIFS | ZSERVER | --- ZOPE --- | No Client dependencies - Native Applications NFS | ZSERVER | --- ZOPE --- | CLIENT/SERVER functionality yet no dependencies! OS support is the dependency! If the rendering engine were modular, ZOPE would always be first in delivering support for new protocols and client functionality(DAV Support!!!), without changing the structure of the underlying database. The data exchange between the ZSERVER AND ZOPE would have to be managed. "You wouldn't want to serve a POP client an Excel file unless it is an attachment just as you wouldn't want to render a query to a FILE SYSTEM accept ones that have been designated as OK." Get It? It would save the world a little time and effort if one system could render data to a diverse set of clients. Rather than making a new server every time a new client arrives. I could simply build a layer of translation(XML) for a client and BINGO! New client/server. At the Native OS level this has the most power. Rendering live data into an Excel file on the fly is a real world application that would be a huge hit right now. "I want this months sales report... open Sales.xls BINGO!!! The data is there." I would really like to edit html in Dreamweaver as I regularly do and have it render into Zope. If you had file system level support every known application could be stored inside of Zope or have access to the data inside of ZOPE. Here is the interesting one: If you can have direct file access you could: Open a client application out of an oo database that rendered a view of the database back at you. (Sounds awfully like an OS!!!) Just Thoughts..... Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Ross J. Reedstrom [mailto:reedstrm@rice.edu] Sent: Tuesday, March 23, 1999 3:57 PM To: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From bjs@crc.com Wed Mar 24 00:30:30 1999 From: bjs@crc.com (Bryan J. Smith) Date: Tue, 23 Mar 1999 19:30:30 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... Message-ID: <199903240030.TAA14192@mail.lsg.crc.com> [Project Idea] Looking ahead to the future of Linux ... [ I am on the Digest list, so send responses directly if you expect an immediate response. ] Although I am a new user, I am quickly growing very fond of Zope. Quite amazing, multiplatform and all. The option to use either the built-in DB or an external one, the built-in web server or an external one. My entire company is thinking of standardizing on Zope since we run Solaris, Linux and NT (along with a few, rogue *BSD variants) on our server-end. Little and big internal projects aside, I was wondering if Zope could possibly fill a gap that will come about with Linux shortly. That gap is software distribution at the enterprise server to client level. Linux (and many other OpenSource software and systems) is winning in the server arena, but the corporate desktop world is staying with NT and the consumer world is staying 95/98. While the third will take awhile, the corporate desktop is something that is attainable in the next few years (with all the Windows 2000 issues which I do not want to get into). Microsoft has SMS for NT and even Apple has a better system for MacOS X Server. What does Linux have? First off, most Linux distributions have RPM. While the format is the same, the filesystem and other distribution or installation-specific configuration may differ. Quite possibly, a Zope-based distributed management system could be built to serve this purpose. I guess my main question is if anyone else is trying to forge such a project togther. E.g., does the Caldera Open Administriative System (COAS) plan to solve such software distribution issues? If not, do any others? If not, I'd say it is a BIG DEAL to get such a project underway. And Zope may be the perfect fit for the back-end (hence, why I am posting this to this list instead of a my local LUG). Just an idea. Please feel free to pick it apart (short of calling me an idiot, well maybe you should anyway :-). I am still learning Python at this stage (big-time Perl advocate, but Python is definately better for web-apps). -- Bryan Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================== How can you say your operating system (OS) is enterprise- scalable when you run a competing operating system for your mail services (Solaris for Hotmail), sport the absolute worst uptimes for application services versus all other OSes (con- tinuous crashes under heavy loads), and have just now, finally started an 64-bit port let alone it is a completely incompa- tible fork from your existing 32-bit API? From Paul@digicool.com Wed Mar 24 02:30:37 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 21:30:37 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Bryan wrote: > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. > That gap is > software distribution at the enterprise server to client level. The field of online software distribution is certainly hot. Marimba, the original Java darling, has reinvented themselves in this field: http://www.marimba.com/products/products.htm They are playing, though, in a pretty complicated mission-critical kind of field. The requirements are pretty daunting. > Linux (and many other OpenSource software and systems) is > winning in the > server arena, but the corporate desktop world is staying with > NT and the > consumer world is staying 95/98. While the third will take > awhile, the > corporate desktop is something that is attainable in the next > few years > (with all the Windows 2000 issues which I do not want to get into). > Microsoft has SMS for NT and even Apple has a better system > for MacOS X > Server. What does Linux have? > > First off, most Linux distributions have RPM. While the > format is the same, > the filesystem and other distribution or > installation-specific configuration > may differ. Quite possibly, a Zope-based distributed > management system > could be built to serve this purpose. One thing I've seen that's pretty interesting in a low-tech kind of way is rpmfind from rufus.w3.org from a repository. > I guess my main question is if anyone else is trying to forge > such a project > togther. E.g., does the Caldera Open Administriative System > (COAS) plan to > solve such software distribution issues? If not, do any > others? If not, > I'd say it is a BIG DEAL to get such a project underway. And > Zope may be > the perfect fit for the back-end (hence, why I am posting > this to this list > instead of a my local LUG). It's certainly a big deal in that it is an enormous initiative. Take some time to jot down what you think the business goals and the requirements of such a project might be and recruit some volunteers! > Just an idea. Please feel free to pick it apart (short of > calling me an > idiot, well maybe you should anyway :-). I am still learning > Python at this > stage (big-time Perl advocate, but Python is definately better for > web-apps). Oh you certainly say all the right things. --Paul From jbb@spyderlab.com Wed Mar 24 04:14:36 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:14:36 -0500 (EST) Subject: [Zope] handling exceptions in DTML Message-ID: Beyond writing an ExternalMethod, is there a good way to catch exceptions? For example, I have a database application that looks pretty ugly if someone attempts to add a duplicate key to the database. Ideally, I'd use a tag to trap exceptions and to provide handlers for them. Anyone have any thoughts on this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Wed Mar 24 04:23:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:23:11 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: Message-ID: Hmm, I found a reference to this in the Collector as something that has been planned. Is anyone working on patches to address this in the near future? I'd be willing to take a stab at it myself if not. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From julian@zereau.net Wed Mar 24 09:01:37 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 24 Mar 1999 09:01:37 -0000 (GMT) Subject: [Zope] quoting in python Message-ID: I need to be able to use the var tag's capabilities to neatly quote URL metacharacters, but I need to do it within an expr="foo" mini python snippet. This is so that I can quote individual included variables into a query string I am building. Is there any way to do this? --- Julian Morrison Programmer (Zereau Ltd) From jarvis.sd082@ex.tel.co.jp Wed Mar 24 10:40:44 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 24 Mar 1999 19:40:44 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723FCC3CE@telisnt1020.is.tel.co.jp> Thanks for the pointer! I have to retract what I said in a previous post about not having a problem with the ZODBCDA--it has the same problem. I had made a small hack of a product for my own study that connected through ODBC and that didn't have the problem because I used Python longs. I somehow got the two confused... This works, but everything gets converted to floats like you said. In my case, this is not so much a problem because I use a lot of large numbers but doesn't seem practical for general use. I found that if, in Buffer.c, I change lines 143 and 144 to case 'd': return PyLong_FromDouble(self->val.d[ii]); I can get the same results as my product--everything is a long. Unfortunately, this causes everything to be printed with Python's 'L' appended instead of '.0'. Either can be fixed by using fmt="%.f" to all of my number fields, but that seems like a lot of extra work (maybe a quick hack to the Z Search Interface would do the trick?) Plus, what if I really have floats somewhere? Would something like: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'f') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 in ociCurs.py (lines 123-131) handle this? I haven't tested it yet on float fields. It might be better to just leave everything as floats. John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: Jim Fulton [SMTP:jim@digicool.com] > Sent: Wednesday, March 24, 1999 12:00 AM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > > > TFE MMS JARVIS JOHN wrote: > > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > > > Traceback (innermost last): > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in > publish_module > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > > (Info: /queries/wisdom/customer-Line/manage_test) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > > (Object: CopySource) > > File db.py, line 198, in query > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 317, > > in fetchmany > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 279, > > in fetchone > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 75, > > in _error > > oci.error: (see above) > > > > I tried changing line 219 in query() in db.py: > > from > > if scale==0: type='i' > > to > > if scale==0: type='f' > > > > in order to force a float type, but this has no effect, it seems. > > This typr only affects meta-data seen by some Zope tools. > > > I'm sure that I'm misunderstanding something here. > > Nope, you aren't. > > > Any pointers to where I can look to fix this would be greatly > > appreciated. > > There is a similar change that needs to be made to *work around* > this problem. In DCOracle/ociCurs.py, change: > > elif dbtype==2: # Number > if scale: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > to: > > elif dbtype==2: # Number > if scale or 1: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > This has the undesirable effect of causing all > numbers to be treated as ints. (This is what oracledb > does) :( Unfortunately, you can't tell from Oracle column > meta data whether values in a column will fit into Python ints. > > The right way to fix this is to implement Oracle's > NUMBER or VARNUM C data types and convert to Python > ints or longs on a case by case basis. > > Jim > > -- > Jim Fulton mailto:jim@digicool.com Python Powered! > Technical Director (888) 344-4332 http://www.python.org > Digital Creations http://www.digicool.com http://www.zope.org > > Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email > address may not be added to any commercial mail list with out my > permission. Violation of my privacy with advertising or SPAM will > result in a suit for a MINIMUM of $500 damages/incident, $1500 for > repeats. From Paul@digicool.com Wed Mar 24 12:31:19 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 07:31:19 -0500 Subject: [Zope] handling exceptions in DTML Message-ID: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Jordan wrote: > Is anyone working on patches to address this in the near > future? I'd be > willing to take a stab at it myself if not. Please, stab away! If you write the try DTML tag, we'll crown you Prince of Zope, or at least Most Honorable Potentate. Looks good on business cards and the girls really dig it. --Paul From M.Faassen@vet.uu.nl Wed Mar 24 15:25:48 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:25:48 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F903FC.F53C8EFB@pop.vet.uu.nl> "Bryan J. Smith" wrote: [snip] > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. That gap is > software distribution at the enterprise server to client level. I'm not sure I understand what you want here, but perhaps interesting for you is the Trove project. Perhaps it's directed more to larger scale internet based distribution, though. Another problem is that as far as I know the project isn't progressing very quickly if at all (perhaps you can help). I've even heard mention of ZTrove, which would be a Zope based Trove, if I understand well. I don't know what the status on that is. Mind, I don't know a thing about Trove, just giving pointers in the hope it's useful. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 24 15:26:47 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:26:47 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F90437.EFA9C1A5@pop.vet.uu.nl> Hi again, Whoops, forgot to mention an URL for Trove, so here it is: http://www.tuxedo.org/~esr/trove/index.html Regards, Martijn From gilles.lavaux@esrin.esa.it Wed Mar 24 15:30:52 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Wed, 24 Mar 1999 16:30:52 +0100 Subject: [Zope] Pb: REQUEST.set with formating. Message-ID: <01be760b$4d817480$fce3ccc1@asgard.esrin.esa.it> Hello I try to set a variable to the current date with some formating: This works: But how can I format the ZopeTime to get only the part I want.(month/year for exemple: fmt="%m/%Y") ?? Gilles Lavaux From michel@digicool.com Wed Mar 24 16:14:33 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 24 Mar 1999 11:14:33 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BBAB@gandalf.digicool.com> > -----Original Message----- > From: Martijn Faassen [mailto:faassen@vet.uu.nl] > Sent: Wednesday, March 24, 1999 10:26 AM > To: Bryan J. Smith > Cc: 'Zope List' > Subject: Re: [Zope] [Project Idea] Looking ahead to the > future of Linux > ... > > > "Bryan J. Smith" wrote: > [snip] > > > Little and big internal projects aside, I was wondering if > Zope could > > possibly fill a gap that will come about with Linux > shortly. That gap is > > software distribution at the enterprise server to client level. > > I'm not sure I understand what you want here, but perhaps interesting > for you is the Trove project. Perhaps it's directed more to > larger scale > internet based distribution, though. Another problem is that > as far as I > know the project isn't progressing very quickly if at all (perhaps you > can help). > > I've even heard mention of ZTrove, which would be a Zope > based Trove, if > I understand well. I don't know what the status on that is. > > Mind, I don't know a thing about Trove, just giving pointers > in the hope > it's useful. > > Regards, > > Martijn > Trove is sketches of code in Python (written by Eric Raymond) and ZTrove is vaporware, barely prototyped in bobo a few months ago when I was on the Trove list. It's unfortunate, since I felt that Trove was a great idea; the Internet hasn't reached the point of 'we need it now' in order to get some development behind it. Personally, I think Sunsite and RedHat should give us lots of money so we can write it. :) With Ken and I now in the Zope loop (Ken was one of the original Trove designers, and I was in on the GUI side of things, pushing what was at the time Bobo) we could probably bang something out sometime in the far future. We'd prefer someone in the community start it up because Paul and Rob have us booked sometime into the year 2011. -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From wade@okaynetwork.com Wed Mar 24 16:49:58 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 11:49:58 -0500 Subject: [Zope] fsimport and permissions Message-ID: <199903241649.LAA11692@emerald.lightlink.com> I just ran into some odd behavior with fsimport that may explain the problem that Milos posted last week. On my Linux box, if fsdir == '/fred/barney', then fred as well as barney must be world-readable. If not, you get the error traceback Milos reported in his March 14 posting. Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From prudek@sol.cz Wed Mar 24 17:10:29 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 24 Mar 1999 18:10:29 +0100 Subject: [Zope] Re: fsimport and permissions References: <199903241649.LAA11692@emerald.lightlink.com> Message-ID: <36F91C85.924DF20E@sol.cz> > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. Bingo!!!!!! Now, is this a correct behaviour? -- Milos Prudek From wade@okaynetwork.com Wed Mar 24 17:36:19 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 12:36:19 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241735.MAA13778@emerald.lightlink.com> > I just ran into some odd behavior with fsimport that may explain the > problem that Milos posted last week. > > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. > Oops, posted too fast. I should have said that fred must be world- executable (listable). -- Wade From aboulanger@ldeo.columbia.edu Wed Mar 24 18:14:10 1999 From: aboulanger@ldeo.columbia.edu (Albert G. Boulanger) Date: Wed, 24 Mar 1999 13:14:10 -0500 (EST) Subject: [Zope] Confera Message-ID: <199903241814.NAA13900@ox> I know Confera is unsupported. I did download it (1.2.0) a few days ago and tried to install it as a product. It is a broken product since it needs a module SearchIndex.TextIndex. Any idea on where to get this module? The Zope I am using is 1.9.0 Regards, Albert Boulanger Columbia University From eq3pvl@eq.uc.pt Wed Mar 24 18:38:39 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Wed, 24 Mar 1999 18:38:39 +0000 Subject: [Zope] Confera References: <199903241814.NAA13900@ox> Message-ID: <36F9312F.38DA362C@eq.uc.pt> "Albert G. Boulanger" wrote: > > I know Confera is unsupported. I did download it (1.2.0) a few days > ago and tried to install it as a product. It is a broken product since > it needs a module SearchIndex.TextIndex. Any idea on where to get this > module? The Zope I am using is 1.9.0 > Confera uses ZTables functions, and these were introduced in Zope 1.10 ...just download Zope 1.10.2 and Confera will work just fine. pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Wed Mar 24 18:40:51 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 24 Mar 1999 19:40:51 +0100 Subject: [Zope] Confera In-Reply-To: <199903241814.NAA13900@ox> Message-ID: <4.1.19990324194019.009bcde0@mail.atmm.nl> At 19:14 24-3-99 , Albert G. Boulanger wrote: > >I know Confera is unsupported. I did download it (1.2.0) a few days >ago and tried to install it as a product. It is a broken product since >it needs a module SearchIndex.TextIndex. Any idea on where to get this >module? The Zope I am using is 1.9.0 > Confera requires Zope 1.10.2 to run. SearchIndex is a package that is oncluded in that release. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Wed Mar 24 19:04:11 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Wed, 24 Mar 1999 14:04:11 -0500 Subject: [Zope] authentication problem Message-ID: <36F9372A.BCADD32B@GestaltTechnology.com> Zopists, I have a secure site and trying to secure a part of the site so that only those with the role of system admin coulds access. One special page has the following code the uses a 'with' tag to include a parent environment:

    Available Documents:

    The parent object has the following permission settings: Roles Acquire permission settings? Anonymous Manager Sysadmin User no View yes yes no Access Cont. info yes yes no Open close DB conn yes yes no use SQL methods the rest are set to acquire .... the role sysadmin is declared in the gestalt object.. Do you what am I doing wrong? Fredy Villa FVilla@GestaltTechnology.com From pj@sam.engr.sgi.com Wed Mar 24 19:06:00 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 11:06:00 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241906.LAA16274@sam.engr.sgi.com> |> I should have said that fred must be world-executable That's just Unix-style permissions, no? Can't expect to access "/fred/barney" if you don't have execute perms on "/fred". ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From ShawH@STHS.org Wed Mar 24 19:27:44 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:27:44 -0600 Subject: [Zope] Counters Message-ID: I remember noticing various comments on the list bemoaning the lack of some sort of counter. I also remember noticing the objections which were raised, and why counters weren't feasible. I don't remember reading these objections, which may be why when I found a need for a counter, I sat down and wrote one. I now have a working Counter product which provides a tag . It includes the ability to have multiple non-incrementing displays of a counter, and the optional ability to render the individual digits using a supplied template, thus allowing graphical counters of whatever sort you feel like using. The counter uses a long property in the containing folder, so you can manually set the counter to whatever you want. It also provides the optional capacity to have a short 'memory' of recent IP's, preventing the 'running up' of the counter by scripts or massive reloading (well, makes it more difficult anyhow). The template is supplied with variables which indicate the position of a given digit in the list (it is wierd, it works from back to front, since it uses modulus) including whether the particular digit is the first, etc. If someone will supply me with instructions on how to package the product, and how to upload it, I will be happy to make it available. Thanks are due to tsarna@endicor.com, on whose product this was based, and to Jim Fulton and Philip Aylesworth for answering my questions. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:34:10 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:34:10 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN In-Reply-To: <199903241906.LAA16274@sam.engr.sgi.com> Message-ID: <199903241933.OAA17777@emerald.lightlink.com> > |> I should have said that fred must be world-executable > > That's just Unix-style permissions, no? Can't expect to > access "/fred/barney" if you don't have execute perms on > "/fred". > Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 /fred/barney. Then anybody can get a listing of barney, but only root can see what's in fred. And if I su nobody and run python, os.listdir('/fred/barney') works but os.listdir('/fred') gets 'Permission Denied'. -- Wade From ShawH@STHS.org Wed Mar 24 19:35:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:35:08 -0600 Subject: [Zope] Counter 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_000_01BE762D.6CC78340 Content-Type: text/plain Well, I think I figured out how CalendarTag was packaged, so I packaged CounterTag the same way (I think). Its only 2.24Kb, so I am going to attach it... I hope I won't get shot. . <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE762D.6CC78340 Content-Type: application/octet-stream; name="CounterTag_tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CounterTag_tar.gz" Content-Description: CounterTag_tar H4sICAFA+TYAA3Rlc3QudGFyAO1Za2/byBXNV+lXzDooKDWyLMUv1A2DZm0X66Ldpo63/WAYxJgc SYOQHJYztKP99T13ZvjQw1p0E7QoqnESi+S9Z+7ce+6DSiofj4qlWaj86GOpkio2+uhSVbkR5dGr b7TYyeT8/JS9YrQma7/9BTs7Oz+bTN5O304Zm54cnx6/YqffyoBdq9KGl4y9KpUyu+R+6fn/6Ep3 xD+KZC5NFI2L5VftMZ1Mzk5OdsT//MzF/y3CfnyO+J+dniD+k290xp3r/zz+UZSoOIpYyIIg8IFn hs8ZhV7yVP7MjVQ5Hvb7MitUaZiXuuPz/n/b+v362rUr/9tAf10F2J3/07fHx03+nx8fn+LW+fRk us///8SalSpjVyquMpGbO5EVKTdifHUX/WRkynzG/7b/otgnU8p8Xgu6q34/TrnWnUJx0adIUxGh 350yc9G3d959d3j4Ova373k51w+Hh+/7jiD3qqASxFNm/MYsVol4aDWPYp6KPOElKdnbt7gUpWac edQxu1sIth2JxTxnj4KJLyKujEjYTJVM8HhhoRI5lwblkJmFqNEYzxMmNRTTFPLP0iyYFk+iBHSl xaxK2RMvJX9MhR47i/5eX/sjO9iBzA27nxz+7mF44W8ZRbYkUsPApUicdKG0lYUUPko6BVMzpzFi RGFDYeCGlXK+MNY+ayvdTcXMjC0MHcEKZEqb+mSaIMNw6g2dyVI3ho2mZNiUyZk7flWWIECrSTcJ nvBGTKRasInHQTkpBMzCidkAZ4nhKHgxVrnhaC6wa6ZSBGnoxL1nD9/lPBPvL5qtnnhaCTqrF6DT qhJYXLNU5fMxu06kIc+6Izp9sq0UflcbHrK0waILsMyymQWkEThtkKQUpAxG8KLg1gRRliCEZ0Dh jrVkBZ8L3CGXI+BawBnKYvA4FoWxwn+miNAH0LHet4msM2dEbIvJHUtVUfBLkaknYZEc71SZULIo JnBQGLZkCjilUydew1z8yRU9bI3Nlpbc41X3yiKV2jRepgvrXO9tWeiug7XN53UXUya5J96jGYoo E/SZUgqWcu8mi+95UQpdpYZVSMyZzEXisAbfV4aEHwG/ZI88+c7z4YMPT50vZDAbuG1BSXvpPdow A1FIaHuZQFHOlnWwJGWhTTox42QE3BV4rcA7SKOEpc0OLFgKHYAaKsBm+MwywXPNEoxC3aNi97qU bO5AEB5d5jHiSh7eukEiYEkGr2j2vBA2ut1q8yzT1MKgMDRIROyFyJlLxNIWvNqrL1gRL0T8OUKM /y0rbq//8te76+jD1dXtiiWxyihBQJQ5EhoM2MqxMbuZ+W2oKHGWcRMvyLIZxJOmLHXParm8dlbL IRKUhZPBc54kv3DivMq658Uh69hpy1O4D+hz7KsLEYMy5BTaJeNfZFZlBPAoSosFthEU1GyC4GCm ybvkSWpBGWIfC0p6qo5KsQXK7YhyydkekWssnE0a68YcjcM45pKLbK/ldYZRH7IlRW/h8PS0Puj1 F078vbDJ6Uq4eQYeVTObDWhVI8fXhSwToGQKMSutJ5A3dDrerRT2JQAWzUUuSAoWzUteLAioEyxU Vio6X4DEUpTUenPuQ4tBwLeL8WarR7v2/bu53jIPuMwMc1WLo7U6yC36pL0Lo+VUSFndZIS98mwJ jyfN9GFR0P0O3LFQWl2zPGjnk3cymzNdxuHBkfeQrg3SRxsGP8p5Mp7L2UF3AyL3rwV0zl1HPJKz GnDDRc4/lyX1EzTnf5TSGBSSxyX7QT1zkOMyRVZgwvi04M/s5ubG2+XX95zKrMrd7AQto3mZ8z+g AslYlWPUBTa49BOZe3kY9nvMdQ6ef7Yp9CeZsT+CxoAhzn9cyBSJ/WGJAekZk+TCzmCouM/CZgGa mYf4ZyU0jT+aehxnRmYCjYMwFiItaPLKeA7KjpuRs20fYVv1XRFLVfz5UtGUVHEHGrKBb0DIM1Z/ AzLQIp2NnLweXjT+MAQ7olGC2qaI7VwWern7yUMjSPrjVsB/GjvBVSkCgwhKqxYR/uWZHrgNaLMw CEY1m+ljS2e6aulMVzWdg8AfqdkjW3p/2Ku5wPw4jwZuEBq1Thqu2e9a5LqWu016VHiHYWh/r6q2 /W9du3myG6BtXesAzZMNgJ4plxcr3LWadU8IqfYP1jzgnhEUausQvMWsgiEfOL0tANNJy5Uaw1HF EQP30W46hEElaYI8XnAdfRbLAckOVw0thanKvJW9J5mWTlQvtiq4DVujGu9GPqbevCzpkKVhCozo FWGW3AcfP9xe/3j3KXggEvdg9aCRHnpX0NwTBms9P3jT4dfvnaB0kLfXf/vp+tMdIIPORBE8eKEZ K8gh/q1hOSB42qrneya8Ta17UFCwVqWGJEXNmUqCFyfN1i+4cC7reYtqyPrTG3Yvi4f6MY6L6jXw D4fsfddBkNnQv784nNbaxTiqigQdc8XIEXptA+jLYW0SNPTamaw4mTQcmWWBVHfTADKyt+r3FYfb SG134w7Ltnj0zRQbefO85oaFU2fZAb2EHXRqpptEIzc4dejm31XRPkduRiCzch2S4brAi5qTdRu6 F8zQK3kjlK2L0HfXriOH7re7NbR0zZJxVFR6MbjBhMPzWFzJ2AxyTXbA974uuHyGvjfY1eJBt1Jb hfUSYNFVMZj6KBZc636vTtgX/KAbR9hTb+TYSgi2Bxfb0egxJXtw4HDS71Fp7/ee0Tvx4pK/n9SB tl4Lqbrl7DcoUt7SPMyPULEajtPkmoPcVs+jTr1fQrvzaiy3R/GNbsIT4u+b6cvOWHECWbDaG4bd IrtZuWj71V4wWqnHww6m60k1YG0PcorYOvg13h8OfZJ30qJbpdfCTcTpv+51dk5kubHxcNhzPooi +irJfg/vgKBc+w6ZV09Tq93FtZbXK80N93TkugWwqBe8pp9Ok9qO5RoHVH5Uueii1h3LAq+3rEZq 3RsdM1oh57ltOr5t9fCD5zZt8YbXfS2kt5F5qh4pEft99z0jTZoY9hJ930wsdOj9/0/s137t137t 137t137t1369sP4F2FdJwQAoAAA= ------ =_NextPart_000_01BE762D.6CC78340-- From ShawH@STHS.org Wed Mar 24 19:38:50 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:38:50 -0600 Subject: [Zope] Counter Message-ID: With regard to the IP checking mechanism. Realize that this reduces the count for machines behind a masquerading firewall and increases the count for machines on dynamic IP dialup accounts. If anyone is interested in using this counter but wants to prevent a given IP from incrementing the counter a second time under any circumstances, it should not be too hard to modify the code to store the IPs in an SQL table as (I think) Slashdot does. I have no need for this, and don't intend to code it, but the code, being Python, is, I think, clear enough to modify. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:41:01 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:41:01 -0500 Subject: [Zope] navigate ZDB with Python Message-ID: <199903241940.OAA17995@emerald.lightlink.com> Hello, I'm trying to put together an External Method that needs to operate on several different objects within the ZDB (a/k/a ZODB, BoboPOS). How do I specify an object ID and retrieve the relevant object? sorry to be obtuse, but I can't find an example anyplace. In the onl;ine docs, this URL -- http://www.digicool.com/releases/bobo/BoboPOS3/BoboPOS3.html -- looked promising, but it comes up empty. Thanks -- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Wed Mar 24 19:53:36 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 14:53:36 -0500 Subject: [Zope] Counters Message-ID: <613145F79272D211914B0020AFF640190D9F64@gandalf.digicool.com> Howard wrote: > I remember noticing various comments on the list bemoaning the lack of > some sort of counter. I also remember noticing the objections > which were > raised, and why counters weren't feasible. I don't remember reading > these objections, which may be why when I found a need for a > counter, I > sat down and wrote one. I now have a working Counter product which > provides a tag . I'll indicate my appreciation of your contribution by, well, asking for more! :^) One of the big objections of the counter kind of object is that the object database gets bigger on every request. A good workaround for this would be to cache writes to the database. Thus, imagine a counter that: 1) Only wrote to the database after a threshold had passed. For instance, only every tenth state change or not until ten minutes had elapsed since the last write. 2) If the process was nicely shut down, the object would save itself. 3) Had knobs in the management screen that allowed adjusting the "buffered write" policy. The benefits: 1) The database wouldn't keep versioning into oblivion. 2) The application wouldn't be slowed by writes on every request. The drawbacks: 1) If the process exited not nicely, some state changes would be lost. --Paul From ShawH@STHS.org Wed Mar 24 19:48:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:48:02 -0600 Subject: [Zope] Counter Product Message-ID: The counter ought to place the properties in the Document if it is a Document and not a Method. If anyone can contribute code which will take 'md' and return x, where x is either the Document or the Folder containing a Method, I would appreciate it. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From tfraser@crieff-strathearn.freeserve.co.uk Wed Mar 24 19:49:09 1999 From: tfraser@crieff-strathearn.freeserve.co.uk (Tim Fraser) Date: Wed, 24 Mar 1999 19:49:09 +0000 Subject: [Zope] is win3.1 ok? Message-ID: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? I'm currently running Zope on Win95 desktop without problems. From joctavio@jimihendrix.net Wed Mar 24 20:00:35 1999 From: joctavio@jimihendrix.net (Ze Octavio) Date: Wed, 24 Mar 1999 17:00:35 -0300 Subject: [Zope] IRC DalNet Channel Message-ID: <36F94463.A827A58F@jimihendrix.net> Hello Zopians, Another way to get in touch with Zope questions, just go to irc.sodre.net (or another server from DalNet) in channel #zope I will be in the channel and who wants can be operator, just talk with me. Thanxs all Ze Octavio PS: Questions in spanol an portuguese are welcome too ! From ShawH@STHS.org Wed Mar 24 19:43:18 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:43:18 -0600 Subject: [Zope] Longs on the Property page Message-ID: In the stock Zope 1.10.2 distro, putting a Long in a property causes a curious error to manifest. When the property page is displayed, the long is display like 44353L. If the then change any other property and attempt to save changes, you get a traceback saying that the property for the long is invalid. You are forced to manually remove the 'L' before saving changes. May I suggest that when the properties are display, if the type is 'long' then the display code should do something like this: str(long_value)[:-1] This would remove the L before it was ever displayed.... Alternatively, something in the response code needs to be modified to accept an 'L' at the end of an integer destined for a property whose type is 'L'. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From ehmka@yahoo.com Wed Mar 24 20:09:04 1999 From: ehmka@yahoo.com (Kevin Ehmka) Date: Wed, 24 Mar 1999 12:09:04 -0800 (PST) Subject: [Zope] The best way to pack and close PickleDictionary? Message-ID: <19990324200904.8613.rocketmail@web204.mail.yahoo.com> Previously, using Bobo, I created several PickleDictionaries for use on my website. Regularly, I would pack these databases before ending the CGI call since they were altered very frequently. Now, using Zope, I find that I cannot pack them without receiving error messages telling me I'm attempting to write while the database is in read-only mode (it appears the Zope threads out the packing). I also found that Zope caches these databases and issues an error when I attempt to open them again. What is the best way to pack and close these databases? How can I query which db's have been opened? Even if I do keep a mapping of previously opened db's, how can I find out if Zope is closing them. Any help is appreciated. Thanks, Kevin _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From jbb@spyderlab.com Wed Mar 24 20:22:17 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 24 Mar 1999 15:22:17 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. Hey.. this isn't bad.. in writing even :) Okay, I have a prototype of this written.. basically you can do the following: foo bnar The exception was So, if an error occurs inside the first block, the second block is rendered with err substituted for the variable (in this case it prints exceptions.KeyError This is pretty basic stuff, so I'm looking for ideas on where to take this. Anyone have more ideas? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From petrilli@amber.org Wed Mar 24 20:28:49 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 24 Mar 1999 15:28:49 -0500 Subject: [Zope] is win3.1 ok? In-Reply-To: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk>; from Tim Fraser on Wed, Mar 24, 1999 at 07:49:09PM +0000 References: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Message-ID: <19990324152849.B11092@amber.org> On Wed, Mar 24, 1999 at 07:49:09PM +0000, Tim Fraser wrote: > Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? This is just a guess, but I doubt it. You'd probably need a DOS port of Python, which would eliminate all the networking code. This is just me, I don't have a 3.1 box, but... you're welcome to try :-) > I'm currently running Zope on Win95 desktop without problems. Goodie goodie :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Paul@digicool.com Wed Mar 24 20:55:29 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 15:55:29 -0500 Subject: [Zope] FYI: Slightly updated version of the Z ODB tech docs Message-ID: <613145F79272D211914B0020AFF640190D9F66@gandalf.digicool.com> I've gotten a lot of reports about a broken link to the ephemeral, much-referenced "BoboPOS3a1" technical docs. I promised myself I wouldn't update the link unless I updated Jim's doc to Zope-ify it. Thus: 1) The official name of the database is "ZODB", the Z Object Database. 2) The News on the site has a link to the ZODB3 Technical Documentation. This is a very well written, circa October document from Jim Fulton that describes the architecture of the next version of the database (i.e. Zope2). It's quite nice -- contains UML diagrams, API discussions, etc. 3) The broken links have been updated. --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From ShawH@STHS.org Wed Mar 24 21:42:46 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 15:42:46 -0600 Subject: [Zope] Counter Message-ID: Ok, having read the newly available ZODB manual, it seems that I should override __setstate__ and call the old __setstate__, passing it a dictionary containing only those attributes I wish to be persistent. Then I don't have to call my __setstate__... it will be called automatically by the system. This should have the effect of making any item not mentioned in my dictionary non-persistent, which will allow me to accomplish Paul's goal. Now, the BIG question... This ZODB manual is for ZODB3, which we don't yet have! So is this still the correct and workable technique for accomplishing this? Thanks again... and please everyone, don't use the old Counter product, since these tags are going to conflict horribly, and this new product should be much better for the DB, according to Paul, if I can make it work. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From lstep@mail.dotcom.fr Wed Mar 24 22:04:21 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 24 Mar 1999 23:04:21 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . In-Reply-To: Paul Everitt's message of "Tue, 23 Mar 1999 21:30:37 -0500" References: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Message-ID: <87bthilf2y.fsf@eurythro.savigny.stp> Paul Everitt writes: > One thing I've seen that's pretty interesting in a low-tech kind of way > is rpmfind from rufus.w3.org from a repository. For .deb there is the official package manager (www.debian.org), but there's a 'Debian Package Finder', which is already complete python :-) On http://badger.alaska.net/debian/finder.cgi That may be easier to convert to Zope. Luc From pj@sam.engr.sgi.com Wed Mar 24 23:50:12 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 15:50:12 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903242350.PAA02166@sam.engr.sgi.com> Wade writes: |> Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 |> /fred/barney. Then anybody can get a listing of barney, but ... Well - darn if you aren't right. Only the immediate parent directory of the item to be opened/listed matters (so far as execture permissions), not the grandparents and up. Seems strange to me -- but seems you're right. ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From neves@inf.puc-rio.br Thu Mar 25 00:38:21 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 24 Mar 1999 21:38:21 -0300 Subject: [Zope] handling exceptions in DTML References: Message-ID: <36F9857D.C40204EE@inf.puc-rio.br> "Jordan B. Baker" wrote: > > ... > > > The exception was > > > ... > > Anyone have more ideas? Maybe something like this for the version 2.3 :-) ... ... ... ... regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From ShawH@STHS.org Thu Mar 25 01:06:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 19:06:02 -0600 Subject: [Zope] New Counter Product 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_000_01BE765B.A6C63540 Content-Type: text/plain Here is the updated Counter Product. This contains two classes, one which provides a visible Counter Product which can be added as an object, and which has Security options, and a new tag which provides a means of accessing the Counter Product. Note: the tag should be able to access ANY object which possesses a getCount() and a incrementCount(md) where md==_. So an SQLCounter Product which stores its numbers in an SQL database should be able to use the same tag structure. Since it passes md into the incrementCount, the Product is free to store as much or as little of the REQUEST as it chooses. My product stores only the IP address, and only under proper conditions. The tag structure is described in the CounterTag.py source file, and examples are given. I hope this is useful to someone. <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE765B.A6C63540 Content-Type: application/octet-stream; name="Counter.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter.tar.gz" Content-Description: Counter.tar H4sIALSN+TYAA+0aS2wkR3X4StNKpEhcQarMEvUMO56PP+PETJts1uvEKJs1a28SZFmtdnd5ptj+ TLq615lEe4AbZ8SJG6cgIYTElUMuiHPuCDhzgHNO4b36dfd4/Mnau8tnSrKnu+rVq/evV/U6ZEfd yTQbJ3F3N02C3M9493aSxxlNu7VramS1t76+RmoEW2/mV72QwWB9sLze7w2WCemvrgzWa2Ttugg4 r+U881JCammSZOfBXTT+X9rCc/Tvy99bQdAJsih84jX6vd5gdfVM/S+v9te0/gervVXQ//rq6kqN 9K6RzzPb/7n+h2PQ7KZFyHBMvWBzmLEspJugcqKsYNiVXcOuAEDIoySYkqORn4RJ6jRubIvWwCEL 9TkcL1cRwLsYkKPHSRoRz89YEjuNyIu9EXW9IFDQDRJRsMbAaeze29tvyIkwK/OOQkp8GoZ84vks HjmNZRitW/VhlsIvgoyJF7IRYH37zvZ+gzxSb/v3dhubOwEwMlaAwTmAFim1IYsneUay6YTC8J33 ATj2InhmQYNw9hE8rfUqc2AVEFIdftIvQd2QRpv7KOZhF56ulVKhvcsQ+2VovT2m/kOys0tucOLF AQkY/yAHoOMpSemEehn/wfVz4uOiLpvwEjeIJ4fHKeXXw9k7eXREU5IcA3ecZAnwE1HsegoMxXl0 Bjv9tevh5q3khICLTcmYZZwcUfA9Srj3CPwHecvGlAQeuJbH6VPg7yRlGfh2NofBlUsaYrCphtTL UbpZWW7vwRt3d/YNWgg7jc0KMhF38Bnjh3wddjEEiUjWxVC2aUGIElHweQfj59DO2/9dl8Usc93O ZHqlNS7Y/8n6oG/yv/4A9//B2mB5sf8/i+a6QeK7LnGIbdtK8STzRgRVz8DnP/Jwp4ZByzpOk4js RLBhbzPYjFk0SdKs6LAs1aPQzLzueyPLgs3dc9F1udMUzvixjbHC3iB6cbst+m2ZIeDAqRxhG9zX FlCPJXBLIIasgTsfy9nz52xoWjrVgfYZk+ZOsB4Ty3Jdz3cnNI0Y50Amd13FT9MupT6c223oKfDu JmEoKGnPdNqtVlvNvz324hE1KBCDHkQ+GfddzaVvyDRKaOrOzogd2+1RmBx5ITcYHs/GuPP8X/N+ Rfe/yP8H6z11/lvpDQaDHvr/6qC/8P9n0ZSP3vI/yBln6HKW6fIp57eTOEuTUHfe296TYeBNaVg6 CLy1f/dtNL82uQuTwBa3IHYkozbZBRNmPKNxJudtJX4ewds+jSahl9HO1r77IGOhRvS9s8H2shTz FgUo3yzLDz3OtbdIHywx09mB+cxnmTT/gpq2gizx2LmfhFT8uyt8M5UwwHJnDxYN6U5Gow7+k864 IZ3QlqFIUSA7IQYgqR5RzkgYSCrOcqDpEe1YAmY/ITmnBUybTJOcxJQGmJpBXIAhDMQqT5sARQLi xIsz0SPmCVQIP4G0G9aJO0Z2InATyHUAGtb3vRgyQHjPIWFnsUBRhGZwcnk+40me+gAGylSE3k5p AOnjBnkP8jmQHTmaEkgsvRTiXAhcwSJ7Y++E7OzsVPJC8gaklQGBYT8JKM7KuJfG3us0DpifpB0f FN287YXw7ikaWlUM+xALH4o0/IcsItt5CIuBTY1ZyCbk1jSk/ARsYSzOIHeZP/ZoCDoOQ5oxCNQV VCgHL+YnVBhRNCUf5JSjhFAzKGoW0XAqMI1pODnOQ8ycYwh/ltGzeMD9CrdLHXxlLzAUO7aIzrP3 JwrCbH2O2erUgNwJkomgBvaR+sd26B3R0N6wISbDLgPcwD5gtkS9d0Qei23YAkvwe9TPQUvTOdCe sHX7sVVvyXXn7mH1pv0uoyeKKDQjwv2U0hgIMDsZJNO82MIEGbjB1M3mVcJamqYoaFdhzb5v4NDc AL0fgkXDASkEj4VXFvupIMhMaMEU5aoGKRKPqEa0BIdDiumAHgPjnGYQ9uFw4jY5DY/b4kU5tHCC bNkRfaaHHZMm9HbGHncf0mnThjAwcYWGgfcNPKAg8hCnHpQHD616EXU685ZebtXLtMmcWw6ywDF2 1hYn+dK7OQ879hTtQx0nHbu/Zrf12cuxV9ZspA/xdVgAlssC9SYQQof4VX06YDmkp+cIBUDHwaGG 0QtDZ0GEpEKBKFoAgMLRrKleW2pUE6eH9bsedx+5hQQFMWXaKl6Dxufo3cckP3eEBRXJTyHfslEJ GaNsGo3GbeznIigKdsUFAF5vnIwhrmD8zrmMzDRkEYtBg/qqA2ZXROWAoMx6JZOWKhXCLnSntWYU 1tbbwf07P3pwZ2/feSeJqSISsRShH2wAovrYS8HTIapBMPNLtEhrqajWqOp8pTnnqcyZqzBFjxxU L2co06mosg5+pRhFGcdJRpBf5U8pzfI0rqYUEKLqyhNQyzSAA0O9HkkQxx5y2Mrj0eYrfNhVjwR8 FnY+2LiomNCxyStEuQPOlYESQ3qnWw5pMFQyHB1QykYDfWV1yFsIoQIRLuZwPyxzj1guIyMlhnmQ pchRjY/S2EgUKFLNaJngaye1Ei0rNlcKrgJg4kTBga1Ubx/i4917+3fcW1tb9yFmVmFVACr5WBUA mJ/gLi7HqisVdlTppiGnpwHNUurhJjlgk8PTYMAeZC1NCdUim6TsP63TeOchP9hY6h9KO8dWDiCK x/McaKbzZl8qcq4mlyqa1NQaHzaqPW8By6oemU/HXMh5qyEXjbKYpDe0iwPgTOBD4WCATinG3CKl 9kQaC3tpCIeHTKg/45Amp2jk20kYKHvcB3v30pFIiYmNVNjkhMEkSIaPRDJsMuzS1I5eVzqYFo1m 5hJ8yFRWyhI2/XtHP6F+hhNNfFSmND/+lZ2+FJWUX6s5rStfWV6i/odh9koFwAvO/ysr62v6/L86 WOlj/W+w2luc/59Fm1//Q5U/aQFw+PLS0o1HINPSYWFpadMytcEq8ouLg7hrP62y4DMsvOkahZGP AADJnFMJMb26lKFfr7dAV8b8dOt0gnmIeQYG+IcMVHTjlgyvcSLeuux4vmxKb1cS0aUqfdcrmbML fsYoFMjTZf0Jy4LXK4xzqoNGGhrmEuIgV/GWPBVb/1s6MD0939BfOZzNc8OcNFqNp8z3llLyNTKu udCp59LF5D95uRd3kkW990rtEvkfVpKutMZF9d++zv+WB8trq2tY/xksL+o/z6S9ubP96mveS7WX ar/+ovYFtFrt008/3d3drYkHCfTy51//Sq32jVobXxD29a+98f7GX373+xdef/jJzz798c3P//bN V7/9y59/508vfrZ1/6eTTm+S/+G7//rjbz/7zWfNRt168Mnf//neC39Nf/GrF//c3uk/uDH46j8+ +lbt+8+P7UVT7RL1X1mZucIaF9V/B/11ff5bXhHf/673++sL/38W7RkUZcF+zC1OuVSK1c0NdSzE tEFf7Bx46YgfFpnDgayMeSHJ1MKioHhYzOz6qohozpn34ZWmvLgu6oh7oPmYdGmUfkj9PKOBqBVS zx/Lu1U2ktdL5ZtecfmENdUwBPgTBqkWp49oCqhzTrF4CEkQwxyEq/rhu/pdsSzRNhmknQe9pdcO WxuqCxJwoAUObEDglAYSepJwAQtQ8ChK23hyETPaBE04EwXnjKRsNM4EfYJW7A3pcSbvs5AFARAl PNOccUTpOH1F6DFLuSGs3UfC+nhNJdhXibKZKeolgB7xtcWlKukpPLfUnZtmWIuuyYWRAFpRSU2O y4JtmzJLmPion1KVmiTiCq2jb7y9PBQ0mIqYWpiLYr1eh4gKB7HjxIYl4ZlE1Is5CZLYzkT5Kdfr aKM4vQKiUNiLi/S5CwQ0w9pnTLFyRAFrWrEbvHgUaEDFBhNa0JjGRIo0FaZLg3OpuPOhh0xuCKuW GstOEuLBOY4FgJKBZbYlU2OWwvmfRkkM9AJ3opKFYvcqalGfGoxoTFN50TpKvckYEZWoF7V2cBTA RELwU7042JvABn6vrKMzx7P1LSoQkbnFCUH5cHFiuNxMpWgnTjQOPHiIxa8DaaEfuYJVHHDAGxqS bwgU0nkaRbwasmhEeOo7ja4SIdd08O4pOo/YKMAMu1FeQF2FPBFCKf1ZjPI6pRwyZyTzH/aVh4hg pz/0mP2Ko4roS37SYW73T33SITwUItBD/DSIxbknsTqk2TqrVC/hy8WfDNG2sfbAIURTXWWUcAe9 oqwk7vgLAPXUkYBVKEQGIBMv5dSF/17Em3IBbcy23dY2jI+FEdt2y6oimymvjyhsIyO3WXxhUEik NUOsDLGzE2U3zsNQ1apWl4vAOTvNjNjt6sRy8VWASklLuUI/BO+SvMErjYzMdxoIO1OQK1dWEPYA YQptnK4MqglywdMVYV3bUsVWrYgoOChL+dCUdCqfMSAiGfHdWFxIGlxtvbtDgGnLMFtiJOYOko23 3lROqZAsN2hHoagMYSrhCKSVbhnPHPlbGWmVbTUKOu4k5+PmDpbeYp9uMT9rxlxwXzKwLJ1WhYiL KkalYTfLZi+mG/hjBjlaOINArJxMmv1q9JhApmk6tGqt+nzh8rKmjCgdbY5anTDcKW7hDCBG+n6J SBCU0yscw1FfAmI7GeMX0s14szdjfEIhDsTTZkxeIf1elZnYibv9XqULq7pYFozJJplFVpDRr8pa clS1q/kWdZPPGocDfzf7p0U6I9F5kjRlf+PRMwTPE/TMdwtlOzD4ZGA5w4+ztBkm8ah5vhZbLVlw 17PPdPPTouOCKAHrupjyi+/lJYhl3SA7qgpdTvQwnZLF8HBqWfJchFshbEABPzBx9RAQlb+Pf97H wUVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEX7H2r/BpAsys8AUAAA ------ =_NextPart_000_01BE765B.A6C63540-- From jbb@spyderlab.com Thu Mar 25 05:32:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 00:32:14 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: Okay after I opened my big mouth I had to deliver. :) NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE Here's an example of what this is: This is the try block You suck There was an exception! Yay!

    It was

    It has this to say: I incorporated a suggestion that except should handle to specify the error to trap. Also, will handle any errors by default. This is packaged as a product, is this the best way to distribute this?? Grab it from: ftp://ftp.spyderlab.com:/pub/zope/Try-0.1.0.tar.gz Since I've only been programming Python on and off, hopefully I didn't make any major assumptions about doing things a certain way. Please let me know if I have. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From phil@media-1.ml.uwcm.ac.uk Thu Mar 25 09:17:40 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 25 Mar 1999 09:17:40 -0000 Subject: [Zope] IRC DalNet Channel References: <36F94463.A827A58F@jimihendrix.net> Message-ID: <002c01be76a0$54f9e220$5c773fc1@media1> There is another IRC channel on the EFNET network, #zope. It is 'protected' by an eggdrop bot so there should be little chance of the channel disappearing. It is manned, at the moment at least by, Phil Harris, Fredy Villa and others. There is also a knowledge bot, zoppy, which can answer rudimentary questions about Zope/Apache/Python. We have a small but growing community, join us. See ya there Phil phil@philh.org ----- Original Message ----- From: Ze Octavio To: Sent: Wednesday, March 24, 1999 8:00 PM Subject: [Zope] IRC DalNet Channel > Hello Zopians, > > > Another way to get in touch with Zope questions, just go to > irc.sodre.net (or another server from DalNet) in channel #zope > I will be in the channel and who wants can be operator, just talk > with me. > > Thanxs all > > Ze Octavio > > PS: Questions in spanol an portuguese are welcome too ! > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From wade@okaynetwork.com Thu Mar 25 11:14:27 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Thu, 25 Mar 1999 06:14:27 -0500 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <199903251113.GAA14712@emerald.lightlink.com> > I'm trying to put together an External Method that needs to operate > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > How do I specify an object ID and retrieve the relevant object? sorry to > be obtuse, but I can't find an example anyplace. In the online docs If I have a URL like '/manny/moe/jack', I know that from within the top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. But if the context is jack, how do I specify the top level so I can talk about manny? Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From ags@beehive.de Thu Mar 25 12:27:43 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 25 Mar 1999 13:27:43 +0100 (CET) Subject: [Zope] Problems with Computed Fields Message-ID: Hello, I want to use a computed field to convert the broken umlauts from a database. I added a computed field and tried the following expression: translate(ARTBEZ,maketrans('”„','öüä')) But when i test the expression i get the following result: Test Computed Field Expression: translate(ARTBEZ,maketrans('”„','öüä')) Computed Field Error: (, ) Does anybody have a solution for my problem? Bye, Alex From jim@digicool.com Thu Mar 25 12:38:13 1999 From: jim@digicool.com (Jim Fulton) Date: Thu, 25 Mar 1999 07:38:13 -0500 Subject: [Zope] name of top object in ZDB? References: <199903251113.GAA14712@emerald.lightlink.com> Message-ID: <36FA2E35.9695D94@digicool.com> Wade Leftwich wrote: > > > I'm trying to put together an External Method that needs to operate > > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > > > How do I specify an object ID and retrieve the relevant object? sorry to > > be obtuse, but I can't find an example anyplace. In the online > docs > > If I have a URL like '/manny/moe/jack', I know that from within the > top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > > But if the context is jack, how do I specify the top level so I can > talk about manny? The top-level object is the 'app' attribute in the Main module. Note, however, that this will change in ZODB3. import Main Main.app.manny Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mj@antraciet.nl Thu Mar 25 12:59:32 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 25 Mar 1999 13:59:32 +0100 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903251113.GAA14712@emerald.lightlink.com> References: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <4.1.19990325135759.00a974f0@lisp.atmm.nl> At 12:14 25/03/99 , Wade Leftwich wrote: >> I'm trying to put together an External Method that needs to operate >> on several different objects within the ZDB (a/k/a ZODB, BoboPOS). >> >> How do I specify an object ID and retrieve the relevant object? sorry to >> be obtuse, but I can't find an example anyplace. In the online >docs > >If I have a URL like '/manny/moe/jack', I know that from within the >top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > >But if the context is jack, how do I specify the top level so I can >talk about manny? > From an external method, self is the object the Externel Method is called from. If you have REQUEST passed in, you can access PARENTS[0], which is the top object. From there you can traverse down the hierarchy. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Thu Mar 25 13:21:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 08:21:45 -0500 Subject: [Zope] Longs on the Property page In-Reply-To: Message-ID: I vote for getting rid of the "L" everywhere. It has caused me some problems and extra fmt attributes in my DTML, too. >In the stock Zope 1.10.2 distro, putting a Long in a property causes a >curious error to manifest. When the property page is displayed, the long >is display like 44353L. If the then change any other property and >attempt to save changes, you get a traceback saying that the property >for the long is invalid. You are forced to manually remove the 'L' >before saving changes. > >May I suggest that when the properties are display, if the type is >'long' then the display code >should do something like this: >str(long_value)[:-1] > >This would remove the L before it was ever displayed.... Alternatively, >something in the response code needs to be modified to accept an 'L' at >the end of an integer destined for a property whose type is 'L'. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From Paul@digicool.com Thu Mar 25 14:05:57 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 25 Mar 1999 09:05:57 -0500 Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Jordan wrote: > Okay after I opened my big mouth I had to deliver. :) > > NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE > > Here's an example of what this is: > > > This is the try block > > You suck > > > There was an exception! Yay! >

    It was >

    It has this to say: > > > I incorporated a suggestion that except should handle to specify the error to trap. Also, will > handle any errors by default. Damn, it worked! > This is packaged as a product, is this the best way to > distribute this?? I'll get Amos to add it to the contrib area. Gotta admit, I'm *really* happy to see this. Guess I have to call you Your Most Revered Magnificenous now. Or how about just Tim? :^) --Paul From mjprobst@visi.com Thu Mar 25 14:45:23 1999 From: mjprobst@visi.com (Matthew J. Probst) Date: Thu, 25 Mar 1999 08:45:23 -0600 (CST) Subject: [Zope] Configuration of Apache-authenticated Zope on Apache 1.2.6 Message-ID: Okay, I understand that the "fall-through" authentication to Zope will not work with rewrite rules when Apache 1.2.6 is used. Unfortunately the project I'm starting is being done for a shop that refuses to upgrade to 1.2.6. I have Zope working just fine with Apache authentication; for the needs of my project, this method of authentication works just fine. However, I need to know how to properly set up Zope to run in a virtual domain "container", _and_ to only authenticate parts of the object hierarchy at one time. The idea is that we have a website docs.foobar.net that is a virtual domain on an Apache 1.2.6 server, and we need to authenticate any requests underneath docs.foobar.net/manage so that the world can see the pages but only people in our list can manage. Another simultaneous difficulty is finding the proper way to make this virtual domain automatically start in folder "docs" of Zope's object hierarchy. I've used an Alias to translate docs.foobar.net to docs.foobar.net/cgi-bin/Zope.cgi/docs , and it works fine, but I don't have proper Zen mystical knowledge of Zope to understand the _proper_ ways of doing these things, if such ways exist. I have done a scan of Email archives and most of the documentation on the Zope site, but either I'm dumb as nails or just don't know the proper magic keywords to get the information I need. Zope looks great, I've resisted learning a new language but a killer app makes it worthwhile. From michel@digicool.com Thu Mar 25 15:26:53 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 10:26:53 -0500 Subject: [Zope] Longs on the Property page Message-ID: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> > -----Original Message----- > From: Philip Aylesworth [mailto:zopelist@regalint.com] > Sent: Thursday, March 25, 1999 8:22 AM > To: Shaw, Howard > Cc: Zope List > Subject: Re: [Zope] Longs on the Property page > > > I vote for getting rid of the "L" everywhere. It has caused me some > problems and extra fmt attributes in my DTML, too. > > > >In the stock Zope 1.10.2 distro, putting a Long in a > property causes a > >curious error to manifest. When the property page is > displayed, the long > >is display like 44353L. If the then change any other property and > >attempt to save changes, you get a traceback saying that the property > >for the long is invalid. You are forced to manually remove the 'L' > >before saving changes. > > > >May I suggest that when the properties are display, if the type is > >'long' then the display code > >should do something like this: > >str(long_value)[:-1] > > > >This would remove the L before it was ever displayed.... > Alternatively, > >something in the response code needs to be modified to > accept an 'L' at > >the end of an integer destined for a property whose type is 'L'. > > > Hmm.. Could you please submit this in the Collector? http://www.zope.org/Collector -Michel > > Phil A > > ------------------------------------------ > Philip Aylesworth zopelist@regalint.com > Regal International > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Thu Mar 25 15:33:15 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 10:33:15 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Message-ID: On Thu, 25 Mar 1999, Paul Everitt wrote: > Damn, it worked! I'll take that as a compliment :) > > This is packaged as a product, is this the best way to > > distribute this?? > > I'll get Amos to add it to the contrib area. Cool.. it still needs a bit of tweaking before getting integrated. I'd like to address some of the issues Amos brought up... > Gotta admit, I'm *really* happy to see this. Guess I have to call you > Your Most Revered Magnificenous now. Or how about just Tim? :^) Umm, no. Jordan will do just fine. heh. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From zopelist@regalint.com Thu Mar 25 16:22:58 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 16:22:58 +0000 Subject: [Zope] Longs on the Property page References: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> Message-ID: <36FA62E2.55CE128F@regalint.com> > > >In the stock Zope 1.10.2 distro, putting a Long in a property causes a > > >curious error to manifest. When the property page is displayed, the long > > >is display like 44353L. > > > > I vote for getting rid of the "L" everywhere. It has caused me some > > problems and extra fmt attributes in my DTML, too. > > > > Hmm.. Could you please submit this in the Collector? > > http://www.zope.org/Collector I am not sure how to classify it. The original complaint was about the Properties page. My problem seems to be with values returned from MySQL - even regular integers get an L tacked on the end (This didn't happen with zope 1.9). So is this two seperate collector entries? Where does mine go - Zope, ZSQL Methods, or ZMySQLDA? What do others think? Has this shown up with other SQL DBMSes? One thing I just thought of: I moved my ZMySQLDA over from 1.9 to 1.10.2 without recompiling it. That is when I noticed this problem. Whould something have changed in the python header files or something that would have made it advisable to recompile ZMySQLDA? What did others do? Phil. From michel@digicool.com Thu Mar 25 17:01:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 12:01:36 -0500 Subject: [Zope] The Artist Formerly Known as NotMail Message-ID: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.com> Greetings, For those of you interested in the NotMail project we have some announcements. First, Digital Creations has officialy adopted NotMail as one of it's products. Second, in an attempt to make the products at least *sound* more mature :), we are changing the name. Third, in the last two weeks I have been working pretty hevily on NotMail and it has changed significantly. Therefore: NotMail is, for the interum, called The Artist Formerly Known as NotMail (TAFKAN). We still call it NotMail, but that's just our code word. TAFKAN was once a product, but now it's just a bunch of dtml methods. The actuall imap functionality that TAFKAN needs has been abstracted into another product called IMAPAdapter. IMAPAdapter is very early alpha software. It has several known bugs, and Linus knows how many unknown ones. Your millage may vary. It may light your computer on fire. It might delete all your mail and crash your imap server. It might send insults in your general direction. You get the point. IMAPAdapter is, in Zopespeak, a 'user database'. Other examples of user databases are User Folder, UserDb Folders, and etcUserFolders. IMAPAdapter walks, swims, and quacks (to quote Jim) like any other type of user database. The simplest example of using IMAPAdapter is: Create an empty folder without an 'acl_users' Add an IMAPAdapter (it will automagicly call itself 'acl_users'), telling it where to find it's imap server, what default roles to assign to users, and other misc stuff. Create a DTML Method called index_html containing the following DTML: > () Going to this file will prompt you for a username and password (assuming you've correctly set the permissions and roles). The username and password you enter here must be a valid IMAP login for your imap server. It is *not* necessary to add a Zope user to Zope, IMAPAdapter will try your uid:pwd pair against the IMAP server and validate/deny you based on the sucess or failure of making an IMAP connection. What you will see when you look at this DTML Method is a pretty #tree breakdown of all your imap namespaces, folders and subfolders. IMAPAdapter, like all other user databases, contains a validate() method that Zope calls to authenticate a user. This method returns an imapUser object (which inherits BasicUser, like most other Zope user objects). This user object is what AUTHENTICATED_USER refers to. imapUser exposes the imap API to the DTML programmer. The API is currently a very rough draft, and there are several functions that were in TAFKAN that are missing in IMAPAdapter (like the folder management stuff to add/edit/delete imap folders) At the moment, IMAPAdapter is pretty much read-only on your 'imap space'. Voila! IMAPAdapter is available in public CVS. Web CVS access will be here soon! (yippee!) -Michel From M.Faassen@vet.uu.nl Thu Mar 25 17:59:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 25 Mar 1999 18:59:54 +0100 Subject: [Zope] Announcing FAQ 0.2.3 Message-ID: <36FA799A.40EED15B@pop.vet.uu.nl> Hi there, Though the ZDP FAQ hasn't moved at the relentless pace it did before this week, there's still a new version of the FAQ at zdp.zope.org. It's a fairly minor change, but you might find some things that are useful to you. Of course, if you haven't seen it yet, go rush over! Happy Zoping, Martijn From brianl@real.com Thu Mar 25 19:45:09 1999 From: brianl@real.com (Brian Lenihan) Date: Thu, 25 Mar 1999 11:45:09 -0800 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.co m> Message-ID: <4.2.0.32.19990325114007.044a0e70@prognet.com> At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: >IMAPAdapter is available in public CVS. > >Web CVS access will be here soon! (yippee!) I have a Zope sandbox which I would like to use to play with new features as they become available. Unfortunately, for the past several days my sandbox server has been broken because ExtensionClass/ComputedAttribute.c is missing. Is it missing on purpose? If so, is there a way I can work around it? From jae@kavi.com Thu Mar 25 23:43:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 25 Mar 1999 15:43:05 -0800 (PST) Subject: [Zope] Anonymous after logging in? Message-ID: Hello, I'm having a strange problem with logged in users getting to anonymous areas of the site. Here's an simplified example to explain... Two directories off the / /private /public /private allows no access to "Anonymous User", requiring a login. There are no usernames in /acl_users. All the user info for logging into /private is kept in /private/acl_users. /public has no acl_users folder. If you start up netscape, you can get to /public without any problems. But once you've logged into /private, you can't get back to /public without getting an unauthorized error... You are not authorized to access this resource. Username and password are not correct. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /MCExam) File lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) Any tips about how to fix this. Note that the login info has to stay in /private/acl_users (they can't be moved to /acl_users). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From John Eikenberry Fri Mar 26 00:50:22 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 25 Mar 1999 16:50:22 -0800 (PST) Subject: [Zope] Re: Anonymous after logging in? Message-ID: > I'm having a strange problem with logged in users getting to anonymous > areas of the site. Here's an simplified example to explain... > > Two directories off the / > /private > /public > > /private allows no access to "Anonymous User", requiring a login. > > There are no usernames in /acl_users. All the user info for logging into > /private is kept in /private/acl_users. > > /public has no acl_users folder. > > If you start up netscape, you can get to /public without any problems. > But once you've logged into /private, you can't get back to /public > without getting an unauthorized error... Ok, the problem was that I had the roles defined on the top level folder and the users defined in the subfolder. By moving the roles into the subfolder, the problem went away. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From sroberts@codeit.com Fri Mar 26 02:12:56 1999 From: sroberts@codeit.com (Scott Robertson) Date: Thu, 25 Mar 1999 18:12:56 -0800 (PST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. > What crack are you smoking and do you mind shipping some to CA? --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - --------------------------------------------------- From jbb@spyderlab.com Fri Mar 26 04:59:58 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 23:59:58 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <3.0.5.32.19990325011457.01119900@mail.aracnet.com> Message-ID: On Thu, 25 Mar 1999, Amos Latteier wrote: > At 12:32 AM 3/25/99 -0500, you wrote: > >Okay after I opened my big mouth I had to deliver. :) > > Way to go! This is a great contribution, and I'd love to see it go into the > standard distribution, assuming that you're agreeable to this. Thanks. Yes, please go ahead and use this in the standard distribution with whatever changes you feel are necessary. > I like this, but how about the fact that Python errors are classes, not > strings now? This implementation does not allow things like this: > > > > > i got me a math problem > > > Because this implementation has no notion that ZeroDivisionError is a > subclass of ArithmeticError. I'm not sure how hard it would be to get this > working, but it would be a nice addition. I suspect a matter of resolving. Probably be a two step procedure, 1) try to match the error by string exactly, otherwise 2) evaluate each handler in turn and see if the exception isa class. > Another small nit is that I think that you should use 'error_message' and > 'error_type' like standard_error_message does rather than 'errmsg' and > 'errname'. I have fixed this in 0.1.1 of the Product which is now available from the same directory as the original. I've also made some other additional fixes relating to the default error handler. Here's the file: ftp://ftp.spyderlab.com/pub/zope/Try-0.1.1.tar.gz Feel free to put this up in the contributed area on zope.org ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From raver@box.dust.za.net Fri Mar 26 07:16:46 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 08:16:46 +0100 Subject: [Zope] URL and #tree trouble... Message-ID: <19990326081646.A10042@box.dust.za.net> Hi! A day or two since last question - now two new ones... Q1 My site is organized so that one folder keeps several other files and folders (containing files and folders and so on). Something like: Top [Folder] F1 [Folder] F2 [Folder] F2-file1 F2-file2 F2-folder1 [Folder] F2-folder2 [Folder] F2-folder2-file ... index_html (Top) has F2 index_html (F2) has F21 and Top Starting at URL: localhost/Top is fine and following links to F2 and from there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), but if I, when in F2, press the link to 'Top' something strange? happens: I get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing appended to the URL) What am I dooing wrong? Q2 Recently I got help on using the #tree tag, and apparantly everything worked all rigth, but ... I get the tree-view, can expand the tree pressing either foldernames or the '+' button - fine. But If I press the '+' button I'm not able top directly access the files appearing (404 error, file not found), I have to enter the folder first before I can get the file. This seems strange and I want to know if theres a solution to this. Heres my #tree href part: Help is much appreciated Sture Lygren From mj@antraciet.nl Fri Mar 26 08:38:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 09:38:11 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <19990326081646.A10042@box.dust.za.net> Message-ID: <4.1.19990326092509.00c28100@lisp.atmm.nl> At 08:16 26/03/99 , Raver wrote: >Q1 > [SNIP]... > >index_html (Top) has F2 >index_html (F2) has F21 and Top > >Starting at URL: localhost/Top is fine and following links to F2 and from >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), >but if I, when in F2, press the link to 'Top' something strange? happens: I >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing >appended to the URL) > >What am I dooing wrong? > You're URL is a relative one. The browser sees 'Top', and requests the object Top with the current Base URL, which is localhost/Top/F2/. And because of Aquisition, Top.F2.Top exists.... And so will Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. >Q2 > >Recently I got help on using the #tree tag, and apparantly everything worked >all rigth, but ... > >I get the tree-view, can expand the tree pressing either foldernames or the >'+' button - fine. But If I press the '+' button I'm not able top directly >access the files appearing (404 error, file not found), I have to enter the >folder first before I can get the file. This seems strange and I want to >know if theres a solution to this. > >Heres my #tree href part: > > > >Help is much appreciated Your URL should include the realitve path to the subfolder. the var tree-item-url gives you the URL to the current object, relative to the base object. Your code should read (untested): Or words to that effect.. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Fri Mar 26 08:38:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 26 Mar 1999 08:38:22 -0000 Subject: [Zope] The Artist Formerly Known as NotMail References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: <001801be7764$024a95f0$5c773fc1@media1> Oh good, it's not just me. I also tried the cvs version last night and was getting the same problem, Computed attribute is not an includeable library, or something along those lines 8^). Phil phil@philh.org ----- Original Message ----- From: Brian Lenihan To: Michel Pelletier Cc: Sent: Thursday, March 25, 1999 7:45 PM Subject: Re: [Zope] The Artist Formerly Known as NotMail > At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: > > > >IMAPAdapter is available in public CVS. > > > >Web CVS access will be here soon! (yippee!) > > I have a Zope sandbox which I would like to use to play with new features > as they become available. Unfortunately, for the past several days my > sandbox server has been broken because ExtensionClass/ComputedAttribute.c > is missing. > > Is it missing on purpose? If so, is there a way I can work around it? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd2@earthling.net Fri Mar 26 09:59:33 1999 From: phd2@earthling.net (Oleg Broytmann) Date: Fri, 26 Mar 1999 12:59:33 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323114004.J8268@amber.org> Message-ID: Hello. Continuing the subject... Next question. If Zope opens one connection to a database, how does Zope manage concurrency? Currently, when two CGIs run in parallel, every CGI opens its own connection to the database, lock neccessary tables, and Postgres manage concurrency very good (even detecting deadlocks). Next Postgres version (6,5) will have Multi-version Concurrency Control. But all this is for different sessions. Zope opens only one session. Is it a problem with concurrency? Oleg. ---- Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net Programmers don't die, they just GOSUB without RETURN. From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 10:08:43 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 11:08:43 +0100 Subject: [Zope] Unusual question Message-ID: <3.0.1.32.19990326110843.00908ce0@poirot> Hi, This is (I think) an unusual question on this thread, but I want to ask it. We are at the start of making an intranet, which will contain a database of procedures (how to handle some examinations etc). We want to make it able that people can query this database and get the information they want on there web-browser. A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) would be the solution to this problem. This on a RedHat Linux 5.2 system with Apache as web-server. But now we've seen Zope. I'm wondering..., can Zope do the same things as PHP3? Or is this a complete different application? How stand Zope and PHP3 next to each other? I believe PHP3 is a scripting language... I'm wondering : is Zope also only a scripting language? Or is it more? Is the scripting language (=Python?) more powerfull then Zope) Are there people, using PHP3 next to Zope? ps. Has Zope the capability to easely make these scripts? I mean not text-based , but in a certain IDE or RAD application? Please, say in some simple words what Zope is and for what it can be used... I've read the web-page. But since I'm a stupid person in this field of webservers I can't understand what they are explaining. Thanks in advance. Kind regards, Tom. From panda@skinnyhippo.com Fri Mar 26 10:55:38 1999 From: panda@skinnyhippo.com (chas) Date: Fri, 26 Mar 1999 18:55:38 +0800 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <3.0.5.32.19990326185538.0093de20@mail.skinnyhippo.com> Hi zoppelgangers, I have several applications built 100% with python CGI scripts that I'd like to run on Zope. The reason for this are : a) For the better performance (I was worried about the scalability of CGI for high-availability and knew I had to move to FastCGI or the equivalent) b) I really really like the way Zope takes care of the CGI variable handling (ie. declaring the HTML form fields as arguments in the python method). However, I don't really want to use DTML at all. The reasons is that I find it much harder to read than pure Python. This is just a personal aesthetic thing and no criticism of Zope at all (full kudos to Digicool on an excellent application). It's just coding aesthetic : I like it all kept in Python, like servlets in java (as opposed to CFML, ASP etc). So, I've put all of my CGI scripts in a newly-created extensions directory and registered them via the Zope web-manager. It was, as the documentation says, incredibly simple and it seems to work for simple methods. (I'll declare my own packages later). Now, if I just use External Methods like this (using my own ex-CGI Python scripts to query databases, IMAP etc), am I missing out on any of Zope's main benefits ? In particular, the cache management ? Would I have to turn my stuff into a Zope Product to get these benefits ? (I've not had too much joy with the Product stuff yet) chas From chsrinfo@guetali.fr Fri Mar 26 11:47:52 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 15:47:52 +0400 Subject: [Zope] external methods Message-ID: <000501be777e$83130900$147800a0@pc-pi0> Hello, I'm confused with external methods. Please help. I want an external method to access its context (for the purpose of acquisition, etc.). So I write: def myExtMethod(self): pass Within myExtMethod, I should be able to: - write self.REQUEST to access the current REQUEST object (I need to be able to modify the current REQUEST object with self.REQUEST.set(...)) - or for example self.myzsqlmethod() to call a zsql method object, right??? Let's suppose that myExtMethod is: def myExtMethod(self): l=[] for i in self.l: l.append(i+1) self.REQUEST.set('l', l) Now, how can I call this method from DTML? All don't work. I end up in a traceback. "read only class, buffer" Any hints? Jepthe CLAIN Service Informatique CHSR From mj@antraciet.nl Fri Mar 26 11:54:34 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 12:54:34 +0100 Subject: [Zope] Database connections In-Reply-To: References: <19990323114004.J8268@amber.org> Message-ID: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> At 10:59 26/03/99 , Oleg Broytmann wrote: >Hello. > > Continuing the subject... > Next question. If Zope opens one connection to a database, how does Zope >manage concurrency? > Currently, when two CGIs run in parallel, every CGI opens its own >connection to the database, lock neccessary tables, and Postgres manage >concurrency very good (even detecting deadlocks). Next Postgres version >(6,5) will have Multi-version Concurrency Control. But all this is for >different sessions. Zope opens only one session. Is it a problem with >concurrency? Zope manages concurrency by being single-threaded... so only one query at a time, on ANY connection... -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 26 10:45:17 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 10:45:17 +0000 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <001801be7764$024a95f0$5c773fc1@media1> References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: > Oh good, it's not just me. > > I also tried the cvs version last night and was getting the same problem, > Computed attribute is not an includeable library, or something along those > lines 8^). > > Phil > phil@philh.org I get, 35 % cvs -z7 -q up -P -d ? var/Data.bbb ? var/serve.log ? var/gadfly ? var/Data.bbb.trans M ZopeHTTPServer/ZopeHTTPServer.py cvs [server aborted]: cannot open directory /cvs-repository/Components/GreyThing/webdav: No such file or directory i.e. the same kind of error message....but different. tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From phd@sun.med.ru Fri Mar 26 12:01:44 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:01:44 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Zope manages concurrency by being single-threaded... so only one query at a > time, on ANY connection... What about ZServer? It will be single-threaded too? Isn't it possible to run Zope multithreaded? > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Fri Mar 26 12:06:42 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Fri, 26 Mar 1999 13:06:42 +0100 Subject: [Zope] AW: [Zope] external methods Message-ID: <01E40461E003D21195CC0080296495D80B12F7@gates.cdc-group.com> Hi Jepthe, First, if you want to acces the REQUEST object, you need to declare it as a formal parameter: def myExtMethod(self, REQUEST): ... REQUEST is then passed automatically by Zope's internal magic, which looks up formal parameter names and matches them to arguments from HTML forms, HTTP Headers, etc. The "read only class, buffer" traceback is due to a very annoying bug in ExternalMethod.py and screws up any other error messages in external methods. I can't remember exactly if it was in line 254 or 256 in ExternalMethod.py, but here's the code I use to fix it: ExternalMethod.py, from line 254 if type(error_type) is type('') and lower(error_type) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): error_message=error_value else: error_message='' With that you should get better error messages. Regards, Stefan PS: should be both OK Service Informatique CHSR wrote: > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? > > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" > > Any hints? > > Jepthe CLAIN > Service Informatique CHSR > From eq3pvl@eq.uc.pt Fri Mar 26 12:11:23 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:11:23 +0000 Subject: [Zope] Unusual question References: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: <36FB796B.DF7AD3CC@eq.uc.pt> Tom Deprez wrote: > > Please, say in some simple words what Zope is and for what it can be > used... Tom, There are probably other guys here that can give you a better comparison between zope and php3. I never used php3 but I used ASP (the microsoft stuff), which is similar (though worst than php3 :-). With Zope you get a server markup language (called DTML) which you can mix with HTML. This concept makes it even easier to program than mixing a scripting language with HTML like php3 and asp do. From what you said I guess you will just need this kind of programming... so Zope will be a better choice than php3. But with Zope you also get *the best* scripting language available: Python. You can add logic to your application by writing external methods or products. This kind of extension is much more powerful than php3, although maybe a bit more complex. Zope also has a great IDE for managing your site through the web. Although I cannot tell you which one is better, if you give Zope a run try and, ... if my instinct is correct, you will want no other thing. hope it helps, pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From tony.mcdonald@ncl.ac.uk Fri Mar 26 11:15:52 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 11:15:52 +0000 Subject: [Zope] Unusual question In-Reply-To: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: Tom, I've cc'ed to the list as this may be useful to others... > > We are at the start of making an intranet, which will contain a database of > procedures (how to handle some examinations etc). We want to make it able > that people can query this database and get the information they want on > there web-browser. ie a relatively standard web application > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can Zope do the same > things as PHP3? Or is this a complete different application? How stand Zope > and PHP3 next to each other? I've used PHP3 since it was PHP/FI and done lots of work in it. It's database integration is excellent and the ability to include PHP3 code into an HTML document and have it 'executed' is really neat (I think CGI's are ugly, whereas code in the delivered doc itself is elegant - my opinion, YMMV). I've run PHP on Solaris and Linux, and used a lot of the contributed code. Since I found out about Zope, I've desubscribed myself from the PHP lists and been focussing on Zope almost entirely. I posted a message a while ago 'Tough Questions about Zope' and got some excellent answers, for more details I'd check it out in the archives. > I believe PHP3 is a scripting language... I'm wondering : is Zope also only > a scripting language? Or is it more? Is the scripting language (=Python?) > more powerfull then Zope) PHP3 is a scripting language, and is relatively easy to get started in. I may get a 16-ton weight dropped on me (in joke) but I think that if you're used to scripting languages already, you may get your application up and running faster in PHP3, as Zope scripting ('DTML') requires a bit of a mind-flip. However, once your application gets more complex, I think you'll find that Zope will start to pull ahead of PHP3 and eventually pull very far ahead. The list of things that Zope provides 'out-of-the-box', which are very difficult to do in PHP3 is pretty long; access permissions (at varying levels) at a per-directory and per-'object' level, editing of web pages online, *undo* - yes, undo!, and versions are the things that come to mind initially. There are many others. Obviously, there are some things in PHP3 that are a bit 'unusual' in Zope too (setting variables for instance! :) The scripting language of Zope is Python - I've bought several Python books (personal rec: Internet Programming in Python by Watters, van Rossum and Ahlstrom - top geezers in the Python world) and have found it to be quite a beautiful language. You can't install Python programs 'directly' into your DTML document, but 'External Methods' seem quite easy to write. Once you become familiar with 'Products' and what *they* can do, your jaw *will* drop. > Are there people, using PHP3 next to Zope? This is a question I asked. The upshot is that it's pretty difficult to do in seemless way with current implementations of Apache (ie more or less impossible) but that a later version will do that. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? I would say, yes. I would suggest reading the FAQ, then the documentation, reading the documentation again (especially the DTML and ZSQL documents), read it once more and then if you do decide to try Zope over PHP3, have a go at your application. I think that it's highly likely that you will be able to get by with just some DTML and a database connection. I'm not knocking the documentation here - the DigiCool guys (and gals?) have relatively recently embraced the open-source concept and seem to be doing 10 things at once. > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person in this field > of webservers I can't understand what they are explaining. I don't think you're stupid at all! :) There are some new and unusual concepts in Zope that many people will not be familiar with (particularly if you're coming from a 'traditional' web-publishing environment). If it helps, I've been in contact with several other people, both here in the UK and elsewhere who are *extremely* excited about what Zope is and what it can do. > Thanks in advance. > Kind regards, Tom. You're welcome - I got a lot of help starting out, just trying to pass it along... :) tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From eq3pvl@eq.uc.pt Fri Mar 26 12:24:44 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:24:44 +0000 Subject: [Zope] external methods References: <000501be777e$83130900$147800a0@pc-pi0> Message-ID: <36FB7C8C.27BE4D44@eq.uc.pt> Service Informatique CHSR wrote: > > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? yes, I guess your are right. > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) Maybe It's self.l that causes the error. It's hard to understand what you want, but I feel it should be for i in l > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" Maybe I can help you with this. The traceback you get is probably the standard error raise in ExternalMethods. To debug external methods I use try/except/raise code blocks and when I get an exception I return it to the screen. Something like this def mymethod(self): try: mycode except: import sys return sys.exc_type, sys.exc_value return something pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Fri Mar 26 12:43:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 13:43:11 +0100 Subject: [Zope] Database connections In-Reply-To: References: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> At 13:01 26/03/99 , Oleg Broytmann wrote: >On Fri, 26 Mar 1999, Martijn Pieters wrote: >> Zope manages concurrency by being single-threaded... so only one query at a >> time, on ANY connection... > > What about ZServer? It will be single-threaded too? Isn't it possible to >run Zope multithreaded? > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because the BoboPOS (cuurent version 2) doesn't support concurrent access. The all new ZODB 3 will support this, and then Zope can (will?) become multithreaded as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Fri Mar 26 12:47:37 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:47:37 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because > the BoboPOS (cuurent version 2) doesn't support concurrent access. The all > new ZODB 3 will support this, and then Zope can (will?) become > multithreaded as well. So I have some time before I'll see problems with concurrent access to SQL server! :) > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From webman@beehive.de Fri Mar 26 13:07:14 1999 From: webman@beehive.de (WWW Admin) Date: Fri, 26 Mar 1999 14:07:14 +0100 (CET) Subject: [Zope] dtml: string to atoi? Message-ID: hi, anybody know whether i convert a string to integer (atoi) via a dtml tag? regards, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From chsrinfo@guetali.fr Fri Mar 26 13:15:53 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 17:15:53 +0400 Subject: [Zope] external methods Message-ID: <000401be778a$e630c2a0$147800a0@pc-pi0> Ok, I'm dumb. After some digging, I found that the problem lies in the expression 'self.l' 'self.' gives access to the object hierarchy, not the variables namespace. So, I solved my problem by writing 'self.REQUEST['l']' instead of 'self.l' Also, I think that this should be clearly documented. Apparently, the only way to acess variables namespaces in external methods is through self.REQUEST This confuses a 'normal' python user whose variable namespace is usually accessed through self. Can someone confirm (or infirm?) this? >Hello, > >I'm confused with external methods. Please help. > >I want an external method to access its context (for the >purpose of acquisition, etc.). So I write: > >def myExtMethod(self): > pass > >Within myExtMethod, I should be able to: >- write self.REQUEST to access the current REQUEST object (I >need to be able to modify the current REQUEST object with >self.REQUEST.set(...)) >- or for example self.myzsqlmethod() to call a zsql method object, >right??? > >Let's suppose that myExtMethod is: > >def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > >Now, how can I call this method from DTML? > > > > > >All don't work. I end up in a traceback. "read only class, buffer" > >Any hints? Regards, Jephte CLAIN, Service Informatique PS: I have been looking for an explanation of the problem for two weeks, until I wrote to the mailing list, and voila! I found the cause of the problem myself :-) One can never be better served than by oneself... From gilles.lavaux@esrin.esa.it Fri Mar 26 13:19:00 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Fri, 26 Mar 1999 14:19:00 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <01be778b$35fa2ce0$fce3ccc1@asgard.esrin.esa.it> Hello This workd for me: Another things I have already asked: how to do the same assigment on a date with a formating(to get only the year for ex.): ???????? Thanks for any help. Gilles lavaux -----Original Message----- From: WWW Admin To: zope@zope.org Date: Friday, March 26, 1999 4:15 PM Subject: [Zope] dtml: string to atoi? >hi, > >anybody know whether i convert a string to integer (atoi) via a dtml >tag? > >regards, > >webman > >--------------------------------------------------------------------------- >webman | _ >beehive GmbH | ASCII ribbon campaign ( ) >berlin, Germany | - against HTML email X >http://www.beehive.de | & vcards / \ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From hoekstra@fswrul.fsw.leidenuniv.nl Fri Mar 26 13:19:26 1999 From: hoekstra@fswrul.fsw.leidenuniv.nl (Rik Hoekstra) Date: Fri, 26 Mar 1999 14:19:26 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <000401be778b$458ed2a0$154ae584@bibf12> -----Original Message----- From: Rik Hoekstra [mailto:fghoekstra@cit10.wsd.leidenuniv.nl] Sent: vrijdag 26 maart 1999 14:17 To: WWW Admin Subject: RE: [Zope] dtml: string to atoi? > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of WWW > Admin > Sent: vrijdag 26 maart 1999 14:07 > To: zope@zope.org > Subject: [Zope] dtml: string to atoi? > > > hi, > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > try: Rik Hoekstra From WWW Admin Fri Mar 26 13:29:00 1999 From: WWW Admin (WWW Admin) Date: Fri, 26 Mar 1999 14:29:00 +0100 (CET) Subject: [Zope] 7 minute response time! thank you rik and gilles Message-ID: hi, a big thank you to gilles and rik for answering my dtml string to atoi question. never been on a mailinglist that had a 7 minute question- to-response time! cheers, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From Paul@digicool.com Fri Mar 26 13:44:12 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 26 Mar 1999 08:44:12 -0500 Subject: [Zope] external methods Message-ID: <613145F79272D211914B0020AFF6401907BBC1@gandalf.digicool.com> > After some digging, I found that the problem lies in > the expression 'self.l' > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > in external methods is through self.REQUEST > This confuses a 'normal' python user whose variable > namespace is usually accessed through self. I believe that you can just ask for it in your function signature: def my_method(self,l): return l + ' is cool!' --Paul From raver@box.dust.za.net Fri Mar 26 13:55:42 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 14:55:42 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <4.1.19990326092509.00c28100@lisp.atmm.nl>; from Martijn Pieters on Fri, Mar 26, 1999 at 09:38:11AM +0100 References: <19990326081646.A10042@box.dust.za.net> <4.1.19990326092509.00c28100@lisp.atmm.nl> Message-ID: <19990326145542.A11439@box.dust.za.net> On Fri, Mar 26, 1999 at 09:38:11AM +0100, Martijn Pieters wrote: > At 08:16 26/03/99 , Raver wrote: > >Q1 > > > [SNIP]... > > > >index_html (Top) has F2 > >index_html (F2) has F21 and Top > > > >Starting at URL: localhost/Top is fine and following links to F2 and from > >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), > >but if I, when in F2, press the link to 'Top' something strange? happens: I > >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing > >appended to the URL) > > > >What am I dooing wrong? > > > > You're URL is a relative one. The browser sees 'Top', and requests the > object Top with the current Base URL, which is localhost/Top/F2/. And > because of Aquisition, Top.F2.Top exists.... And so will > Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. > > > >Q2 > > > >Recently I got help on using the #tree tag, and apparantly everything worked > >all rigth, but ... > > > >I get the tree-view, can expand the tree pressing either foldernames or the > >'+' button - fine. But If I press the '+' button I'm not able top directly > >access the files appearing (404 error, file not found), I have to enter the > >folder first before I can get the file. This seems strange and I want to > >know if theres a solution to this. > > > >Heres my #tree href part: > > > > > > > >Help is much appreciated > > Your URL should include the realitve path to the subfolder. the var > tree-item-url gives you the URL to the current object, relative to the base > object. > > Your code should read (untested): > > > Or words to that effect.. > did the trick! Thanks! > > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From zopelist@regalint.com Fri Mar 26 14:11:38 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 26 Mar 1999 14:11:38 +0000 Subject: [Zope] dtml: string to atoi? References: Message-ID: <36FB959A.7907C2CF@regalint.com> > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > Pg 9 of DTML ref. Use something like " Phil. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 26 14:28:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 26 Mar 1999 09:28:51 -0500 (EST) Subject: [Zope] external methods In-Reply-To: <000401be778a$e630c2a0$147800a0@pc-pi0> Message-ID: On Fri, 26 Mar 1999, Service Informatique CHSR wrote: > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > Jephte In your external method l is a local variable. You can access it by simply referencing it. something like def spammethod: l=[] for i in [1,2]: l.append(i) return l Pavlos From michel@digicool.com Fri Mar 26 14:43:11 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:43:11 -0500 Subject: [Zope] Unusual question Message-ID: <613145F79272D211914B0020AFF6401907BBC2@gandalf.digicool.com> > -----Original Message----- > From: Tom Deprez [mailto:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Friday, March 26, 1999 5:09 AM > To: zope@zope.org > Subject: [Zope] Unusual question > > > Hi, > > This is (I think) an unusual question on this thread, but I > want to ask it. > > We are at the start of making an intranet, which will contain > a database of > procedures (how to handle some examinations etc). We want to > make it able > that people can query this database and get the information > they want on > there web-browser. > cool. > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux > 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can > Zope do the same > things as PHP3? It can do the same thing, and more. This isn't a hack on PHP3, but Zope has many more components and widgets out of the box. It's also object oriented, which helps when your components scales, or when you want your application to suddenly be stitched into four other application six months from now that you didn't forsee. >Or is this a complete different application? PHP has it's niche. Tony 'tone' McDonald mentioned that he thought code inside HTML is elegant, and it is, but it's even more elegent when that code is for the layout of your user interface only. Mixing application code with HTML, or worse yet, making your entire HTML document one huge script, is not so elegent. > How stand Zope > and PHP3 next to each other? > > I believe PHP3 is a scripting language... I'm wondering : is > Zope also only > a scripting language? Or is it more? Is the scripting > language (=Python?) > more powerfull then Zope) Zope is an Application written in a scripting language (Python) that is based on several components also written in Python and C. One of the components of Zope is Document Templates (DTML) which is also a scripting language. It's a bit complex, much more so than PHP's underlying system. Tony also mentioned that PHPs database itegration is excellent, and I'd like to add that Zope's is also top notch. A particular nice thing about Zope is it's database abstraction layer, what we call Database Adapters. You can write program for any SQL server and just change the DA when you change databases. Or your app could use two databases transparently; the DTML programmer wouldn't need to know which database is being queried, it would just be a case of calling the write SQL methods. This also give some compartmentalization. Your Python expert writes your external methods, your SQL expert manages DAs and writes ZSQL Methods, and your DTML/user interface expert uses all of these methods to layout the application. > > Are there people, using PHP3 next to Zope? > Comming soon. The problem is (rumor has it) that Apache sends Zopes output directly back to the browser, not giving it a change to run through any other handlers, like the PHP one. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? > There is a web based interface. The (IMO) ultimate programmer interface is emacs, which can use Zope with FTP (if your using ZServer). > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person > in this field > of webservers I can't understand what they are explaining. > Whew. Zope is a web application platform. It is a framework for writing applications over the web. It is more than this, because it supports more protocols than HTTP, but for your purposes you can call it a web app platform. Zope provides you with a standard set of services that your application can build on. Services include DTML, trasparent persistence of your data, interface to databases, a management interface for developing and managing your application, and a whole slew of out of the box objects for you to use (like documents, files, methods, DAs, mail transport, etc...) Many people have mentioned Python in responses to your question. Python is an incredible language, but I think the application you described can be done easily in Zope with no Python at all. All you need is DTML, some ZSQL Methods, and a good design and your done. -Michel > Thanks in advance. > > Kind regards, Tom. > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Fri Mar 26 14:49:47 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:49:47 -0500 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <613145F79272D211914B0020AFF6401907BBC3@gandalf.digicool.com> > -----Original Message----- > From: chas [mailto:panda@skinnyhippo.com] > Sent: Friday, March 26, 1999 5:56 AM > To: zope@zope.org > Subject: [Zope] Limitations of just using External Methods ? > > > Hi zoppelgangers, > Ha! I like this, are you by change a Peak Freak? > I have several applications built 100% with python CGI > scripts that I'd like to run on Zope. The reason for > this are : > a) For the better performance (I was worried about > the scalability of CGI for high-availability and > knew I had to move to FastCGI or the equivalent) > b) I really really like the way Zope takes care of > the CGI variable handling (ie. declaring the > HTML form fields as arguments in the python method). > > However, I don't really want to use DTML at all. > The reasons is that I find it much harder to read > than pure Python. This is just a personal aesthetic > thing and no criticism of Zope at all (full kudos to > Digicool on an excellent application). It's just > coding aesthetic : I like it all kept in Python, > like servlets in java (as opposed to CFML, ASP etc). > > So, I've put all of my CGI scripts in a newly-created > extensions directory and registered them via the > Zope web-manager. It was, as the documentation says, > incredibly simple and it seems to work for simple > methods. (I'll declare my own packages later). > > Now, if I just use External Methods like this (using my > own ex-CGI Python scripts to query databases, IMAP etc), > am I missing out on any of Zope's main benefits ? > In particular, the cache management ? > Would I have to turn my stuff into a Zope Product to > get these benefits ? (I've not had too much joy with > the Product stuff yet) > These 'benefits' you feel you might be missing out on you might not need. One of Zope's best features is the fact that you can just use the components you want. In fact, it sounds like you may just need ZPublisher by itself. If you go to our site and look at the Components section you'll see where you can download it. ZPublisher is just the ORB part of Zope, it traverses your python module and calls your methods based on the URL. Now, you can still USE Zope with these application you write. Even if you write a pure ZPublisher application, you can then plug that application right into Zope with the External Objects product available in the contributed area. -Michel > chas > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From daren@partners-dsi.com Fri Mar 26 16:22:39 1999 From: daren@partners-dsi.com (Daren Sefcik) Date: Fri, 26 Mar 1999 08:22:39 -0800 (PST) Subject: [Zope] ZMySQLDA Problem Message-ID: <199903261622.IAA23532@partners.partners-dsi.com> I am trying to use the ZMySQL component on a Solaris 251 machine, I have Pyhton 151 installed from sources and MySQL 3.22.16 from sources. Zope,Python and MySQL all work fine and the ZMySQL module compiled fine but when I try to "import" it from python I get the following error: Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umodd i3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 I also tried it from a FreeBSD machine with pretty much the same result. Any ideas.???? TIA Daren From tony.mcdonald@ncl.ac.uk Fri Mar 26 15:55:09 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 15:55:09 +0000 Subject: [Zope] Anyone using '-roman' in next-sequence tags? Message-ID: Hi all, just thought I'd check my sanity here... the way to get roman numerals showing up as the label on a batch object is : (Previous results) isn't it? - I get a NameError, with the following traceback ('sub' is nowhere in my document btw) .... cheers tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 19:03:38 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 20:03:38 +0100 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990326200338.009363e0@poirot> Hi, Thanks to all the reply I got for my question PHP3 or Zope. I'm wanting to give it a try, but .... I've RedHat 5.2 installed with running Apache I'm trying to install Zope, but am expiering some problems : I've downloaded the binary and installed it into /usr/local/dc/Zope-1.10.2 installed it with ./install -sAdmin:Admin the var directory of Zope is permissioned for nobody (done by Zope) As in the manual, Zope created access with Admin:Admin, but it says login with Zope:Admin copied the Zope.cgi to the directory /home/httpd/cgi-bin I want to use it with Apache so I had something to change in the conf file of Apache... Apache has 3 conf files. At the moment it is written in all 3 of the files (because none of them work!). This is the piece of script I've written : (from WEBSERVER.txt) #Zope configuration maps /Zopz/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] When trying to browse to http://localhost/cgi-bin/manage I get the password dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... What am I doing wrong????? -------------------------------------- Now try to use ZopeHTTPServer I can't find anywhere the file serve.sh BUT I tried to start it with start then going to webbrowser http://localhost:9673/manage I get a message of DNS problem etc... So not even a question of password... ---------------- Can somebody tell me what I've done wrong? I want to get it to work with Apache... What do I've to do? Thanks in advance, Tom. From eq3nmf@eq.uc.pt Fri Mar 26 19:31:40 1999 From: eq3nmf@eq.uc.pt (Nuno Maltez) Date: Fri, 26 Mar 1999 19:31:40 +0000 Subject: [Zope] Possible bug in Zope References: Message-ID: <36FBE09C.A209B3FE@eq.uc.pt> Hi, I noticed that if you're browsing two different Zope sites using the same Netscape, the management tree on the second one is incorrectly displayed (the COLSPAN is increased by two). Has anyone noticed this before? regards, Nuno From ShawH@STHS.org Fri Mar 26 21:10:53 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Fri, 26 Mar 1999 15:10:53 -0600 Subject: [Zope] ANNOUNCE: Counter1.0 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_000_01BE77CD.21DA8700 Content-Type: text/plain Ok, I've updated the package to remove the bug that killed it after the first shutdown/cache loss. The _v_ technique certainly served to prevent the saving of the variable, so when the system came back up, before I use the _v_ variable I was testing it to make sure it was higher than the stored value. I added a test to make certain that it exists... Is there a way to register a function (or some __func__) that gets called the the instance is reloaded? It seems fairly stable now, so I'm calling this 1.0. Please send bug reports to shawh@sths.org. BTW, has anyone actually tested this other than me? I thought from the comments I had read on the list that there were a fair number of people who were perturbed at the lack of a counter in Zope. Was I wrong? Am I flogging a dead horse here? <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE77CD.21DA8700 Content-Type: application/octet-stream; name="Counter1.0.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter1.0.tar.gz" Content-Description: Counter1.0.tar H4sIAKn4+zYAA+w8S3AbR3YNgKQIiPpYWvmzXm/a1LoAriGQ4Ae0uQRtWR+LG4vSipTtJVfBDjFN YKTBDDw9EJe2VKjEvuSwp1QOqb2lctikUqmtyjUHX1I5+55Kcsklh6QqN582773u+QHgxyQl72Y5 ssmentev33v9fv2jbW1Otnf8putM3vVcs1P35eQ1t+P4wptkx/Tw2an5+TnOOD5TPb/1C69U5ivz 87PT0zOcl2dn5iuMzx0XAXs9HekbHufMc11/L7j9vv+ePvYe419Xv6+aZsn0W/ah+yhPTVVmZ3cd /+nZ8pwa/+n5yuzULIz//OzsDONTx8jnrs8f+PgvNmFkl3KcLzaFYS4t+pZviyUYcq61YHFSVS1O EgBCbrrmDt9s1F3b9arjl2/SM46fcjiei83pJAJ4pw/q65brtbhR9y3XqY63DMdoiJphmhp6nLcE aKNZHb97Z3VtXDWEVr6xaQteF7Yt20bdchrV8Wn4ms1lF30PfiNIkxu21QCsH9y4uTbOH+u3tTt3 x5eWTWCkqQHNPQBzPPYsWk6743N/py3g842PAdgxWlC2zHEurU+hNDeVaAO9gJCy8Mv7BtQtitbS Gop5cRJKx0opjd5BiP0mtF5rivojvnyXX5bccExuWvKTDgBt7XBPtIXhy3eOn5M6dlqz2jLGDeLp QHFHyOPhbKXT2hQed7eAO8l9F/hpCax6Bgw5ndYu7JTnjoebW+42BxPb4U3Ll3xTgO0JLo3HYD/I m98U3DTAtAwpngF/257lg237AxicOaAimkv6k37Z9JYS3a3ef+/28lqIFtzO+FICGfkdLKP/UK+L k+iCyJNNoitbyoGLIi/4bTvjb+HZK/7XapZj+bVaqb1zpD72if98vlIO4n+5XMH4X5mrTJ/E/+fx 1GqmW6/VeJXn83k98Nw3GhyH3gKb/9TASA0fc7ktz23x5RYE7JsWBGOr1XY9P6rI5XSNRtPzumY0 cjkI7kYNTVdWC2SMn+XRV+QXeNB5vkj1eZUh4Ie+HOEmmG+eoJ4q4AlCDFmDrH6mWg9usxDQUkp+ KO7SaGCD3FOey9VqRr3WFl7LkhLIlLWa5qeQj6U+UuaLUBPhvevaNlFS7KnMT0wUdftrTcNpiBAF Ygg+Ip+WrNcCLushmeEgFILKUsPayhcbtrtp2DLE8LTXx+1l/wHvRzT//ex/vjw7red/lcrM3Dza /+z8/In9P49H2+jV+icdS1pocrmwqi6kvOY6vufaQeWdm6vKDbyvFCtwArfWbn+A6lfkt6ER6OJ1 8B1uo8jvggpb0heOr9pdd+udFrytiVbbNnxRur5Wu+9bdoDoh7uDrfoe5i0aUL3lcnXbkDKwFmWD MWZKy9Deqlu+Uv+ImqKGjPFYuufagn7cJtv0FAywXFqFTm2x7ItWCX8oY1xQRphXrkhToCrBByCp BtfGyC2QlON3gKbHopQjmDWXd6SIYIp8x+1wRwgTUzPwC/AJHbHO09pAEUFsG45PNdSOUCF8G9Ju 6McphbIjx80h1wFo6L9uOJABwnsHEnbLIRSRawYjV/Mz6Xa8OoDBYGpCr3nChPRxgX8E+RzIjm/u cEgsDQ/8nA1cQSerTWObLy8vJ/JC/h6klSaHz3XXFNjKl4bnGO8Kx7Tqrleqw0AXrhk2vBuahokk hjXwhY8oDf+x1eI3OzZ0BjrVtGyrza/u2EJugy40aQ5y26o3DWHDGNu28C1w1AlUKAfDkduClKi1 wz/pCIkSwpFBUVstYe8Qpqaw21sdGzNnB9xfLhxnKmC8wnAZOF9VCww51Tx55971Ew0Rhr5qGOr0 BxUJ3DZRA3Ek+1neNjaFnV/Ig0+GKAPcQBwIQ2IQO1qG5eQhBMbgV0W9A6O0MwDaIF3PP81lJ1S/ A2NYtpD/0BLbmihUIy7rnhAOEBBGMkimZRTCiAwMMNkweMWwxpppCopJ2DDuh3CoboC+boNGwwTJ BouFV8upe0RQ2GACmmhTDZEi8YiqIWJw+EkzbYotYFwKH9w+TE5qBSnsrSK9aIMmI/Cnq1QX1lhb vAC1paYha4/ETiEPbqBdoxEG3hdwgoLIbWy6Ef/4IJeNvE5pUNfTE9k4bSrnVh8tsxrqWZFm8rH3 cD5cze+gfujpZDVfnssXg7lXNT8zl0f6EF/JMkFzLVO/EUKooN+6LnBYVT4VtKEBgIqNBwFM0DFU RkQoKjSIpgUABEzNCvp1Qn8NiAs+B+/B99rjWiRBIiZOW8JqUPmqQfQJk58bpEFR8hPJN65UJGOU zfj4+DWsl+QUiV1aAMDlje0m+BX03x2pPLOwrZblwAgGSx3QOiGqKggq7C+m0mpISdjR2AWjFg5Y MQgH92785P6N1bXqiusITSRiiVw/6AB49abhgaWDVwNnVo/RorQlMbThUO09aNW9hqw6cMA0Peqj ftllMKuJocyCXWlGUcaO63PkV9uTJ/yO5yRTCnBRWW0JOMrChAlDNttSINX8ooRQ7jSW3pCLk7rI wWYh8kHgEtSglOdvcG0O2FY5SnTppcm4S4NPMcUJHEpcaaAuPhxqFYKGAN0FMgNdG77vqaHP94hC OY6DSAl0Dv3PAMDFOOBB0Wm5DoKMuaKkw1Us8JapeQ+/xiXwu897wp8nrCLm/gmgXW2ZG3mtnPkH WLx9Z+1G7er16/fAqydhtYuMeYEkAEizjXmG+pbsKdL0RLWwpegHDLvShTf5htV+0A8G7EFeVVBQ E3yJxy18oh/vIOQbC1fKD5Ql4hN3cZrHvUy8p/LNstKMgSN5JTGSAbWhlwmHdq8OcrnkpL4/KkBW ngwKqOVRoyDk7u+ie1wzCgdDiCcwKkRJv0GJNkR7G6Y3Pg2/LyGR99Bqbrq2qfVxDQzI8BqUtPM8 UpHn2xY0gnR9k9L1cA4Qa1oK+lUWG4gmYOYAfKhkW8kS0pI7mw9F3ceGoQfXqjTYQ8e9SMxvakeh 20z8IS6q/h49B9j/xTB7pA3gfdZ/Zmbm9f7vzNRsZaaM+7+V2amT9Z/n8Qze/8UhP+wG8OLrV65c fgwyjU0Wr1xZyoV7w0nk+28OY9b2rLaFn+PGa7BHFcqHAEAye+yEhbXBVlbwerwbtHHMz3aflpiH iBLCAP8wA6FqTHjg1XHpbdLaGiyb2NuRRHSgnd7jlczuG76hUmiQZ8v6IbeFj1cYe+wOh9IIYA4g Dn4Ua+l4lFjdChzTs7ON4JTL7jyPhzPNifFnzPd1PcjHyHjARZDYX9mf/MNv92MkOdnvP9JzgPwP dxKP1Md++//lIP+brkzPzc7h/l9lunyS/z2P5/3lm2+9bZxn59lf/5b9Fh7Gvvzyy7t37zIqKKDX vx5KMTbMiviCsO9m3vt44V//4Tdj7z769Z99+dM3v/73kbe+95d//to/n/nq+r0/bZem2p1//MH/ /NPff/W3XxXGs7n7v/6P//5o7N+8v/jVmX8pLpfvX66k/+vTi+xH3x7bJ49+DrD/r3bmjtDHPvZf qZTng/nf9ExlGh1CuXyy//9cnuewKQ/6E66RxbfKcXd7QU8LMW0Ils02DK8hH0SZw4baGTVs7uuO aUP5QdRysq43kcN55j14FZ6MFuNKtMo2GFOwNS5+IeodX5i0VyyMelMthVsNtXgXX+mnpT3cU7dt gN+2INWS4rHwAHVHCtw8hiTIwhxE6v3jD4N3zbJCW7Ag7dyYuvL2g4kFXQUJONACEzYgcEeYCrrt SoIFKCjS0QacuVCLIkcV9unAgc89q9H0iT6iFWttseWr1UJkgQBarvQDziSirFbLmtAty5MhYcUy ElbGRUBiXyfKYUvaLwP0iK9IS9Z8SuO5qlc0A4YD0RUkKQmgpZ10dysu2GK4zWa7dRyf2CkF7tIC ZSnYoDA6NtEQ7ojqjiUd1gj64bTDxfOOm4cuocxbwnAkN10n79P2YyfoJ1CK/h4QhcYe7XsM7MAU Pu59OwJ3DgVg9RJ6g8u6hAaGOMSEGtQUDlci9Uh1hbknFTd+YSCTC6TVasT8bZcbMI+zTEBpgWYW FVNNy4P5v2i5DtAL3NFOJordSAyLPmrSEI7w1DJ2wzPaTUQUo57OWoChACZug50GnYO+ETawe60d pQGWHaxRAxF+LZohaBuOZgwHa6kHuuq4AQ6ceFDnx4E0Gh/VQy6a4IA1jCu+wVEo4xmP/NWi1Wpw 6dWr45NahDKgQ0720blpNUzMsMfjHeilkEMhVNLvxaiWU+Ius0cyv2OnfMiD9R/06T3Fk0T0DY/0 hHsnfUd6yELBAz3Co2GW0zEU1iovTOx2VEPBx7fWfERbxJ0dCS5aBLvMCm5jKtq0ox2UCECXSgow CYXIAKRteFLU4KfRkgXVQaDM+Xwx0GEsRkqcz0/kksh6jlc0BISRRq0QnTCJJDLRQ6xysb0NVTW2 Q1c1kTxdEDnO3mbhl3wx2TC++U6gStJKrlAPzjsmb7DKUEbhOR2E7dnujO9bIewGwkSj0b/vqhuo DvtPBAQ7h3pvPBiIlrkRl/KDcMMscYwFESmPX3NoQTLEVQyiOziYonKzMUYcWUWycdVbqCYJklWA rmoUiU+YSlQJaaJa+bOq+p34MhHX1ZZZqrU7sllYxo1Npy6uW3W/4EjiPqZgvreTFCJ2qhlVil2I qz01D+G3LMjR7B4E1LPbLpST3qMNmWZYEQxtLjtYuDI+UqEoq4E6BsMJn0vRKlwIiJ6+HCMSBFWd igyjqk+C4rPdxBPyBWdpqkf5aECq4E8LDn+Dl6eSzDhVZ7I8lagKTlM4fIn3IovIKCdlrThK6tVg jXpT9ipHFf5/s9wv0h6JDpJkeKgitOgeggcJuueYSVwPQnzKsexix75XsF2nUdh7FCcm1HGGoPWu Zt4vOklEEWythik/3ZdQILncZb6s9/jjiR6mU+qogb2Ty6l5EYZCCECm3Aj96gNAFE2Tcs9/RfKA 93/qR+kD5/+V3ef/5emZmeD8/+xMGfd/K/Mn93+fz/NXK2dyvvd1hQZ4GP6Xfwc/uvBfipmMrUMh wx6lmJ1iqe4we5Rm62nWHWGPMmw9w7qjrMnYkJliaTPNFofMDBSG2OJWiq0Pse5Z+irSzBqG+gwA YHkEysNscf0U615k5ggzTzFzlG2l8T8zy7aYLq+Psu7LCgPQkmMiyz5n7PM0ND8NzXPMHGOrhTNI 83fhR2xVoefykjwVfZZDUKbIeQkKA68JyRH4ovag5QuDgCT2mbjmIy8k4IJrPvJsX7U8h7Qkr/jI 01AXW2wnevX7SgE/Uo2+qiWzUA7v+yR4y0Vl8Cb0Gl24ImJ6OM0lqgiXvkhFHPWfECcQfYRKorrQ ifcCKo8sw4/JptsSk58a7ckDOhaZglbvpBhRN5bOpbOpbPr7I68Pvz78rFX/5GEHvf91JPe/j/8v T09NTfX6/8rM3In/fx4P+v/f/DLu/3/FAv//SPn/NPr/9RQFAuX+h9D920PMHmb2iIoLp5g9CiUI DFlm56A0iuFDMGadZmKEgQe3xph1hmEAOMusc2xriEHY+IKhT//p+nnWbTEBVWkmXtBufv0C67pM QIzIsC+Agu8wCC2rBSIy5vWIcogpTF4EX6L6RbJfZd3XsAuk/I8QMVL+OiLDwHVZBa4hFYuGTAxK p9giVY4GlVlVibEIolkBgxCEHoDVwWqM4lWKymeYeZaZ55h5nm1lmPkC1UPhAjMvahhgeX2YdSeZ +R1kfH2EdeeQQvzvRWa+xMyXmXmJfTHMMDa+wwTw8koU9iDida8y87vU9jTr3mACCHiVZHOGddeY +T36dJZ115n5GpXPsXurhe+jxP4ThBNffT+5qBY9/68uqsWzB5XkDLqU1pc3RDfNKK7ThTJKTGJH e+OZ0SgUg9tmlBAlLnnJl6Bml4tkcax4OJBSjf6LY5QR9GRKsZY01GPIauxGjzwPFb0XxYhVfU+M 0j+ki3iOJov1NMvQP3kd3d8k606xJyn2FFxGmT0Bn5VGK/08xdyz4NumsQreqw5mxTPMzzBriD1h WA2GmgIPtFpIA6IV6iY6pV5AAZJ86Q6YzFBpmijUK1ZqMMIbY8Ri/NYYcYBz1AI1Dt4GIMXwebB8 LAr0fd1NMhrpTCqbupg6m6qPkKsFOT1BOc2xbgXlBC81eJ1HAWAZxPYWCgjL4GzfZg1GZfCiC+xJ Br3xQwUJ/vBHzB9hT4ZQulgDrm+RaoaDGpgHVLFgZeg1y0i+yOaKhc6fON4RsoCikyh3y0wKho5a JgwDB0LrDObT4XlEaoe7QgStT+ORCIKzaJTB99w9UOMadqlJiHpOdrEr5kON2CiNmEqo5xhZQCY1 pv9doH+BgIiw8hz9mpmLTzvwJFUdlFmN7Ys4tldZ9z3WvRYMHYUppdUSD24c4cLcisISiisai0Iq 8eHQGhz3CVcVwkwqk6qfYvgPOPwb5PAG695k3fdjCnxLG/bDUI2X0bhBY7UqggL/mGpCdQUF/mOq CdUVwvoHpK4jgT7fZk9GmJ9lD7PMzYPHWGF+Dm0AchHIQCDXeEJ50otqMvw5y6yiY4E8ZLWAmiPH USf3vfsXjnKkdyhZdUtOz+3olpz8AZQPclEu7u/RxSfux60UxgJnpjoLh+2bGlTcLgcYF33X10kI G94/IXoSFwO11RVO9bnFb2SDcWLiHR9KF3vi1Q1GsQ5VMTDNC6lzqfOpyPSqqJhrrHufdT8ktSCd gvDzkDH3IujOR/pd2SQFoI814GpkoZdUdOu/nbjSEzZ2k3fg2I7BIEdjkXYtCCeZ1IsQUCDsDim+ RzB3X2fdDdb92UC+H/Tz/Sc6KLifw0sNzRgE8ArY1SsYt3+ubfApBCCDAlOGPRxh7mkA3kTTW3Vu QdHEevjaSLGXEFQw/1Rk8NYoezjE3AsAuEWBa4id5gBG/TeoKVk8vVuacAB6SZHZfZjg5WX8lSWM yNKj6CO4GjL5TDDBuRRPZOLDmFDK01QOryWuWDhcKgwedIR77AK1p2UqW2rHoySqDSTAuxpOYagv BA7EcygVOst607p1Jr8fU6QzqRfApM6nTqfPp14Bozqfvph6LVXAYJhYOwtX/7CAf7OB2I8WyWIL dvrvMey2ENaXl8XjML0E9w8Ta2a9GXVfBhs6uN5cN25GAwSi1uAOJd3YVGBUraVmL2bSWfo3M3zr 1NjIq7lL6bGhc+fGRig9je5TQkQdhYwQDLiGjstlXY91feYzCqpkcxAqMTYOs6cQCTvaqPDrKcqV u48pOOYoOL4E79s6GmI6PYIgKhiGrq2D1H4bVy11wItPnA6b6MXtLzQZlGx0D3Nw1OtRn8Jon9Ed lpygqzhph9Km5Jqyy6gik8mkXwU7PZ9aKaBrI0Zif6dHLanH/xoPOZw7N1eJIP3XhpJm1Z8B9Eyd XobX3Y420rrzD0nZdz/WSH5LF7Hr4I8JkcTxDwUpBxz9xSCiIPpjQQRHhbjSxN3BgDX5cKyTgjyC fQdL7OgNx2Ail4VhyKVy6bK4lD7w+d8jLAHvs/5bLlfme9Z/52emKifrv8/jwfXf//1Cr/+SI7nK Yuu/tO2XxnVfOwOlIZx6b7H4yi3MiD7FlVuRwV0+3AWkJIZQJfejqAtMc+Un2MVQsFD7Ni4B6IXa RcSOC7VLiApXMDM4Q8MVYEaLsLcxu8IyzLt+glMnvZD6c1yWxTIEGQdnUVgeZRBdxChbz+IyKPnK X44kl0FPDiGfHEI+OYR8cgj55BDyySHkb+UQcjzhrqfZMMyngvXJJdwE1KsaP8vgZsRT+AlB8F2c VFksWF6/yvxhvaquVxQzGBlNXMTI6HXMa3o1BGFok0IvTV4P6ocwgP5fe+fX2zQMRXE7bdJ2pNuo YKwPAx7gadLEBPQJ8TohRNHoQ+EBaaJDojCljFXThJgiwXfjc+FzrvPHSRijRQiJWFrVJp7j63Nt xz/ftOa4ebX0sw1Cas/6pbOWwqP2lsLnVw48QChOT+ZCJHVll9cjl0SEysIlXZ5jBmahNkY0W+dg HZYPgZZbaokRLlH+qhoIY3EA9OWqcF/95v23+JoDBx4rGgBwsabveJv6pp5g64kcbADh90iiyYZA vGTjCQzqSUKMjEeMImy4P8Uqe0QpcJs/LFjmGJHsMKUQBHZLVHOBClbkWNj0nDZ7ojYs73nccqPN ADnmxi4eWhI/tQTvedE2VtKSpbSueVrpWmFz5h1iUSPc3cJnyZbCup74qiVd9ius2FfxC9IP3iN/ YWdDz7Q7Bg3Tzfrn5tZ1DFOnLTVvA45AYQ8i6/iV+twHCJ132BIr9tx5oMamISweZTDFoS//8Vq9 BAkNbEuhgYd0Y47B7GtmduARThfsrAIKGTvXSbRGKLkLzn9SAhs2SlkhjjMmnG6djwvnEt0J+nY6 E9kyr8jA7laVeJeohhSzqLK5Kkq0736yh3bX73uB7mvI3ASqbpnR2Qj9HUIfEConndEIMW1gPQS3 fQPpgZInUB/j9SEcALK/VWcxXsUxwIEjkmW4gYcxeMOUZLQGWubn6yjwXZY/nHUJmnGFplDn95mj GCcQ4PaNzO0GLvmB/idw+/iR0uP4COfEWXyO3mhAGcLpGvB1iTp00FTm/ok2DpHUFKMskqjT4Og7 z8lZavdq/S8uNituUflXi9U4ORAE2tCbRCUdHah1S5i7+pbuwROwbWE8AQ9Fm9VmPLOeMNsyenxM NirELZr2jaZYxzzpq9m2+fAJ29zYbcjnbzPah++Nalduj6KrJutcydaBZBplAQZVxN+dbKu1KwPk /GQpIQTCJhFbX4bPhQB5r0q7RTUJ0vIjSw9Ny2+Zv21PLK0k+r1kEnee2XKxfP4+odAuJX+sMDNX M1uuPA0gbG6ZuSU70lQn18yBzsMGQ2HDThiEzXAtXA3bblww5fqjiLMQPtzm1eSJheUsTAAkrtXV K97GqarTv5EuEvEUKH0W7czPliOfv3j+A7/3l/7+3+6DAeN/B/X3//2VlGCt3Z179dch1alOdarT f5R+AGnTMxgAeAAA ------ =_NextPart_000_01BE77CD.21DA8700-- From jim@digicool.com Fri Mar 26 21:36:49 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 26 Mar 1999 16:36:49 -0500 Subject: [Zope] Method icons Message-ID: <36FBFDF1.23E9F89A@digicool.com> Hi all. Here's a minor issue I'd like to get some opinions on. There are some ideas in Zope that cross object types in Zope, like folders, methods, and content. We reinforce the idea of folders by giving folders icons derived from folder icons. I'd like to do the same thing for methods. The basic idea is that there should be some basic icon that indicates that something is a method. It should be possible to decorate the icon to indicate a particular type of method, such as adding angle brackets for DTML or adding a table grid for SQL, or OO (or glasses ;) for Python. Note that one complication is that the image should fit in a 16x16 icon. I've put some ideas at: http://www.zope.org/methodIcons I'm curious what folks think of these and whether anyone has any better ideas. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phil@philh.org Sat Mar 27 00:30:03 1999 From: phil@philh.org (Phil Harris) Date: Sat, 27 Mar 1999 00:30:03 -0000 Subject: [Zope] installing Zope References: <3.0.1.32.19990326200338.009363e0@poirot> Message-ID: <001101be77e8$ffc87d80$0202a8c0@typhoon> Hi Tom, Try this:- RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Notice the underscores, where you had hyphens. HTH Phil phil@philh.org ----- Original Message ----- From: Tom Deprez To: Sent: 26 March 1999 19:03 Subject: [Zope] installing Zope > Hi, > > Thanks to all the reply I got for my question PHP3 or Zope. > > I'm wanting to give it a try, but .... > > I've RedHat 5.2 installed with running Apache > > I'm trying to install Zope, but am expiering some problems : > > I've downloaded the binary and installed it into > > /usr/local/dc/Zope-1.10.2 > > installed it with ./install -sAdmin:Admin > > the var directory of Zope is permissioned for nobody (done by Zope) > > As in the manual, Zope created access with Admin:Admin, but it says login > with Zope:Admin > > copied the Zope.cgi to the directory /home/httpd/cgi-bin > > I want to use it with Apache so I had something to change in the conf file > of Apache... Apache has 3 conf files. At the moment it is written in all 3 > of the files (because none of them work!). > > This is the piece of script I've written : (from WEBSERVER.txt) > > #Zope configuration maps /Zopz/ to the Zope.cgi CGI script > > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] > > When trying to browse to http://localhost/cgi-bin/manage I get the password > dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... > > What am I doing wrong????? > > -------------------------------------- > > Now try to use ZopeHTTPServer > > I can't find anywhere the file serve.sh > > BUT I tried to start it with start > > then going to webbrowser http://localhost:9673/manage > > I get a message of DNS problem etc... > > So not even a question of password... > > ---------------- > > > Can somebody tell me what I've done wrong? I want to get it to work with > Apache... What do I've to do? > > Thanks in advance, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd@sun.med.ru Sat Mar 27 15:44:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Sat, 27 Mar 1999 18:44:42 +0300 (MSK) Subject: [Zope] Zope info on postgresql.org Message-ID: Hello! I am creating a record on Zope on postgresql.org: http://www.postgresql.org/software/detail.cgi?oid=3440544 I need a short informative description on Zope. Something like "Zope is opensource web application platform - software complex for creating highly dynamic web-sites". What is contact e-mail? I wrote zope@zope.org. Shouldn't it be info@digicool.com? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From daren@sefcik.cc Sat Mar 27 17:49:12 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sat, 27 Mar 1999 09:49:12 -0800 (PST) Subject: [Zope] Zope+FreeBSD.??? Message-ID: Has anybody gotton Zope and FreeBSD to work..?? I cannot get it working and have read some posts to same extent, if anybody has it working could you be kind enough to share your setup details?? TIA, Daren From martin@dougiamas.com Sun Mar 28 13:59:27 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Sun, 28 Mar 1999 21:59:27 +0800 Subject: [Zope] Automatically creating instances for each user? Message-ID: <36FE35BD.AEBBC507@dougiamas.com> Hi, I'm new to Zope, but I'm eagerly learning it. I like the paradigm - it seems to fit the way I think. This is my first post here. I've hit a snag, and I'm hoping someone more experienced can point me in the best direction. I'm developing an application that needs user-modifiable pages. I already have a Zope form where the user can edit text properties of an object, and another page that displays those properties as HTML. My problem is, I want each authenticated user to be editing their own instance of this object, and I also want the URL to be the same for each user. eg fred sees http://host/mypage as fred's editable page mary sees http://host/mypage as mary's editable page What is the best approach I should take to achieve this in DTML? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent is == i see ### Centre for Educational Advancement ### Curtin University of Technology ### http://cea.curtin.edu/staff/martin From daren@sefcik.cc Sun Mar 28 17:31:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 09:31:27 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? Message-ID: What does the ZMySQLDB Database Connection String want to connect to a database?? Could someone please provide an example of what I need to use to create a Z MySQL Database Connection...suppose I have MySQL running with a database named "webdb" and user "joe" with password "password" can accsess it. I am a bit confused as to what ZMySQLDB is asking for. TIA, Daren From kristian@vilmann.com Sun Mar 28 16:59:23 1999 From: kristian@vilmann.com (Kristian Vilmann) Date: Sun, 28 Mar 1999 18:59:23 +0200 Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: (message from Daren Sefcik on Sun, 28 Mar 1999 09:31:27 -0800 (PST)) References: Message-ID: <199903281659.SAA00997@supernaut.strangeparty.dk> Daren writes: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? Yes, the documentation is a bit unclear about this. > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. > You'll need a Database Connection String like this: "webdb joe password". /kristian -- Kristian Vilmann - kristian@vilmann.com Disclaimer -- These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d ^X ^? exitX Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^vi man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d !! man help ^C ^c :e! help exit ?Quit ?q CtrlShftDel "Hey, what does Stop L1A d..." From tsarna@endicor.com Sun Mar 28 18:07:08 1999 From: tsarna@endicor.com (Ty Sarna) Date: 28 Mar 1999 18:07:08 GMT Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: Message-ID: <922644428.678749@zoo-of-death.endicor.com> In article , Daren Sefcik wrote: > What does the ZMySQLDB Database Connection String want to connect to a > database?? dbname[@hostname] [user [password]] > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. "webdb joe password" should work if the database is running on the same machine. From daren@sefcik.cc Sun Mar 28 18:18:45 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 10:18:45 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: <922644428.678749@zoo-of-death.endicor.com> Message-ID: > dbname[@hostname] [user [password]] Works like a charm!! Thanks to all who helped me with this! Daren From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 08:25:24 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 10:25:24 +0200 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990329102524.0097e170@poirot> Hi all, Well, now I don't understand it anymore.... Just back from the weekend (where on Friday I had these installation problems) Now went to the Zope directory and what did I saw? The 'Start' and 'Stop'. I wrote ./Start and then surfed to the correct address and it works! Why did'nt it worked on Friday? The whole weekend searching for a solution and then it appears it isn't needed... (almost) But, still I would like to work with Apache... Why? Because I've heard it's the best in web-servers... (I don't know it's through, but I believe it) Or is the comming ZServer better? Now, I believe I have to recompile apache again to make it ready for Zope, isn't it? I thought I only had to put it in one of the configuration files, but instead you've to write that script in the ./configure file. Kind Regards, Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:03:26 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:03:26 +0200 Subject: [Zope] external databases Message-ID: <3.0.1.32.19990329110326.009816b0@poirot> Hi again, I've a Postgress database with some data I want to use with Zope. So I've to install an external driver. Is it so that I've to recompile Zope? This means that I've to download the source and not the binaries of Zope, like I did... Isn't there a simpler way? Because when I need to recompile, I've do download also all the correct libraries of each program... sghh. Please, let there be a simpler method. Thanks in advance. Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:22:48 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:22:48 +0200 Subject: [Zope] examples Message-ID: <3.0.1.32.19990329112248.00979a00@poirot> Hi, Can you send me an url where I can see your work? So I can get the idea (especially database related) what is possible with Zope. TIA Tom. From martin@dougiamas.com Mon Mar 29 09:22:48 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Mon, 29 Mar 1999 09:22:48 +0000 Subject: [Zope] Usernames in ZopeHTTP logs Message-ID: <36FF4668.5BAA002D@dougiamas.com> I found Zope's HTTP logs at: ...zope/var/server.errors which is what I need to monitor the server, but they don't appear to be including usernames (just a '-' in that field). How can I turn logging of usernames on? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent ### Centre for Educational Advancement is == i see ### http://cea.curtin.edu/staff/martin From phd@sun.med.ru Mon Mar 29 09:27:15 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 13:27:15 +0400 (MSD) Subject: [Zope] external databases In-Reply-To: <3.0.1.32.19990329110326.009816b0@poirot> Message-ID: Hello! On Mon, 29 Mar 1999, Tom Deprez wrote: > I've a Postgress database with some data I want to use with Zope. So I've > to install an external driver. You need to install and compile ZPygres Database Adapter and add it as described in ZPygresDA docs. You don't need to recompile Zope. > Is it so that I've to recompile Zope? This means that I've to download the > source and not the binaries of Zope, like I did... Isn't there a simpler way? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Mon Mar 29 09:41:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 29 Mar 1999 11:41:44 +0200 Subject: [Zope] Automatically creating instances for each user? In-Reply-To: <36FE35BD.AEBBC507@dougiamas.com> Message-ID: <4.1.19990329113945.00c38de0@lisp.atmm.nl> At 15:59 28/03/99 , Martin Dougiamas wrote: >Hi, > >I'm new to Zope, but I'm eagerly learning it. I like the >paradigm - it seems to fit the way I think. > >This is my first post here. I've hit a snag, and I'm hoping >someone more experienced can point me in the best direction. > >I'm developing an application that needs user-modifiable pages. >I already have a Zope form where the user can edit text properties >of an object, and another page that displays those properties as HTML. > >My problem is, I want each authenticated user to be editing their >own instance of this object, and I also want the URL to be the >same for each user. > >eg fred sees http://host/mypage as fred's editable page > mary sees http://host/mypage as mary's editable page > >What is the best approach I should take to achieve this in DTML? AUTHENTICATED_USER.getUserName() returns the name of the current user. You could use this in the DTML of mypage to select the object you are working on. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Mon Mar 29 10:37:46 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 29 Mar 1999 11:37:46 +0100 Subject: [Zope] (no subject) Message-ID: <00e301be79d0$2f6a32c0$5c773fc1@media1> Hi all, I'm using Zope 1.10 with IIS 4.0 on an NT box. All is working well, I just have one small query which is slightly off topic, maybe. The URL for Zope is 'http://localhost/scripts/z.exe' and I would like it to be 'http://localhost/z/', I know that with Apache I could do a rewrite and this works great with Apache, but does anyone know how I would do something similar with IIS. TIA Phil Harris Mail Phil@philh.org IRC Efnet #Zope #PHP WWW www.philh.org From chsrinfo@guetali.fr Mon Mar 29 10:57:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 14:57:36 +0400 Subject: [Zope] external methods Message-ID: <002801be79d3$29f169a0$147800a0@pc-pi0> Hello, >> After some digging, I found that the problem lies in >> the expression 'self.l' >> >> 'self.' gives access to the object hierarchy, not the variables >> namespace. >> >> So, I solved my problem by writing 'self.REQUEST['l']' >> instead of 'self.l' >> >> Also, I think that this should be clearly documented. >> Apparently, the only way to acess variables namespaces >> in external methods is through self.REQUEST >> This confuses a 'normal' python user whose variable >> namespace is usually accessed through self. > >I believe that you can just ask for it in your function signature: > >def my_method(self,l): > return l + ' is cool!' Nope, With that definition, my_method expect to be called with the arguments set, eg to display "Zope is cool". However, I want to get the variable l from the namespace. (application variables made with REQUEST.set, Folder or document properties, etc.) The question was: is self.REQUEST the only way to access the variable namespace? And the only way to *modify* the variable namespace from external methods (with self.REQUEST.set)? By the way, I'd like to thank Stefan Franke and Pedro Vale Lima who gave me a pretty quick answer. I did find the answer before they wrote, but anyway, a thank is not that expensive :-) Also, thanks to Paul who gave me such a useless answer. :-) (just kidding) Regards, Jephte CLAIN Service Informatique CHSR From Paul@digicool.com Mon Mar 29 13:04:07 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 29 Mar 1999 08:04:07 -0500 Subject: [Zope] Zope info on postgresql.org Message-ID: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Oleg wrote: > I need a short informative description on Zope. Something > like "Zope is > opensource web application platform - software complex for > creating highly > dynamic web-sites". Thanks Oleg! Try this: "Zope is a free, Open Source(tm) application server for creating powerful, dynamic web sites such as community portals." > What is contact e-mail? I wrote zope@zope.org. Shouldn't it be > info@digicool.com? Yes, info@digicool.com. --Paul From chsrinfo@guetali.fr Mon Mar 29 13:23:48 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 17:23:48 +0400 Subject: [Zope] error in pcgi Message-ID: <003601be79e7$80d806c0$147800a0@pc-pi0> Hello, my site was working great when suddenly, I got a "Temporarily unavailable" message. The pcgi.log reads: unexpected out-of-bound data in stdin t[0]=60 several times. I suppose this means that something is writing to the stream read by pcgi. I didn't do anything other than uploading new versions of my DTML Documents to the site. (I have done this all the aternoon long). Have you already seen this behavior? Does someone have an idea of where to start to find the problem? Regards, Jephte CLAIN, Service Informatique CHSR From phd@sun.med.ru Mon Mar 29 13:11:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 17:11:55 +0400 (MSD) Subject: [Zope] Zope info on postgresql.org In-Reply-To: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Message-ID: Hi! On Mon, 29 Mar 1999, Paul Everitt wrote: > "Zope is a free, Open Source(tm) application server for creating > powerful, dynamic web sites such as community portals." > > Yes, info@digicool.com. Thanks. Updated: http://www.postgresql.org/software/tools.cgi > --Paul > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffbauer@bigfoot.com Mon Mar 29 13:58:03 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 29 Mar 1999 07:58:03 -0600 Subject: [Zope] error in pcgi Message-ID: <36FF86EB.5F5BC6FF@rubic.com> Service Informatique CHSR wrote: > my site was working great when suddenly, I got a > "Temporarily unavailable" message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is > writing to the stream read by pcgi. I didn't do anything > other than uploading new versions of my DTML Documents > to the site. (I have done this all the aternoon long). > > Have you already seen this behavior? Does someone have > an idea of where to start to find the problem? The error occurs because a value is appearing in a pcgi reserved header record, possibly because your application is sending something to stdout. I'm not sure where to tell you to start looking, but if *all* you have done is uploaded .dtml files to trigger the error, that's probably the place to start. I'm honestly confused why this should happen. Jeff Bauer Rubicon, Inc. From Brian@digicool.com Mon Mar 29 14:12:01 1999 From: Brian@digicool.com (Brian Lloyd) Date: Mon, 29 Mar 1999 09:12:01 -0500 Subject: [Zope] error in pcgi Message-ID: <613145F79272D211914B0020AFF64019FDBD@gandalf.digicool.com> > Hello, > > my site was working great when suddenly, I got a "Temporarily > unavailable" > message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is writing to the > stream read by pcgi. I didn't do anything other than > uploading new versions > of my DTML Documents to the site. (I have done this all the > aternoon long). > > Have you already seen this behavior? Does someone have an idea of > where to start to find the problem? > > Regards, > > Jephte CLAIN, > Service Informatique CHSR Usually this means that the Zope process is unable to start up for some reason (an import error, syntax error, etc.). I'm not sure how changing DTML document objects could cause this, though. You didn't happen to change any DTML that is read from the disk (e.g., HTMLFile objects used from Zope, installed products or external methods) did you? If so, there is probably a dtml syntax error that is being raised at startup time. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From chsrinfo@guetali.fr Mon Mar 29 15:31:59 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 19:31:59 +0400 Subject: [Zope] error in pcgi Message-ID: <000a01be79f9$4e7bb3e0$147800a0@pc-pi0> >> my site was working great when suddenly, I got a "Temporarily >> unavailable" >> message. >> The pcgi.log reads: >> >> unexpected out-of-bound data in stdin t[0]=60 >> >Usually this means that the Zope process is unable to start up >for some reason (an import error, syntax error, etc.). I'm not >sure how changing DTML document objects could cause this, though. >You didn't happen to change any DTML that is read from the disk >(e.g., HTMLFile objects used from Zope, installed products or >external methods) did you? If so, there is probably a dtml syntax >error that is being raised at startup time. You are positively right. I stupidly wrote notice the non-named parameter after a named parameter. I haven't tried it yet with other publishing mechanisms (ZServer, ZopeHTTPServer, which don't use PCGI), but if these servers also dies for such oddities, this might be a bug in error handling. Stay tuned for more informations. Many thanks to Brian and Jeff who took the time to respond to me. Regards, Jephte CLAIN Service Informatique CHSR From tsarna@endicor.com Mon Mar 29 16:59:39 1999 From: tsarna@endicor.com (Ty Sarna) Date: 29 Mar 1999 16:59:39 GMT Subject: [Zope] cgi_module_publish cookie prsing errors? Message-ID: <922726779.752530@zoo-of-death.endicor.com> All of my "real" sites are still running under Principia. Recently a number users of these sites have had their machines upgraded. Those now using the latest versions of IE and Netscape are unable to access the sites now unless they turn off cookies, or they get an error in cgi_module_publish to do with parsing cookies. (I'm still trying to get someone to send me the actual error text). Anyone out there using Principia still? Have you seen this? Anyone using Zope seen this? From michel@digicool.com Mon Mar 29 17:14:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 12:14:30 -0500 Subject: [Zope] Browse the Zope CVS through the web Message-ID: <613145F79272D211914B0020AFF6401907BBDA@gandalf.digicool.com> Greetings, As promised, it is possible now to browse the Zope public CVS repository through the web. If you're interested in looking at the latest Zope developments, this is a good place to start without having the check out your own copy. This site is also handy for viewing the various evolutions of Zope, and for getting pretty colored diffs between versions. If you want to know the difference between two recent versions of a certain file, cvsweb will show you in glaring full color. The web view of the Zope CVS is more fragmentary the the view you get with the 'cvs' command. If you want to check Zope out of the public cvs, it is recommended you just check out 'Zope', which is an options not shown on the web cvs. The public CVS uses its module file to stitch together the various components that can be seen on the web view into a Zope distribution. Complete instructions on how to do this can be found at: http://www.zope.org/Community/CVS_public_access The web interface can be found at: http://www.zope.org/cgi-bin/cvsweb.cgi In case you're curious, this is not a Zope module but a CGI script written in Perl. It can be found at: http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi -Michel From michel@digicool.com Mon Mar 29 20:48:08 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 15:48:08 -0500 Subject: [Zope] Test Message-ID: <613145F79272D211914B0020AFF6401907BBDB@gandalf.digicool.com> ing. From neves@inf.puc-rio.br Mon Mar 29 22:31:52 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Mon, 29 Mar 1999 19:31:52 -0300 Subject: [Zope] ZMySQLDB Connection String?? References: Message-ID: <36FFFF58.38A1239E@inf.puc-rio.br> Daren Sefcik wrote: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. The first release of Aqueduct docs had a table with examples of connections strings for some databases. This table disappeared in the latest docs. Shouldn't it be the case to take it back? -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From daren@sefcik.cc Mon Mar 29 22:58:54 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Mon, 29 Mar 1999 14:58:54 -0800 (PST) Subject: [Zope] ZMySQLDB error Message-ID: After everything compiled fine I try to import MySQL and get the following error: rdi% python Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umoddi3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 >>> Does anyone have any ideas?? MySQL works fine as well as Zope. Do I need to install the Sun ld.so patch?? TIA Daren From egibson@connect.com.au Tue Mar 30 02:35:23 1999 From: egibson@connect.com.au (Evan Gibson) Date: Tue, 30 Mar 1999 12:35:23 +1000 Subject: [Zope] cgi_module_publish cookie prsing errors? In-Reply-To: <922726779.752530@zoo-of-death.endicor.com>; from Ty Sarna on Mon, Mar 29, 1999 at 04:59:39PM +0000 References: <922726779.752530@zoo-of-death.endicor.com> Message-ID: <19990330123523.28633@connect.com.au> On Mon, Mar 29, 1999 at 04:59:39PM +0000, Ty Sarna wrote: > All of my "real" sites are still running under Principia. Recently a > number users of these sites have had their machines upgraded. Those now > using the latest versions of IE and Netscape are unable to access the > sites now unless they turn off cookies, or they get an error in > cgi_module_publish to do with parsing cookies. (I'm still trying to get > someone to send me the actual error text). > > Anyone out there using Principia still? Have you seen this? > Anyone using Zope seen this? Yes, I've seen it in Principia and Bobo for cookies in the form: .com.au TRUE / FALSE 933422008 MC1 GUID=083F5B8E21DE11D28B2C08002BB74F3F The two problems being that cookies are usually only seen by the domain that registers them, but some badly configured servers (most probably Microsoft servers by the look of the cookies) only list the last two parts of the domain name. This is fine for blah.com, but for overseas domains like blah.com.au it means the cookie is returned for ALL .com.au sites. This wouldn't be a problem, but since the cookies are returned to Principia in the form: MC1=GUID=083F5B8E21DE11D28B2C08002BB74F3F parse_cookie breaks since it looks for key value pairs WITHOUT an equals sign on either side. The extra = really confuses it. To fix it change the re in parse_cookies in cgi_module_publisher.py from: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-=\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), to: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace. From chsrinfo@guetali.fr Tue Mar 30 06:12:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 30 Mar 1999 10:12:54 +0400 Subject: [Zope] external methods Message-ID: <004c01be7a74$5ceec720$147800a0@pc-pi0> >Nope, > >With that definition, my_method expect to be called with the arguments >set, eg to display "Zope is cool". > >However, I want to get the variable l from the namespace. (application >variables made with REQUEST.set, Folder or document properties, etc.) >The question was: is self.REQUEST the only way to access the >variable namespace? And the only way to *modify* the variable namespace >from external methods (with self.REQUEST.set)? I'd like to be more precise. Suppose my_method is: def my_method(self): if self.REQUEST.has_key('my_var'): return "oh yes" return "boooo" Now, I write in DTML:


    Believe me or not, the result is: boooo boooo my_value You can now understand why I ask how to access the variable namespace from external methods. How can I test the existence of my_var, and access its value??? Keep the good work, I might ask you some of your photos for my daily worship :-) Regards, Jephte CLAIN Service Informatique From Tom.Deprez@uz.kuleuven.ac.be Tue Mar 30 10:28:25 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Tue, 30 Mar 1999 12:28:25 +0200 Subject: [Zope] Frustrating Message-ID: <3.0.1.32.19990330122825.009293a0@poirot> Hi, I'm getting really frustrating on this subject. Pff, I believe the Zope-people have made already a great effort in their documentation. So I guess my problem is my own bad english. shhg. I finally got the Postgressql adapter compiled, thanks to two great people! Thanks for this already. But now I'm confused? How to use it in Zope? When I go to the product management I see the all the installed products including : ZPyGreSQLDA (broken product APyGreSQL).... I guess here is already something wrong (broken... is not a positive word :-( ) But then, how can I work with it? How can I use it in Zope...? How can I add it to the 'Add list' . I read of a connection string... but where to place it? Sggh, I've read in the manuals, Q&A, ... but I still don't get how to use it.... Please, somebody, help...! Thanks in advance, The Idiot, Tom. From ShawH@STHS.org Tue Mar 30 13:17:28 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:17:28 -0600 Subject: [Zope] Frustrating Message-ID: First thing, if your product is broken you won't get anywhere. So, first step is to delete the broken product, and shutdown and restart your zope server. This is because Zope apparently won't replace a broken product with a working one. If it is still broken, click on it, and then on the screen that comes up, look for the 'traceback' tab on the top of the screen. Copy this traceback and mail it to the list. If your product no longer says broken, then you will be able to go to a folder above where you want to use SQL methods, and from the pull-down menu beside the add button, choose to install the SQL Adapter. I don't know for certain the format for the connection string, but if you go to /lib/python/Products/ and look in the directory for the ZPyGreSQLDA and read the top of any *.py file you see, it should say. Once you have a working adapter, you can add an SQL Method, and it will list your adapter's id on its list of db connections. From this point on the documentation in the SQL Guide should be sufficient. Good luck! Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Tom Deprez[SMTP:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Tuesday, March 30, 1999 4:28 AM > To: zope@zope.org > Subject: [Zope] Frustrating > > Hi, > > I'm getting really frustrating on this subject. Pff, I believe the > Zope-people have made already a great effort in their documentation. > So I > guess my problem is my own bad english. shhg. > > I finally got the Postgressql adapter compiled, thanks to two great > people! > Thanks for this already. > > But now I'm confused? How to use it in Zope? When I go to the product > management I see the all the installed products including : > ZPyGreSQLDA > (broken product APyGreSQL).... I guess here is already something wrong > (broken... is not a positive word :-( ) > > But then, how can I work with it? How can I use it in Zope...? How can > I > add it to the 'Add list' . I read of a connection string... but where > to > place it? > > Sggh, I've read in the manuals, Q&A, ... but I still don't get how to > use > it.... > > Please, somebody, help...! > > Thanks in advance, > > The Idiot, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From ShawH@STHS.org Tue Mar 30 13:29:30 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:29:30 -0600 Subject: [Zope] DTML Methods Message-ID: Using Netscape 3.04, I can't edit the text in DTML Methods. I get the textbox, and I can place my cursor where I choose, and scroll through it, but I can't type in it, I can't paste into it. I can copy the whole contents, make a DTML Document, paste it in, and edit there! Any idea what's going on? When I access it from Netscape 4.07 on Linux it works fine... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From mike@compar.com Tue Mar 30 16:52:31 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 30 Mar 1999 11:52:31 -0500 (EST) Subject: [Zope] E-Commerce Message-ID: If I'm really lucky, I might be getting a contract to put together a rather large site which includes selling the client's product over the web. They'll want to be doing credit card transactions. Has anyone been working on a shopping cart app for Zope, or perhaps even utilities to interact with a credit card transaction service? It's much quicker to buy than write! Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From ShawH@STHS.org Tue Mar 30 16:56:59 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 10:56:59 -0600 Subject: [Zope] RE: [Zope-dev] Object to string Message-ID: Sorry, guess I wasn't clear enough. What I am thinking should work is ... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Jason Spisak[SMTP:webmaster@mtear.com] > Sent: Tuesday, March 30, 1999 6:48 AM > To: zope-dev@zope.org > Subject: Re: [Zope-dev] Object to string > > Damn it didn't work. I if I post again on this subject I get a free > set > of steak knives. ;-) > > I tried appending PARENTS[-1]. to the counter property to tell it that > the counter property I want is a property of the root folder. But > when > I try to save the changes to the DTML, it chokes. Here's the code and > the traceback: > > > > > The counter property is type:int and set to 0. > > > > > Unpack sequence of wrong size? Hmm, any suggestions? > > All the best, > > Jason Spisak > webmaster@mtear.com > > Shaw, Howard wrote: > > > > Actually, he's talking about simple folder property manipulation > (ok, > > its not so simple), the Counter product is intended for visible > counters > > incremented by webpage access. > > > > However, if a Counter is added to the folder as 'countob', and > marked to > > NOT check ips, then it can be handled thusly... (or should be able > to, > > anyhow.) > > > > > > > > > > The parameter on the first line is normally '_', and can be passed > in if > > you like. Not passing it in when the countob is marked to check ips > will > > generate a traceback. > > > > The only real reason I can think of for using a Counter object > instead > > of the folder properties is to be able to use acquisition to make > the > > names globally unique; but the same thing can be done by prepending > > PARENTS[-1]. to Pavlos' technique. > > > > Also, if you use the counter object, you will have to set the "How > many > > hits before saving to the database?" line to 0. > > > > Pavlos' method was not recently added, but has been usable for a > > considerable period of time, and has the added advantage of not > needing > > a Product added to support it. > > > > Howard C. Shaw III > > Programmer/SysAdmin > > St. Thomas High School > > > > > ---------- > > > From: Jason Spisak[SMTP:webmaster@mtear.com] > > > Sent: Monday, March 29, 1999 6:12 PM > > > To: Pavlos Christoforou; zope-dev@zope.org > > > Subject: Re: [Zope-dev] Object to string > > > > > > Pavlos: > > > > > > I had forgotten about the recent addition of the counter object to > our > > > arsenal of Zopeist tools. Shame on me. Thanks for the heads-up! > > > > > > Jason Spisak > > > webmaster@mtear.com > > > > > > > > > > > On Mon, 29 Mar 1999, Jason Spisak wrote: > > > > > > > > > Oh, to follow up on my last post about turning an object to a > > > string > > > > > without leaving DTML, I have tried: > > > > > > > > > > > > > > > > > > > > > > > > > All help welcome! > > > > > > > > will return a string > representation > > > of > > > > the object. > > > > > > > > Alternatively you can generate unique object ids by adding a > counter > > > > property to your containing folder (or root folder) and modify > it > > > > everytime you generate a new object. For instance:: > > > > > > > > > > > > > > > > > > > > > > > > Pavlos > > > > > > -- > > > Jason Spisak > > > webmaster@mtear.com > > > > > > _______________________________________________ > > > Zope-Dev maillist - Zope-Dev@zope.org > > > http://www.zope.org/mailman/listinfo/zope-dev > > > > > > (For non-developer, user-level issues, use the companion list, > > > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > > > > > -- > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://www.zope.org/mailman/listinfo/zope-dev > > (For non-developer, user-level issues, use the companion list, > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > From amos@aracnet.com Tue Mar 30 17:28:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 30 Mar 1999 09:28:35 -0800 Subject: [Zope] external methods In-Reply-To: <004c01be7a74$5ceec720$147800a0@pc-pi0> Message-ID: <3.0.5.32.19990330092835.01192720@mail.aracnet.com> At 10:12 AM 3/30/99 +0400, Service Informatique CHSR wrote: >>Nope, >> >>With that definition, my_method expect to be called with the arguments >>set, eg to display "Zope is cool". >> >>However, I want to get the variable l from the namespace. (application >>variables made with REQUEST.set, Folder or document properties, etc.) >>The question was: is self.REQUEST the only way to access the >>variable namespace? And the only way to *modify* the variable namespace >>from external methods (with self.REQUEST.set)? Well, this is an interesting question. In my experience, seldom do people try to munge the DTML namespace from within an External Method. I guess it could be done (perhaps by passing the special underscore variable to an External Method), but I wonder if this is really the best way to solve your problem. >I'd like to be more precise. Suppose my_method is: > >def my_method(self): > if self.REQUEST.has_key('my_var'): > return "oh yes" > return "boooo" > > >Now, I write in DTML: > >

    >

    >
    > >

    > >Believe me or not, the result is: > >boooo >boooo >my_value > >You can now understand why I ask how to access the variable >namespace from external methods. How can I test the existence >of my_var, and access its value??? Well let's see what's going on here. You call my method, it acquires the REQUEST object and looks for a 'my_var', doesn't see it and returns 'boooo'. so far so good. Now you push a namespace containing only 'my_var' on to the DTML namespace stack and call the method again. Not surprisingly the method does the same thing as before, it acquires the REQUEST and finds that it does not contain 'my_var' so it prints 'boooo'. Finally you call 'my_var' which is found in the DTML namespace and 'my_value' is printed. So the lesson is: the DTML namespace is not the same thing as the REQUEST object. For more on how DTML namespace works see my advanced DTML how-to: http://www.zope.org/Documentation/HowTo/DTML My advice to you is to keep things simple. It's easy to confuse yourself with the complexities of DTML. In general, I would suggest that your External Methods take well defined arguments and return results, rather than modify the objects passed to them. Then allow the DTML to pass those arguments and munge its own namespace in response to the results of the External Method. Of course, this schema isn't always the right one. Finally I would suggest that you, don't munge the DTML namespace from within an External Method unless you have a good reason to, I think that this would make the DTML even harder to understand. Good luck. -Amos From johanl@bahnhof.se Tue Mar 30 17:53:09 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Tue, 30 Mar 1999 19:53:09 +0200 Subject: [Zope] Broken DB In-Reply-To: Message-ID: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Hi! I get this error when trying to start the server with start.bat: Traceback (innermost last): File "serve.py", line 100, in ? ZopeHTTPServer.main(args) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, in set _published_module __import__(name) # to catch problem modules right away File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in read _index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1903771 Can I recover? The db doesn't contain anything important so it's really okay to reinstall, should that be neccessary. /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From petrilli@amber.org Tue Mar 30 18:03:10 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 30 Mar 1999 13:03:10 -0500 Subject: [Zope] Broken DB In-Reply-To: <4.1.19990330194807.00dafef0@mail.bahnhof.se>; from Johan Lindstrom on Tue, Mar 30, 1999 at 07:53:09PM +0200 References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <19990330130310.C11199@amber.org> On Tue, Mar 30, 1999 at 07:53:09PM +0200, Johan Lindstrom wrote: > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > [snipped] > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. It looks like you're running an older release 1.9.x something? 1.10.x will automatically fix the database under 90% of the circumstances by simply truncating the bad record. This should fix your problem. BTW, it's always helpful to give information on what release of Zope you're using. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jim@digicool.com Tue Mar 30 18:12:20 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 30 Mar 1999 13:12:20 -0500 Subject: [Zope] Broken DB References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <37011404.36F2C5A4@digicool.com> Johan Lindstrom wrote: > > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > File "serve.py", line 100, in ? > ZopeHTTPServer.main(args) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, > in main start(module_file,host,port,threading,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, > in start set_published_module(module_file,BoboRequestHandler,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, > in set _published_module __import__(name) # to catch problem modules right away > File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? > Bobobase=OFS.Application.open_bobobase() > File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in > open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line > 159, in __init__ db=apply(DBType,(),storage_options) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in > __init__ self.open(file_name,create,revision_time,meta_index,read_only) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in > open try: self.index,self.pos=read_index( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? At a minimum, you can truncate the data file (var\Data.bbb) at the position indicated. (Let me know if you need help with this.) > The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. You could also just delete the database (var\Data.*) and a new database will be created when you restart. I'd appreciate it if you'd send me the corrupted database as a zipped or gzipped attachment in a private email. Also, what version of Zope were you running? What OS? What products (not included in the Zope distribution) did you have installed? Can you tell me anything more about what might have led up to this? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From Amos@digicool.com Tue Mar 30 18:55:50 1999 From: Amos@digicool.com (Amos Latteier) Date: Tue, 30 Mar 1999 13:55:50 -0500 Subject: [Zope] RE: DTML question Message-ID: <613145F79272D211914B0020AFF640190AD129@gandalf.digicool.com> > Sorry to bother you with these questions but I can't post to > egroups. I > tried senting messages on friday, saturday, monday and > today but none > went through. I've sent from the egroups post page, and from my > email... no luck. Please feel free to cc the list with > any answers > or pointers to answers. You can post to the list without egroups by sending mail to zope@zope.org. You can also read the archives without egroups at http://www.zope.org/pipermail/zope/. > I've been working throught the DTML manual and I've come > across a problem; > I can't get the #in tag > to do what I want with a dictionary. I'm using it from > Python for now, but > plan to use this within a Zope app soon. > > > The following DTML code exits with this error: "...line 641, > in renderwob > l-len(sequence)" > > > > I think what you want is access to the dictionary's items() right? : The mapping attribute is not relevant here. It means treat sequence-items as mappings not instances, that is to say, look up vars with __getitem__, not __getattr__. The DTML User's Guide is your friend. -Amos From rkw@dataplex.net Tue Mar 30 19:19:24 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Tue, 30 Mar 1999 13:19:24 -0600 (CST) Subject: [Zope] Namespace Confusion Message-ID: I'm trying to convert shell scripts into DTML methods. Please excuse the pseudo code. I'm using it to represent the problems that I am addressing. set basket_total=0 set taxable_total=0 foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) if (! isfood($item)) @ taxable_total = $taxable_total + price_of($item) endif @ basket_total = $basket_total + price_of($item) endfor print "Of the $basket_total total, $taxable_total is taxable" 1) Can I generate an explicit list rather than getting it with as the result of either a database query or enumeration of an object? 2) How do I generate "local" variables. I know that I could use the REQUEST variable as a global property store. However, because of nesting, global (REQUEST) variables are not desirable. I'd like to say something like the following: ... ... ... Does Zope's DTML have constructs to address either of these? From jimbag@kw.igs.net Tue Mar 30 19:27:29 1999 From: jimbag@kw.igs.net (JB) Date: Tue, 30 Mar 1999 19:27:29 +0000 Subject: [Zope] External Methods Message-ID: <370125A1.305733AC@kw.igs.net> Please excuse my lack of zoping intuition but I hoped someone could help with this problem. I read all the doc's I could find but seem to be missing something. It goes like this... I have a ZSQLMethod that returns some tuples. There is a field in the tuple which I wish to use to lookup an external file and return a jpeg, if available. I've created an external method called 'getPic' which I wish to pass the key field to locate the file with but I can't seem to get at the variable. e.g ---------- )" --> ---------- This doesn't work for reasons not obvious to me. I've tried creating a class to handle the records. No go. Basically, the External method can't get at the vars defined on each loop thru the sequence returnd from the SQLMethod. Any insight would be appreciated. thanks jb From ShawH@STHS.org Tue Mar 30 19:38:58 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:38:58 -0600 Subject: [Zope] FW: [Zope] Namespace Confusion Message-ID: Once again I forgot to cc the list. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Shaw, Howard > Sent: Tuesday, March 30, 1999 1:38 PM > To: 'rkw@dataplex.net' > Subject: RE: [Zope] Namespace Confusion > > > > > > > > > > > Howard C. Shaw III > Programmer/SysAdmin > St. Thomas High School > > > ---------- > From: Richard Wackerbarth[SMTP:rkw@dataplex.net] > Reply To: rkw@dataplex.net > Sent: Tuesday, March 30, 1999 1:19 PM > To: zope@zope.org > Subject: [Zope] Namespace Confusion > > I'm trying to convert shell scripts into DTML methods. > > Please excuse the pseudo code. I'm using it to represent the problems > that I am addressing. > > set basket_total=0 > set taxable_total=0 > foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) > if (! isfood($item)) > @ taxable_total = $taxable_total + price_of($item) > endif > @ basket_total = $basket_total + price_of($item) > endfor > print "Of the $basket_total total, $taxable_total is taxable" > > > 1) Can I generate an explicit list rather than getting it with > as the result of either a database query or enumeration of an object? > > 2) How do I generate "local" variables. > I know that I could use the REQUEST variable as a global property > store. > However, because of nesting, global (REQUEST) variables are not > desirable. > > I'd like to say something like the following: > > > > ... > > ... > > ... > > > Does Zope's DTML have constructs to address either of these? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > From ShawH@STHS.org Tue Mar 30 19:41:39 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:41:39 -0600 Subject: [Zope] External Methods Message-ID: Try > > > > > You can't nest the 's. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: JB[SMTP:jimbag@kw.igs.net] > Sent: Tuesday, March 30, 1999 1:27 PM > To: zope@zope.org > Subject: [Zope] External Methods > > Please excuse my lack of zoping intuition but I hoped someone could > help > with this problem. I read all the doc's I could find but seem to be > missing something. It goes like this... > I have a ZSQLMethod that returns some tuples. There is a field in the > tuple which I wish to use to lookup an external file and return a > jpeg, > if available. > I've created an external method called 'getPic' which I wish to pass > the > key field to locate the file with but I can't seem to get at the > variable. > e.g > ---------- > > > )" --> > > ---------- > > This doesn't work for reasons not obvious to me. > > I've tried creating a class to handle the records. No go. > Basically, the External method can't get at the vars defined on each > loop thru the sequence returnd from the SQLMethod. > > Any insight would be appreciated. > > thanks > jb > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From webmaster@mtear.com Tue Mar 30 17:29:27 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 12:29:27 -0500 Subject: [Zope] Template Printing from Zope References: <199903302000.MAA28977@zope.codeit.com> Message-ID: <370109F7.F8B0B4E7@mtear.com> I would like to trigger a DTML document to print after the user creates it. ( There are a few documents in my project that need to be snail mailed) Circumstances aside, they aren't allowed to print from Navigator, so I'd like Zope to shoot it out without the user having to have a printer configured. If a printer is configured to work with the server, can Zope send it to lpr? I have zero experience there. :-( Any suggestions? Jason Spisak webmaster@mtear.com From bkc@murkworks.com Tue Mar 30 20:27:20 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 30 Mar 1999 16:27:20 -0400 Subject: [Zope] Template Printing from Zope In-Reply-To: <370109F7.F8B0B4E7@mtear.com> Message-ID: <199903302120.QAA18499@anvil.murkworks.com> Use the win32com extensions to encapsulate the MS IE HTML control (or browser). Get the control to load the html, then control.Print() On 30 Mar 99, at 12:29, Jason Spisak wrote: Date sent: Tue, 30 Mar 1999 12:29:27 -0500 From: Jason Spisak To: zope@zope.org Subject: [Zope] Template Printing from Zope > I would like to trigger a DTML document to print after the user creates > it. ( There are a few documents in my project that need to be snail > mailed) Circumstances aside, they aren't allowed to print from > Navigator, so I'd like Zope to shoot it out without the user having to > have a printer configured. If a printer is configured to work with the > server, can Zope send it to lpr? I have zero experience there. :-( > > Any suggestions? > > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From webmaster@mtear.com Tue Mar 30 18:58:00 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 13:58:00 -0500 Subject: [Zope] Template Printing from Zope References: <199903302120.QAA18499@anvil.murkworks.com> Message-ID: <37011EB8.8031C53D@mtear.com> Brad, Thanks. Regretably, we aren't really using any Microsoft Products (Too bad, we could have got a virus yesterday :-() The clients are(and a browser on the server could be) running Netscape Comm 4.08. I'm sure there is a similar way of controlling Netscape--Any body have a guess? Jason Spisak webmaster@mtear.com Brad Clements wrote: > > Use the win32com extensions to encapsulate the MS IE HTML control > (or browser). Get the control to load the html, then control.Print() > > On 30 Mar 99, at 12:29, Jason Spisak wrote: > > Date sent: Tue, 30 Mar 1999 12:29:27 -0500 > From: Jason Spisak > To: zope@zope.org > Subject: [Zope] Template Printing from Zope > > > I would like to trigger a DTML document to print after the user creates > > it. ( There are a few documents in my project that need to be snail > > mailed) Circumstances aside, they aren't allowed to print from > > Navigator, so I'd like Zope to shoot it out without the user having to > > have a printer configured. If a printer is configured to work with the > > server, can Zope send it to lpr? I have zero experience there. :-( > > > > Any suggestions? > > > > Jason Spisak > > webmaster@mtear.com > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 -- Jason Spisak webmaster@mtear.com From Anthony Baxter Wed Mar 31 01:18:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 31 Mar 1999 11:18:36 +1000 Subject: [Zope] Frustrating In-Reply-To: Your message of "Tue, 30 Mar 1999 07:17:28 CST." Message-ID: <199903310118.LAA01565@mbuna.arbhome.com.au> >>> "Shaw, Howard" wrote > First thing, if your product is broken you won't get anywhere. So, first > step is to delete the broken product, and shutdown and restart your zope > server. This is because Zope apparently won't replace a broken product > with a working one. Yah - this _really_ needs to be emphasised in the "how to write products" docs. It drove me nuts for about 10 minutes before I realised what was happening... From mark@interwalk.com Wed Mar 31 00:48:36 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 30 Mar 1999 16:48:36 -0800 (PST) Subject: [Zope] Ideas about implementing a dynamic site? Message-ID: <19990331004836.5871.rocketmail@web129.yahoomail.com> I am thinking about implementing a dynamic site using zope and as little python as I can get away with. The site is modeled after http://c2.com/cgi/wiki?WikiWikiWeb This is a dynamic site in that all the web pages are dynamically generated and you are allowed to edit any page right from your browser (sound familiar?) and also create new pages very easily. There are many other implementation of wikiwiki (see the WikiWikiClones link). I am interested in any creative ways of dynamically generating the pages and storing the underlying date in the objectDB. Thanks! Mark === ==================================================== Mark Interrante Hewlett Packard mark@interwalk.com mark_interrante@hp.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From chsrinfo@guetali.fr Wed Mar 31 06:36:51 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Wed, 31 Mar 1999 10:36:51 +0400 Subject: [Zope] external methods Message-ID: <003c01be7b40$e0c23560$147800a0@pc-pi0> Hello, >Well, this is an interesting question. In my experience, seldom do people >try to munge the DTML namespace from within an External Method. I guess it >could be done (perhaps by passing the special underscore variable to an >External Method), but I wonder if this is really the best way to solve your >problem. Thanks for your answer. In fact, I want to write external methods to replace DTML methods which work like a charm, but are not very readable (a lot of iterative stuff, given the fact that mySQL doesn't support sub-select) and pretty slow. I have used python for several years right now, but DTML is new for me. My users can search in our news database in several ways, that are covered by different SQL queries. However, the output of all these queries are the same, so I use a single DTML method to display the result. So the name of the ZSQL Method is only known at runtime, and I use something like: to display the result. The arguments of the query are taken from the namespace. I can also write: If I want to cook some args before feeding it to the query. All these work from DTML. Now, I want to write this in an external method. def results(self): for record in getattr(self, self.REQUEST['query'])(self): pass # do watever 'query' has to be in the form REQUEST variables (that is not a problem), but I cannot be sure that any arguments that the query need are all accessible through REQUEST. >Well let's see what's going on here. You call my method, it acquires the >REQUEST object and looks for a 'my_var', doesn't see it and returns >'boooo'. so far so good. Now you push a namespace containing only 'my_var' >on to the DTML namespace stack and call the method again. Not surprisingly >the method does the same thing as before, it acquires the REQUEST and finds >that it does not contain 'my_var' so it prints 'boooo'. Finally you call >'my_var' which is found in the DTML namespace and 'my_value' is printed. I wrote this to test wether an external method has access to the entire namespace, or only to REQUEST variables. >So the lesson is: the DTML namespace is not the same thing as the REQUEST >object. So I come back with the question: is there any way to access the DTML namespace from an external method. Apparently there is not >For more on how DTML namespace works see my advanced DTML how-to: > >http://www.zope.org/Documentation/HowTo/DTML > I have already read it. By the way, let me ask you a question (again. I already asked that, but the answer was not very clear, and I finally gave up): and are the same. So instead of writing: I usually write: But almost everyone told me that also work. So I wonder: are and the same??? The DTML User's guide say that in an expression, variable are not called by default, but _['var0'] calls var0 if possible. >My advice to you is to keep things simple. It's easy to confuse yourself >with the complexities of DTML. In general, I would suggest that your >External Methods take well defined arguments and return results, rather >than modify the objects passed to them. Then allow the DTML to pass those >arguments and munge its own namespace in response to the results of the >External Method. Of course, this schema isn't always the right one. Finally >I would suggest that you, don't munge the DTML namespace from within an >External Method unless you have a good reason to, I think that this would >make the DTML even harder to understand. To keep things simple mean I have to write several times the same external method with different queries and differents arguments each time. this is not what I want. I can remember that in DTML I only need one DTML Method. I would really like to replace some of my DTML Methods with external methods. That's enough for today. Let's take some rest :-) Regards, Jephte CLAIN, Service Informatique CHSR From piers@cs.su.oz.au Wed Mar 31 07:18:14 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Wed, 31 Mar 1999 17:18:14 +1000 Subject: [Zope] multiple SUBMIT buttons for same method, with parameter Message-ID: <129.78.8.1.126.8141.922865008.414.1008> I can use the following in a DTML document to call a specific method: But what if I wanted to have lots of them? I'd like to have multiple SUBMIT buttons, all referring to the same method but diffentiated by parameter - possible? Ie: something like: passing the parameter '1' to 'mymethod', and then later and so on. Incidentally, is the ':method' trick documented? - I can't find it in the DTML guide. From Tom.Deprez@uz.kuleuven.ac.be Wed Mar 31 08:58:51 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Wed, 31 Mar 1999 10:58:51 +0200 Subject: [Zope] One week of Zope-expirience Message-ID: <3.0.1.32.19990331105851.00931700@poirot> Hi all, First of all, thanks to all with their great support and help. At the end of last week I found out about Zope. It looked really interesting, so I wanted to give it a try. Monday after several problems and with lots of help I could manage to enter Zope. Not from Apache as I would like, but from the HTTPServer. Next I wanted to attach Zope with my PostGresSQL demo database. Boy, did it gave me some problems (and all because of my lack in knowledge of Linux). But again several people helped me and today it is solved! Yep, it is done, the hard work can begin. Now, I've to convince other people that Zope is the way to follow. At first blink, Zope is a really nice and great product. I hope it will get the attention it diserves. Still, some work on the documentation, although they already did a great job! Most thingies are written down. Kind Regards, Tom. Now some questions: 1. Have you used CSS-sheets in Zope and how did you use them? Did you incorporated them into Zope or not? Have you got a little sample? From tony.mcdonald@ncl.ac.uk Wed Mar 31 09:22:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 31 Mar 1999 10:22:53 +0100 Subject: [Zope] One week of Zope-expirience In-Reply-To: <3.0.1.32.19990331105851.00931700@poirot> References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: > >Now some questions: > >1. Have you used CSS-sheets in Zope and how did you use them? Did you >incorporated them into Zope or not? Have you got a little sample? > In Zope, this is pretty easy. Create a property at your top level of type 'lines' and called 'css' (you can also create a DTML document/method if you like). Populate it with good CSS things like (this is from the Zope site itself actually). In standard_html_header you put something like <!--#var title_or_id--> and you're away... You may want to change standard_html_header so it doesn't crash if css is not present. <!--#var title_or_id--> Now where it starts to get really cool is that all your documents *below* the top level get the CSS information by acquisition, but you can change CSS information in folders by creating a new CSS property or document within that folder. Tres Neat. hth tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tim.hawes@ncmail.net Wed Mar 31 12:48:50 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 07:48:50 -0500 Subject: [Zope] URL problems. References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: <370219B2.385E84A4@ncmail.net> I just installed Zope on a Netscape Enterprise Server (3.6). I compiled and installed the nscgiauth plugin, and all seems to run OK, except for one thing: When I try to add items to the site through the manage screen, I get: Not Found The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. Please inform the site administrator of the referring page. When I open the frame into a new window, I see that the URL looks something like: http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_addDTMLDocumentForm When I edit the URL by hand to remove the "." http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocumentForm It works fine. What is going on here, and what do I need to do to change it? I plan on having other people from other departments access resourses on Zope to create their own objects, and I need this to work right out of the box. Thanks in advance for any help. Tim Hawes tim.hawes@ncmail.net From michel@digicool.com Wed Mar 31 13:53:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 08:53:22 -0500 Subject: [Zope] URL problems. Message-ID: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> > -----Original Message----- > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > Sent: Wednesday, March 31, 1999 7:49 AM > To: Zope List > Subject: [Zope] URL problems. > > > I just installed Zope on a Netscape Enterprise Server (3.6). > I compiled > and installed the nscgiauth plugin, and all seems to run OK, > except for > one thing: > First off, your the first person (I think) that has come forward with the information that they are using any version of NES higher than 2.0, which is what the nscgiauth plugin was written for. As I have heard (but don't know) there were some significant changes between the 2.0 and higher versions of the NSAPI. So, that you got it to work at all is pretty good. > When I try to add items to the site through the manage screen, I get: > > Not Found > > The requested object does not exist on this server. > The link you > followed is either outdated, > inaccurate, or the server has been instructed not to > let you have > it. Please inform the site > administrator of the referring page. > > When I open the frame into a new window, I see that the URL looks > something like: > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > DTMLDocumentForm > > When I edit the URL by hand to remove the "." > This is unreported behavior, which leads me to think that nscgiauth needs a little tweaking. As nscgiauth is unsuported you will have to experiment with this a little. >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume ntForm >It works fine. What is going on here, and what do I need to do to change >it? I plan on having other people from other departments access resourses >on Zope to create their own objects, and I need this to work right out of >the box. If your looking to showcase this and you can't spend any time working on nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, or IIS, all of which Zope runs out of the box with. -Michel >Thanks in advance for any help. >Tim Hawes >tim.hawes@ncmail.net _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From rkw@dataplex.net Wed Mar 31 16:02:47 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 31 Mar 1999 10:02:47 -0600 (CST) Subject: [Zope] Namespace Confusion In-Reply-To: Message-ID: I think that you missed my point. "I" can write python just fine. However, every time something changes, new python functions must be written. It is desirable to allow "DTML programmers" to do simple things which they can accomplish with simple local variables. What I think I should do is create a function, "LOCAL", similar to REQUEST that stores temporary variables. Unlike REQUEST, LOCAL would be bound to the namespace multiple times, each with a different context stack. The total basket will cost Or perhaps we can trick the namespace into showing basketTotal without the LOCAL.get reference. On Wed, 31 Mar 1999, Shaw, Howard wrote: > Given your needs, I suspect a simple External Method would serve > better... > > What about the local variable? > > Any ideas? From daren@sefcik.cc Wed Mar 31 18:18:39 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 10:18:39 -0800 (PST) Subject: [Zope] Zope+Virtual Domains Message-ID: Can the Zope server provide virtual domains or do I need to use Apache?? Right now I have Apache set up with 4 virtual domains and would rather just use the default Zope httpserver. Daren From tim.hawes@ncmail.net Wed Mar 31 20:58:38 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 15:58:38 -0500 Subject: [Zope] URL problems. References: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> Message-ID: <37028C7E.5B9760D7@ncmail.net> Michel Pelletier wrote: > > -----Original Message----- > > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > > Sent: Wednesday, March 31, 1999 7:49 AM > > To: Zope List > > Subject: [Zope] URL problems. > > > > > > I just installed Zope on a Netscape Enterprise Server (3.6). > > I compiled > > and installed the nscgiauth plugin, and all seems to run OK, > > except for > > one thing: > > > > First off, your the first person (I think) that has come forward with > the information that they are using any version of NES higher than 2.0, > which is what the nscgiauth plugin was written for. As I have heard > (but don't know) there were some significant changes between the 2.0 and > higher versions of the NSAPI. So, that you got it to work at all is > pretty good. > Well, the only difference that stuck out to me were the include files for NSAPI. nscgi calls for several, but in 3.x all the header files have been combined into one, "nsapi.h". I modified nscgi.c to call for this one header file and it compiled cleanly. It does its job very well, and am not all that certain that the problem I am having is related to nscgi at all. > > > When I try to add items to the site through the manage screen, I get: > > > > Not Found > > > > The requested object does not exist on this server. > > The link you > > followed is either outdated, > > inaccurate, or the server has been instructed not to > > let you have > > it. Please inform the site > > administrator of the referring page. > > > > When I open the frame into a new window, I see that the URL looks > > something like: > > > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > > DTMLDocumentForm > > > > When I edit the URL by hand to remove the "." > > > > This is unreported behavior, which leads me to think that nscgiauth > needs a little tweaking. As nscgiauth is unsuported you will have to > experiment with this a little. > > >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume > ntForm > > >It works fine. What is going on here, and what do I need to do to > change > >it? I plan on having other people from other departments access > resourses > >on Zope to create their own objects, and I need this to work right out > of > >the box. > > If your looking to showcase this and you can't spend any time working on > nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, > or IIS, all of which Zope runs out of the box with. > Well, I am a contractor and really don't have that option. I have tried to sell the idea of using Apache here, but they have already bought massively into Netscape. If I cannot get Zope to work, I may end up recommending a commercial package, at least for this case. > > -Michel > > >Thanks in advance for any help. > > >Tim Hawes > >tim.hawes@ncmail.net > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jae@kavi.com Wed Mar 31 20:57:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 31 Mar 1999 12:57:33 -0800 (PST) Subject: [Zope] Building Zope on BSDI Message-ID: Has anyone built Zope on a BSDI machine? BSDI doesn't support shared libraries, so everything has to be statically compiled into python. I just got it to build (python w_pcgi.py finished), but there doesn't seem to be a new python binary anywhere with everything compiled in. To get it to compile, I went through and deleted all the '*shared*' from the 'Setup' files. Any tips? As a side note, I was planning on using the binary porting kit to get it built, then contributing this back to the community. But the porting kit is still Zope-1.9. Is there any plans to update the porting kit. Thanks in advance for any help, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From michel@digicool.com Wed Mar 31 21:26:34 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 16:26:34 -0500 Subject: [Zope] NotMail 0.1.0 and IMAPAdapter 0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBF0@gandalf.digicool.com> Greetings, NotMail-0.1.0 and IMAPAdapter-0.1.0 have been posted to the prereleases area of the site: http://www.zope.org/Download/Prereleases/Mail These are first beta cuts. Both programs are also available in the public CVS. IMAPAdapter allows you to work with IMAP folders and messages in the context of an authenticated IMAP user. Using IMAPAdapter, it is very easy to build IMAP client functionality into your Zope site using DTML. NotMail is a simple web IMAP client that requires IMAPAdapter. Its mail purpose is to verify the operation of IMAPAdapter and to provide an example implimentation of IMAPAdapter's client functionality. NotMail is mostly DTML, and what Python there is is just specific to sending and replying to mail, all other functionality comes from IMAPAdapter. It is important to note that IMAPAdapter looks like a user folder to Zope, in Zope parlance, we call this a user database. It's not a user folder, because it doesn't not contain users. If Zope tries to validate a user against an IMAPAdapter, the IMAPAdapter will contact the IMAP server, try to make a connection with the uid:pwd that the browser supplied, returning either a user object or None, depending on the success or failure of that connection attempt. This means that using IMAPAdapter is quite simple. Here is a snip of DTML to display all an IMAP users mail folders with the #tree tag. > () The user object that IMAPAdapter returns (if the user is valid) is placed into AUTHENTICATED_USER. emapFolderTree is one method of this user object, but there are about a dozen or so more methods to do various imap related things like adding/deleting folders and listing and fetching messages. If you plan on installing and trying out NotMail and IMAPAdapter it is important to know that you can configure the roles that IMAPAdapter associates with users that it returns. The two default associated roles are 'NotMail' and 'IMAPUser'. If you want NotMail to work, you will need to add one of these roles (or any roles you care to define as IMAPAdapter's default roles) somewhere above NotMail/IMAPAdapter and then assign that role the 'View' permission for NotMail's DTML Methods. Have Fun! -Michel From petrilli@amber.org Wed Mar 31 21:17:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 31 Mar 1999 16:17:24 -0500 Subject: [Zope] Building Zope on BSDI In-Reply-To: ; from John Eikenberry on Wed, Mar 31, 1999 at 12:57:33PM -0800 References: Message-ID: <19990331161724.E13913@amber.org> On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > libraries, so everything has to be statically compiled into python. > I just got it to build (python w_pcgi.py finished), but there doesn't seem > to be a new python binary anywhere with everything compiled in. To get it > to compile, I went through and deleted all the '*shared*' from the 'Setup' > files. Any tips? Um, what VERSION of BSDI are you using? I haven't usd anything since 3.0, but I SWEAR it has standard BSD style shared libraries, same as FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it didn't.... are you sure it just didn't auto-detect the method right? Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From John Eikenberry Wed Mar 31 22:24:50 1999 From: John Eikenberry (John Eikenberry) Date: Wed, 31 Mar 1999 14:24:50 -0800 (PST) Subject: [Zope] Building Zope on BSDI In-Reply-To: <19990331161724.E13913@amber.org> Message-ID: On Wed, 31 Mar 1999, Christopher Petrilli wrote: > On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > > libraries, so everything has to be statically compiled into python. > > I just got it to build (python w_pcgi.py finished), but there doesn't seem > > to be a new python binary anywhere with everything compiled in. To get it > > to compile, I went through and deleted all the '*shared*' from the 'Setup' > > files. Any tips? > > Um, what VERSION of BSDI are you using? I haven't usd anything since > 3.0, but I SWEAR it has standard BSD style shared libraries, same as > FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it > didn't.... are you sure it just didn't auto-detect the method right? Alright, I guess I was jumping the gun a bit with my assumptions about shared library support. It does support them, just not in a format I'm used to (based on my Linux/Solaris experience). Ok, so then mabey I messed up in autodetecting as you mentioned. How would you suggest I do this? Here's a few lines of the errors it reports when trying to compile any of the shared extensions... www ~/Zope-1.10.2-src/lib/python/SearchIndex 242> make gcc -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -I/projects/_/python -c ./Splitter.c ld Splitter.o -o Splitter.so ./Splitter.c:105: Undefined symbol _PyString_AsString referenced from text segment ./Splitter.c:114: Undefined symbol _free referenced from text segment ./Splitter.c:126: Undefined symbol _PyString_Type referenced from text segment etc.... (many more Undefined symbol errors) So... any tips for compiling the Zope extensions as shared libs? I'll probably keep working on the static python solution, as I'm actually making progress on this, and I really have no idea where to start with shared libs on BSDI (no good leads on dejanews, and egroups is non-responsive as usual). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From daren@sefcik.cc Wed Mar 31 22:57:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 14:57:27 -0800 (PST) Subject: [Zope] Zope.cgi error Message-ID: I am trying to get Zope.cgi working (Apache 1.3.4) per the Zope source instructions. When I try to access http://somedomain/cgi-bin/Zope.cgi/manage I get the following error in the http-error log: httpd: [Wed Mar 31 14:52:45 1999] [error] [client 168.240.152.202] Premature end of script headers: /usr/local/www/cgi-bin/Zope.cgi Does anybody know what this means?? TIA, Daren From Brian@digicool.com Wed Mar 31 23:48:00 1999 From: Brian@digicool.com (Brian Lloyd) Date: Wed, 31 Mar 1999 18:48:00 -0500 Subject: [Zope] Building Zope on BSDI Message-ID: <613145F79272D211914B0020AFF64019FDCB@gandalf.digicool.com> > > > Has anyone built Zope on a BSDI machine? BSDI doesn't > support shared > > > libraries, so everything has to be statically compiled > into python. > > > I just got it to build (python w_pcgi.py finished), but > there doesn't seem > > > to be a new python binary anywhere with everything > compiled in. To get it > > > to compile, I went through and deleted all the '*shared*' > from the 'Setup' > > > files. Any tips? > > So... any tips for compiling the Zope extensions as shared libs? I'll > probably keep working on the static python solution, as I'm actually > making progress on this, and I really have no idea where to start with > shared libs on BSDI (no good leads on dejanews, and egroups is > non-responsive as usual). > > Thanks, > > --- > > John Eikenberry Here are some things I've found in previous struggles to get Zope compiled on bsdish systems -- I'm no guru, though, and I've seen different things work on different bsdx flavors: o you usually need to add -rdynamic to LDSHARED in your Makefiles (this should be reported & worked into python's makefiles, IMHO) o I havent been able to get threads going on many bsd flavors - so you may not be able to pass --with-thread to configure o I find that extensions will all appear to blow up with unfound symbols (such as those you reported) - you need to run make -k and ignore the errors ;) o On some systems, I had to run make -k, ignore the errors, and rename the output .o files for the extensions to .so :( o I seem to remember having to use shlicc on .so files, but I dont recall the details... Hope this helps - please post a status rpt if you get it working, so that the gory details will at least be captured. This is the sort of thing that should be in an installation FAQ somewhere. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jeffbauer@bigfoot.com Sat Mar 20 23:12:52 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 17:12:52 -0600 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <36F42B74.A082F266@rubic.com> "James A. Hillyerd" wrote: > If I do have to continue the shutdown/restart process, is > there any way of tuning PCGI so that it loads up faster? In the pcgi/Util directory, you'll find a killpcgi.py script. You could hack it to perform a restart, i.e. launch a new pcgi process after killing the old one. This would speed up your initial connect time and be much faster during debugging (multiple restarts). Best regards, Jeff Bauer Rubicon, Inc. From rob.page@digicool.com Mon Mar 1 00:21:43 1999 From: rob.page@digicool.com (Rob Page) Date: Sun, 28 Feb 1999 19:21:43 -0500 Subject: [Zope] Z SQL Methods Message-ID: <613145F79272D211914B0020AFF640190690E5@GANDALF> > Search table foo for matches with a "like" select, user > clicks on an item > and a new query is run using params from the clicked link. > The next page > would be the result of the multitable query. > > I've not a clue how I should format the sytax for first > result returned > using DTML. Before I start into it has anyone else done this yet? If I understand you correctly, you might try something like: Step1QueryForm --------------
    sqlFoo -------- SELECT record_id, first_name, last_name, fav_color_code, postal_code FROM foo WHERE memo_field LIKE Step2QueryForm -----------------

    Click on one of the results:

    --Rob Page -- Rob Page Phone: +1 540 371 6909 Digital Creations Fax: +1 540 371 1201 From garys@magna.com.au Mon Mar 1 06:04:10 1999 From: garys@magna.com.au (Gary Stephenson) Date: Mon, 01 Mar 1999 17:04:10 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> Message-ID: <36DA2DDA.138FF09A@magna.com.au> Amos Latteier wrote: > > Correct. This is what's supposed to be there. Does the FAQ Tool not work > when you install it? Are you using Zope 1.10.2? > > -Amos My Zope Zen seem to have gone negative (started at zero - and just got worse :( ) but HOW do you install it. I could find no mention of any "lever"s in the ZMG.pdf, and I have tried as many ways as I could think of to get my Zope (1.10.2 on ZAP) to read/import the FAQ product, but no cigar - not even close! Where does one put which files, and what procedure does one go through to invoke said "Lever" functionality. Sorry about this, but surely I can't be the *only* one that is totally lost. (Come to think of it, maybe I can!) -Hoping-for-a-positive-Zope-Zen-before-the-millenium-ly yours: (I just love those signoff thingies - one day I'll even think of a good one myself!) - gary From amos@aracnet.com Mon Mar 1 08:32:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 00:32:35 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <4.1.19990228202918.00aca300@mail.atmm.nl> References: <3.0.5.32.19990227203949.01188af0@mail.aracnet.com> <003d01be62ac$c17f1260$fa01a8c0@rogue.easystreet.com> Message-ID: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> At 08:33 PM 2/28/99 +0100, Martijn Pieters wrote: >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at >home, running Win98, and I checked the source of the Product >initialisation. When I twiddle with it a bit, swicth off the try/except >errorhandling, I discovered that it is the product.dat file. Here is the >traceback: ... >It looks like the Lever isn't platform independent. It certainly looks like you are having a problem, but since I developed to FAQ Tool under win32 and it works fine for me under Linux, I don't agree with you assessment of the problem. Would you please file a bug report in the collector including this traceback. This is getting deeper than I can easily troubleshoot. Thanks. -Amos From chsrinfo@guetali.fr Mon Mar 1 09:44:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 13:44:54 +0400 Subject: [Zope] acquisition from parent within standard_html_header Message-ID: <010201be63c8$48369be0$147800a0@pc-pi0> Hello, I want to *add* content to the default standard_html_header in a subfolder that we call, say, SF. The standard_html_header in SF reads: But since an object acquire from itself, this did not work (infinite traceback, obviously because the stack is filled with recursive calls) So I wrote: And it works for object accessed within SF. But when I create sub-folder *under* SF, say SSF, I end up with an error. How could i write this? Regards, Jephte CLAIN Service Informatique CHSR From mj@atmm.nl Mon Mar 1 09:47:39 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 10:47:39 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> Message-ID: <4.1.19990301104630.00a604d0@lisp.atmm.nl> At 22:34 27/02/99 , Amos Latteier wrote: >Hi Everyone: > >As part of writing an article on Zope for WebReview, I've put together an >example FAQ Tool for Zope. If you've seen Guido's FAQ Wizard then you know >what the FAQ Tool is about. I assume this means Zope will also appear in the Application Server list of WebReview? (http://appservers.webreview.com). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:06:41 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:06:41 -0000 (GMT) Subject: [Zope] hiding tracebacks, and catching exceptions In-Reply-To: <613145F79272D211914B0020AFF6401907BA8F@GANDALF> Message-ID: On 26-Feb-99 Paul Everitt wrote: > > Julian wrote: >> On 25-Feb-99 Paul Everitt wrote: >> > >> > >> > >> >

    This page referenced a bad variable.

    >> > >> >> If I want to do this at the moment, I'm going to have to use >> an "external >> method"? > > The above would require writing a DTML tag. I meant, doing the equivalent (catching exceptions) not implementing the same syntax. --- Julian Morrison Programmer (Zereau Ltd) From mj@atmm.nl Mon Mar 1 10:11:27 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:11:27 +0100 Subject: [Zope] acquisition from parent within standard_html_header In-Reply-To: <010201be63c8$48369be0$147800a0@pc-pi0> Message-ID: <4.1.19990301110950.00a5e830@lisp.atmm.nl> At 10:44 01/03/99 , Service Informatique CHSR wrote: >Hello, > >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? > I got it working using the following code: This only works when this code is in a sub-Folder, and the standard_html_header can be found in the root folder. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:16:18 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:16:18 -0000 (GMT) Subject: [Zope] External / Internal Methods In-Reply-To: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: On 26-Feb-99 Michael Bernstein wrote: > "Christopher G. Petrilli" wrote: >> >> I vaguely recall this being discussed in the past, but I can't find it >> in my archives... >> >> Has anyone tried to make a comparable thing to an "External Method" but >> that is contained in the database itself? > > I believe that this was rejected by DC because of security issues. > Letting people store and run Python code directly in the database is > essentially the same as giving someone complete access to the system. Does python have anything equivalent to Perl's taint mode? Because if it does then this could be used. That and restricting allowable APIs from internal methods - again, if this is possible. --- Julian Morrison Programmer (Zereau Ltd) From chsrinfo@guetali.fr Mon Mar 1 10:38:49 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 14:38:49 +0400 Subject: [Zope] Re: acquisition from parent within standard_html_header Message-ID: <011f01be63cf$d2d977c0$147800a0@pc-pi0> Hello, Sorry for the waste of bandwith. I found the problem. But the story is interresting enough to be shared. See at the end of the message. >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? Well, I found that standard_html_header were called several times, and that's what caused the error. Let SF/standard_html_header be: --------8<-------- Hello! --------8<-------- Then, when I access http://mysite/SF, I get: --------8<-------- [pretty standard_html_header] Hello! Hello! This is the index_html document in SF. --------8<-------- Why is Hello! printed twice??? From SSF, I get Hello! printed 3 times... Regards, CLAIN Jephte Service Informatique CHSR. From chalaouxf@synbio.tpgnet.net Mon Mar 1 10:22:37 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 1 Mar 1999 11:22:37 +0100 Subject: [Zope] Find something in Zope mailing list Message-ID: <19990301104352489.AAB134@[195.10.9.163]> Hi, It becomes difficult to find something in Zope mailing list. Is there a find tool to look inside message aera? FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From mj@atmm.nl Mon Mar 1 10:43:12 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:43:12 +0100 Subject: [Zope] Find something in Zope mailing list In-Reply-To: <19990301104352489.AAB134@[195.10.9.163]> Message-ID: <4.1.19990301114206.00a7dd60@lisp.atmm.nl> At 11:22 01/03/99 , FR Chalaoux wrote: >Hi, > >It becomes difficult to find something in Zope mailing list. >Is there a find tool to look inside message aera? > >FR > EGroups archives the mailinglist. At http://www.egroups.com/lists/zope you can find a search interface, which quite often actually works. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Mon Mar 1 11:49:43 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 06:49:43 -0500 Subject: [Zope] Incoming mail, scheduling Message-ID: <613145F79272D211914B0020AFF6401907BAAA@GANDALF> Eric wrote: > Hmmmm. I'd prefer it if users could add tasks without > bothering me, but not > all of them can cope with cron. What's the stuff in the > lib/python/Scheduler directory? Unfortunately the word "comatose" springs to mind. :^( We need to get our concurrency story in better shape to allow multiple things happening simultaneously. --Paul From raver@box.dust.za.net Mon Mar 1 12:22:34 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 13:22:34 +0100 Subject: [Zope] Zope and Apache - again Message-ID: <19990301132234.A682@RaVER.duck.org> Hi all! I know the question has been up to debate earlier on the list, but still... I can't get Apache to send authorization headers on to Zope - even tough I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite and to let apache authenticate /cgi-bin/Zope/). I also grabbed the latest Zap release, but that one din't work (broken?). Also had a look at the zap.conf file and tried using some in my httpd.conf file, but I still had no luck. Now - here is my current config: Linux 2.0.35 Python 1.5.1 Zope 1.10.2 Apache 1.3.4 Something there that doesn't play well together? If not - what is wrong?? Appreciate all the help I can get! Sture Lygren From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 12:28:49 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 12:28:49 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> This may sound like a bit of an obvious suggestion, but it caught me out. Check the Directory directive for /cgi-bin and make sure that the ExecCGI option is set. It should look something like this: AllowOverride none Options ExecCGi Order allow,deny Allow from all Apache 1.3.4 by default doesn't have the ExecCGI option set. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 12:22 PM Subject: [Zope] Zope and Apache - again >Hi all! > >I know the question has been up to debate earlier on the list, but still... > >I can't get Apache to send authorization headers on to Zope - even tough >I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite >and to let apache authenticate /cgi-bin/Zope/). I also grabbed the >latest Zap release, but that one din't work (broken?). Also had a look at >the zap.conf file and tried using some in my httpd.conf file, but I still >had no luck. > >Now - here is my current config: > >Linux 2.0.35 >Python 1.5.1 >Zope 1.10.2 >Apache 1.3.4 > >Something there that doesn't play well together? > >If not - what is wrong?? > >Appreciate all the help I can get! > >Sture Lygren > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From bkc@murkworks.com Mon Mar 1 12:21:11 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 08:21:11 -0400 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> References: <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <199903011315.IAA25687@anvil.murkworks.com> On 1 Mar 99, at 0:32, Amos Latteier wrote: > >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this > >at home, running Win98, and I checked the source of the Product > >initialisation. When I twiddle with it a bit, swicth off the try/except > >errorhandling, I discovered that it is the product.dat file. Here is the > >traceback: > ... I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down. I'm running 1.10.2 on NT with ZServer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From mj@atmm.nl Mon Mar 1 14:08:20 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 15:08:20 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <199903011315.IAA25687@anvil.murkworks.com> References: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <4.1.19990301145717.00a06d60@lisp.atmm.nl> At 13:21 01/03/99 , Brad Clements wrote: >I don't get a traceback because I didn't "fiddle", the FAQ item shows up >in the control panel, but is not in the Add drop-down. > >I'm running 1.10.2 on NT with ZServer. The 'fiddling' involves disbling the exception handling of the product initialisation. Normally, a 'Levered' product, that has been distributed, has a product.dat file. This file contains the compressed pickled reprensentation of the product, which basicly consists of other Zope objects, with a Principia Factory. When Zope can't uncompress and depickle the product.dat file, you only get to see that the Product is installed, but it doesn't contain anything (which a Levered Product actually should), and nothing else happens or can happen. If you want to know more on how to use the 'Lever', read up at http://www.zope.org/Documentation/Guides/ZMG/ZMG-HTML/ZMG.html#pgfId-986684 (Zope Manager's Guide, Creating Zoipe Products). When you disable the exception handling in initializeProduct in Product.py, and restart Zope, it will exit with the traceback I reported. I have reported this to DC with the Collector, but I used Win98. You are using WinNT, which is interesting.. Something goes wrong with decompressing the product.dat file on win32 platforms (Amos says he tested it succesfully on Linux). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 14:14:22 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 14:14:22 -0000 (GMT) Subject: [Zope] inclusions from external methods Message-ID: What is the equivalent of from an external method? --- Julian Morrison Programmer (Zereau Ltd) From petrilli@amber.org Mon Mar 1 14:50:12 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 09:50:12 -0500 Subject: [Zope] External / Internal Methods In-Reply-To: ; from julian@zereau.net on Mon, Mar 01, 1999 at 10:16:18AM -0000 References: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: <19990301095012.53908@amber.org> On Mon, Mar 01, 1999 at 10:16:18AM -0000, julian@zereau.net wrote: > > On 26-Feb-99 Michael Bernstein wrote: > > "Christopher G. Petrilli" wrote: > >> > >> I vaguely recall this being discussed in the past, but I can't find it > >> in my archives... > >> > >> Has anyone tried to make a comparable thing to an "External Method" but > >> that is contained in the database itself? > > > > I believe that this was rejected by DC because of security issues. > > Letting people store and run Python code directly in the database is > > essentially the same as giving someone complete access to the system. > > Does python have anything equivalent to Perl's taint mode? Because if it does > then this could be used. That and restricting allowable APIs from internal > methods - again, if this is possible. > I don't want to get into a language war, but as someone who lives and breathes security, taint mode is a joke. Python's rexec module would be great (as would Bastion), but this is going to require a much higher level of ZopeZen to implement than I currently have. Yes I know my proposal was wrought with huge security problems, but regardless it is valuable to a some people in the near term (such as those of us on the STarship). BTW, requiring write access to the file system is only trivially more secure. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Mon Mar 1 15:54:04 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 16:54:04 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk>; from Phil Harris on Mon, Mar 01, 1999 at 12:28:49PM -0000 References: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> Message-ID: <19990301165404.A981@RaVER.duck.org> On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: > This may sound like a bit of an obvious suggestion, but it caught me out. > > Check the Directory directive for /cgi-bin and make sure that > the ExecCGI option is set. > > It should look something like this: > > > AllowOverride none > Options ExecCGi > Order allow,deny > Allow from all > > > Apache 1.3.4 by default doesn't have the ExecCGI option set. > > HTH > > Phil > ----- Original Message ----- > From: > To: > Sent: Monday, March 01, 1999 12:22 PM > Subject: [Zope] Zope and Apache - again > > Unfortunately the ExecCGI option didn't help much. Thanks anyways. I'm still stuck at the point where I get 'Authorization failed'. I've checked and double checked my Zope/access file and I use correct username and passwd. The filepermissions should also be set correct (according to the instructions given in the INSTALL.txt file). Problem is, as far as I can tell, connected to the way the rewrite module does the rewrite.... Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the authorization header actually works? If it works - is there someone that can say exactly how apache should be configured and compiled to get it working (best of all also put in a working httpd.conf also)? And again.....Appreciate all teh help I can get! From Paul@digicool.com Mon Mar 1 16:03:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 11:03:24 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> > If it works - is there someone that can say exactly how > apache should be > configured and compiled to get it working (best of all also > put in a working > httpd.conf also)? We'd prefer that you start with the Zap distribution, as it removes a whole bunch of variables. Can you tell us what was the error with using Zap? --Paul From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 16:01:14 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 16:01:14 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <00cc01be63fc$bbf4e5d0$5c773fc1@ml.uwcm.ac.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Well the WEBSERVER.txt instructions work for me. Find attached a working httpd.conf. Also attahced is a module listing from my 'httpd'. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 3:54 PM Subject: Re: [Zope] Zope and Apache - again >On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: >> This may sound like a bit of an obvious suggestion, but it caught me out. >> >> Check the Directory directive for /cgi-bin and make sure that >> the ExecCGI option is set. >> >> It should look something like this: >> >> >> AllowOverride none >> Options ExecCGi >> Order allow,deny >> Allow from all >> >> >> Apache 1.3.4 by default doesn't have the ExecCGI option set. >> >> HTH >> >> Phil >> ----- Original Message ----- >> From: >> To: >> Sent: Monday, March 01, 1999 12:22 PM >> Subject: [Zope] Zope and Apache - again >> >> > >Unfortunately the ExecCGI option didn't help much. Thanks anyways. > >I'm still stuck at the >point where I get 'Authorization failed'. I've checked and double checked my >Zope/access file and I use correct username and passwd. The filepermissions >should also be set correct (according to the instructions given in the >INSTALL.txt file). Problem is, as far as I can tell, connected to the way >the rewrite module does the rewrite.... > >Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the >authorization header actually works? > >If it works - is there someone that can say exactly how apache should be >configured and compiled to get it working (best of all also put in a working >httpd.conf also)? > >And again.....Appreciate all teh help I can get! > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.list" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.list" Compiled-in modules:=0A= http_core.c=0A= mod_mmap_static.c=0A= mod_env.c=0A= mod_log_config.c=0A= mod_log_agent.c=0A= mod_log_referer.c=0A= mod_mime_magic.c=0A= mod_mime.c=0A= mod_negotiation.c=0A= mod_status.c=0A= mod_info.c=0A= mod_include.c=0A= mod_autoindex.c=0A= mod_dir.c=0A= mod_cgi.c=0A= mod_asis.c=0A= mod_imap.c=0A= mod_actions.c=0A= mod_speling.c=0A= mod_userdir.c=0A= mod_proxy.c=0A= mod_alias.c=0A= mod_rewrite.c=0A= mod_access.c=0A= mod_auth.c=0A= mod_auth_anon.c=0A= mod_auth_dbm.c=0A= mod_auth_db.c=0A= mod_digest.c=0A= mod_cern_meta.c=0A= mod_expires.c=0A= mod_headers.c=0A= mod_usertrack.c=0A= mod_example.c=0A= mod_unique_id.c=0A= mod_so.c=0A= mod_setenvif.c=0A= mod_php3.c=0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.conf" ##=0A= ## httpd.conf -- Apache HTTP server configuration file=0A= ##=0A= =0A= #=0A= # Based upon the NCSA server configuration files originally by Rob = McCool.=0A= #=0A= # This is the main Apache server configuration file. It contains the=0A= # configuration directives that give the server its instructions.=0A= # See for detailed information about=0A= # the directives.=0A= #=0A= # Do NOT simply read the instructions in here without understanding=0A= # what they do. They're here only as hints or reminders. If you are = unsure=0A= # consult the online docs. You have been warned. =0A= #=0A= # After this file is processed, the server will look for and process=0A= # /www/conf/srm.conf and then /www/conf/access.conf=0A= # unless you have overridden these with ResourceConfig and/or=0A= # AccessConfig directives here.=0A= #=0A= # The configuration directives are grouped into three basic sections:=0A= # 1. Directives that control the operation of the Apache server process = as a=0A= # whole (the 'global environment').=0A= # 2. Directives that define the parameters of the 'main' or 'default' = server,=0A= # which responds to requests that aren't handled by a virtual host.=0A= # These directives also provide default values for the settings=0A= # of all virtual hosts.=0A= # 3. Settings for virtual hosts, which allow Web requests to be sent to=0A= # different IP addresses or hostnames and have them handled by the=0A= # same Apache server process.=0A= #=0A= # Configuration and logfile names: If the filenames you specify for many=0A= # of the server's control files begin with "/" (or "drive:/" for Win32), = the=0A= # server will use that explicit path. If the filenames do *not* begin=0A= # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"=0A= # with ServerRoot set to "/usr/local/apache" will be interpreted by the=0A= # server as "/usr/local/apache/logs/foo.log".=0A= #=0A= =0A= ### Section 1: Global Environment=0A= #=0A= # The directives in this section affect the overall operation of Apache,=0A= # such as the number of concurrent requests it can handle or where it=0A= # can find its configuration files.=0A= #=0A= =0A= #=0A= # ServerType is either inetd, or standalone. Inetd mode is only = supported on=0A= # Unix platforms.=0A= #=0A= ServerType standalone=0A= =0A= #=0A= # ServerRoot: The top of the directory tree under which the server's=0A= # configuration, error, and log files are kept.=0A= #=0A= # NOTE! If you intend to place this on an NFS (or otherwise network)=0A= # mounted filesystem then please read the LockFile documentation=0A= # (available at );=0A= # you will save yourself a lot of trouble.=0A= #=0A= # Do NOT add a slash at the end of the directory path.=0A= #=0A= ServerRoot "/www"=0A= =0A= #=0A= # The LockFile directive sets the path to the lockfile used when Apache=0A= # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or=0A= # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at=0A= # its default value. The main reason for changing it is if the logs=0A= # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL=0A= # DISK. The PID of the main server process is automatically appended to=0A= # the filename. =0A= #=0A= #LockFile /www/logs/httpd.lock=0A= =0A= #=0A= # PidFile: The file in which the server should record its process=0A= # identification number when it starts.=0A= #=0A= PidFile /www/logs/httpd.pid=0A= =0A= #=0A= # ScoreBoardFile: File used to store internal server process information.=0A= # Not all architectures require this. But if yours does (you'll know = because=0A= # this file will be created when you run Apache) then you *must* ensure = that=0A= # no two invocations of Apache share the same scoreboard file.=0A= #=0A= ScoreBoardFile /www/logs/httpd.scoreboard=0A= =0A= #=0A= # In the standard configuration, the server will process httpd.conf,=0A= # srm.conf, and access.conf in that order. The latter two files are=0A= # now distributed empty, as it is recommended that all directives=0A= # be kept in a single file for simplicity. The commented-out values=0A= # below are the built-in defaults. You can have the server ignore=0A= # these files altogether by using "/dev/null" (for Unix) or=0A= # "nul" (for Win32) for the arguments to the directives.=0A= #=0A= #ResourceConfig conf/srm.conf=0A= #AccessConfig conf/access.conf=0A= =0A= #=0A= # Timeout: The number of seconds before receives and sends time out.=0A= #=0A= Timeout 300=0A= =0A= #=0A= # KeepAlive: Whether or not to allow persistent connections (more than=0A= # one request per connection). Set to "Off" to deactivate.=0A= #=0A= KeepAlive On=0A= =0A= #=0A= # MaxKeepAliveRequests: The maximum number of requests to allow=0A= # during a persistent connection. Set to 0 to allow an unlimited amount.=0A= # We recommend you leave this number high, for maximum performance.=0A= #=0A= MaxKeepAliveRequests 100=0A= =0A= #=0A= # KeepAliveTimeout: Number of seconds to wait for the next request from = the=0A= # same client on the same connection.=0A= #=0A= KeepAliveTimeout 15=0A= =0A= #=0A= # Server-pool size regulation. Rather than making you guess how many=0A= # server processes you need, Apache dynamically adapts to the load it=0A= # sees --- that is, it tries to maintain enough server processes to=0A= # handle the current load, plus a few spare servers to handle transient=0A= # load spikes (e.g., multiple simultaneous requests from a single=0A= # Netscape browser).=0A= #=0A= # It does this by periodically checking how many servers are waiting=0A= # for a request. If there are fewer than MinSpareServers, it creates=0A= # a new spare. If there are more than MaxSpareServers, some of the=0A= # spares die off. The default values in httpd.conf-dist are probably OK=0A= # for most sites.=0A= #=0A= MinSpareServers 5=0A= MaxSpareServers 10=0A= =0A= #=0A= # Number of servers to start initially --- should be a reasonable = ballpark=0A= # figure.=0A= #=0A= StartServers 5=0A= =0A= #=0A= # Limit on total number of servers running, i.e., limit on the number=0A= # of clients who can simultaneously connect --- if this limit is ever=0A= # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.=0A= # It is intended mainly as a brake to keep a runaway server from taking=0A= # the system with it as it spirals down...=0A= #=0A= MaxClients 150=0A= =0A= #=0A= # MaxRequestsPerChild: the number of requests each child process is=0A= # allowed to process before the child dies. The child will exit so=0A= # as to avoid problems after prolonged use when Apache (and maybe the=0A= # libraries it uses) leak memory or other resources. On most systems, = this=0A= # isn't really needed, but a few (such as Solaris) do have notable leaks=0A= # in the libraries.=0A= #=0A= MaxRequestsPerChild 30=0A= =0A= #=0A= # Listen: Allows you to bind Apache to specific IP addresses and/or=0A= # ports, in addition to the default. See also the =0A= # directive.=0A= #=0A= #Listen 3000=0A= #Listen 12.34.56.78:80=0A= =0A= #=0A= # BindAddress: You can support virtual hosts with this option. This = directive=0A= # is used to tell the server which IP address to listen to. It can either=0A= # contain "*", an IP address, or a fully qualified Internet domain name.=0A= # See also the and Listen directives.=0A= #=0A= #BindAddress *=0A= =0A= #=0A= # Dynamic Shared Object (DSO) Support=0A= #=0A= # To be able to use the functionality of a module which was built as a = DSO you=0A= # have to place corresponding `LoadModule' lines at this location so the=0A= # directives contained in it are actually available _before_ they are = used.=0A= # Please read the file README.DSO in the Apache 1.3 distribution for more=0A= # details about the DSO mechanism and run `httpd -l' for the list of = already=0A= # built-in (statically linked and thus always available) modules in your = httpd=0A= # binary.=0A= #=0A= # Note: The order is which modules are loaded is important. Don't change=0A= # the order below without expert advice.=0A= #=0A= # Example:=0A= # LoadModule foo_module libexec/mod_foo.so=0A= =0A= #=0A= # ExtendedStatus controls whether Apache will generate "full" status=0A= # information (ExtendedStatus On) or just basic information = (ExtendedStatus=0A= # Off) when the "server-status" handler is called. The default is Off.=0A= #=0A= #ExtendedStatus On=0A= =0A= ### Section 2: 'Main' server configuration=0A= #=0A= # The directives in this section set up the values used by the 'main'=0A= # server, which responds to any requests that aren't handled by a=0A= # definition. These values also provide defaults for=0A= # any containers you may define later in the file.=0A= #=0A= # All of these directives may appear inside containers,=0A= # in which case these default settings will be overridden for the=0A= # virtual host being defined.=0A= #=0A= =0A= #=0A= # If your ServerType directive (set earlier in the 'Global Environment'=0A= # section) is set to "inetd", the next few directives don't have any=0A= # effect since their settings are defined by the inetd configuration.=0A= # Skip ahead to the ServerAdmin directive.=0A= #=0A= =0A= #=0A= # Port: The port to which the standalone server listens. For=0A= # ports < 1023, you will need httpd to be run as root initially.=0A= #=0A= Port 80=0A= =0A= #=0A= # If you wish httpd to run as a different user or group, you must run=0A= # httpd as root initially and it will switch. =0A= #=0A= # User/Group: The name (or #number) of the user/group to run httpd as.=0A= # . On SCO (ODT 3) use "User nouser" and "Group nogroup".=0A= # . On HPUX you may not be able to use shared memory as nobody, and the=0A= # suggested workaround is to create a user www and use that user.=0A= # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)=0A= # when the value of (unsigned)Group is above 60000; =0A= # don't use Group nogroup on these systems!=0A= #=0A= User nobody=0A= Group nogroup=0A= =0A= #=0A= # ServerAdmin: Your address, where problems with the server should be=0A= # e-mailed. This address appears on some server-generated pages, such=0A= # as error documents.=0A= #=0A= ServerAdmin root@d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # ServerName allows you to set a host name which is sent back to clients = for=0A= # your server if it's different than the one the program would get = (i.e., use=0A= # "www" instead of the host's real name).=0A= #=0A= # Note: You cannot just invent host names and hope they work. The name = you =0A= # define here must be a valid DNS name for your host. If you don't = understand=0A= # this, ask your network administrator.=0A= # If your host doesn't have a registered DNS name, enter its IP address = here.=0A= # You will have to access it by its address (e.g., http://123.45.67.89/)=0A= # anyway, and this will make redirections work in a sensible way.=0A= #=0A= ServerName d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # DocumentRoot: The directory out of which you will serve your=0A= # documents. By default, all requests are taken from this directory, but=0A= # symbolic links and aliases may be used to point to other locations.=0A= #=0A= DocumentRoot "/www/htdocs"=0A= =0A= #=0A= # Each directory to which Apache has access, can be configured with = respect=0A= # to which services and features are allowed and/or disabled in that=0A= # directory (and its subdirectories). =0A= #=0A= # First, we configure the "default" to be a very restrictive set of =0A= # permissions. =0A= #=0A= =0A= Options FollowSymLinks=0A= AllowOverride None=0A= =0A= =0A= #=0A= # Note that from this point forward you must specifically allow=0A= # particular features to be enabled - so if something's not working as=0A= # you might expect, make sure that you have specifically enabled it=0A= # below.=0A= #=0A= =0A= #=0A= # This should be changed to whatever you set DocumentRoot to.=0A= #=0A= =0A= =0A= #=0A= # This may also be "None", "All", or any combination of "Indexes",=0A= # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".=0A= #=0A= # Note that "MultiViews" must be named *explicitly* --- "Options All"=0A= # doesn't give it to you.=0A= #=0A= Options Indexes FollowSymLinks=0A= =0A= #=0A= # This controls which options the .htaccess files in directories can=0A= # override. Can also be "All", or any combination of "Options", = "FileInfo", =0A= # "AuthConfig", and "Limit"=0A= #=0A= AllowOverride None=0A= =0A= #=0A= # Controls who can get stuff from this server.=0A= #=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # UserDir: The name of the directory which is appended onto a user's home=0A= # directory if a ~user request is received.=0A= #=0A= UserDir public_html=0A= =0A= #=0A= # Control access to UserDir directories. The following is an example=0A= # for a site where these directories are restricted to read-only.=0A= #=0A= #=0A= # AllowOverride FileInfo AuthConfig Limit=0A= # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec=0A= # =0A= # Order allow,deny=0A= # Allow from all=0A= # =0A= # =0A= # Order deny,allow=0A= # Deny from all=0A= # =0A= #=0A= =0A= #=0A= # DirectoryIndex: Name of the file or files to use as a pre-written HTML=0A= # directory index. Separate multiple entries with spaces.=0A= #=0A= DirectoryIndex index.html=0A= =0A= #=0A= # AccessFileName: The name of the file to look for in each directory=0A= # for access control information.=0A= #=0A= AccessFileName .htaccess=0A= =0A= #=0A= # The following lines prevent .htaccess files from being viewed by=0A= # Web clients. Since .htaccess files often contain authorization=0A= # information, access is disallowed for security reasons. Comment=0A= # these lines out if you want Web visitors to see the contents of=0A= # .htaccess files. If you change the AccessFileName directive above,=0A= # be sure to make the corresponding changes here.=0A= #=0A= =0A= Order allow,deny=0A= Deny from all=0A= =0A= =0A= #=0A= # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with = each=0A= # document that was negotiated on the basis of content. This asks proxy=0A= # servers not to cache the document. Uncommenting the following line = disables=0A= # this behavior, and proxies will be allowed to cache the documents.=0A= #=0A= #CacheNegotiatedDocs=0A= =0A= #=0A= # UseCanonicalName: (new for 1.3) With this setting turned on, whenever=0A= # Apache needs to construct a self-referencing URL (a URL that refers = back=0A= # to the server the response is coming from) it will use ServerName and=0A= # Port to form a "canonical" name. With this setting off, Apache will=0A= # use the hostname:port that the client supplied, when possible. This=0A= # also affects SERVER_NAME and SERVER_PORT in CGI scripts.=0A= #=0A= UseCanonicalName On=0A= =0A= #=0A= # TypesConfig describes where the mime.types file (or equivalent) is=0A= # to be found.=0A= #=0A= TypesConfig /www/conf/mime.types=0A= =0A= #=0A= # DefaultType is the default MIME type the server will use for a document=0A= # if it cannot otherwise determine one, such as from filename extensions.=0A= # If your server contains mostly text or HTML documents, "text/plain" is=0A= # a good value. If most of your content is binary, such as applications=0A= # or images, you may want to use "application/octet-stream" instead to=0A= # keep browsers from trying to display binary files as though they are=0A= # text.=0A= #=0A= DefaultType text/plain=0A= =0A= #=0A= # The mod_mime_magic module allows the server to use various hints from = the=0A= # contents of the file itself to determine its type. The MIMEMagicFile=0A= # directive tells the module where the hint definitions are located.=0A= # mod_mime_magic is not part of the default server (you have to add=0A= # it yourself with a LoadModule [see the DSO paragraph in the 'Global=0A= # Environment' section], or recompile the server and include = mod_mime_magic=0A= # as part of the configuration), so it's enclosed in an = container.=0A= # This means that the MIMEMagicFile directive will only be processed if = the=0A= # module is part of the server.=0A= #=0A= =0A= MIMEMagicFile /www/conf/magic=0A= =0A= =0A= #=0A= # HostnameLookups: Log the names of clients or just their IP addresses=0A= # e.g., www.apache.org (on) or 204.62.129.132 (off).=0A= # The default is off because it'd be overall better for the net if people=0A= # had to knowingly turn this feature on, since enabling it means that=0A= # each client request will result in AT LEAST one lookup request to the=0A= # nameserver.=0A= #=0A= HostnameLookups Off=0A= =0A= #=0A= # ErrorLog: The location of the error log file.=0A= # If you do not specify an ErrorLog directive within a =0A= # container, error messages relating to that virtual host will be=0A= # logged here. If you *do* define an error logfile for a =0A= # container, that host's errors will be logged there and not here.=0A= #=0A= ErrorLog /www/logs/error_log=0A= =0A= #=0A= # LogLevel: Control the number of messages logged to the error_log.=0A= # Possible values include: debug, info, notice, warn, error, crit,=0A= # alert, emerg.=0A= #=0A= LogLevel warn=0A= =0A= #=0A= # The following directives define some format nicknames for use with=0A= # a CustomLog directive (see below).=0A= #=0A= LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" = combined=0A= LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A= LogFormat "%{Referer}i -> %U" referer=0A= LogFormat "%{User-agent}i" agent=0A= =0A= #=0A= # The location and format of the access logfile (Common Logfile Format).=0A= # If you do not define any access logfiles within a =0A= # container, they will be logged here. Contrariwise, if you *do*=0A= # define per- access logfiles, transactions will be=0A= # logged therein and *not* in this file.=0A= #=0A= CustomLog /www/logs/access_log common=0A= =0A= #=0A= # If you would like to have agent and referer logfiles, uncomment the=0A= # following directives.=0A= #=0A= CustomLog /www/logs/referer_log referer=0A= CustomLog /www/logs/agent_log agent=0A= =0A= #=0A= # If you prefer a single logfile with access, agent, and referer = information=0A= # (Combined Logfile Format) you can use the following directive.=0A= #=0A= CustomLog /www/logs/access_log combined=0A= =0A= #=0A= # Optionally add a line containing the server version and virtual host=0A= # name to server-generated pages (error documents, FTP directory = listings,=0A= # mod_status and mod_info output etc., but not CGI generated documents).=0A= # Set to "EMail" to also include a mailto: link to the ServerAdmin.=0A= # Set to one of: On | Off | EMail=0A= #=0A= ServerSignature On=0A= =0A= #=0A= # Aliases: Add here as many aliases as you need (with no limit). The = format is =0A= # Alias fakename realname=0A= #=0A= # Note that if you include a trailing / on fakename then the server will=0A= # require it to be present in the URL. So "/icons" isn't aliased in this=0A= # example, only "/icons/"..=0A= #=0A= Alias /icons/ "/www/icons/"=0A= =0A= =0A= Options Indexes MultiViews=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # ScriptAlias: This controls which directories contain server scripts.=0A= # ScriptAliases are essentially the same as Aliases, except that=0A= # documents in the realname directory are treated as applications and=0A= # run by the server when requested rather than as documents sent to the = client.=0A= # The same rules about trailing "/" apply to ScriptAlias directives as to=0A= # Alias.=0A= #=0A= ScriptAlias /cgi-bin/ "/www/cgi-bin/"=0A= ScriptAlias /Zope/ "/www/cgi-bin/Zope/"=0A= =0A= #=0A= # "/www/cgi-bin" should be changed to whatever your ScriptAliased=0A= # CGI directory exists, if you have that configured.=0A= #=0A= =0A= AllowOverride none=0A= Options ExecCGI=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # Redirect allows you to tell clients about documents which used to = exist in=0A= # your server's namespace, but do not anymore. This allows you to tell = the=0A= # clients where to look for the relocated document.=0A= # Format: Redirect old-URI new-URL=0A= #=0A= =0A= #=0A= # Directives controlling the display of server-generated directory = listings.=0A= #=0A= =0A= #=0A= # FancyIndexing is whether you want fancy directory indexing or standard=0A= #=0A= IndexOptions FancyIndexing=0A= =0A= #=0A= # AddIcon* directives tell the server which icon to show for different=0A= # files or filename extensions. These are only displayed for=0A= # FancyIndexed directories.=0A= #=0A= AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A= =0A= AddIconByType (TXT,/icons/text.gif) text/*=0A= AddIconByType (IMG,/icons/image2.gif) image/*=0A= AddIconByType (SND,/icons/sound2.gif) audio/*=0A= AddIconByType (VID,/icons/movie.gif) video/*=0A= =0A= AddIcon /icons/binary.gif .bin .exe=0A= AddIcon /icons/binhex.gif .hqx=0A= AddIcon /icons/tar.gif .tar=0A= AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A= AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip=0A= AddIcon /icons/a.gif .ps .ai .eps=0A= AddIcon /icons/layout.gif .html .shtml .htm .pdf=0A= AddIcon /icons/text.gif .txt=0A= AddIcon /icons/c.gif .c=0A= AddIcon /icons/p.gif .pl .py=0A= AddIcon /icons/f.gif .for=0A= AddIcon /icons/dvi.gif .dvi=0A= AddIcon /icons/uuencoded.gif .uu=0A= AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A= AddIcon /icons/tex.gif .tex=0A= AddIcon /icons/bomb.gif core=0A= =0A= AddIcon /icons/back.gif ..=0A= AddIcon /icons/hand.right.gif README=0A= AddIcon /icons/folder.gif ^^DIRECTORY^^=0A= AddIcon /icons/blank.gif ^^BLANKICON^^=0A= =0A= #=0A= # DefaultIcon is which icon to show for files which do not have an icon=0A= # explicitly set.=0A= #=0A= DefaultIcon /icons/unknown.gif=0A= =0A= #=0A= # AddDescription allows you to place a short description after a file in=0A= # server-generated indexes. These are only displayed for FancyIndexed=0A= # directories.=0A= # Format: AddDescription "description" filename=0A= #=0A= #AddDescription "GZIP compressed document" .gz=0A= #AddDescription "tar archive" .tar=0A= #AddDescription "GZIP compressed tar archive" .tgz=0A= =0A= #=0A= # ReadmeName is the name of the README file the server will look for by=0A= # default, and append to directory listings.=0A= #=0A= # HeaderName is the name of a file which should be prepended to=0A= # directory indexes. =0A= #=0A= # The server will first look for name.html and include it if found.=0A= # If name.html doesn't exist, the server will then look for name.txt=0A= # and include it as plaintext if found.=0A= #=0A= ReadmeName README=0A= HeaderName HEADER=0A= =0A= #=0A= # IndexIgnore is a set of filenames which directory indexing should = ignore=0A= # and not include in the listing. Shell-style wildcarding is permitted.=0A= #=0A= IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t=0A= =0A= #=0A= # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) = uncompress=0A= # information on the fly. Note: Not all browsers support this.=0A= # Despite the name similarity, the following Add* directives have nothing=0A= # to do with the FancyIndexing customization directives above.=0A= #=0A= AddEncoding x-compress Z=0A= AddEncoding x-gzip gz=0A= =0A= #=0A= # AddLanguage allows you to specify the language of a document. You can=0A= # then use content negotiation to give a browser a file in a language=0A= # it can understand. Note that the suffix does not have to be the same=0A= # as the language keyword --- those with documents in Polish (whose=0A= # net-standard language code is pl) may wish to use "AddLanguage pl .po" =0A= # to avoid the ambiguity with the common suffix for perl scripts.=0A= #=0A= AddLanguage en .en=0A= AddLanguage fr .fr=0A= AddLanguage de .de=0A= AddLanguage da .da=0A= AddLanguage el .el=0A= AddLanguage it .it=0A= =0A= #=0A= # LanguagePriority allows you to give precedence to some languages=0A= # in case of a tie during content negotiation.=0A= # Just list the languages in decreasing order of preference.=0A= #=0A= LanguagePriority en fr de=0A= =0A= #=0A= # AddType allows you to tweak mime.types without actually editing it, or = to=0A= # make certain files to be certain types.=0A= #=0A= # For example, the PHP3 module (not part of the Apache distribution)=0A= # will typically use:=0A= #=0A= AddType application/x-httpd-php3 .phtml .php3=0A= AddType application/x-httpd-php3-source .phps=0A= =0A= #=0A= # AddHandler allows you to map certain file extensions to "handlers",=0A= # actions unrelated to filetype. These can be either built into the = server=0A= # or added with the Action command (see below)=0A= #=0A= # If you want to use server side includes, or CGI outside=0A= # ScriptAliased directories, uncomment the following lines.=0A= #=0A= # To use CGI scripts:=0A= #=0A= AddHandler cgi-script .cgi=0A= AddHandler cgi-script .pl=0A= =0A= #=0A= # To use server-parsed HTML files=0A= #=0A= #AddType text/html .shtml=0A= #AddHandler server-parsed .shtml=0A= =0A= #=0A= # Uncomment the following line to enable Apache's send-asis HTTP file=0A= # feature=0A= #=0A= #AddHandler send-as-is asis=0A= =0A= #=0A= # If you wish to use server-parsed imagemap files, use=0A= #=0A= #AddHandler imap-file map=0A= =0A= #=0A= # To enable type maps, you might want to use=0A= #=0A= #AddHandler type-map var=0A= =0A= #=0A= # Action lets you define media types that will execute a script whenever=0A= # a matching file is called. This eliminates the need for repeated URL=0A= # pathnames for oft-used CGI file processors.=0A= # Format: Action media/type /cgi-script/location=0A= # Format: Action handler-name /cgi-script/location=0A= #=0A= =0A= #=0A= # MetaDir: specifies the name of the directory in which Apache can find=0A= # meta information files. These files contain additional HTTP headers=0A= # to include when sending the document=0A= #=0A= #MetaDir .web=0A= =0A= #=0A= # MetaSuffix: specifies the file name suffix for the file containing the=0A= # meta information.=0A= #=0A= #MetaSuffix .meta=0A= =0A= #=0A= # Customizable error response (Apache style)=0A= # these come in three flavors=0A= #=0A= # 1) plain text=0A= #ErrorDocument 500 "The server made a boo boo.=0A= # n.b. the (") marks it as text, it does not get output=0A= #=0A= # 2) local redirects=0A= #ErrorDocument 404 /missing.html=0A= # to redirect to local URL /missing.html=0A= #ErrorDocument 404 /cgi-bin/missing_handler.pl=0A= # N.B.: You can redirect to a script or a document using = server-side-includes.=0A= #=0A= # 3) external redirects=0A= #ErrorDocument 402 http://some.other_server.com/subscription_info.html=0A= # N.B.: Many of the environment variables associated with the original=0A= # request will *not* be available to such a script.=0A= =0A= #=0A= # The following directives modify normal HTTP response behavior.=0A= # The first directive disables keepalive for Netscape 2.x and browsers = that=0A= # spoof it. There are known problems with these browser implementations.=0A= # The second directive is for Microsoft Internet Explorer 4.0b2=0A= # which has a broken HTTP/1.1 implementation and does not properly=0A= # support keepalive when it is used on 301 or 302 (redirect) responses.=0A= #=0A= BrowserMatch "Mozilla/2" nokeepalive=0A= BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0=0A= =0A= #=0A= # The following directive disables HTTP/1.1 responses to browsers which=0A= # are in violation of the HTTP/1.0 spec by not being able to grok a=0A= # basic 1.1 response.=0A= #=0A= BrowserMatch "RealPlayer 4\.0" force-response-1.0=0A= BrowserMatch "Java/1\.0" force-response-1.0=0A= BrowserMatch "JDK/1\.0" force-response-1.0=0A= =0A= #=0A= # Allow server status reports, with the URL of = http://servername/server-status=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-status=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Allow remote server configuration reports, with the URL of=0A= # http://servername/server-info (requires that mod_info.c be loaded).=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-info=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # There have been reports of people trying to abuse an old bug from = pre-1.1=0A= # days. This bug involved a CGI script distributed as a part of Apache.=0A= # By uncommenting these lines you can redirect these attacks to a = logging =0A= # script on phf.apache.org. Or, you can record them yourself, using the = script=0A= # support/phf_abuse_log.cgi.=0A= #=0A= #=0A= # Deny from all=0A= # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi=0A= #=0A= =0A= #=0A= # Proxy Server directives. Uncomment the following lines to=0A= # enable the proxy server:=0A= #=0A= #=0A= #ProxyRequests On=0A= #=0A= #=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Enable/disable the handling of HTTP/1.1 "Via:" headers.=0A= # ("Full" adds the server version; "Block" removes all outgoing Via: = headers)=0A= # Set to one of: Off | On | Full | Block=0A= #=0A= #ProxyVia On=0A= =0A= #=0A= # To enable the cache as well, edit and uncomment the following lines:=0A= # (no cacheing without CacheRoot)=0A= #=0A= #CacheRoot "/www/proxy"=0A= #CacheSize 5=0A= #CacheGcInterval 4=0A= #CacheMaxExpire 24=0A= #CacheLastModifiedFactor 0.1=0A= #CacheDefaultExpire 1=0A= #NoCache a_domain.com another_domain.edu joes.garage_sale.com=0A= =0A= #=0A= # End of proxy directives.=0A= =0A= ### Section 3: Virtual Hosts=0A= #=0A= # VirtualHost: If you want to maintain multiple domains/hostnames on your=0A= # machine you can setup VirtualHost containers for them.=0A= # Please see the documentation at = =0A= # for further details before you try to setup virtual hosts.=0A= # You may use the command line option '-S' to verify your virtual host=0A= # configuration.=0A= =0A= #=0A= # If you want to use name-based virtual hosts you need to define at=0A= # least one IP address (and port number) for them.=0A= #=0A= #NameVirtualHost 12.34.56.78:80=0A= NameVirtualHost 193.63.119.119=0A= =0A= #=0A= # VirtualHost example:=0A= # Almost any Apache directive may go into a VirtualHost container.=0A= #=0A= #=0A= # ServerAdmin webmaster@host.some_domain.com=0A= # DocumentRoot /www/docs/host.some_domain.com=0A= # ServerName host.some_domain.com=0A= # ErrorLog logs/host.some_domain.com-error_log=0A= # CustomLog logs/host.some_domain.com-access_log common=0A= #=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName d033.ml.uwcm.ac.uk=0A= ErrorLog logs/d033.ml.uwcm.ac.uk-error_log=0A= CustomLog logs/d033.ml.uwcm.ac.uk-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/z/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName z.realdns.com=0A= ErrorLog logs/z.realdns.com-error_log=0A= CustomLog logs/z.realdns.com-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= CheckSpelling on=0A= =0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410-- From michel@digicool.com Mon Mar 1 16:17:31 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:17:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 7:23 AM > To: zope@zope.org > Subject: [Zope] Zope and Apache - again > Now - here is my current config: > > Linux 2.0.35 > Python 1.5.1 > Zope 1.10.2 > Apache 1.3.4 > > Something there that doesn't play well together? > The only difference between your setup and the setup used to compile Zap is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there might be an incompatability with Zap on 5.1. Has anyone on the list gotten Zap working on this platform? Also, please send us the details of the error you get with Zap. When you say it's broken, how does it break? Does the starzap script fail to run? Does it say 'Apache did NOT start sucessfuly' and then spit up the last 10 lines of your error log? If so, what are those lines? -Michel > > Sture Lygren > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Wiebe Kunst" Can somebody please help me out. I've read through most of the postings to the list, but I'm still in the dark. I have defined a DTML documentproperty of type lines. Each line represents the ID of another DTML document. When using:
    I get the ID's. I tried all kinds of variations on this code (including the ones suggested by Amos) but are still unable to turn those ID's into rendered objects. Regards Wiebe Kunst From ShawH@STHS.org Mon Mar 1 16:31:06 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Mon, 1 Mar 1999 10:31:06 -0600 Subject: [Zope] ZMySQLDA installation Message-ID: You need to install python... Or adjust the Makefile.pre.in to look at Zope's internal python, instead of trying to find the external one. Actually, from a quick runthrough of the Makefile.pre.in, you should set the enviroment variable PYTHON to point to the local python binary; I mean the one internal to zope, like PYTHON=/home/zope/bin/python export PYTHON (in bash) or setenv PYTHON /home/zope/bin/python (in tcsh) ... (and no I am not quite certain on the syntax here). The 'make -f Makefile.pre.in boot' appears to call $(PYTHON) with parameters that cause it to return the proper location for the python configuration files, etc. Good luck. > ---------- > From: Timothy Grant[SMTP:tjg@avalongroup.net] > Sent: Sunday, February 28, 1999 5:39 PM > To: Zope Folk > Subject: [Zope] ZMySQLDA installation > > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: > > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it > right. > I then downloaded the ZMySQLDA from the Zope site. > > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 > > Any help would be greatly appreciated. > > -- > Stand Fast, > tjg. > =================================================== > Timothy Grant > VP Technology/CTO > Avalon Technology Group > tjg@avalongroup.net > www.avalongroup.net > (503) 246-3630 voice > (503) 246-3124 fax > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Mon Mar 1 16:57:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:57:55 -0500 Subject: [Zope] NotMail 0.0.5 alpha release Message-ID: <613145F79272D211914B0020AFF6401907BAB1@GANDALF> Greetings Zopesters, I have been working on a little pet Zope Product project for months now. Getting hired at digicool put the brakes on it a little but I have finally gotten the time to polish it up a bit for alpha release. Check out: http://starship.python.net:9673/crew/furtrapper/NotMail for NotMail. NotMail is a clone of 'other' popular web-mail interfaces. Please download and evaluate. But first a word of warning: NotMail is alpha. It is being released with the intention of harvesting other developers who are interesting in breaking it, fixing it, and improving it. Although it is a cool program, it is unstable (try pointing it at Exchange!) and not complete. I have tried to document it in code as much as possible, and it does contain a nice README.txt. You are expected to be able to infer the workings of NotMail by the source, or by telepathy, whatever. If NotMail makes your hard drive partition go bye-bye or makes your imap server think it's a dhcp server that's the way the cookie crumbles. Okay, now a word of license: NotMail is released under the GNU General Public License. Give yourself a piece of mind and send the Free Software Foundation a donation. You'd do it for NPR wouldn't you? Now a kind word about Digital Creations: Digicool has been kind enough to let me waste a small fraction of my time to release this today. They also let me use their computer to check my personal mail, etc. Please don't infer that because I work for Digicool that NotMail is a product of Digital Creations. Please do not submit NotMail bugs to the Collector or send reports to support@digicool.com. These things are for Zope and other Digicool products. It is ok to discuss it in the list but I'd prefer all discussion happen using the cool Confera discussion that can be found in the same place you can get NotMail. Regards, Michel From raver@box.dust.za.net Mon Mar 1 19:03:56 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:03:56 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF640190D9E1B@GANDALF>; from Paul Everitt on Mon, Mar 01, 1999 at 11:03:24AM -0500 References: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> Message-ID: <19990301200356.A1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:03:24AM -0500, Paul Everitt wrote: > > > If it works - is there someone that can say exactly how > > apache should be > > configured and compiled to get it working (best of all also > > put in a working > > httpd.conf also)? > > We'd prefer that you start with the Zap distribution, as it removes a > whole bunch of variables. Can you tell us what was the error with using > Zap? > > --Paul > What I did: 1) Extract the Zap distro into my top level Zope dir. Entered the Zap dir and did ./startzap. This happened: './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' 2) I figured the httpd equivalent 'zap' was broken and replaced it with my httpd (from apache 1.3.4). Again I fired up zap with ./startzap. This happened: No complaints this time. Apache (or rather zap) fires up correctly, but when I try to reach the server with netscape or lynx (http://localhost/, (I changed port back to 80)) I get 'Document contains no data'. Same goes for trying: http://localhost/cgi-bin/Zope/manage - I get 'zero sized reply', 'The requested URL could not be retrived'. Now - seems like there are some settings missing from the zap.conf file? Or if nothings wrong - then maby give the readme-file a facelift and make it more clear to ppl like me what to do to get it running. Zope seems just too good to just let go!! Hope to get it running soon Regards Sture Lygren From michel@digicool.com Mon Mar 1 19:25:45 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:25:45 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 2:04 PM > To: zope@zope.org > Subject: Re: [Zope] Zope and Apache - again > What I did: > > 1) Extract the Zap distro into my top level Zope dir. Entered > the Zap dir and > did ./startzap. > > This happened: > > './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' > I just did a fresh install and this works for me. Can you run bin/zap by hand from the shell prompt? Have you tried downloading a fresh copy of the Zap tarball? > 2) I figured the httpd equivalent 'zap' was broken and > replaced it with my > httpd (from apache 1.3.4). Again I fired up zap with ./startzap. > > This happened: > > No complaints this time. Apache (or rather zap) fires up > correctly, but when > I try to reach the server with netscape or lynx (http://localhost/, (I > changed port back to 80)) I get 'Document contains no data'. > > Same goes for trying: http://localhost/cgi-bin/Zope/manage - > I get 'zero > sized reply', 'The requested URL could not be retrived'. > Your own httpd binary might not be compiled properly for Zope use, check out the Zap FAQ at http://www.zope.org/Community/Projects/Zap. Doh, I just noticed that this is not an obvious link from the d/l page. I will make it so. > Now - seems like there are some settings missing from the > zap.conf file? > The conf file that comes with zap is ok. We and others tested it quite a bit. > Or if nothings wrong - then maby give the readme-file a facelift and > make it more clear to ppl like me what to do to get it running. > When we figure out your problem, it will get added to the docs. > Zope seems just too good to just let go!! It is that good. > > Hope to get it running soon > > Regards Sture Lygren > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Bern.McCarty@bentley.com Mon Mar 1 19:15:17 1999 From: Bern.McCarty@bentley.com (Bern McCarty) Date: Mon, 1 Mar 1999 14:15:17 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibility? Message-ID: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect. In our case it is a given that a specialized JVM will be embedded in all of our products and more and more of our own source will be written in Java, so code which can integrate with Java easily is all the more interesting to us. We already have a product which uses traditional Python behind a web server to provide an entirely through-the-web user interface for product configuration/administration. My aim has been to replace the traditional Python with JPython since we'll have lot's of Java stuff we'll want to be using on the server going forward anyway. It looks like Zope would enable us to do what we are already doing more easily (and therefore better). So here's hoping we'll one day see Z-over-P-over-J. Yeah. I know it would have to be slower. Zope looks cool. Bern McCarty From michel@digicool.com Mon Mar 1 19:46:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:46:52 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF6401907BAB6@GANDALF> > -----Original Message----- > From: Bern McCarty [mailto:Bern.McCarty@bentley.com] > Sent: Monday, March 01, 1999 2:15 PM > To: zope@zope.org > Subject: [Zope] Is a JPython implemention within the realm of > possibility? > > > > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPytho > So > here's hoping we'll one day see Z-over-P-over-J. > I am not the expert about this, but: Zope is written entirely in Python, except for a few 'kernel' like components written in C. If you translate these components into Java, you might just have something there. I'm not a Java guy so I have no real idea. > Yeah. I know it would have to be slower. From what Ken was telling me JPython is actually quite well designed and speedy, even for a Java program. :) If you've commited yourself to Java then I assume you've allready resigned yourself to the performance penalty and are considering it in your engineering goals. Performance may not be your primary goal in the first place. > > Zope looks cool. Oh it is. > > Bern McCarty > -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Mon Mar 1 19:47:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 14:47:28 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF640190D9E20@GANDALF> Bern wrote: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPython) > in addition to operation under traditional Python. I know it > would probably > be a large undertaking and that there may well be better > places to spend > precious energy, but I thought I'd register my interest in > the prospect. This was one of the things that I hoped to see by going Open Source. So far there have been ports to operating systems that we just wouldn't have supported, which is a great to see. I'm intrigued by someone that really knows Java picking up a JZope effort. As for Digital Creations, I doubt you'll see us focus on it unless one of our consulting customers requires it. Same old story -- never enought time :^( --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From pj@sam.engr.sgi.com Mon Mar 1 19:40:14 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Mon, 1 Mar 1999 11:40:14 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903011940.LAA18485@sam.engr.sgi.com> I'm just beginning with Zope, and just beginning with a project to develop some new software product management (bug tracking and such) tools for use within Silicon Graphics (SGI). Zope appears to be an excellent fit for many of our needs. I will need to connect with an existing large Sybase database (the existing bug data). I can freely choose to use either Linux or Irix for the server side operating system. From which server O.S. would it be easiest to get Zope connected to Sybase? Something I read on www.zope.org led me to suspect that I should use Irix, so that I can use our Sybase licensed library, and that Linux wouldn't work, because of a lack of the needed library. Is that so? Any other obvious factors that I should consider in this choice? ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From raver@box.dust.za.net Mon Mar 1 19:48:46 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:48:46 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAAF@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 11:17:31AM -0500 References: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> Message-ID: <19990301204846.B1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:17:31AM -0500, Michel Pelletier wrote: > > > > -----Original Message----- > > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > > Sent: Monday, March 01, 1999 7:23 AM > > To: zope@zope.org > > Subject: [Zope] Zope and Apache - again > > Now - here is my current config: > > > > Linux 2.0.35 > > Python 1.5.1 > > Zope 1.10.2 > > Apache 1.3.4 > > > > Something there that doesn't play well together? > > > > The only difference between your setup and the setup used to compile Zap > is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 > kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there > might be an incompatability with Zap on 5.1. Has anyone on the list > gotten Zap working on this platform? Also, please send us the details > of the error you get with Zap. When you say it's broken, how does it > break? Does the starzap script fail to run? Does it say 'Apache did > NOT start sucessfuly' and then spit up the last 10 lines of your error > log? If so, what are those lines? Hmmm - I'm a slackware guy. And no glibc guy either.... Still the zap bin starts from the prompt and when I changed some settings in zapctl then ./startzap also worked. That is the zap process shows on ps, but I'm not able to connect to the server with any browsers. Now - whats wrong? > > -Michel > > > > > Sture Lygren > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > From da@ski.org Mon Mar 1 19:47:39 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 11:47:39 -0800 (Pacific Standard Time) Subject: [Zope] Is a JPython implemention within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program (under JPython) > in addition to operation under traditional Python. I know it would probably > be a large undertaking and that there may well be better places to spend > precious energy, but I thought I'd register my interest in the prospect. My guess is that the hardest part of such an undertaking would be to convert Jim's extensions to Java/JPython. Specifically, ExtensionClasses and Acquisition are probably the hardest to do (I believe many of the others are just fast implementations of Python versions). Jim Hugunin mentioned that he had thought a bit about ExtensionClasses, but I'm not sure how far that went. The efficient POS and other extensions are also clearly a significant undertaking, but maybe not as hard to translate. However, I don't see it happening until someone has a commercial motivation to invest the large required number of hours into it. --david From amos@aracnet.com Mon Mar 1 19:53:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 11:53:19 -0800 Subject: [Zope] Is a JPython implementation within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> At 02:15 PM 3/1/99 -0500, Bern McCarty wrote: > >I am wondering if it is within the realm of possibility that the Zope >project might eventually support operation as a Java program (under JPython) >in addition to operation under traditional Python. I know it would probably >be a large undertaking and that there may well be better places to spend >precious energy, but I thought I'd register my interest in the prospect. Zope relies on a lot of code in C as well as Python, so I doubt you'll see Zope on JPython anytime soon. However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'. -Amos From pje@telecommunity.com Mon Mar 1 20:15:31 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:15:31 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <199903011940.LAA18485@sam.engr.sgi.com> Message-ID: <3.0.5.32.19990301151531.01230100@telecommunity.com> At 11:40 AM 3/1/99 -0800, Paul Jackson wrote: >I'm just beginning with Zope, and just beginning with a >project to develop some new software product management >(bug tracking and such) tools for use within Silicon >Graphics (SGI). > >Zope appears to be an excellent fit for many of our >needs. > >I will need to connect with an existing large Sybase >database (the existing bug data). > >I can freely choose to use either Linux or Irix for >the server side operating system. > >>From which server O.S. would it be easiest to get Zope >connected to Sybase? Something I read on www.zope.org >led me to suspect that I should use Irix, so that I >can use our Sybase licensed library, and that Linux >wouldn't work, because of a lack of the needed library. > >Is that so? Any other obvious factors that I should >consider in this choice? FWIW, my shop is running Sybase OpenClient 11.1.1 on IRIX 6.2, 6.4, and 6.5 on a Challenge/S, O2000, and Challenge/L, respectively. I successfully installed ZSybaseDA into Zope on the Challenge/S; haven't tried on any others. Also FWIW, I have experienced nothing but problems getting PCGI to work on any of the IRIX platforms; your mileage may vary. (Coincidentally, the company I work for owns a couple hundred SGI boxes and we keep our inventory of them in a ZPublisher app... it's on mySQL, though, not Sybase. OTOH, our request tracking system is a ZPublisher-on-Sybase app.) From jeffbauer@bigfoot.com Mon Mar 1 20:29:12 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 14:29:12 -0600 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <36DAF898.14B40EF0@rubic.com> > Also FWIW, I have experienced nothing but problems > getting PCGI to work on any of the IRIX platforms; > your mileage may vary. Does this include the latest version of PCGI? FWIW, I'm willing to work with anyone getting PCGI to work on their platform of choice. Best regards, Jeff Bauer Rubicon, Inc. From Jose.Lacal@icn.siemens.com Mon Mar 1 20:39:00 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Mon, 1 Mar 1999 15:39:00 -0500 Subject: [Zope] MailHost problems. Message-ID: <85256727.00714502.00@li01.lm.ssc.siemens.com> Folks: Error message when trying to send e-mail from a Zope-generated web-form. I did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still get the following error message:

    Copyright 1999 Siemens I & CN. Maintained by Jose C. Lacal.

    Platform: Red Hat 5.1 Zope 1.10.2 Both sendmail and DNS are properly installed since I was able to send e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" I'm no Zope expert, so any suggestions appreciated. Regards. From pje@telecommunity.com Mon Mar 1 20:37:28 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:37:28 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <36DAF898.14B40EF0@rubic.com> References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <3.0.5.32.19990301153728.01372a00@telecommunity.com> At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > >Does this include the latest version of PCGI? > >FWIW, I'm willing to work with anyone getting PCGI >to work on their platform of choice. The last version I tried was the one distributed with Zope 1.9.0 - it exhibited the same fail-on-process startup behavior as previous versions, so I went to ZServer as a stopgap until I could complete a FastCGI replacement. I'm now using FastCGI, so it's no longer an issue. From drew_csillag@geocities.com Mon Mar 1 20:43:35 1999 From: drew_csillag@geocities.com (Andrew Csillag) Date: Mon, 01 Mar 1999 15:43:35 -0500 Subject: [Zope] Is a JPython implementation within the realm ofpossibility? References: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> Message-ID: <36DAFBF7.DE205CAB@starmedia.net> Amos Latteier wrote: > > However, ZPublisher (Zope's ORB) could be made to work with JPython without > too much trouble. In fact a while ago I tried this and succeeded, though it > was quite slow. The main issue is that ZPublisher uses 'regex' while > JPython uses 're'. Actually, some time ago I sent Jim some code that was a regex mockup implemented using re. It didn't do all of regex, but enough to make DocumentTemplate work. -- "There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence." - Jeremy S. Anderson From bkc@murkworks.com Mon Mar 1 19:51:08 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 15:51:08 -0400 Subject: [Zope] MailHost problems. In-Reply-To: <85256727.00714502.00@li01.lm.ssc.siemens.com> Message-ID: <199903012045.PAA26056@anvil.murkworks.com> On 1 Mar 99, at 15:39, Jose.Lacal@icn.siemens.com wrote: > Error message when trying to send e-mail from a Zope-generated web-form. I > did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still > get the following error message: > > > >
    >

    Copyright 1999 Siemens I & CN. Maintained by > Jose C. Lacal. HREF="http://www.linux.org"> >

    > > > > > Platform: > > Red Hat 5.1 > Zope 1.10.2 > > Both sendmail and DNS are properly installed since I was able to send > e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" > > > I'm no Zope expert, so any suggestions appreciated. > > Regards. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From raver@box.dust.za.net Mon Mar 1 21:22:52 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 22:22:52 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAB4@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 02:25:45PM -0500 References: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> Message-ID: <19990301222252.A9776@RaVER.duck.org> I give up! From rocon@pivot.net Mon Mar 1 22:04:51 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 1 Mar 1999 17:04:51 -0500 Subject: [Zope] The Zope Starship (for Python PSA) Message-ID: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> I Followed the URL backward from: Michel Pelletier's "You've Not Mail !!!" Page, http://starship.python.net:9673/crew/furtrapper/NotMail Hey, this is neat, starship.python.net must be running ZOPE because the port is "9673" !!! therefore going to: http://starship.python.net:9673 "Welcome to Zope at the Starship Python!" So, to join the crew of the Starship and get your own ZOPE pages on the internet requires PSA membership. One can join now and pay for a half year $50/yr or $25 for half. Membership wouldn't be effective until April 1st (a Foolish day!) So, Zope is cool and so is Python. I am considering joining PSA on the strength of Zope and Elegance of Python but I'm concerned that Python doesn't seem to have much "MindShare" like Java or Perl. Ok so our local Borders has only one book on Python: "Programming Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. The shelves are full of books on Java and there are quite a few Perl books. What is the BIG PICTURE here? Is Python so good that lot of programming tomes are unnecessary? Why is there so little press on Python and so much for the less Elegant and slower Java? Is Python a "secret weapon"? If so, the secret should get out to the world so Python gets more mind share and doesn't develop cobwebs. ***So, where are the rabid Python fans?*** Yes, a bunch of them are on the ZOPE list. Great answers to these questions will only help ZOPE! -bobo connor From quinn@challenge.calarts.edu Mon Mar 1 22:17:08 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Mon, 01 Mar 1999 14:17:08 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903012217.OAA20295@challenge.calarts.edu> philip wrote: > At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > > > >Does this include the latest version of PCGI? > > > >FWIW, I'm willing to work with anyone getting PCGI > >to work on their platform of choice. > > The last version I tried was the one distributed with Zope 1.9.0 - it > exhibited the same fail-on-process startup behavior as previous versions, > so I went to ZServer as a stopgap until I could complete a FastCGI > replacement. I'm now using FastCGI, so it's no longer an issue. I'm using pcgi from 1.9.0 (README says it's 2.0a4) under Irix 5.3 (yes, I know, I keep bugging the sysadmin to upgrade :) ). Occaisionally, pcgi fails to start up, logging "Interrupted system call (116) unable to connect, fd=4". I also had the same problem when using FastCGI w/ threads: the application would hang and I'd get an "interrupted system call" in the log after a while. I have never experienced either of these problems under linux, so might this be an Irix problem? I remember that Philip also suspected an Irix "sockets-and-threads-don't-mix" problem, which appears to be what I have experienced as well. Philip, is theaded FastCGI still broken on Irix? From jeffbauer@bigfoot.com Mon Mar 1 22:34:44 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 16:34:44 -0600 Subject: [Zope] The Zope Starship (for Python PSA) References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <36DB1604.AB0002A2@rubic.com> Robert OConnor wrote: > What is the BIG PICTURE here? Is Python so good > that lot of programming tomes are unnecessary? As a language qua language, Python is so good in design and implementation that it has few dark mysteries that require a lot of documentation to explain. The existing Python books are quite good, with at least 4 more in the works. More Python books are necessary to explain things like Win32/COM programming, for instance, than the language itself. Perl has lots of books, because for the past 2 years, almost anything that offered to make Perl programming easy was given shelf space. Java has lots of books because almost everything in Java has to be written in Java, and the Java libraries have been a moving target for so long. More important than the number of books (how many Perl books do you really need, after the Camel?) is the level of support/platforms in the Python community, which is quite high. It will probably never attain the proportion of mindshare that Perl or Java has, but is has critical mass, and a lot of compentent people who contribute code. Too many companies now rely upon Python as their core development language for it to go away anytime soon. More importantly: You'll spend more time learning about the eccentricities of whatever your environment demands, be it Unix, Windows, web servers, CE devices, COM, Tk, etc. than learning the language itself. This is Python's great (and under-reported) strength. Best regards, Jeff Bauer Rubicon, Inc. From tjg@avalongroup.net Mon Mar 1 22:28:08 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Mon, 01 Mar 1999 14:28:08 -0800 Subject: [Zope] ZMySQLDA installation Message-ID: <36DB1478.E2D7915E@avalongroup.net> Hi all, This is probably more of a newbie Linux question than a newbie Zope question, but I'm going to ask it here anyway: I would like to connect Zope to a database, so I have setup both PostgreSQL and MySQL. My reading tells me that MySQL is probably the better choice as a web backend (Any comments from those of you more knowledgable than I would be appreciated!) So I downloaded the MySQL source, compiled, installed and tested it. It looks like I did it right. I then downloaded the ZMySQLDA from the Zope site. I have followed the directions--I think, but get the following error when trying to do the initial make: [tjg@puddleglum src]$ make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho n/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python /Products/ZMySQLDA/src' make: *** [boot] Error 2 Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From da@ski.org Mon Mar 1 22:41:17 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 14:41:17 -0800 (Pacific Standard Time) Subject: [Zope] The Zope Starship (for Python PSA) In-Reply-To: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: > Ok so our local Borders has only one book on Python: "Programming > Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. > The shelves are full of books on Java and there are quite a few Perl > books. FYI: I know of at least 5 other Python-related book projects in various stages of development. One of those should be hitting those same shelves in April sometime (http://www.oreilly.com/catalog/lpython/). It even mentions Zope in a couple of places. [Disclosure: I'm a coauthor of said book] > What is the BIG PICTURE here? Is Python so good that lot of > programming tomes are unnecessary? Python is certainly easier to learn than some other languages. > Why is there so little press on Python and so much for the less > Elegant and slower Java? Mostly, because Java is backed by a multibillion dollar company with lots of $$'s for public relations. --david ObZope: I'm having a hard time with the 'access' file -- it looks as if my Zope installation (w/ ZServer) only accesses the first entry in the file. What am I missing? From garys@magna.com.au Mon Mar 1 22:51:00 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 09:51:00 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> Message-ID: <36DB19D4.77F33EA7@magna.com.au> Amos Latteier wrote: > At 05:04 PM 3/1/99 +1100, you wrote: > >Amos Latteier wrote: > > > >> > >> Correct. This is what's supposed to be there. Does the FAQ Tool not work > >> when you install it? Are you using Zope 1.10.2? > >> > >> -Amos > > > >My Zope Zen seem to have gone negative (started at zero - and just got worse > >:( ) but HOW do you install it. > > I hate to tell you to RTFM, but did you try the "Installation Instructions" > on the page where you downloaded it? > A perfectly reasonable suggestion - and one that I have made many times myself! I did, in fact, RTFM - but the FM makes absolutely zero mention of anything "leverish", to adopt a seemingly Zopish mode of Englishish. ;-) I followed your link given in another message, and realised that what I had been reading about in terms of Product Distributions was (I think) what you refer to as the "Lever". IAC, I followed the instructions given, and when it didn't work I went back, and worked my way through the Product Tutorial exercise - excellent! The POLL product works fine! But the levered faq product .DAT file apparently failed to unpickle - as described by others in this thread. My product management screen shows the FAQ product as installed, but the actual product directory still has just the three files from the tarball. In my case, however, it is on a Linux ZAP system - so the problem is not confined to Win32 as others have conjectured. Hope this helps, and apologies for the lack of specifics in my previous post. Can we please have the term "lever" clarified and documented a little better. -my-FAQ-product-having-FA-Q's-in-it-ly yours gary From mvoltchenko@platinum.com Mon Mar 1 23:04:28 1999 From: mvoltchenko@platinum.com (mvoltchenko@platinum.com) Date: Mon, 1 Mar 1999 17:04:28 -0600 Subject: [Zope] Z Oracle Database Connection doesn't show up. Message-ID: <86256727.007E80F3.00@platinum.com> I have compiled and installed Python 1.5.1, Zope 1.10.2 - all works fine. I downloded and installed ZOracle DA, following all the steps in the README file. However, I can't get Z Oracle Database Connection to show up in the list of available item types in Zope mangement interface. Any suggestions would be greatly appreciated. Marina Voltchenko. From jeffbauer@bigfoot.com Mon Mar 1 23:08:33 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 17:08:33 -0600 Subject: [Zope] ZMySQLDA installation References: <36DB1478.E2D7915E@avalongroup.net> Message-ID: <36DB1DF1.C2EB63BD@rubic.com> Timothy Grant wrote: > I would like to connect Zope to a database, so I have > setup both PostgreSQL and MySQL. My reading tells me that > MySQL is probably the better choice as a web backend (Any > comments from those of you more knowledgable than I would > be appreciated!) My experience was MySQL had better support for large streams of text data and blobs than PostgreSQL. However, MySQL also lacks support for transactions. This probably contributes to its speed, which in turn makes it popular for web apps. Best regards, Jeff Bauer Rubicon, Inc. From petrilli@amber.org Mon Mar 1 23:09:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 18:09:07 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: ; from David Ascher on Mon, Mar 01, 1999 at 02:41:17PM -0800 References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <19990301180907.03092@amber.org> On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > Zope installation (w/ ZServer) only accesses the first entry in the file. > What am I missing? > THis is completely correct. The access file is ONLY for the global-overall-uberuser :-) Everything else should be defined in the database itself :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From garys@magna.com.au Mon Mar 1 23:53:07 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 10:53:07 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <36DB2863.DF5662BF@magna.com.au> Amos Latteier wrote: > > > But the levered faq product .DAT file apparently failed to > >unpickle - as described by others in this thread. > > Can you tell me why you believe this to be the case? > I assumed that the .DAT file contained all the component DTML and PY scripts etc and that these would be expanded into the Product's home directory somehow. Is this not the case? Is the .DAT distribution a way of distributing the objects without the source ? (more Cathedral than Bazaar) > > >My product management screen > >shows the FAQ product as installed, but the actual product directory still > has > >just the three files from the tarball. > > This is normal. That's what's supposed to be there. > > Does the FAQ item show up in the product add list? No - but it does show up in the installed products control panel. > If not, then you have a > problem. If you have this problem, then please send to me, not the zope > list, information about your platform, and the version of Zope you have > installed. As stated before, Zope 1.10.2 running on ZAP-Linux. many tias, gary From Anthony Baxter Mon Mar 1 23:56:39 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 10:56:39 +1100 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: Your message of "Mon, 01 Mar 1999 18:09:07 CDT." <19990301180907.03092@amber.org> Message-ID: <199903012356.KAA01601@mbuna.arbhome.com.au> > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > > Zope installation (w/ ZServer) only accesses the first entry in the file. > > What am I missing? > > > > THis is completely correct. The access file is ONLY for the > global-overall-uberuser :-) Everything else should be defined in the > database itself :-) Note that you could, pretty easily, write a new UserFolder type object which worked off an access file. Could be useful for people who are generating the access file from an /etc/passwd file, or whatever. Anthony From michel@digicool.com Tue Mar 2 00:14:54 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 19:14:54 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) Message-ID: <613145F79272D211914B0020AFF6401907BAB8@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Monday, March 01, 1999 6:57 PM > To: Christopher G. Petrilli > Cc: zope@zope.org > Subject: Re: [Zope] Access File (was: The Zope Starship (for Python > PSA)) > > > > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > > > ObZope: I'm having a hard time with the 'access' file -- > it looks as if my > > > Zope installation (w/ ZServer) only accesses the first > entry in the file. > > > What am I missing? > > > > > > > THis is completely correct. The access file is ONLY for the > > global-overall-uberuser :-) Everything else should be > defined in the > > database itself :-) > > Note that you could, pretty easily, write a new UserFolder type object > which worked off an access file. Could be useful for people > who are generating > the access file from an /etc/passwd file, or whatever. > You could also skip the generation step and write a UserFolder which works off of /etc/passwd. In fact, NotMail could use this as a helper too. Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From DAve@mail.netraven.com Tue Mar 2 04:36:23 1999 From: DAve@mail.netraven.com (Dave G) Date: Mon, 1 Mar 1999 20:36:23 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: Has anyone else experienced a problem getting Explorer to connect with Zserver? I have no problem with any version of Navigator but MSIE 3.01 and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an "error with Explorer's internet extensions has failed". Very baffling, I can connect just fine via telnet using the following requests, ZServer (medusa) returns a proper html page. Requests sent: GET / HTTP/1.0 Connection: Keep-Alive Host: www.fishwrapper.com Accept: image/gif, image/jpeg, */* GET / HTTP/1.0 accept: image/gif, image/jpeg, */* GET / HTTP/1.1 accept: image/gif, image/jpeg, */* response recieved: Status: 200 OK Content-Length: 1307 Content-Type: text/html blah, blah, blah..... (note the difference in the sent host and recieved host, the host arg in the start script sets the host for the ftp server, not the webserver...) I can see nothing in the responses that would cause MSIE to fail, note this has been tested from four different PC's on three different ip's, including a local connection from my Lan. Strangly enough I did a stream capture and hit my server and the startship server (also running ZServer) and the two responses differ even though the requests were from the same browser on the same connection. request for http://www.fishwrapper.com/ followed by my servers response : Send 357 bytes on stream 4. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Pragma: no-cache <00000067< Host: www.fishwrapper.com <00000082< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000BF< image/png, */* <000000CF< Accept-Encoding: gzip <000000E6< Accept-Language: en <000000FB< Accept-Charset: iso-8859-1,*,utf-8 <0000011F< Cookie: sql_pref__rows="10"; sql_pref__cols="65"; dtpref_cols="9 <0000015F< 5" <00000163< Receive 1364 bytes on stream 4. >00000000> Status: 200 OK >0000000F> Content-Length: 1303 >00000024> Content-Type: text/html >0000003C> >0000003D> blah, blah, blah..... request for http://starship.python.net/ followed by starship's response : Send 276 bytes on stream 1. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Host: starship.python.net:9673 <00000075< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000B2< image/png, */* <000000C2< Accept-Encoding: gzip <000000D9< Accept-Language: en <000000EE< Accept-Charset: iso-8859-1,*,utf-8 <00000112< Receive 1254 bytes on stream 1. >00000000> HTTP/1.0 200 OK >00000011> Server: Medusa/1.4 >00000025> Content-Length: 1112 >0000003B> Content-Type: text/html >00000054> Connection: close >00000067> Date: Tue, 02 Mar 1999 02:24:00 GMT >0000008C> >0000008E> >00000095> blah, blah, blah..... Do starships ZServer and mine differ? My http_server.py script carries RC_ID of: "v 1.4 1999/01/18 22:44:49 amos" I downloaded a fresh copy of ZServer when I grabbed the newest copy of Zope. Any clues? I've been documenting and testing everything I could think of, I'd report a bug but it seems MSIE works with the Starship server, so I think it's not a bug so much as something wrong on my end? Slackware V 3.6 Zope v 1.10.2 ZServer 1.0a2 DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From tseaver@palladion.com Tue Mar 2 06:05:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 00:05:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <36DB2602.1DB0C1E8@palladion.com> <19990301202550.44519@amber.org> <36DB5BB7.A6DA0185@palladion.com> <19990301223719.63315@amber.org> <36DB5E48.6FE6AED4@lyra.org> <19990301225006.05483@amber.org> Message-ID: <36DB7F96.41DA505B@palladion.com> Christopher G. Petrilli wrote: > > On Mon, Mar 01, 1999 at 07:43:04PM -0800, Greg Stein wrote: > > Christopher G. Petrilli wrote: > > > On Mon, Mar 01, 1999 at 09:32:07PM -0600, Tres Seaver wrote: > > > > As one who comes down firmly on the "weenie" side of the great "content manager" > > > > vs. "web weenie" divide, I am naturally inclined to code up Zopoids as > > > > ExternalMethods. The docs say to put them under the $ZOPEROOT/lib/python, but > > > > that seems icky for a "shared" Zope like the one on starship. > > > Well, right now that's the only way it's supported... it's not really > > > inteded for an ISP situation with hundereds of "untrusted" users, which > > > is kinda how we're using it right now. FOr now, unfortunately, I'm > > > makign the executive decision that ExternalMethods are verbotten until > > > we can figure out a way to isolate them from one-anohter. If someone > > > wants to develop a derived ExternalMethod that uses rexec or some such > > > to control it's access to the database, that'd be great. > > > > > > > Whither should such gems be placed? > > > > > > Well, unfortunatly all of them would run wit the permissions of "root" > > > as far as I understand it... someone else correct me, but this is how it > > > was explained to me... basically they'd be able to do anything. > > > > Can't you run Zope as another user? That could eliminate a number of > > issues. > > I'm sorry, I wasn't clear ;-) What I meant was that the method has > unlimited abilities to peruse the object database... it doesn't have any > abilities outside it that aren't avilable to the zope process itself > (which in this case runs as uid 'zope'). > > The concern is taht it would be able to circumvent other user's security > since it wouldn't be enforced against the ExternalMethod. I understand the security problems inherent in ExternalMethods; unfortunately, without them, Zope is merely an "also-ran" in the web applicaton race, from my perspective. DTML in isolation is not an "ASP-killer." I'm CC'ing the Zope list, in hopes that someone there can either allay or slay our fears. It seems to me that the security problem is that ExternalMethods can get access to "sibling objects" of the object on which they are invoked, right? I mean, if we could make the siblings inaccessible, and acquired properties read-only, then we should be ok, no? Ugh, I don't grok acquisition well enough to tackle that myself, I fear. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Tue Mar 2 06:47:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 17:47:36 +1100 Subject: [Zope] terminating DTML parsing... Message-ID: <199903020647.RAA07473@mbuna.arbhome.com.au> from inside DTML, is there a way to say "don't process any further DTML, just return this to the user"? What I'm looking at is a small DTML snippet that gets included at the top of a number of pages, and looks for a particular variable to be set. If it's not set, it should just display a small "please enter a widget name" form which submits back to the same page, and not display the rest of the page at all. will just doing a RESPONSE.redirect() automatically do this? Anthony From piers@cs.su.oz.au Tue Mar 2 06:54:28 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Tue, 02 Mar 1999 17:54:28 +1100 Subject: [Zope] Help with editing Product dtml files Message-ID: <129.78.8.1.126.8280.920360936.257.8891> I'm making a Zope "Product" for managing and creating student surveys (which I hope to contribute via zope.org) but I'm having trouble with a couple of techniques: 1. How does one enable a dtml file that is instantiated as in my_dtml = HTMLFile('my', globals()) available for editing in the products' management screen? There's probably more to this - as at the moment the management screen goes straight to the "index_html" form as with the "Poll" Product. 2. What's the approved way to catch database errors in methods? I'm creating tables on the fly, and need to check if the table exists before trying to create it. (I'd use a "tables" method if all the database interfaces supported it. I'd also use a try/except but the database objects have different names for their exceptions.) From jarvis.sd082@ex.tel.co.jp Tue Mar 2 09:40:22 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 18:40:22 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Hi All! First off, I'd like to thank Digital Creations for an excellent (and really fun) product. I'm building a prototype web site interface for a database where I work using Zope 1.10.2 and the ZOracleDA product and have a some questions. 1. When trying to do a join (a lazy query, I know) like: select a.*, b.* from tablea a, tableb b where a.b_id=a.id Both tables have an ID column so Zope raises a 'ValueError' exception with the message 'Duplicate column name, ID'. I wonder if instead of raising an exception something like the following could be done? A diff of Shared/DC/ZRDB/Results.py: 120,131c120 < #raise ValueError, 'Duplicate column name, %s' % name < < #instead of error, append an extension to < #create a unique name < tempname=name < nameext=1 < while schema.has_key(name): < name=tempname+'_'+str(nameext) < nameext=nameext+1 < < #update with newly created name < item['name']=name --- > raise ValueError, 'Duplicate column name, %s' % name I tested this some and it seems to work. Are there any problems that could be caused by doing this? 2. I'll post the other questions separately because they are unrelated. TIA!, John Jarvis Tokyo Electron, FE Ltd. From mj@antracietm.nl Tue Mar 2 09:49:28 1999 From: mj@antracietm.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 10:49:28 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <36DB2863.DF5662BF@magna.com.au> References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <4.1.19990302103050.00a84500@lisp.atmm.nl> At 00:53 02/03/99 , Gary Stephenson wrote: >I assumed that the .DAT file contained all the component DTML and PY scripts >etc >and that these would be expanded into the Product's home directory somehow. Is >this not the case? Is the .DAT distribution a way of distributing the objects >without the source ? (more Cathedral than Bazaar) The .DAT file only contains information to be added to the Object Database. It won't be expanded into files onto your harddisk. Zope stores all instances of classes in it's object databse, via a process called 'pickling'. This, in simple terms, means that all data stored in an object is turned into one stream of data that can be stored in a file. As a 'Levered' product contains nothing but instances of classes, not the classes themselves, it suffices to distribute only the compressed pickled contents of the product. The source for the used classes you allready have (at least with the FAQ you do, it uses only DTML Methods and Folders), and the DTML scripts can be viewed in Zope, so you do get all the source. The objects that make up the product should normally be automaticly decompressed and imported into Zope, but the decrompressing seems to be failing. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jarvis.sd082@ex.tel.co.jp Tue Mar 2 10:09:28 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 19:09:28 +0900 Subject: [Zope] DTML #var null= problem/patch Message-ID: <8174B1EE3D2CD21180960000F8056723CFB32E@telisnt1020.is.tel.co.jp> Thank you for pointing out how to fix this. At first, the patch didn't work with ZSQLMethods until I made a small change: 271a272,274 > #richard jone's null patch --- slightly modified by jj > elif have_arg('null') and not val: > val = args['null'] val wasn't set to None and so the null attribute never got used. Since None is false, the above should be OK. (It seems to work for me, anyway :^) John Jarvis Tokyo Electron, FE Ltd. > -----Original Message----- > From: richard.jones@fulcrum.com.au [SMTP:richard.jones@fulcrum.com.au] > Sent: Monday, March 01, 1999 8:31 AM > To: Philip Aylesworth > Cc: zope@zope.org > Subject: Re: [Zope] DTML #var null= problem/patch > > > [Philip Aylesworth] > > Does your patch mean that I don't need a fmt= atribute? > > Yes. > > > > Are you using 1.9 or 1.10? > > Does 1.10 do the same thing? > > My patch was against 1.10 > > > > Should you send this to the collector? From the documentation I expected > it > > to work without the fmt= atribute, therefore, it could be considered a > bug, > > right? > > Yep, I've submitted a report to the Collector. > > > Richard > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From akhavr@compchem.kiev.ua Tue Mar 2 11:05:39 1999 From: akhavr@compchem.kiev.ua (Andrey V Khavryutchenko) Date: 02 Mar 1999 13:05:39 +0200 Subject: [Zope] Bobo distribution Message-ID: Hi! I'm looking for Bobo (not Zope) distribution tarball. Looks like it is taken from the web away. I need to create very simple application. Zope is an overkill for it. Anyone? -- SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr Shick's Law: There is no problem a good miracle can't solve. From sfranke@cdc-group.com Tue Mar 2 11:27:41 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 12:27:41 +0100 Subject: [Zope] Bobo distribution Message-ID: <01E40461E003D21195CC0080296495D80B12B1@gates.cdc-group.com> Bobo is now called "ZPublisher". You dan download it separately on http://www.zope.org/Download/ZPublisher Stefan Andrey V Khavryutchenko wote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it > is > taken from the web away. > > I need to create very simple application. Zope is an overkill for it. > > Anyone? > > -- > SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr > > Shick's Law: > There is no problem a good miracle can't solve. > From ajung@sz-sb.de Tue Mar 2 11:58:47 1999 From: ajung@sz-sb.de (Andreas Jung) Date: Tue, 2 Mar 1999 12:58:47 +0100 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <19990302125847.A22379@sz-sb.de> Reply-To: Hello, we want to use the DCOracle module for Python inside a commercial production process in our house. We don't sell a product with DCOracle nor we redistribute DCOracle in any form. Is the use of DCOracle for this purposes free ? Thanks Andreas From Paul@digicool.com Tue Mar 2 12:17:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:17:14 -0500 Subject: [Zope] terminating DTML parsing... Message-ID: <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Anthony wrote: > from inside DTML, is there a way to say "don't process any > further DTML, > just return this to the user"? Umm, ?? --Paul From Paul@digicool.com Tue Mar 2 12:19:01 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:19:01 -0500 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <613145F79272D211914B0020AFF640190D9E2C@GANDALF> Andreas writes: > we want to use the DCOracle module for Python inside a commercial > production > process in our house. We don't sell a product with DCOracle > nor we redistribute DCOracle in any form. Is the use of DCOracle > for this purposes free ? Yes, DCOracle is free and Open Source. --Paul From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From JPGlutting@cspt.es Tue Mar 2 13:23:41 1999 From: JPGlutting@cspt.es (JP Glutting) Date: Tue, 2 Mar 1999 13:23:41 MET-1MEST Subject: [Zope] AUTHENTICATED_USER Message-ID: <153C1D93564@sahara.cspt.es> Does anyone have any more information on AUTHENTICATED_USER? We saw a while back that it has properties (AUTHENTICATED_USER.has_role(['Manager', 'Editor'])). I would like to be able to get the user name, and use that to index simple files for users. Is there something like AUTHENTICATED_USER['UserName']?? This is essentially the information that is returned if you try . However, if you try something like , it does not work. The only way I have been able to use this information so far is to put in a form, and pass it in a REQUEST to another page. But I want to be able to get this information directly. I have even tried REQUEST.set('myUser', AUTHENTICATED_USER) inthe header, but this has the same problem (unsurprisingly) as AUTHENTICATED_USER itself. Any hints? Thanks, JP From julian@zereau.net Tue Mar 2 13:06:21 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 13:06:21 -0000 (GMT) Subject: [Zope] calling a function with arguments? Message-ID: I want to call a function I have made, with arguments. 1) is there any way to call it direct, complete with module name? It would mean getting Zope to import that module. 2) I know I can put it in an external metod and use but it needs arguments, so I'll need to set and re-set the same DTML-namespace variable throughout the document, in which case, how do I alter/set DTML varibles from within DTML? --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 13:58:23 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 08:58:23 -0500 Subject: [Zope] AUTHENTICATED_USER Message-ID: <613145F79272D211914B0020AFF64019FD7A@GANDALF> > Does anyone have any more information on AUTHENTICATED_USER? > We saw a while > back that it has properties (AUTHENTICATED_USER.has_role(['Manager', > 'Editor'])). I would like to be able to get the user name, > and use that to > index simple files for users. Is there something like > AUTHENTICATED_USER['UserName']?? This is essentially the > information that is > returned if you try . However, > if you try > something like , it does not > work. AUTHENTICATED_USER itself is an object -- the reason gives you the user name is that it effectively does an str() on the user object. To work with the user name directly, you can use the getUserName() method of the user object: Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 13:49:14 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 08:49:14 -0500 (EST) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On Tue, 2 Mar 1999 julian@zereau.net wrote: > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same DTML-namespace > variable throughout the document, in which case, how do I alter/set DTML > varibles from within DTML? > I am not sure I understand your problem. Default arguments can be given in the definition of the function. If you need to pass a variable in an external method you can just do Additionally the self argument in the external method definition is replaced by the object (or containing folder) that calls the method so you have access to the namespace of the object through self. Pavlos From sfranke@cdc-group.com Tue Mar 2 14:05:25 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 15:05:25 +0100 Subject: [Zope] calling a function with arguments? Message-ID: <01E40461E003D21195CC0080296495D80B12B2@gates.cdc-group.com> julian@zereau.net wrote: > I want to call a function I have made, with arguments. > > 1) is there any way to call it direct, complete with module name? It > would mean > getting Zope to import that module. > Where is your function located? Is it an external method? In this case imports in the method's file work fine, but only inside Zope's search path (practically, the installation path and lib subdirectory). A good place to put your modules and packages is the lib//shared/ dir. > > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same > DTML-namespace > variable throughout the document, in which case, how do I alter/set > DTML > varibles from within DTML? > try (the quotation marks are important) Stefan From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From julian@zereau.net Tue Mar 2 14:12:48 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 14:12:48 -0000 (GMT) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On 02-Mar-99 Pavlos Christoforou wrote: > Thanks, this is exactly what I was looking for. --- Julian Morrison Programmer (Zereau Ltd) From mj@antraciet.nl Tue Mar 2 14:34:37 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 15:34:37 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <153C1D93564@sahara.cspt.es> Message-ID: <4.1.19990302144353.00ba8560@lisp.atmm.nl> At 14:23 02/03/99 , JP Glutting wrote: >Does anyone have any more information on AUTHENTICATED_USER? We saw a while >back that it has properties (AUTHENTICATED_USER.has_role(['Manager', >'Editor'])). I would like to be able to get the user name, and use that to >index simple files for users. Is there something like >AUTHENTICATED_USER['UserName']?? This is essentially the information that is >returned if you try . However, if you try >something like , it does not >work. > Use More hints linke this can be found in the User.py file in your lib/python/AccessControl directory. The following functions could be usefull: getUserName(self): Return the username of a user getRoles(self): Return the list of roles assigned to a user. getDomains(self): Return the list of domain restrictions for a user allowed(self, parent, roles=None): Check wether the user has access to parent hasRole(self, parent, roles=None): Check wether the user has the specified roles has_role(self, roles): Check wether the user has the specified roles allowed & hasRole are one and the same. When called with parent=None, it just returns wether the user has the named roles. has_role also checks for roles, but doesn't automatically include the Anonymous role. So, hasRole(None, 'Anonymous') always returns true, but has_role('Anonymous') returns false for every user that has been authenticated. Note that AUTHENTICATED_USER is always defined, also for anonymous access. Here is a little example of what you could do with these functions: Display user info You are the user named .

    You have the following roles:

  • You have no roles defined.

    You are allowed to log in from the following domains:

  • You can log in from any domain.

    You have the 'Manager' role.
    You have the 'Anonymous' role. You are therefore an anonymous user.
    You have the 'nonexistent' role.
    The last call to has_role is to show that the user defined in the 'access' file in the root folder of your Zope installation, has ALL roles, including non-existent ones. And even more interesting, the call to getRoles() will get you 'manage', a misspelled version of the 'Manager' role. This is probably the only way to reliably recognize the superuser. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Brian@digicool.com Tue Mar 2 15:08:47 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 10:08:47 -0500 Subject: [Zope] Re: [Crew] External Methods? Message-ID: <613145F79272D211914B0020AFF64019FD7B@GANDALF> > I understand the security problems inherent in > ExternalMethods; unfortunately, > without them, Zope is merely an "also-ran" in the web > applicaton race, from my > perspective. DTML in isolation is not an "ASP-killer." > > I'm CC'ing the Zope list, in hopes that someone there can > either allay or slay > our fears. > > It seems to me that the security problem is that > ExternalMethods can get access > to "sibling objects" of the object on which they are invoked, > right? I mean, if > we could make the siblings inaccessible, and acquired > properties read-only, then > we should be ok, no? Ugh, I don't grok acquisition well > enough to tackle that > myself, I fear. Well, it's actually deeper than that. You are correct in saying that DTML alone is not an ASP-killer. Consider the similarities between Zope and, for example, ASP/COM (though the same holds true for practically any other system as well): ASP lets you use the services provided by (COM) objects, which may be provided by the server or provided independently. I'm sure that MS tries to make the server-provided objects fairly safe, but there is _nothing_ stopping a programmer from writing and installing a COM object with an evil() method that wipes out your C: drive, except the fact that presumably the sysadmin exercises some control over making these independent services available. The same holds true for Zope (and any other app server out there). Like ASP/COM, External Methods give you the ability to provide more powerful services for use by your application. It also gives you exactly the same problems (though I'm sure that evil() method could be developed in a quarter of the time in Python :) Basically, with power comes responsibility, and I can't really imagine any system that could _safely_ allow possibly-untrusted people to write (basically) arbitrary code. It's not even really a matter of what services are or are not available to those people. I'm sure that many, many hours and much brain-power went into the design of Java's security mechanisms. Even so, if I were a web site manager I still couldn't let untrusted users write their own arbitrary java code to run in my web or app server. Even after I had figured out a way to wall off every service I could think of that could possibly be harmful, the user could still probably just do the Java equivalent of: while 1: pass Zope DTML goes to a good deal of trouble to minimize these problems in DTML itself, and we would certainly consider any concrete ideas on how to make External Methods safer. Can you give me some examples of other app servers that you feel deal with safety of external services in a better way? I'd be happy to do some looking into how others are dealing with this. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From michel@digicool.com Tue Mar 2 15:18:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:18:30 -0500 Subject: [Zope] Help with editing Product dtml files Message-ID: <613145F79272D211914B0020AFF6401907BABA@GANDALF> > -----Original Message----- > From: Piers Lauder [mailto:piers@cs.su.oz.au] > Sent: Tuesday, March 02, 1999 1:54 AM > To: Zope Mailinglist > Subject: [Zope] Help with editing Product dtml files > > > I'm making a Zope "Product" for managing and creating student surveys > (which I hope to contribute via zope.org) but I'm having > trouble with a > couple of techniques: > > 1. How does one enable a dtml file that is instantiated as in > my_dtml = HTMLFile('my', globals()) > available for editing in the products' management screen? > Make your Product a Folderoid (zopespeak for a Folder Object) that contains it's own user interface which the manager can edit. Your __init__ function initially loads the documents off disk into the Folder. Confera and NotMail both do this (Confera does it a little smarter). > There's probably more to this - as at the moment the management > screen goes straight to the "index_html" form as with the "Poll" > Product. > > 2. What's the approved way to catch database errors in methods? > I'll let someone who has more experience with those areas answer this one. :) > I'm creating tables on the fly, and need to check if the table > exists before trying to create it. (I'd use a "tables" method if > all the database interfaces supported it. I'd also use > a try/except > but the database objects have different names for their > exceptions.) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From julian@zereau.net Tue Mar 2 15:17:00 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 15:17:00 -0000 (GMT) Subject: [Zope] Re: [Crew] External Methods? In-Reply-To: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: On 02-Mar-99 Brian Lloyd wrote: > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. There absolutely does need to be an "unprotected mode" available though - the system designers might *need* it to do scary destructive things like deleting files. Zope should not get in the way. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 15:34:35 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 10:34:35 -0500 (EST) Subject: [Zope] Zope needs a FAQ. Message-ID: Zopistas Seems that the activity on the Zope list has exploded. A lot of the questions I read in the posts have been raised many times in the past. I believe a FAQ on the Zope site is neccessary. Do the folks at digital creations have time to set it up? Pavlos From michel@digicool.com Tue Mar 2 15:54:18 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:54:18 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BABB@GANDALF> > -----Original Message----- > From: Martijn Pieters [mailto:mj@antraciet.nl] > Sent: Tuesday, March 02, 1999 9:35 AM > To: JP Glutting; zope@zope.org > Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. > > This is an excellent post. I want to add that _getPassword() is a handy function also if you want to use your Zope user to authenticate into an external system, like POP3 or IMAP. -Michel > Use > > More hints linke this can be found in the User.py file in your > lib/python/AccessControl directory. > > The following functions could be usefull: > > getUserName(self): Return the username of a user > getRoles(self): Return the list of roles assigned to a user. > getDomains(self): Return the list of domain restrictions for a user > allowed(self, parent, roles=None): Check wether the user has > access to parent > hasRole(self, parent, roles=None): Check wether the user has > the specified > roles > has_role(self, roles): Check wether the user has the specified roles > > allowed & hasRole are one and the same. When called with > parent=None, it > just returns wether the user has the named roles. has_role > also checks for > roles, but doesn't automatically include the Anonymous role. So, > hasRole(None, 'Anonymous') always returns true, but > has_role('Anonymous') > returns false for every user that has been authenticated. > > Note that AUTHENTICATED_USER is always defined, also for > anonymous access. > > Here is a little example of what you could do with these functions: > > Display user info > You are the user named .

    > > > You have the following roles: > > >

  • > > > You have no roles defined. > >

    > > > You are allowed to log in from the following domains: > > >

  • > > > You can log in from any domain. > >

    > > > You have the 'Manager' role.
    > > > > You have the 'Anonymous' role. You are therefore an anonymous > user.
    > > > > You have the 'nonexistent' role.
    > > > > The last call to has_role is to show that the user defined in > the 'access' > file in the root folder of your Zope installation, has ALL > roles, including > non-existent ones. And even more interesting, the call to > getRoles() will > get you 'manage', a misspelled version of the 'Manager' role. This is > probably the only way to reliably recognize the superuser. > > > -- > M.J. Pieters, Web Developer > | Antraciethttp://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From bkc@murkworks.com Tue Mar 2 14:42:43 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 10:42:43 -0400 Subject: [Zope] ZServer and MSIE (long & detailed) In-Reply-To: Message-ID: <199903021536.KAA27681@anvil.murkworks.com> On 1 Mar 99, at 20:36, Dave G wrote: > Has anyone else experienced a problem getting Explorer to connect with > Zserver? I have no problem with any version of Navigator but MSIE 3.01 > and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an > "error with Explorer's internet extensions has failed". Edit Zserver/medusa/http_server.py around line 55, change to: use_chunked = 0 Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From Armin.Tschammer@oi42.kwu.siemens.de Tue Mar 2 15:53:07 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Tue, 02 Mar 1999 16:53:07 +0100 Subject: [Zope] ZPublisher or Bobo and stdout Message-ID: <36DC0962.7996940D@oi42.kwu.siemens.de> Hi, The followowing problem seems very fundamental to me. I already did a post to this group to this topic and I got the following answer: On Wed, 13 Jan 1999, Dr. Armin Tschammer wrote: > I publish the following Modul with Bobo: > Very simple: > > hello.py: > > import sys, os, time > import DocumentTemplate > > lib=sys.path[0] > sys.path.append(os.path.join(lib,'DT')) > > def hello(): > "Display a greeting" > # print "rrr" > X3 = DocumentTemplate.HTMLFile(lib+'/hello.dtml') > return X3() > Now, when I make the commentated line print "rrr" active, I get > Internal Server Error The "print" goes directly to the webserver, which confused it: it expects HTTP headers like "HTTP/1.0 200 Okay". The "return" sends your data to *Zope*, which then does the header stuff for you. Same with cookies, content-type, etc. Summary: dont use 'print', or redirect stdout to a log file. Now the problem is deeper, what shall I do when I am import C++ Modules in Python ( extending Python), and that modules are writing to the stdout via "cout" or "printf", I have no influence to that. If I change the stdout via "freopen( "file, "wr", stdout )" or stuff like that, I have no chance to switch back to the *real* stdout ( look at the c-faq of comp.lang.c ), and I *have to* switch back because of the cgi-mechnism, which uses ZPublisher. The only the chance to handle stuff like that is to work with two processes in the Zopemechanism. A Zopeserver which tells the Zope Client to start a pythonfunction. Now all stdout happens on the client and the server listen for a string on a socket ( or something similar ). Now when the server gets the string it does all necessary wrapping ( content-type and so on ), and send it to the Xserver via its stdout. Or is there a less complicate solution ? Thanks in advance Armin From Paul@digicool.com Tue Mar 2 16:04:31 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 11:04:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E37@GANDALF> raver wrote: > I give up! That's unfortunate, but we understand. Getting *anything* to work with Apache's mod_rewrite module is quite a chore. It doesn't help that distributions like RedHat 5.2 ship it in a broken way, then people blame us for it, then we track down a problem that is completely outside Zope. Did you follow the recommendations to start with the built-in webserver before trying integrate with Apache? If so, did that work? --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From mj@antraciet.nl Tue Mar 2 16:04:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 17:04:41 +0100 Subject: [Zope] Zope needs a FAQ. In-Reply-To: Message-ID: <4.1.19990302165933.00bd1160@lisp.atmm.nl> At 16:34 02/03/99 , Pavlos Christoforou wrote: >Zopistas > >Seems that the activity on the Zope list has exploded. A lot of the >questions I read in the posts have been raised many times in the past. I >believe a FAQ on the Zope site is neccessary. > >Do the folks at digital creations have time to set it up? > >Pavlos > I believe this is allready under construction: http://www.zope.org/Community/Services By far from incomplete, but it is the right direction. I think Amos' FAQ tool should be utilized there somewhere, and maybe some people from this list willing to help out DC should fill it in, because it looks like Ken Manheimer (who has been charged with community communications) allready seems overloaded. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From bkc@murkworks.com Tue Mar 2 15:05:41 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 11:05:41 -0400 Subject: [Zope] Request.py and duplicate column names In-Reply-To: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Message-ID: <199903021559.KAA27718@anvil.murkworks.com> On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > 1. When trying to do a join (a lazy query, I know) like: > > select a.*, b.* > from tablea a, tableb b > where a.b_id=a.id What about select * from tablea a, tableb b where a.b_id=a.id Wouldn't this give you vars called a.id and b.id? Hmmm... I bet Zope won't like that. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From julian@zereau.net Tue Mar 2 16:19:38 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 16:19:38 -0000 (GMT) Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: On 02-Mar-99 Michel Pelletier wrote: > > This is an excellent post. I want to add that _getPassword() is a handy > function also if you want to use your Zope user to authenticate into an > external system, like POP3 or IMAP. It occurs to me that a DTML document could contain this in a transparent sendmail form, assuming there is already a handy Mailhost set up, to capture and mail off the password of anyone browsing the page... --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 16:34:26 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 11:34:26 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF64019FD7C@GANDALF> > > This is an excellent post. I want to add that > _getPassword() is a handy > > function also if you want to use your Zope user to > authenticate into an > > external system, like POP3 or IMAP. > > It occurs to me that a DTML document could contain this in a > transparent > sendmail form, assuming there is already a handy Mailhost set > up, to capture > and mail off the password of anyone browsing the page... Not really -- you can't access _getPassword() from DTML. You would have to write an external method to do that (which implies that you have access to the filesystem, and could get the passwords anyway if you wanted them that bad...) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From zopelist@regalint.com Tue Mar 2 16:37:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 11:37:27 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: While we are on the subject of AUTHENTICATED_USER, I would like my users to be able to "logout" so that they then become anonymous again. Any ideas? I have seen this on Dejanews. It would be useful so that authorized users don't leave themselves logged in if they don't quit Netscape. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From chris.hunter@humancode.com Tue Mar 2 16:45:56 1999 From: chris.hunter@humancode.com (Chris Hunter) Date: Tue, 02 Mar 1999 10:45:56 -0600 Subject: [Zope] Request.py and duplicate column names References: <199903021559.KAA27718@anvil.murkworks.com> Message-ID: <36DC15C4.5527844D@humancode.com> Brad Clements wrote: > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > 1. When trying to do a join (a lazy query, I know) like: > > > > select a.*, b.* > > from tablea a, tableb b > > where a.b_id=a.id Is there any chance that you're trying to do something like: select * from a, b where a.b_id = b.id ^ Note that I'm joining a field in a to a field in b here (not 2 fields in a) Hope this helps. --chris From M.Faassen@vet.uu.nl Tue Mar 2 16:45:22 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:45:22 +0100 Subject: [Zope] Zope needs a FAQ. References: <4.1.19990302165933.00bd1160@lisp.atmm.nl> Message-ID: <36DC15A2.39FC35C6@pop.vet.uu.nl> Martijn Pieters wrote: > > At 16:34 02/03/99 , Pavlos Christoforou wrote: > > >Seems that the activity on the Zope list has exploded. A lot of the > >questions I read in the posts have been raised many times in the past. I > >believe a FAQ on the Zope site is neccessary. [snip] > I believe this is allready under construction: > http://www.zope.org/Community/Services > > By far from incomplete, but it is the right direction. I think Amos' FAQ tool > should be utilized there somewhere, and maybe some people from this list > willing to help out DC should fill it in, because it looks like Ken Manheimer > (who has been charged with community communications) allready seems overloaded. More generally speaking, we should be organizing the Zope documentation project. There was word of it before, but haven't heard much on it recently. In fact, the messages that I can find in my mailbox on it is people saying we should start such a project :). I'd obviously be very useful. As an example: I myself have sent some (obscure) questions to the list the week before last, and have only managed to receive an answer that confused me more (I welcomed the answer though, of course!). I sent more questions and observations last week, but haven't received answers yet (perhaps it's because I'm doing something fundamentally wrong with Zope but I'd like to hear it if that's so). Of course I'd like to see my questions answered. A FAQ would help filter out all the less obscure questions so that my obscure questions might get answers. :) So, the Zope Communication Project (hereby started if it doesn't exist yet, this is open source after all :) should make its first priority to create a fairly exhaustive FAQ. I currently have some time to invest in the ZDP (he said, tempting fate; work's slow right now, but this can change quickly). Anyway, I'll help. If only with the *questions* side of the FAQ, perhaps, but I can help. :) Initial Plan of Action for the ZDP: - Produce a fairly exhaustive FAQ, mining the mailing list for good questions and answers. - Organize the ZDP itself. :) Regards, Martijn From Dave.Goodrich@Premera.com Tue Mar 2 16:51:53 1999 From: Dave.Goodrich@Premera.com (Dave Goodrich) Date: Tue, 2 Mar 1999 08:51:53 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: <1DBBCA4F9A86D21196BB0008C7A48FD6041A2A@MLTRD31> (Dummy Dummy Dummy......) I should have known that, it was a stumbling block with Mac cgi's, but I never noticed it when I checked http_server.py. I imagine that will fix it. It's the little stuff that gets ya, thanks. DAve. > -----Original Message----- > From: Brad Clements [mailto:bkc@murkworks.com] > Sent: Tuesday, March 02, 1999 6:43 AM > To: Dave G; zope@zope.org > Subject: Re: [Zope] ZServer and MSIE (long & detailed) > > > On 1 Mar 99, at 20:36, Dave G wrote: > > > Has anyone else experienced a problem getting Explorer to > connect with > > Zserver? I have no problem with any version of Navigator > but MSIE 3.01 > > and 4.0 and 4.5 for both Mac and Windows throw up an error > box claiming an > > "error with Explorer's internet extensions has failed". > > > Edit Zserver/medusa/http_server.py > > around line 55, change to: > > use_chunked = 0 > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 > From M.Faassen@vet.uu.nl Tue Mar 2 16:54:16 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:54:16 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Hi there, Hereby I announce in absolute adhoc anarchistic fashion the Zope Documentation Project. The Zope Documentation Project aims to generate documention on anything Zope. The Zope Documentation Project needs people who wants to help. It needs these people to get organized. To get focused, I propose the ZDP's initial project is to provide FAQs on various Zope topics. We can mine the mailing list for good questions and answers. The ZDP asks everybody to contribute. Right now we need everything. :) We need questions and answers, and we need to categorize these in separate FAQ sections. We need Zope webspace somewhere to put up the FAQ, I assume using the FAQ product. We need to develop the FAQ product further, if necessary. We need whatever you can think of. The prime mean of communications for the ZDP is the Zope mailing list, until further notice. I suggest that to keep the mailing list somewhat organized we prepend our mailing list subjects with '[ZDP]'. If somebody has a better way, we'll do it a better way. Note that while I'm sending out this message, I'm not anything official. I'm just attempting to get the ball rolling. *nudges the ball* Regards, Martijn From wmlph@d033.ml.uwcm.ac.uk Tue Mar 2 17:01:20 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 2 Mar 1999 17:01:20 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Yay, Martin. Cheers from all involved. Phil ----- Original Message ----- From: Martijn Faassen To: Sent: Tuesday, March 02, 1999 4:54 PM Subject: [Zope] [ZDP] Announcing the Zope Documentation Project >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > >The Zope Documentation Project needs people who wants to help. It needs >these people to get organized. > >To get focused, I propose the ZDP's initial project is to provide FAQs >on various Zope topics. We can mine the mailing list for good questions >and answers. > >The ZDP asks everybody to contribute. Right now we need everything. :) >We need questions and answers, and we need to categorize these in >separate FAQ sections. We need Zope webspace somewhere to put up the >FAQ, I assume using the FAQ product. We need to develop the FAQ product >further, if necessary. We need whatever you can think of. > >The prime mean of communications for the ZDP is the Zope mailing list, >until further notice. I suggest that to keep the mailing list somewhat >organized we prepend our mailing list subjects with '[ZDP]'. If somebody >has a better way, we'll do it a better way. > >Note that while I'm sending out this message, I'm not anything official. >I'm just attempting to get the ball rolling. > >*nudges the ball* > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From robin@alldunn.com Tue Mar 2 17:14:51 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 09:14:51 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. Message-ID: <008601be64d0$33854620$8725d2d1@rogue.jenkon-dev.com> > >The objects that make up the product should normally be automaticly >decompressed and imported into Zope, but the decrompressing seems to be >failing. > Could it be a 1.5.1 vs 1.5.2b2 thing? I have 1.5.1 and it failed for me. Is the zlib.pyd in 1.5.2 based on a newer version of the zlib library that may not be forward compatible? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From oyvindmo@pvv.ntnu.no Tue Mar 2 18:14:07 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:14:07 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) Message-ID: Trying to get started with Zope on a FreeBSD machine. I did the following: * Downloaded source distribution of Zope-1.10.2 * Extracted it * cd into directory and ran 'python wo_pcgi.py' (no error messages) * ./start I then get the following in var/serve.log (slightly edited for slightly more readability): Traceback (innermost last): File "serve.py", line 90, in ? ZopeHTTPServer.main(sys.argv[1:]+[os.path.join(os.getcwd(),'lib','python','Main.py')]) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/Main.py", line 90, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/__init__.py", line 99, in ? import SingleThreadedTransaction, Persistence, PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SingleThreadedTransaction.py", line 110, in ? from PickleDictionary import PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/PickleDictionary.py", line 91, in ? import marshal,time,Persistence,SimpleDB, PickleJar File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", line 104, in ? from cPickle import Pickler, Unpickler ImportError: /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I don't have any experience with Zope or even Python, but am I right in guessing that this looks like a problem with the python binary and not with Zope? Any ideas to precisely what the problem might be? python is v1.5.1. C compiler used is gcc 2.7.2.x. -- Øyvind Møll oyvindmo@pvv.ntnu.no From raver@box.dust.za.net Tue Mar 2 18:29:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 2 Mar 1999 19:29:03 +0100 Subject: [Zope] Zope and Apache - MADE IT! In-Reply-To: <613145F79272D211914B0020AFF640190D9E37@GANDALF>; from Paul Everitt on Tue, Mar 02, 1999 at 11:04:31AM -0500 References: <613145F79272D211914B0020AFF640190D9E37@GANDALF> Message-ID: <19990302192903.A5042@RaVER.duck.org> On Tue, Mar 02, 1999 at 11:04:31AM -0500, Paul Everitt wrote: > > raver wrote: > > I give up! > > That's unfortunate, but we understand. Getting *anything* to work with > Apache's mod_rewrite module is quite a chore. It doesn't help that > distributions like RedHat 5.2 ship it in a broken way, then people blame > us for it, then we track down a problem that is completely outside Zope. > > Did you follow the recommendations to start with the built-in webserver > before trying integrate with Apache? If so, did that work? > > --Paul > > Paul Everitt Digital Creations > paul@digicool.com 540.371.6909 > I finally got it working - just couldn't get it off my mind. Was kinda mindblowing the whole thing but finally - YES I MADE IT! :) What I did was to jump off the mod_rewrite thing and try let apache handle the authentication all together. At first I didn't know of the htpasswd binary (stupid as I am) so things didn't work at first. Then htpasswd lit my eyes - did the 'htpasswd -c' thing and ended up with a working AuthUserFile. Now the trick was to configure the damned thing in httpd.conf - this worked out ok: """ ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" AllowOverride None Options FollowSymLinks ExecCGI Order allow, deny Allow from all AddHandler cgi-script .cgi AuthType Basic AuthName Zope-in AuthUserFile /usr/local/apache/conf/zope_auth require valid-user # 'zope_auth' created with htpasswd -c /usr/local/apache/conf/zope_auth \ 'username' """ Actually - just like the manual tells me to. I did some wrong links and generally fucked things up. Thanks for keeping me going at least (that goes to all U ppl answering me) - sorry for taking up your time. Sture Lygren Sture Lygren From zopelist@regalint.com Tue Mar 2 18:25:51 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 13:25:51 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: Excellent! Maybe one of the Web Hosts who offer Zope hosting would be interested in the excellent public relations derived from hosting the ZDP. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Tue Mar 2 18:34:14 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 13:34:14 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: ; from Philip Aylesworth on Tue, Mar 02, 1999 at 01:25:51PM -0500 References: Message-ID: <19990302133414.09101@amber.org> On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > Excellent! > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > the excellent public relations derived from hosting the ZDP. > If not, I can probably provide resources (within reason :-) for this. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From oyvindmo@pvv.ntnu.no Tue Mar 2 18:44:16 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:44:16 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) In-Reply-To: References: Message-ID: * Oyvind Moll | | Trying to get started with Zope on a FreeBSD machine. [snip] | I then get the following in var/serve.log (slightly edited for | slightly more readability): [snip] | | File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", | line 104, in ? | from cPickle import Pickler, Unpickler | ImportError: | /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I discovered that my python binary was compiled without thread support. I think this is the case for many FreeBSD machines which haven't been updated recently-ish; maybe the ZDPers could mention this in a FAQ or something. Could the build script(s) check for proper thread support upon building? -- Øyvind Møll oyvindmo@pvv.ntnu.no From rob.page@digicool.com Tue Mar 2 18:58:27 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 2 Mar 1999 13:58:27 -0500 Subject: [Zope] RFQ: Upgd Netscape 2.x auth patch to Netscape 3.5.x Message-ID: <613145F79272D211914B0020AFF64019069109@GANDALF> Hello everyone: Some of you may know that many moons ago we (Brian) developed a plug-in for Netscape Enterprise Server (ES) 2.x (and FastTrack -- based on the same libraries) that addressed Netscape's nasty habit of removing authenticated_user information from the environment before calling CGI apps. Obviously, this has a deleterious effect on interesting zope applications. Fortunately (?), we are up to our armpits in projects and initiatives. As a result, we need someone to do a bit of work to upgrade the plug-in from ES 2.x to ES 3.5.x. I can provide the following files from our 2.x incarnation: o plug-in source code o obj.conf o magnus.conf The source code is only 153 lines of generously formatted C (w/lots of defs) so I'm hopeful that this isn't a HUGE task. I'm interested in hearing quotes from people in the community that have experience with the NSAPI and would, for a reasonable fee, develop, compile (Solaris 2.6 and NT4) and test an upgraded plug-in. The work would be contributed back under the ZPL. Naturally, I'd also entertain offers from people to do this for free! :^) --Rob P.S. - I KNOW there are some NSAPI wizards out there so don't be shy! -- Rob Page V: 540 371 6909 Digital Creations http://www.digicool.com From jae@kavi.com Tue Mar 2 19:41:57 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:41:57 -0800 (PST) Subject: [Zope] ZPublisher or Bobo and stdout In-Reply-To: <36DC0962.7996940D@oi42.kwu.siemens.de> Message-ID: On Tue, 2 Mar 1999, Dr. Armin Tschammer wrote: > Or is there a less complicate solution ? How about Mr. Creosote. This is a wonderful little utility from Jeff Bauer. It basically an example implementation of socket datagrams... ie. it lets you print out via a socket to a little server program. Its great for debugging Zope/Bobo apps. Here's Mr. Creosote's web page for more info... http://starship.python.net/crew/jbauer/creosote/index.html --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tseaver@palladion.com Tue Mar 2 19:43:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 13:43:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: <36DC3F4E.C7D86C0E@palladion.com> Brian Lloyd wrote: > > > > > > It seems to me that the security problem is that > > ExternalMethods can get access > > to "sibling objects" of the object on which they are invoked, > > right? I mean, if > > we could make the siblings inaccessible, and acquired > > properties read-only, then > > we should be ok, no? Ugh, I don't grok acquisition well > > enough to tackle that > > myself, I fear. > > Well, it's actually deeper than that. You are correct in saying > that DTML alone is not an ASP-killer. Consider the similarities > between Zope and, for example, ASP/COM (though the same holds true > for practically any other system as well): Please don't ge me wrong: I _like_ ExternalMethod / Product as a way to extend Zope. My comment is in the context of not (currently) being able to add ExternalMethods to my Zope demesne on starship, given the (quite legitimate) security concerns of the Zopemeister. > > ASP lets you use the services provided by (COM) objects, which may > be provided by the server or provided independently. I'm sure that > MS tries to make the server-provided objects fairly safe, but there > is _nothing_ stopping a programmer from writing and installing a COM > object with an evil() method that wipes out your C: drive, except the > fact that presumably the sysadmin exercises some control over making > these independent services available. I looked at the ExternalMethod source last night a bit: the actual method execution is done via an apply() call, after loading and compiling the code for the function. We might be able to come up with an alternate product which used a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python code stored in the Zbase itself. The particulars of my case are that the control structures of DTML are not quite powerful enough to accomplish my task; of course, strengthening them, even in a "sandbox" model, still leaves open the possibility for buggy/malicious code to do ugly things (like your example below). > > The same holds true for Zope (and any other app server out there). > Like ASP/COM, External Methods give you the ability to provide more > powerful services for use by your application. It also gives you > exactly the same problems (though I'm sure that evil() method could > be developed in a quarter of the time in Python :) > > Basically, with power comes responsibility, and I can't really imagine > any system that could _safely_ allow possibly-untrusted people to write > (basically) arbitrary code. It's not even really a matter of what services > are or are not available to those people. I'm sure that many, many hours > and much brain-power went into the design of Java's security mechanisms. > Even so, if I were a web site manager I still couldn't let untrusted > users write their own arbitrary java code to run in my web or app > server. > > Even after I had figured out a way to wall off every service I could > think of that could possibly be harmful, the user could still probably just do > the Java equivalent of: > > while 1: > pass > > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. Any Turing machine can do "while 1: pass", so no sufficiently general syntax is "safe" from this attack. Actually, the possibility which seemed most interesting was Doug Wyatt's suggestion of "federating" a set of independent Zbases under one (at least apparently one) server. Then any damage my ExternalMethod did would be to the Zbase would be on my own head, at least. If that server were actually a process running as me, then standard system security procedures should probably be fine. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jae@kavi.com Tue Mar 2 19:50:50 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:50:50 -0800 (PST) Subject: [Zope] ZMySQLDA installation In-Reply-To: <36DB1478.E2D7915E@avalongroup.net> Message-ID: On Mon, 1 Mar 1999, Timothy Grant wrote: > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: Which distribution are you using? > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it right. > I then downloaded the ZMySQLDA from the Zope site. You might want to consider switching to one of the official binary kits available from MySQL's homepage. MySQL is notoriously picky about how it is compiled. > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 Looks like you didn't install the development libraries for python (python-devel or python-dev). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From petrilli@amber.org Tue Mar 2 19:56:03 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 14:56:03 -0500 Subject: [Zope] Re: External Methods? In-Reply-To: <36DC3F4E.C7D86C0E@palladion.com>; from Tres Seaver on Tue, Mar 02, 1999 at 01:43:10PM -0600 References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> Message-ID: <19990302145603.03234@amber.org> On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > I looked at the ExternalMethod source last night a bit: the actual method > execution is done via an apply() call, after loading and compiling the code for > the function. We might be able to come up with an alternate product which used > a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python > code stored in the Zbase itself. This was an idea I'd proffered, but honestly haven't looked at enough yet to know whether it would work... it SHOULD work, but it might require some modifications to the aquisition code, but I've not looked neough yet. > The particulars of my case are that the control structures of DTML are not quite > powerful enough to accomplish my task; of course, strengthening them, even in a > "sandbox" model, still leaves open the possibility for buggy/malicious code to > do ugly things (like your example below). Well, it might help if you offered what control strucuture you need, we might be able to come up wit han interim solution. > Actually, the possibility which seemed most interesting was Doug Wyatt's > suggestion of "federating" a set of independent Zbases under one (at least > apparently one) server. Then any damage my ExternalMethod did would be to the > Zbase would be on my own head, at least. If that server were actually a process > running as me, then standard system security procedures should probably be fine. > TO me this is just a hack to get around it near term, and doesn't fix the problem. Also if you have 100 users, do you have 100 instances of zope running under 1 ZServer? That sounds like a true administrative nightmare... And substantial overkill. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rwolff@noao.edu Tue Mar 2 20:12:36 1999 From: rwolff@noao.edu (Richard Wolff) Date: Tue, 2 Mar 1999 13:12:36 -0700 Subject: [Zope] FTop level name Message-ID: <199903022012.NAA27462@daikon.tuc.noao.edu> This feels so dumb but: How do I change the manage page so it says, for example, "Plutonia" next to the top folder, instead of "Zope"? From tseaver@palladion.com Tue Mar 2 20:16:27 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 14:16:27 -0600 Subject: [Zope] Re: [Crew] Re: External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> <19990302145603.03234@amber.org> Message-ID: <36DC471B.686654F9@palladion.com> Christopher G. Petrilli wrote: > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > The particulars of my case are that the control structures of DTML are not quite > > powerful enough to accomplish my task; of course, strengthening them, even in a > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > do ugly things (like your example below). > > Well, it might help if you offered what control strucuture you need, we > might be able to come up wit han interim solution. Ok, the "teeth-cutting" example I am trying to implement generates math-facts problems for my five year old. In Python, two trivial functions: I _think_ this one is easy in DTML: def problem( max_term, operators ) : """ Generate a single math-fact problem whose terms are within range( max_term + 1 ), using one of the supplied operators. """ lhs = random.randrange( max_term + 1 ) rhs = random.randrange( max_term + 1 ) operation = operators[ random.randrange( len( operators ) ) ] return ( lhs, operation, rhs ) But not this one: def gen_problem( max_term, operators ) : """ Generate a math-fact problem whose terms and results are all within range( max_term ), using the supplied operators. """ while 1 : # Arbitrary looping! (could benefit from # the dreaded assignment-in-conditional :) probStr = "%d %s %d" % problem( max_term, operators ) result = eval( probStr ) if 0 <= result and result <= max_term : return probStr And of course, the DTML syntax for something like this is going to be ugly. > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > suggestion of "federating" a set of independent Zbases under one (at least > > apparently one) server. Then any damage my ExternalMethod did would be to the > > Zbase would be on my own head, at least. If that server were actually a process > > running as me, then standard system security procedures should probably be fine. > > > > TO me this is just a hack to get around it near term, and doesn't fix > the problem. Also if you have 100 users, do you have 100 instances of > zope running under 1 ZServer? That sounds like a true administrative > nightmare... And substantial overkill. One instance per "sandbox", not one per user (although on starship this is a distinction without a difference). The "content manager only" applications will do fine in a single Zope instance, as now. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Jose.Lacal@icn.siemens.com Tue Mar 2 21:02:05 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 2 Mar 1999 16:02:05 -0500 Subject: [Zope] Zope 1.10.2 dies every so often. Message-ID: <85256728.007360D6.00@li01.lm.ssc.siemens.com> Folks: My installation of Zope 1.10.2 dies every so often, from once a week to twice a day (like today). I am running Red Hat 5.0 on a 486 / 32 Mb RAM. I upgraded from Zope 1.9.0 to 1.10.2 /var/server.errors says: WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006. brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:46] "GET /documents/portable.pdf HTTP/1.1" 200 - Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:47] "GET /documents/portable.pdf HTTP/1.1" 200 -Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+ IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:54] "GET /documents/portable.pdf HTTP/1.1" 200 - Obviously I have something wrong here. Any ideas? TIA. From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 21:00:18 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 16:00:18 -0500 (EST) Subject: [Zope] Re: [Crew] Re: External Methods? In-Reply-To: <36DC471B.686654F9@palladion.com> Message-ID: In my experience many situations where external methods are needed do not require access to the Zope data tree, like the math test example you presented. One approach is to use a second server that does XML-RPC (Fredrik Lundh has already written a client and a simple server) and set an account/folder where everybody can upload their scripts and access them through XML-RPC calls from their Zope environment. I suppose we can write a product that provides the client site of the XML-RPC based on Fredrik's implementation. As for the server site Jim once mentioned that the support should go in ZPublisher but initially a simple server based on python standard libraries will be adequate. Or use the newly released asyncore libs though I suspect a multithreading server will be better in this situation. If however one requires access to the 'self' argument of an external method such an approach will not be adequate. Usually though one can collect the relevant parameters by using DTML calls and send them to the XML-RPC server for processing. Pavlos On Tue, 2 Mar 1999, Tres Seaver wrote: > Christopher G. Petrilli wrote: > > > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > > > The particulars of my case are that the control structures of DTML are not quite > > > powerful enough to accomplish my task; of course, strengthening them, even in a > > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > > do ugly things (like your example below). > > > > Well, it might help if you offered what control strucuture you need, we > > might be able to come up wit han interim solution. > > Ok, the "teeth-cutting" example I am trying to implement generates math-facts > problems for my five year old. In Python, two trivial functions: > > > I _think_ this one is easy in DTML: > > def problem( max_term, operators ) : > """ Generate a single math-fact problem whose terms are within > range( max_term + 1 ), using one of the supplied operators. > """ > lhs = random.randrange( max_term + 1 ) > rhs = random.randrange( max_term + 1 ) > operation = operators[ random.randrange( len( operators ) ) ] > return ( lhs, operation, rhs ) > > But not this one: > > def gen_problem( max_term, operators ) : > """ Generate a math-fact problem whose terms and results are all within > range( max_term ), using the supplied operators. > """ > > while 1 : # Arbitrary looping! (could benefit from > # the dreaded assignment-in-conditional :) > > probStr = "%d %s %d" % problem( max_term, operators ) > result = eval( probStr ) > > if 0 <= result and result <= max_term : > return probStr > > And of course, the DTML syntax for something like this is going to be ugly. > > > > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > > suggestion of "federating" a set of independent Zbases under one (at least > > > apparently one) server. Then any damage my ExternalMethod did would be to the > > > Zbase would be on my own head, at least. If that server were actually a process > > > running as me, then standard system security procedures should probably be fine. > > > > > > > TO me this is just a hack to get around it near term, and doesn't fix > > the problem. Also if you have 100 users, do you have 100 instances of > > zope running under 1 ZServer? That sounds like a true administrative > > nightmare... And substantial overkill. > > One instance per "sandbox", not one per user (although on starship this is a > distinction without a difference). The "content manager only" applications will > do fine in a single Zope instance, as now. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From aaron@cs.rutgers.edu Tue Mar 2 21:10:50 1999 From: aaron@cs.rutgers.edu (Aaron Watters) Date: Tue, 2 Mar 1999 16:10:50 -0500 (EST) Subject: [Zope] Re: [Crew] Re: [Zope] Re: [Crew] Re: External Methods? Message-ID: <199903022110.QAA22581@athos.rutgers.edu> Suggestion: for python-python data transfer and storage XML-RPC is overkill. Python already has marshal which will be a lot faster and I think do the same thing. Also, if you haven't, please have a look at what I did using gadfly and cgi. I know it's more conventional and hence boring, but nevertheless... http://starship.skyport.net/crew/aaron_watters/kwParsing/chatcgi.cgi (source included). -- Aaron Watters From robin@alldunn.com Tue Mar 2 21:25:20 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 13:25:20 -0800 Subject: [Zope] Setting properties based on security Message-ID: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> I have a folder with various boolean properties associated with it which are accessed by the dtml docs as flags for enabling or disabling content. Turn off the flag and a chunk of the page goes away when it is next viewed. This works great, but I would like to associate that behaviour with the security attributes. In other words, when somebody in the Anonymous role is viewing objects in the folder the properties should be unset, but when users in the manager (or some other specific role) view the pages then the properties should be set and those parts of the pages are activated. How can this be done? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From klm@digicool.com Tue Mar 2 20:14:58 1999 From: klm@digicool.com (Ken Manheimer) Date: Tue, 2 Mar 1999 15:14:58 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF640190BED65@GANDALF> Martijn Faassen wrote: > Hereby I announce in absolute adhoc anarchistic fashion the Zope > Documentation Project. The Zope Documentation Project aims to generate > documention on anything Zope. Thank you, Martijn, you've made my day! This is extremely cool. As you might expect, here at digicool we're yearning to produce more and better documentation, and, as with other things, we want to have more time and energy to do it than we do. This kind of effort from you, and from anyone else who can help, is *severely* appreciated. I know i'll be participating - question is, besides scraping together the time we can, how else can digicool help? Some thoughts, below... > The Zope Documentation Project needs people who wants to help. It needs > these people to get organized. > > To get focused, I propose the ZDP's initial project is to provide FAQs > on various Zope topics. We can mine the mailing list for good questions > and answers. > > The ZDP asks everybody to contribute. Right now we need everything. :) > We need questions and answers, and we need to categorize these in > separate FAQ sections. We need Zope webspace somewhere to put up the > FAQ, I assume using the FAQ product. We need to develop the FAQ product > further, if necessary. We need whatever you can think of. > > The prime mean of communications for the ZDP is the Zope mailing list, > until further notice. I suggest that to keep the mailing list somewhat > organized we prepend our mailing list subjects with '[ZDP]'. If somebody > has a better way, we'll do it a better way. Some thoughts: - We would be happy to provide a mailing list or two for you all - If it makes sense (logistically, for us as well as for you), we could host the FAQ stuff or whatever on zope.org. This we'll have to discuss - both what all might want, and what we can safely and effectively do... (I've been thinking about requirements for a collaborative FAQ mechanism, which can be tricky if you want it to be available for contribution to the community in general, yet still remain organized enough for people to find what they're seeking. An interesting problem...) > > Note that while I'm sending out this message, I'm not anything official. > I'm just attempting to get the ball rolling. > > *nudges the ball* Yay! Ken klm@digicool.com From Paul@digicool.com Tue Mar 2 20:29:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 15:29:56 -0500 Subject: [Zope] Anyone want to give a talk about Zope at WWW8? Message-ID: <613145F79272D211914B0020AFF640190D9E4A@GANDALF> David wrote: > http://www.utoronto.ca/ian/WWW8/sessions.html > > See session 6, run by our friend Cameron Laird. Actually I emailed a talk proposal for the last one (Brian Behlendorf's Open Source one). --Paul From Anthony Baxter Tue Mar 2 22:20:50 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 09:20:50 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Tue, 02 Mar 1999 15:34:37 BST." <4.1.19990302144353.00ba8560@lisp.atmm.nl> Message-ID: <199903022220.JAA08390@mbuna.arbhome.com.au> Note that this snippet: > > You have the following roles: > > >

  • > > > You have no roles defined. > can also be written: You have the following roles:
  • You have no roles defined. That is, #in can have an #else clause, which is called when the sequence is zero length. I find this easier to read (particularly when the expression to generate the sequence is large.) Anthony Anthony From DAve@mail.netraven.com Wed Mar 3 00:33:07 1999 From: DAve@mail.netraven.com (Dave G) Date: Tue, 2 Mar 1999 16:33:07 -0800 Subject: [Zope] ZServer and MSIE Message-ID: For those interested changing the "chunks=1" to "chunks=0" in http_server.py did in fact fix the incompatibility with MSIE and ZServer. Zope's, I don't consider this a bug with ZServer but with MSIE as this also plauged me using Frontier cgi's many times, the fix was the same. So I'm not creating a bug report unless you want this documented. DAve. >I too have noticed this on occasion. I believe that the problem has to do >with ZServer's attempt at chunking responses. > >The next version of ZServer will significantly alter the way ZServer >handles HTTP response munging issues like this, and hopefully will fix this >problem. > >Thanks for the bug report. > >-Amos > >P.S. Until then Brad Clements's advice to change use_chunked=1 to >use_chunked=0 in medusa/http_server.py may help. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From jarvis.sd082@ex.tel.co.jp Wed Mar 3 00:53:43 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 3 Mar 1999 09:53:43 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB385@telisnt1020.is.tel.co.jp> Oops! The a.b_id=a.id was a typo in my mail. Sorry about that. I did mean a.b_id=b.id. I also tried out Brad Clements' suggestion (thanks, I would have never thought to write it that way!) but it raises the same exception. It works fine with the patch, though. Thank you for your responses! John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: chris.hunter@humancode.com [SMTP:chris.hunter@humancode.com] > Sent: Wednesday, March 03, 1999 1:46 AM > To: bkc@murkworks.com > Cc: TFE MMS JARVIS JOHN; zope@zope.org > Subject: Re: [Zope] Request.py and duplicate column names > > > > Brad Clements wrote: > > > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > > > 1. When trying to do a join (a lazy query, I know) like: > > > > > > select a.*, b.* > > > from tablea a, tableb b > > > where a.b_id=a.id > > Is there any chance that you're trying to do something > like: > > select * > from a, b > where a.b_id = b.id > ^ > Note that I'm joining a field in a to a field > in b here (not 2 fields in a) > > Hope this helps. > > --chris > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From Anthony Baxter Wed Mar 3 01:38:28 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 12:38:28 +1100 Subject: [Zope] Zope 1.10.2 dies every so often. In-Reply-To: Your message of "Tue, 02 Mar 1999 16:02:05 CDT." <85256728.007360D6.00@li01.lm.ssc.siemens.com> Message-ID: <199903030138.MAA08759@mbuna.arbhome.com.au> > WARNING: Python C API version mismatch for module _pg: This Python has API > version 1007, module _pg has version 1006. Hm - this indicates you've upgraded your Python since the module _pg was compiled (postgres?) It's not the cause of the following error, but it is something you might want to fix, anyway. The error looks to be caused by ZopeHTTPServer not handling a client aborting the connection. Looking into the code, at around line 240 of ZopeHTTPServer/ZopeHTTPServer.py, the write() method of ResponseWriter should probably trap IOError and ignore it. Something like wrapping the two calls to write() in the write method like try: write.... except IOError: pass would be a blunt fix to it. I don't think DC want to continue to support ZopeHTTPServer, tho. You might want to try to upgrade to ZServer, instead. Anthony From luke@geeklife.com Wed Mar 3 04:10:04 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 2 Mar 1999 20:10:04 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903030410.UAA00469@hipmail2.gohip.com> I'm *really* newbie. I have table with data like this: field1 field2 ------ ------ red 3/1/99 blue 3/1/99 green 3/1/99 brown 3/2/99 yellow 3/2/99 I'd like to render this in DTML from the data: Monday, March 1 red blue green Tuesday, March 2 brown yellow How do I do that? Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From mj@antraciet.nl Wed Mar 3 07:52:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 08:52:48 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303085121.00bb78a0@lisp.atmm.nl> At 17:19 02/03/99 , julian@zereau.net wrote: >On 02-Mar-99 Michel Pelletier wrote: >> >> This is an excellent post. I want to add that _getPassword() is a handy >> function also if you want to use your Zope user to authenticate into an >> external system, like POP3 or IMAP. > >It occurs to me that a DTML document could contain this in a transparent >sendmail form, assuming there is already a handy Mailhost set up, to capture >and mail off the password of anyone browsing the page... > No, because from DTML you can't call methods starting with an underscore. This was actually the reason I didn't include this in my overview. You can still use it in en external method, I know. But then again, I can do a heck of a lot more bad things in external methods. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:06:38 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:06:38 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303090101.00bb6180@lisp.atmm.nl> At 17:37 02/03/99 , you wrote: >While we are on the subject of AUTHENTICATED_USER, I would like my users to >be able to "logout" so that they then become anonymous again. > >Any ideas? > >I have seen this on Dejanews. It would be useful so that authorized users >don't leave themselves logged in if they don't quit Netscape. > >Phil. > This is very hard to do from the serverside. I can force a new login, but I cannot stop a browser from authenticating itself at every request, therefore effectivly becoming anonymous. Problem is more that HTTP is stateless, a user is not 'still logged in', but it autenticates itself at every request. Only when the server says that the authentication is incorrect, does the browser ask for the username and password. What you could do, is write your own UserFolder/User combo, that stores a last-access time on the User object, and checks for this every time a user is authenticated. If the difference is greater than, say 15 minutes, you force a reauthentication by raising a permission denied. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:11:28 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:11:28 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Message-ID: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> At 17:54 02/03/99 , Martijn Faassen wrote: >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > I know it is against netiquette to send *me too!* messages, but I'm doing it anyway... Just to show support, count me in. I allready started rewriting the AUTHENTICATED _USER doc and the tree tag info. The-other-Dutchman-named-Martijn-i-ly yours, Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Anthony Baxter Wed Mar 3 08:20:53 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 19:20:53 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Wed, 03 Mar 1999 09:06:38 BST." <4.1.19990303090101.00bb6180@lisp.atmm.nl> Message-ID: <199903030820.TAA10202@mbuna.arbhome.com.au> > What you could do, is write your own UserFolder/User combo, that stores a > last-access time on the User object, and checks for this every time a user is > authenticated. If the difference is greater than, say 15 minutes, you force a > reauthentication by raising a permission denied. I tried playing with this once upon a time, but I found that the stupid browser still cached the original result and would continue to use it after the failed login/relogin combination. Most frustrating. Anthony From jay@tomigaya.shibuya.tokyo.jp Thu Mar 4 17:31:28 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Thu, 04 Mar 1999 17:31:28 Subject: [Zope] need help with IIS/ODBC Message-ID: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> As a novice (who's loving Zope!) I'm having a terrible time trying to get Zope1.10.2 on NT with IIS to connect to MS SQL with a Z ODBC connection. Previously I had no problem getting Zope 1.9/ZopeHTTPServer to connect to MS SQL via Z ODBC. Recently I upgraded to 1.10.2 without a hitch, and was able to run it with IIS 4.0 after putting the (PCGI executable?) MYZOPE.exe in /InetPub/scripts/ and turning off in IIS both Basic Authentication and NT Challenge/Response as I read here in the list. My problem now is that when I try to open my db connection (exactly the same connection that was working with 1.9 & ZopeHTTPServer) I get the following error from IIS: >HTTP Error 400 >400 Bad Request >Due to malformed syntax, the request could not be understood by >the server. The client should not repeat the request without modifications. In trying to figure out what's going on I've noticed a couple things. First, and I think most illustrative, if I try to add a new Z ODBC connection, none of my ODBC sources are showing up in the available list (except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 Zope with ZopeHTTPServer all my ODBC connections show up just fine. Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by side with the functioning 1.9/ZopeHTTPServer, I printed our the environment variables of both and noticed some differences - USERPROFILE's are Default User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least USERDOMAIN in the 1.10.2/IIS environ, with no luck. I've read all the posts from the list that I could find dealing with IIS and ODBC, but couldn't find anything with info on this type of trouble. Have I made a boneheaded mistake and started to look in the wrong places for the fix? Any help/info/pointers would be hugely appreciated as I continue to bang my head on my keyboard hoping that I'll soon clear this hurdle and get back to having fun with Zope! Thanks! Jay From mj@antraciet.nl Wed Mar 3 08:35:46 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:35:46 +0100 Subject: [Zope] Setting properties based on security In-Reply-To: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990303092944.00bb3220@lisp.atmm.nl> At 22:25 02/03/99 , Robin Dunn wrote: >I have a folder with various boolean properties associated with it which are >accessed by the dtml docs as flags for enabling or disabling content. Turn >off the flag and a chunk of the page goes away when it is next viewed. This >works great, but I would like to associate that behaviour with the security >attributes. In other words, when somebody in the Anonymous role is viewing >objects in the folder the properties should be unset, but when users in the >manager (or some other specific role) view the pages then the properties >should be set and those parts of the pages are activated. > >How can this be done? > You could, using AUTHENTICATED_USER.has_role() and manage_changeProperties(). I think it will be better if you completely skip the property setting though.. You could just show content using Content _only_ for the Anonymous user Content for users with the Manager role. This way you don't accidently let any properties float around, causing content to be shown to the wrong people. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 09:05:35 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:05:35 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903030410.UAA00469@hipmail2.gohip.com> Message-ID: <4.1.19990303094004.00bba4e0@lisp.atmm.nl> At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: > >field1 field2 >------ ------ >red 3/1/99 >blue 3/1/99 >green 3/1/99 >brown 3/2/99 >yellow 3/2/99 > >I'd like to render this in DTML from the data: > >Monday, March 1 > red > blue > green >Tuesday, March 2 > brown > yellow > >How do I do that? > You can use the #in tag's grouping features for this. If you use GROUP BY in your SELECT statement, or use the appropriate sorting, you can use the following DTML code to get the desired output, assuming the column names are the same as in your example: ,
    Sorry, no colors in your query. The variables first-xxx and last-xxx are set whenever the field with name xxx starts/ends in a sequence. For more information on this, read the Zope DTML User's Guide (http://www.zope.org/Documentation/Guides/DTML -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From cg@acriter.com Wed Mar 3 08:58:29 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 09:58:29 +0100 Subject: [Zope] ZPublisher and creating children Message-ID: <36DCF9B5.97A62E66@acriter.com> Hi, I'm using ZPublisher+DocumentTemplate+BoboPOS in a cgi environment, because that's all I need (and can use on my ISP's box). In the couple of things I've developed so far, a pattern has emerged that disturbs me: if you have a container object, when adding a child, the whole add thing is done in the parent. IIIRC, I fetched this design from the (Bobo) Trinkets example when I started: class Container.... add = HTMLFile(....) def do_add(self, childattrone, childattrtwo, childattrthree): d = self._items d[childattrone] = Child(childattrone, childattrtwo, childattrthree) self._items = d class Child... def __init__(self, childattrone, childattrtwo, childattrthree): .... edit = HTMLFile(....) def do_edit(self, childattrone, childattrtwo, childattrthree): .... The Container, IMHO, "knows" too much about the Child in this case, and it's hard to modify the attribute set of the Child class. Am I doing something wrong? Is there a design pattern here I'm not aware of? Regards, Cees From mj@antraciet.nl Wed Mar 3 09:24:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:24:44 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990303102401.00bb1310@lisp.atmm.nl> At 18:31 04/03/99 , Jay Ashton wrote: >My problem now is that when I try to open my db connection (exactly the >same connection that was working with 1.9 & ZopeHTTPServer) I get the >following error from IIS: > >>HTTP Error 400 >>400 Bad Request >>Due to malformed syntax, the request could not be understood by >>the server. The client should not repeat the request without modifications. I have exactly the same problem with an Access database, same error. I'll file a bug report. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Wed Mar 3 10:10:24 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:10:24 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Message-ID: <36DD0A90.1FC53ED0@pop.vet.uu.nl> Phil Harris wrote: > > Cheers from all involved. Thanks! This implies you're involved in the ZDP as of now, right? :) Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:12:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:12:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <19990302133414.09101@amber.org> Message-ID: <36DD0B22.7681AC07@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > > Excellent! > > > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > > the excellent public relations derived from hosting the ZDP. > > > > If not, I can probably provide resources (within reason :-) for this. These are good ideas (and thanks Chris for the offer!), but Ken Manheimer later on in the list is offering space on www.zope.org, and that would of course be perfect. Thanks again though! Martijn From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 10:13:32 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 10:13:32 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <00ab01be655e$7e558e60$5c773fc1@ml.uwcm.ac.uk> If ther's anything I can do, let me know. Ain't collaboration wonderful? Phil ----- Original Message ----- From: Martijn Faassen Cc: Sent: Wednesday, March 03, 1999 10:10 AM Subject: Re: [Zope] [ZDP] Announcing the Zope Documentation Project >Phil Harris wrote: >> >> Cheers from all involved. > >Thanks! This implies you're involved in the ZDP as of now, right? :) > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From andreas@mtg.co.at Wed Mar 3 10:35:57 1999 From: andreas@mtg.co.at (Andreas Kostyrka) Date: Wed, 3 Mar 1999 11:35:57 +0100 (CET) Subject: [Zope] Bobo distribution In-Reply-To: Message-ID: On 2 Mar 1999, Andrey V Khavryutchenko wrote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it is > taken from the web away. ftp://heaven.oeh.univie.ac.at/pub/mirrors/bobo-mirror/bobo/ Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98. From M.Faassen@vet.uu.nl Wed Mar 3 10:52:32 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:52:32 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF640190BED65@GANDALF> Message-ID: <36DD1470.531A427@pop.vet.uu.nl> Ken Manheimer wrote: > > Martijn Faassen wrote: > > > Hereby I announce in absolute adhoc anarchistic fashion the Zope > > Documentation Project. The Zope Documentation Project aims to generate > > documention on anything Zope. > > Thank you, Martijn, you've made my day! This is extremely cool. I'm glad I made someone's day. :) > As you might expect, here at digicool we're yearning to produce more and > better documentation, and, as with other things, we want to have more > time and energy to do it than we do. It was getting obvious that this was so. You guys all did a great job, and still are doing a great job, but the volume of questions and documention requests has exploded in the mean time. Which is great, in fact, of course, as it shows people are interested. [snip] > Some thoughts: > > - We would be happy to provide a mailing list or two for you all This would be great! We probably don't want to be spread out too much so one mailing list would be best (zdp@zope.org?). I also intend to make regular announcements of ZDP's progress (and some advertising to get people more involved in the project) on the main Zope list (or future multiple main Zope lists :). Right now though to keep the ball rolling I'll be using the normal list to send out messages. > - If it makes sense (logistically, for us as well as for you), we could > host the FAQ stuff or whatever on zope.org. This we'll have to discuss - > both what all might want, and what we can safely and effectively do... Zope.org would I think be the ZDP's favorite place to be hosted on, so that'd be very nice. Your thoughts on how we could best arrange this (who gets manage access to the place, if we develop in a branch we export to you, or develop in there directly, or use FTP, or possibly something else, etc) are welcome. > (I've been thinking about requirements for a collaborative FAQ > mechanism, which can be tricky if you want it to be available for > contribution to the community in general, yet still remain organized > enough for people to find what they're seeking. An interesting > problem...) Independently (for local purposes) I've been thinking about making a FAQ wizard product myself, but I got stranded somewhere in the beginning (my laments I posted some time ago to the list :). But at least I've given some thought to the design. Now Amos made one, and we can build on that. The use of the tree tag is nice, but probably a simple list is more useful in some cases (one can do a text search in it, for instance). From my cursory glance at the management screens of the example, it seems that it's not hard to produce that. What would also be nice is some way to simply generate plain ascii text versions of the FAQ as well, along with possibly some other versions. We could also think about generating DocBook SGML (which then can be converted in a lot of different formats with for instance the Linux SGMLtools 2.0). I haven't given too much thought to collaboration mechanisms. It would be useful to have the ability to easily move questions around in the list from one section to the other. My plan is to early on just get any question/answer pairs we can come up with (from mining the mailing list, documentation, and whatever people contribute). Later on we can then organize these in categories, once the pattern becomes clear (likely we'd have a DMTL section, for instance, and an installation section). If there's flexibility in moving questions around the FAQ might be developed more quickly. People could contribute question/answer pairs (or just questions) in some 'contribution area' and the managers of the list can then edit these and move them to the right sections of the list after doing so. The contribution area should still be visible for everybody, so that even the raw entries can be useful. I'm brainstorming right now, so here's another idea: if someone sees a question in the 'contributed' area that he knows the answer to, that person should be able to write in an answer. Even with the already edited questions in the main list it would be useful if people could leave comments ("I tried this but it didn't work for such and such reason. But if I did this and that, I got it working."). The editors can then later review all that's added and integrate it into the main text. Right now I intend to just assemble a big raw plaintext file (structured text!), though; anyone can work with these. It's good to keep the process moving. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:55:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:55:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> Message-ID: <36DD1536.1ADF8CD4@pop.vet.uu.nl> Martijn Pieters wrote: > > At 17:54 02/03/99 , Martijn Faassen wrote: > >Hi there, > > > >Hereby I announce in absolute adhoc anarchistic fashion the Zope > >Documentation Project. The Zope Documentation Project aims to generate > >documention on anything Zope. > > > > I know it is against netiquette to send *me too!* messages, but I'm doing it > anyway... As long as the *me too!* message doesn't include the entire previous message body it's not against my personal netiquette. :) > Just to show support, count me in. I allready started rewriting the > AUTHENTICATED _USER doc and the tree tag info. Shows of support are *great* netiquette. :) Thanks! Regards, Martijn From Oliver Thuns Wed Mar 3 11:24:46 1999 From: Oliver Thuns (Oliver Thuns) Date: Wed, 03 Mar 1999 12:24:46 +0100 Subject: [Zope] ZServer (FTP): socket.error: host not found Message-ID: <199903031225.EAA23367@zope.codeit.com> >It works for me. Check to be certain that your DNS has a PTR record for >your host. Winsock is SUPPOSED to support this for "localhost" even >without DNS, but if you're multi-homed that may be a problem. I have no DNS, it's a local system only. I'm using Windows 95 and this doesn't work. But it should no problem to "fix" the ftp_server. The IP_ADDRESS could set in start.py and this address is used by the http_server module, but not by the ftp_server module. >> If I start ZServer under Windows I get the following error ind the >> ftp_server module. This can be easily fixed by changing line 57 and >> inserting the IP, but this is not very nice. Could you fix this? >> >> Traceback (innermost last): >> File "start.py", line 20, in ? >> import ZServerFTP >> File "ZServerFTP.py", line 158, in ? >> from medusa.ftp_server import ftp_channel, ftp_server >> File "medusa\ftp_server.py", line 57, in ? >> IP_ADDRESS = socket.gethostbyname (socket.gethostname()) >> socket.error: host not found From julian@zereau.net Wed Mar 3 13:01:30 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 13:01:30 -0000 (GMT) Subject: [Zope] count of items in group? Message-ID: Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture). --- Julian Morrison Programmer (Zereau Ltd) From sfranke@cdc-group.com Wed Mar 3 13:01:07 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Wed, 3 Mar 1999 14:01:07 +0100 Subject: [Zope] Strange problem calling a base classes method Message-ID: <01E40461E003D21195CC0080296495D80B12B3@gates.cdc-group.com> While debugging a Product that inherits from OFS.Folder stumbled across the following problem (copied from the debugger command line stopped inside one of my Product's methods): >>> self.__class__.__bases__[0].__bases__[3].__bases__[1] >>> isinstance (self, OFS.CopySupport.CopySource) 0 >>> (self.__class__.__bases__[0].__bases__[3].__bases__[1] is OFS.CopySupport.CopySource) 1 The first line says self is an instance of OFS.CopySupport.CopySource, the second says it's not. The class objects are identical. My problem is that I'm not able to override one of OFS.CopySupport.CopySource's methods and to call the base classes method from inside. At that point I get a TypeError: unbound method must be called with class instance 1st argument which usually occurs when calling an unbound method with an instance of the wrong class. I'm clueless.. Stefan From mj@antraciet.nl Wed Mar 3 13:37:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 14:37:04 +0100 Subject: [Zope] count of items in group? In-Reply-To: Message-ID: <4.1.19990303142401.00b9a7f0@lisp.atmm.nl> At 14:01 03/03/99 , julian@zereau.net wrote: >Using the "in" tag's grouping capability, is there any way to get the count of >items in that group? I need this so I can have a table with one row per item >and a cell rowspanned for all the group's items (eg: related products and their >picture). > No, there isn't. You will have to use the SQL statement, to add a calculated value column to it's output. You should be able to use COUNT to achieve this. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Wed Mar 3 13:54:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:47 -0500 Subject: [Zope] ZPublisher and creating children Message-ID: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Cees wrote: > The Container, IMHO, "knows" too much about the Child in this > case, and > it's hard to modify the attribute set of the Child class. Am I doing > something wrong? Is there a design pattern here I'm not aware of? Actually this example shows the beauty of Zope/Bobo programming -- the code looks completely like normal Python code, no CGI hackery involved. Anyway, this is really a Python question, IMO. You don't the arguments to the Child's constructor to be hardwired in the Parent, right? You could take a route where pass a dictionary, e.g. REQUEST, into the Child's constructor and let it figure out for itself what it needs. This feels less OO and doesn't let Zope/Bobo help you with type conversions and raising exceptions for missing arguments. --Paul From Paul@digicool.com Wed Mar 3 13:54:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:49 -0500 Subject: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAC0@GANDALF> Martijn wrote: > I have exactly the same problem with an Access database, same > error. I'll file > a bug report. Good timing. We are planning a Collector Day At The Beach pizza party on Friday. We'll gather everybody together for a couple of hours, discuss a bunch of submitted issues, and try to clear them out. I'll articulate a policy on support within a week. We still haven't emerged from our network hell -- our dedicated line hasn't been installed yet -- but things are slowing getting under control. I want to double the number of people working here within two months. If anybody wants a job at Zope HQ, email me! --Paul From Paul@digicool.com Wed Mar 3 13:54:50 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:50 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Phil wrote: > If ther's anything I can do, let me know. > > Ain't collaboration wonderful? Count me in as well. I'm meeting with some folks today to get a Zope training course scheduled. I'll create the preliminary docs which they will improve and use for the course. Thus I'll have some some material for a (perhaps four day) training course to contribute. BTW, is there any interest here in a Zope training course? --Paul From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 13:48:56 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 13:48:56 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> You thinking of running one in UK 8^) ----- Original Message ----- From: Paul Everitt To: Phil Harris Cc: Sent: Wednesday, March 03, 1999 1:54 PM Subject: RE: [Zope] [ZDP] Announcing the Zope Documentation Project > >Phil wrote: >> If ther's anything I can do, let me know. >> >> Ain't collaboration wonderful? > >Count me in as well. I'm meeting with some folks today to get a Zope >training course scheduled. I'll create the preliminary docs which they >will improve and use for the course. Thus I'll have some some material >for a (perhaps four day) training course to contribute. > >BTW, is there any interest here in a Zope training course? > >--Paul From M.Faassen@vet.uu.nl Wed Mar 3 13:57:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 14:57:43 +0100 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Hi everybody, Here is a start. I just randomly browsed the mailing list and created a completely uncategorized set of questions and answers for the FAQ. I even snuck in a question of myself, see if you can answer it. :) If you see a problem with some of these questions or answers, send a followup with suggested corrections to the list and I'll include them in the FAQ. If you have more question/answer pairs, go ahead and followup too. I prefer these things to appear in the list (in a thread, and marked by [ZDP]) for now, as this might stop people from writing the same FAQs twice. I hope in a while we'll get somekind of collaborative FAQ environment going that makes all this easier. I'd prefer additions to the FAQ in StructuredText for now. See what follows for an example of the format I have in mind. If you think another format works better feel free to convert. (yes, that's the theme of open source; if you want something done differently, feel free to do the work to change it :). Here's what I have so far, enjoy! * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use: <!--#var "external_method_name(arguments)"--> to call any External Method in the folder (or acquired by the folder). The more explicit alternative is: <!--#var expr="external_method_name(arguments)"--> The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). From cg@acriter.com Wed Mar 3 14:09:59 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 15:09:59 +0100 Subject: [Zope] ZPublisher and creating children References: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Message-ID: <36DD42B7.7C838624@acriter.com> Paul Everitt wrote: > Cees wrote: > > The Container, IMHO, "knows" too much about the Child in this > > case, and > > it's hard to modify the attribute set of the Child class. Am I doing > > something wrong? Is there a design pattern here I'm not aware of? > > Actually this example shows the beauty of Zope/Bobo programming -- the > code looks completely like normal Python code, no CGI hackery involved. > > Anyway, this is really a Python question, IMO. You don't the arguments > to the Child's constructor to be hardwired in the Parent, right? Well, the underlying issue is the stateless-ness of the whole thing. In normal python, you'd create an empty child, call the child's editing form so the user can enter initial data, and only after the user's commit add the child to the container: def addChild(self): newChild = Child() if newChild.editForm() == true: container.append(newChild) in short. I've attempted this in the ZPublisher environment, but to no avail - either it didn't work at all or it got very messy (with the Child needing to know about the Parent, etcetera). I must say, I was under a bit of time pressure last night when looking for alternatives (wanted to have a beta release on my website before breakfast), I haven't got around playing with hidden form variables etcetera yet - that could work. Just hoped somebody on the list here would have a canned answer - I'm a lazy guy ;-) From tony.mcdonald@ncl.ac.uk Wed Mar 3 14:41:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 3 Mar 1999 14:41:53 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: Hi all, This is quite a long email where I ask a lot of questions about Zope, but I hope you'll be lenient with me as I think I have a few hard decisions to make! Some background: I'm one of the web developers here, with a remit to implement a curriculum database that can; (a) support the Medical Faculty here (b) get rolled out to three other Medical-related sites, each with their own 'look and feel' (c) possibly implement a University-wide curriculum database. The curriculum database is essentially delivering online study guides (over 100 for each Faculty) whose source is originally from very well marked up Word Documents. In addition, we include multiple choice questions, file upload of lecture notes etc. and some 'active' web pages showing dynamical processes in medicine etc. The curriculum database needs to be searchable across its entire breadth (although initially restricted to the one site), so that students and faculty can find occurences of, say, 'lung cancer' in lecture resources - this is to plan for curriculum management, so that we can find out if we're pushing subjects too much (or indeed, whether we're pushing a subject at all!). We have other applications (nearly all of which are written in Perl/PHP3) and want to seemlessly integrate them into the curriculum database. Currently we do all our development work on Unix, using Apache virtual web servers, MySQL as our database engine and Perl running as a CGI for most of our applications. My input has been to introduce PHP-3 (an Apache module with a bulit-in XML parser) and some XML knowledge to the group. I've been looking at a scenario where our study guides are converted in XML using Omnimark and held as static XML documents in a database. They are then rendered into HTML/RTF and put into static web directories. The student can run a program that extracts elements from selected XML documents and creates a customised set of HTML pages or RTF document that is built for them 'on the fly'. My manager was a bit worried about all these static pages lying about and to be honest so am I, but extracting the relevant XML from a database to render into individual HTML pages seems a massive drain on the system. I found out about Zope Monday morning, dl'ed it, installed it, got one or two things working... and have been worried sick ever since. My problem? is that I can see how Zope can do so much for us, but it seems to need a hell of a gut-wrench to do so. There also doesn't seem to be an easy 'half-way' house to move to Zope. I've read a lot of the documentation, and am doing so constantly, but the wisdom of the list would be very helpful indeed. The questions: a) Is there a way for us to 'dump' the non-dynamic parts of a Zope database into static HTML pages. This would act as a way to say to the team "look, we have a parachute!". b) Can I integrate with the Perl/PHP3 programs that we have (the Perl programs are mainly .cgi, but the PHP3 programs are server-side scripted, and as such are embedded into the HTML itself). This is so that I can c) Is there any way of using the XML documents that I'm creating into the database and parsing them to produce either HTML or RTF output? d) I know that this a terrible question to ask... but is Zope likely to 'remain' open-source (we're worried about getting stuck with a proprietary system)?. e) Can I 'point' an Apache virtual server to run a Zope cgi (ie dropping the :port requirment). f) I'd like to have the option to have user authentication information coming from a database - is this possible? g) We have something like 200 main level directories holding the study guides, each with up to 200 files in them - is that pushing the Zope database too far? h) We also need resources such as QuickTime movies, images PowerPoint slides etc. to be uploaded - would they sit in the database or can they be held somewhere else (and what happens about file name conflicts)? i) Does Zope have the equivalent of 'server logs', which we use for research. j) Is it possible to have a 'pointer' at a location in the Zope database that will point to a 'real, honest to goodness' HTML file on the server (ie something like a redirect..oops I think I may have answered my own question) and lastly k) What kind of loads have people put Zope under (10,000 +hits a day, 100k?). We have one application which has 170 Medical Students sitting in front of screens and clicking a button at the same time (they're selecting their final year options) which then starts 170 CGI-based Perl processes off interrogating and updating the database. This really grinds the system down... I hope that I haven't bored everyone to tears here - it's just that Zope seems to do an awful lot of what I need, and I'd really like to know what I'm letting myself in for if I start using it for everything I do.... many many thanks, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From michel@digicool.com Wed Mar 3 14:39:57 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 09:39:57 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BAC2@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Wednesday, March 03, 1999 3:21 AM > To: Martijn Pieters > Cc: zope@zope.org > Subject: Re: [Zope] AUTHENTICATED_USER, and what you can do with it. > > > > > What you could do, is write your own UserFolder/User combo, > that stores a > > last-access time on the User object, and checks for this > every time a user is > > authenticated. If the difference is greater than, say 15 > minutes, you force a > > reauthentication by raising a permission denied. > > I tried playing with this once upon a time, but I found that > the stupid > browser still cached the original result and would continue > to use it after > the failed login/relogin combination. Most frustrating. > Cookies or passing around secret messages would be the way to avoid this, don't use Basic authentication at all. The UserDB product shows off a User Folder than uses cookies, and possibly today I am releasing a User Folder product that authenticates off of a flat file, like /etc/passwd for alpha testing which also uses either Basic or Cookie auth. If you use Cookie auth you are presented with a login/logout screen to set/clear the cookie. -Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From luke@geeklife.com Wed Mar 3 15:17:35 1999 From: luke@geeklife.com (Luke Duff) Date: Wed, 3 Mar 1999 07:17:35 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903031517.HAA31270@hipmail1.gohip.com> Thanks for the help, but... My problem is a little bit harder than that. The data in field2 is date *and* time. So like this: field1 field2 ------ --------------- red 3/1/99 10:00 AM blue 3/1/99 11:00 AM green 3/1/99 03:00 PM brown 3/2/99 10:00 AM yellow 3/2/99 04:30 PM I've seen in the guide where you can format a data field when outputting, but how do actually extract the day-of-the-month number and put it in a temp variable. The pseudo-code I've used before to do this before is: tempday = 0 for each record if tempday<>dayofmonth(datefield) then print out a header print out other fields tempday = dayofmonth(datefield) next I'm just having a little trouble translating that into DTML. Creating a simple temporary variable seems overly complicated. Luke ============================================================ Martijn Pieters wrote: At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: >> >>>field1 field2 >>>>------ ------ >>>>>red 3/1/99 >>>>>>blue 3/1/99 >>>>>>>green 3/1/99 >>>>>>>>brown 3/2/99 >>>>>>>>>yellow 3/2/99 >>>>>>>>>> >>>>>>>>>>>I'd like to render this in DTML from the data: >>>>>>>>>>>> >>>>>>>>>>>>>Monday, March 1 >>>>>>>>>>>>>> red >>>>>>>>>>>>>>> blue >>>>>>>>>>>>>>>> green >>>>>>>>>>>>>>>>>Tuesday, March 2 >>>>>>>>>>>>>>>>>> brown >>>>>>>>>>>>>>>>>>> yellow >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>How do I do that? >>>>>>>>>>>>>>>>>>>>>> You can use the #in tag's grouping features for this. ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From michel@digicool.com Wed Mar 3 15:17:04 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 10:17:04 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Wednesday, March 03, 1999 9:42 AM > To: zope@zope.org > Subject: [Zope] Some tough questions about zope... (long) > > > Hi all, > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! > > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. > > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > If you continue to use it you will get the Zope Zen. :) > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". This begs the question we've asked around here so many times, 'What is data?' Everything in Zope is Dynamic, in my thoughs, 'non-dynamic' is a Document with not DTML in it. But there is no way for Zope to sniff a document and see if it contains dynamic structures or not. Perhaps what could be done is to write a simple MyDocument that you stipulate in policy never to have dynamic stuff in it, and then write a crawler scripts that sucks out all such documents into a local file structure. There maybe easier solutions. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can ...do what? ;) Zope can call your cgi scripts just like they are, as URLs. They would, of course, have to be external to Zope and if you have a bunch of little ones you may find it better (and a damn sight easier) to rewrite them as Python in Zope as external methods. (DTML is also a rather powerful language for being so simple). Just leave your PHP stuff in your documents; Zope will parse out the DTML and return it to the server, which will parse out the PHP stuff and return it to the browser. In fact, you can probably make DTML and PHP work together nicely and simplify much of your PHP code. In the quickie case you don't need to change your PHP. > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? Zope doesn't contain an XML parser. You would need to do this with an external package. > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. Yes. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yes. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Yes. There is an unsupported open source User Folder Product called UserDB, where you tell it how to query your DB and it uses that for authentication. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Not at all. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? ooo. Someone has yet to write an ExternalFile product (though I suspect it would be fairly simple) to add objects to the db that refer to files outside the db. For now you can upload them as File objects to be contained entirely in the db. The same rules that apply to file name conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't have the same object id in the same folder. (With a minor non-exception of aquisition, all lower folders can see the contents of higher folders, but if you place an object in a lower folder with the same id as an object in a higher folder the lower object will override the higher object. Get that?) > i) Does Zope have the equivalent of 'server logs', which we > use for research. Since Zope is served through a web server you can continue to use the server logs. In other words, No. ;) Object by Object logging is something we've discussed, but would require *a lot* of thought and work. > j) Is it possible to have a 'pointer' at a location in the Zope > database that will point to a 'real, honest to goodness' HTML file on > the server (ie something like a redirect..oops I think I may have > answered my own question) If that file is being served up by Apache then you can just use it's URL as a 'pointer'. > and lastly > k) What kind of loads have people put Zope under (10,000 +hits a day, > 100k?). We have one application which has 170 Medical Students > sitting in front of screens and clicking a button at the same time > (they're selecting their final year options) which then starts 170 > CGI-based Perl processes off interrogating and updating the database. > This really grinds the system down... Ah yes, the inevitable benchmarking question. There are lots of issues here, memory footprint vs processor speed vs concurrent access...etc. The quick word is, Zope is fast and it will get much faster. Zope is currently not concurrent but will be in 2.0. Zope+Apache is a bit slow due to the pcgi bottleneck and is much improved by using ZServer. As it stands now, ZServer is something like twice to 10 times faster than Zope+Apache. Medusa (the web core of ZServer) serializes the requests into Zope at the moment, but when 2.0 comes out it will be the fastest web application platform on earth. Don't quote me. > > I hope that I haven't bored everyone to tears here - it's just that > Zope seems to do an awful lot of what I need, and I'd really like to > know what I'm letting myself in for if I start using it for > everything I do.... No problemo. > > many many thanks, > tone. -Michel > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mj@antraciet.nl Wed Mar 3 15:16:17 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:16:17 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Message-ID: <4.1.19990303155923.00b8acb0@lisp.atmm.nl> Let me try to answer (some) of your questions: >The questions: >a) Is there a way for us to 'dump' the non-dynamic parts of a Zope >database into static HTML pages. This would act as a way to say to >the team "look, we have a parachute!". I will be looking into this, as soon as I have the time. The answer for now is: probably, because everyone wants to download a local copy of part of any website at some point. There are tools out there to do this, I haven't looked for them yet. >b) Can I integrate with the Perl/PHP3 programs that we have (the Perl >programs are mainly .cgi, but the PHP3 programs are server-side >scripted, and as such are embedded into the HTML itself). This is so >that I can Just run Zope via Apache (see below). >c) Is there any way of using the XML documents that I'm creating into >the database and parsing them to produce either HTML or RTF output? Python is very capable of parsing XML. You will have to write an External Method to handle this, though. An example of XML parsing can be found at http://www.zope.org/Download/Contrib/XMLConfig.tar.gz. This Zope Product parses a static XML file for use in Zope. >d) I know that this a terrible question to ask... but is Zope likely >to 'remain' open-source (we're worried about getting stuck with a >proprietary system)?. I certainly do hope so. I intent to use it en expand on it heavily anyway, and sodo others. These extensions will generally be Open Source themselves, making it hard for Digital Creations to pull Zope out of the Open Source domain. >e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >dropping the :port requirment). Yes. The doc/WEBSERVER.txt will start you on this. Be warned though, there are some problems with Apache and Zope integration, for reasons that others are better equiped to explain. >f) I'd like to have the option to have user authentication >information coming from a database - is this possible? Yes, you can find the UserDB Product at http://www.zope.org/Download/Prereleases/UserDB/UserDb-1.2.0-nonbin.tar.gz. >g) We have something like 200 main level directories holding the >study guides, each with up to 200 files in them - is that pushing the >Zope database too far? Nah, Zope has handled much more than that allready. Ask Paul =). >h) We also need resources such as QuickTime movies, images PowerPoint >slides etc. to be uploaded - would they sit in the database or can >they be held somewhere else (and what happens about file name >conflicts)? Zope can store any filetype you want it to. Filename conflicts are handled the same way a filesystem handles them: In the same Folder, you cannot have two objects with the same name at once. But because it is a hierachical system, you can use the same name in two different folders. >i) Does Zope have the equivalent of 'server logs', which we use for research. ZopeHTTPServer's output is it's serverlog. You can start it up with STDOUT redirected into a file. When you use Apache as your webserver, all requests will be logged through Apache itself. >j) Is it possible to have a 'pointer' at a location in the Zope >database that will point to a 'real, honest to goodness' HTML file on >the server (ie something like a redirect..oops I think I may have >answered my own question) You said it yourself =). >and lastly >k) What kind of loads have people put Zope under (10,000 +hits a day, >100k?). We have one application which has 170 Medical Students >sitting in front of screens and clicking a button at the same time >(they're selecting their final year options) which then starts 170 >CGI-based Perl processes off interrogating and updating the database. >This really grinds the system down... Zope will be much much faster. I can't give you any direct numbers, maybe someone else on this list can. You basicly don't have the overhead of starting a fullblown new process for every request, and Zope pools Database connectiosn for you, so you don't have the initial connection overhead either. And, your code isn't compiled everytime, like with Perl. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 3 15:25:47 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 10:25:47 -0500 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: ; from Tony McDonald on Wed, Mar 03, 1999 at 02:41:53PM +0000 References: Message-ID: <19990303102547.A6002@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 02:41:53PM +0000, Tony McDonald wrote: ,----- | Hi all, | This is quite a long email where I ask a lot of questions about Zope, | but I hope you'll be lenient with me as I think I have a few hard | decisions to make! I know the feeling. I was choosing between ColdFusion and Zope for developing my new application and had some similar questions. Ultimately, I chose Zope. [nice application description deleted] | a) Is there a way for us to 'dump' the non-dynamic parts of a Zope | database into static HTML pages. This would act as a way to say to | the team "look, we have a parachute!". Right now, there isn't. This question has come up repeatedly on the list, to the point where DC is getting sick of hearing it and thinking of actually implementing something :) They have said it would be pretty easy, and I believe it. I think the basic idea is to write a method that will go through the Folders and use the DocumentTemplate code to render out the pages. | b) Can I integrate with the Perl/PHP3 programs that we have (the Perl | programs are mainly .cgi, but the PHP3 programs are server-side | scripted, and as such are embedded into the HTML itself). This is so | that I can If you're using Zope with Apache, you use mod_rewrite to get the authentication headers passed to Zope. You can also use mod_rewrite to decide how URLs map to content on your server. For example, you can have all of the content on your site go through your Zope.cgi, but /cgi-bin/* can go directly to your CGI or PHP files. You can access MySQL from Zope, PHP and Perl, so they can all use the same data source for the databases. | c) Is there any way of using the XML documents that I'm creating into | the database and parsing them to produce either HTML or RTF output? I'll leave this one to people more knowledgeable about XML. | d) I know that this a terrible question to ask... but is Zope likely | to 'remain' open-source (we're worried about getting stuck with a | proprietary system)?. I think it would be tough for DC to try to take it back at this point :) Even if DC did decide to not release any more updates to Zope, the community would probably continue working from the 1.10.2 code. Anyhow, DC had sound business reasons to release Zope as Open Source. Over time, they will likely get a lot of benefits by having done so and by encouraging outsiders (like us) to work with and improve Zope. | e) Can I 'point' an Apache virtual server to run a Zope cgi (ie | dropping the :port requirment). Yes. This uses a technique called Persistent CGI. It works quite well. There is also a hope that there will be better integration with Apache in the future. Also, as ZServer stabilizes, you may find good reason to migrate from Apache to it. | f) I'd like to have the option to have user authentication | information coming from a database - is this possible? There is an unsupported bit of code called UserDB which is designed for this. | g) We have something like 200 main level directories holding the | study guides, each with up to 200 files in them - is that pushing the | Zope database too far? Though I have no first hand experience with a Zope DB this large, the DC guys have said that they've worked with some very large DBs. | h) We also need resources such as QuickTime movies, images PowerPoint | slides etc. to be uploaded - would they sit in the database or can | they be held somewhere else (and what happens about file name | conflicts)? You could put them in either place. There would probably be some advantages to putting them in the database. For example, your standard Zope security rules will apply to the downloading and updating of the files. | i) Does Zope have the equivalent of 'server logs', which we use for research. I don't know about ZServer, but if you use Apache as your web server you will be able to use your standard server logs. | j) Is it possible to have a 'pointer' at a location in the Zope | database that will point to a 'real, honest to goodness' HTML file on | the server (ie something like a redirect..oops I think I may have | answered my own question) Yes, you can do a redirect. | and lastly | k) What kind of loads have people put Zope under (10,000 +hits a day, | 100k?). We have one application which has 170 Medical Students | sitting in front of screens and clicking a button at the same time | (they're selecting their final year options) which then starts 170 | CGI-based Perl processes off interrogating and updating the database. | This really grinds the system down... I've heard it said that Zope should be able to handle 500k hits or more on reasonable hardware. Of course, this depends on exactly what the server has to go through for each of those hits, etc. DC is also working on concurrency for Zope 2.0. This will probably enable you to handle a whole bunch of requests. `----- Good luck! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From mj@antraciet.nl Wed Mar 3 15:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:47:52 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903031517.HAA31270@hipmail1.gohip.com> Message-ID: <4.1.19990303163641.00a17d40@lisp.atmm.nl> At 16:17 03/03/99 , Luke Duff wrote: >Thanks for the help, but... > >My problem is a little bit harder than that. The data in field2 is date *and* >time. So like this: > >field1 field2 >------ --------------- >red 3/1/99 10:00 AM >blue 3/1/99 11:00 AM >green 3/1/99 03:00 PM >brown 3/2/99 10:00 AM >yellow 3/2/99 04:30 PM > >I've seen in the guide where you can format a data field when outputting, but >how do actually extract the day-of-the-month number and put it in a temp >variable. The pseudo-code I've used before to do this before is: > >tempday = 0 >for each record > if tempday<>dayofmonth(datefield) then > print out a header > print out other fields > tempday = dayofmonth(datefield) >next > You'll have to use SQL function for this. In MySQL you could do the following: SELECT field1, DATE_FORMAT(field2, "W, M d") as datefield FROM MyDB. Put this in a Z SQL Method, and then the following DTML will get you your results: ,
    Sorry, no colors in your query. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 15:57:23 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 10:57:23 -0500 (EST) Subject: [Zope] ZPublisher and creating children In-Reply-To: <36DD42B7.7C838624@acriter.com> Message-ID: On Wed, 3 Mar 1999, Cees de Groot wrote: > etcetera yet - that could work. Just hoped somebody on the list here would > have a canned answer - I'm a lazy guy ;-) > Everybody on this list is lazy ;-) This is my approach: First define a Webobject class that every object needs to inherit. The simplest could be just: class WebObject: def __init__(self,name): '''__init__(self,name) ''' self.name=string.replace(name,' ','_') def _set_root(self,root_obj,parent_path): '''_set_root(self,root_obj,parent_path) sets the root object and relative path. Note: one will never need to pass parent_path directly. I also need to have a reference to the root object so I can do stuff remotely similar to acquisition''' self.root=root_obj self.rel_path=parent_path+self.name+os.sep class Container(WebObject): def __init__(self,name): WebObject.__init__(self,name) ##Holds contents self._d={} def __getitem__(self, key): return self._d[key] def items(self): return self._d.items() def _do_add(self,object): '''_do_add(self,object) Adds object in container. Object MUST have inherited the WebObject class.''' name=object.name if hasattr(self,name) or self._d.has_key(name): raise ValueError,'Object with same name exists in WebFolder' d=self._d object._set_root(self.root,self.rel_path) d[name]=object self._d=d So you can create any object that has inherited the WebObject class independently and add it to the container instance. Pavlos From mj@antraciet.nl Wed Mar 3 15:58:14 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:58:14 +0100 Subject: [Zope] [ZDP] Tree FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <4.1.19990303153836.00a64c50@lisp.atmm.nl> My two cents on the tree tag: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: <!--#tree branches_expr="objectValues(['Folder'])"--> <A HREF="<!--#var URL1-->/<!--#var id-->"> <!--#var title_or_id--> </A> <!--#/tree--> * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: <A HREF="<!--#var URL0-->?expand_all=1"> Expand all</A>| <A HREF="<!--#var URL0-->?collapse_all=1"> Collapse all</A> <!--#tree--><!--#var id--><!--#/tree--> * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: <!--#tree single--><!--#var id--><!--#/tree--> More cents will follow. Martijn -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Wed Mar 3 16:44:20 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:44:20 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: >Here is a start. Great start! Could I suggest that there be FAQs for different catagories? My list would include: DTML external methods Win32 (maybe there are specific issues, if so I don't want to read about them :) SQL methods patches/hacks to Zope I am sure that I can find lots of work for you! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From zopelist@regalint.com Wed Mar 3 16:45:32 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:45:32 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> Message-ID: >You thinking of running one in UK 8^) Maybe Michigan/Ontario area? Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rkw@dataplex.net Wed Mar 3 16:47:07 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 3 Mar 1999 10:47:07 -0600 (CST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: This sounds like something we need. I know that I could use it. If folks will critique this design, I'll implement it. - - Proposed Access Method - - It is desired to be able to have "non DTML" files incorporated in a Zope URL system. These files might be static GIF files, quicktime movies, or just plain old HTML. Obviously, they might be "included" in a DTML page by simply referencing them directly by their URL. However, I can see cases where one would like the access to be under the control of the Zope system. For example, access controls might apply. I believe that we can achieve this by having an object which represents an ExternalFS mount point. In general, we map a URL onto a node of the FS. It would be directly analogous to a symbolic link (ln -s). The Zope mount point would enforce permissions just as if the file were loaded into the Zope DB. Objects can be "imported" without having them take up space in the database. Their creation and maintanence can be handled outside the Zope system. They are rendered by "cat"ing their contents. By permitting substitutions in the link, we can create effective reformatting of the visible FS. As an example, I am monitoring customer traffic. "mrtg" automatically generates graphs for each customer. In Zope, I could create customized displays by importing these files. By using the ExFS, I can update the graphics without affecting Zope. Further, assuming /mygraphs/today/customer1.gif /mygraphs/today/customer2.gif /mygraphs/yesterday/customer1.gif /mygraphs/yesterday/customer2.gif we can map them onto somewhere/KustomerA/graphs/today somewhere/KustomerA/graphs/yesterday by substituting a property of the Kustomer - - - Thoughts and/or suggestions? Richard On Wed, 3 Mar 1999, Michel Pelletier wrote: > ooo. Someone has yet to write an ExternalFile product (though I suspect > it would be fairly simple) to add objects to the db that refer to files > outside the db. For now you can upload them as File objects to be > contained entirely in the db. The same rules that apply to file name > conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't > have the same object id in the same folder. (With a minor non-exception > of aquisition, all lower folders can see the contents of higher folders, > but if you place an object in a lower folder with the same id as an > object in a higher folder the lower object will override the higher > object. Get that?) From mbernstein@profitscape.net Wed Mar 3 17:00:13 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:00:13 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Message-ID: <36DD6A9D.557592FB@profitscape.net> Paul Everitt wrote: > BTW, is there any interest here in a Zope training course? Yes, at least theoretically. What would be covered and is this an online or offline course? Michael Bernstein. From bkc@murkworks.com Wed Mar 3 16:17:07 1999 From: bkc@murkworks.com (Brad Clements) Date: Wed, 3 Mar 1999 12:17:07 -0400 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903031711.MAA29620@anvil.murkworks.com> On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. Time to move this to zope-dev? anyway, I think this sounds like a good idea. It harkens back to an inquiry I made about byte-serving PDF files. I don't want to dump my pdf's into the database. If you can implement this, I think I could implement byte-serving. Although byte-serve could be handled at the ZServer level, I think for large external files it'd be more effective at the "cat" level -B Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From kid@ans.net Wed Mar 3 17:26:15 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 12:26:15 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <19990303122615.A6474@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: ,----- | >Here is a start. | | Great start! | | Could I suggest that there be FAQs for different catagories? This is a good idea. I can see this FAQ growing very, very quickly. So, I would suggest that we start thinking about a hierarchy already... a couple suggestions below: | | My list would include: | Installation * building * win32 * freeBSD * etc. * server configuration * zap * apache * ZServer | DTML | external methods | Win32 (maybe there are specific issues, if so I don't want to read about | them :) I'm not sure if there will be many platform specific issues after installation... | SQL methods | patches/hacks to Zope | | I am sure that I can find lots of work for you! | | Phil A | | ------------------------------------------ | Philip Aylesworth zopelist@regalint.com | Regal International | | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From julian@zereau.net Wed Mar 3 17:31:31 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:31:31 -0000 (GMT) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903031711.MAA29620@anvil.murkworks.com> Message-ID: On 03-Mar-99 Brad Clements wrote: > On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > > >> This sounds like something we need. >> I know that I could use it. >> If folks will critique this design, I'll implement it. > > > Time to move this to zope-dev? > > anyway, I think this sounds like a good idea. It harkens back to an > inquiry I made about byte-serving PDF files. I don't want to dump my > pdf's into the database. > > If you can implement this, I think I could implement byte-serving. > > Although byte-serve could be handled at the ZServer level, I think for > large external files it'd be more effective at the "cat" level How safe would it be, to allow any random user to use the add menu to create arbitrary symlinks into the native file system tree? --- Julian Morrison Programmer (Zereau Ltd) From mbernstein@profitscape.net Wed Mar 3 17:32:20 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:32:20 -0800 Subject: [Zope] count of items in group? References: Message-ID: <36DD7224.67AED2C5@profitscape.net> julian@zereau.net wrote: > > Using the "in" tag's grouping capability, is there any way to get the count of > items in that group? I need this so I can have a table with one row per item > and a cell rowspanned for all the group's items (eg: related products and their > picture). Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit. Michael Bernstein. From julian@zereau.net Wed Mar 3 17:34:16 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:34:16 -0000 (GMT) Subject: [Zope] count of items in group? In-Reply-To: <36DD7224.67AED2C5@profitscape.net> Message-ID: On 03-Mar-99 Michael Bernstein wrote: > julian@zereau.net wrote: >> >> Using the "in" tag's grouping capability, is there any way to get the count >> of >> items in that group? I need this so I can have a table with one row per item >> and a cell rowspanned for all the group's items (eg: related products and >> their >> picture). > > Rather than using rowspan, use nested tables. I haven't done this in > Zope yet, but it was always my solution of choice in ColdFusion. It also > makes it easier to debug your layout in a WYSIWYG editor. It does, of > course, bloat your HTML a bit. It will work, and I'm going to have to in the short term, but I really would like the multiple columns for each item to line up down the page, without ugly fixed-width hacks. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 17:40:19 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 12:40:19 -0500 (EST) Subject: [Zope] Crossposting Message-ID: Is it possible to have a filter on the mailing lists that will drop any posts on the main zope site that appear to be cross-posted on the zope-dev site? Pavlos From zopelist@regalint.com Wed Mar 3 18:00:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 13:00:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <19990303122615.A6474@throwingcopper.ans.net> References: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Maybe by splitting up the FAQs we could split up the work, too! Have a different person/group resposible for each FAQ. Of course there would be nothing stopping some energetic type being involved with all of them :) Also, I think that HOWTOs of the Linux type would be a great idea. They have a person/group responsible for each HOWTO to keep it up to date and add/edit things as needed. I am just commenting from the sidelines. Right now I barely have time to scan through the zope-list! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Wed Mar 3 18:53:55 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 13:53:55 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 01:00:03PM -0500 References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <19990303135355.47418@amber.org> On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > Maybe by splitting up the FAQs we could split up the work, too! Have a > different person/group resposible for each FAQ. Well, I think it'd be nice if there was someone "responsible" for each major section, this would keep everyone from getting swamped. > Of course there would be nothing stopping some energetic type being > involved with all of them :) :-) I for one have no problem causing trouble in everyone's life! > Also, I think that HOWTOs of the Linux type would be a great idea. They > have a person/group responsible for each HOWTO to keep it up to date and > add/edit things as needed. You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and I'm sure Guido/Fred wouldn't mind us using this. It works real well, and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets you do the "bigger" stuff in a nice pretty way. What would also be nice is a list of "bigger" issues that people would liek to see explained more... something that's more than a single question. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rocon@pivot.net Wed Mar 3 20:28:27 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 3 Mar 1999 15:28:27 -0500 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Christopher G. Petrilli wrote:... >You can find a "howto" LaTeX stylesheet in the >Python CVS checkout, and I'm sure Guido/Fred >wouldn't mind us using this. It works real well, >and can target HTML, ASCII (I think), >Postscript, PDF, etc... this lets >you do the "bigger" stuff in a nice pretty way. Ok, I found: http://www.python.org/doc/howto/writing.html the link on that page: you can grab [Fred Drake's documentation distribution], and use... Is broken with a "Error 404: File Not Found" Searching for "LaTeX CVS" didn't quite get it can you please provide the links? Not only will this be good for the DOC project but also for general use in targeting HTML PDF etc....etc... TIA -bobo connor From michel@digicool.com Wed Mar 3 20:48:32 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 15:48:32 -0500 Subject: [Zope] etcUserFolder Product Message-ID: <613145F79272D211914B0020AFF6401907BACC@GANDALF> Greetings, (This is crossposted because it is a product anouncement, and contains interesting developer pointers) I've have massaged the source code for UserDb and created a new user folder products called etcUserFolder. This products authenticates off of a flat file of usernames:cryptedpasswords. If there is anything trailing the crypted password it is ignored, so any /etc/passwd file will work. It is generaly not recommended, however, to use your /etc/passwd file for security reasons. This is an unsuported product and has been written because it was asked for a few times, and I felt the community could use another good example of writing user folders. It also shows off cookie authentication which Brian perfected with UserDb. Here is the documentation: etcUserFolder requires a directory called 'etcUsers' in which to place your file containing the uid:pwd pairs. This directory may be an INSTANCE_HOME (typicaly your top level Zope dir), SOFTWARE_HOME (typicaly 'lib/python') or in the etcUserFolder directory. Jim wrote a nifty function called getPath that sniffs all of these places for a directory and file of your choosing. This function is included in etcUserFolder and will be included as a standard function of the next release. Other Product authors may find it interesting. Since the flat file is meant to be b/w compatable with /etc/passwd and htpasswd style files, there is no Role associated with the users it authenticates. You can specify a default role which is, by default, 'etcUser'. I have not done extensive testing of this, therefore it is a pre-release. Please send bug-reports and hopefully a patch to me (michel@digicool.com) http://www.zope.org/Download/Prereleases/etcUserFolder/etcUserFolder.tar .gz -Michel From phila@regalint.com Wed Mar 3 20:44:25 1999 From: phila@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 15:44:25 -0500 Subject: [Zope] DTML Method vs Document Message-ID: I just upgraded to 1.10.2 and I noticed that when creating a new document I have a choice of DTML document and DTML method. This seems useful. I noticed that all my DTML documents and DTML methods have the icon for a DTML method. Everything seems to work. What is the difference between a DTML document and a DTML method? Seems to me a method should not be surfable but they are. Is it possible to change my documents to DTML documents? Even just for housekeeping. One other unrelated question: What is a Principia Draft? ------------------------------------------------------------------- Philip Aylesworth Information Systems Manager phila@regalint.com PGP public key: http://www.regalint.com/PGPkeys/phila.html From petrilli@amber.org Wed Mar 3 21:05:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 16:05:07 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Wed, Mar 03, 1999 at 03:28:27PM -0500 References: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: <19990303160507.37050@amber.org> On Wed, Mar 03, 1999 at 03:28:27PM -0500, Robert OConnor wrote: >[Robert mentions problems with the links on the web site] I just had a quick exchange with Fred Drake (who handles most of the documentation duties for the Python organization), and he is aware of this problem, and has forwarded the issue to AMK who is responsible for teh HOWTO stuff. IN the mean time, he suggests grabbing the latex documentation whihc will have it all in it. If this is too painful, I can post a snapshot of the pieces taht are needed from the current CVS repository. The URL for the LaTeX documentation is: http://www.python.org/ftp/python/doc/latex-1.5.2b2.tgz Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jae@kavi.com Wed Mar 3 21:04:07 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:04:07 -0800 (PST) Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DD1470.531A427@pop.vet.uu.nl> Message-ID: On Wed, 3 Mar 1999, Martijn Faassen wrote: > What would also be nice is some way to simply generate plain ascii text > versions of the FAQ as well, along with possibly some other versions. We > could also think about generating DocBook SGML (which then can be > converted in a lot of different formats with for instance the Linux > SGMLtools 2.0). I would love to see this feature (generating DocBook SGML). I thought about something like this myself (for my howto), but I just don't have the time at the moment. I could probably find enough time to help out a little though. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Wed Mar 3 21:10:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 16:10:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: >Is broken with a "Error 404: File Not Found" >Searching for "LaTeX CVS" didn't quite get it >can you please provide the links? Try ftp://ftp.python.org/pub/python/doc/latex-1.5.2b2.tgz Thanks, Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tjg@avalongroup.net Wed Mar 3 21:06:43 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Wed, 03 Mar 1999 13:06:43 -0800 Subject: [Zope] ZMySQLDA Message-ID: <36DDA463.683D9460@avalongroup.net> Hi, I'm playing with Zope, and have been trying to get Zope to talk to MySQL using the MySQLDA. I'm running RedHat 5.2 Since there were caveats about having MySQL development enabled, and such, I downloaded the source distribution for MySQL and made it. It appears to be working very nicely. When I follow the procedures outlined in the README, the following happens: I run make -f Makefile.pre.in boot and everything works correctly. I then run make and get the following error. gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql -lmysqlclien t -lm -o MySQLmodule.so ld: cannot open -lmysqlclient: No such file or directory make: *** [MySQLmodule.so] Error 1 I did a locate on mysqlclient, and coudln't find the file. though I did find some called libmysqlclient. So I changed the both Setup and Setup.in to reflect that other name. however, I still get the above error. Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From jae@kavi.com Wed Mar 3 21:48:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:48:33 -0800 (PST) Subject: [Zope] ZMySQLDA In-Reply-To: <36DDA463.683D9460@avalongroup.net> Message-ID: On Wed, 3 Mar 1999, Timothy Grant wrote: > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. Your problem wasn't with the library, -lmysqlclient refers to libmysqlclient (think of the -l as short for lib). The problem probably was that libmysqlclient wasn't on the path gcc searched for libraries. This is controled by the -L argument (-L is library paths). So... here's what to do: 1. Get everything cleaned up (ie. back in the condition after first untarring ZMySQL). 2. Edit Setup.in, add -L to the end of the last line. 3. Proceed as usual (make -f Makefile.pre.in boot; make) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From ron@rotflol.cx Wed Mar 3 21:57:31 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 22:57:31 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Your message of "Wed, 03 Mar 1999 10:17:04 EST." <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903032157.WAA00348@heaven.rotflol.cx> > > > > -----Original Message----- > > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > > Sent: Wednesday, March 03, 1999 9:42 AM > > To: zope@zope.org > > Subject: [Zope] Some tough questions about zope... (long) > > > > > > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > > programs are mainly .cgi, but the PHP3 programs are server-side > > scripted, and as such are embedded into the HTML itself). This is so > > that I can > > ...do what? ;) Zope can call your cgi scripts just like they are, as > URLs. They would, of course, have to be external to Zope and if you > have a bunch of little ones you may find it better (and a damn sight > easier) to rewrite them as Python in Zope as external methods. (DTML is > also a rather powerful language for being so simple). Just leave your > PHP stuff in your documents; Zope will parse out the DTML and return it > to the server, which will parse out the PHP stuff and return it to the > browser. In fact, you can probably make DTML and PHP work together > nicely and simplify much of your PHP code. In the quickie case you > don't need to change your PHP. If this would work (having Apache parse the PHP code in the pages returned by Zope), you would save me a lot of painfull converting working PHP code (mainly database related) and I would gradually convert from PHP/Apache to Zope/Python/Apache. Pleaz tell me how this neat trick is done... (maybe some fiddling with the headers???) Hint: Creating a DTML Document/method with the following contents doesn't fool Apache in rendering PHP!

    Give me the (PHP) money...

    Read the phpinfo between the lines... NOT!!

    -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From raver@box.dust.za.net Wed Mar 3 22:02:07 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 3 Mar 1999 23:02:07 +0100 Subject: [Zope] Data from forms into a database - how? Message-ID: <19990303230207.A1292@RaVER.duck.org> Hello! Don't laugh at me - this is probably a very simple thing to do, but as I'm new to zope and can't find description of how this is accomplished I seek your help. I get data out of my database (MySQL) by querying, but how can I have data collected by forms showeled into the database? Appreciate any help I can get! Sture Lygren From michel@digicool.com Wed Mar 3 22:24:41 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 17:24:41 -0500 Subject: [Zope] DTML Method vs Document [ZDP?] Message-ID: <613145F79272D211914B0020AFF6401907BACD@GANDALF> > -----Original Message----- > From: Philip Aylesworth [mailto:phila@regalint.com] > Sent: Wednesday, March 03, 1999 3:44 PM > To: Zope List > Subject: [Zope] DTML Method vs Document > > > I just upgraded to 1.10.2 and I noticed that when creating a > new document I > have a choice of DTML document and DTML method. This seems useful. I > noticed that all my DTML documents and DTML methods have the > icon for a > DTML method. Everything seems to work. > > What is the difference between a DTML document and a DTML > method? Seems to > me a method should not be surfable but they are. > This is my take on the situation. As far as I can tell this is pretty deep voodoo. A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called foo, and it contained a DTML Method called bar, then bar is a method of foo. foo doesn't contain the object bar, it has the method bar bound to it. What this means is that from bar's point of view, 'self' is a Folder object, and any properties it sees are properties of foo, not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of DTMLDocument.DTMLDocument. They can manage their own Properties (because they inherit PropertyManager.PropertyManager). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question 'Am I showing some other objects content through me?' is Yes. DTML Documents should be used when the answer to the question 'Am I the content I want to display?' is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. (BTW Martijn, perhaps the above should go in the FAQs) If this isn't clear to you don't worry, it isn't even really clear to me. There is no way, but there really should be a way to convert between the two because the roles for a DTML widget may change from Method to Document as your system evolves. This will probably be a feature in the next release. (This is the answer to the question 'Can I convert between DTML Meths and DTML Docs?' for the FAQs) > Is it possible to change my documents to DTML documents? Even just for > housekeeping. > See directly above. > One other unrelated question: What is a Principia Draft? > Ugh..good question... I need to find that one out myself. > > > ------------------------------------------------------------------- > Philip Aylesworth Information Systems Manager > phila@regalint.com > PGP public key: http://www.regalint.com/PGPkeys/phila.html > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mjd@networklogic.com Wed Mar 3 22:23:44 1999 From: mjd@networklogic.com (Maurice Davis) Date: Wed, 03 Mar 1999 14:23:44 -0800 Subject: [Zope] Version 0.3 of ZPyGreSQLDA Message-ID: <36DDB670.4B15C6A4@networklogic.com> Version 0.3 of ZPyGreSQLDA has been posted to the Contrib area of the Zope site. This version upgrades to PyGreSQL 2.3 and compiles under Zope-1.10.2. It now closes the backend connection to postgres when the database connection is shut down from Zope. Maury From ron@rotflol.cx Wed Mar 3 22:42:30 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 23:42:30 +0100 Subject: [Zope] ZMySQLDA In-Reply-To: Your message of "Wed, 03 Mar 1999 13:06:43 PST." <36DDA463.683D9460@avalongroup.net> Message-ID: <199903032242.XAA02180@heaven.rotflol.cx> > Hi, > > I'm playing with Zope, and have been trying to get Zope to talk to MySQL > using the MySQLDA. > > I'm running RedHat 5.2 > > Since there were caveats about having MySQL development enabled, and > such, I downloaded the source distribution for MySQL and made it. It > appears to be working very nicely. > > When I follow the procedures outlined in the README, the following > happens: > > I run make -f Makefile.pre.in boot and everything works correctly. > > I then run make and get the following error. > gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 > -DHAVE_CONFIG > _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c > ./MySQLmodule.c: In function `pythonify_row': > ./MySQLmodule.c:238: warning: assignment from incompatible pointer type > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. > > Any help would be greatly appreciated. You almost made it ;=) The -lmysqlclient does refer to the libmysqlclient you found, but you should only modify the path pointing to it. This is done in the Setp[.in] just before the -lmysqlclient; modify the '-L/', if have this set to -L/usr/local/lib/mysql. [ZDP] Maybe this is something for the FAQ? -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From jae@kavi.com Wed Mar 3 23:03:12 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 15:03:12 -0800 (PST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903032157.WAA00348@heaven.rotflol.cx> Message-ID: On Wed, 3 Mar 1999, Ronald Offerman wrote: > > also a rather powerful language for being so simple). Just leave your > > PHP stuff in your documents; Zope will parse out the DTML and return it > > to the server, which will parse out the PHP stuff and return it to the > > browser. In fact, you can probably make DTML and PHP work together > > nicely and simplify much of your PHP code. In the quickie case you > > don't need to change your PHP. > > If this would work (having Apache parse the PHP code in the pages > returned by Zope), you would save me a lot of painfull converting > working PHP code (mainly database related) and I would gradually convert > from PHP/Apache to Zope/Python/Apache. This can't be done currently. I researched this a while back, trying to get server side includes to work. There's actually an entry in the Apache FAQ about it: """ 9.How can I have my script output parsed? So you want to include SSI directives in the output from your CGI script, but can't figure out how to do it? The short answer is "you can't." This is potentially a security liability and, more importantly, it can not be cleanly implemented under the current server API. The best workaround is for your script itself to do what the SSIs would be doing. After all, it's generating the rest of the content. This is a feature The Apache Group hopes to add in the next major release after 1.3. """ Though this is about SSI, it basically means (I believe) that apache can't take back the output of a CGI for additional module handling. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From neves@inf.puc-rio.br Wed Mar 3 23:22:43 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 03 Mar 1999 20:22:43 -0300 Subject: [Zope] Data from forms into a database - how? References: <19990303230207.A1292@RaVER.duck.org> Message-ID: <36DDC443.EF76DAE0@inf.puc-rio.br> raver@box.dust.za.net wrote: > > Hello! > > Don't laugh at me - this is probably a very simple thing to do, but > as I'm new to zope and can't find description of how this is accomplished > I seek your help. I get data out of my database (MySQL) by querying, but > how can I have data collected by forms showeled into the database? > > Appreciate any help I can get! > Hi Sture, try to use the P MySQL Input wizard in the contrib download area. It will automatically create a insert sql method and a form for you. So you can just follow the pattern. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From michel@digicool.com Wed Mar 3 23:42:05 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 18:42:05 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BACF@GANDALF> > -----Original Message----- > From: John Eikenberry [mailto:jae@kavi.com] > Sent: Wednesday, March 03, 1999 6:03 PM > To: Ronald Offerman > Cc: Michel Pelletier; Tony McDonald; zope@zope.org; > ron@heaven.rotflol.cx > Subject: Re: [Zope] Some tough questions about zope... (long) > > > On Wed, 3 Mar 1999, Ronald Offerman wrote: > > > > also a rather powerful language for being so simple). > Just leave your > > > PHP stuff in your documents; Zope will parse out the DTML > and return it > > > to the server, which will parse out the PHP stuff and > return it to the > > > browser. In fact, you can probably make DTML and PHP > work together > > > nicely and simplify much of your PHP code. In the > quickie case you > > > don't need to change your PHP. > > > > If this would work (having Apache parse the PHP code in the pages > > returned by Zope), you would save me a lot of painfull converting > > working PHP code (mainly database related) and I would > gradually convert > > from PHP/Apache to Zope/Python/Apache. > > This can't be done currently. I researched this a while back, > trying to > get server side includes to work. There's actually an entry > in the Apache > FAQ about it: > > """ > 9.How can I have my script output parsed? > > So you want to include SSI directives in the output from your CGI > script, but can't figure out how to do it? The short > answer is "you > can't." This is potentially a security liability and, more > importantly, it can not be cleanly implemented under the current > server API. The best workaround is for your script > itself to do what > the SSIs would be doing. After all, it's generating the > rest of the > content. > > This is a feature The Apache Group hopes to add in the next major > release after 1.3. > """ > > Though this is about SSI, it basically means (I believe) that > apache can't > take back the output of a CGI for additional module handling. > > --- Well paint me blue and call me a liar. At least it's planned. Michel > > John Eikenberry > [jae@kavi.com - http://taos.kavi.com/~jae/] > ______________________________________________________________ > "A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From reedstrm@rice.edu Thu Mar 4 00:02:51 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Wed, 03 Mar 1999 18:02:51 -0600 Subject: [Zope] Indirect variable references References: <3.0.5.32.19990204010511.01588de0@mail.aracnet.com> Message-ID: <36DDCDAB.E2D20FD@rice.edu> Amos Latteier wrote: I'm piggy backing this on Amos's post from a while ago, because that is where I finally found my answer. I could have sworn I had seen (and used!) a DTML code fragment that displayed the form variables sent to it, with there values. Obviously, this involves indirection. After hunting through my (extensive) zope-list archive, I couldn't find it, so I started over, with the help of Amos's text and wrote one. I often need little tools like this to debug between my forms and sql actions, so I can see what's really going on! I call it 'show_vars' The only tricky thing in it is that sequence-item is an invalid variable name, so I need to wrap it in _[''] which leads to the double wrap when dereferencing to get the value. Anyway, hope someone else finds it useful!
    Form VariableValue
    Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From oyvindmo@pvv.ntnu.no Thu Mar 4 00:18:41 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 04 Mar 1999 01:18:41 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: Message-ID: * John Eikenberry | | On Wed, 3 Mar 1999, Ronald Offerman wrote: | | > > also a rather powerful language for being so simple). Just leave your | > > PHP stuff in your documents; Zope will parse out the DTML and return it | > > to the server, which will parse out the PHP stuff and return it to the | > > browser. In fact, you can probably make DTML and PHP work together | > > nicely and simplify much of your PHP code. In the quickie case you | > > don't need to change your PHP. | > | > If this would work (having Apache parse the PHP code in the pages | > returned by Zope), you would save me a lot of painfull converting | > working PHP code (mainly database related) and I would gradually convert | > from PHP/Apache to Zope/Python/Apache. | | This can't be done currently. I researched this a while back, trying to | get server side includes to work. [...] | Though this is about SSI, it basically means (I believe) that apache can't | take back the output of a CGI for additional module handling. I haven't tried it, but it could possibly be done by running two Apaches: one which stands "in front of" the other. The front-side Apache would rewrite every access into a PHP wrapper-script which include()s a corresponding URL from the back-side Apache where the Zope things would be done. On the other hand, I really should be asleep now so all this _may_ be utter nonsense, but I do think it's possible. It may even be possible with a single Apache, but that's more hairy than I dare think about right now. Good night. (Btw, my suggested hack isn't in total disagreement with the quoted FAQ entry, because my hack surely won't work with SSI. PHP3 isn't an official Apache module, so they don't neccessarily mention things like this in their FAQ.) -- Øyvind Møll oyvindmo@pvv.ntnu.no From Anthony Baxter Thu Mar 4 00:24:34 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 04 Mar 1999 11:24:34 +1100 Subject: [Zope] debugging ZServer FTP sessions. Message-ID: <199903040024.LAA11235@mbuna.arbhome.com.au> I'm attempting to use ZServer's ftp daemon to upload a number of images into my database, however no matter what I try I always get back ftp> put sidebar.gif local: sidebar.gif remote: sidebar.gif 200 PORT command successful. 150 Opening Binary connection for sidebar.gif 550 Error creating file. 189 bytes sent in 0.00139 secs (1.3e+02 Kbytes/sec) ftp> I've tried this with an image that doesn't exist, as well as for one that already exists. Is it just a matter of "it doesn't work for images" or what? Also, where does ZServer send errors from ftp sessions? It looks to me like it's just silently eating them. :( Anthony From rushing@nightmare.com Thu Mar 4 01:03:59 1999 From: rushing@nightmare.com (rushing@nightmare.com) Date: Wed, 3 Mar 1999 17:03:59 -0800 (PST) Subject: [Zope] ZServerFTP In-Reply-To: <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> References: <008401be622b$0a80edd0$fa01a8c0@rogue.easystreet.com> <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> Message-ID: <14045.55810.997842.777915@gnome.nightmare.com> Amos Latteier writes: > At 12:27 AM 2/27/99 -0800, you wrote: > >HomeSite's FTP mode is apparently trying to use the FTP commands "MODE S" > >and "STRU F" to which ZServer is responding with a "500 '%s': command not > >understood." % command and then HomeSite bails out and never fetches any > >directory listings or anything. > > > >Is there any intent to support these commands? It sure would be nice. > > Right now we are trying not to add a lot of FTP commands to ZServer that > Medusa's FTP server doesn't already support, and it seems that Medusa > doesn't support these right now. > > I'll look into these commands and if they are easy to implement and make > sense for Zope, I'll try. Of course, patches are always welcome. In all the world you might find 4 machines still plugged in that support 'record' or 'page' structure. The default is 'file', which is what that command is trying to do. Add these two methods to ftp_server.py::ftp_channel def cmd_stru (self, line): 'obsolete - set file transfer structure' if line[1] in 'fF': # f == 'file' self.respond ('200 STRU F Ok') else: self.respond ('504 Unimplemented STRU type') def cmd_mode (self, line): 'obsolete - set file transfer mode' if line[1] in 'sS': # f == 'file' self.respond ('200 MODE S Ok') else: self.respond ('502 Unimplemented MODE type') And that should do the trick. [these changes have just been checked into my CVS repository, too] -Sam From mj@antraciet.nl Thu Mar 4 09:06:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:06:39 +0100 Subject: [Zope] DTML Method vs Document In-Reply-To: Message-ID: <4.1.19990304090459.00bef1b0@lisp.atmm.nl> At 21:44 03/03/99 , Philip Aylesworth wrote: >What is the difference between a DTML document and a DTML method? Seems to >me a method should not be surfable but they are. > >Is it possible to change my documents to DTML documents? Even just for >housekeeping. Micheal answered these perfectly. >One other unrelated question: What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. This has allready been reported as a bug to the Collector by me. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder. I think that Folder objects _used_ to call title_and_id on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using it's id and title separetly. Principia Drafts made use of the call to title_and_id to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's users__draft__.manage_main method, and reach the Session controls by calling its manage_approve__draft__ method. The URLS are: http://yoursever.com/Zope/Draft/users__draft__/manage_main and http://yoursever.com/Zope/Draft/manage_approve__draft__ Martijn Ps. Martijn, I am CCing to you for use in the FAQ. I know it still needs editing.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 4 09:19:50 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:19:50 +0300 (MSK) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BACF@GANDALF> Message-ID: Hi! On Wed, 3 Mar 1999, Michel Pelletier wrote: > > Though this is about SSI, it basically means (I believe) that > > apache can't > > take back the output of a CGI for additional module handling. > > > > --- > > Well paint me blue and call me a liar. At least it's planned. It will be implemented with Layered (stacked) handlers. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phd@sun.med.ru Thu Mar 4 09:29:41 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:29:41 +0300 (MSK) Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Hello! I am new to Zope, and i want to clarify some problems. On Wed, 3 Mar 1999, Martijn Faassen wrote: > * How do I call an external method from DTML? As far as I understand there are DTML objects (templates), Products and External methods. There is no such thing as "Internal" methods (objects, that live in Zope's object database). Are these 3 the only 3 kinds of executable (callable) things? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Thu Mar 4 09:30:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:30:45 +0100 Subject: [Zope] [ZDP] Showing form data Message-ID: <4.1.19990304101312.00b9b100@lisp.atmm.nl> * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Thu Mar 4 09:32:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:32:44 +0100 Subject: [Zope] [ZDP] Showing form data (take two) In-Reply-To: <4.1.19990304101312.00b9b100@lisp.atmm.nl> Message-ID: <4.1.19990304103150.00b90ef0@lisp.atmm.nl> Take two, now with escaped HTML.... * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: <!--#in "REQUEST.form.items()" sort--> <!--#var sequence-key-->: <!--#var sequence-item--><BR> <!--#/in--> Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Thu Mar 4 09:40:40 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:40:40 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: Message-ID: <36DE5518.109B83A2@pop.vet.uu.nl> John Eikenberry wrote: > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > > What would also be nice is some way to simply generate plain ascii text > > versions of the FAQ as well, along with possibly some other versions. We > > could also think about generating DocBook SGML (which then can be > > converted in a lot of different formats with for instance the Linux > > SGMLtools 2.0). > > I would love to see this feature (generating DocBook SGML). I thought > about something like this myself (for my howto), but I just don't have the > time at the moment. I could probably find enough time to help out a little > though. I'm randomly assuming here you know more about DocBook SGML than I do, so here I'm involuntarily inofficially but you can back out of it immediately appointing you the ZDP DocBook SGML expert. :) I think perhaps the first thing you could do is get together with people in the Latex thread for docs; they seem to have come up with it independently. I know even less Latex than SGML and SGML seems a closer fit with the XML-ish direction the web's taking, so my question would be to point out the advantages of SGML to everybody. Regards and thanks in advance, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 09:45:31 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:45:31 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <36DE563B.C19C92A5@pop.vet.uu.nl> Kevin Dangoor wrote: > On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: > > Here is a start. > > > > Great start! > > > > Could I suggest that there be FAQs for different catagories? > This is a good idea. I can see this FAQ growing very, very quickly. > So, I would suggest that we start thinking about a hierarchy > already... [snip proposed hierarchies] Yup, splitting up the FAQ into different categories appears to be pretty needed, so this is a good idea. My idea is to 'involunteer' you category maker guys to take the assembled FAQ that I'll produce hopefully today (in a few hours), and put each question in the category you feel it belongs to. This way I have to do less work and thinking. :) Realizes-he-is-talking-to-two-people-so-you-can-always-say-I-thought-the-other-guy-would-do-itly yours, (wow, a long one :) Martijn From Armin.Tschammer@oi42.kwu.siemens.de Thu Mar 4 09:49:39 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Thu, 04 Mar 1999 10:49:39 +0100 Subject: [Zope] Bobo or ZPublisher and stdout ( Solution: Client/Server) Message-ID: <36DE5733.60F87988@oi42.kwu.siemens.de> Hi, I already sent some postings to this topic, but I would like to discuss the following problem again and how it could be solved. Imagine there is a big C++/Python project. The application is mainly prgrammed in C/C++ und one supports a scritpting interface to that application via the SWIG mechanism - the target language is Python. During the developping process many stuff is written to the stdout - during initialization ( before the main-function ), during execution ( in the main-function ), and in the destructors of the static instances ( after the main-function ). Now we want to do some web-stuff via ZPublisher, we define a function which return a html string, which is calculated through calling functions from our scritpting interface of our application, that means beside my correct calculated string there is many stuff sent to stdout, that confuses the Xserver and I get an error. Ok, you would say switch the stdout to a file via calling c-funcions like dup() or dup2( ) and encapsulate this in a function (wrapped via SWIG), which is called in the function which I call from the URL in the browser. Less cryptic: xy.py: start(): "XXXXXXX" #Now all stdout goes in a file stdout2file( "log.txt") .... HTMLstring = .... # sitches the stdout back ( REVerse ) # The way is free for CGI REVstdout2file() return HTMLstring the URL: http://myserver:3333/yyy/cgi-bin/xy/start BUT with this method I have no chance to chatch stuff which is written to the stdout in the destrutors of the static instances, because we already have switched back to the "usual" stdout (for a correctly working cgi-mechnism). The some problem one have with things which are written to the stdout during the initialisation of the static instances. ( Imagine python itself is compiled against a library which writes some stuff to stdout during initialization). I see only one solution: If there is a ZPublisher Server process which says to a client process do everything and give me a calculated string via sockets or something like that, I have not to take care about stuff which is written to the stdout at the client process. Or are there better solutions ? Thanks in advance, Armin From M.Faassen@vet.uu.nl Thu Mar 4 10:02:39 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 11:02:39 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> <19990303135355.47418@amber.org> Message-ID: <36DE5A3F.39DA2C28@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > > Maybe by splitting up the FAQs we could split up the work, too! Have a > > different person/group resposible for each FAQ. > > Well, I think it'd be nice if there was someone "responsible" for each > major section, this would keep everyone from getting swamped. Yes, this would be a good idea. My first priority however is to get as much of a FAQ as possible out there. Organization we'll do at the same time. Otherwise we run the risk getting bogged down in organizing who does what. That said, volunteers who want to manage specific sections of the FAQ are very welcome to step forward. Procedure is as follows: you get to name your topic; the first person who names a particular topic and produces a FAQ for it (assembling it from the FAQ we have now, and hopefully adding more of his or her own to it) will be manager for that section, unless that person doesn't want to, of course. :) I suggest to mail this list instead of me personally, so that other people can respond friday and during the weekend, when I won't be around to check the mail. We're working on getting a zdp@zope.org mailing list too, but I can't say yet when that'll be ready. [snip] ] > > Also, I think that HOWTOs of the Linux type would be a great idea. They > > have a person/group responsible for each HOWTO to keep it up to date and > > add/edit things as needed. Aren't there some HOWTOs out there already on the Zope site? (there are FAQs too but that doesn't stop us of course). HOWTOs and FAQs of course have some overlap; we'll just see how it evolves. > You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and > I'm sure Guido/Fred wouldn't mind us using this. It works real well, > and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets > you do the "bigger" stuff in a nice pretty way. Earlier I suggested using SGML Docbook for this purpose; I've appointed John Eikenberry (without any feedback from him :) as our official SGML docbook expert. One advantage of Docbook SGML is that it's the new Linux standard for writing documentation. > What would also be nice is a list of "bigger" issues that people would > liek to see explained more... something that's more than a single > question. I think essentially a HOWTO is a particular frequently asked question with a very long answer. :) Regards, Martijn From Rheal.Dugas@CAN.XEROX.com Thu Mar 4 13:02:53 1999 From: Rheal.Dugas@CAN.XEROX.com (Dugas, Rheal) Date: Thu, 4 Mar 1999 08:02:53 -0500 Subject: [Zope] Query Message-ID: HI all I am a color specialist with Xerox. What i am doing with Zope is setting up a Knowedge database for my fellow color specialist. I am having a bit of a problem setting up a search query. Following is what i have know, Could somebody tell me how i could improve on this query. SELECT * FROM problems WHERE problems_rip_model LIKE OR problems.prob_descript LIKE '%%' OR problems.prob_solution LIKE '%%' Is this the proper code or is there a better way of doing it? Thank You Rheal J. Dugas 1-800-939-3769 ext 1074 From Paul@digicool.com Thu Mar 4 13:34:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:24 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Philip wrote: > Maybe Michigan/Ontario area? Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) No, right now we're considering partnering with a technology training company in Washington DC. --Paul From Paul@digicool.com Thu Mar 4 13:34:25 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:25 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD2@GANDALF> Michael wrote: > Yes, at least theoretically. What would be covered and is > this an online > or offline course? My rough sketch right now is a four-day course: Day One -- Zope for Content Managers Day Two -- Zope Programming Using Zope Day Three -- Zope Programming Using Python Day Four -- Relational Databases and Zope -- Zope for System Administrators It would be a professionally produced and delivered "in the classroom" class, a la Learning Tree. That is, I won't be doing it. :^) Instead, I'll produce a poor version of the whole thing and give it to them, including the first customer that will send maybe 7 people. My poor version would probably become an online version. Just my thoughts currently. --Paul From rocon@pivot.net Thu Mar 4 13:37:40 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 4 Mar 1999 08:37:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Hi Martijn, >I suggest to mail this list instead of me personally, so that other >people can respond friday and during the weekend, when I won't be around >to check the mail. We're working on getting a zdp@zope.org mailing list >too, but I can't say yet when that'll be ready. This ZDP list appears to be ready now although only Ken [List admin] is signed up. I added my name using: http://www.zope.org/mailman/listinfo/zdp The list of ZDP collaborators (subscribers) is at: http://www.zope.org/mailman/roster/zdp -bobo connor bob@rocnet.com From M.Faassen@vet.uu.nl Thu Mar 4 13:43:49 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 14:43:49 +0100 Subject: [Zope] [ZDP] List appears ready References: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Message-ID: <36DE8E15.A3901B2A@pop.vet.uu.nl> Robert OConnor wrote: > > Hi Martijn, > > >I suggest to mail this list instead of me personally, so that other > >people can respond friday and during the weekend, when I won't be around > >to check the mail. We're working on getting a zdp@zope.org mailing list > >too, but I can't say yet when that'll be ready. > > This ZDP list appears to be ready now although only Ken [List admin] > is signed up. I know, Ken sent me a mail. :) I still need to subscribe to it. > I added my name using: > > http://www.zope.org/mailman/listinfo/zdp > > The list of ZDP collaborators (subscribers) is at: > > http://www.zope.org/mailman/roster/zdp I guess this counts as an announcement. Ken asked me to do it, but I just mailed him I'd rather he did it (as he knows more about these things than I do, and I won't be available to deal with problems until monday, after today, thursday). But, now you did, so that's fine too. :) Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 14:16:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:16:50 +0100 Subject: [Zope] ZDP's Ad-hoc Zope FAQ version 0.1 Message-ID: <36DE95D2.A35366C2@pop.vet.uu.nl> Hi everybody, Here is the new ad-hoc FAQ. I'll start versioning it as of now; this is version 0.1. How we'll do the actual versioning we'll still have to decide on, but at least we have a way to refer to this one now. Regards, Martijn ---- Note on the use of the Zope mailing lists: The Zope Documentation Project is getting its own mailing list (zdp@zope.org). In an attempt to gain publicity and support among the Zope community, I'll post this development FAQ to the main Zope list as well, however. Feel free to respond to it on either list for now, but you are encouraged to join the ZDP mailing list and to send new FAQ suggestions there. You can subscribe to the ZDP mailing list by using the page: http://www.zope.org/mailman/listinfo/zdp Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured, unrelated questions are mixed haphazardly. If you feel the calling to categorize the FAQ or to maintain the questions for a particular topic, feel free to mail your changes to the list, and thanks in advance! Note on the code examples and StructuredText: I've reconsidered and used normal '<' and '>' characters in sample DTML, for the reason that at least the FAQ is readable as text then. If you try to feed this FAQ through:: there will be an error message in Zope, however. For some reason Zope seems to try to interprete even StructuredText that uses & escape codes. Until this issue is resolved it is not possible to render this document into HTML. In my uninformed opinion, StructuredText code examples shouldn't be interpreted by Zope as actual DTML. There may be some rather subtle technical difficulties involved however. Any input on this is very welcome. Until the matter is resolved, the FAQ document will use StructuredText in the plaintext readable way. Thanks to Martijn Pieters in being so considerate to supply HTML escaped DTML examples; it's unfortunate his efforts weren't useful this time. Note on my availability: Martijn Faassen (me!), ad-hoc FAQ maintainer of the ZDP's Zope FAQ is generally not available to read or respond to email on friday, saturday and sunday. It is suggested ZDP related communication goes through the ZDP mailing list at zdp@zope.org anyway, and is not sent directly Martijn. This way anyone who wants to do something for the ZDP (such as editing and extending the FAQ) does not have to wait for Martijn to read his mail, having all relevant information available on the list. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them)::
    * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. * What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's 'users__draft__.manage_main' method, and reach the Session controls by calling its 'manage_approve__draft__' method. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ From M.Faassen@vet.uu.nl Thu Mar 4 14:51:55 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:51:55 +0100 Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) References: Message-ID: <36DE9E0A.393AD83B@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > I am new to Zope, and i want to clarify some problems. > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > * How do I call an external method from DTML? > > As far as I understand there are DTML objects (templates), Products and > External methods. There is no such thing as "Internal" methods (objects, > that live in Zope's object database). Are these 3 the only 3 kinds of > executable (callable) things? Hm, DTML methods can be called as well, naturally, that's why they're called methods. They're called through URL. The DTML method then is executed. This means executing any DTML in it and returning the resulting HTML to the caller. One way of 'calling' a DTML method is by using it in a form action, like this:
    (or method="GET", of course) This does go through the browser, but it feels like you're calling 'your_dtml_method' when the user presses the submit button. This is another way of 'calling' a DTML method: I'm sure there are more ways, and I'm a bit vague about this, so I'll leave it up to other people to turn this into a nice FAQ. :) Regards, Martijn From zopelist@regalint.com Thu Mar 4 14:50:57 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 4 Mar 1999 09:50:57 -0500 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br> References: <19990303230207.A1292@RaVER.duck.org> Message-ID: >raver@box.dust.za.net wrote: >> >> Hello! >> >> Don't laugh at me - this is probably a very simple thing to do, but >> as I'm new to zope and can't find description of how this is accomplished >> I seek your help. I get data out of my database (MySQL) by querying, but >> how can I have data collected by forms showeled into the database? >> >> Appreciate any help I can get! >> > >Hi Sture, >try to use the P MySQL Input wizard in the contrib download area. It >will automatically create a insert sql method and a form for you. So you >can just follow the pattern. So that is what the MySQL Input wizard does. I've been meaning to look at it. Instead of saving time by using it, I did it manually. It is not that hard but you have to understand what is happening. 1. HTML form (eg. form_html) collects data and sends it to a DTML document (eg input_html) (that is the only tricky concept). For example: (That :int tag does error checking. It is optional. They are documented in the Z SQL Database Methods User's Guide) 2. The receiving doc (input_html) calls an SQL method (eg input_sql) with an in tag. If you do a select after your INSERT or UPDATE you can use it between the in tags, otherwise you can just display a message or do a redirect after it. 3. Your SQL method (input_sql) would be something like: INSERT INTO database (num) VALUES ( ) SELECT num, etc You don't need to do a select but if you do don't forget the between any SQL statements. Have fun! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From mj@antraciet.nl Thu Mar 4 15:18:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 16:18:02 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> Message-ID: <4.1.19990304161646.00bdb160@lisp.atmm.nl> At 15:50 04/03/99 , Philip Aylesworth wrote: >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with >an in tag. > > > > >If you do a select after your INSERT or UPDATE you can use it between the >in tags, otherwise you can just display a message or do a redirect after it. If you don't do anything with the returned data, a #call will suffice: -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From arw@ifu.net Thu Mar 4 15:31:37 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 10:31:37 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <36DEA759.4FCDB933@ifu.net> Hi. I've been getting a lot of confusing complaints about gadfly that turn out to be Zope bugs. Just for the record. ZGadflyDA doesn't support more than one db, gadfly does. ZGadflyDA doesn't support newlines in string literals, gadfly does. ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x faster. ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 (October 1998) where a lot of other bugs are fixed.... I'm sure these will be fixed soon, in fact I'd offer a patch if I could figure out how the thing works, but until then, Yours truly, -- Aaron Watters http;//www.chordate.com From michel@digicool.com Thu Mar 4 15:44:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 4 Mar 1999 10:44:22 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAD9@GANDALF> > -----Original Message----- > From: Aaron Watters [mailto:arw@ifu.net] > Sent: Thursday, March 04, 1999 10:32 AM > To: zope@zope.org; crew@server.python.net; jeffbauer@bigfoot.com > Subject: [Zope] zope ZGadfly DA buggy > > > Hi. I've been getting a lot of confusing complaints about gadfly > that turn out to be Zope bugs. Just for the record. > > ZGadflyDA doesn't support more than one db, gadfly does. > ZGadflyDA doesn't support newlines in string literals, gadfly does. > ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x > faster. > ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 > (October 1998) where a lot of other bugs are fixed.... > > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, > Yours truly, > -- Aaron Watters http;//www.chordate.com > > Aaron, could you please submit a collector bug with the above information? We will make sure the next release takes a stab at these (at the least use the latest version!) -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From klm@digicool.com Thu Mar 4 16:51:40 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 11:51:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <613145F79272D211914B0020AFF640190BED77@GANDALF> Martijn Faassen wrote: > > Robert OConnor wrote: > > This ZDP list appears to be ready now although only Ken [List admin] > > is signed up. > > I know, Ken sent me a mail. :) I still need to subscribe to it. > [...] > I guess this counts as an announcement. Ken asked me to do it, but I > just mailed him I'd rather he did it (as he knows more about these > things than I do, and I won't be available to deal with problems until > monday, after today, thursday). > > But, now you did, so that's fine too. :) Umm - i know it's redundant at this point, but for completeness sake - the Zope Documentation Project mailing list is open and ready for business. Thanks again to martijn for instigating this effort - have at it! Ken Manheimer klm@digicool.com From klm@digicool.com Thu Mar 4 17:10:38 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 12:10:38 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <613145F79272D211914B0020AFF640190BED78@GANDALF> Martijn Pieters wrote: > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. As a new zope user, and also according to my general documentation sensibilities, i suspect it would be very valuable to have a catalogue of the various special variables (like sequence-key and sequence-item) and the various entities (REQUEST.cookies, ...) available to the DTML programmer. There may already be some sort of catalogues around - in which case pointers to those kinds of resources would be very nice to have... Ken From the perspective of a new user of zope, as well as from the perspective of completeness, one thing i think would be From amos@aracnet.com Thu Mar 4 17:11:05 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 04 Mar 1999 09:11:05 -0800 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> At 05:31 PM 3/4/99, Jay Ashton wrote: >In trying to figure out what's going on I've noticed a couple things. >First, and I think most illustrative, if I try to add a new Z ODBC >connection, none of my ODBC sources are showing up in the available list >(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >Zope with ZopeHTTPServer all my ODBC connections show up just fine. > >Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >variables of both and noticed some differences - USERPROFILE's are Default >User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >USERDOMAIN in the 1.10.2/IIS environ, with no luck. I think at least this part of your problem may be due to the fact that Zope is running as a different user under IIS than it is under ZopeHTTPServer. My guess is that it can't see your datasources since they weren't created as 'System' datasources. Check under the windows ODBC control panel and make sure your DSNs appear under 'system dsn', not 'user dsn'. -Amos From jeffrey@Digicool.com Thu Mar 4 17:20:13 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 04 Mar 1999 12:20:13 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <199903041720.JAA27601@zope.codeit.com> >From: Martijn Pieters >To: Zope Mailinglist >Subject: [Zope] [ZDP] Showing form data >Date: Thu, Mar 4, 1999, 4:30 AM > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. > > Show showing all form data can be done like this:: > > > :
    > > > Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() > for all REQUEST variables, including CGI Environment variables. The most supremely easy way is::
    :) .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Thu Mar 4 17:32:36 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 04 Mar 1999 09:32:36 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Message-ID: <36DEC3B4.D6B3C99@profitscape.net> Paul Everitt wrote: > Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) ROAD TRIP! From tjg@avalongroup.net Thu Mar 4 19:40:55 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 11:40:55 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DEE1C7.39E6E77F@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From skip@mojam.com (Skip Montanaro) Thu Mar 4 20:21:31 1999 From: skip@mojam.com (Skip Montanaro) (skip@mojam.com (Skip Montanaro)) Date: Thu, 4 Mar 1999 15:21:31 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/site-packages? Message-ID: <199903042021.PAA00587@dolphin.calendar.com> Can the contents of Zope's lib/python directory safely be copied to the site-packages directory of the Python install directory? Thx, Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@mojam.com | Musi-Cal: http://www.musi-cal.com/ 518-372-5583 From arw@ifu.net Thu Mar 4 20:39:29 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 15:39:29 -0500 Subject: [Zope] gadfly bug in charstring literal recognition [fixable] References: <199903041633.IAA26276@zope.codeit.com> <36DEBB14.8C3AF1FD@digicool.com> <36DEC913.36F30F17@ifu.net> <36DED050.A1C0ED43@digicool.com> <36DEDF94.6B3CD6FF@ifu.net> Message-ID: <36DEEF81.ACFD17AC@ifu.net> Oops. One "zope bug" I complained of was mine. If it had been reported to the gadfly-rdbms list it would have been fixed back when. viz: Aaron Watters wrote: > [copied to gadfly-rdbms list] > > Jim Fulton wrote: > >...most RDBMSs (as in all but gadfly) > > > accept: > > > > cursor.execute(""" > > select name > > from table > > where descr = 'this > > doesn''t work for two reasons' > > """) > > > > Are you saying that the SQL spec disallows newlines in > > quoted strings? > > I actually was unaware of that. I'll look to my docus. In the > mean time if you want it, in sqlgen.py change the charstre to > > charstre = "'[^']*'" > > ===interactively > >>> c.execute(""" > select 'this > doesn''t work for two reasons' > from dual""") > >>> print c.pp() > > ========================================================= > this > doesn't work for two reasons > ===end ... > -- Aaron Watters > > ps: and thanks. post script: The current usage of gadfly in Zope makes gadfly do lots of parsing as in insert into table(a,b,c) values (1,2,3) insert into table(a,b,c) values (6,2,3) insert into table(a,b,c) values (1,7,3) insert into table(a,b,c) values (1,2,8) The "right" way to do this would be to take advantage of gadfly's dynamic parameter/multiinsert feature executing insert into table(a,b,c) values (?,?,?) ONCE with dynamic parameters list [(1,2,3), (6,2,3), (1,7,3), (1,2,8)] which would run much faster than thrashing the parser with the individual inserts above (with kjbuckets present). In general dynamic parameters on repeated statements reduce parsing and binding overhead (even for other types of statements). However, I understand this may be hard to implement as it would require special features for the gadfly "adapter" not of value for the other adapters. Oh well. Anyway, in future please post/forward/crosspost any gadfly related issues to the gadfly list. I just discovered a pile of complaints on the zope list this morning and I found it distressing. I don't normally read the zope list. -- Aaron Watters http://www.chordate.com From robin@alldunn.com Thu Mar 4 21:24:49 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 13:24:49 -0800 Subject: [Zope] evaluating attribute values Message-ID: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> How can I evaluate a #var equivallent for setting a tag attribute value? For example, Zope doesn't like this: --> or this: (it tries to use smtpHost as the host name, instead of its value) Help! -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From jae@kavi.com Thu Mar 4 22:05:21 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 14:05:21 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > For example, Zope doesn't like this: > > --> > > or this: > > > > (it tries to use smtpHost as the host name, instead of its value) Try: or this: --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jody@ldeo.columbia.edu Thu Mar 4 22:12:16 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Thu, 4 Mar 1999 17:12:16 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903042212.RAA16927@hog> I have a long running process that will be started by Zope. This process has a CORBA interface that is implemented using ILU. I would like to be able to asynchronously have this process generate data for Zope. My basic questions are: o Can I have an ILU mainloop inside of Zope? (I really don't care if I have to hack Zope or if I can use an external method.) o Should I fork/exec the long running process and give the process a URL that indicates where the data should be written? (I can use pickles or sql.) o How do I tell Zope that new data is avaliable if the process is external to Zope? Jody Winston From John Eikenberry Thu Mar 4 22:26:18 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 14:26:18 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: Ok, what's the trick to getting special characters to be converted to their escape codes (eg. " to "). This is particularly important for forms in which the user may enter these types of character. For instance, if I create a property on a folder that is a string, and if the string I enter has quotes around it... it doesn't show in the interface the next time I go to edit the properties. For example, in MCExam, the 2nd sample question has this as an answer "bar, spam". If I go to the folder's properties to change it, it doesn't show up. In the source it looks like: Obviously, if I then save changes, the value is gone altogether. Is there a way of automatically converting quotes and other special characters to their escape codes (like the sqlquote method)? Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From robin@alldunn.com Thu Mar 4 22:37:05 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 14:37:05 -0800 Subject: [Zope] evaluating attribute values Message-ID: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Sorry, your ideas don't work either. This time I get a NameError for mhost in the following code in SendMailtag.py. mhost is never being created. if self.mailhost: mhost=md[self.mailhost] elif self.smtphost: mhost=MailBase() mhost._init(localHost=gethostname(), smtpHost=self.smtphost, smtpPort=self.port) mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, self.subject) -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: John Eikenberry To: Robin Dunn Cc: zope Date: Thursday, March 04, 1999 1:17 PM Subject: Re: [Zope] evaluating attribute values >On Thu, 4 Mar 1999, Robin Dunn wrote: > >> For example, Zope doesn't like this: >> >> --> >> >> or this: >> >> >> >> (it tries to use smtpHost as the host name, instead of its value) > >Try: > > > >or this: > > > >--- > >John Eikenberry >[jae@kavi.com - http://taos.kavi.com/~jae/] >______________________________________________________________ >"A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 4 22:42:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 17:42:51 -0500 (EST) Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <199903042212.RAA16927@hog> Message-ID: Are you the wonderful folk that manage the atmospheric database at LDEO?? If so thanks a lot. I use it all the time for my work! On Thu, 4 Mar 1999, Jody Winston wrote: > I have a long running process that will be started by Zope. This > process has a CORBA interface that is implemented using ILU. I would > like to be able to asynchronously have this process generate data for > Zope. I do not know much about CORBA but you might find it helpful to check the ZClient library that comes with Zope. You can use ZClient to script Zope actions. In other words you can have your CORBA proccess running independently of Zope and whenever there are available data you can call Zope using ZClient and update whatever you need to. Pavlos From reedstrm@wallace.ece.rice.edu Thu Mar 4 23:08:29 1999 From: reedstrm@wallace.ece.rice.edu (Ross J. Reedstrom) Date: Thu, 4 Mar 1999 17:08:29 -0600 (CST) Subject: [Zope] special characters In-Reply-To: from John Eikenberry at "Mar 4, 99 02:26:18 pm" Message-ID: > it looks like: > > value=""bar, spam""> > > Obviously, if I then save changes, the value is gone altogether. > > Is there a way of automatically converting quotes and other special > characters to their escape codes (like the sqlquote method)? Grovelling through the source I find something called html_quote in lib/python/DocumentTemplate/DT_Util.py, so I tried: Which seems to so the right thing in the generated source. I'm not sure how to get at the equivalent method call, though. Does that help? (p.s. there's url_quote, as well) -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From raver@box.dust.za.net Thu Mar 4 23:16:22 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:16:22 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br>; from Paulo Eduardo Neves on Wed, Mar 03, 1999 at 08:22:43PM -0300 References: <19990303230207.A1292@RaVER.duck.org> <36DDC443.EF76DAE0@inf.puc-rio.br> Message-ID: <19990305001622.A479@RaVER.duck.org> On Wed, Mar 03, 1999 at 08:22:43PM -0300, Paulo Eduardo Neves wrote: > raver@box.dust.za.net wrote: > > > > Hello! > > > > Don't laugh at me - this is probably a very simple thing to do, but > > as I'm new to zope and can't find description of how this is accomplished > > I seek your help. I get data out of my database (MySQL) by querying, but > > how can I have data collected by forms showeled into the database? > > > > Appreciate any help I can get! > > > > Hi Sture, > try to use the P MySQL Input wizard in the contrib download area. It > will automatically create a insert sql method and a form for you. So you > can just follow the pattern. > Actually just after I sent the mail initially I spottet the Input Wizard at the zope site. It works just great. Thanks! > []s > -- > Paulo Eduardo Neves > PUC-Rio de Janeiro > Pager: Central: 292-4499 cod. 213 99 64 > ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html > From John Eikenberry Thu Mar 4 23:12:12 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 15:12:12 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > Sorry, your ideas don't work either. > > This time I get a NameError for mhost in the following code in > SendMailtag.py. mhost is never being created. > > > if self.mailhost: > mhost=md[self.mailhost] > elif self.smtphost: > mhost=MailBase() > mhost._init(localHost=gethostname(), smtpHost=self.smtphost, > smtpPort=self.port) > > mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, > self.subject) I think we're trying to assign a string where a mailhost object is needed. I'm not sure how to get around this, without an external method. Though with an external method, it'd be pretty simple: (warning: untested) def get_mailhost(self,property_name): """ gets the mailhost """ mailhost_id = getattr(self,property_name) return getattr(self,mailhost_id) Or something like this... [shrug] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From raver@box.dust.za.net Thu Mar 4 23:26:06 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:26:06 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <4.1.19990304161646.00bdb160@lisp.atmm.nl>; from Martijn Pieters on Thu, Mar 04, 1999 at 04:18:02PM +0100 References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> <4.1.19990304161646.00bdb160@lisp.atmm.nl> Message-ID: <19990305002606.B479@RaVER.duck.org> On Thu, Mar 04, 1999 at 04:18:02PM +0100, Martijn Pieters wrote: > At 15:50 04/03/99 , Philip Aylesworth wrote: > >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with > >an in tag. > > > > > > > > > >If you do a select after your INSERT or UPDATE you can use it between the > >in tags, otherwise you can just display a message or do a redirect after it. > > If you don't do anything with the returned data, a #call will suffice: > > > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > Both answers are much appreciated. Things start to clear up, but ... As far as I understand zope it should also be possible to have forms send data directly to external methods. How do I go abouth to make the argument list in a python function so that it receives more than one 'form variable'. 1 is simple, but my form consists of 5. I get an error constructing the python function to take 5 arguments. How is the 5 'variables' sent to the method? How do I get hold of the values each store? Lotsa questions - probly me doing things the wrong way but - I'm learning:) Sture Lygren From jae@kavi.com Thu Mar 4 23:24:08 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 15:24:08 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: On Thu, 4 Mar 1999, Ross J. Reedstrom wrote: > Grovelling through the source I find something called html_quote in > lib/python/DocumentTemplate/DT_Util.py, so I tried: > > > > Which seems to so the right thing in the generated source. I'm not sure > how to get at the equivalent method call, though. > > Does that help? Yes. This is just what I was looking for. This leads to a followup question/request for the group. 'manage_addProperty' calls various converters from ZPublisher.Converters to format the properties values. Shouldn't html_quote be used when formatting strings and text? This would be trivial to change. Would this cause some problem I don't realize? If not, I'd like to add this to the Collector for the next version. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From da@ski.org Fri Mar 5 00:55:11 1999 From: da@ski.org (David Ascher) Date: Thu, 4 Mar 1999 16:55:11 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem Message-ID: I have a standard_html_header/footer pair which works much like that on zope.org. The header inserts a in the left column. The sidebar DTML method is:

    (show links to sub-folders which don't have the 'hidden' property set). The above works fine in the toplevel folder. In the subfolder, however, nothing shows up, even though there are two folders which do qualify. I'd tried originally to have it be a DTML Document and change the expr to _.objectValues(['Folder']), but that doesn't work at all. What am I missing? --david From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 01:32:06 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 20:32:06 -0500 (EST) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: On Thu, 4 Mar 1999, David Ascher wrote: > > > >

    > > > Check if your DTML properly closes all tags. I had something similar happening to me in a complicated DTML, when some condition failed to add a tag. BTW you can use ... Pavlos From jay@tomigaya.shibuya.tokyo.jp Fri Mar 5 17:47:53 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Fri, 05 Mar 1999 12:47:53 -0500 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> References: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> At 09:11 AM 3/4/99 -0800, you wrote: >At 05:31 PM 3/4/99, Jay Ashton wrote: > >>In trying to figure out what's going on I've noticed a couple things. >>First, and I think most illustrative, if I try to add a new Z ODBC >>connection, none of my ODBC sources are showing up in the available list >>(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >>Zope with ZopeHTTPServer all my ODBC connections show up just fine. >> >>Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >>side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >>variables of both and noticed some differences - USERPROFILE's are Default >>User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >>contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >>USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >>USERDOMAIN in the 1.10.2/IIS environ, with no luck. > >I think at least this part of your problem may be due to the fact that Zope >is running as a different user under IIS than it is under ZopeHTTPServer. >My guess is that it can't see your datasources since they weren't created >as 'System' datasources. Check under the windows ODBC control panel and >make sure your DSNs appear under 'system dsn', not 'user dsn'. > >-Amos Yes! This was exactly what was causing the error. I added a new 'System DSN' which then showed up under IIS, and now I've got a shiny new and perfectly functional Z ODBC Database Connection. Much thanks! - Jay PS - Don't know if this info is helpful, but I noticed that (after I set up a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my IIS/1.10.2 environ was flawed for whatever reason I would receive the cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick poking around I noticed that even after selecting a valid dsn, flaws such as trying to add a connection with an ID already in use, or entering an invalid connection string would give this 400 error - whereas in my ZopeHTTPServer/1.9 environ I would receive relevant and helpful error messages in such situations... Wish I knew more about how to help fix... From tjg@avalongroup.net Fri Mar 5 04:05:33 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 20:05:33 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DF580D.8D43DD51@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 07:40:21 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 02:40:21 -0500 (EST) Subject: [Zope] An interim solution for the FAQ Message-ID: Zopistas Until the SGML experts develop the FAQ format here is an interim solution: I have set up a Zope FAQ site at: http://www.gaaros.com:9673/FAQ

    FAQ Related
    How can one contribute to the FAQ?
    FAQ Related
    How can one contribute to the FAQ? Answer One Answer Two Tag case is not important. and are all equivalent as long as starting and ending tags match. If you want to include DTML or HTML in your answers or questions you need to include the ugly CDATA directive. If there is an error in the formating of your entry the parsing will fail and your entry will not be uploaded, but the entry will be logged. Structured Text is not supported because of the problems that Martijn Faassen discussed on the Zope List. If the section or question already exist in the FAQ then the entries will be appended to the already existing ones, otherwise the new categories will be created.]]>
    How can I download the whole FAQ? The whole FAQ can be exported by clicking on the "Export FAQ" in the navigation margin.
    DTML Scripting
    How do I pass a non-form variable to the next requested URL? ">]]> If everything works ok this e-mail will make the first entry to the FAQ! Pavlos From wmlph@d033.ml.uwcm.ac.uk Fri Mar 5 09:24:36 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 5 Mar 1999 09:24:36 -0000 Subject: [Zope] ZMySQLDA Message-ID: <004d01be66e9$fd393330$5c773fc1@ml.uwcm.ac.uk> Where exactly is the file? find out by doing a locate 'libmysqlclient'. Let's assume that it is in /usr/local/mysql/lib. The easiest way to accomplish what you want is this. 1. cd /etc 2. vi ld.so.conf 3. Goto the end of the file and add a line that says '/usr/local/mysql/lib' replace this with the exact location of you libmysqlient.so.6 4. save the file 5. run 'ldconfig' 6. run 'sync' twice, this just makes sure all changes are written to the disk. This adds the mysql lib directory to the lib search path. HTH Phil ----- Original Message ----- From: Timothy Grant To: Zope Folk Sent: Friday, March 05, 1999 4:05 AM Subject: Re: [Zope] ZMySQLDA >John Eikenberry wrote: > >> 1. Get everything cleaned up (ie. back in the condition after first >> untarring ZMySQL). >> 2. Edit Setup.in, add -L to the end of the >> last line. >> 3. Proceed as usual (make -f Makefile.pre.in boot; make) > >Thanks to both John and Ronald for their kind assitance. I have made it >past >my original error and got everything compiled correctly. However, my >general >Newbieness is still coming back and biting me on the you-know-what. > >The instructions state that I should start python, and then Import the >MySQL >module to make sure it works. When I do, I get yet another error. > >Traceback (innermost last): > File "", line 1, in ? >ImportError: libmysqlclient.so.6: cannot open shared object file: No >such >file or directory > >The file does exist, so I am once again stumped. > >Thank you for your continued assitance. > > >-- >Stand Fast, > tjg. >=================================================== >Timothy Grant >VP Technology/CTO >Avalon Technology Group >tjg@avalongroup.net >www.avalongroup.net >(503) 246-3630 voice >(503) 246-3124 fax > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope From mj@antraciet.nl Fri Mar 5 09:54:01 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 10:54:01 +0100 Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990305105227.00a69140@lisp.atmm.nl> At 22:24 04/03/99 , Robin Dunn wrote: >How can I evaluate a #var equivallent for setting a tag attribute value? > >For example, Zope doesn't like this: > > --> > >or this: > > > >(it tries to use smtpHost as the host name, instead of its value) > > >Help! > Why not use a MailHost Object? On that object you can then set the appropriate SMTP Host, even from DTML code.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:16:30 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:16:30 +0100 Subject: [Zope] special characters In-Reply-To: References: Message-ID: <4.1.19990305105646.00a90870@lisp.atmm.nl> At 00:24 05/03/99 , John Eikenberry wrote: >'manage_addProperty' calls various converters from ZPublisher.Converters >to format the properties values. Shouldn't html_quote be used when >formatting strings and text? This would be trivial to change. Would this >cause some problem I don't realize? If not, I'd like to add this to the >Collector for the next version. > Yes, because you sometimes (most of the time, really), want to have the raw input from the user. If you then use this raw input in HTML again, only *then* should you quote out any HTML. Besides, what if I want the data to be URL quoted? Or SQL quoted? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:18:50 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:18:50 +0100 Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: <4.1.19990305111759.00a68e60@lisp.atmm.nl> At 01:55 05/03/99 , David Ascher wrote: > > > >

    > > > >(show links to sub-folders which don't have the 'hidden' property set). > >The above works fine in the toplevel folder. In the subfolder, however, >nothing shows up, even though there are two folders which do qualify. > >I'd tried originally to have it be a DTML Document and change the expr to >_.objectValues(['Folder']), but that doesn't work at all. > >What am I missing? > Just a quick shot: Could it be that the value 'hidden' is aquired from somewhere else? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:38:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:38:33 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> References: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990305111949.00be5e30@lisp.atmm.nl> At 18:47 05/03/99 , Jay Ashton wrote: >PS - Don't know if this info is helpful, but I noticed that (after I set up >a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my >IIS/1.10.2 environ was flawed for whatever reason I would receive the >cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick >poking around I noticed that even after selecting a valid dsn, flaws such >as trying to add a connection with an ID already in use, or entering an >invalid connection string would give this 400 error - whereas in my >ZopeHTTPServer/1.9 environ I would receive relevant and helpful error >messages in such situations... Wish I knew more about how to help fix... > I did notice today that IIS 4.0 seems to be the cullprit. Whenever Zope returns a 400 error (like 'sorry, an error occured') IIS mangles that into the 400 Bad Request error. This means the traceback is also gone. *grmbl*. Just try and add a Principia Draft and not specify an ID, and compare this to the message returned when using ZopeHTTPServer. I think I'll switch to ZServer. Maybe this should go into the FAQ... I'll cc to ZDP BTW, I hereby retract the bug I reported to the Zope Collector regarding ZODBC connections being broken. I forgot to fill in the ID :|. IIS mangles the returned errormessage. What is the procedure for retracting bug reports? mail support@digicool.com? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 10:46:40 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 05:46:40 -0500 (EST) Subject: [Zope] Plenty of problems. Please Help Message-ID: Zopistas I have encountered problems mainly associated with ZServer and ZAP: I am using Zope-1.9.0 and the preconfigured Apache server to run my Zope site. Last night (a couple of hours ago!) I installed ZServer. It wouldn't run and I had to add the following to start.py to fix it: import sys,os sys.path.insert(0,os.path.join('..','lib','python')) Later on upon entering the management screens I noticed that the id of the top level folder dissappeared which caused the paths to my objects to change. With ZAP (the preconfigured apache) I would visit: http://www.gaaros.com:8080/Gaaros/ to get to the top level directory but with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of links that people have on my site. Switching back to ZAP I got the following error: Temporarily Unavailable

    The resource you requested is temporarily unavailable - please try again later. (102) failure during connect Seems like ZServer changed my root id from "Gaaros" to nothing. I called PickleDictionary on Data.bbb directly from python but I could not even see the subobjects. BTW can the Zope Data.bbb be accessed directly from PickleDictionary?? Also trying to shut ZServer from the control-panel results in a core dump. Ok enough for now, its very late and I cannot think anymore. If anybody has any clues about the root object id problem please let me know. Thanks Pavlos From mj@antraciet.nl Fri Mar 5 10:51:53 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:51:53 +0100 Subject: [Zope] An interim solution for the FAQ In-Reply-To: Message-ID: <4.1.19990305115013.00a11100@lisp.atmm.nl> >To contribute to the FAQ you just have to send e-mail to me or to the >Zope list and include the word FAQ somewhere in the subject. >In the body of your e-mail message you should include (somewhere) an >XMLish faq entry as below: Hmmm.. could we change this the ZDP list? After all, that's what it is there for.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 11:03:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 06:03:52 -0500 (EST) Subject: [Zope] An interim solution for the FAQ In-Reply-To: <4.1.19990305115013.00a11100@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > > Hmmm.. could we change this the ZDP list? After all, that's what it is > there for.. > No problem. Basically I filter all emails arriving in my personal account that contain FAQ in the Subject: field. As I am subscribed to all the Zope lists it doesn't really matter where you send it to. Pavlos From Paul@digicool.com Fri Mar 5 13:21:22 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:22 -0500 Subject: [Zope] RE: [ZDP] Re: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAE3@GANDALF> Martijn wrote: > What is the procedure for retracting bug reports? mail > support@digicool.com? That's a good solution for now. --Paul From Paul@digicool.com Fri Mar 5 13:21:27 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:27 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> Jody wrote: > My basic questions are: > o Can I have an ILU mainloop inside of Zope? (I really don't > care if I have to hack Zope or if I can use an external > method.) This is a poor answer (as most here know I don't have the mental horsepower to provide good responses :^), but...our _intention_ over time is to have "ZServer" allow objects to be published via PCGI, FastCGI, HTTP, FTP, and CORBA simultaneously. Ideally we'd get some kind of Python implementation into the Medusa handler layer. Obviously this approach has some serious drawbacks... Anyway, I realize that I'm not providing much of an answer, so sorry :^( --Paul From Paul@digicool.com Fri Mar 5 13:21:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:28 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Aaron wrote: > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, Right, understood. We had to spend a lot of time figuring out Gadfly in order to host it inside Zope. Thus we labeled it "Demo". I imagine that it is best for everybody if we take Gadfly out of the base Zope and make it an external, no-warranty package like the MySQL support. --Paul From Paul@digicool.com Fri Mar 5 13:21:33 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:33 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAE9@GANDALF> Tony wrote: > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! I appreciate your patience and taking the time to submit well-thought questions. > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. Sounds fantastic! > The curriculum database is essentially delivering online study guides > (over 100 for each Faculty) whose source is originally from very well > marked up Word Documents. In addition, we include multiple choice This is really weird, it just reminded me of a (rather pathetic) dream I had last night. I dreamt that someone created a Python module that would read Word files. My DreamTV must be picking up the wrong channel. > questions, file upload of lecture notes etc. and some 'active' web > pages showing dynamical processes in medicine etc. The curriculum > database needs to be searchable across its entire breadth (although > initially restricted to the one site), so that students and faculty > can find occurences of, say, 'lung cancer' in lecture resources - > this is to plan for curriculum management, so that we can find out if > we're pushing subjects too much (or indeed, whether we're pushing a > subject at all!). We have other applications (nearly all of which are > written in Perl/PHP3) and want to seemlessly integrate them into the > curriculum database. > > Currently we do all our development work on Unix, using Apache > virtual web servers, MySQL as our database engine and Perl running as > a CGI for most of our applications. My input has been to introduce > PHP-3 (an Apache module with a bulit-in XML parser) and some XML > knowledge to the group. I've been looking at a scenario where our > study guides are converted in XML using Omnimark and held as static > XML documents in a database. They are then rendered into HTML/RTF and > put into static web directories. The student can run a program that > extracts elements from selected XML documents and creates a > customised set of HTML pages or RTF document that is built for them > 'on the fly'. My manager was a bit worried about all these static > pages lying about and to be honest so am I, but extracting the > relevant XML from a database to render into individual HTML pages > seems a massive drain on the system. I've been awfully interested in XML in the last few days. Can you describe what user-visible benefits PHP delivers due to its integrated XML parser? Additionally, we are working on Zope searching for a consulting project right now. Actually it is Zope Cataloging. It's still a consulting-only option, but plans are that eventually it will go "below the line". > I found out about Zope Monday morning, dl'ed it, installed it, got > one or two things working... and have been worried sick ever since. Ahhh, you too, eh? Did you have the dream about the chimp and the External Method where...oh, nevermind. :^) > My problem? is that I can see how Zope can do so much for us, but it > seems to need a hell of a gut-wrench to do so. I *think* I have some good news to report on this, but before I squawk, could you detail this gut-wrench a bit more? > There also doesn't seem to be an easy 'half-way' house to > move to Zope. > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". There have been a lot of suggestions on this one. Here's another one: a command-line program that takes everything out, such as the wget program. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? I'd like to have this as well. I've been doing a lot of thinking about this lately. It is a bit more complicated than expected, though... > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. This is the main reason I replied. Having Zope as a free and Open Source(tm) platform is the heart of our business plan. A closed Zope would basically mean we start over completely as a different company. Thus, closing Zope is roughly equivalent to closing our company. With _that_ said, we still need to provide some assurances that we won't legislate the connection between Zope and DC. First, we are trying to keep some arm's length distance between zope.org and Digital Creations. We hope to formalize the way the community participates in the platform. We expect to make it lucrative for other businesses to participate. At the same time, we intend to pursue commercial opportunities atop the platform for vertical applications. Ultimately this is the same question put to Netscape regarding Mozilla during the AOL talks. The answer is simple: "The genie is out of the bottle." Since it is open sourced, Digital Creations must *earn* its stewardship of Zope. If we don't we'll become less relevant. Earning the community's enthusiasm is pretty simple, I think. Unfortunately we aren't doing a good job right now, though we are trying damn hard. But we'll keep trying... In the meantime, I'm absolutely ecstatic to see folks in the community step forward over the last month and lead the way. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yep, the zope.org machine has five virtual hosts. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Previously answered. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Ditto. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? We put them in the database. The 3 Mb Zope binaries are served out of the database, the PDF files are served out of the database. This works so well I don't even think about it any more. --Paul From arw@ifu.net Fri Mar 5 13:42:59 1999 From: arw@ifu.net (Aaron Watters) Date: Fri, 05 Mar 1999 08:42:59 -0500 Subject: [Zope] zope ZGadfly DA buggy References: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Message-ID: <36DFDF63.6CB8C32F@ifu.net> Paul Everitt wrote: > Aaron wrote: > > I'm sure these will be fixed soon, in fact I'd offer a patch > > if I could > > figure out how the thing works, but until then, > > Right, understood. We had to spend a lot of time figuring out Gadfly in > order to host it inside Zope. Thus we labeled it "Demo". hmmm. That's interesting because it works just like oracle or it should,unless there are more bugs you haven't passed on to me. Let me know what caused the problems. Basically any non-conformance with the db-api is a bug. Please report it to the gadfly-rdbms list. > I imagine that it is best for everybody if we take Gadfly out of the > base Zope and make it an external, no-warranty package like the MySQL > support. Yes, this is fine. BTW, it might be hard for your existing customers to upgrade to Gadfly 1.0 since I think the db file formats are different (that's why it was called beta, so I could change things like that). I remain, Yours Truly, Aaron Watters From michel@digicool.com Fri Mar 5 14:48:24 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 09:48:24 -0500 Subject: [Zope] Plenty of problems. Please Help Message-ID: <613145F79272D211914B0020AFF6401907BAEB@GANDALF> 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_01BE6717.3B426460 Content-Type: text/plain > -----Original Message----- > From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu] > Sent: Friday, March 05, 1999 5:47 AM > To: zope@zope.org > Subject: [Zope] Plenty of problems. Please Help > > > Zopistas > > I have encountered problems mainly associated with ZServer and ZAP: > > I am using Zope-1.9.0 and the preconfigured Apache server to > run my Zope > site. Last night (a couple of hours ago!) I installed > ZServer. It wouldn't > run and I had to add the following to start.py to fix it: > I would suggest, first off, to use 1.10.2. ZServer is being developed against 1.10.2, and the latest Zap was tested and confirmed to work with it. > import sys,os > sys.path.insert(0,os.path.join('..','lib','python')) > Yes, there were discussions on this in the list about this problem. Someone needs to go back, rassle up the discussion and submit it to the ZDP. Looks like you found the fix. > Later on upon entering the management screens I noticed that > the id of the > top level folder dissappeared which caused the paths to my objects to > change. With ZAP (the preconfigured apache) I would visit: > http://www.gaaros.com:8080/Gaaros/ to get to the top level > directory but > with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of > links that people have on my site. Hm. Is your Zap .pcgi file named Garros or does your RewriteRule look for Garros and then call PCGI? If so that is why you need to use Garros to reach the server. ZServer can server right out of Zope and doesn't have this problem. Your description makes this sould like it is a production site, I would not suggest running ZServer on a production machine as it is alpha and still buggy. > > Switching back to ZAP I got the following error: > > Temporarily Unavailable >

    > The resource you requested is temporarily unavailable - > please try again > later. > > > > (102) failure during connect > > > > Seems like ZServer changed my root id from "Gaaros" to nothing. This error comes from PCGI. It can't find your .cgi file so Zope isn't even being launched. Did your zap.conf file change (specificly the RewriteRule)? > I called PickleDictionary on Data.bbb directly from python > but I could not > even see the subobjects. BTW can the Zope Data.bbb be > accessed directly > from PickleDictionary?? > You can open a Data.bbb file into a PickleDictionary, but you won't see anything useful unless you really know what your doing. The Database itself is not a Pickle, it is a database of Pickles. I have attached a small 5K script that will be released with 1.10.3 which paruses the database and generates reports. In the future we are intending it to translate the entire database into XML for transport. (Note, we do not intend to use XML as the db format) > Also trying to shut ZServer from the control-panel results in > a core dump. > I suspect this is because you are using 1.9.0 > Ok enough for now, its very late and I cannot think anymore. > > If anybody has any clues about the root object id problem > please let me > know. > > Thanks > > Pavlos > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > ------ =_NextPart_000_01BE6717.3B426460 Content-Type: application/octet-stream; name="bbb.py" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bbb.py" """Read and (re-)format BoboPOS 2 database files=0A= """=0A= =0A= import struct, string, sys, time=0A= =0A= file__version__=3D3.0=0A= packed_version=3D'SDBMV'+struct.pack(">f",file__version__)=0A= =0A= def error(message, fatal=3D0, exc=3D0):=0A= if exc:=0A= sys.stderr.write('%s: %s' % (sys.exc_info()[0], = sys.exc_info()[1]))=0A= sys.stderr.write("\n%s\n" % message)=0A= if fatal: sys.exit(fatal)=0A= =0A= def _read_and_report(file, rpt=3DNone, fromEnd=3D0, both=3D0, = n=3D99999999, show=3D0):=0A= """\=0A= Read a file's index up to the given time.=0A= """=0A= =0A= file.flush()=0A= seek=3Dfile.seek=0A= read=3Dfile.read=0A= unpack=3Dstruct.unpack=0A= split=3Dstring.split=0A= join=3Dstring.join=0A= find=3Dstring.find=0A= seek(0,2)=0A= file_size=3Dfile.tell()=0A= gmtime=3Dtime.gmtime=0A= =0A= if fromEnd: pos=3Dfile_size=0A= else: pos=3Dnewpos=3Dlen(packed_version)=0A= =0A= tlast=3D0=0A= err=3D0=0A= while 1:=0A= if fromEnd:=0A= seek(pos-4)=0A= l=3Dunpack(">i", read(4))[0]=0A= if l=3D=3D0:=0A= b=3Dpos=0A= p=3Dpos-4=0A= while l=3D=3D0:=0A= p=3Dp-4=0A= seek(p)=0A= l=3Dunpack(">i", read(4))[0]=0A= =0A= pos=3Dp+4=0A= error("nulls skipped from %s to %s" % (pos,b)) =0A= p=3Dpos-l=0A= if p < 0:=0A= error('Corrupted data before %s' % pos)=0A= if show > 0:=0A= p=3Dpos-show=0A= if p < 0: p=3D0=0A= seek(p)=0A= p=3Dread(pos-p)=0A= else:=0A= p=3D''=0A= error(p,1)=0A= pos=3Dp=0A= else:=0A= pos=3Dnewpos=0A= =0A= seek(pos)=0A= h=3Dread(24) # 24=3Dheader_size=0A= if not h: break=0A= if len(h) !=3D 24: break=0A= oid,prev,start,tlen,plen=3Dunpack(">iidii",h)=0A= if (prev < 0 or prev >=3D pos or start < tlast=0A= or plen > tlen or plen < 0 or oid < -999):=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= =0A= newpos=3Dpos+tlen=0A= if newpos > file_size:=0A= error('Truncated data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= seek(newpos-4)=0A= if read(4) !=3D h[16:20]:=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0:=0A= seek(pos+24)=0A= error(read(show))=0A= err=3D1=0A= break=0A= =0A= tlast=3Dstart-100=0A= =0A= if rpt is None: continue=0A= n=3Dn-1=0A= if n < 1: break=0A= =0A= seek(pos+24)=0A= p=3Dread(plen)=0A= t=3Dsplit(read(tlen-plen-28),'\t')=0A= tname, user =3D (t+[''])[:2]=0A= t=3Djoin(t[2:],'\t')=0A= start,f=3Ddivmod(start,1)=0A= y,m,d,h,mn,s=3Dgmtime(start)[:6]=0A= s=3Ds+f=0A= start=3D"%.4d-%.2d-%.2d %.2d:%.2d:%.3f" % (y,m,d,h,mn,s)=0A= rpt(pos, oid,start,tname,user,t,p)=0A= =0A= if err and both and not fromEnd:=0A= _read_and_report(file, rpt, 1, 0, n, show)=0A= =0A= =0A= =0A= def none(*ignored): pass=0A= def positions(pos, *ignored): sys.stdout.write("%s\n" % pos)=0A= def tab_delimited(*args):=0A= sys.stdout.write("%s\n" % string.join(args[:-1],'\t'))=0A= =0A= =0A= reports=3D{=0A= 'none': none,=0A= 'positions': positions,=0A= 'tab_delimited': tab_delimited,=0A= }=0A= =0A= if __name__=3D=3D'__main__':=0A= import getopt=0A= =0A= usage=3D"""Usage: %s [options] filename=0A= =0A= where filename is the name of the database file.=0A= =0A= options:=0A= =0A= -r report=0A= =0A= Specify an output report.=0A= =0A= The valid reports are:=0A= %s=0A= =0A= -e=0A= =0A= Read the file from back to front=0A= =0A= -l n=0A= =0A= Show only n records=0A= =0A= -b=0A= =0A= If an error is encountered while reading from front,=0A= ret reading from the back.=0A= =0A= -s n=0A= =0A= If a corrupted data record is found, show the first n=0A= bytes of the corrupted record.=0A= =0A= """ % (sys.argv[0], string.join(reports.keys(), ',\n\t\t'))=0A= =0A= try:=0A= opts, args =3D getopt.getopt(sys.argv[1:],'r:ebl:s:')=0A= filename,=3Dargs=0A= except: error(usage,1,1)=0A= =0A= rpt=3Dnone=0A= fromEnd=3D0=0A= both=3D0=0A= n=3D99999999=0A= show=3D0=0A= for o, v in opts:=0A= o=3Do[1:]=0A= if o=3D=3D'r':=0A= try: rpt=3Dreports[v]=0A= except: error('Invalid report: %s' % v, 1)=0A= elif o=3D=3D'l':=0A= try: n=3Dstring.atoi(v)=0A= except: error('The number of records, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D's':=0A= try: show=3Dstring.atoi(v)=0A= except: error('The number of bytes, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D'e':=0A= fromEnd=3D1=0A= elif o=3D=3D'b':=0A= both=3D1=0A= else:=0A= error('Unrecognized option: -%s' % o, 1)=0A= =0A= try: file=3Dopen(filename)=0A= except: error('Coud not open %s' % filename,1,1)=0A= =0A= _read_and_report(file, rpt, fromEnd, both, n, show)=0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= ------ =_NextPart_000_01BE6717.3B426460-- From jody@ldeo.columbia.edu Fri Mar 5 15:18:45 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Fri, 5 Mar 1999 10:18:45 -0500 Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> (message from Paul Everitt on Fri, 5 Mar 1999 08:21:27 -0500) Message-ID: <199903051518.KAA01296@hog> >>>>> "Paul" == Paul Everitt writes: Paul> Jody wrote: >> My basic questions are: >> o Can I have an ILU mainloop inside of Zope? (I really don't >> care if I have to hack Zope or if I can use an external >> method.) Paul> This is a poor answer (as most here know I don't have the Paul> mental horsepower to provide good responses :^), but...our Paul> _intention_ over time is to have "ZServer" allow objects to Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA Paul> simultaneously. Paul> Ideally we'd get some kind of Python implementation into the Paul> Medusa handler layer. Obviously this approach has some Paul> serious drawbacks... Paul> Anyway, I realize that I'm not providing much of an answer, Paul> so sorry :^( Would it be worthwhile to start looking at and hacking ZServer? Jody From michel@digicool.com Fri Mar 5 15:35:50 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 10:35:50 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAEE@GANDALF> > -----Original Message----- > From: Jody Winston [mailto:jody@ldeo.columbia.edu] > Sent: Friday, March 05, 1999 10:19 AM > To: Paul@digicool.com > Cc: zope@zope.org > Subject: RE: [Zope] Using Zope with CORBA (new user question) > > > >>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? > It's allways worth while! :) I think the point paul was trying to push is that we are interesting in publishing our objects over various transport protocols. If you want to look in this direction, probably the best idea would be to write a Medusa handler. Check out Sam's site at: http://www.nightmare.com/medusa There currently exists an ftp and http medusa handler for Zope, which you can look at in the latest ZServer alpha release availabe at zope.org. I'm not sure is there is a Medusa CORBA handler or not, I suspect not, but maybe there's some type of CORBA out there written in Python? -Michel > Jody > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jeffrey@Digicool.com Fri Mar 5 16:02:55 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 05 Mar 1999 11:02:55 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903051602.IAA27197@zope.codeit.com> >>>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? Yes. ZServer really restores Zope's original intent from the Bobo days: publishing objects through a variety of protocols. I think ILU support was once attempted back in those days. However, a Bobo app at that time could only have one publishing mechanism (ie, CGI, PCGI, FastCGI, ILU, etc...). ZServer allows for multiple publishing mechanisms in the same application, allowing access to the objects through the web, through FTP, or through any other protocol developed for ZServer/Medusa. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From rocon@pivot.net Fri Mar 5 16:57:34 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 11:57:34 -0500 Subject: [Zope] Documents for web and paper Message-ID: <012c01be6729$74f6bd40$0201a8c0@hawkeye.bob.oc> I'm looking for the best way to store and retrieve documents with these requirements: SPECS *Easy storage and retrieval on the web *Pretty printing on paper *Easy simple collaboration (no checkout) *One BASE format for both web and paper *Base format *could be* edited with Word or WP *Preserve text markup: bullets, bolds, underlines, tables, graphics, links...etc. *Search by keyword *Search by full text ******* I look forward to comments and Ideas on implementing this in ZOPE Perhaps some of this has been solved already and I don't know it. EXAMPLE: Say you have a small book/article that is fully contained in a WORD or WP file. It has chapters and sections: Chap1 Plants Section1: Trees Section2: Flowers Section3: Vegetables Section4: Fruits Chap2 Animals Section1: Dogs Section2: Cats Section3: Fish Section4: Humans Ok, as a paper document in the word processor it is laid out *nice* with a new page for each chapter, section, and subheadings for groups of paragraphs in each section. It prints *nice* and can even have a table of contents and index. For the web, the whole book could be one LONNNG web page. Ugly and it doesn't work well. Ideally on the web each chapter and section would be navigable with a left hand frame like table a la http://www.zope.org. Then sections can be placed on separate pages on the right. This means that the one source document becomes multiple html "files" on the web site. *Tree Navigation Ok, for tree navigation like http://localhost:9673/QuickStart Each Chapter and Section becomes a folder and the text from each section is contained in the same named: "dtContent" as in ...9673/QuickStart/Outline/Applications/External/dtContent While the tree is nice, and separate html "files" make the website better, *REVISIONS with TWO OUTPUTS How do you do: Make revisions to the source document in word/WP and have it FLOW automatically to html format or tree format for the web? *Perhaps* XML could come to the rescue as holy grail to help solve this problem??? I understand the idea of mark up but how does it solve the problem of two outputs? Can you have a template that automatically chops up the SOURCE into the appropriate folders/files etc and feeds it to ZOPE? Can this or another template reformat for pretty printing including page numbers that are updated based on the planned printing? Maybe I need to reconsider how documents are stored as source, i.e. not Word. And if not, what tool or mechanism would be best? Maybe the NATIVE source could flow to Word/WP or via a template making for pretty printing. Maybe for simple stuff, the source could be simple text entered on a webpage or sent by e-mail with *simple* markup and parsed automatically? *KEYWORD SEARCH Ok, on the web (and Zope), the benefit is it's searchability: Do we "hide" keywords in the source somehow and in addition use Chapter and Section titles as Keywords? Search for: "dogs" gives a result of Chapter 2 Section 1 in the example as one entry. Additional entries might be lessor cross references such as a keyword "dog" in the Section 4 humans as "man's best friend". *FULL TEXT SEARCH Ok so we search for the word "Daisy" and this word is found in the text in sections: Flowers, Dogs (as a pet name) and Humans (as a proper name). The result is then three line entries that take you to the words. *Zope IDEAS for this? I assume that it would be best to store the documents and source in the ZOPE database rather than an external datasource. Thanks for any input on this -bobo connor bob@rocnet.com From da@ski.org Fri Mar 5 18:02:28 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:02:28 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: <4.1.19990305111759.00a68e60@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 01:55 05/03/99 , David Ascher wrote: > > > > > > > >

    > > > > > > > >(show links to sub-folders which don't have the 'hidden' property set). > > > >The above works fine in the toplevel folder. In the subfolder, however, > >nothing shows up, even though there are two folders which do qualify. > > > >I'd tried originally to have it be a DTML Document and change the expr to > >_.objectValues(['Folder']), but that doesn't work at all. > > > >What am I missing? > > Just a quick shot: Could it be that the value 'hidden' is aquired from > somewhere else? Nah -- getting rid of the hidden test doesn't change a thing. Sorry I confused the issue with that. I think my problem has to do with my lack of understanding of the interactions between acquitision, DTML Methods, DTML docs and namespaces. I just noticed that the standard html headers and footers are methods. That means, if I understand the earlier email, that the default namespace in them is that of the thing they are contained in. So, in my case, the top-level Folder. Now, in the sub-folder, the standard html headers and footers are acquired from the toplevel folder. The standard header does a #var sidebar, which also lives in the toplevel folder, and that gets included fine. Within that sidebar, I'm not sure what the default namespace is -- my fuzzy understanding makes me think that it should be either: a) the / Folder (the 'physical' container for the DTMLMethods) b) the sub Folder (the container for the thing which did the aqcuisition, namely the index_html DTML Document. Problem is, neither of these makes sense given what I'm seeing. If it was a), I'd expect the 'objectValues()' call to return the same list of the subfolders of the toplevel folder every time. If it was b), I'd expect the thing to work and give me the subfolders of the subfolder. Let me try to summarize the hierarchy: / - index_html (#var standard_html_header...#var standard_html_footer) - standard_html_header (#var sidebar) - standard_html_footer - sidebar SubFolder1/ SubFolder2/ - index_html (#var standard_html_header... #var standard_html_footer) - SubSubFolder1 - SubSubFolder2 The top sidebar shows SubFolder1 and SubFolder2, the /SubFolder2 sidebar doesn't show a thing. --david PS: Thanks to pavlos for pointing out the #unless tag. PS: For some reason the title of the root folder is "Zope" in the properties tag but doesn't show up in the tree or in the pathlinks. Anyone have a suggestion? From mbernstein@profitscape.net Fri Mar 5 18:10:27 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 10:10:27 -0800 Subject: [Zope] Simple DTML Method/Acquisition problem References: Message-ID: <36E01E13.6F8A4FB4@profitscape.net> David Ascher wrote: > > I have a standard_html_header/footer pair which works much like that on > zope.org. > > The header inserts a in the left column. The > sidebar DTML method is: > > > > >

    > > > > (show links to sub-folders which don't have the 'hidden' property set). > > The above works fine in the toplevel folder. In the subfolder, however, > nothing shows up, even though there are two folders which do qualify. Try: This will call the method using the root folders' namespace, thereby showing all qualifiying subfolders regardless of where the method is called from. You might have to modify your method to construct absolute URL's. Michael Bernstein. From da@ski.org Fri Mar 5 18:52:10 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:52:10 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem + bug report In-Reply-To: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: On Fri, 5 Mar 1999, Michael Bernstein wrote: > Try: > > This will call the method using the root folders' namespace, thereby > showing all qualifiying subfolders regardless of where the method is > called from. You might have to modify your method to construct absolute > URL's. Thanks! What I actually wanted was sidebar(PARENTS[0], REQUEST), but you pointed me in the direction I needed. Now I have to understand it, but that's much easier with working code. This also led me to find a bug. I was wondering why the REQUEST parameter was needed, so I tried to remove it. The next time I loaded a page calling this code, the ZServer process died with the Win32 equivalent of a segfault. Is it just me? I don't dare try it on another Zope server =). [Zope 1.10.2, latest ZServer, win32, NT4SP3] --david From jae@kavi.com Fri Mar 5 18:52:13 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 5 Mar 1999 10:52:13 -0800 (PST) Subject: [Zope] special characters In-Reply-To: <4.1.19990305105646.00a90870@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 00:24 05/03/99 , John Eikenberry wrote: > >'manage_addProperty' calls various converters from ZPublisher.Converters > >to format the properties values. Shouldn't html_quote be used when > >formatting strings and text? This would be trivial to change. Would this > >cause some problem I don't realize? If not, I'd like to add this to the > >Collector for the next version. > > > > Yes, because you sometimes (most of the time, really), want to have the raw > input from the user. If you then use this raw input in HTML again, only > *then* should you quote out any HTML. Besides, what if I want the data to > be URL quoted? Or SQL quoted? Yeah, I already figured out that the problem was actually in the OFS/properties.dtml file (I moved over to the zope-dev list, as I realized this thread really belongs there). In properties.dtml the 'string' type is listed twice: "> "> 'string' needs to be removed from that first list. I'll be submitting this to the Collector. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From prudek@sol.cz Fri Mar 5 19:14:01 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 05 Mar 1999 20:14:01 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: <36E02CF9.F79E416F@sol.cz> I'm new to Zope. I'm very excited about it's potential, but my first impression is that I will need to master Python in order to use it. I believe Python is an excellent language, but I do not have the time to learn it. Several questions about this: - Can I achieve anything useful in Zope without touching Python? I can learn DTML, of course. - if so, what I can and what I cannot do without Python? - could I, for instance, do something like slashdot.org without Python? - is there a plan to give Zope features (or ready-made modules/factories) that would completely eliminate the need to work with Python (for certain tasks that can be automated or turned into templates)? -- Milos Prudek From jbb@spyderlab.com Fri Mar 5 19:45:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 14:45:11 -0500 (EST) Subject: [Zope] bug with SQL methods? Message-ID: Hi, I'm re-posting to this list because it probably is more suited here... thanks in advance, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com ---------- Forwarded message ---------- Date: Fri, 5 Mar 1999 12:11:02 -0500 (EST) From: Jordan B. Baker To: zope-dev@zope.org Subject: [Zope-dev] SQL methods q: Hi guys: I'm trying to write a SQL method though, and its giving me an error when I try to test it.. Error, exceptions.TypeError: keyword parameter redefined SQL used: Could not render the query template! The query I was using: SELECT searches.engineID as engine, queries.param as query, MAX(searches.timestamp) AS time, searches.position AS position, MIN(lastsearch.timestamp) AS lastupdate, lastsearch.position AS lastsearch, searches.URL as URL, 'NA' as change, engines.graphic as engine_gfx FROM searches LEFT JOIN searches as lastsearch USING (queryID,engineID), engines, queries WHERE lastsearch.timestamp BETWEEN AND AND searches.timestamp BETWEEN AND AND queries.clientID = AND queries.queryID = searches.queryID AND engines.engineID = searches.engineID AND searches.timestamp != lastsearch.timestamp GROUP BY searches.engineID, searches.queryID ORDER BY searches.engineID ASC, searches.queryID ASC, searches.timestamp ASC, lastsearch.timestamp DESC ; Any ideas what I could be doing wrong? BTW, Zope is great! I've been kinda messing around with it for a while, also checking out PHP3 and other UNIX-based scripting languages and I've very impressed. As soon as I figure out what is causing this I plan to write something 'cool' with Zope :) TIA, -jordan. _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev From rocon@pivot.net Fri Mar 5 20:49:30 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 15:49:30 -0500 Subject: [Zope] XML discussions Message-ID: <00be01be6749$aeea0b40$0201a8c0@hawkeye.bob.oc> Hi Paul and Zopesters, Paul writes in the thread: [Zope] Some tough questions about zope... >I've been awfully interested in XML in >the last few days. Can you describe what >user-visible benefits PHP delivers due to its integrated >XML parser? I found a great description about XML in: "20 Questions on XML" http://builder.com/Authoring/Xml20/index.html On Paul's Zope roadmap: (Jan 18th) http://www.zope.org/Information/Roadmap "(2) XML. Zope is a great fit for XML, even better with the machinery from Tabula going in. We also see XML becoming the basis for other initiatives, such as WebDAV and RDF. However, we just can't squeeze out the time to dive in deep. Rather, we'd love to see more community progress like that which popped up this weekend." I did a search for postings that had "XML" in the subject and found 55 messages in ~6 threads between Jan 8th and Feb 2nd Other messages have "XML" in the body. Hopefully we can get some OUTLINE of how ZOPE and XML can work together. --- A framework for further discussions. -bobo connor bob@rocnet.com From michel@digicool.com Fri Mar 5 21:07:09 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:07:09 -0500 Subject: [Zope] Python neccessary to work with Zope? Message-ID: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Friday, March 05, 1999 2:14 PM > To: zope@zope.org > Subject: [Zope] Python neccessary to work with Zope? > > > I'm new to Zope. I'm very excited about it's potential, but my first > impression is that I will need to master Python in order to use it. I > believe Python is an excellent language, but I do not have the time to > learn it. Several questions about this: > You do not need to know a single line of Python to use Zope. But learning Python is a pleasure, not a chore. > - Can I achieve anything useful in Zope without touching Python? I can > learn DTML, of course. > You can do just about anything with DTML. In fact, most 'Products' (read that, 'Zope Extnesions') are mostly DTML. If your not writing a Product then you can stay entirely in the domain of DTML. DTML does use a small bit of Python in itself, these are called expressions. For example, if you had an integer called num you could use: to 'render' it in your web page. To get num + 1 you would use: The contents of "" is a python expression. But it's not a python program. If we didn't use Python we'd of had to have come up with some other language like way of doing this that you'd have had to learn anyway. > - if so, what I can and what I cannot do without Python? > Python is used for the following: To write Products. This is hard core development. To write External Methods, which are used to hook special or wierd/pre-existing python functions into Zope. This is rarely necesary. > - could I, for instance, do something like slashdot.org > without Python? > Yes. There may be a 1% slice of something like slashdot needing a bit of Python. But remember, slashdot is a huge application written entirely in Perl. > - is there a plan to give Zope features (or ready-made > modules/factories) that would completely eliminate the need > to work with > Python (for certain tasks that can be automated or turned into > templates)? > Yep. These are called Zope Classes. They are still in-house here at Digital Creations because we are still debugging/figuring them out. A Zope Class lets your create your own objects that can be added into Zope without writing Python code. > > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Fri Mar 5 21:10:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:10:36 -0500 Subject: [Zope] Simple DTML Method/Acquisition problem + bug report Message-ID: <613145F79272D211914B0020AFF6401907BAF0@GANDALF> > -----Original Message----- > From: David Ascher [mailto:da@ski.org] > Sent: Friday, March 05, 1999 1:52 PM > To: Michael Bernstein > Cc: The Zope Group > Subject: Re: [Zope] Simple DTML Method/Acquisition problem + > bug report > > > On Fri, 5 Mar 1999, Michael Bernstein wrote: > > > Try: > > > > This will call the method using the root folders' namespace, thereby > > showing all qualifiying subfolders regardless of where the method is > > called from. You might have to modify your method to > construct absolute > > URL's. > > Thanks! What I actually wanted was sidebar(PARENTS[0], > REQUEST), but you > pointed me in the direction I needed. Now I have to > understand it, but > that's much easier with working code. > > This also led me to find a bug. I was wondering why the > REQUEST parameter > was needed, so I tried to remove it. The next time I loaded a page > calling this code, the ZServer process died with the Win32 > equivalent of a > segfault. Is it just me? I don't dare try it on another > Zope server =). > [Zope 1.10.2, latest ZServer, win32, NT4SP3] > Could you submit this bug report to the Collector? http://www.zope.org/Collector Thanks, -Michel > --david > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jbb@spyderlab.com Fri Mar 5 21:19:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:19:14 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: More information on my front.. I've been fiddling around a bit trying to find out what is going wrong.. I'm using ZServer/Zope 1.10.2 with ZMySQLDA that I just downloaded 2 days ago. The traceback is as follows: line 384 of DA.py -- __call__ reads: query=apply(self.template, (p,), argdata) I added a bit of debugging code and was able to a take a look at some of the data being passed around: argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', 'pstart': '1', 'sql_quote__': } This is starting to confuse me because simple queries work fine within Zope, its only the query that I posted in my previous message that seems to be fowling things up. I'll keep slagging away until either I figure it out or someone tells me its not something I've done and that I should submit it to the Collector :) -jordan. From Paul@digicool.com Fri Mar 5 21:28:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 16:28:56 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/sit e-packages? Message-ID: <613145F79272D211914B0020AFF640190D9E61@GANDALF> Skip writes: > Can the contents of Zope's lib/python directory safely be > copied to the > site-packages directory of the Python install directory? I asked Jim, who replied: "As far as I know, they can. Note, however, that it will be important for INSTANCE_HOME to be defined." --Paul From Tony.McDonald@newcastle.ac.uk Fri Mar 5 21:37:08 1999 From: Tony.McDonald@newcastle.ac.uk (Tony.McDonald@newcastle.ac.uk) Date: Fri, 5 Mar 1999 21:37:08 +0000 (GMT) Subject: [Zope] DatabaseError: Corrupted data record... Message-ID: <199903052137.VAA24776@finan.ncl.ac.uk> Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... "...there is one small problem!" (MPaTHG) My database has got nuked. I don't know how it happened, but this is the tail of my serve.errors file File "lib/python/OFS/Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "lib/python/BoboPOS/PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "lib/python/BoboPOS/SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "lib/python/BoboPOS/SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "lib/python/BoboPOS/SimpleDB.py", line 1365, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1087646 Trying to 'start' the server again just results in the serve.errors file being touched. As you'll know from my 'Touch Questions' post, I'm a novice in Zope (but I've bought the Lutz 'Programming Python' book, have two more on order and have been reading and rereading the docs all week...so I'm learning fast), but this has me stumped. I haven't got too far into my Zope 'career' yet, so I won't be devastated if I have to replace the database from scratch (how do you do that by the way?), but I'm sorta worried about the way that all my work seems inaccessible to me now. any and all help would be ... appreciated. tone. From jbb@spyderlab.com Fri Mar 5 21:45:56 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:45:56 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: Continuing this great tradition of responding to my own posts :) On Fri, 5 Mar 1999, Jordan B. Baker wrote: > argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', > 'pstart': '1', 'sql_quote__': } > This is starting to confuse me because simple queries work fine within > Zope, its only the query that I posted in my previous message that seems > to be fowling things up. Okay, now it makes sense. Is 'client' a reserved variable? If so, perhaps a warning would be nice if you attempt to use a reserved variable as an argument to a SQL method. Argh.. so I got that fixed and now I am getting another traceback when testing the SQL method! I can't believe it :) Here it is: Error, exceptions.KeyError: unhandled -jordan. From da@ski.org Fri Mar 5 21:45:06 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 13:45:06 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables Message-ID: I need to detect not only whether a list is empty (that's easy with the #if tag for example), but also whether all of the elements in the list have a property. In Python, one could do this with something like: empty = 1 for element in theList: if not element.hidden: empty = 0 print element if theList and not empty: print "no non-hidden elements" What's the equivalent DTML? Can one create a variable in DTML? Can anyone tell I miss my Python when writing DTML? =) From tismer@appliedbiometrics.com Fri Mar 5 22:05:10 1999 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 05 Mar 1999 23:05:10 +0100 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> Message-ID: <36E05516.FBCEC2BE@appliedbiometrics.com> Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. Oh my :-) ... > DatabaseError: Corrupted data record at 1087646 I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-) ciao - chris -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home From da@ski.org Fri Mar 5 22:10:22 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 14:10:22 -0800 (Pacific Standard Time) Subject: [Zope] DTML Method truth value Message-ID: The following method tests false (correctly): But if I change it to: then it tests true (note that nothing happens in the #in block). Is this correct behavior or one for the Collector? --david From rwolff@noao.edu Fri Mar 5 22:11:30 1999 From: rwolff@noao.edu (Richard Wolff) Date: Fri, 5 Mar 1999 15:11:30 -0700 Subject: [Zope] Authentication and Zope.cgi Message-ID: <199903052211.PAA16445@daikon.tuc.noao.edu> I'm in need of a bit of clarification about how Zope starts up and when it decides to do its authentication and why. I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request mymachine/Zope/manage I do indeed get the normal management screen. I haven't been asked in some time for a password, which suprises me; the 'access' file exists and (but?) hasn't changed since installation. I'd really like the root folder to say something other than Zope, so I added to Apache a second rewrite rule that substitues 'mpg' for Zope in the two places (restarted Apache), and copied Zope.cgi in cgi-bin to mpg.cgi . These two cgi files are identical so they point to the same /var directory. If I try mymachine/mpg/manage , I get an authorization failed box, and upon clicking 'retry', I get the usual authentication box with the correct 'access' user entered. I type in the correct password and the system fails again ("You are not authorized to use this system. Username and password are not correct"). So, I'm very curious as to what's going on ... and I wouldn't mind learning how to change the top of the root name as well. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 22:21:54 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 17:21:54 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > What's the equivalent DTML? Can one create a variable in DTML? ... > > Can anyone tell I miss my Python when writing DTML? =) > I try hard to do everything in DTML but ... python is such a breeze. OTH if you have most of your code written in DTML it is so easy to create similar products and move them around. Pavlos From jim@digicool.com Fri Mar 5 22:31:11 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:31:11 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: Message-ID: <36E05B2F.97F986C2@digicool.com> Tony.McDonald@newcastle.ac.uk, Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. What version of Zope are you using? What OS? Were you using NFS? MySQL? Please send *in private mail* me a gzipped tar file (or Zip file) containing the Data.* files from your var directory. Any other thoughts you might have regarding events leading up to this would be helpful. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Fri Mar 5 22:33:07 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:33:07 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> <36E05516.FBCEC2BE@appliedbiometrics.com> Message-ID: <36E05BA3.D5125CF@digicool.com> Christian Tismer wrote: > > Tony.McDonald@newcastle.ac.uk wrote: > > > > > DatabaseError: Corrupted data record at 1087646 > > I didn't try such a thing before. But because the Zope > database is always only appended to (if I'm understanding right), > you might try to truncate the file upto that offset and see > if it is working again? (please keep a backup :-) Good point. I should have mentioned that as a quick recovery, especially if the location is near the end of the file. But please send me the file before you truncate it. :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From da@ski.org Sat Mar 6 00:35:44 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 16:35:44 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > On Fri, 5 Mar 1999, David Ascher wrote: > > > What's the equivalent DTML? Can one create a variable in DTML? > > > ... > Hmm. I want to create a variable whose value is given by another value. Doing: )"--> doesn't make it through the parser. I've tried adding various quotes to no effect. I think I'm going to work on understanding ExternalMethods -- this syntax is not made for me. =) --david From jbb@spyderlab.com Sat Mar 6 00:58:51 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 19:58:51 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Jordan B. Baker wrote: > Error, exceptions.KeyError: unhandled > > Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? Well, I was looking at the code for the MySQLmodule and it appears that it has problems handling some fields. This appears to be a limitation of the MySQLmodule. It currently does not handle the LONGLONG datatype longer timestamps use. At least I assume its the LONGLONG that is messing it up. I haven't looked into that much detail to be honest. I'm not quite sure if this is something that should be included in the FAQ, or considered a known bug, or submitted to the Collector? Thanks, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mbernstein@profitscape.net Sat Mar 6 01:37:26 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 17:37:26 -0800 Subject: [Zope] Webreview Article Message-ID: <36E086D6.B90F1AEF@profitscape.net> Well, it's the end of the day, and no-one else has posted this, so... http://webreview.com/wr/pub/1999/03/05/feature/index2.html This is a link to Amos' Article on Zope in Webreview. Way to go, Amos! BTW, what have the server logs been telling you guys about people visiting zope.org recently? Has traffic been going up? Michael Bernstein. From kslee@plaza1.snu.ac.kr Sat Mar 6 01:57:52 1999 From: kslee@plaza1.snu.ac.kr (LEE, Kwan Soo) Date: Sat, 06 Mar 1999 10:57:52 +0900 Subject: [Zope] Authentication and Zope.cgi References: <199903052211.PAA16445@daikon.tuc.noao.edu> Message-ID: <36E08B9F.1B56136@plaza1.snu.ac.kr> Richard Wolff wrote: > I'm in need of a bit of clarification about how Zope starts up and when > it decides to do its authentication and why. Me, too ;-) > I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request > mymachine/Zope/manage I do indeed get the normal management screen. > I haven't been asked in some time for a password, which suprises me; > the 'access' file exists and (but?) hasn't changed since installation. This surprises me, since as far as I can see, one is always asked for password accessing /Zope/manage. Does netscape 4.07 automatically go through authenticate procedure? > I'd really like the root folder to say something other than Zope, so > I added to Apache a second rewrite rule that substitues 'mpg' for Zope > in the two places (restarted Apache), and copied Zope.cgi in cgi-bin > to mpg.cgi . These two cgi files are identical so they point to the > same /var directory. > > If I try mymachine/mpg/manage , I get an authorization failed box, > and upon clicking 'retry', I get the usual authentication box with > the correct 'access' user entered. I type in the correct password and > the system fails again ("You are not authorized to use this system. > Username and password are not correct"). There are at least two possibility. 1) Misconfigured rewrite rule. 2) mpg.cgi is not altered suitably. (oh, 1+2 gives the 3rd possibility). I was in a similar situation a few days ago. Now one of apache virtual host on my linux box has 1) ordinary apache site tree, 2) experimental(read 'for play') Zope site under hostname/Zope/ (through Zope.cgi) 3) public Zope site under hostname/public/ (through public.cgi) If this is similar enough to what you want achieve and you are desperate enough, just mail me your rewrite rule and Zope.cgi & mpg.cgi with sensitive parts altered suitably. But be aware that I am new to rewrite rules and pcgi world(hence if you are desperate enough). > So, I'm very curious as to what's going on ... and I wouldn't mind > learning how to change the top of the root name as well. This is easy. Just edit BOBO_REALM (NAME?) in your *.cgi file. LEE Kwan Soo. ps. my Zope's have their own var/Data.bbb but you want your Zope to point to the same var/Data.bbb. Oh this seems far beyond the capacity of mortal being. If you really want need this setting, I guess, the easist way to achieve it is getting Zopal blessings from DC(i.e. make a consulting contract with DC). From chadm@sgi.com Fri Mar 5 23:32:04 1999 From: chadm@sgi.com (Chad McDaniel) Date: 05 Mar 1999 15:32:04 -0800 Subject: [Zope] underscores in Z SQL Method Message-ID: Hello all, I recently discovered Zope and am diving right in. I have a Z SQL Method with the following Query Template: --- select * from rw_ProjectData where _id = --- when I test it, I get the following: --- Sorry, an error occurred. Traceback (innermost last): File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /test/viewSRR/manage_test) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/Shared/DC/ZRDB/DA.py, line 302, in manage_test (Object: CopySource) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_In.py, line 599, in renderwb (Object: viewSRR) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Var.py, line 237, in render (Object: _id) KeyError: _id --- I'm guessing that the parsing of the tokens picks up on underscore ('_') even outside of the DTML tags. Does anyone have a solution or workaround? thanks -- -chad From tony.mcdonald@ncl.ac.uk Sat Mar 6 08:23:25 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sat, 06 Mar 1999 08:23:25 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <199903060823.IAA17941@cheviot.ncl.ac.uk> Again, another lengthy one, with some details of word conversions and XML musings. Fingers over 'd' key... >> Some background: >> I'm one of the web developers here, with a remit to implement a >> curriculum database that can; >> (a) support the Medical Faculty here >> (b) get rolled out to three other Medical-related sites, each with >> their own 'look and feel' >> (c) possibly implement a University-wide curriculum database> >Sounds fantastic! > Absolutely. One of the reasons I applied for the job is that the potential for it is so great! >> The curriculum database is essentially delivering online study guides >> (over 100 for each Faculty) whose source is originally from very well >> marked up Word Documents. In addition, we include multiple choice > >This is really weird, it just reminded me of a (rather pathetic) dream I >had last night. I dreamt that someone created a Python module that >would read Word files. > Ouch!, what we do is save the word docs as RTF. A free program (written in Omnimark) called RTF2XML then trundles through it and creates well-formed and valid XML. I then pass it through another Omnimark program that I wrote that turns it into XML that is more suited to what we want. >I've been awfully interested in XML in the last few days. Can you >describe what user-visible benefits PHP delivers due to its integrated >XML parser? > Background:... PHP is a (non OO) server-level scripting language, usually delivered as an Apache module, that has it's roots in C, but with some of the arcane bits removed. It's database integration is very good. The authors have recently built the (almost XML-industry standard) parser Expat into it. ... From my point of view, having the XML parser in PHP meant that (a) I didn't need to call Perl CGIs (with all that overhead), (b) I'd understand the code a bit (I *cannot* do Perl!), (c) there might be a performance boost from having the parser in the Apache Module and (d) I'd be able to map XML elements such as ... into HTML

    ...
    tags or RTF control codes (all of which would be read from a user-defined database) - thus leading to the 'Holy Grail' (ouch!) of being able to render the documents into whatever form the end-user wanted. As well as that, using XML means that I can select all .. tags that match a certain criteria (eg, all first-year study guides that mention cell biology) from *all* our study guides and create a 'composite' document that would be passed through the XML 'converter' to get custom HTML and RTF docs. Of course, once I 'got into' XML I found out that just having the Expat parser around didn't necessarily mean I was going to get all that for free...ie how 'do' you 'search' an XML document to get those matched tags (and possibly their children). Enter XQL and it's friends, DOM and XSL. XQL (Perl module based on a W3C recommendation) works, but it's slow. In short, I was at an impasse. The level of work needed to incorporate XQL into PHP (as a CGI) or (gulp) rewriting it as PHP was just too much. I installed the XML-Config product for Zope and my appetite was whetted. I read about the XML-sig and downloaded the XML-0.5 toolkit from python.org. I tried one or two examples out ... and my jaw literally fell open. By the time I'd looked in the 'dom' directory I was almost gibbering. This was something I felt I might be able to understand (and definitely use). Ooops...I'll shut up as I'm waay of topic. >Additionally, we are working on Zope searching for a consulting project >right now. Actually it is Zope Cataloging. It's still a >consulting-only option, but plans are that eventually it will go "below >the line". That would be most welcome! > >> I found out about Zope Monday morning, dl'ed it, installed it, got >> one or two things working... and have been worried sick ever since. > >Ahhh, you too, eh? Did you have the dream about the chimp and the >External Method where...oh, nevermind. :^) No, but I've spent the last week muttering 'ok, I can use UserDB to authenticate against our StaffDB and allow per-user access to the file upload area', 'yeah, should be able to rewrite my PHP Multi-Choice Question engine in this DTML gubbins', 'ok, I'll pull in the Perl script that does xxx by using a redirect' and the like ... which is probably more scary! > >> My problem? is that I can see how Zope can do so much for us, but it >> seems to need a hell of a gut-wrench to do so. > >I *think* I have some good news to report on this, but before I squawk, >could you detail this gut-wrench a bit more? > Simply this: Zope seems to do just about everything I need (which is basically to provide a *framework* for the Electronic Curriculum - others will fill in *and manage* the content). I can then concentrate on providing features that people need and 'rolling them out' to the users of the systems, confident that they will integrate into the whole system. I think it's a paradigm-shifty thing more than anything else. Everyone in our group *knows* that an .htaccess file allows access to the files in that directory. They all have at least a basic grasp of CGI programming and all recognize the mapping between files in a unix file structure and their representations as web pages. People using Zope will have to break that habit of logging in to change a file ('cos it ain't there!). (for the time being, I've desubscribed from the PHP-lists to give me more room to think!...) >> c) Is there any way of using the XML documents that I'm creating into >> the database and parsing them to produce either HTML or RTF output? > >I'd like to have this as well. I've been doing a lot of thinking about >this lately. It is a bit more complicated than expected, though... This would be extremely useful to have. > >> d) I know that this a terrible question to ask... but is Zope likely >> to 'remain' open-source (we're worried about getting stuck with a >> proprietary system)?. > >This is the main reason I replied. > >Having Zope as a free and Open Source(tm) platform is the heart of our >business plan. A closed Zope would basically mean we start over >completely as a different company. Thus, closing Zope is roughly >equivalent to closing our company. > phew! well I suppose that answers *that* question! > >Earning the community's enthusiasm is pretty simple, I think. >Unfortunately we aren't doing a good job right now, though we are trying >damn hard. But we'll keep trying... > Seems to this newbie that you're doing a pretty *good* job! >> e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >> dropping the :port requirment). > >Yep, the zope.org machine has five virtual hosts. great. > >> h) We also need resources such as QuickTime movies, images PowerPoint >> slides etc. to be uploaded - would they sit in the database or can >> they be held somewhere else (and what happens about file name >> conflicts)? > >We put them in the database. The 3 Mb Zope binaries are served out of >the database, the PDF files are served out of the database. This works >so well I don't even think about it any more. > great again. Thanks for the reply Paul, (and thanks to the others that replied too - I'm not able to reply in person yet...) Cheers, tone. From jay@tomigaya.shibuya.tokyo.jp Sat Mar 6 23:07:33 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Sat, 06 Mar 1999 18:07:33 -0500 Subject: [Zope] Subfolder Access? Message-ID: <3.0.6.32.19990306180733.009318b0@hito.eccosys.com> I think there must be an easy way around a little trouble I'm having, but it's had me stumped for a few days and I can't find any mention in the list/docs. From a dhtml method I want to access a subfolder's sql methods, which is easy enough using . The problem is, because of the amount of methods involved and in order to keep things flexible I want to add the to a standard_header, and the to a standard_footer. Of course, Zope nixes this. So I was hoping there was an end-run around this dilemna - some other way to give access to subfolders. I've tried including the opening and closing WITH's in the same document surrounded by IF's with no luck, and have been wondering if there's a way to set a folder property to accomplish this... - Jay From prudek@sol.cz Sat Mar 6 09:30:44 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 06 Mar 1999 10:30:44 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> Message-ID: <36E0F5C4.4979DF71@sol.cz> Michel Pelletier wrote: > > Subject: [Zope] Python neccessary to work with Zope? > You do not need to know a single line of Python to use Zope. But > learning Python is a pleasure, not a chore. Thanks a lot for your answers, now I will have a deeper look into Zope. -- Milos Prudek From pavlos@gaaros.msrc.sunysb.edu Sat Mar 6 20:03:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sat, 6 Mar 1999 15:03:10 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > > )"--> > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. You cannot nest DTML but you can use _[] to access the namespace. For instance you could do: Have a nice weekend Pavlos From tseaver@palladion.com Sat Mar 6 21:40:16 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 06 Mar 1999 15:40:16 -0600 Subject: [Zope] [DTML] creating variables References: <199903062000.MAA29011@zope.codeit.com> Message-ID: <36E1A0C0.55D44B20@palladion.com> David Ascher wrote: > Subject: > > On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > > > On Fri, 5 Mar 1999, David Ascher wrote: > > > > > What's the equivalent DTML? Can one create a variable in DTML? > > > > > > ... > > > > Hmm. I want to create a variable whose value is given by another value. > Doing: > > )"--> > > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. > > I think I'm going to work on understanding ExternalMethods -- this syntax > is not made for me. =) I too miss Python when working in DTML. But in this case, I think that the following will help: -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From raver@box.dust.za.net Sun Mar 7 12:02:36 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Sun, 7 Mar 1999 13:02:36 +0100 Subject: [Zope] Creating Zope a zope application Message-ID: <19990307130236.A532@RaVER.duck.org> Hi! I'm reading 'A technical introduction to object publishing with Zope'. The doc says 'Creating a Zope application is simply a matter of creating a regular Python module containing the objects to be published, and placing this module along with some Zope-provided support files in the appropriate place on a web server' The doc continues to say that the zope documentation covers this prosess, but I'm not able to find it. So my question is - what are those zope-provided support files, and where am I supposed to place those file along with the python module that I've created? Sture Lygren From Paul@digicool.com Sun Mar 7 15:32:32 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 10:32:32 -0500 Subject: [Zope] [DTML] creating variables Message-ID: <613145F79272D211914B0020AFF6401907BB06@GANDALF> Tres wrote: > I too miss Python when working in DTML. But in this case, I I also wish Python could get into DTML. I look at some of the DTML that gets written and think "Ugh, that's pretty awful." Still, I don't yet see an alternative. --Paul From edcjones@erols.com Sat Mar 6 11:05:18 1999 From: edcjones@erols.com (Edward C. Jones) Date: Sat, 06 Mar 1999 06:05:18 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <36E10BEE.17A0A5DB@erols.com> Are there any Zope users in the Washington, DC area? From michel@digicool.com Sun Mar 7 18:08:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 13:08:36 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <613145F79272D211914B0020AFF6401907BB08@GANDALF> > -----Original Message----- > From: Edward C. Jones [mailto:edcjones@erols.com] > Sent: Saturday, March 06, 1999 6:05 AM > To: zope@zope.org > Subject: [Zope] Washington, DC area Zope users? > > > Are there any Zope users in the Washington, DC area? > > Digital Creations (the mecca of Zope users) is in Fredricksburg, VA. About 50 miles south of DC. -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Sun Mar 7 19:44:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 14:44:17 -0500 Subject: [Zope] Creating Zope a zope application Message-ID: <613145F79272D211914B0020AFF6401907BB0C@GANDALF> Sture wrote: > The doc says 'Creating a Zope application is simply a matter > of creating a > regular Python module containing the objects to be published, > and placing > this module along with some Zope-provided support files in > the appropriate > place on a web server' > > The doc continues to say that the zope documentation covers > this prosess, > but I'm not able to find it. So my question is - what are those > zope-provided support files, and where am I supposed to place > those file > along with the python module that I've created? Docs are still pretty light, but take a look at the Product Tutorial at: http://www.zope.org/Documentation/Reference/API --Paul From tony.mcdonald@ncl.ac.uk Sun Mar 7 20:25:00 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 07 Mar 1999 20:25:00 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <199903072025.UAA09186@cheviot.ncl.ac.uk> Hi, I've read on the zope-dev list that Zope is not multi-threaded. Does this have any ominous implications for server performance? I believe it means problems for people writing products, but does it give problems for folk using Zope in an 'install products and use them' scenario? many thanks for any thoughts, tone. From michel@digicool.com Sun Mar 7 21:00:48 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 16:00:48 -0500 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Sunday, March 07, 1999 3:25 PM > To: zope@zope.org > Subject: [Zope] Zope not multi-threaded - is this a problem? > > > Hi, > I've read on the zope-dev list that Zope is not multi-threaded. > > Does this have any ominous implications for server > performance? I believe it > means problems for people writing products, but does it give > problems for > folk using Zope in an 'install products and use them' scenario? > We can discuss this now, but in a short while it won't really matter. Zope as we know it now is not 'multi-threaded'. The real issue concerning Zope is one of concurrency, since the 'threading' of requests is ussualy created by the web server (Apache using multi-processes or Medusa (ZServer's) use of select(), neither of which use actual 'threads'). There are two areas that we are working on to make zope concurrent. The Database: There is a new version of BoboPOS, called BoboPOS3. It is currently alpha. BoboPOS3 supports concurrent processes opening, reading and writing the Object Database. 'Concurrifying' Zope: Concurrent programs have to be careful about some issues. In particular, the use of global data. These can sneak in on you in wierd ways. For example, in the regex python module (yes, regex has been depreciated for re, but for now regex is faster) certain uses of compiled reg expressions don't work when two 'threads' enter the same expression. Also, there is an issue about passing mutable objects as default arguments to methods. To be truely thread safe, default arguements need to be immutable, or mutable arguments can only be used in immutable ways. These are, as you said, developer issues. Product developers have to be careful not to block Zope for long periods of time. People in the 'install and use them' scenario should not use these types of Products unless they are sure the block times are low, and product developers should be very, very careful about moving their software out into the world if the product blocks. It should be made clear to the user that this software could stop up the whole works. Why is won't matter soon is because we are working on making Zope fully concurrent. -Michel > many thanks for any thoughts, > tone. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From DAve@mail.netraven.com Mon Mar 8 05:14:32 1999 From: DAve@mail.netraven.com (Dave G) Date: Sun, 7 Mar 1999 21:14:32 -0800 Subject: [Zope] Q for the group Message-ID: Advice needed, opinions wanted. I have a situation where there is a group of users with both a private space and a public space. The users homepage is considered private with the public space where all anonymous viewable docs are held. I have two thoughts on how to do this, Zope is capable of either method, I'm curious which method everyone else thinks best, and why. First method; community folder (contents public viewable by permission) user_folder (contents not public viewable by permission) users manage page (not public viewable by aquisition) users public folder (public viewable by permission) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by aquisition) Second method; community folder (contents public viewable by permission) user_folder (contents public viewable by aquisition) users manage page (not public viewable by permission) users public folder (public viewable by aquisition) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by permission) Both have advantages and disadvantages, either way I end up with on - off, off - on, in the permissions hirearchy. Anyone have a good argument for either method? DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From chsrinfo@guetali.fr Mon Mar 8 05:27:14 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 8 Mar 1999 09:27:14 +0400 Subject: [Zope] top level acl_users Folder Message-ID: <002e01be6924$55424c60$147800a0@pc-pi0> Hello, Is it possible to change (I mean: to delete) the top level UserFolder and use something else, say, a UserDb folder? Also, I made a french version of Confera. If someone is insterested, drop me a note. Regards, Jephte CLAIN From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:04:28 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:04:28 +0000 Subject: [Zope] Why doesn't this loop over files? Message-ID: Hi, I've d/led the ZopeDemos folder, installed it and started learning more about Zope, but there's something happening that I'm not sure about. The 'looping' example doesn't seem to iterate correctly over new additions to the folder. The DTML is here:

    Objects of type

    IdTitle
    If I create a new DTML method or document in the folder 'subFolder', it isn't recognised. I've even copy/pasted the documents that do work into the subFolder with no joy. Curiously, new folders *are* recognised. My Question is: What's preventing Zope from reading *all* the Documents in the subFolder? This would be the core of my first real application in Zope (a resource upload/download facility for staff here) so any advice would be appreciated. thanks tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:08:31 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:08:31 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? In-Reply-To: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> Message-ID: > We can discuss this now, but in a short while it won't really matter. > Zope as we know it now is not 'multi-threaded'. The real issue > concerning Zope is one of concurrency, since the 'threading' of requests > is ussualy created by the web server (Apache using multi-processes or > Medusa (ZServer's) use of select(), neither of which use actual > 'threads'). There are two areas that we are working on to make zope > concurrent. Thanks for the informative answer Michel. Look forward to seeing the all-new singing and dancing server! ta tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:31:59 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:31:59 +0000 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: Hi Richard, > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. I don't know if my critiques will be all that useful (being a Zope newbie), but hopefully this will help a bit. > - - Proposed Access Method - - > It is desired to be able to have "non DTML" files incorporated > in a Zope URL system. These files might be static GIF files, > quicktime movies, or just plain old HTML. Yes. > Obviously, they might be "included" in a DTML page by simply > referencing them directly by their URL. However, I can see cases > where one would like the access to be under the control of the Zope > system. Definitely. We have dozens and dozens (eventually hundreds) of files (QT movies, PowerPoints, Word Docs and the like - the mean size is about 600k-1Meg, but we have quite a few monsters at 6-7 Megs). > For example, access controls might apply. I think that this is 'a good thing'. > > The Zope mount point would enforce permissions just as if the > file were loaded into the Zope DB. > > Objects can be "imported" without having them take up space > in the database. Their creation and maintanence can be handled > outside the Zope system. This would be excellent news for us. > They are rendered by "cat"ing their contents. Does this ensure that MIME types are kept with the document, so that 'clicking' on its link will ensure that the correct helper application is invoked? Cheers, Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From M.Faassen@vet.uu.nl Mon Mar 8 10:54:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 08 Mar 1999 11:54:50 +0100 Subject: [Zope] Ad-hoc Zope FAQ version 0.1.1 Message-ID: <36E3AC7A.3C93D5F4@pop.vet.uu.nl> Ad-hoc Zope FAQ version 0.1.1 Note on the use of the Zope mailing lists: The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Please join and help us document Zope! Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured; unrelated questions are mixed haphazardly. If you feel the calling to help categorize the FAQ into sections, or if you'd like to maintain a particular FAQ section, please mail to the ZDP list. Thank you in advance! Note on the use of StructuredText: See the (currently) first FAQ entry for information on how to render this FAQ into HTML using Zope. For more information on StructuredText see:: http://www.zope.org/Documentation/Reference/StructuredText but this link is currently not completely up to date; see the comments in 'lib\python\StructuredText\StructuredText.py' for the current documentation. * How do I render the Structured Text FAQ into HTML cleanly? (in Zope) When including Structured Text (STX) from a DTML Method into another Document with the 'fmt="structured-text"' attribute, it will be quoted twice. This is because the '__str__' method of the 'DocumentTemplate.HTML' class automatically quotes its HTML when called. You can work around this by calling the STX document's 'read_raw()' method to get the unquoted version. This way we can use unquoted Structured Text examples in our FAQ:: Note that if the STX comes from a property the 'read_raw()' workaround is not needed. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] Another possibly is to use '_.getitem()', like this:: _.getitem('sequence-item') The difference is that the first renders 'sequence-item' through DTML, whereas 'getitem()' does not; it returns the raw value of 'sequence-item'. * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like 'REQUEST.form', 'REQUEST.cookies' and even 'REQUEST' itself. Just call the 'items()' method of the dictionary, and the #in tag will provide a 'sequence-key' and 'sequence-item' variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use 'REQUEST.cookies.items()' for all your cookies, and 'REQUEST.items()' for all 'REQUEST' variables, including CGI Environment variables. If you don't mind the format, you could use '
    ' as a shortcut. * What is a Principia Draft? A Principia Draft is a special copy of any Zope object that is invisible to visitors of your site. You can make changes to this copy, and grant access to outsiders to view your changes (or work along with you). When all changes are done, you can approve all the changes, or discard them. Approving will make the changes permanent and visible to your audience. However, currently Drafts can appear to be broken. To add a draft, choose Principia Draft from the popup menu and click 'Add'. Next, you will have to supply an ID for the Draft, and specify on what base object you are going to work. Clicking 'Add' in this screen will create the Draft for you. Next, you will have to specify who will have access to the Draft. Here the problem starts, because of the way Drafts are managed. First, a Draft doesn't acquire any users from its parent, so you will have to add anyone who has to have access explicitly, even if they have already been access to a parent Folder. But the biggest problem is that you can't reach the UserFolder and Approval screens via the management screens. This will make a Draft a bit harder to use, but it still is workable. This second problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Approval management screens. As this now doesn't happen anymore, you will have to type in the URLs to the screens yourself. You can reach the screens calling the Draft object's 'users__draft__.manage_main' and 'manage_approve__draft__' methods. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ So, the next step is typing in the URL to the Draft's UserFolder management screen, and adding all users that should have access to the Draft. These users can now edit and view all changes made to this Draft. When done, you go to the 'manage_approve__draft__' management screen, and approve, or discard the changes. * How does my Folder Product load default documents? Create a list of tuples containing filenames (without '.dtml') and title pairs:: self.defaultDocs = [ ('index', 'NotMail'), ('address', 'Address Book'), ('attach', 'Attach a File'), ('composer', 'Compose a Message'), ('contact', 'Contact Developers'), ('search', 'Search Your Mailboxes'), ('results', 'Your Search Results'), ('folder', 'Mailbox'), ('message', 'Message'), ('help', 'Help'), ('lookup', 'Lookup Users'), ('standard_footer', 'Standard HTML Footer'), ('standard_header', 'Standard HTML Header'), ('noto', 'Message must have at least one recipient.'), ('reminders', 'Your Reminders'), ('save', 'Save Message'), ('logout', 'You have been logged out'), ('GPL', 'The GNU General Public License'), ('sentmail', 'Mail was sent')] # Then iterate over them and create each one for id,title in self.defaultDocs: try: self.defaultDocFile(id, title, id) except: pass # defaultDocFile is a handy little function: def defaultDocFile(self, id, title, file): f=open('%s/Products/NotMail/%s.dtml' % (SOFTWARE_HOME, file)) file=f.read() f.close() self.manage_addDocument(id, title, file) When you are debugging your DTML, it's a pain to keep deleting and creating new instances of your object in order to load the new dtml files off of the disk. This function comes in handy:: def refresh_docs(self, REQUEST): """ refresh documents from disk (for debug purposes) """ for id,title in self.defaultDocs: try: self._delObject(id) except: pass try: self.defaultDocFile(id, title, id) except: pass return self.manage_main(self, REQUEST) Then, assuming your object has an attribute 'debug' you can define some DTML like so in your manage_main screen::

    Refresh Documents from disk

    * How do I add management tabs to my folder sub-class? If you subclass 'OFS.Folder.Folder' to build a folderish object, you may want to keep around the old Folder management tabs, but add some of your own as well. This can be done by mucking with the Folder class 'manage_options' attribute. One problem is that you might want your own custom 'manage_main' but the FolderClass uses 'manage_main' for displaying the contents of the folder. Here is what I did for my EMarket product. By examining Folder's manage_options:: for option in Folder.manage_options: print option We get the following output:: {'label': 'Contents', 'target': 'manage_main', 'action': 'manage_main'} {'label': 'Properties', 'target': 'manage_main', 'action': 'manage_propertiesForm'} {'label': 'Import/Export', 'target': 'manage_main', 'action': 'manage_importExportForm'} {'label': 'Security', 'target': 'manage_main', 'action': 'manage_access'} {'label': 'Undo', 'target': 'manage_main', 'action': 'manage_UndoForm'} {'label': 'Find', 'target': 'manage_main', 'action': 'manage_findFrame'} Notice that the "Contents" tab calls Folder's manage_main attribute. Just rename that in your sub-class with something like:: manage_contents=OFS.Folder.Folder.manage_main and assign that to a different tab. Here is the beginning of the MarketItem class from the EMarket product:: class MarketItem(OFS.Folder.Folder): """A MarketItem """ # Specify a name for the item type: meta_type='MarketItem' # Specify a relative URL for the icon used to display icons: icon='misc_/EMarket/marketItem' # rename Folder's manage_main to manage_contents manage_contents=OFS.Folder.Folder.manage_main manage_main=HTMLFile('marketItemEdit', globals()) manage_image=HTMLFile('marketItemImage', globals()) # Specify definitions for tabs: manage_options=[ {'label':'Attributes', 'action':'manage_main'}, {'label':'ImageUpload','action':'manage_image'}, {'label':'View', 'action':''}, ] # add in the options from the Folder class.... change # the 'action' for Contents to 'manage_contents' for item in OFS.Folder.Folder.manage_options: if item['label'] == 'Contents': # be sure to use a *copy* manage_options.append(item.copy()) manage_options[-1]['action'] = 'manage_contents' else: manage_options.append(item) From doussot@gifrance.com Mon Mar 8 10:56:19 1999 From: doussot@gifrance.com (doussot@gifrance.com) Date: Mon, 8 Mar 1999 11:56:19 +0100 (CET) Subject: [Zope] Netscape server. Message-ID: Hello, In Zope documentation I found this: > Netscape Servers > > * Like Apache, Netscape does not pass HTTP Authorization information to > CGI scripts. We have a plugin at our website that addresses this. > http://www.digicool.com I found a link on Digicool Web site (Free Stuff / nscgi) but it is broken :( Does anyone know where I can find this plugin ? Thanks. (Please CC me your answers, I'm not suscribed to the list) --- Yann Doussot Grey Interactive - France - http://www.gifrance.com/ Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00 From Lutz.Ehrlich@EMBL-Heidelberg.de Mon Mar 8 13:27:33 1999 From: Lutz.Ehrlich@EMBL-Heidelberg.de (Lutz.Ehrlich@EMBL-Heidelberg.de) Date: Mon, 8 Mar 1999 14:27:33 +0100 ('MET) Subject: [Zope] '~' in StructuredText links? Message-ID: <14051.53317.19816.135841@cuckoo.EMBL-Heidelberg.DE> Hi Zopists, using StructuredText ($Id: StructuredText.py,v 1.11 1999/02/08 18:13:12 klm Exp $) for content generation, I find that I can't include tilde (~) characters in hyperlinks, i.e. a string like "brabbel":http://www.embl-heidelberg.de/~ehrlich. is not mapped to

    brabbel.

    but output as literal

    "brabbel":http://www.embl-heidelberg.de/~ehrlich

    . I tried to fix StructuredText,StructuredText.__init__ by inserting '~' into the gsub statements. No success whatsoever... As I couldn't find this entry neither in the Collector nor in the archive, I wonder whether somebody has a patch sitting somewhere? Cheers, Lutz Ps: Congratulations to the people at Digicool. Keep up the great work! ______________________________________________________________________ Lutz Ehrlich web : http://www.embl-heidelberg.de/~ehrlich email: lutz.ehrlich@embl-heidelberg.de European Molecular Biology Laboratory phone: +49-6221-387-140 Meyerhofstr. 1 fax : +49-6221-387-517 D-69012 Heidelberg, Germany From zopelist@regalint.com Mon Mar 8 13:32:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 08:32:45 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I just ran into this error. When I did a SELECT * on joined tables it would give the error but if I named the fields I needed it worked. I played with it a little and got the error again when I named a field that ended in _num in the SELECT. I have four such INT fields that I don't need, they are used by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). As you can see my SELECT list is long and it would have been nice to just use a * since I need almost all the fields. Everything works fine in MySQL client but from Zope I can produce that error. Maybe there is some conflict with the *_num names. What are your field names? SELECT sonum,cust_name,cust_n,description,kickoff,delivery, comment,partnum,pm_n,pm_initials,cad_n,cad_initials, md_n,md_initials,mm_n,mm_initials,division,custdate,RD, manmeet,steel,exp_del FROM jobinfo LEFT JOIN customer ON cust_n=cust_num LEFT JOIN pm ON pm_n=pm_num LEFT JOIN cad ON cad_n=cad_num LEFT JOIN md ON md_n=md_num LEFT JOIN mm ON mm_n=mm_num WHERE AND active='1' ORDER BY sonum DESC >On Fri, 5 Mar 1999, Jordan B. Baker wrote: > >Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? > >Well, I was looking at the code for the MySQLmodule and it appears that it >has problems handling some fields. > >This appears to be a limitation of the MySQLmodule. It currently does not >handle the LONGLONG datatype longer timestamps use. > >At least I assume its the LONGLONG that is messing it up. I haven't >looked into that much detail to be honest. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From jbb@spyderlab.com Mon Mar 8 16:12:06 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 11:12:06 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Philip Aylesworth wrote: > I just ran into this error. When I did a SELECT * on joined tables it would > give the error but if I named the fields I needed it worked. I played with > it a little and got the error again when I named a field that ended in _num > in the SELECT. I have four such INT fields that I don't need, they are used > by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). > As you can see my SELECT list is long and it would have been nice to just > use a * since I need almost all the fields. > > Everything works fine in MySQL client but from Zope I can produce that error. > > Maybe there is some conflict with the *_num names. What are your field names? I was able to find a work around. The problem was the handling of the TIMESTAMP datatype by the MySQLmodule. It doesn't know how to handle a long timestamp unfortunately, so you'll want to retrieve it as a UNIX timestamp or as a formatted date using one of MySQL's many date functions. The other thing is that I doubt it handles double long integers since AFAIK Python doesn't handle these without an extension module. If your query is returning any of these you'll most likely get this response from Zope... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mike@compar.com Mon Mar 8 16:33:34 1999 From: mike@compar.com (Mike Pelletier) Date: Mon, 8 Mar 1999 11:33:34 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Jordan B. Baker wrote: > The other thing is that I doubt it handles double long integers since > AFAIK Python doesn't handle these without an extension module. It sure does: Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> long("99999999999999999") 99999999999999999L >>> 9999999999999L ** 2 99999999999980000000000001L Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can make numbers as large as you have memory for. Or is this not what you mean? Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From jbb@spyderlab.com Mon Mar 8 17:56:59 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 12:56:59 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Mike Pelletier wrote: > On Mon, 8 Mar 1999, Jordan B. Baker wrote: > > > The other thing is that I doubt it handles double long integers since > > AFAIK Python doesn't handle these without an extension module. > > It sure does: > > Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> long("99999999999999999") > 99999999999999999L > >>> 9999999999999L ** 2 > 99999999999980000000000001L > > Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can > make numbers as large as you have memory for. Or is this not what you > mean? Hey, I'm glad you proved me wrong :) It looks like there is a limitation in the MySQLmodule when handling MySQL's LONGLONG datatypes that could probably be corrected. I may take a look at this later, but I am thinking I may just store UNIX timestamps in my database since this is more portable across databases anyways. But anyway, this may be a FAQ item as I'm sure other people may run into it. -jbb. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From chalaouxf@synbio.tpgnet.net Mon Mar 8 17:43:22 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 8 Mar 1999 18:43:22 +0100 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: References: Message-ID: <19990308180532781.AAA136@[195.10.9.163]> Hi All, I fetched FAQ tool from "http://www.zope.org/WebReview/" but the archive contain only : * __init__.py *version.txt *Product.dat No, FAQ.py file. Strange no. Thus, this is maybe why I cant view Faq in the list of objet in Zope!! FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From zopelist@regalint.com Mon Mar 8 18:30:31 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 13:30:31 -0500 Subject: [Zope] Getting an L on integers eg. 53L Message-ID: Here is a strange one -- I am getting an L on the end of integer numbers from MySQL. (They are INT not BIGINT!) It didn't happen in 1.9, and it doesn't happen with methods that I created in 1.9 and moved to 1.10.2 (I think). In I have to use fmt='%d' to get rid of it. I also had a problem when I tried to use one in a redirect: produces: http://server/dir/file_html?num=53L which causes an error. I got around that by adding an int function: Has anybody else experienced this problem? Having to add all this extra code is driving me crazy! Phil A Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From amos@aracnet.com Mon Mar 8 18:57:54 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 10:57:54 -0800 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: <19990308180532781.AAA136@[195.10.9.163]> References: Message-ID: <3.0.5.32.19990308105754.01145910@mail.aracnet.com> At 06:43 PM 3/8/99 +0100, FR Chalaoux wrote: >I fetched FAQ tool from "http://www.zope.org/WebReview/" but the >archive contain only : > >* __init__.py > >*version.txt > >*Product.dat > > >No, FAQ.py file. Strange no. While this may seem strange, this is in fact the normal contents of a Product distribution file for a "levered product". When you build a product through the web inside the control panel, these are the normal files Zope creates inside the product distribution. >Thus, this is maybe why I cant view >Faq in the list of objet in Zope!! Unfortunately this is not the case. The reason you can't use the FAQ is that there is a bug in Zope which keeps some people from being able to use levered distributions. As discussed on the list, it appears to be related to zlib compression. We are aware of the problem and are working to solve it. Thanks for your patience. -Amos P.S. If you're curious about a bug, you can try searching the Collector. http://www.zope.org/Collector In this case a search under "lever" or "faq" would turn up the existing bug report for this problem. From prudek@sol.cz Mon Mar 8 20:48:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 08 Mar 1999 21:48:32 +0100 Subject: [Zope] python binary not found by bash Message-ID: <36E437A0.4788EA32@sol.cz> When I try to install binary distribution of zope (on Linux), I run the install script and end up with: bash: ./python: No such file or firectory even though python binary is there, with correct rights. Does it mean that the binary lacks some libraries? If so, can I find which ones? -- Milos Prudek From bjs@crc.com Mon Mar 8 21:52:50 1999 From: bjs@crc.com (Bryan J. Smith) Date: Mon, 8 Mar 1999 16:52:50 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <199903082152.QAA14654@mail.lsg.crc.com> New subscriber: Zope on Linux/Alpha? I understand the Zope is developed on Linux/Intel and is supported on many other systems. Linux/Alpha was not one listed on the FAQ. Anyone know if it is possible to compile it on Linux/Alpha? Anyone got a precompiled binary for Linux/Alpha? Thanx ... -- Bryan P.S. If not, what are the issues? I may be interested in resolving them. ************************************************************ Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================ Some say the U.S. is run by special interest, including me. I say, cut the middle man out and save the tax payers money. In keeping with the Bill Of Rights, the ACLU would be 1st in charge, the NRA 2nd, etc... -- Just my $0.02 ************************************************************ From michel@digicool.com Mon Mar 8 22:19:17 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 8 Mar 1999 17:19:17 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <613145F79272D211914B0020AFF6401907BB18@GANDALF> > -----Original Message----- > From: Bryan J. Smith [mailto:bjs@crc.com] > Sent: Monday, March 08, 1999 4:53 PM > To: 'Zope List' > Subject: [Zope] New subscriber: Zope on Linux/Alpha? > > > New subscriber: Zope on Linux/Alpha? > > I understand the Zope is developed on Linux/Intel and is > supported on many > other systems. Linux/Alpha was not one listed on the FAQ. > Anyone know if > it is possible to compile it on Linux/Alpha? Anyone got a precompiled > binary for Linux/Alpha? > > Thanx ... > > -- Bryan > > P.S. If not, what are the issues? I may be interested in > resolving them. > No real issues, just d/l the source release and try compiling Zope. I'd recommend having Python 1.5.1. To build the source release to use the built in simple web server, try: '/usr/local/bin/python1.5.1 wo_pcgi.py' to use with Apache (Note, d/l Zap and look at it's .conf file) '/usr/local/bin/python1.5.1 w_pcgi.py' Change the command line to reflect your python binary. Check out, I think, INSTALL.txt in the doc directory. All the C is ANSI, and python is python (grin) so you shouldn't have a problem. -Michel > ************************************************************ > Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com > Software Engineer http://www.SmithConcepts.com/legal.html > ============================================================ > Some say the U.S. is run by special interest, including me. > I say, cut the middle man out and save the tax payers money. > In keeping with the Bill Of Rights, the ACLU would be 1st in > charge, the NRA 2nd, etc... -- Just my $0.02 > ************************************************************ > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From amos@aracnet.com Tue Mar 9 00:40:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 16:40:35 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Hi Guys: I think I've nailed the problem that was keeping people from using the FAQ Tool and levered products in general under windows. I'd love some confirmation that this does or does not solve people's problems. The fix is to open the product.dat file in 'rb' mode. To do this, change line 420 of lib/python/App/Product.py to: f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') Again, let me know if this doesn't work for you. -Amos P.S. Here's a little FAQ to tide you over until you're happily building your own ;-) Q. What's the FAQ Tool any way? A. Find out for yourself at: http://www.zope.org/WebReview/ Q. What's a levered product? A. A Product created through the web by building it inside the Control Panel. See the Zope Manager's Guide for more information. From robin@alldunn.com Tue Mar 9 01:16:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Mon, 8 Mar 1999 17:16:09 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <011401be69ca$6c2d9730$fa01a8c0@rogue> Yep. Didn't work for me before (even for Levered Products I made myself) but now it does. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Amos Latteier To: zope@zope.org Date: Monday, March 08, 1999 4:11 PM Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) >Hi Guys: > >I think I've nailed the problem that was keeping people from using the FAQ >Tool and levered products in general under windows. > >I'd love some confirmation that this does or does not solve people's problems. > >The fix is to open the product.dat file in 'rb' mode. To do this, change >line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') > >Again, let me know if this doesn't work for you. > >-Amos > >P.S. Here's a little FAQ to tide you over until you're happily building >your own ;-) > >Q. What's the FAQ Tool any way? >A. Find out for yourself at: http://www.zope.org/WebReview/ > >Q. What's a levered product? >A. A Product created through the web by building it inside the Control >Panel. See the Zope Manager's Guide for more information. > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From bkc@murkworks.com Tue Mar 9 00:21:51 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 8 Mar 1999 20:21:51 -0400 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) In-Reply-To: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Message-ID: <199903090115.UAA08625@anvil.murkworks.com> On 8 Mar 99, at 16:40, Amos Latteier wrote: > The fix is to open the product.dat file in 'rb' mode. To do this, change > line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' > shshsh') > > Again, let me know if this doesn't work for you. This fix works for me (lline 407 in my Product.py) HOWEVER ... you must delete the FAQ product from the control panel, then restart ZServer for this fix to take effect. Apparently the old FAQ in bobo inhibits re-reading of the product.dat file. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From butchland@yahoo.com Tue Mar 9 02:23:55 1999 From: butchland@yahoo.com (Butch Landingin) Date: Mon, 8 Mar 1999 18:23:55 -0800 (PST) Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <19990309022355.23900.rocketmail@send205.yahoomail.com> In a previous posting, Tony McDonald wrote: >Hi, >I've d/led the ZopeDemos folder, installed it and started learning >more about Zope, but there's something happening that I'm not sure >about. > >The 'looping' example doesn't seem to iterate correctly over new >additions to the folder. The DTML is here: <... additional text deleted ...> There's a bug in the code, something I noticed when I was playing with the examples too. this is the fixed version: 001 002 003 004

    Objects of type

    005 006 007 008 009 010 011
    IdTitle
    012 013 014 About the bug and the fix: the bug was due to the statement looping over the current folder, not the subFolder which it should be. By moving the "with" statement to enclose it (see line 002), the statement VS. where column_name = Is the only advantage of using the first (sqltest) the type checking? I can't find any other obvious advantages. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tony.mcdonald@ncl.ac.uk Tue Mar 9 09:46:27 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 09:46:27 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <19990309022355.23900.rocketmail@send205.yahoomail.com> Message-ID: > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 Butch, Thanks for the reply - but this doesn't work completely either. I can add folders and delete them and the changes made show up in the listing, but adding documents (both documents and methods) has no effect. If I delete the *original* documents created by the installation, they show up as being gone, but even a copy-paste of the original documents doesn't get any new documents/methods etc. to show up. Am I doing a dumb newbie thing here? (I *do* have a folder called 'subFolder' btw). many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From dick.wall@mediamail.telinet.com Tue Mar 9 13:47:08 1999 From: dick.wall@mediamail.telinet.com (Dick Wall) Date: Tue, 09 Mar 1999 08:47:08 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <19990309084120.83ca0fd9.in@mediamail.telinet.com> Hi all, I have been using python for years, and zope for a few months now (lovely), ZServer for weeks, but Windows NT? Not long enough to understand the differences between services and ordinary process (give me a break, I am heavily from a Un*x background) :-). I know when I installed the binary version of Zope on the windows machine here it gave me a service in the services list which I can activate on startup. However, I am betting that this runs the ZopeHTTPServer, not the ZServer which I got as a separate download. I have everything working just lovely with the ZServer now, but it needs to be run as an NT service (and respond to start and stop signals, etc) at which point I freely admit my own inadequacies in this area. Now my question. How can I do what I need to do. Is it simply a case of redirecting a python 'shell' file used by the service to the start.py in the ZServer module, or is there more to it? If it is this simple, which python 'shell' file do I use? If it is not this simple, can someone send me basic instructions on how to do it (why is NT like this - give me an rc.local file any day - I know where I stand with that stuff). Thanks in advance. Dick From michel@digicool.com Tue Mar 9 15:00:46 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:00:46 -0500 Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <613145F79272D211914B0020AFF6401907BB25@GANDALF> > -----Original Message----- > From: Butch Landingin [mailto:butchland@yahoo.com] > Sent: Monday, March 08, 1999 9:24 PM > To: tony.mcdonald@ncl.ac.uk > Cc: Zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > In a previous posting, Tony McDonald wrote: > > >Hi, > >I've d/led the ZopeDemos folder, installed it and started learning > >more about Zope, but there's something happening that I'm not sure > >about. > > > >The 'looping' example doesn't seem to iterate correctly over new > >additions to the folder. The DTML is here: > <... additional text deleted ...> > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 > > About the bug and the fix: > the bug was due to the statement > looping over the current folder, not the subFolder which it should be. > By moving the "with" statement to enclose it (see line 002), the > statement

    Objects of type

    IdTitle
    > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony > McDonald > Sent: Tuesday, March 09, 1999 4:46 AM > To: Butch Landingin > Cc: zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > > > > There's a bug in the code, something I noticed when I was playing > > with the examples too. this is the fixed version: > > > > 001 > > 002 > > 003 > > 004

    Objects of type

    > > 005 > > 006 > > 007 > > 008 > > 009 > > 010 > > 011
    IdTitle
    > > 012 > > 013 > > 014 > > Butch, > Thanks for the reply - but this doesn't work completely either. I can > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. > > Am I doing a dumb newbie thing here? (I *do* have a folder called > 'subFolder' btw). > > many thanks > tone > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Tue Mar 9 15:03:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:03:55 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF6401907BB27@GANDALF> > -----Original Message----- > From: Dick Wall [mailto:dick.wall@mediamail.telinet.com] > Sent: Tuesday, March 09, 1999 8:47 AM > To: zope@zope.org > Subject: [Zope] ZServer as a windows NT service? > > > Hi all, > > > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). > Ahmen brother! Can I get a witness! -Michel > Thanks in advance. > > Dick > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From zopelist@regalint.com Tue Mar 9 15:01:52 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 10:01:52 -0500 Subject: [Zope] sqltest vx. var Message-ID: >Something I'm just curious about... > >where > >VS. > >where column_name = > >Is the only advantage of using the first (sqltest) the type checking? I >can't find any other obvious advantages. > I haven't played with it too much but I think that Zope handles undefined variables properly if you do the sqltest. ie. where and will work if name2 is not defined. It also handles the quoting and SQL syntax (such as doubling single quotes). Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tony.mcdonald@ncl.ac.uk Tue Mar 9 15:04:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 15:04:02 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <000401be6a3c$38a6cc70$ce63efa1@venice> References: Message-ID: > > Tony's problem was that Zope was correctly respecting the meta_type of the > 'old' Document objects included with the demo, but any new documents added > afresh were being created with the 'DTML Document' or 'DTML Method' > meta-types, which were falling through the objectValues 'sieve'. > Andy, Thank you *very* much for this - I thought I was losing my marbles over it! (Now all I need is links to External Files and I'm away! :) Thanks again, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From pavlos@gaaros.msrc.sunysb.edu Tue Mar 9 15:06:13 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 10:06:13 -0500 (EST) Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: Message-ID: On Tue, 9 Mar 1999, Tony McDonald wrote: > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. My guess is that you created your original database in Zope-1.9 and then moved everything into Zope-1.10. If that is the case then you need to replace with or something to that effect. Pavlos From Paul@digicool.com Tue Mar 9 15:21:40 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 9 Mar 1999 10:21:40 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF640190D9E77@GANDALF> Dick wrote: > startup. However, I am betting that this runs the > ZopeHTTPServer, not the Not quite. ZopeHTTPServer is a console app just like ZServer. The service is a PCGI-like thing that runs Zope as a service, listening for named pipe connections from something that is run as a CGI by the web server. > ZServer which I got as a separate download. I have everything > working just > lovely with the ZServer now, but it needs to be run as an NT > service (and > respond to start and stop signals, etc) at which point I > freely admit my > own inadequacies in this area. ZServer is still at alpha 2 so it's premature to focus on things like how it is packaged. I *think* we have all the issues figured out and the next release, perhaps this month, will be a beta1. Until we get into beta, we'll have to hope that someone in the community packages it up as a service. > Now my question. How can I do what I need to do. Is it simply > a case of > redirecting a python 'shell' file used by the service to the > start.py in > the ZServer module, or is there more to it? If it is this > simple, which > python 'shell' file do I use? If it is not this simple, can > someone send me > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). One issue off the top of my head is integration with the NT Event Log. --Paul From rob.page@digicool.com Tue Mar 9 16:05:08 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:05:08 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069142@GANDALF> > >Something I'm just curious about... > > > >where > > > >VS. > > > >where column_name = > > > >Is the only advantage of using the first (sqltest) the type > checking? I > >can't find any other obvious advantages. > > > > I haven't played with it too much but I think that Zope > handles undefined > variables properly if you do the sqltest. > > ie. > > where > and > > will work if name2 is not defined. > > It also handles the quoting and SQL syntax (such as doubling > single quotes). Absolutely... we ran into some situations where the SQL was so dynamic potential security problems arose. sqltest and sqlvar are designed to reduce that exposure. Additionally, we've found a very common rhythm where a search UI might expose all of a large percentage of the available data elements in the RDBMS. Using sqltest lets the user not specify one or more parameters without a lot of messy stuff in the SQL Method. --Rob From zopelist@regalint.com Tue Mar 9 16:06:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 11:06:27 -0500 Subject: [Zope] sqltest vx. var In-Reply-To: Message-ID: >>Something I'm just curious about... >> >>where >> >>VS. >> >>where column_name = >> >>Is the only advantage of using the first (sqltest) the type checking? I >>can't find any other obvious advantages. >> > >I haven't played with it too much but I think that Zope handles undefined >variables properly if you do the sqltest. > >ie. > >where >and > >will work if name2 is not defined. > >It also handles the quoting and SQL syntax (such as doubling single quotes). > I'll correct myself here. I was thinking of the tag. I don't know what does that or won't do... Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rob.page@digicool.com Tue Mar 9 16:23:11 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:23:11 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069145@GANDALF> > I'll correct myself here. I was thinking of the > tag. I > don't know what does that or > won't do... I meant to bring this up in my earlier post -- this tag too, is used to simplify what could be a terribly complicated SQL Method given an indeterminate number and list of search criteria. With this tag you can permit an arbitrary arguments to be supplied connected with your predetermined ANDs and ORs This one tag has, in the past, reduced may SQL Methods into one -- natural maintenance savings. --Rob From jeffrey@Digicool.com Tue Mar 9 16:27:49 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 09 Mar 1999 11:27:49 -0500 Subject: [Zope] sqltest vx. var Message-ID: <199903091627.IAA32000@zope.codeit.com> >From: Philip Aylesworth > I'll correct myself here. I was thinking of the tag. I > don't know what does that or > won't do... A _very very_ nice feature of #sqltest is the 'multiple' feature. For example: SELECT * FROM inbox WHERE If doc_status is passed in as a single value, like "foo", the SQL statement will be rendered as:: SELECT * FROM inbox WHERE doc_status='foo' BUT!!! (this is where it gets good), if doc_status is passed in as a list/sequence, like ["foo", "bar", "drop", "ship"], it will be rendered as:: SELECT * FROM inbox WHERE doc_status in ('foo','bar,'drop','ship') This is an _extremely_ handy feature of #sqltest. Prior to #sqltest, doing the above might be like: SELECT * FROM inbox WHERE doc_status in ( '' , ) (#else used to be used where #unless is used today). The above code also always required doc_status to be passed in as a sequence. #sqltest is smart enough (I believe - i've never been bitten by this) to detect the difference between strings and lists. I've used #sqltest with multiple many times with Acquisition where a folder property would define part of a SQL statement. That property in some cases would be a single value, in other places it would be a tokens or lines property. So, in otherwords, you get the type checking, the multiple, the optional, etc... with #sqltest that you don't get otherwise. About the only problem is that #sqltest currently doesn't do not-equals or "not in (...)". .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From A.K.Heath@shu.ac.uk Tue Mar 9 17:05:39 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Tue, 9 Mar 1999 17:05:39 GMT Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <199903091705.RAA07667@teak.shu.ac.uk> I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? Andy btw: Zope looks really good to me (when I can get over these glitches). --------------------------- Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () From zopelist@regalint.com Tue Mar 9 17:15:29 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 12:15:29 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I found that this problem came up when I used MEDIUMINT in MySQL. I changed my database to INT and it worked fine. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From michel@digicool.com Tue Mar 9 17:29:26 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 12:29:26 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB2E@GANDALF> > -----Original Message----- > From: Andy Heath [mailto:A.K.Heath@shu.ac.uk] > Sent: Tuesday, March 09, 1999 12:06 PM > To: zope@zope.org > Subject: [Zope] tree doesn't work 4me linux amd win32 > > > I'm a zope newbie. > > I just installed on a windows 95 box and on a linux 2.0.something > but I can't get anything with tree working (other stuff seems ok). > > Hadars' second sample app doesn't work for me (the tree part > produces no output). > > Even the minimal > > > > > doesn't produce output (tried this with the second Habar example after > creating the "sub-folders"). > > I get the same behaviour on windows as linux. > > I must be doing something wrong. Clues please ? > I bet your using a DTML Document. Try using a DTML Method. The reason why the tree tag renders nothing for the DTML Document is because DTML Documents are not containers of other objects, they are objects to hold DTML content. DTML Methods are (and this is the suble thing) *methods* of the Folder object that contains them. They are not 'objects' in the same sense of the term used for DTML Documents (I can hear Jim saying now "*everything's* an object"). Because Folder objects *are* containers, the #tree tag used in a Folder's DTML Method will render the contents of that Folder. Hadar's example is a little outdated, it is based on 1.9, in which DTML Documents didn't exist, and all Documents were DTML methods. -Michel > Andy > btw: Zope looks really good to me (when I can get over these > glitches). > > --------------------------- > Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o > Sheffield Hallam University. Phone: +44 114 2534904 /\ > Sheffield, England Fax: +44 114 2533161 () () > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From robin@alldunn.com Tue Mar 9 17:31:35 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 9 Mar 1999 09:31:35 -0800 Subject: [Zope] ZServer as a windows NT service? Message-ID: <006501be6a52$b0bbe900$fa01a8c0@rogue> I currently have ZServer running as a service on two machines using the srvany.exe tool from the NT resource kit or from MSDN. Essentially srvany is the actual service and then you tell it via registry settings what other program you want to run. It works good enough for me for the time being. The only problem is that the service stop message does a hard kill on the ZServer process so any last second updates to the Zope DB might be fragmented if it wasn't finished writing, but with the way the DB works at least the DB will still be usable. I am out of the office right now so I can't provide step by step instructions right now. There is a .doc file that comes with srvany.exe that I followed. I specified that Python was the executeable to be run by srvany, the ZServer directory is to be the CWD, and that the command-line should be start.py. Worked first try. Of course the right thing to do would be to integrate native service capabilities into ZServer itself via the win32api packages. That way ZServer could shhutdown gracefully and could send meaningful things to the event log. But srvany is good enough for alpha level, non-production servers. And I havn't had any problems to speak of dealing with running it as a service. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Dick Wall To: zope@zope.org Date: Tuesday, March 09, 1999 5:09 AM Subject: [Zope] ZServer as a windows NT service? >Hi all, > >I have been using python for years, and zope for a few months now (lovely), >ZServer for weeks, but Windows NT? Not long enough to understand the >differences between services and ordinary process (give me a break, I am >heavily from a Un*x background) :-). > >I know when I installed the binary version of Zope on the windows machine >here it gave me a service in the services list which I can activate on >startup. However, I am betting that this runs the ZopeHTTPServer, not the >ZServer which I got as a separate download. I have everything working just >lovely with the ZServer now, but it needs to be run as an NT service (and >respond to start and stop signals, etc) at which point I freely admit my >own inadequacies in this area. > >Now my question. How can I do what I need to do. Is it simply a case of >redirecting a python 'shell' file used by the service to the start.py in >the ZServer module, or is there more to it? If it is this simple, which >python 'shell' file do I use? If it is not this simple, can someone send me >basic instructions on how to do it (why is NT like this - give me an >rc.local file any day - I know where I stand with that stuff). > >Thanks in advance. > >Dick > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From William_Whitehead@byu.edu Tue Mar 9 17:34:19 1999 From: William_Whitehead@byu.edu (William Whitehead) Date: Tue, 09 Mar 1999 10:34:19 -0700 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <3.0.5.32.19990309103419.00a35920@email.byu.edu> I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I was able to compile and add the ZPyGreSQL Product to my Zope installation. I want to create a Database connection. When I go to create a new one, it asks for the Id, Title, and Database Connection String. What do I put into the Database Connection String? I tried the database I want to use, but it gives Invalid connection String: baseball Is it a rights issue with PostgreSQL or something else? What is it expecting the database connection string field anyway? Thanks for your help! Bill - ====================================================================== William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | Library Information Systems | Email: | 2840 HBLL | mailto:william_whitehead@byu.edu | Provo, UT 84602 | Home Page | | http://www.lib.byu.edu/~wbw | ====================================================================== From ShawH@STHS.org Tue Mar 9 18:24:12 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 9 Mar 1999 12:24:12 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: I have a nifty system whereby each individual I add to a database automatically gets a personal directory and password. One of my users has come to me with a problem. He can add images to his directory, but cannot subsequently edit the image (i.e. open the image's manage screen) as it complains about lack of permissions. The security role he has contains all the image related options I see. He can delete it, btw. This is not an immediate issue, but I do wonder why the permissions don't seem to be working in a sensible manner. Why should he be able to add images, but not manage them? Are there extra 'image manage' permissions? If so, where do I find them? From M.Faassen@vet.uu.nl Tue Mar 9 18:33:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 09 Mar 1999 19:33:44 +0100 Subject: [Zope] FAQ 0.2 - About this FAQ Message-ID: <36E56988.CEF76199@pop.vet.uu.nl> Zope FAQ 0.2 - About this FAQ and the Zope Documention Project * What is this FAQ? This FAQ is a project of the Zope Documentation Project, and aims to answer any (or at least lost) questions you might have about Zope and how to use it. * What is the Zope Documentation Project? The Zope Documentation Project (ZDP) is a community project of Zope users that aims to create documentation for Zope. The first goal of the ZDP is the creation and maintenance of an extensive Zope FAQ, later on other documentation will follow. We welcome everybody to contribute; for instance by sending in questions and answers for the FAQ. * Where is the rest of this FAQ? The Zope FAQ has been split into separate sections. If you are reading this on the ZDP mailing list, you should see the other documents posted as well. If you are reading this on zope@zope.org or zope-dev@zope.org, you will only see this message. The Zope FAQ is under development. It is probably already useful, but because I don't want to spam everybody you will have to look at the ZDP list to see the rest of the FAQ. Everyone is very welcome to join the ZDP list. You can also wait until the ZDP has its web infrastructure going and the FAQ is published on the web. This will hopefully be very soon; we're working on it. * How do I contribute? The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. * How do I join the ZDP mailing list? You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Thanks in advance for your contributions! * Are there other Zope-related FAQs? Yes, there is the "Zope Questions and Answers" at:: http://www.zope.org/Information/QA/ This is maintained by Digital Creations; currently it is the best place to look if you are brand new to Zope. That said, Paul Everitt of Digital Creations has kindly contributed the Zope Questions and Answers to the ZDP (or vice versa; the ZDP is contributing to the Q&A). The ZDP plans to merge the two FAQs shortly. * What is Structured Text and what does it have to do with this FAQ? The FAQ is (currently) written in Structured Text, so you may very well reading the FAQ in Structured Text format (the double colons and the indented paragraph structure give it away). If you are just reading this FAQ you shouldn't worry about it. If you plan to contribute to the ZDP we'd prefer it if your contributions were written in Structured Text, however. For more information see the Structured Text section of this FAQ. * What are these FIXME comments I see scattered through the FAQ? If you are reading the ZDP mailing list or its archives, then it is the FAQ's editor (or possibly a contributor) who is not entirely sure about some details on Zope, and is asking people on the list to help figure it out. If you are reading this FAQ somewhere else, then oops, they don't belong there. Please send a message to the zdp@zope.org list telling us about it, and thanks! * What other sections does this FAQ have? We currently have sections on: o DTML o Zope Administration o Structured Text o External Methods o Builtin Products o Product Development From Jose.Lacal@icn.siemens.com Tue Mar 9 19:27:23 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 14:27:23 -0500 Subject: [Zope] Zope for CD Index? Message-ID: <8525672F.006A78AE.00@li01.lm.ssc.siemens.com> Folks: http://www.freeamp.org/cdindex I don't know if anybody in the community would like to approach these folks and show them how Zope can make their project so much easier to manage / control. "The CD Index project (this is a temporary name -- we should find a better name soon) is designed to replace the badly designed and even worse administered CDDB project." Just a PR hint. Regards. - - - - - I do NOT speak for Siemens. - - - - - "Everything we lack, we make-up in denial." Jose C. Lacal, Senior Engineer, Data Services Siemens I & CN - Boca Raton, FL USA jose.lacal@icn.siemens.com +01 (561) 955-3081 From Brian@digicool.com Tue Mar 9 19:44:10 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 9 Mar 1999 14:44:10 -0500 Subject: [Zope] Images and Zope1.10.2 Message-ID: <613145F79272D211914B0020AFF64019FD80@GANDALF> > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mike@compar.com Tue Mar 9 19:37:04 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 9 Mar 1999 14:37:04 -0500 (EST) Subject: [Zope] ZPyGreSQL Database Connection Problem In-Reply-To: <3.0.5.32.19990309103419.00a35920@email.byu.edu> Message-ID: From lib/python/Products/ZPyGreSQLDA/README.txt: The connection string in Zope should be: baseball@localhost:5432 your_user_name Mike. On Tue, 9 Mar 1999, William Whitehead wrote: > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > was able to compile and add the ZPyGreSQL Product to my Zope installation. > I want to create a Database connection. When I go to create a new one, it > asks for the Id, Title, and Database Connection String. What do I put into > the Database Connection String? I tried the database I want to use, but it > gives > > Invalid connection String: baseball > > Is it a rights issue with PostgreSQL or something else? What is it > expecting the database connection string field anyway? Thanks for your help! > > Bill > > > - > ====================================================================== > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > Library Information Systems | Email: | > 2840 HBLL | mailto:william_whitehead@byu.edu | > Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | > ====================================================================== > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From prudek@sol.cz Tue Mar 9 20:33:13 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 09 Mar 1999 21:33:13 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E58589.2A99E93C@sol.cz> I have a problem with authorization under Apache 1.3.3 I can go to introductory screen but I can't get to ./manage screen. I get Athorization failed, and when I pres cancel I get the traceback below. I have put the lines (with modification reflecting my placement of Zope.cgi) from doc/WEBSERVER.txt at the top of my srm.conf file. I wasn't sure where to put it, since according to Apache documentation the directive is not inherited. Later I copied those lines to Virtual WWW section of www.sol.cz but to no avail. What does the line "Zope configuration maps /Zope/ to the Zope.cgi cgi script" mean? I thought that all I need to do is put Zope.cgi in my cgi-bin, put the above lines into srm.conf, and restart Apache... You can try it on http://www.sol.cz/cgi-bin/Zope.cgi. name is superuser, password is 123 # This is the traceback: You are not authorized to access this resource. No Authorization header found. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /manage) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) -- Milos Prudek From rocon@pivot.net Tue Mar 9 20:44:23 1999 From: rocon@pivot.net (Robert OConnor) Date: Tue, 9 Mar 1999 15:44:23 -0500 Subject: [Zope] Root Folders and Names {Manager's Guide Update} Message-ID: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> * How do I "name" the *blank* root folder? This is the same folder that is named "Plutonia" in the Zope manager's guide. Maybe the root folder has no name so that if I go to http://www.bob.com/ the "Folder at / " will present index_html to requesting browsers. If I did name it "plutonia" would it be accessible both as http://www.bob.com/ and as http://www.bob.com/plutonia ? So maybe I don't need to "name" this root folder. If so, then the Zope manager's guide needs to be clearer. In the fourth paragraph on page 12 it says: "...presuming that your ZOPE is installed at http://your.place.com/Objects and it's management screen is at http://your.place.com/Objects/manage" This does not follow through the document. There is no folder named "Objects" Maybe the document should say: http://plutonia.com/ and it's management screen is at http://plutonia.com/manage" And to manage one of the three departments used in the examples, say for example "News" then: http://plutonia.com/news/manage" Other notes on this issue: Timothy J. Grant asked: "...My problem is that my Root folder in Zope has no name, and it appears that FSIMPORT requires a folder name for it to work." No response was found to this post on the ZOPE list. -bobo connor From luke@geeklife.com Tue Mar 9 21:02:05 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 9 Mar 1999 13:02:05 -0800 Subject: [Zope] NT Server Question Message-ID: <199903092102.NAA24259@hipmail1.gohip.com> I've gotten Zope up and running on my IIS/NT server. Right now I can access it through www.myserver.com/cgi-bin/zope.exe. Is there any tricky way to get it to run as www.myserver.com/zope? including www.myserver.com/zope/folder/object? Can you do that with Apache on NT? I would use ZServer but I need to also be able to run Perl CGI scripts. Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From amos@aracnet.com Tue Mar 9 21:53:22 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 13:53:22 -0800 Subject: [Zope] Root Folders and Names {Manager's Guide Update} In-Reply-To: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> Message-ID: <3.0.5.32.19990309135322.010e9d40@mail.aracnet.com> At 03:44 PM 3/9/99 -0500, Robert OConnor wrote: >* How do I "name" the *blank* root folder? Right now you can't. And you don't need to. The "name" of the root folder is simply the SCRIPT_NAME your webserver uses to access Zope. By default in ZServer and ZopeHTTPServer this is an empty string, since they both normally server one published module, though they both can server multiple published modules. So, you can give your root folder a title, but you can't use Zope to change how your web server calls Zope. Do this with your webserver. In the case of ZServer, check out the zope_handler.py, it has options to set the SCRIPT_NAME. ZopeHTTPServer also has options to set the SCRIPT_NAME with command line arguments. >So maybe I don't need to "name" this root >folder. Right. >If so, then the Zope manager's guide needs >to be clearer. Perhaps the docs should be updated. The manager's guide probably assumes that you're using PCGI, but it shouldn't make this assumption. Hope this helps. -Amos From jeffbauer@bigfoot.com Tue Mar 9 23:05:02 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Tue, 09 Mar 1999 17:05:02 -0600 Subject: [Zope] NT Server Question References: <199903092102.NAA24259@hipmail1.gohip.com> Message-ID: <36E5A91E.B5E9D9FE@rubic.com> Luke Duff wrote: > I've gotten Zope up and running on my IIS/NT server. > Can you do that with Apache on NT? Yes, documented here: http://starship.python.net/crew/jbauer/apachenotes/ Best regards, Jeff Bauer Rubicon, Inc. From jae@kavi.com Wed Mar 10 00:56:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 9 Mar 1999 16:56:07 -0800 (PST) Subject: [Zope] ZSQL methods in parent subfolder Message-ID: Is this behaviour a bug? I have all my ZSQL methods collected together in a folder. If I call these from a sibling folder[1] without any arguments, ie. I get the below error, if I call them with specific arguments, ie. I get no errors. (comp_id was in REQUEST in both cases). [1] by sibling folder I mean something like the following arrangement... /sql/company (where the sql method is stored) /lists/company_list (where the call is made) Here's the error: Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /filter/contacts/index_html) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: index_html) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_In.py, line 656, in renderwob (Object: sql.companies) File lib/python/Shared/DC/ZRDB/DA.py, line 420, in __getitem__ (Object: CopySource) File lib/python/Shared/DC/ZRDB/Aqueduct.py, line 332, in __getitem__ KeyError: (see above) Looking into it, line 332 in Aqueduct.py is a simple key lookup... def __getitem__(self, key): return self._data[key] It would seem that an argument is getting passed in by default when the sql in put in a parent's subfolder. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Wed Mar 10 01:09:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Tue, 9 Mar 1999 17:09:12 -0800 (PST) Subject: [Zope] Q: Setting/Creating variables Message-ID: I have been playing around with Zope/ZPublisher/DocumentTemplate and have been extremely pleased with the ease of development, as well as the power of the Python language. Sometimes I have found myself wanting to save the results of an expression in my DTML code, for use later in the same page (or even an embedded DTML object). The only thing I have used that is similar to DTML is ColdFusion, which has a CFSET tag, ie: or In reading the docs, it looked like I might be able to do something along the lines of but this didn't seem to work, and it's not very elegant either. Am I missing something? None of the howtos or tutorials seem to cover this. A / would be really spiffy. =) Please make sure you CC me if you respond to this message, as I had to unsubscribe due to the overwhelming amount of traffic. Thanks! -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From webmaster@mtear.com Wed Mar 10 01:16:29 1999 From: webmaster@mtear.com (webmaster@mtear.com) Date: Tue, 9 Mar 1999 17:16:29 -0800 Subject: [Zope] tree doesn't work 4me linux amd win32 In-Reply-To: <199903092000.MAA08338@zope.codeit.com> Message-ID: Andy wrote> Subject: [Zope] tree doesn't work 4me linux amd win32 I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? I had the same problem, but only with Zope 1.10.2. I noticed that DTML documents (the default to be created) won't work with the tree tag. If you create a DTML Method (like the old DTML from Zope 1.9) then they work as expected. I don't have a clue as to why this works like this. Maybe its the proerties of the DTML Documents that are acting folderish and tree doesn't know what to do? Hope that helps, Jason Spisak webmaster@mtear.com Jason Spisak Webamster Masterson, Tate & Associates 6151 West Century Boulevard #928 Los Angeles, CA 90045 http://www.mtear.com From TomJenkins@zentuit.com Wed Mar 10 01:17:48 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 9 Mar 1999 20:17:48 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <199903100120.UAA13261@mail.digiweb.com> Hello folks, Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does Medusa/ZopeHTTPServer support SSL? Thanks! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From luciano@magnet.com.br Wed Mar 10 01:52:31 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Tue, 09 Mar 1999 22:52:31 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: Message-ID: <4.1.19990309224955.009de8f0@10.0.0.1> We have been unable to access properties of the new DTML Document objects in the same way we used to access properties of Folders. I don't know whether we are doing something wrong or we found an inconsistency in the new 1.10 Zope API. Here is a very simplified test case illustrating the issue. I have a folder with these contents: folder1 [Folder] - broken_html [DTML Document] - index_html [DTML Document] - sub-document (The Grand Sub-Document) [DTML Document] - sub-folder (The Grand Sub-Folder) [Folder] The source of index_html (which works) is:

    Title of sub-item:

    Author of sub-item:

    This works as expected. The properties title and author of the sub-folder are retrieved. The source of broken_html is exactly the same, except for the sub-document reference:

    Title of sub-item:

    Author of sub-item:

    Viewing this document-method I get a "Zope Unavailable" message with this traceback: So, how do I access properties of sub-documents from a sub-document in the same folder? []s Luciano Ramalho -- Not all who wander are lost. [J.R.R.Tolkien] From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 02:13:50 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 21:13:50 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: On Tue, 9 Mar 1999, Luciano Ramalho wrote: > folder1 [Folder] > - broken_html [DTML Document] > - index_html [DTML Document] > - sub-document (The Grand Sub-Document) [DTML Document] > - sub-folder (The Grand Sub-Folder) [Folder] > > So, how do I access properties of sub-documents from a sub-document in the > same folder? > One way is to use DTML Methods instead of DTML Documents. For more info visit: http://www.gaaros.com:9673/FAQ/ The issue you raise is currently the first entry in the FAQ Pavlos From petrilli@amber.org Wed Mar 10 02:35:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 9 Mar 1999 21:35:04 -0500 Subject: [Zope] ZopeHTTPserver In-Reply-To: <199903100120.UAA13261@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 09, 1999 at 08:17:48PM -0500 References: <199903100120.UAA13261@mail.digiweb.com> Message-ID: <19990309213504.C26240@amber.org> On Tue, Mar 09, 1999 at 08:17:48PM -0500, Tom Jenkins wrote: > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? Nope, ZHS (for short) is derived from the example CGIHTTPServer.py that ships with Python---it's heavily modified though. ZServer is what is derived from Medusa and is currently in alpha (though pretty stable for me). As for SSL, not currently, and I'm not sure what's going to happen with this. You can use Apache+SSL right now for this. I've had some thoughts about it, but I'm not sure how SSL will impact an async-socket based system... the setup of new SSL connections is kind of heavy. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Jose.Lacal@icn.siemens.com Wed Mar 10 03:02:14 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 22:02:14 -0500 Subject: [Zope] Mailhost problems. Message-ID: <85256730.00104603.00@li01.lm.ssc.siemens.com> Folks: I am still stuck with a sendmail / Mailhost problem. Everything works fine except mailing from a DTML document via sendmail. I am using: Red Hat 5.2 Zope 1.10.2 - I created a username of "zope_u" and a group "zope" - I did run the installation script with a command line like: ./install -sAdmin:MyPassword -u zope_u -g zope - I created the Feedback and SendFeedback forms as per the manuals. - I added the user "zope_u" to the mail group. - I modified user zope_u's .bash_profile file to include the path to sendmail in /usr/sbin - If I log-in to the Linux server as zope_u, I _am_ able to call sendmail and to send mail outside of the server. Anything else I missed, folks? Regards. From luciano@magnet.com.br Wed Mar 10 03:19:24 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 00:19:24 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: <4.1.19990310001056.0127a5c0@10.0.0.1> At 21:13 09/03/99 -0500, Pavlos Christoforou wrote: >On Tue, 9 Mar 1999, Luciano Ramalho wrote: >> So, how do I access properties of sub-documents from >> a sub-document in the same folder? >> >One way is to use DTML Methods instead of DTML Documents. I understand the difference between DTML Methods and DTML Documents. The very reason I chose to do it with DTML Documents was to be able to store some special fields, such as 'author' in my example, along with the document. I cannot do that with DTML Methods, as they do not have properties. In Zope 1.0.9 I used folders but I was running into problems with relative links. It seemed natural to switch from my previous folders to the new DTML Documents. I still do not know to reference the properties of a DTML Document 'A' from within a document or method 'B' in located in the same folder as 'A'. Thanks for any help. []s Luciano From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 03:31:59 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 22:31:59 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: On Wed, 10 Mar 1999, Luciano Ramalho wrote: > > The very reason I chose to do it with DTML Documents was to be able to > store some special fields, such as 'author' in my example, along with the > document. I cannot do that with DTML Methods, as they do not have properties. > > In Zope 1.0.9 I used folders but I was running into problems with relative > links. It seemed natural to switch from my previous folders to the new DTML > Documents. You are right. I was using folders too for the same reason. > > I still do not know to reference the properties of a DTML Document 'A' from > within a document or method 'B' in located in the same folder as 'A'. You can use the PARENTS variable. so if you have a folder which contains two DTML Documents A and B then you can access B's properties from A by: PARENTS[1] will return the folder or containing object one level up and PARENTS[-1] will return the top most Folder. Pavlos From luciano@magnet.com.br Wed Mar 10 04:45:22 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 01:45:22 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <4.1.19990310013702.0129a4d0@10.0.0.1> At 22:31 09/03/99 -0500, Pavlos Christoforou wrote: >You can use the PARENTS variable. > >so if you have a folder which contains two DTML Documents A and B then >you can access B's properties from A by: > >PARENTS[1] will return the folder or containing object one level up and >PARENTS[-1] will return the top most Folder. Thanks for your help, Pavlos. I found another way. Instead of writing: I wrote this, and it worked fine: I found a way, but I don't understand why the first syntax worked fine with Folders and fails with DTML Documents. If anyone would like to clarify the semantic difference between _['sub-document'] and _.getitem('sub-document'), I would be even happier. By the way, Pavlo's site http://www.gaaros.com:9673/ is useful! []s Luciano From amos@aracnet.com Wed Mar 10 06:00:04 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 22:00:04 -0800 Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310013702.0129a4d0@10.0.0.1> References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <3.0.5.32.19990309220004.01152aa0@mail.aracnet.com> At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > > >I wrote this, and it worked fine: > > > >I found a way, but I don't understand why the first syntax worked fine with >Folders and fails with DTML Documents. If anyone would like to clarify the >semantic difference between _['sub-document'] and >_.getitem('sub-document'), I would be even happier. The answer is in both the ZDP's FAQ and the DTML Manager's Guide. _['foo'] "renders" foo according to DTML rules. This process mostly consists of calling DTML and other callable objects. _.getitem('foo') simply returns foo as found in the DTML namespace. The reason you were having problems is that _['sub-document'] renders the document to a string. Naturally strings don't have properties. Hence the error you got from Zope, "'string' object has no attribute 'title'". Make sense? -Amos From mwm@phone.net Wed Mar 10 07:58:25 1999 From: mwm@phone.net (Mike Meyer) Date: Tue, 9 Mar 1999 23:58:25 -0800 (PST) Subject: [Zope] Another "no such file" failure... Message-ID: I'm trying to get zope working to study it, but keep stumbling over the "(102) failure during connect" error - with the "No such file or directory" addendum. The underlying OS is FreeBSD 3.1. I want to run it on an Apache web server (at least for now), with the server doing the authentication. That all appears to be working properly - after all, I'm getting errors from pcgi, now, right? The var directory is writable by nobody. In fact, the entire source tree is owned by nobody, which is the user that the Apache httpd is running as. However, I get log file entries from pcgi, even after deleting the pcgi.log file. I initially tried copying the Zope.cgi file to cgi-bin, but noticed that some (unspecified) setting in Zope.cgi might need to change because of that, so I added a second scriptalias to the Apache httpd.conf pointing at the source directory, set the protections on it, and tried to load . No change - the log file records the same error message. The pcgifile.py test reports error attempting: 'from cgi_module_publisher import publish_module' This doesn't appear to exist in the distribution - and I recalled something about that being a holdover from bobo, so I removed that test from the script, and ran it again. The modified version runs cleans. Was I wrong about cgi_module_publisher? Should it be finding that? If not, then what's the next thing to look at? FWIW, here's the entry from httpd.conf section for Zope: SriptAlias /Zope-bin/ "/home/mwm/external-src/Zope-1.10.2-src/" AllowOverride None Options None FollowSymLinks Auth_PGhost sql Auth_PGport 5432 Auth_PGdatabase web Auth_PGpwd_table users Auth_PGuid_field name Auth_PGpwd_field password Auth_PG_encrypted off AuthName "Zope" AuthType basic require valid-user And here's Zope.cgi: #!/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/home/mwm/external-src/Zope-1.10.2-src/lib/python/Main.py PCGI_PUBLISHER=/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_SOCKET_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.soc PCGI_PID_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.pid PCGI_ERROR_LOG=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/home/mwm/external-src/Zope-1.10.2-src Thanx, Message-ID: Hi! On Tue, 9 Mar 1999, Mike Pelletier wrote: > The connection string in Zope should be: > baseball@localhost:5432 your_user_name You don't need hostname and port part, so the connection string can be just "baseball user_name". (BTW, without host:port, libpq will connect to postgres using UNIX sockets, not TCP/IP. I think it is much better - for speed and security) > Mike. > > On Tue, 9 Mar 1999, William Whitehead wrote: > > > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > > was able to compile and add the ZPyGreSQL Product to my Zope installation. > > I want to create a Database connection. When I go to create a new one, it > > asks for the Id, Title, and Database Connection String. What do I put into > > the Database Connection String? I tried the database I want to use, but it > > gives > > > > Invalid connection String: baseball > > > > Is it a rights issue with PostgreSQL or something else? What is it > > expecting the database connection string field anyway? Thanks for your help! > > > > Bill > > > > > > - > > ====================================================================== > > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > > Library Information Systems | Email: | > > 2840 HBLL | mailto:william_whitehead@byu.edu | > > Provo, UT 84602 | Home Page | > > | http://www.lib.byu.edu/~wbw | > > ====================================================================== > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > > > -- > --- | Mike Pelletier Work: 519-746-1607 > /opeware! | Software Developer Home: 519-725-7710 > --- | mike@zopeware.com Fax: 519-746-7566 > http://www.zopeware.com | Zopeware is not endorsed by Digital Creations > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From prudek@sol.cz Wed Mar 10 08:46:10 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 09:46:10 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E63152.C315225C@sol.cz> Hi, I cannot go to management screen of Zope, probably due to some problem with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care to look at it. Thanks! -- Milos Prudek From anthony@interlink.com.au Wed Mar 10 09:07:59 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Wed, 10 Mar 1999 20:07:59 +1100 Subject: [Zope] streaming data through zope from an external method. Message-ID: <199903100907.UAA01717@mbuna.arbhome.com.au> I've got an external method that is generating a (possibly quite large) audio file and sending it back. Right now, I'm generating this in memory in a big string, then returning it to zope. I'd _like_ to be able to just have the external method send the data straight through (maybe in chunks) without having to read it all into memory. Is this possible with zope at all? Anthony From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 09:28:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 09:28:19 -0000 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <000901be6ad8$55ac54b0$5c773fc1@media1> Try something like: dbname@machinename user password the password is optional HTH Phil ----- Original Message ----- From: William Whitehead To: Sent: Tuesday, March 09, 1999 5:34 PM Subject: [Zope] ZPyGreSQL Database Connection Problem >I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I >was able to compile and add the ZPyGreSQL Product to my Zope installation. >I want to create a Database connection. When I go to create a new one, it >asks for the Id, Title, and Database Connection String. What do I put into >the Database Connection String? I tried the database I want to use, but it >gives > >Invalid connection String: baseball > >Is it a rights issue with PostgreSQL or something else? What is it >expecting the database connection string field anyway? Thanks for your help! > >Bill > > >- >====================================================================== >William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | >Library Information Systems | Email: | >2840 HBLL | mailto:william_whitehead@byu.edu | >Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | >====================================================================== > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From mj@antraciet.nl Wed Mar 10 09:30:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:30:41 +0100 Subject: [Zope] ZSQL methods in parent subfolder In-Reply-To: Message-ID: <4.1.19990310102902.00be2630@lisp.atmm.nl> At 01:56 10/03/99 , John Eikenberry wrote: >Is this behaviour a bug? > >I have all my ZSQL methods collected together in a folder. If I call these >from a sibling folder[1] without any arguments, ie. > > > >I get the below error, if I call them with specific arguments, ie. > > > >I get no errors. (comp_id was in REQUEST in both cases). Because you are calling "sql.company" (in quotes), it is assumed to be an expression, and your expression is referencing an attribute, not a method. Try using the following: "sql.company()", or sql.company (without quotes). Note: I didn't test either method. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 10 09:37:57 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:37:57 +0100 Subject: [Zope] Mailhost problems. In-Reply-To: <85256730.00104603.00@li01.lm.ssc.siemens.com> Message-ID: <4.1.19990310103401.00bd6560@lisp.atmm.nl> At 04:02 10/03/99 , Jose.Lacal@icn.siemens.com wrote: > > >Folks: > >I am still stuck with a sendmail / Mailhost problem. Everything works fine >except mailing from a DTML document via sendmail. > > > [SNIP] > >I am using: >Red Hat 5.2 >Zope 1.10.2 > >- I created a username of "zope_u" and a group "zope" > >- I did run the installation script with a command line like: > ./install -sAdmin:MyPassword -u zope_u -g zope > >- I created the Feedback and SendFeedback forms as per the manuals. > >- I added the user "zope_u" to the mail group. > >- I modified user zope_u's .bash_profile file to include the path to >sendmail in /usr/sbin > >- If I log-in to the Linux server as zope_u, I _am_ able to call sendmail >and to send mail outside of the server. > >Anything else I missed, folks? MailHost doesn't use sendmail, but rather opens a socket to the specified sendmail host and uses the SMTP protocol to send the messages. This is somehow prohibited. It looks like there is maybe no SMTP server listening on the specified address and port, or your machine is not allowed to connect. You could try and do a manual telnet to the address and port from the zope_u account and see what happens. Make sure you also go through the motions, like HELO , and such. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Wed Mar 10 10:00:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 10 Mar 1999 10:00:01 +0000 Subject: [Zope] sqltest vx. var In-Reply-To: <199903091627.IAA32000@zope.codeit.com> Message-ID: > > So, in otherwords, you get the type checking, the multiple, the optional, > etc... with #sqltest that you don't get otherwise. About the only problem > is that #sqltest currently doesn't do not-equals or "not in (...)". > .jPS | jeffrey@digicool.com Can #sqltest handle the 'wildcard' situation in MySQL (and probably other DBMSs too) select * from tbl where tbl_val like '%nib%' is a different SQL query from select * from tbl where tbl_val = 'niblet' my attempt... select * from tbl where ta Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Paul@digicool.com Wed Mar 10 11:30:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 10 Mar 1999 06:30:28 -0500 Subject: [Zope] streaming data through zope from an external method. Message-ID: <613145F79272D211914B0020AFF6401907BB34@GANDALF> Anthony wrote: > I've got an external method that is generating a (possibly > quite large) > audio file and sending it back. Right now, I'm generating > this in memory > in a big string, then returning it to zope. I'd _like_ to be > able to just > have the external method send the data straight through > (maybe in chunks) > without having to read it all into memory. Is this possible with zope > at all? I think the first problem will be finding a publisher that streams. PCGI buffers all I/O, perhaps FastCGI doesn't. Even if you didn't, sending it through Zope in chunks would avoid getting Zope's memory footprint up there. One way would be to have the ExternalMethod return a sequence, then do something like: Of course the above might be completely wrong, but you get the drift :^) --Paul From ShawH@STHS.org Wed Mar 10 12:40:43 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 06:40:43 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: It does ! That's why I can't figure out what's wrong. I made certain he had every permission that seemed image related, and he still can't access it. ---------- From: Brian Lloyd [SMTP:Brian@digicool.com] Sent: Tuesday, March 09, 1999 1:44 PM To: 'Shaw, Howard'; 'Zope@zope.org' Subject: RE: [Zope] Images and Zope1.10.2 > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:29:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:29:07 -0000 Subject: [Zope] Image button values Message-ID: <008501be6b02$5b05b580$5c773fc1@media1> This is a multi-part message in MIME format. ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I'm using some image buttons and am having trouble getting the return = values for them. I have a button called answerbtn and the return values would be = 'answerbtn.x' and 'answerbtn.y', I need to check one of these values to = check whether this button was pressed. I have tried _['answerbtn.x'] but I get a traceback from Zope. Any Ideas? TIA Phil phil@media-1.ml.uwcm.ac.uk ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all,
     
    I'm using some image buttons and am = having trouble=20 getting the return values for them.
     
    I have a button called answerbtn and = the return=20 values would be 'answerbtn.x' and 'answerbtn.y', I need to check one of = these=20 values to check whether this button was pressed.
     
    I have tried _['answerbtn.x'] but I get = a traceback=20 from Zope.
     
    Any Ideas?
     
    TIA
     
    Phil
    phil@media-1.ml.uwcm.ac.uk=
     
    ------=_NextPart_000_0082_01BE6B02.5AE423C0-- From jeffbauer@bigfoot.com Wed Mar 10 14:43:58 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Wed, 10 Mar 1999 08:43:58 -0600 Subject: [Zope] Another "no such file" failure... Message-ID: <36E6852E.1C76031D@rubic.com> Mike Meyer wrote: > I'm trying to get zope working to study it, but keep stumbling over > the "(102) failure during connect" error - with the "No such file or > directory" addendum. > > The underlying OS is FreeBSD 3.1. I want to run it on an Apache web > server (at least for now), with the server doing the > authentication. That all appears to be working properly - after all, > I'm getting errors from pcgi, now, right? Correct. > The pcgifile.py test reports > > error attempting: 'from cgi_module_publisher import publish_module' > > This doesn't appear to exist in the distribution - and I recalled > something about that being a holdover from bobo, so I removed that > test from the script, and ran it again. The modified version runs > cleans. > > Was I wrong about cgi_module_publisher? Should it be finding that? If > not, then what's the next thing to look at? Yes, it's a holdover from Bobo days (which some people are still using for existing apps) but you can ignore that particular error. Contact me offline and we'll try to get this resolved. Best regards, Jeff Bauer Rubicon, Inc. From mj@antraciet.nl Wed Mar 10 14:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 15:47:52 +0100 Subject: [Zope] Image button values In-Reply-To: <008501be6b02$5b05b580$5c773fc1@media1> Message-ID: <4.1.19990310154506.00bb7140@lisp.atmm.nl> At 15:29 10/03/99 , you wrote: >Hi all, >I'm using some image buttons and am having trouble getting the return values >for them. >I have a button called answerbtn and the return values would be 'answerbtn.x' >and 'answerbtn.y', I need to check one of these values to check whether this >button was pressed. >I have tried _['answerbtn.x'] but I get a traceback from Zope. >Any Ideas? Try::
    or::
  • : No form items To generate an overview of all form variables your DTML has access to. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:53:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:53:22 -0000 Subject: [Zope] Image button values Message-ID: <009101be6b05$be7e0150$5c773fc1@media1> Thanks for the suggestion Martijn but I've already tried that and it does indeed show variables of the form 'answerbtn.x'. But when I try to access them using one of: or or I get a traceback error, so I am none the wiser 8^( Thanks anyway Any other ideas? Phil phil@media-1.ml.uwcm.ac.uk ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 2:47 PM Subject: Re: [Zope] Image button values >At 15:29 10/03/99 , you wrote: >>Hi all, > >>I'm using some image buttons and am having trouble getting the return values >>for them. > >>I have a button called answerbtn and the return values would be 'answerbtn.x' >>and 'answerbtn.y', I need to check one of these values to check whether this >>button was pressed. > >>I have tried _['answerbtn.x'] but I get a traceback from Zope. > >>Any Ideas? > >Try:: > >
    > >or:: > > >
  • : > > No form items > > >To generate an overview of all form variables your DTML has access to. > > > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From michel@digicool.com Wed Mar 10 15:03:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:03:52 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB38@GANDALF> > > > I had the same problem, but only with Zope 1.10.2. I noticed > that DTML > documents (the default to be created) won't work with the > tree tag. If you > create a DTML Method (like the old DTML from Zope 1.9) then > they work as > expected. I don't have a clue as to why this works like > this. Maybe its > the proerties of the DTML Documents that are acting folderish and tree > doesn't know what to do? Read my reply to the orginal message in this thread as to why the tree tag doesn't work as you expect in DTML Documents. -Michel > > Hope that helps, > > Jason Spisak > webmaster@mtear.com > > Jason Spisak > Webamster > Masterson, Tate & Associates > 6151 West Century Boulevard #928 > Los Angeles, CA 90045 > http://www.mtear.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Wed Mar 10 15:06:19 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:06:19 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <613145F79272D211914B0020AFF6401907BB39@GANDALF> > -----Original Message----- > From: Tom Jenkins [mailto:TomJenkins@zentuit.com] > Sent: Tuesday, March 09, 1999 8:18 PM > To: zope@zope.org > Subject: [Zope] ZopeHTTPserver > > > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? > Thanks! Nope. ZopeHTTPServer is not Medusa, it is based on the HTTPServer that comes with Python. Medusa is it's own product, that we have integrated parts of into ZServer (which uses the core of Medusa to drive it's network end). http://www.nightmare.com/medusa/ For medusa info. http://www.zope.org/ for info on ZServer. Once ZServer is stable (it is alpha at the moment) use of ZopeHTTPServer will be depreciated (but not forgotten). -Michel > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > I suggested holding a "Python Object Oriented Programming Seminar", > but the acronym was unpopular. Joseph Strout, 28 Feb 1997 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 15:01:59 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 16:01:59 +0100 Subject: [Zope] Image button values In-Reply-To: <009101be6b05$be7e0150$5c773fc1@media1> Message-ID: <4.1.19990310160031.00bd7a60@lisp.atmm.nl> At 15:53 10/03/99 , Phil Harris wrote: >Thanks for the suggestion Martijn but I've already tried that and it does >indeed show variables of the form 'answerbtn.x'. But when I try to access >them using one of: > > or > or > > >I get a traceback error, so I am none the wiser 8^( > >Thanks anyway > >Any other ideas? > Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:15:54 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:15:54 -0000 Subject: [Zope] Image button values Message-ID: <00a801be6b08$e43dfa50$5c773fc1@media1> Well I'll give it another go then 8^) Thanks Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:21:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:21:19 -0000 Subject: [Zope] Image button values Message-ID: <00ae01be6b09$a5d91e60$5c773fc1@media1> Martijn, I tried it again, and it worked! It was my fault it didnt work in the first place 8^( Sorry for wasting your time Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From tschruefer@mail.howard.k12.md.us Wed Mar 10 15:27:35 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 10 Mar 1999 10:27:35 -0500 Subject: [Zope] New subscriber: Installing Zope Message-ID: <199903101525.KAA25149@mail.howard.k12.md.us> Having seen Zope recommended on Usenet last week, I decided to check it out, Monday I found the Webreview article in the email box. I have been reading as much as I can find, but one question is always on my mind, when ever I find one of these wonderful, does it all systems. Can I install it ? Not, is it to complicated to install, but do I need root access to the machine to install this application. This question and the answer have killed many a promising application (DB & BBS). So, the question is, can Zope be installed in a typical Telnet account ? The install docs mention, you have to be root user, to install some components, does this mean what I fear it means ? (machine admin, ie. super user) Tom From webmaster@mtear.com Wed Mar 10 12:43:59 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:43:59 -0500 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] Message-ID: <36E6690F.3F29A15@mtear.com> This is a multi-part message in MIME format. --------------FC234E87DDED8B9F783D1ACF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------FC234E87DDED8B9F783D1ACF Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E66801.26F0DC53@mtear.com> Date: Wed, 10 Mar 1999 07:39:29 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Michel Pelletier Subject: Re: [Zope-dev] The Spanish Aquisition References: <613145F79272D211914B0020AFF6401907BB37@GANDALF> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michel Pelletier wrote: > > > -----Original Message----- > > From: Jason Spisak [mailto:webmaster@mtear.com] > > Sent: Tuesday, March 09, 1999 4:57 PM > > To: zope-dev@zope.org > > Subject: [Zope-dev] The Spanish Aquisition > > > > > > Zopistas, > > > > I am trying to reference a property of a Folder that is in a totally > > spearate hirearchy of Zope. When inserted below the folder > > Iwish to grab > > the property of it works fine, but when moves elsewhere it dies. > > > > > > > > > > > > Hmm.. I'm not sure I understand the problem you want to solve, but have > you tried: > > Yes. I am trying to reference a folder that is not in the same path. And I tried your next suggestion a long time ago, with no luck. , and get an error with traceback: ) > > If the folder is one of your ancestors (ie above you and in your path) > you can just reference it's attributes like they were your own. If the > folder you are targeting is above you but not in your path (ie not an > ancestor) but is a child of one of your ancestors, you must first aquire > the folder, and then reference it's property, like this: > > > > The rule is: > If a folder is an ancestor of yours, you can just say > If a folder is a child of one of your ancestors, but not one of your > ancestors (like a cousin), you can say , because you must first aquire the folder. > This doesn't work. My paths are like, /staff/candidates/candidate1, and staff/companies/company1/job1/submission1/MyDocument. I am trying to reference a property of the candidate1 folder in the MyDocument document. Thanks for your time Michel. Jason Spisak webmaster@mtear.com --------------FC234E87DDED8B9F783D1ACF-- From webmaster@mtear.com Wed Mar 10 12:44:21 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:44:21 -0500 Subject: [Zope] [Fwd: [Zope-dev] Vairable Query of TinyTables] Message-ID: <36E66925.458D5754@mtear.com> This is a multi-part message in MIME format. --------------AAF88E2DDEBDA15484C1770F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------AAF88E2DDEBDA15484C1770F Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E6652E.220B4EF3@mtear.com> Date: Wed, 10 Mar 1999 07:27:26 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Martijn Pieters Subject: Re: [Zope-dev] Vairable Query of TinyTables References: <4.1.19990310100907.00bd7100@lisp.atmm.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Worked like a charm! I am obviously new to objects. ;-) Thanks. Jason Spisak webmaster@mtear.com >Martijn Pieters wrote: > > At 22:59 09/03/99 , Jason Spisak wrote: > >By variable query I mean for example: > > > > > > > > > >
    > > > > > > > >Believe it or not, it doesn't choke, it just gives me nothing. > > TinyTables act like dictionary objects I think, and are keyed on strings. > AUTHENTICATED_USER is not a string, but an object, so you'll have to > convert it. Try calling AUTHENTICATED_USER.getUserName() instead. > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ --------------AAF88E2DDEBDA15484C1770F-- From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:40:28 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:40:28 -0000 Subject: [Zope] Image button values Message-ID: <00c201be6b0c$52a8b400$5c773fc1@media1> Hmm, More on the image button saga. It seem's that does indeed work, but doesn't, and neither does the getitem way. Seems weird to me, any ideas? TIA Phil ----- Original Message ----- From: Phil Harris To: ; Martijn Pieters Sent: Wednesday, March 10, 1999 3:21 PM Subject: Re: [Zope] Image button values >Martijn, > >I tried it again, and it worked! > >It was my fault it didnt work in the first place 8^( > >Sorry for wasting your time > >Phil >----- Original Message ----- >From: Martijn Pieters >To: Phil Harris ; >Sent: Wednesday, March 10, 1999 3:01 PM >Subject: Re: [Zope] Image button values > > >>At 15:53 10/03/99 , Phil Harris wrote: >>>Thanks for the suggestion Martijn but I've already tried that and it does >>>indeed show variables of the form 'answerbtn.x'. But when I try to access >>>them using one of: >>> >>> or >>> or >>> >>> >>>I get a traceback error, so I am none the wiser 8^( >>> >>>Thanks anyway >>> >>>Any other ideas? >>> >> >>Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... >> >>-- >>M.J. Pieters, Web Developer >>| Antraciet http://www.antraciet.nl >>| Tel: +31-35-6254545 Fax: +31-35-6254555 >>| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >>| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >>------------------------------------------ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From petrilli@amber.org Wed Mar 10 15:50:27 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 10 Mar 1999 10:50:27 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310105027.C28029@amber.org> On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: > > Can I install it ? Not, is it to complicated to install, but do I need > root access to the machine to install this application. This question > and the answer have killed many a promising application (DB & BBS). You should be able to install a binary package as a typical user on a UNIX machine. If your machine already has Python 1.5.1 or higher installed (don't they all?!?!?! :-) then you can just install the basic source distribution of Zope and do the: $ python wo_pcgi.py Thing :-) You can then use the ZopeHTTPServer on a untrusted port (over 1000) and off you go :-) If you want to use Apache+PCGI you probably will need administrator support, and if yo uwant to be on a port under 1000 you'll need it. > The install docs mention, you have to be root user, to install some > components, does this mean what I fear it means ? (machine admin, ie. > super user) You should be able to get a feel for it without being root. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From michel@digicool.com Wed Mar 10 15:58:12 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:58:12 -0500 Subject: [Zope] Apache Authorization Message-ID: <613145F79272D211914B0020AFF6401907BB3B@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Wednesday, March 10, 1999 3:46 AM > To: zope@zope.org > Subject: [Zope] Apache Authorization > > > Hi, > > I cannot go to management screen of Zope, probably due to some problem > with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care > to look at it. Thanks! > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf file will probably have something your not including in your apache. also, do an 'httpd -l' and make sure you have mod_rewrite compiled and/or dynamicly loaded in. http://www.zope.org/Community/Projects/Zap -Michel > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 16:06:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 17:06:04 +0100 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] In-Reply-To: <36E6690F.3F29A15@mtear.com> Message-ID: <4.1.19990310170353.00bd7f00@lisp.atmm.nl> At 13:43 10/03/99 , Jason Spisak wrote: >This doesn't work. My paths are like, /staff/candidates/candidate1, and >staff/companies/company1/job1/submission1/MyDocument. I am trying to >reference a property of the candidate1 folder in the MyDocument >document. > will work. candidates is the object that is the common ancestor, and from there you can reference objects down that path. You will have to place the expression into quotes, however. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 10 16:14:13 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 10 Mar 1999 11:14:13 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310111413.E5210@throwingcopper.ans.net> You can indeed install it. I had originally had a standard telnet sort of account on a FreeBSD machine. You can basically get a full-featured Zope if your web provider runs apache with mod_rewrite. (If they don't have mod_rewrite, authentication is a little bit more of a headache.) The thing to beware of is that PCGI starts a long running process and many hosting companies will not be pleased about this. Kevin On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: ,----- | | Having seen Zope recommended on Usenet last week, I decided to check it | out, Monday I found the Webreview article in the email box. I have been | reading as much as I can find, but one question is always on my mind, | when ever I find one of these wonderful, does it all systems. | | Can I install it ? Not, is it to complicated to install, but do I need | root access to the machine to install this application. This question | and the answer have killed many a promising application (DB & BBS). | | So, the question is, can Zope be installed in a typical Telnet account ? | | The install docs mention, you have to be root user, to install some | components, does this mean what I fear it means ? (machine admin, ie. | super user) | | | Tom | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From david.a.wagle@healthpartners.com Wed Mar 10 16:56:41 1999 From: david.a.wagle@healthpartners.com (David Wagle) Date: Wed, 10 Mar 1999 10:56:41 -0600 (CST) Subject: [Zope] help on ZMySQL Message-ID: <14054.42057.794893.98199@plato.healthpartners.com> Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- From M.Faassen@vet.uu.nl Wed Mar 10 17:08:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 10 Mar 1999 18:08:28 +0100 Subject: [Zope] title and id properties in DTML methods Message-ID: <36E6A70C.687B26BA@pop.vet.uu.nl> Hi everybody, I'm probably completely confused, but if I understood it right, DTML Methods in Zope 1.10 are the same as Documents in Zope 1.9. I may remember wrongly, but wasn't it so that in 1.9 documents rendered the title and id of the actual document, and not that of the containing folder? In 1.10 in DTML methods, they appear to render the containing folder, instead. The only way I can access title of a DTML method in 1.10, is by referring to it specifically, i.e. . It works as expected with DTML Documents. Is this as it should be? Am I correct about the 1.9 behavior? If so, then DTML Methods don't seem to be exactly equivalent to 1.9 Documents, and this should probably be in the FAQ. :) Regards, Martijn From ShawH@STHS.org Wed Mar 10 19:45:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 13:45:08 -0600 Subject: [Zope] help on ZMySQL Message-ID: Do it without the ';'. When it says 'that was not a query' it simply means that there was no returned results for it to display. If you check the database, the values should have been successfully inserted. ---------- From: David Wagle [SMTP:david.a.wagle@healthpartners.com] Sent: Wednesday, March 10, 1999 10:57 AM To: zope@zope.org Subject: [Zope] help on ZMySQL Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jeffrey@Digicool.com Wed Mar 10 21:56:35 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Wed, 10 Mar 1999 16:56:35 -0500 Subject: [Zope] help on ZMySQL Message-ID: <199903102156.NAA17945@zope.codeit.com> >From: David Wagle > I have a ZSQL method for inserting data into the database. > The database connection is active. > the permissions are correct. > the method is defined roughly as: > > insert into tblname (col1, col3, col4, col5) values > (col1val, "value taht is constant", col4val, col5val); > > when I try and test it, Zope tells me that there > is a parse error near ';'. If you're doing just a single query, you don't need the ';' (or its equivilent). If you're doing multiple queries, use to seperate them. The DA will seperate the queries using this. This is equivilent to what command line or other SQL tools often do with the ';' character. > I remove teh ';' and Zope tells me that > "This was not a query." Nothing is being returned is what this means (or more basically, it wasn't a SELECT based query). .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From prudek@sol.cz Wed Mar 10 22:41:42 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 23:41:42 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E6F526.D5A29939@sol.cz> > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf > file will probably have something your not including in your apache. I can't use another apache just for Zope. I looked into zap.conf and incorporated some changes into my httpd.conf. No way. Since the log file of RewriteLog remains empty, I believe no rewriting takes place, actually. I have about 30 virtual servers on that httpd, maybe there lies the problem? Also this is Apache 1.3.3, do I need Apache 1.3.4? -- Milos Prudek From sfl@beehive.de Thu Mar 11 11:02:28 1999 From: sfl@beehive.de (Sebastian Luehnsdorf) Date: Thu, 11 Mar 1999 12:02:28 +0100 (CET) Subject: [Zope] Apache Authorization In-Reply-To: <36E6F526.D5A29939@sol.cz> Message-ID: On Wed, 10 Mar 1999, Milos Prudek wrote: > Since the log file of RewriteLog remains empty, I believe no rewriting > takes place, actually. I have about 30 virtual servers on that httpd, > maybe there lies the problem? Also this is Apache 1.3.3, do I need > Apache 1.3.4? > hi! No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI option? And did you remember to turn the RewriteEngine on? ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99 From ags@beehive.de Thu Mar 11 12:29:27 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 11 Mar 1999 13:29:27 +0100 (CET) Subject: [Zope] Converting Whitespaces Message-ID: Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex From prudek@sol.cz Thu Mar 11 13:16:25 1999 From: prudek@sol.cz (Milos Prudek) Date: Thu, 11 Mar 1999 14:16:25 +0100 (MET) Subject: [Zope] Apache Authorization In-Reply-To: Message-ID: Yes I turned rewite engine on, but maybe not in the right place. I wrote it into global config. I believe do not need to use ExecCGI, since I use ScriptAlias. And Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope introductory. I'm desperate.... ------------ Milos Prudek On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI > option? And did you remember to turn the RewriteEngine on? From ShawH@STHS.org Thu Mar 11 13:32:47 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Thu, 11 Mar 1999 07:32:47 -0600 Subject: [Zope] FW: [Zope] Converting Whitespaces Message-ID: Once again I forgot to cc the list. Sorry. ---------- From: Shaw, Howard Sent: Thursday, March 11, 1999 7:32 AM To: 'Alexander Schad' Subject: RE: [Zope] Converting Whitespaces Something in an external method similar to this should do the job. from string import split, join def stringtounderscore(str): return join(split(str," "),"_"); which is then called from your page as Alternatively, if this is something you only need occasionally, you can code it directly in DTML... Both of these are untested, but I have tested the join/split command in python directly: >>> join(split("this is a test string"," "),"_") 'this_is_a_test_string' >>> ---------- From: Alexander Schad [SMTP:ags@beehive.de] Sent: Thursday, March 11, 1999 6:29 AM To: zope@zope.org Subject: [Zope] Converting Whitespaces Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" OK - I think I get it, but how do I "convert" a string to a reference to an object, so that I can call properties associated with the object (DTML document). This should be possible, isn't it??? Best regards Wiebe Kunst >At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > >> >> >>I wrote this, and it worked fine: >> >> >> >>I found a way, but I don't understand why the first syntax worked fine with >>Folders and fails with DTML Documents. If anyone would like to clarify the >>semantic difference between _['sub-document'] and >>_.getitem('sub-document'), I would be even happier. > >The answer is in both the ZDP's FAQ and the DTML Manager's Guide. > >_['foo'] "renders" foo according to DTML rules. This process mostly >consists of calling DTML and other callable objects. > >_.getitem('foo') simply returns foo as found in the DTML namespace. > >The reason you were having problems is that _['sub-document'] renders the >document to a string. Naturally strings don't have properties. Hence the >error you got from Zope, "'string' object has no attribute 'title'". > >Make sense? > >-Amos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:14:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:14:27 -0500 (EST) Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Alexander Schad wrote: > I know there is a way to convert underscores to spaces (spacify) but i > need it the other way around is. There a function to convert spaces to > underscores and if not how can i do it elseway? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:26:11 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:26:11 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <000001be6bc9$789ff520$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > OK - I think I get it, but how do I "convert" a string to a reference to an > object, so that I can call properties associated with the object (DTML > document). This should be possible, isn't it??? > >_.getitem('foo') simply returns foo as found in the DTML namespace. > > Wiebe You can use something like: (Is 0 the default?) _.getitem('foo',0) returns a reference to the object with id foo. Pavlos From phd@sun.med.ru Thu Mar 11 14:28:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 17:28:58 +0300 (MSK) Subject: [Zope] non-External Methods Message-ID: Hello! In ExternalMethods.html I found: "ernal Methods operate just like normal methods". But what are "normal" methods? The only thing I know is DTML Scripts. Are there other? Could I put Python code into Object Database? Should I? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phil@media-1.ml.uwcm.ac.uk Thu Mar 11 14:50:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 11 Mar 1999 14:50:07 -0000 Subject: [Zope] Apache Authorization Message-ID: <006e01be6bce$749a5920$5c773fc1@media1> Turn on ExecCGI, you do need it ! ----- Original Message ----- From: Milos Prudek To: Sebastian Luehnsdorf Cc: Sent: Thursday, March 11, 1999 1:16 PM Subject: Re: [Zope] Apache Authorization >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > >------------ >Milos Prudek > >On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > >> No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI >> option? And did you remember to turn the RewriteEngine on? > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" Thanks for a very fast reply, however it doesn't work. I'm still getting: Error value: 'string' object has no attribute 'title'. This is what I'm trying to do: A DTML document (index_html) has a property art1 which has an ID for another DTML document as value (type: string). In index_html I use: which renders the article. I can of course use in the actual article, but I rather don't. So I'm still banging my head in the wall after hours of trying to accomplish this. Can it be a bug with DTML documents?? Best regards Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> OK - I think I get it, but how do I "convert" a string to a reference to an >> object, so that I can call properties associated with the object (DTML >> document). This should be possible, isn't it??? > >> >_.getitem('foo') simply returns foo as found in the DTML namespace. >> > > >Wiebe > >You can use something like: > > (Is 0 the default?) > >_.getitem('foo',0) returns a reference to the object with id foo. > >Pavlos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From M.Faassen@vet.uu.nl Thu Mar 11 15:00:45 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:00:45 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > In ExternalMethods.html I found: "ernal Methods operate just like normal > methods". But what are "normal" methods? The only thing I know is DTML > Scripts. Are there other? Could I put Python code into Object Database? > Should I? I think that DTML Methods (or Documents?) are meant. They are like methods to the folder objects that Zope publishes. Look at: http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I want your subfolder 'bar' (this could be seen as using a method on foo to request 'bar'), and then I want to view 'doc' (which is, let's say, a DTML method) in bar. 'doc' in that case is a method of the bar object, which, when called, returns HTML code (to the browser). An *external* method is a method which comes from outside the Zope object database (though it's loaded into it, and behaves just like a normal internal method). If all this talk turns out to be correct (somebody tell me or send corrections), then I can turn this into a FAQ entry. If anybody else feels like writing this up in a nice way for the FAQ (Oleg?) that'd even be better. Just send your contributions to the ZDP list. Regards, Martijn From phd@sun.med.ru Thu Mar 11 15:08:45 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:08:45 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Message-ID: Hi! That is, there are DTML Scripts and External Methods. Python code is used in External Methods and Products, but never goes into Object Database. On Thu, 11 Mar 1999, Martijn Faassen wrote: > > In ExternalMethods.html I found: "ernal Methods operate just like normal > > methods". But what are "normal" methods? The only thing I know is DTML > > Scripts. Are there other? Could I put Python code into Object Database? > > Should I? > > I think that DTML Methods (or Documents?) are meant. They are like > methods to the folder objects that Zope publishes. Look at: > http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I > want your subfolder 'bar' (this could be seen as using a method on foo > to request 'bar'), and then I want to view 'doc' (which is, let's say, a > DTML method) in bar. 'doc' in that case is a method of the bar object, > which, when called, returns HTML code (to the browser). > > An *external* method is a method which comes from outside the Zope > object database (though it's loaded into it, and behaves just like a > normal internal method). > > If all this talk turns out to be correct (somebody tell me or send > corrections), then I can turn this into a FAQ entry. If anybody else > feels like writing this up in a nice way for the FAQ (Oleg?) that'd even > be better. Just send your contributions to the ZDP list. > > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From M.Faassen@vet.uu.nl Thu Mar 11 15:14:57 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:14:57 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hi! > > That is, there are DTML Scripts and External Methods. Python code is > used in External Methods and Products, but never goes into Object Database. I think it's true Product python code doesn't go into the Object Database, but I'm unclear about what happens with External Method python code. You need press the 'edit' button for an external method in Zope each time you changed something in it and want it updated. This would imply Python code can indeed be part of the Object database, right? Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 11 15:17:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:17:28 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> Message-ID: <36E7DE88.344745B3@pop.vet.uu.nl> Phil Harris wrote: > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a FAQ on this one? (I think I heard the Digicool folks are working on some FAQ document on Apache with Zope too, what's the status on this?). Regards, Martijn From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:28:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:28:52 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <001b01be6bd0$2188dde0$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > A DTML document (index_html) has a property art1 which has an ID for another > DTML document as value (type: string). In index_html I use: which renders the article. I can of course use I haven't tried it myself but is this what you tried? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:40:07 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:40:07 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Actually not. For security reasons the code of an External method does not reside in the Object Database but in the filesystem. When you press the 'edit' button the code is read and evaluated and it is the evaluated code that is stored in the Object Database. There was a thread about whether the source code should be included in the Object Database but I think thge Digital Creators were not convinced. Pavlos From phd@sun.med.ru Thu Mar 11 15:41:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:41:22 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? May be... Thanks for replaying. > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From raver@box.dust.za.net Thu Mar 11 15:51:26 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 16:51:26 +0100 Subject: [Zope] Passing forms data to external python methods Message-ID: <19990311165126.A577@RaVER.duck.org> --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=arg-mail Hi! I have a form here wich should submit 5 values on to an external python method (as 5 arguments to a function). Now - one value from form to function is no problem - more then one is. Questions arise.... How are more than 1 value submitted from a form? How can I get those values passed onto an external method, and have the values assigned to the functions argument? Help is much appreciated! Sture --ZPt4rx8FFjLCG7dd-- From mj@antraciet.nl Thu Mar 11 15:52:20 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 11 Mar 1999 16:52:20 +0100 Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> References: Message-ID: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> At 16:14 11/03/99 , Martijn Faassen wrote: >Oleg Broytmann wrote: >> >> Hi! >> >> That is, there are DTML Scripts and External Methods. Python code is >> used in External Methods and Products, but never goes into Object Database. > >I think it's true Product python code doesn't go into the Object >Database, but I'm unclear about what happens with External Method python >code. You need press the 'edit' button for an external method in Zope >each time you changed something in it and want it updated. This would >imply Python code can indeed be part of the Object database, right? > No, it forces Python to recompile the code. The code itself is NOT stored int the object database. Only instance data is stored in the object database, no code is. Zope classes are said to change all this, aren't they, DC? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 11 15:52:40 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:52:40 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > > imply Python code can indeed be part of the Object database, right? > > Actually not. For security reasons the code of an External method does > not reside in the Object Database but in the filesystem. When you press > the 'edit' button the code is read and evaluated and it is the evaluated What is "evaluated"? Compiled? > code that is stored in the Object Database. There was a thread about > whether the source code should be included in the Object Database but I I watched the thread and did understand the security implications. > think thge Digital Creators were not convinced. > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffrey@Digicool.com Thu Mar 11 15:57:47 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 10:57:47 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111557.HAA09410@zope.codeit.com> >From: Martijn Faassen > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Pressing the 'edit' button "reloads" that particular External Method code into the system. It's not stored in the database at all - the External Method object you add/edit through the Zope management screens is primarily a pointer/wrapper to a method in a module in the Extensions directory. The Edit button in essence acts similar to the reload(module) function in Python. Basically, Zope (and Python) don't have a way of knowing the code in a module has changed unless it's explicitly reloaded, which is a good thing. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 16:07:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 11:07:22 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Oleg Broytmann wrote: > > What is "evaluated"? Compiled? > > > code that is stored in the Object Database. There was a thread about > > whether the source code should be included in the Object Database but I > > I watched the thread and did understand the security implications. > Well this is how I understood the process. Basically the code is read and exec-ed and the the func_code func_code.co_varnames are extracted. Then they apply all the clever tricks to turn the function into a valid Zope method, by (I assume) creating a Zope method and replacing its func_code and the associated func_defaults and arguments with the ones extracted from the external function. The relevant code can be found in Zope/lib/python/App/Extensions.py and Zope/lib/python/Products/ExternalMethod/ExternalMethod.py Pavlos From phd@sun.med.ru Thu Mar 11 16:11:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 19:11:58 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: Hi! Thank you! On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > Well this is how I understood the process. > > Basically the code is read and exec-ed and the the func_code > func_code.co_varnames are extracted. Then they apply all the clever tricks > to turn the function into a valid Zope method, by (I assume) creating a > Zope method and replacing its func_code and the associated func_defaults > and arguments with the ones extracted from the external function. > > The relevant code can be found in > Zope/lib/python/App/Extensions.py and > Zope/lib/python/Products/ExternalMethod/ExternalMethod.py > > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Wiebe Kunst" Yes I did, but... I finally found out by trying: This works like a dream. Thanks a lot again. Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> A DTML document (index_html) has a property art1 which has an ID for another >> DTML document as value (type: string). In index_html I use: which renders the article. I can of course use > >I haven't tried it myself but is this what you tried? > > > >Pavlos > > From jeffrey@Digicool.com Thu Mar 11 17:09:23 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:09:23 -0500 Subject: [Zope] pretty printable pages at zope.org Message-ID: <199903111709.JAA12826@zope.codeit.com> We now have sortof-pretty printable pages at Zope.org :). At the bottom of every page with the standard header/footer is a link "Printable Page" which links to the same page being viewed, but passes a value to standard_html_header/footer that is used to _not_ render the surround Zope layout (sidebar, navigation bar). For example, http://www.zope.org/Information/Zen/HTMLMethods?pp=1 .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From jeffrey@Digicool.com Thu Mar 11 17:27:07 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:27:07 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111726.JAA13377@zope.codeit.com> >From: "Shaw, Howard" > Does this mean that when Zope is stopped and restarted, it is as if > every External Method has its 'edit' button repushed? If I change code > in an External Method, but don't manually reload it, it will be reloaded > the next time the Zope process restarts? This seems to conflict with > Christoforou's description... Perhaps DC can clarify? External Methods are (to the best of my knowledge) evaluated and their compiled code is kept in process memory (effectively cached) the first time the object (the External Method object pointing to a particular module/method) is activated. It is removed from process memory when the object is de-activated. This is kindof a tricky process and may be effectively cleaned up in the near future so I won't go into too many details here. An important thing to keep in mind is (again, this may change soon) that the compiled code is kept locally in each External Method Object. If you have two EM's in Zope pointing to the same code, you have to use the "Edit" button on _both_ External Method objects to effectively reload it. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From raver@box.dust.za.net Thu Mar 11 17:44:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 18:44:13 +0100 Subject: [Zope] Letting everyone view contents of a newly built site Message-ID: <19990311184413.A1175@RaVER.duck.org> Hi! Just made a small test-site, and followed the Zope magager guide to how to let anyone view my newly made site, but thisg doesn't work. The doc say that by default everyone should have access to view the contents of a site made by zope, but here the authorization/authentication dialogue pops up whenever someone try to access the site. Cancelling username/passwd just ends in failure. Why ? I'm using apache as webserver for zope and has made it so that apache handles the authentication bit, but still - shouldn't it let 'anonymous' trough? I've had a look at the security settings for both folders and files and they all let 'anonymous view'. Whats wrong? Sture From M.Faassen@vet.uu.nl Thu Mar 11 17:53:41 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 18:53:41 +0100 Subject: [Zope] non-External Methods References: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> Message-ID: <36E80325.B637033F@pop.vet.uu.nl> Martijn Pieters wrote: > Martijn Faassen wrote: > > You need press the 'edit' button for an external method in Zope > > each time you changed something in it and want it updated. This would > > imply Python code can indeed be part of the Object database, right? > > No, it forces Python to recompile the code. The code itself is NOT stored > int the object database. Only instance data is stored in the object > database, no code is. Zope classes are said to change all this, aren't > they, DC? Aah, of course, I see. Thanks! Martijn From M.Faassen@vet.uu.nl Thu Mar 11 18:09:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:09:54 +0100 Subject: [Zope] non-External Methods References: <199903111726.JAA13377@zope.codeit.com> Message-ID: <36E806F2.F20A4457@pop.vet.uu.nl> Jeffrey P Shell wrote: [enlightnening discussion on External Methods snipped] Thanks everybody, I added this to the FAQ. Regards, Martijn From kid@ans.net Thu Mar 11 18:49:39 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 13:49:39 -0500 Subject: [Zope] Letting everyone view contents of a newly built site In-Reply-To: <19990311184413.A1175@RaVER.duck.org>; from raver@box.dust.za.net on Thu, Mar 11, 1999 at 06:44:13PM +0100 References: <19990311184413.A1175@RaVER.duck.org> Message-ID: <19990311134939.A7002@throwingcopper.ans.net> Hello! On Thu, Mar 11, 1999 at 06:44:13PM +0100, raver@box.dust.za.net wrote: ,----- | Hi! | | Just made a small test-site, and followed the Zope magager guide to how to | let anyone view my newly made site, but thisg doesn't work. The doc say that | by default everyone should have access to view the contents of a site made | by zope, but here the authorization/authentication dialogue pops up whenever | someone try to access the site. Cancelling username/passwd just ends in | failure. Why ? I'm using apache as webserver for zope and has made it so that | apache handles the authentication bit, but still - shouldn't it let | 'anonymous' trough? I've had a look at the security settings for both | folders and files and they all let 'anonymous view'. Whats wrong? When you say that you made it so that Apache handles the authentication, I take that to mean you have created a .htaccess file? If that is the case, Apache will always prompt for the password and check it against your password file. If you use mod_rewrite to let Zope handle authentication, you will not see the password prompt for resources that are available to anonymous users. Kevin | | Sture | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From M.Faassen@vet.uu.nl Thu Mar 11 18:55:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:55:54 +0100 Subject: [Zope] Zope FAQ 0.2.1 and zdp.zope.org Message-ID: <36E811BA.23802256@pop.vet.uu.nl> Zopists, Zope-hackers, Zopineers and Zopistas, The ZDP is pleased to announce the creation of the zdp.zope.org website. Thanks to Brian Brown of BW Group for generously providing Zope space for the ZDP! Also thank you to the wonderful people at Digital Creations for their support. So go ahead and visit us at: http://zdp.zope.org Please note that zdp.zope.org is very much a work in progress, and so is the Zope FAQ (currently at revision 0.2.1). Still, we've come a long way in barely two weeks time! The FAQ appears to be already useful to some people, which is very good to know. The ZDP and the Zope FAQ eagerly await your contributions, by the way. So run and join the ZDP mailing list! My apologies to the people who may have heard this before. :) Regards, Martijn From da@ski.org Thu Mar 11 19:55:43 1999 From: da@ski.org (David Ascher) Date: Thu, 11 Mar 1999 11:55:43 -0800 (Pacific Standard Time) Subject: [Zope] Guestbook Message-ID: The guestbook product is broken in 1.10.2. I've 'fixed' it by removing both references to OFS.DocumentHandler (import and class inheritance). Now it's not broken, but it doesn't seem to work! Anytime I enter any data, it says 'data entered' but nothing ever shows up in the data view. Has anyone fixed this? BTW, I couldn't find an author name listed anywhere. --david From amos@aracnet.com Thu Mar 11 20:37:49 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 11 Mar 1999 12:37:49 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Hello Zopesters: Are you confused by the subtleties of DTML? Want the skinny on advanced DTML tricks and gotchas? Check out my advanced DTML HowTo: http://www.zope.org/Documentation/HowTo/DTML This document explains in detail the concepts behind advanced DTML tricks like indirect variable lookup, setting variables, calling sub-templates with different client objects, etc. Its main emphasis is on understanding how DTML uses a namespace stack to manage variable lookups. Enjoy and send me your feedback. -Amos P.S. Probably at least some of this material will be incorporated into the DTML User's Guide in the future. From M.Faassen@vet.uu.nl Thu Mar 11 21:12:13 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 22:12:13 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E831AD.FF7FE4F4@pop.vet.uu.nl> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Thanks! Although by now I knew most of what was mentioned (though it sure was nice seeing it all together in one place) this will be invaluable for people who want to get up to speed with DTML. Martijn From mbernstein@profitscape.net Thu Mar 11 21:28:31 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 11 Mar 1999 13:28:31 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E8357F.3DE329F@profitscape.net> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Excelent! This is so much clearer than isolated answers to 'how-do-I' questions. This gives me the context I've been missing! Thanks! Michael Bernstein. From crowland@psionic.com Thu Mar 11 22:23:29 1999 From: crowland@psionic.com (Craig H. Rowland) Date: Thu, 11 Mar 1999 16:23:29 -0600 (EST) Subject: [Zope] Newbie questions. Message-ID: Hello, I've looked through all the docs, FAQs and threads of the Zope list for some of these answers and haven't found a clear method described. I'll apologize now if the questions seem obvious, but I'm new to deploying Zope on a web server and need some initial Zope setup guidance. Question 1: Under Zope, what is the proper way to configure the website so users can simply go to http://www.example.com instead of: http://www.example.com/example http://www.example.com:9673/ etc. My understanding is that the mod_rewrite rules will have to come into effect here. Will I also need to do a re-direct of some type? I need some way to direct all URL requests so they are re-written to point to the correct Zope folder. The ideal for me is to have a series of folders in Zope that contain separate websites. The sites can be virtual hosted as needed (although right now I'm only running one site). I can't find a clear description of how to make this happen. Also I don't want to run a separate Zope process and proxy people to the port. I want to have everything running on port 80. I'll have to agree with other posters that a tutorial on the design of the actual Zope site with Zope would be very helpful as they are using a layout of html and hierarchy that is very similar to what I'm pursuing. In fact if someone could provide me with a description of the config they're using it would be a huge help. Question 2: Under .DTML construction of links is it generally considered "better" Zope practice to reference the entire URL or the Zope object hierarchy directly? Question 3: I don't want tracebacks to appear under any circumstances to the end users. I haven't tried anything to counter this yet, but wanted to know what some others have done. Would an approach to this be a try/except positioned in the standard_html_header and footer files? Ideally I would like to catch all exceptions and have it automatically mail the exceptions to the webmaster instead of showing the user (In fact I think this would be a good feature for the product). Question 4: Has anyone pursued a security audit of the Zope code? I've been considering doing this (not that I don't trust the Zope developers, it's just that I don't trust anyone) and would like to work with others if possible. Several of the sites I admin get hacked on very frequently and I'm a little nervous about replacing static web pages with no CGI running anywhere with the exact opposite end of the spectrum with Zope. :) I'm also going to prepare a document describing how to run Zope in a chroot() environment under UNIX to increase security. I'll let the list know when it is complete. Thank you for any responses, -- Craig From gdeering@csu.edu.au Thu Mar 11 23:50:02 1999 From: gdeering@csu.edu.au (Geoff Deering) Date: Fri, 12 Mar 1999 09:50:02 +1000 Subject: [Zope] Zope Benchmarks and Performance testing Message-ID: <000201be6c19$e16afd20$cd86a689@gdeering.mur.csu.edu.au> I'm new to this list. It seems to me that the www.zope.org is rather slow this week. Documents are taking far too long to be parsed. Pings seem reasonable, so I am expecting that the server may be receiving a lot of requests and being overloaded (maybe from the Web Review article). So I am just wondering what the specs of the system that the www.zope.org ISP is using. Also wondering about stress tests and benchmarks for the Zope system. (It must also depend on backend systems etc) Geoff Deering Web Programmer Charles Sturt University From kid@ans.net Thu Mar 11 23:31:54 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 18:31:54 -0500 Subject: [Zope] Problem setting security on a DTML Method Message-ID: <19990311183154.A7550@throwingcopper.ans.net> Hi, Using Zope 1.10.2 on Win95, I was trying to set permissions on a DTML Method. I was trying to set everything except "View" to the Acquired permissions. View was turned on only for "Manager" and "Editor". When I click the change button after setting things as I just described, I get the following Traceback: Traceback (innermost last): File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 877, in publish_module File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /beta/incoming/edit/manage_changePermissions) File C:\Program Files\WebSite\lib\python\AccessControl\Role.py, line 194, in manage_changePermissions (Object: edit) File C:\Program Files\WebSite\lib\python\AccessControl\Permission.py, line 166, in setRoles AttributeError: manage_addProperty If I'm not doing something foolish here, I'll submit this to the Collector. Thanks! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From jae@kavi.com Fri Mar 12 00:02:23 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 11 Mar 1999 16:02:23 -0800 (PST) Subject: [Zope] Newbie questions. In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Craig H. Rowland wrote: > Question 1: > > Under Zope, what is the proper way to configure the website so users can > simply go to http://www.example.com instead of: > > http://www.example.com/example > http://www.example.com:9673/ > etc. Use Apache's VirtualHost ability... Look here for more info: http://www.apache.org/docs/vhosts/ An example: # in httpd.conf # your ip NameVirtualHost 192.123.44.3 # your standard host.domain (this must come first) ServerName your.standard.name DocumentRoot /home/httpd/html # one or more extra virtual hosts ServerName your.zope.name DocumentRoot /home/httpd/html RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From andreww@netscape.com Fri Mar 12 00:35:21 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Thu, 11 Mar 1999 16:35:21 -0800 Subject: [Zope] Lots of questions: Message-ID: <36E86145.7BF0385B@netscape.com> 1) How do I get Zope to run as a service on my NT box so I dont have to stay logged in for it to run? 2) When I upgrad Zope will I have to re-build all of my applications? 3) Is there an IRC channel for ZOPE? IF not I would like to offer the idea of creating one on say the mozilla or slashdot servers 4) Is there anyone interested in working with me on a Zope/Dreamweaver cross-communication project? -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From andy@ictibroker.com Fri Mar 12 01:10:32 1999 From: andy@ictibroker.com (Andy Smith) Date: Thu, 11 Mar 1999 20:10:32 -0500 Subject: [Zope] Guestbook In-Reply-To: Message-ID: <000001be6c25$2026dc40$0363efa1@atlantis.nyr.cable.rcn.com> > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of David > Ascher > Sent: Thursday, March 11, 1999 2:56 PM > To: The Zope Group > Subject: [Zope] Guestbook > > > The guestbook product is broken in 1.10.2. I've 'fixed' it by removing > both references to OFS.DocumentHandler (import and class inheritance). > Now it's not broken, but it doesn't seem to work! Anytime I enter any > data, it says 'data entered' but nothing ever shows up in the data view. > Has anyone fixed this? > > BTW, I couldn't find an author name listed anywhere. > I'm the guilty party (!) I found this problem before but so far haven't found the fix.... here's what I originally posted to the list. I'd like to get this sorted out as I'm also working on a Souped (Zoped?) up version of Amos's poll product, which produces pie-chart gifs in response to the poll results, but it also broke in much the same manner going from 1.9 to 1.10. So any help on this matter would be much appreciated! Cheers, Andy. ============================================================== -----Original Message----- From: Andy Smith [mailto:andy.smith@iname.com] Sent: Friday, February 19, 1999 2:29 PM To: Phil Harris; zope@zope.org Subject: RE: [Zope] Guestbook Product I get the same thing :( Hmm.. looks like DocumentHandler no longer exists. I've taken out DocumentHandler from the Guestbook, to mimick the change that has been made to 'Folder' going from 1.9->1.10. When doing the guestbook, I kept making sideways glances to Folder.py to see how it was done ;) The book no longer crashes but I'm getting some other wierdness. The guestbook is a folderish product which contains two documents that the user can add to change the appearance of the guestbook. They're added by the following lines in the 'add' method ... # Add a Document used to view previous entries fileName = os.path.join(prefix,'index.dtml') index2 = open(fileName,'r').read() i = DTMLMethod(index2,__name__='index_html') print "i is %s" % i.meta_type i.title='Change me to determine how entries are viewed' self._setObject('index_html',i) print "ObjectItems is %s" % list(self.objectItems()) The added objects no longer seem to be showing up in objectItems(). The debug statement, when run on 1.9 prints out the newly added object in the call to 'objectItems()', while on 1.10 it returns an empty list. Is this a side-effect of the removal of DocumentHandler? I thought that _setObject was being inherited from ObjectManager, so wouldn't be affected by the removal of DocumentHandler. Cheers, Andy. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil > Harris > Sent: Friday, February 19, 1999 8:46 AM > To: zope@zope.org > Subject: [Zope] Guestbook Product > > > Has anyone else noticed that the GuestBook Product no longer > works in 1.10? > > Is it just me or what? > > I get a traceback of > > Traceback (innermost last): > File "/usr/local/Zope-1.10.0pr1-src/lib/python/OFS/Application.py", line > 393, in import_products > product=__import__(pname, global_dict, global_dict, silly) > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/__init__.py", > line 7, in ? > import GuestBook > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/Guest > Book.py", > line 7, in ? > from OFS.Document import DocumentHandler, Document > ImportError: cannot import name DocumentHandler > > Any Ideas? > > Phil > From wolf@searchbutton.com Fri Mar 12 04:16:44 1999 From: wolf@searchbutton.com (Wolf Logan) Date: Thu, 11 Mar 1999 20:16:44 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <810F7CEE7B5FD211B68A00400541C762071804@orion.searchbutton.com> i was reading and enjoying the guide when i came across this line: "at different points while rending a DTML document..." i know at times *i've* wanted to rend a DTML document, but i didn't realize that zope did it too. :) > -----Original Message----- > From: Amos Latteier [SMTP:amos@aracnet.com] > Sent: Thursday, March 11, 1999 12:38 PM > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML > From chsrinfo@guetali.fr Fri Mar 12 05:36:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 09:36:36 +0400 Subject: [Zope] Apache Authorization Message-ID: <009401be6c51$67cea7e0$147800a0@pc-pi0> >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > Well, under RedHat 5.2, mod_rewrite is a DSO, and is activated in the *middle* of the httpd.conf. I had the same problem. The rewrite rules put a the top of the file have no effect because they occur *before* mod_rewrite is activated. I had to put the rewrite rules a the end of the file. I works now. I don't know if this will solve your problem, but, just in case... Regards, Jephte CLAIN Service Informatique CHSR From chsrinfo@guetali.fr Fri Mar 12 07:55:17 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 11:55:17 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <00a401be6c5d$caec6180$147800a0@pc-pi0> Hello, Correct me if i'm wrong: one has got to have "access content informations" permission to be able to write: right? I've been bitten with that, and once i gave "access content informations" to the Anonymous User, my problem went away. Also, before I submit this to the Collector, is it normal that the "use mailhost services" doesn't appear in the security tab of the folders? Each product has its permissions that are listed, but nothing with the mailhost object. I had to change it directly in the mailhost object. If it's normal, it means that i can't give global permission for mailhost objects??? What confuse me, however, is that the mailhost object claims to "acquire" permission settings from its parents, but nowhere in its parents i can define the permissions. Regards, Jephte CLAIN Service Informatique CHSR From jim.bickford@flinders.edu.au Fri Mar 12 08:52:47 1999 From: jim.bickford@flinders.edu.au (Jim Bickford) Date: Fri, 12 Mar 1999 18:22:47 +0930 Subject: [Zope] Fsimport problems Message-ID: <36E8D5DF.CD3009CB@flinders.edu.au> Hi... I'm having no luck importing an existing file tree using fsimport with Zope-1.10.2 with pcgi Apache... it seemed to work well under 1.9 ... but then I was also using ZopeHttpServer Could that be the problem or something I have done.. Thanks guys for a great system... Cheers JimB This is the dump: Sorry, an error occurred. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Bio/fsimport) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/home/jimb/AAA-work/bio.www/body', form: fsdir: '/home/jimb/AAA-work/bio.www/body' environ: DOCUMENT_ROOT: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs' HTTP_ACCEPT_ENCODING: 'gzip' SCRIPT_FILENAME: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' PCGI_NAME: 'Main' PCGI_MODULE_PATH: '/usr/local/Zope-1.10.2-linux2-x86/lib/python/Main.py' SERVER_PORT: '9673' PATH_TRANSLATED: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs/Bio/fsimport' REMOTE_ADDR: '129.96.230.155' SCRIPT_NAME: '/Zope' PCGI_EXE: '/usr/local/Zope-1.10.2-linux2-x86/bin/python' HTTP_ACCEPT_LANGUAGE: 'en,de,af' PCGI_PUBLISHER: '/usr/local/Zope-1.10.2-linux2-x86/pcgi/pcgi_publisher.py' GATEWAY_INTERFACE: 'CGI/1.1' SERVER_NAME: 'daphne.bio.flinders.edu.au' HTTP_CONNECTION: 'Keep-Alive' HTTP_USER_AGENT: 'Mozilla/4.5 [en] (WinNT; I)' HTTP_ACCEPT_CHARSET: 'iso-8859-1,*,utf-8' HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*' REQUEST_URI: '/Zope/Bio/fsimport?fsdir=/home/jimb/AAA-work/bio.www/body' PCGI_INFO_FILE: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' HTTP_COOKIE: 'tree-s="eJyLjjaMjQUABOIBog"; dtpref_rows="55"; dtpref_cols="100"' PATH: '/sbin:/usr/sbin:/bin:/usr/bin' QUERY_STRING: 'fsdir=/home/jimb/AAA-work/bio.www/body' SERVER_PROTOCOL: 'HTTP/1.0' HTTP_HOST: 'daphne.bio.flinders.edu.au:9673' SCRIPT_URL: '/Zope/Bio/fsimport' REMOTE_PORT: '1931' PCGI_PID_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.pid' SERVER_SIGNATURE: '' SCRIPT_URI: 'http://daphne.bio.flinders.edu.au:9673/Zope/Bio/fsimport' PCGI_SOCKET_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.soc' SERVER_ADMIN: '[no address given]' SERVER_SOFTWARE: 'Apache/1.3.4 (Unix)' PYTHONHOME: '/usr/local/Zope-1.10.2-linux2-x86' PCGI_DISPLAY_ERRORS: '1' PATH_INFO: '/Bio/fsimport' BOBO_REALM: 'Zope' BOBO_DEBUG_MODE: '1' HTTP_PRAGMA: 'no-cache' REQUEST_METHOD: 'GET' PCGI_ERROR_LOG: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.log' ), {}, (None,))) TypeError: read-only buffer, class -- --------------------------------------------------------------------- Jim.Bickford@flinders.edu.au Biological Sci Flinders University 61 8 8201 3179(v) 61 8 8201 3015(f) South Australia 5042 --------------------------------------------------------------------- From tallard@sagem.fr Fri Mar 12 08:58:21 1999 From: tallard@sagem.fr (Stephane Tallard) Date: Fri, 12 Mar 1999 09:58:21 +0100 Subject: [Zope] PSFS or DTML Message-ID: <36E8D72D.D17C66B8@sagem.fr> Il s'agit d'un message multivolet au format MIME. --------------46BAC34F26042FC3E496775C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all , We try to use DocumentTemplate not for HTML dynamic generation but for C++ generation. For convenience, and because we are familiar with Python we intend to use the Alternate Python String Format Syntax. The generation code is beautiful compared to our previous output.write("blah blah.... ") instructions. Reading the docs, looking at the Zope site, this behaviour doesn't seem to be shared by a lot of zope users. Moreover the Alternate Python String Format Syntax is poorly documented, and DTML features seems to be usable but the way they can be used seem very strange. Basically our needs are to use conditional structures, iterative structures and to call methods. The last point seems to be the hardest one. The following code shows a way to call python methods in python strings but 3 persons during half a day have been necessary to find it out. I suppose you can imagine my questions : Is there a natural and convenient way to find out PSFS expressions going from their DTML equivalent ? Is there a complete documentation on PSFS syntax ? Are the features of DTML and PSFS identical ? And the most important : Do you encourage us to keep on using PSFS instead of DTML ? Thank for your help Stephane my code ================================= import DocumentTemplate ########################################## class attr: def __init__(self,att): self.att = att def get_att(self): return self.att def get_num(self): return len(self.att) ########################################## l__list = [attr('aa'),attr('bb'),attr('cc')] l_str = DocumentTemplate.String(""" %(l_item fmt=get_att)s %(l_item fmt=get_num)3d %(in l_list)[ POUETPOUET %(sequence-var-get_att)s %(in)] """) dict = {'l_item':l__list[1], 'l_list':l__list} print l_str(None,dict) --------------46BAC34F26042FC3E496775C Content-Type: text/x-vcard; charset=us-ascii; name="tallard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Stephane Tallard Content-Disposition: attachment; filename="tallard.vcf" begin:vcard n:;Stephane Tallard x-mozilla-html:FALSE org:Softeam version:2.1 email;internet:tallard@urd24.sagem.fr x-mozilla-cpt:;0 tel;work:01 34 30 57 89 fn:Stephane Tallard end:vcard --------------46BAC34F26042FC3E496775C-- From tony.mcdonald@ncl.ac.uk Fri Mar 12 08:45:21 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 08:45:21 +0000 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: One more voice shouting "thanks!". Just what I needed, this misty Friday morning. tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Armin.Tschammer@oi42.kwu.siemens.de Fri Mar 12 09:13:11 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Fri, 12 Mar 1999 10:13:11 +0100 Subject: [Zope] Newbie dtml question ( very simple ) Message-ID: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Hi, I would like to do things like that: XY.py : d = {} d['x1']=1 d['x2']=2 X = DocumentTemplate.HTMLFile('X3.dtml') string = X(d) WRONG: X3.dtml : Some Stuff More Stuff Other Stuff How does the right X3.dtml file look like ? Thanks, Armin From prudek@sol.cz Fri Mar 12 09:14:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 12 Mar 1999 10:14:40 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> <36E7DE88.344745B3@pop.vet.uu.nl> Message-ID: <36E8DB00.F257932A@sol.cz> > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a > FAQ on this one? (I think I heard the Digicool folks are working on some Well you were both right. I have turned on ExecCGI for my standard cgi-bin directory, where I placed a copy of Zope.cgi. It is NOT neccessary to add statement for /usr/local/zope/ (I thought it was neccessary... so I'm writing it here for the upcoming FAQ). Also I thought that I should use http://www.domain.com/cgi-bin/Zope.cgi address, which brings the introductory screen (that fooled me) but does not allow authorization. The correct address is of course http://www.domain.com/Zope, since that's what the rewrite rule is about. Thanks to all who helped me! -- Milos Prudek From ron@rotflol.cx Fri Mar 12 11:19:24 1999 From: ron@rotflol.cx (ron@rotflol.cx) Date: Fri, 12 Mar 1999 12:19:24 +0100 Subject: [Zope] Tree Tag & SQL Message-ID: <199903121119.MAA31716@heaven.rotflol.cx> I am trying to implemented a directory service using the tree tag where the info from several tables of a database. A simplified outline: +Locations +Offices +People +Phones Tel Fax +Addresses Problem: how to have the tree tag use a different SQL method for each level WITHOUT resorting to external methods, because the directory should be maintainable by mere mortals, not Python or SQL gods. -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From Paul@digicool.com Fri Mar 12 12:18:46 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 07:18:46 -0500 Subject: [Zope] Tree Tag & SQL Message-ID: <613145F79272D211914B0020AFF6401907BB49@GANDALF> Ron wrote: > Problem: how to have the tree tag use a different SQL method > for each level > WITHOUT resorting to external methods, because the directory > should be > maintainable by mere mortals, not Python or SQL gods. Hi Ron. Just a guess, but how about having the tree tag pass in the the current level as an argument to the same SQL method, then have the SQL method adapt itself based on the argument? Remember that an SQL method can embed logic and act like an object using DTML. For instance: select ... select ... etc. --Paul From phd@sun.med.ru Fri Mar 12 12:09:21 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 12 Mar 1999 15:09:21 +0300 (MSK) Subject: [Zope] Zope.cgi -> mod_zope Message-ID: Hello! Is there any plan to make complex "Apache + Zope" even more efficient by making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Paul@digicool.com Fri Mar 12 13:30:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 08:30:47 -0500 Subject: [Zope] Lots of questions: Message-ID: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Andrew "Zopeweaver" Wooldridge wrote: > 1) How do I get Zope to run as a service on my NT box so I > dont have to > stay logged in for it to run? The installer for the Zope NT binary asks you if you want to run as a service -- in fact, that's the default. Take a look at the file "doc/INSTALL.txt", under Installation on Windows, for more information. > 2) When I upgrad Zope will I have to re-build all of my applications? Unless we do something wrong, nope. > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > idea of creating one on say the mozilla or slashdot servers I'm not sure if the Zope universe is big enough yet for that. I rememer Guido doing this for Python about a year ago and nobody showed up. :^) Perhaps if there were coordinated events? > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > cross-communication project? I think the answer will certainly be yes. Go to: http://www.egroups.com/list/zope/ and do a search for Dreamweaver. There are about 18 hits. --Paul From mj@antraciet.nl Fri Mar 12 13:58:00 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 12 Mar 1999 14:58:00 +0100 Subject: [Zope] Zope.cgi -> mod_zope Message-ID: <4.1.19990312145716.00bf3210@lisp.atmm.nl> Whoops, here is a copy for the list as well... (I forgot to 'reply-all', *smirk*) At 13:09 12/03/99 , you wrote: >Hello! > > Is there any plan to make complex "Apache + Zope" even more efficient by >making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? > I do hope there is. If implemented like the Apache JServ module (http://java.apache.org/) it should solve a lot of problems for everyone, adding performance to boot. JServ is in effect a separate process (like Zope) that receives it's request via the Apache server, with the help of a module, that translates the requests into socket calls. If someone modifies the module that comes with JServ to call the Zope process instead of the JServ process..... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 12 14:00:07 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 14:00:07 +0000 Subject: [Zope] Getting slashdot to work... Message-ID: HI all, In my quest to figure out how Zope works, I'm starting with ExtrenalMethods. I've moved slashdot.py into Extensions and set up an external method (id: get_headlines, funstion name: get_headlines, python module: slashdot). My 'calling' DTML is a method (slashdot_headlines) with the following;

    trying 'view' on this method gives the following; ... I *did* have a problem with using a proxy, but got around that by adding this line to slashdot.py (just before the urllib.urlopen() call). urllib.URLopener(proxies={'http': 'http://cache-box.you.domain:your_port'}) What am I doing wrong? many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From jeffbauer@bigfoot.com Fri Mar 12 13:57:26 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Fri, 12 Mar 1999 07:57:26 -0600 Subject: [Zope] Zope.cgi -> mod_zope References: Message-ID: <36E91D46.9DE0A239@rubic.com> Oleg Broytmann wrote: > Is there any plan to make complex "Apache + Zope" even > more efficient by making Zope.cgi a module (mod_zope, > let's name it, or mod_pcgi)? A mod_pcgi Apache module has been discussed. It would certainly be more efficient. One of the issues would be whether pcgi should get out of the process launch business, which would simplify a mod_pcgi and make it easier to debug. -Jeff Bauer From A.K.Heath@shu.ac.uk Fri Mar 12 14:41:16 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Fri, 12 Mar 1999 14:41:16 GMT Subject: [Zope] Create zope property from external method? Message-ID: <199903121441.OAA24954@teak.shu.ac.uk> I'm a zope newbie I have an external method in which I want to check whether a property within zope exists and if it doesn't exist to create it. How can I do this ? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From andreww@netscape.com Fri Mar 12 15:52:12 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 07:52:12 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9382C.DD2C695E@netscape.com> Paul Everitt wrote: > Andrew "Zopeweaver" Wooldridge wrote: > > 1) How do I get Zope to run as a service on my NT box so I > > dont have to > > stay logged in for it to run? > > The installer for the Zope NT binary asks you if you want to run as a > service -- in fact, that's the default. Take a look at the file > "doc/INSTALL.txt", under Installation on Windows, for more information. Ok, I'll check that out. My experience has been than I run it with start.bat and when I close that ms-dos window zope stops. > > > > 2) When I upgrad Zope will I have to re-build all of my applications? > > Unless we do something wrong, nope. > > > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > > idea of creating one on say the mozilla or slashdot servers > > I'm not sure if the Zope universe is big enough yet for that. I rememer > Guido doing this for Python about a year ago and nobody showed up. :^) > > Perhaps if there were coordinated events? > I think that now that zope is "out there " and is open source that you will find more people. Perhaps a news.zope.org newsgroup would be cool as well. From julian@zereau.net Fri Mar 12 16:41:40 1999 From: julian@zereau.net (julian@zereau.net) Date: Fri, 12 Mar 1999 16:41:40 -0000 (GMT) Subject: [Zope] please interpret Message-ID: "TypeError: read-only buffer, class" I keep getting this error, please can someone explain what typically causes it? --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Fri Mar 12 16:56:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 12 Mar 1999 11:56:52 -0500 (EST) Subject: [Zope] Create zope property from external method? In-Reply-To: <199903121441.OAA24954@teak.shu.ac.uk> Message-ID: On Fri, 12 Mar 1999, Andy Heath wrote: > I'm a zope newbie > > I have an external method in which I want to check whether a > property within zope exists and if it doesn't exist to create it. > > How can I do this ? > > Andy If your external method is called from DTML document 'foo' then something like this should do it (untested): def mymethod(self): if not self.hasProperty('myproperty'): self.manage_addProperty('myproperty','hello','string') BTW you can achieve the same effect from DTML Pavlos From jeffrey@Digicool.com Fri Mar 12 18:03:08 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 12 Mar 1999 13:03:08 -0500 Subject: [Zope] please interpret Message-ID: <199903121802.KAA23415@zope.codeit.com> >From: julian@zereau.net > > "TypeError: read-only buffer, class" > > I keep getting this error, please can someone explain what typically causes > it? This is a buglet in ExternalMethod where an exception has been raised and caught by ExternalMethod, and EM is looking at the values of the traceback for some special conditions. It's trying to do a string.lower() call on one of the values that in Python1.4 was always a string, but in Python1.5.x is an instance (in Python 1.5, standard exceptions became classes). This has been fixed and will be in the next release. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Fri Mar 12 19:56:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 11:56:16 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> <36E9382C.DD2C695E@netscape.com> Message-ID: <36E97160.E76D75F0@profitscape.net> Andrew Wooldridge wrote: > > I think that now that zope is "out there " and is open source that you will > find more people. > Perhaps a news.zope.org newsgroup would be cool as well. Welcome to the list Andrew! I'm glad you found my suggestions interesting enough to check Zope out. Regarding my last email, did you figure out how to do PUT and GET from DW yet? And do you know if Macromedia is going to add WebDAV support to DW? In case you missed it, I'd like to point you towards the Advanced DTML Howto: http://www.zope.org/Documentation/HowTo/DTML as that has more thorough information than the DTML guide I showed you before. I would also be interested in a newsgroup, as I am currently filtering the email into a folder and sorting it by thread, but a newsgroup would let me see the the same threaded view from home, as well. This would also have the effect of letting new users see the context of the current posts. Michael Bernstein. From FVilla@GestaltTechnology.com Fri Mar 12 20:45:52 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 12 Mar 1999 15:45:52 -0500 Subject: [Zope] IRC channel Message-ID: <36E97D00.26FB26F9@GestaltTechnology.com> Gentlemen, I am very pleased with Zope and in an effort to support it, I will create a channel called #zope under the EFnet. I am still learning about ZOpe, but I will try to help all I can. Also, I will be placing an infobot to provide lots of information on Zope. Drop by and pay a visit to #zope if you have some time... Cheers, Fredy Villa Gestalt Technology, LLC Fvilla@GestaltTechnology.com From jae@kavi.com Fri Mar 12 21:08:18 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 12 Mar 1999 13:08:18 -0800 (PST) Subject: [Zope] Access Control Advice Message-ID: Hello all, I am working on a Zope app, and would like to see if anyone has any tips for how I should handle access control in this situation... The site is a corporate organization site. It has many corporate members, each has an admin which has control over a subset of information kept in a relational database. I want to have just one role (comp_admin) for this. But each company can only have access to their company info. Thus I need to check that the admin belongs to that company. (there are also regular users who also have to login. they can view, but not modify) The users, passwords and roles are kept in the database too (UserDB). Each company has a unique id, and this is the primary keys in the DB. Each user is associated to the company using this id (a field in their table). Make sense? My current idea is: 1. Have a general main page which both users and admins login to. If they use the admin login, get their company id (comp_id) and create a link to the admin section using the magic of direct traversal (this way they can bookmark the admin page). Eg. admin section ('comp' is the zsql method, 1 is the comp_id, admin is the folder) Thus the comp_id of the company will be available, and I could: A. I could then (mabey?) use the comp_id in the UserDB query (in the admin folder) to only retrieve those people belonging to that company. OR (if I can't get to the comp_id from the UserDB query). B. I could then compare to the person's comp_id to the company's comp_id in each of the effect pages via a new standard_header. Thoughts? Better ways to do this? --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Fri Mar 12 21:30:22 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 12 Mar 1999 16:30:22 -0500 Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: >I know there is a way to convert underscores to spaces (spacify) but i >need it the other way around is. There a function to convert spaces to >underscores and if not how can i do it elseway? I haven't tryed this but on pg 10 of DTML Users Guide check out: maketrans(FROM,TO) and translate(S,TABLE[, DELS]) it seems to do character for character translations. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From kent@goathill.org Fri Mar 12 22:04:17 1999 From: kent@goathill.org (Kent Polk) Date: 12 Mar 1999 22:04:17 GMT Subject: [Zope] Tree Tag & SQL In-Reply-To: <199903121119.MAA31716@heaven.rotflol.cx> Message-ID: <921276256.763497@zoo-of-death.endicor.com> On 12 Mar 1999 05:55:00 -0600, ron@rotflol.cx wrote: >I am trying to implemented a directory service using the tree tag where the >info from several tables of a database. > >A simplified outline: > >+Locations > +Offices > +People > +Phones > Tel > Fax > +Addresses > >Problem: how to have the tree tag use a different SQL method for each level >WITHOUT resorting to external methods, because the directory should be >maintainable by mere mortals, not Python or SQL gods. Brian built a pretty cool way to hook SQL entries to particular folder trees for the PDMS. Each folder has a uniqueid which is stored in a sql table, along with the folder parent heirarchy, when an item is added to the SQL database. This allows each folder to easily identify which SQL entries belong directly to it and which SQL entries belong as children. This allows one to easily do things such as count the number of SQL items which are identified with a folder tree using SQL query syntax. Brian also provided dtml methods to move folders and their relationships around in the Zope heirarchy quite nicely. The mechanism holds quite a few SQL items in it and there has never been a need for a Python or SQL god to do any maintenance on the system at that level. However, it does use both SQL and External Methods. So, don't believe that just because something requires a fairly deep level of competence to create that it requires that same level of competence to maintain (me for example :^). That's simply one mark of a decent implementation. Kent From mbernstein@profitscape.net Sat Mar 13 00:12:28 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 16:12:28 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9AD6C.D3E15A56@profitscape.net> Paul Everitt wrote: > > Andrew "Zopeweaver" Wooldridge wrote: > > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > > cross-communication project? > > I think the answer will certainly be yes. Go to: > > http://www.egroups.com/list/zope/ > > and do a search for Dreamweaver. There are about 18 hits. I've been unable to log in to the egroups archive all day. Is there something wrong with their server? Michael Bernstein. From billr@coinet.com Sat Mar 13 02:26:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 12 Mar 1999 18:26:42 -0800 Subject: [Zope] sequence of numbers Message-ID: <9903121826.ZM7584@saab.coinet.com> This may be a newbie question, but I've loked thru the doc and didn't spot any obvious way to do this, short of an External Method. What I want to do is given a limit number, iterate over a sequence of DTML commands. This would be an obvious use for #in (which I'm using elsewhere for other things) except I don't have a sequence - just the number of items in the sequence, as it were. In psuedo-code, what I'm after is something like this: for (i=0; i < ; i++) { // some DTML/HTML code using "i" } Now if, given a #var, I could get a list - e.g.: --> list = [0, 1, 2, ... max_items] or [1, 2, ... max_items], it doesn't make much difference. then I could just use: // some stuff using Is there an easy way to do this? Is there *any* way to do it? -Bill Randle Central Oregon Internet billr@coinet.com From jkhoffman@usa.net Sat Mar 13 04:18:55 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Fri, 12 Mar 1999 23:18:55 -0500 (EST) Subject: [Zope] User Profiles? Message-ID: I am working on a web site for a local outdoors group. They have about 1,000 members and are growing fast, but their web site needs help. I had lunch with their leader today, and strongly advocated the use of Zope to redo their entire web site. He loved my ideas, and gave me the go ahead on the site. Now, my first question (I'm sure I'll have many) to the group is: How do I create user profiles? Each user of the system needs to have specific information associated with them including: full name, address, telephone numbers, a picture (gif or jpeg, easily uploadable by the user), their interests, a history of the events they've sponsored and/or attended, a buddy list (basically just a collection of other member ids), and so on. I have downloaded the UserDb product, and figure I might be able to extend it to support the extra columns I require. However, a big part of me wants to keep as much of this in Zope as I can. I like the idea of the objectstore, and don't necessarily like having to fudge SQL tables every time I add or remove an attribute from the profiles (not that I will be doing that, necessarily). What do those with a higher Zope Zen Rating than I suggest in this situation? I'm also going to be making an Events Calendar, which is connected up with all the User information (who's running the event, who's signed up to attend, etc.). Is all of this something that Tabula would be good for? If so, who do I have to sleep with to get it? :^) I am willing to write up a case study, testimonial, contribute any code I write back to the community, etc., whatever is requested. I just want to do a good job for these guys, making myself and Zope look good in the process. HELP! *grin* Jeff K. Hoffman From andreww@netscape.com Sat Mar 13 07:20:04 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:20:04 -0800 Subject: [Zope] extending dreamweaver into zope Message-ID: <36EA11A4.C9C0527E@netscape.com> I can see a number of things that DW will (I think) do to help out Zope - but there is one item in the way - FTP support There is no direct way for Dreamweaver to send pages back to Zope without either writing to a filesystem via a LAN or by using FTP (no webdav yet). So my question is this - when will we get ftp support in zope? (not just alpha). I am looking at the dtml spec right now and thinking about building drag-and-drop objects for DW that talk zope. One thing I need is for someone on the zope team or elsewhere to help me test these so that I get the syntax correct. Email me directly at andreww@netscape.com From andreww@netscape.com Sat Mar 13 07:21:30 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:21:30 -0800 Subject: [Zope] the HTML UI - can I help? Message-ID: <36EA11FA.E21D6A0D@netscape.com> I see a number of things that might help enhance the usability of the zope UI, how do I go about submitting those possible changes to the HTML code ? I could mock up a page with HTML and explain how it works... From rob.page@digicool.com Sat Mar 13 14:03:45 1999 From: rob.page@digicool.com (Rob Page) Date: Sat, 13 Mar 1999 09:03:45 -0500 Subject: [Zope] RE: [Zope-dev] De-Authentication / Logout Message-ID: <613145F79272D211914B0020AFF6401906919E@GANDALF> > It's always been my impression that unless Zope can be fitted with a > cookie-based-authentication system (vs. the current > basic-auth), there's > *no* way to force a "logout" because of the way the *browsers* handle > basic-auth. Recent notes about Lynx notwithstanding, I agree. It's extremely frustrating when debugging the security of an app! Zope _CAN_ use a cookie-based authentication scheme with the UserDB product. UserDB uses Database Adapter (e.g., Oracle) to connect to a store of user info (e.g., userid and password). I can imagine some motivated community member taking a look at the current incarnation of UserFolder and UserDB and cookie-ifying the UserFolder. --Rob From zope@zope.org Sat Mar 13 14:00:53 1999 From: zope@zope.org (Wade Leftwich) Date: Sat, 13 Mar 1999 09:00:53 -0500 Subject: [Zope] - XML-style DTML code In-Reply-To: <199902030028.TAA02197@albert.digicool.com> Message-ID: <199903131359.IAA06323@gem.lightlink.com> "Jeffrey P Shell" wrote, back on Feb 2: [snip] > The editing-in-HTML-editors will always be a problem with the current > syntax, in my opinion, because (real code here, and code i'm not at all > ashamed to have written): > > > > will give just about any editor a headache. Cyberstudio, at a minimum, > moves the comment tags outside of the
    When submitting the form, it displays me a new page (generated by Zope) asking me again the auteur parameter, as if the auteur variable wasn't passed to the Z SQL method :-( Someone posted a mail recently with an example use of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' text: INSERT INTO messages (auteur) ... When I try this, I get: Error, pg.error: server fatal error. Please report to your db administrator. SQL used: INSERT INTO messages (auteur) VALUES ('testing again', 'blahblahblah', 'now', 'f') Is there something specific to PostGreSQL ? (Using Zope 1.10.2, PostGreSQL 6.4.2, PyGreSQL-2.2, ZPyGreSQLDA 0.02) I looked in the Z SQL Method User's guide, but nothing is written about adding data to a DB :-( -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From A.K.Heath@shu.ac.uk Sat Mar 13 18:13:29 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Sat, 13 Mar 1999 18:13:29 GMT Subject: [Zope] object modification date - how ? Message-ID: <199903131813.SAA28032@teak.shu.ac.uk> I'm still a zope newbie Is there an easy way I can get a a modification date for an object (so I can do a "last modified on ...")? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From hannu@trust.ee Sat Mar 13 19:08:52 1999 From: hannu@trust.ee (Hannu Krosing) Date: Sat, 13 Mar 1999 21:08:52 +0200 Subject: [Zope] INSERT Syntax with Zope & ZPyGreSQLDA References: <87hfrp1js9.fsf@eurythro.savigny.stp> Message-ID: <36EAB7C4.8DD42BE@trust.ee> lstep@mail.dotcom.fr wrote: > > Hello, > > I'm trying to use PostGreSQL with Zope, but I'm having > problems using the SQL INSERT method in Z methods which > require parameters. > > For example, I make a Z SQL Method named 'foo'. > In it: > INSERT INTO messages > VALUES > (, > 'blahblahblah', 'now', 'f') > > I write the name auteur in the 'arguments' form. > > Next I create a DTML document with: > > Auteur:
    why no type=text ? > > > > When submitting the form, it displays me a new page > (generated by Zope) asking me again the auteur parameter, > as if the auteur variable wasn't passed to the Z SQL method :-( > > Someone posted a mail recently with an example use > of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' > text: INSERT INTO messages (auteur) ... > > When I try this, I get: > > Error, pg.error: server fatal error. Please report to your db administrator. A good to test your SQL is using psql. And upgrading to PyGreSQL 2.3 or later, which return proper sql messages > SQL used: > > INSERT INTO messages (auteur) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') This is definitely wrong ;( something like INSERT INTO messages (auteur,title,bookdate,any_good) VALUES ('testing again', 'blahblahblah', 'now', 'f') might have worked. You may also mean current_date or current_time instead of now or now() From eric.kidd@pobox.com Sat Mar 13 19:47:48 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Sat, 13 Mar 1999 14:47:48 -0500 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com>; from Bill Randle on Fri, Mar 12, 1999 at 06:26:42PM -0800 References: <9903121826.ZM7584@saab.coinet.com> Message-ID: <19990313144748.F30044@moebius.dartmouth.edu> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > This may be a newbie question, but I've loked thru the doc and didn't > spot any obvious way to do this, short of an External Method. I didn't find any other way, either. But here's an External Method you can use. --- begin loop_range.py --- LoopRangeError = 'LoopRangeError' # Name an exception class. loop_range_limit = 100 # Maximum allowable loop index. def loop_range(max): if max <= loop_range_limit: return range(max) else: raise LoopRangeError, max --- end --- Notice that it won't allow the "max" parameter to be bigger than 100. This prevents users from generating near-infinite amounts of HTML and freezing your server. You can edit this to any value you like, or even remove it if you trust all your DTML authors. Now, create an External method with the following properties: id: loop_range title: Loop Iteration Method method: loop_range file: loop_range To use this method in DTML, try the expr attribute of the #in construct: --- begin sample DTML ---

    Index:

    --- end --- > Is there an easy way to do this? Is there *any* way to do it? Yup. ;-) Zope has tons of power hiding under the hood, and a skilled Python programmer could make it do almost anything. Cheers, Eric From tseaver@palladion.com Sat Mar 13 19:48:14 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 13:48:14 -0600 Subject: [Zope] Cool! Attribution! References: <199903122000.MAA26389@zope.codeit.com> Message-ID: <36EAC0FE.AF740889@palladion.com> A quick plug for a "Powered by Zope" site I just saw: http://www.denarius.com/ -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From mj@antraciet.nl Sat Mar 13 06:41:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 07:41:41 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com> Message-ID: <4.1.19990313073352.00aa37b0@mail.atmm.nl> At 03:26 13-3-99 , Bill Randle wrote: >Now if, given a #var, I could get a list - e.g.: > --> list = [0, 1, 2, ... max_items] >or [1, 2, ... max_items], it doesn't make much difference. >then I could just use: > > // some stuff using > > >Is there an easy way to do this? Is there *any* way to do it? One way of doing this would be using an external method: def MyRange(iMax): return range(iMax) -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Sat Mar 13 20:06:42 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 21:06:42 +0100 Subject: [Zope] object modification date - how ? In-Reply-To: <199903131813.SAA28032@teak.shu.ac.uk> Message-ID: <4.1.19990313210503.00aaec60@mail.atmm.nl> At 19:13 13-3-99 , Andy Heath wrote: >I'm still a zope newbie > >Is there an easy way I can get a a modification date for an object >(so I can do a "last modified on ...")? > >Andy The property bobobase_modification_time gives you the last modification time. This is not in the docs, I gleaned it from Zope's source (it is used in amongst other places the document edit screen). This is a good item for the FAQ. Martijn Pieters. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Sat Mar 13 22:59:15 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 13 Mar 1999 23:59:15 +0100 Subject: [Zope] Structured text and lists Message-ID: <36EAEDC2.46997FE5@sol.cz> Can I make ordered/unordered lists using structured text, without doublespacing lines? When I write single spaced lines: - one - two - three it's not rendered as list. And when I write doublespaced lines, it's rendered as doublespaced list... -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 02:38:07 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sat, 13 Mar 1999 21:38:07 -0500 (EST) Subject: [Zope] Bug in sqlvar.py? Message-ID: Hello, everyone. I'm bustin' ass on my project for the outdoors group and ran into a problem with the #sqlvar command. At the top of the file, in the docstring, it says: For example, given the tag:: And, when I submit the query while leaving address2 blank I get: Invalid empty string value for address2 When reading the code, beginning on line 200 there is the else case which handles values of types other than int or float: else: v=str(v) if not v and t=='nb': raise ValueError, ( 'Invalid empty string value for %s' % name) v=md.getitem('sql_quote__',0)(v) #if find(v,"\'") >= 0: v=join(split(v,"\'"),"''") #v="'%s'" % v There is absolutely no check for the optional flag in this case as there are in the cases for int and float. Is this check supposed to be handled elsewhere in the code, and never make it here, or is this an oversight? I can patch it to fix the problem quite easily, but if this is not the preferred way of doing things I'd like to know (to avoid patching it every time a new Zope comes out.) I have two address lines, address1 and address2. I just want it to set address2 to null if the user does not fill it out. Is that too much to ask? :^) As I said, if I'm blatantly overlooking something, please let me know. If not, I'll be happy to submit a patch and/or report this in the collector. Thanks. Hope you all are having a good weekend! jkh From tseaver@palladion.com Sun Mar 14 04:29:45 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 22:29:45 -0600 Subject: [Zope] please interpret Message-ID: <36EB3B39.A630ED79@palladion.com> On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > >From: julian@zereau.net > > > > "TypeError: read-only buffer, class" > > > > I keep getting this error, please can someone explain what typically > > causes it? > > This is a buglet in ExternalMethod where an exception has been raised and > caught by ExternalMethod, and EM is looking at the values of the traceback > for some special conditions. It's trying to do a string.lower() call on > one of the values that in Python1.4 was always a string, but in Python1.5.x > is an instance (in Python 1.5, standard exceptions became classes). This > has been fixed and will be in the next release. Could you post the patch, please? This error message hits me about five ways from Sunday. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Sun Mar 14 04:58:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Sun, 14 Mar 1999 15:58:49 +1100 Subject: [Zope] please interpret In-Reply-To: Your message of "Sat, 13 Mar 1999 22:29:45 MDT." <36EB3B39.A630ED79@palladion.com> Message-ID: <199903140458.PAA15586@mbuna.arbhome.com.au> The following patch should do the magic thing: RCS file: ExternalMethod.py,v retrieving revision 1.1 diff ExternalMethod.py.dist ExternalMethod.py --- ExternalMethod.py.dist +++ ExternalMethod.py @@ -251,7 +251,7 @@ error_type=sys.exc_type error_value=sys.exc_value tb=sys.exc_traceback - if lower(error_type) in ('redirect',): + if lower(str(error_type)) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): It's not the way it's fixed in the new external method code, but it works for me, and should be enough to keep you going... Anthony. >>> Tres Seaver wrote > On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > > > >From: julian@zereau.net > > > > > > "TypeError: read-only buffer, class" > > > > > > I keep getting this error, please can someone explain what typically > > > causes it? > > > > This is a buglet in ExternalMethod where an exception has been raised and > > caught by ExternalMethod, and EM is looking at the values of the traceback > > for some special conditions. It's trying to do a string.lower() call on > > one of the values that in Python1.4 was always a string, but in Python1.5.x > > is an instance (in Python 1.5, standard exceptions became classes). This > > has been fixed and will be in the next release. > > Could you post the patch, please? This error message hits me about five ways > from Sunday. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) -- Anthony Baxter It's never to late to have a happy childhood. From TomJenkins@zentuit.com Sun Mar 14 05:14:03 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 00:14:03 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903140517.AAA01144@mail.digiweb.com> Hello all, First let me start by saying I've finally cleared time to play with zope. Its coming along nicely but I've hit a snag. The following snippet in a form: Staff using MySQL produces the following HTML: Staff Now unfortunately I believe the L is causing the insert to fail with an invalid integer. I specified user_id as integer unsigned zerofill auto_increment. Does anyone know why the 'L' is being return? TIA -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From mj@antraciet.nl Sun Mar 14 08:05:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sun, 14 Mar 1999 09:05:02 +0100 Subject: [Zope] MySQL & integer IDs In-Reply-To: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <4.1.19990314090101.00aaa680@mail.atmm.nl> At 06:14 14-3-99 , Tom Jenkins wrote: >Now unfortunately I believe the L is causing the insert to fail with an >invalid integer. I specified user_id as integer unsigned zerofill >auto_increment. Does anyone know why the 'L' is being return? > The L value is caused by a long integer to string conversion. You can get rid of the L by specifying a C format string, like so: Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From lstep@mail.dotcom.fr Sun Mar 14 10:17:30 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 14 Mar 1999 11:17:30 +0100 Subject: [Zope] 'Enter query parameters' In-Reply-To: Hannu Krosing's message of "Sat, 13 Mar 1999 21:08:52 +0200" References: <87hfrp1js9.fsf@eurythro.savigny.stp> <36EAB7C4.8DD42BE@trust.ee> Message-ID: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Hannu Krosing writes: > > Auteur:
    > > why no type=text ? Oops forgot it. Well it worked without it :-) > This is definitely wrong ;( > > something like > INSERT INTO messages (auteur,title,bookdate,any_good) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') Ow you're right. But this hasn't changed anything, it still ask me for the parameters after clicking on submit :-( In the HTML form, I replaced the action with '' where add_message is the Z SQL method. And it adds correctly the record to my Database, but displays 'This was not a query'. And, well, I don't think taht's the correct method to add records, by using the test method :-)) Is there anywhere an example of product adding some records to a database ? > might have worked. You may also mean current_date or current_time > instead of now or now() What's the difference between now and current_date / current_time I tried all of them, and they give exactly the same result (the good date :-) Thanks, Luc -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From anthony@interlink.com.au Sun Mar 14 12:32:36 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Sun, 14 Mar 1999 23:32:36 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) Message-ID: <199903141232.XAA17000@mbuna.arbhome.com.au> Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ I'm looking for opinions on the LDAP zope product I've been building. Right now, LDAP connections work, LDAP Methods work, but there's still a bit more to do. Right now, the following is unimplemented: In ZLDAPconn: . Anything other than simple_bind(who, passwd) for connecting to the LDAP server . meaningful doc strings In ZLDAPMethods: . Pluggable Brains . Result Caching . Limits on the number of results . Variable interpolation in the filters, and in the base DN . modify or add queries (only search is supported right now) . meaningful doc strings :) Other stuff: . UserLDAP is not finished yet (or released) - the primary issue is the storing of roles and domains. Right now this would have to be some non-standard LDAP attribute... but what should it be? It also probably needs modify and add added to ZLDAPMethods before being really useful. Things I'd like comments on: For ZLDAPconn: what other bind methods would you like to see? For ZLDAPMethods: how should add/modify/query be distinguished? Separate methods? I had planned to get variable interpolation working tonight, but decided I'd rather get an early night. Probably tomorrow evening, instead. Stuff I hope to get going in the next day or so: variable interpolation, pluggable brains. Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ It requires David Leonard's ldapmodule, from http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the ldapmodule works on other platforms (it's available in source, and also as a windows .pyd) it should work elsewhere, too. Anthony From prudek@sol.cz Sun Mar 14 14:56:37 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 15:56:37 +0100 Subject: [Zope] fsimport HowTo Message-ID: <36EBCE25.55F5743A@sol.cz> Trying to use fsimport.py module, I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /ppm/fsimport) File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/web/srvs-sol/www.sol.cz/ppm/index.htm', form: fsdir: '/web/srvs-sol/www.sol.cz/ppm/index.htm' [environ info omitted for brevity] ), {}, (None,))) TypeError: read-only buffer, class I put fsimport.py into /usr/local/zope/Extensions/ (I had to create Extensions dir), and added fsimport external method to a directory 'ppm', then I pointed my browser to http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index.htm, which probably is not the way to do it, is it? -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 15:51:48 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 10:51:48 -0500 (EST) Subject: [Zope] 'Enter query parameters' In-Reply-To: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Message-ID: On 14 Mar 1999 lstep@mail.dotcom.fr wrote: > In the HTML form, I replaced the action with > '' > > where add_message is the Z SQL method. And it adds correctly the > record to my Database, but displays 'This was not a query'. > And, well, I don't think taht's the correct method to add records, > by using the test method :-)) > > Is there anywhere an example of product adding some records to > a database ? Try something like: And then create a DTMLDocument or DTMLMethod called add_message_result like this:

    Success!

    Your message was added successfully! Thanks!

    The success message will only be shown if the query succeeds, because it is below the #call statement. Hope this helps! > Thanks, > Luc jkh From TomJenkins@zentuit.com Sun Mar 14 17:46:36 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 12:46:36 -0500 Subject: [Zope] MySQL & integer IDs In-Reply-To: <4.1.19990314090101.00aaa680@mail.atmm.nl> References: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <199903141749.MAA15778@mail.digiweb.com> > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Sun Mar 14 17:55:13 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 17:55:13 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903141755.RAA06010@cheviot.ncl.ac.uk> > I put fsimport.py into /usr/local/zope/Extensions/ (I had to create > Extensions dir), and added fsimport external method to a directory > 'ppm', then I pointed my browser to > http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index .htm, > which probably is not the way to do it, is it? > > -- > Milos Prudek The docs seem to imply that you provide fsdir with a *directory* ie fsdir=/web/srvs-sol/www.so.cz/ppm http://www.zop.org/Documentation/HowTo/FSimport for more details. tone From prudek@sol.cz Sun Mar 14 18:44:09 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 19:44:09 +0100 Subject: [Zope] fsimport HowTo References: <199903141755.RAA06010@cheviot.ncl.ac.uk> Message-ID: <36EC0379.CA7E445B@sol.cz> > The docs seem to imply that you provide fsdir with a *directory* > ie fsdir=/web/srvs-sol/www.so.cz/ppm I've tried that too. Didn't help. What could be wrong? -- Milos Prudek From ShawH@STHS.org Sun Mar 14 19:25:05 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Sun, 14 Mar 1999 13:25:05 -0600 Subject: [Zope] ZAP Message-ID: How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer. BTW, running ZopeHTTPServer multi-threaded worked well for about 15 minutes. Then suddenly certain pages wouldn't load. I stopped and restarted the server, but the pages still wouldn't load. I also noticed that if I stopped Netscape and hit reload, it would cause several new ZopeHTTPServer instances to appear, and doing so again would continue to create new instances which never seemed to dissappear. Are these locking the items they are downloading? The behavior I saw seemed consonant with it locking the item it was downloading, then failing to recognize the netscape had disconnected, and thus never removed its lock. When I restarted it single-threaded, all the pages came up without a problem. I would really like to move to Zap, but I can't afford at this point to have the URL of the page change. How can I make a Zope pcgi accessible as the root of a Zap install? Please help. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From prudek@sol.cz Sun Mar 14 19:57:08 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 20:57:08 +0100 Subject: [Zope] and it did not work, but when I use it works nicely... How do I do this with #var ? -- Milos Prudek From tony.mcdonald@ncl.ac.uk Sun Mar 14 20:11:37 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 20:11:37 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903142011.UAA19578@cheviot.ncl.ac.uk> >> The docs seem to imply that you provide fsdir with a *directory* >> ie fsdir=/web/srvs-sol/www.so.cz/ppm > > I've tried that too. Didn't help. What could be wrong? > > -- I've imported a directory using fsimport and it worked for me. I can only suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Even more clutching here - did you leave the trailing slash off the fsdir attribute? hth tone From pavlos@gaaros.msrc.sunysb.edu Sun Mar 14 20:23:25 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sun, 14 Mar 1999 15:23:25 -0500 (EST) Subject: [Zope] and it did not should do it but your second method I think is better. > work, but when I use it works nicely... How do I do > this with #var ? Pavlos From tseaver@palladion.com Sun Mar 14 20:50:29 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sun, 14 Mar 1999 14:50:29 -0600 Subject: [Zope] Structured text and lists Message-ID: <36EC2115.8511A0E2@palladion.com> Milos Prudek wrote: > Can I make ordered/unordered lists using structured text, without > doublespacing lines? When I write single spaced lines: > - one > - two > - three > it's not rendered as list. And when I write doublespaced lines, it's > rendered as doublespaced list... In lib/python/StructuredText/StructuredText.py, modify the ul() and ol() methods as follows: Change: if p: p="

    %s

    " % strip(ctag(p)) to if p: p="%s" % strip(ctag(p)) I posted a more robust diff to the zope-dev list last night, which allows replacement of the list-element format string from an ExternalMethod. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From rhww@erols.com Sun Mar 14 22:38:51 1999 From: rhww@erols.com (Robert Wentworth) Date: Sun, 14 Mar 1999 17:38:51 -0500 Subject: [Zope] Simulating static URLs, end-user session management Message-ID: <36EC3A7B.53817A8D@erols.com> Hi. I am very new to Zope, having spent the last day (with only about two hours of sleep) excitedly pouring through the documentation. I still have a lot to digest, but there are some questions I did want to ask at this stage: A) Are there reasonable ways of arranging to have the URLs for some/many Zope generated pages appear, as far as the outside world is concerned, to be URLs for static HTML pages? The issue is one of indexing by search engine robots. I anticipate building a site where most of the content will change fairly slowly, and where there would be a standard set of views of the data which would be essentially static at a logical level. I really want search engines to index those static views. (There would likely also be dynamically generated views which shouldn't be indexed.) So, I think the requirement is that there should be a way of getting to pages with a URL like: http://www.mydomain.com/here/there/everywhere.html as opposed to http://www.mydomain.com/here/there/everywhere or http://www.mydomain.com/here/there?everwhere I supect there are a number of ways of tricking Zope into accepting URLs in the first form, or perhaps into actually generating some static pages which would be served up directly by the HTTP server (though my quick check of the archives suggests this is an unresolved issue). My questions are: 1) Has anyone already done something like this? 2) What approaches could you suggest to accomplish this? 3) Is trying to arrange this likely to be a big task or a little task (as subjective as that question is)? B) On another topic entirely, I am wondering about the issue of tracking sessions of end-users. (Hmmm... maybe I should have done more searching in the archives -- this must be a common issue.) Various application servers (e.g., for Java servlets) that I've looked at provide facilities for maintaining "session" information (not in the sense of a transaction as used in Zope) about end users. Typically this would be done by setting a cookie or by incorporating a session ID into dynamically generated URLs. I haven't noticed anything about this in the Zope documentation. I'm guessing that perhaps that is because Zope is so powerful that implementing something like this yourself is regarded as trivial. But thinking about it a bit, I'm not sure what the Zope mindset would be about how to do this. Zope sends requests directly to objects. But in order to manage a session cookie (or whatnot) you need to add a certain functionality to every (or most HTTP) requests. You certainly don't want to have every object explicitly worry about this. Is there a hook that would allow all requests to pass through some sort of filter that extracts/manages session information? Or is there some other standard solution to this problem? For what it's worth, I am interested in using Zope to build my second E-commerce site. I built the first site by using Python to generate static pages from a data structure, combined with lots of JavaScript and a little Perl CGI. It worked, but I'm sure there is a better way. I was leaning towards a Java servlet plus templating package solution, until I found Zope. I've been a Python proponent for a while, but Zope is threatening to make my brain explode. Talk about paradigm shifts. C) Despite my Python and OO background, it's not easy to absorb it all at once. This does make me somewhat concerned, as my business partner, who will be a content provider, has no OO experience. I don't want to produce a system where it will be hopeless for her (possibly with help from another developer) to take over if I get hit by a bus. Thoughts...? Robert Wentworth rhww@erols.com (aka webmaster@tripplebrookfarm.com) From jeffbauer@bigfoot.com Sun Mar 14 23:03:14 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sun, 14 Mar 1999 17:03:14 -0600 Subject: [Zope] Simulating static URLs, end-user session management References: <36EC3A7B.53817A8D@erols.com> Message-ID: <36EC4032.20B3346E@rubic.com> Robert Wentworth wrote: > C) Despite my Python and OO background, > it's not easy to absorb it all at once. This does > make me somewhat concerned, as my business partner, > who will be a content provider, has no OO experience. > I don't want to produce a system where it will be > hopeless for her (possibly with help from another > developer) to take over if I get hit by a bus. > Thoughts...? Robert, I'm only going to address your last point, but it's something I feel strongly about. Let's ignore the technical issues, except to mention that only you can judge is Zope is appropriate for your situation. Fortunately, you have an excellent opportunity to discover its relative strengths and weaknesses. One of the important secondary issues (some would claim the primary) about Open Source is that it protects your business against the "What happens if Robert gets hit by a bus?" scenario. Digital Creations is in the business of providing support to organizations that use its products. Heck, in this sense it's even superior to key man insurance. Furthermore, because of DC's courageous decision to release Zope as Open Source, not only is your company protected against *your* untimely demise, but it's even secure against the day Hadar decides to transfer all the company assets into hedge funds. Best regards, Jeff Bauer Rubicon, Inc. From hadar@verticality.com Mon Mar 15 01:18:05 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sun, 14 Mar 1999 20:18:05 -0500 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC4032.20B3346E@rubic.com> Message-ID: <000101be6e81$ad7c65c0$7863efa1@hadar.bestweb.net> [excellent answer from Jeff Bauer snipped] > Furthermore, because of DC's courageous decision to > release Zope as Open Source, not only is your company > protected against *your* untimely demise, but it's even > secure against the day Hadar decides to transfer all > the company assets into hedge funds. OUCH. My plan is now unveiled to the world prematurely. That settles it. Jeff, I'm taking back your shares in the hedge fund for telling :-) From JMiller@zefer.com Mon Mar 15 04:01:30 1999 From: JMiller@zefer.com (Justin Miller) Date: Sun, 14 Mar 1999 23:01:30 -0500 Subject: [Zope] Help! How do I make the JobBoard example work? Message-ID: Hi All, As an exercise, I'm trying to get the JobBoard example code given in http://www.zope.org/Documentation/Reference/ObjectPublishingIntro to work in Zope (as opposed to Bobo/ZPublisher), and am having some difficulty. Copying the PeeWee's playhouse example in http://www.zope.org/Documentation/Reference/ExternalMethods, I placed all the JobBoard files in zope/lib/python/shared/JobBoard, made an empty __init__.py file, fixed up the dtml_loc variable, and put a JobBoard_utils.py file into zope/extensions, which reads as follows: "utility to add JobBoard objects to folders" def addJobBoard(self,id): "Add a playhouse to the current folder" if not hasattr(self,id): setattr(self,id,JobBoard("Python Jobs")) return "JobBoard added with id %s" % id else: return "id %s already in use" % id Using Zope's management GUI, I successfully added the addJobBoard function as an external method, and have successfully called it to create a JobBoard object called testJobBoard. However, when I try to view the testJobBoard object, I get an error message that reads "Sorry, the requested document does not exist." The addJobBoard function was added as an external method to the root folder, so my understanding is that the testJobBoard object should also be accessible from within the root folder (that is that its URL is "localhost:9673/testJobBoard"). What am I doing wrong here? Also, what is the proper way to debug this sort of problem? The output of the zope process merely mentions a GET request for the given URL, and the 404 response code -- no further detail is given. Thanks in advance for the help! -Justin http://www.zope.org/Documentation/Reference/ProductTutorial.tar.gz From jkhoffman@usa.net Mon Mar 15 04:30:59 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:30:59 -0500 (EST) Subject: [Zope] ZAP In-Reply-To: Message-ID: On Sun, 14 Mar 1999, Shaw, Howard wrote: > How can I configure ZAP so that all http requests go through the cgi? > Zope is the only thing running through this apache, so I don't want > everything on the site prefixed with Zope/ (or anything else, so no, I > don't just want to know how to change the prefix). This is basically > what is keeping me on ZopeHTTPServer. > > [snip] > > How can I make a Zope pcgi accessible as the root of a Zap install? > Please help. In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do. In httpd.conf, make sure you have these lines (I put them at the end): Alias / /cgi-bin/Zope.cgi # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...] You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is. I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache. Let me know if you have problems; I'll do what I can to help. > Howard C. Shaw III jkh From jkhoffman@usa.net Mon Mar 15 04:32:12 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:32:12 -0500 (EST) Subject: [Zope] and it did not > work, but when I use it works nicely... How do I do > this with #var ? I think you need . I haven't tested this, so I'm not sure it works, but I am 99% sure this is what you're going for. > Milos Prudek jkh From rhww@erols.com Mon Mar 15 05:20:02 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 00:20:02 -0500 Subject: [Zope] mailing list archive download in bulk? Message-ID: <36EC9882.79908EE8@erols.com> Is there any way of downloading large blocks of the Zope mailing list archive in bulk, rather than wading through one message at a time over the web (which is rather painful, especially since I haven't discovered how to get a listing of all the discussion threads so I can be more systematic)? From chsrinfo@guetali.fr Mon Mar 15 05:43:45 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 15 Mar 1999 09:43:45 +0400 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <00e701be6eb0$962a3300$147800a0@pc-pi0> >Are you confused by the subtleties of DTML? Want the skinny on advanced >DTML tricks and gotchas? Check out my advanced DTML HowTo: > >http://www.zope.org/Documentation/HowTo/DTML > Thanks You say "one shouldn't have to use instead of ." However, i find it useful to write: instead of: Hope that helps... Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Mon Mar 15 08:04:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:04:33 +0100 Subject: [Zope] and it did not >work, but when I use it works nicely... How do I do >this with #var ? > is the best way to go. It'll insert a IMG tag with an absolute URL, and if it knows the image width and height, these will be included in the image tag. Make sure you use the quotes! img.name means: the attribute 'name' of the object called 'img'. You can specify the image width and height by hand in the images' property screen, but if you uploaded a PNG or GIF image, Zope will deduce the width and height from the image itself. The next Zope release will also support JPEG image size detection. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:25:50 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:25:50 +0100 Subject: [Zope] . > > I haven't tested this, so I'm not sure it works, but I am 99% sure this is It doesn't work. > what you're going for. Yes, that's what I want. Maybe what I'm trying to do is against object-oriented concept? I can see that images should be kept with the DTML page that calls them. I just need images to be accessible by a group (role) of "image managers", but the code that holds it to together should be accessible to an Admin role only. -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:46:56 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:46:56 +0100 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC3A7B.53817A8D@erols.com> Message-ID: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> At 23:38 14/03/99 , Robert Wentworth wrote: >A) Are there reasonable ways of arranging to have > the URLs for some/many Zope generated pages appear, as > far as the outside world is concerned, to be URLs > for static HTML pages? > > The issue is one of indexing by search engine robots. > I anticipate building a site where most of the > content will change fairly slowly, and where there > would be a standard set of views of the data which > would be essentially static at a logical level. I > really want search engines to index those static > views. (There would likely also be dynamically > generated views which shouldn't be indexed.) > > So, I think the requirement is that there should be a > way of getting to pages with a URL like: > > http://www.mydomain.com/here/there/everywhere.html > > as opposed to > > http://www.mydomain.com/here/there/everywhere > > or > > http://www.mydomain.com/here/there?everwhere > There is little reason to avoid naming your objects with the extension built into the ID, like everywhere.html. You can then simply refer to the object using that ID, which to a not so smart indexing bot will look like an HTML file (but it should *really* look at the MIME-type...). The only problem would be referencing the object, as you have to take precautions to make sure Python doesn't try to reference the attribute named 'html' on the object 'everywhere'. So, as long as you name your DTML Documents that are to be indexed with the .html extension, everything should go fine. >B) On another topic entirely, I am wondering about the issue >of tracking sessions of end-users. (Hmmm... maybe I should >have done more searching in the archives -- this must be >a common issue.) Various application servers (e.g., for >Java servlets) that I've looked at provide facilities >for maintaining "session" information (not in the sense >of a transaction as used in Zope) about end users. Typically >this would be done by setting a cookie or by incorporating >a session ID into dynamically generated URLs. I haven't >noticed anything about this in the Zope documentation. >I'm guessing that perhaps that is because Zope is so >powerful that implementing something like this yourself >is regarded as trivial. But thinking about it a bit, >I'm not sure what the Zope mindset would be about how >to do this. Zope sends requests directly to objects. >But in order to manage a session cookie (or whatnot) >you need to add a certain functionality to every (or >most HTTP) requests. You certainly don't want to have >every object explicitly worry about this. Is there >a hook that would allow all requests to >pass through some sort of filter that extracts/manages >session information? Or is there some other standard >solution to this problem? > No, Zope has no Session tracking facilities at this moment. DC is however working on this. At the moment you will find a 'Session' object in your Zope distribution, but this is a different concept altogether, and will be renamed to 'Version' when client session objects appear. >C) Despite my Python and OO background, >it's not easy to absorb it all at once. This does >make me somewhat concerned, as my business partner, >who will be a content provider, has no OO experience. >I don't want to produce a system where it will be >hopeless for her (possibly with help from another >developer) to take over if I get hit by a bus. >Thoughts...? DC can be hired to help out... and as Zope is now Open Source, a growing number of people can help out. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:53:46 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:53:46 +0100 Subject: [Zope] should do it but your second method I think is > better. Yes, this works. Quotes helped. Now, how can I add border=0 ? -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:55:27 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:55:27 +0100 Subject: [Zope] mailing list archive download in bulk? In-Reply-To: <36EC9882.79908EE8@erols.com> Message-ID: <4.1.19990315095409.00be5640@lisp.atmm.nl> At 06:20 15/03/99 , Robert Wentworth wrote: >Is there any way of downloading large blocks of the >Zope mailing list archive in bulk, rather than >wading through one message at a time over the >web (which is rather painful, especially since >I haven't discovered how to get a listing of >all the discussion threads so I can be more >systematic)? > Download the archive at http://www.zope.org/pipermail/zope/ You can get overviews by thread, date, subject and author, and DL the whole list in Gzip'd files. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:39:19 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:39:19 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: <4.1.19990315103629.00c168a0@lisp.atmm.nl> At 06:43 15/03/99 , Service Informatique CHSR wrote: >You say "one shouldn't have to use instead of >." >However, i find it useful to write: > > > > > >instead of: > > > > > How about or So we can confuse each other even more =). -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:50:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:50:45 +0100 Subject: [Zope] should do it but your second method I think is >> better. > >Yes, this works. Quotes helped. > >Now, how can I add border=0 ? > Yep, you got use there.... calling the Image object doesn't generate extra information like border=0. DC is working on a solution to that, at least, I think they said so. For now you will have to write out the IMG tag yourself: " height="" border=0> I assumed that the img Folder object is a direct subobject of the Zope root object. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 10:18:41 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 11:18:41 +0100 Subject: [Zope] /img/name" width="" Looks terrible :-) I think I rather use for the time being. -- Milos Prudek From julian@zereau.net Mon Mar 15 12:01:09 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:01:09 -0000 (GMT) Subject: [Zope] incrementally improving a product? Message-ID: If I build a product, deploy instances of it, and continue editing and reloading the product, will its instances be improved or will they be frozen at the state they were in when created? Also, is there any problem with the instances failing to work with a newer product version? --- Julian Morrison Programmer (Zereau Ltd) From julian@zereau.net Mon Mar 15 12:16:06 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:16:06 -0000 (GMT) Subject: [Zope] . okay next qustion: I have a image under a folder called "images". should work - except that the image filename contains the "." character (eg: "foo.gif") and this gets confused with the dot notation of the object (it tries to find images/foo/gif and chokes with a traceback) So how do I get round this one? --- Julian Morrison Programmer (Zereau Ltd) From TomJenkins@zentuit.com Mon Mar 15 13:36:28 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 08:36:28 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903151339.IAA24178@mail.digiweb.com> (I'm resending this as I didn't see it appear on the list the first time) > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Mon Mar 15 13:55:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 13:55:02 +0000 Subject: [Zope] Searching a Zope site (in the traditional way) Message-ID: How do you do this?, ie to get a list of files/objects that contain the search term, laid out in a way that the external user would recognise. I don't mean the 'find' tag in the manage screens, by the way... Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 15 14:54:16 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 14:54:16 +0000 Subject: [Zope] File upload product anywhere? Message-ID: Hi all, Has anyone written a file upload 'product' that they'd like to share? My own requirements are that; the files should (optionally) go to a file system, I need to be able to change the interface for the system, the users should be authenticated from an external database, the files (if held in a file system) should retain their associations with folders (for permissions and access), and I'd like it in blueberry please. What I'm basically after is the best of both worlds - Zope permissions/acquisition etc. with the 'safety net' of a file system for large files (and possible batch uploading). My problem (or one of them) is that there's no way that I'm up to speed enough in Zope/Python to start on this...I have a system doing the file upload working well in PHP3, but that (obviously) doesn't have the permissions/acquisition power of Zope. I guess I could do redirects to my PHP3 scripts from within Zope however, but it's hardly (ahem) 'elegant'. any thoughts gratefully accepted. Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From mj@antraciet.nl Mon Mar 15 16:23:03 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 17:23:03 +0100 Subject: [Zope] Searching a Zope site (in the traditional way) In-Reply-To: Message-ID: <4.1.19990315152120.00bb8520@lisp.atmm.nl> At 14:55 15/03/99 , Tony McDonald wrote: >How do you do this?, ie to get a list of files/objects that contain >the search term, laid out in a way that the external user would >recognise. > >I don't mean the 'find' tag in the manage screens, by the way... > The find management screen does give helpful hints. If you want to implement this kind of searching, you'll have to use the same techniques. These are however largely undocumented. The file lib/python/OFS/findResult.dtml should give you a lot of hints on how to implement a search command. It comes down to calling PrincipiaFind on a Folder with the right arguments: obj, obj_ids, obj_metatypes, obj_searchterm, obj_expr, obj_mtime, obj_mspec, obj_permission, obj_roles, search_sub, REQUEST, result, pre where * obj -- base folder to start at * obj_ids -- (optional) list of object ID's to search * obj_metatypes -- (optional) list of meta types to search for (if the string 'all' is in this list, all objects, whatever their meta type will be included in the results). * obj_searchterm -- (optional) literal text to search for in the *source* of DTML Documents and DTML Methods. * obj_expr -- (optional) DTML expression (as would be used in the expr attribute of for example the var tag). If this expression returns true within the context of an object, the object is included in the search results. You could use this for testing on certain properties, like 'foo=bar'. * obj_mtime -- (optional) DateTime object or string that can be converted to a DateTime object, specifying a modification time to compare objects against. Will on default return objects that have been modified since obj_mtime. * obj_mspec -- (optional) When used with obj_mspec, and set to '<', PrincipiaFind will only return objects which have been last modified before the date and time specified by obj_mtime. * obj_permission -- (optional) To be used together with obj_roles. Check if the roles specified by obj_roles have the obj_permission permission. Only these objects are included in the results. * obj_roles -- (optional) List of roles to check for obj_permission access. See obj_permission. * search_sub -- (optional) if true, search subobjects recursively. * REQUEST -- (optional) REQUEST object, used to make sure that AUTHENTICATED_USER is available for obj_expr expressions. * result -- a list of objects to be included in the returned results. Used by the PrincipiaFind method when recursively searching subobjects. Generally of no use to us humble DTML programmers. * pre -- prefix the IDs in the returned result list with pre and a slash. So, when called with pre='foo', and bar is the only object found, PrincipiaFind will return the list of tuples: [('foo/bar', foo)]. This argument is used when recursively searching subobjects, where pre is the relative URL of the object searched. Generally of no use to us humble DTML programmers. The method returns a list of tuples, where the first element of every tuple is the relative URL of the object found (relative to the starting point), and the second element is the object itself. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 16:38:22 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:38:22 +0100 Subject: [Zope] should work - except that the image filename > contains the "." character (eg: "foo.gif") and this gets confused Object name can be different from filename. Thus you name your foo.gif file just Foo, and that's it. -- Milos Prudek From prudek@sol.cz Mon Mar 15 16:40:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:40:40 +0100 Subject: [Zope] database upload Message-ID: <36ED3808.8DDF4B8B@sol.cz> I have MySQL database, and I want to upload my gif files into it through Zope, just like when creating Image component. How can I achieve this? -- Milos Prudek From pje@telecommunity.com Mon Mar 15 16:54:10 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 15 Mar 1999 11:54:10 -0500 Subject: [Zope] should work - except that the image filename >> contains the "." character (eg: "foo.gif") and this gets confused > > >Object name can be different from filename. Thus you name your foo.gif >file just Foo, and that's it. > Or, if you absolutely must have '.' in the filename, try: From julian@zereau.net Mon Mar 15 17:22:42 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 17:22:42 -0000 (GMT) Subject: [Zope] "magic buttons" in forms Message-ID: Two questions about "magic" behavior of form submit buttons: 1)The "cancel" button system, can it be made to work with a button with another value apart from "cancel"? (such as "back" or "home") 2)The system, please can someone explain this, as it is the only way I have yet figured out to do a single form with many destination pages. Also, does this behave differently in DTML methods and DTML documents? --- Julian Morrison Programmer (Zereau Ltd) From M.Faassen@vet.uu.nl Mon Mar 15 17:26:19 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 15 Mar 1999 18:26:19 +0100 Subject: [Zope] Newbie dtml question ( very simple ) References: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Message-ID: <36ED42BB.79076C57@pop.vet.uu.nl> "Dr. Armin Tschammer" wrote: > XY.py : > > d = {} > d['x1']=1 > d['x2']=2 > X = DocumentTemplate.HTMLFile('X3.dtml') > string = X(d) Hmm. Have you tried this, instead? class Foo: pass myfoo = Foo() foo.x1 = 1 foo.x2 = 2 X = DocumentTemplate.HTMLFile('X3.dtml') output = X(foo) Regards, Martijn From amos@aracnet.com Mon Mar 15 17:32:41 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:32:41 -0800 Subject: [Zope] incrementally improving a product? In-Reply-To: Message-ID: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> At 12:01 PM 3/15/99 -0000, julian@zereau.net wrote: >If I build a product, deploy instances of it, and continue editing and >reloading the product, will its instances be improved or will they be frozen at >the state they were in when created? Zope's object database uses Python's pickle facility, so in general instances only store their own data, and use whatever version of the class is available. Classes are not stored in the database. This means that when you change your class, your instances will be updated. >Also, is there any problem with the instances failing to work with a newer >product version? Yes. And this is not a Zope-specific issue, or even a Python-specific issue. Anytime you have long-lived instances and change the class, you may run into problems. Python comes with a couple hooks to help you out. You should look into __getstate__ and __setstate__ which are documented in the Python pickle documentation. Probably the most common type of problem occurs when your new class definition assumes a new attribute which the old instances don't have. An easy way to solve this is to provide a class attribute which gives a reasonable default for this attribute. For example: class MyClassV1: 'Original class' def __init__(self): self.color='red' class MyClassV2: 'Updated class' def __init__(self): self.color='red' self.texture='bumpy' def describe(self): return 'I am %s and %s' % (self.color, self.texture) Notice that instances created with MyClassV1 will not have a 'texture' attribute, so that when the class is updated, old instances will break when you call the new 'describe' method. A simple fix is to provide a default class attribute. For example: class MyClassV2: 'Backward compatible updated class' texture='nondescript' ... Now old instances won't break in the 'describe' method. Another approach is to test for the attribute and update the instance when you're going to use it. For example: def describe(self): if self.texture=='nondescript': self.get_texture() ... If 'describe' is the only place where you use 'texture' then you wouldn't even need to provide a class attribute, and could simply test for the absence of the attribute. Finally you might include version numbers in your instances and test for these, but this seems like overkill. I would suggest sticking to default class attribute solution for most cases. Hope this helps, and good luck. -Amos From amos@aracnet.com Mon Mar 15 17:50:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:50:19 -0800 Subject: [Zope] . > >okay next qustion: I have a image under a folder called "images". > should work - except that the image filename >contains the "." character (eg: "foo.gif") and this gets confused with the dot >notation of the object (it tries to find images/foo/gif and chokes with a >traceback) In general, when you have trouble spelling an object's name in a variable expression because its name is not a legal Python name (e.g. 'sequence-item' or 'foo.gif') then you should use _[] or _.getitem However in your case you can simply get the sub-object with a plain old getattr: Another possibility is to use the with tag: Since these are so ugly, you might consider the simpler manual method of generating the img tag: or else you might consider *not* having a images directory, and keeping your images in the Folders where they're used. Then you can refer to the images directly: And because of acquisition, foo.gif is accessible to all sub-Folders of the Folder it is located in, in the same way. -Amos From doug@sonosphere.com Mon Mar 15 06:59:03 1999 From: doug@sonosphere.com (Doug Wyatt) Date: Mon, 15 Mar 1999 01:59:03 -0500 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: At 9:43 +0400 3/15/99, Service Informatique CHSR wrote: > You say "one shouldn't have to use instead of > ." > However, i find it useful to write: > > > > > > instead of: > > > > I seem to remember that this works, too: Doug -- Doug Wyatt doug@sonosphere.com Sonosphere (electric/improv music) http://www.sonosphere.com/ From prudek@sol.cz Mon Mar 15 18:49:21 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 19:49:21 +0100 Subject: [Zope] fsimport HowTo References: <199903142011.UAA19578@cheviot.ncl.ac.uk> Message-ID: <36ED5631.614CA2A6@sol.cz> > > I've tried that too. Didn't help. What could be wrong? > suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Well, since that's a symlink anyway, I tried to suck directly from /home/pes/public_html. Still nothing. I even changed that dir to be world writable. > Even more clutching here - did you leave the trailing slash off the fsdir > attribute? I tried both. I'm sure I must be crazy. I summarize what I did: 1. downloaded fsimport.py 2. mkdir /usr/local/zope/Extensions 3. chown nobody:www Extensions 4. chmod /usr/local/zope/Extensions to be rwxr-xr-x 4. copied fsimport.py to /usr/local/zope/Extensions 5. chown nobody:www fsimport.py 6. chmod fsimport.py to be rw-r--r-- 7. created External method fsimport inside of ppm 8. put "fsimport" into all 4 fields (Id, Title, Function name, Python module name) 9. http://www.sol.cz/Zope/ppm/fsimport?fsdir=/home/pes/public_html 10. error "TypeError: read-only buffer, class" I must have missed something. -- Milos Prudek From vit@lipetsk.ru Mon Mar 15 19:05:55 1999 From: vit@lipetsk.ru (Victor Gamov) Date: Mon, 15 Mar 1999 22:05:55 +0300 Subject: [Zope] Bugs in pcgi-wrapper? Message-ID: <36ED5A13.9A0210B9@lipetsk.ru> Hi! Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with Apache-1.3.4 box. After succesfully installation I try to connect to cgi-bin/Zope.cgi/manage and got "file does not exist" error message. I look in source code and found that in pcgiConnect() function only socket() & connect() are present. But where is bind()?. When I fix this problem I found new error message "unable to connect". In function pcgiStartProc I found that sigemptyset(&zmask) we use the foollowing: while (sigflag == 0) sigsuspend(&zmask); So, after first iteration we have empty signal set and kill(pid, SIGUSR1) from father will be terminate our process. If I wrong, please correct me. -- CU, Victor Gamov From rhww@erols.com Mon Mar 15 19:14:14 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 14:14:14 -0500 Subject: [Zope] Simulating static URLs, end-user session management References: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> Message-ID: <36ED5C06.F73DA0CD@erols.com> Martijn Pieters wrote: > > At 23:38 14/03/99 , Robert Wentworth wrote: > >A) Are there reasonable ways of arranging to have > > the URLs for some/many Zope generated pages appear, as > > far as the outside world is concerned, to be URLs > > for static HTML pages? ... > There is little reason to avoid naming your objects with the extension > built into the ID, like everywhere.html. You can then simply refer to the > object using that ID, which to a not so smart indexing bot will look like > an HTML file (but it should *really* look at the MIME-type...). Perhaps I'm failing to understand something. Looking at pages on zope.org and some obviously dynamic pages on other sites, they all return a MIME-type of "text/html". Which I think means that a smart indexing bot should *not* simply look at the MIME-type. As I understand it, most search engine robots try to exclude dynamic content because of the justifiable fear that once they start exploring a web of dynamic content they could get lost in an infinite or near-infinite search space. I've read that as a result of this, search engine robots do things like refuse to index any URL with "cgi-bin" in the path, or which do not end in an approved recognized file extension. Do you have a different perception of search engine robot policies/strategies? > The only > problem would be referencing the object, as you have to take precautions to > make sure Python doesn't try to reference the attribute named 'html' on the > object 'everywhere'. Guess I'm going to need to experiment. I'm a little fuzzy on how this would work (but then I'm a little fuzzy in general at this point). > So, as long as you name your DTML Documents that are to be indexed with the > .html extension, everything should go fine. > > >B) On another topic entirely, I am wondering about the issue > >of tracking sessions of end-users. ... > No, Zope has no Session tracking facilities at this moment. DC is however > working on this. At the moment you will find a 'Session' object in your > Zope distribution, but this is a different concept altogether, and will be > renamed to 'Version' when client session objects appear. Are there any projections available re the timing of this? I'm wondering about how much effort to spend on ad-hoc interrim measures. FWIW, in my mind an ideal client session scheme would allow multiple strategies. In most cases using cookies works out for the best, but I would like to be able to accommodate anti-cookie zealots as necessary. On the other hand, I don't want to clutter URLs with session-id's if I don't need to. (I suppose having authenticated users is yet another strategy, and one that Zope currently seems oriented towards. Fine if users really want or need to get into your site or need to perform authorized operations, but not so good if you're trying to entice them in.) Robert Wentworth From rhww@erols.com Mon Mar 15 21:15:27 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 16:15:27 -0500 Subject: [Zope] Newbie: trouble getting started under Windows 98 Message-ID: <36ED786F.60F36D39@erols.com> While I expect to eventually be working under Unix (once I can convince my hosting provider to install Zope), at present I'm trying to use Zope under Windows 98. The problem is: it's not working. I'm using the Zope HTTP server, and I can contact the management system just fine, a prowl around looking at everything. But if I try to add an object (whether it be a DTML Document, a Folder, or an "Item" from the sample_product package (which I installed), what happens is: I am allowed to fill out the form where you enter object creation fields (ID, title, etc.), but when I send that form the HTTP server never returns. Any clues as to how to fix this, or debug it, or get any idea as to what is happening? Robert Wentworth From prudek@sol.cz Mon Mar 15 21:22:49 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:22:49 +0100 Subject: [Zope] Zope modifies HTML order of tags? Message-ID: <36ED7A29.89A174FC@sol.cz> It seems to me that Zope is rendering my HTML tag attributs in different order than in the source. For instance I put into property named tabstart. Looking into source produced by Zope, I found
    Why is Zope doing this? Maybe there's good reason, but I'd like to know, because too smart software is sometimes more burden than a help. Also some attributes are omitted in the rendering process. Property "width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up without vspace statement. -- Milos Prudek From prudek@sol.cz Mon Mar 15 21:15:45 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:15:45 +0100 Subject: [Zope] Feature request - local file browsing Message-ID: <36ED7881.EB1C4F7B@sol.cz> Would it be possible to modify expected file type when I click on browse and want to add local image type? Browser always presents .htm extension, so that I need to change it to *. I run browser from windows, Zope itself is on linux box. -- Milos Prudek From gwachob@findlaw.com Mon Mar 15 23:20:20 1999 From: gwachob@findlaw.com (Gabe Wachob) Date: Mon, 15 Mar 1999 15:20:20 -0800 Subject: [Zope] DTML indirection question again Message-ID: <36ED95B4.4EE4B7DD@findlaw.com> OK, here's the situation. I have a "login" page that I want to list the contents of different directories depending on the value of the AUTHENTICATED_USER Each user has a folder under the folder 'user'. I would like to be able to do (simplified):
    However, I get a TypeError on the #with line (and even if I put in the AUTHENTICATED_USER.id instead of just AUTHENTICATED_USER). What am I doing wrong here? I've tried a lot of different combinations of #with and _.getitem and such.. THANKS -Gabe From andreww@netscape.com Mon Mar 15 23:31:39 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Mon, 15 Mar 1999 15:31:39 -0800 Subject: [Zope] My own zope site... Message-ID: <36ED9827.7A8EB410@netscape.com> I've started a site that will show the results of my work in getting Dreamweaver and Zope to talk to each other - and I would appreciate a link from the zope.org site if there is a section for 3rd party developer links... I will post here (at the web site) ideas for improving the UI for the HTML interface for Zope as well. http://alaji.home.mindspring.com/zopeweaver/ -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From jeffbauer@bigfoot.com Tue Mar 16 02:08:36 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 15 Mar 1999 20:08:36 -0600 Subject: [Zope] Bugs in pcgi-wrapper? References: <36ED5A13.9A0210B9@lipetsk.ru> Message-ID: <36EDBD24.AAFDE1FC@rubic.com> Victor Gamov wrote: > Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with > Apache-1.3.4 box. After succesfully installation I try to connect to > cgi-bin/Zope.cgi/manage and got "file does not exist" error message. > I look in source code and found that in pcgiConnect() function only > socket() & connect() are present. But where is bind()?. When I fix > this problem I found new error message "unable to connect". Victor, I think your problem lies elsewhere. The client does not have to bind a local address before calling connect. The connect() function automatically assigns an unused port to the socket. You will probably find the problem is much more obvious than a low-level socket bug. Check your Zope.cgi paths, permissions, and Apache configuration. Good luck. Jeff Bauer Rubicon, Inc. From rhww@erols.com Tue Mar 16 02:55:13 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 21:55:13 -0500 Subject: [Zope] Re: Newbie: trouble getting started under Windows 98 References: <36ED786F.60F36D39@erols.com> Message-ID: <36EDC811.B13562F9@erols.com> FWIW, after messing around for several hours trying to diagnose this, the problem mysteriously went away. (I uninstalled another version of Python and its extensions, reinstalled them, ran Zope inside Pdb -- and things started working. Got out of Pdb, restarted, and things continued to work. No clue as to why things were consistently hanging before.) > While I expect to eventually be working under Unix > (once I can convince my hosting provider to install Zope), > at present I'm trying to use Zope under Windows 98. > > The problem is: it's not working. > > I'm using the Zope HTTP server, and I can contact the > management system just fine, a prowl around looking > at everything. But if I try to add an object (whether > it be a DTML Document, a Folder, or an "Item" from > the sample_product package (which I installed), what > happens is: > > I am allowed to fill out the form where > you enter object creation fields (ID, title, etc.), > but when I send that form the HTTP server never > returns. > > Any clues as to how to fix this, or debug it, or get any > idea as to what is happening? From TomJenkins@zentuit.com Tue Mar 16 03:49:52 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 22:49:52 -0500 Subject: [Zope] setting variable Message-ID: <199903160352.WAA04182@mail.digiweb.com> Hello folks, I'm stuck on a problem which I hope some one could help me with. I have a database entry form where the user will enter in information for two related tables. When she submits the form, I want to first post one tables information, then call another sql method to get the id generated for that post, then take that value and add it to the REQUEST object and pass it to the second sql insert for inserting to the second table (along with some other parts of the REQUEST object from the form). I'm planning on using MySQL that has a special select: select LAST_INSERT_ID() to return the last auto-generated id value to get the id. I know you can add a variable to the REQUEST object via but how to I get the value from the sql method? The only way I know now is via #var tags but you can't nest the DTML. I hope this makes sense... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 04:17:44 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 23:17:44 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <199903160420.XAA01117@mail.digiweb.com> To followup my last post, I'm getting an exception when trying to use MySQL's "select LAST_INSERT_ID()" function: Error, exceptions.KeyError: unhandled SQL used: select LAST_INSERT_ID() Anybody have any ideas? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From chsrinfo@guetali.fr Tue Mar 16 06:09:10 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 16 Mar 1999 10:09:10 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <000701be6f75$9a8de5c0$147800a0@pc-pi0> Nobody responded. So it went to the Collector. I don't even know if this is a bug. >Also, before I submit this to the Collector, is it normal that the "use >mailhost services" >doesn't appear in the security tab of the folders? Each product has its >permissions >that are listed, but nothing with the mailhost object. >I had to change it directly in the mailhost object. >If it's normal, it means that i can't give global permission for mailhost >objects??? >What confuse me, however, is that the mailhost object claims to "acquire" >permission >settings from its parents, but nowhere in its parents i can define the >permissions. Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Tue Mar 16 09:51:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:51:11 +0100 Subject: [Zope] Feature request - local file browsing In-Reply-To: <36ED7881.EB1C4F7B@sol.cz> Message-ID: <4.1.19990316104251.00bbca50@lisp.atmm.nl> At 22:15 15/03/99 , Milos Prudek wrote: >Would it be possible to modify expected file type when I click on browse >and want to add local image type? Browser always presents .htm >extension, so that I need to change it to *. I run browser from windows, >Zope itself is on linux box. This is something Zope can´t influence, it´s part of the way your browser works. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Tue Mar 16 09:53:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:53:48 +0100 Subject: [Zope] Zope modifies HTML order of tags? In-Reply-To: <36ED7A29.89A174FC@sol.cz> Message-ID: <4.1.19990316105207.00bbe560@lisp.atmm.nl> At 22:22 15/03/99 , Milos Prudek wrote: >It seems to me that Zope is rendering my HTML tag attributs in different >order than in the source. For instance I put >
    >into property named tabstart. >Looking into source produced by Zope, I found >
    >Why is Zope doing this? Maybe there's good reason, but I'd like to know, >because too smart software is sometimes more burden than a help. > >Also some attributes are omitted in the rendering process. Property >"width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up >without vspace statement. Could you supply us with some DTML examples of this behaviour? It´s not something I´ve seen before. Is there any chance your HTML editor is doing this? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Tue Mar 16 10:36:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:36:43 +0100 Subject: [Zope] incrementally improving a product? References: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> Message-ID: <36EE343B.B2953170@pop.vet.uu.nl> Amos Latteier wrote: [snip Amos' answers] Hey, this was a very good answer, so I added this to the FAQ (new updates will be on the zdp.zope.org site later today). Thanks Amos! Regards, Martijn From M.Faassen@vet.uu.nl Tue Mar 16 10:57:38 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:57:38 +0100 Subject: [Zope] sequence of numbers References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <36EE3922.FD588AE4@pop.vet.uu.nl> Eric Kidd wrote: > > On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > > This may be a newbie question, but I've loked thru the doc and didn't > > spot any obvious way to do this, short of an External Method. > > I didn't find any other way, either. But here's an External Method you can > use. [snip external method] I'm wondering; is there a reason why 'range' isn't accessible from DTML in the '_' namespace? Is the reason as you indicated in your external method, i.e. that you don't want people to generate vast ranges from DTML? Just curious, Martijn From mj@antraciet.nl Tue Mar 16 11:58:15 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 12:58:15 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <36EE3922.FD588AE4@pop.vet.uu.nl> References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <4.1.19990316121205.00bcc2a0@lisp.atmm.nl> At 11:57 16/03/99 , Martijn Faassen wrote: >Eric Kidd wrote: >> >> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: >> > This may be a newbie question, but I've loked thru the doc and didn't >> > spot any obvious way to do this, short of an External Method. >> >> I didn't find any other way, either. But here's an External Method you can >> use. > >[snip external method] > >I'm wondering; is there a reason why 'range' isn't accessible from DTML >in the '_' namespace? Is the reason as you indicated in your external >method, i.e. that you don't want people to generate vast ranges from >DTML? > >Just curious, The reason if of course merory flooding attacks. A range that asks for a list of 3 billion items is a wee bit unpolite to the machine. A way of checking would be: RANGELIMIT = 1000 def SafeRange(iFirst, *args): if not len(args): iStart, iEnd, iStep = 0, iFirst, 1 elif len(args) == 1: iStart, iEnd, iStep = iFirst, args[0], 1 elif len(args) == 2: iStart, iEnd, iStep = iFirst, args[0], args[1] else: raise AttributeError, 'SafeRange() requires 1-3 int arguments' if iStep == 0: raise ValueError, 'zero step for SafeRange()' iLen = int((iEnd - iStart) / iStep) if iLen < 0: iLen = 0 if iLen >= RANGELIMIT: raise ValueError, 'SafeRange() too large' return range(iStart, iEnd, iStep) Maybe this should be part of the _ object. Can someone turn this into a patch and supply this to DC? I´m a bit short of time right now. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Tue Mar 16 13:07:30 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Tue, 16 Mar 1999 08:07:30 -0500 Subject: [Zope] IRC channel Message-ID: <36EE5791.1B7AD457@GestaltTechnology.com> Dear Zopists, This is another post to make you aware of a new source of information for Zope. You can access #zope on the EFNet servers. Their is an infobot on this channel that could be a great resouce, but it needs to learn a lot about zope. If you pay a visit to the channel, query the bot by typing: /msg wizkid1 help. This will provide more information on the bot. Cheers, Fredy Villa Gestalt Technology FVilla@GestaltTechnology.com From phil@media-1.ml.uwcm.ac.uk Tue Mar 16 13:22:45 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 16 Mar 1999 13:22:45 -0000 Subject: [Zope] IRC channel Message-ID: <017e01be6fb0$147c24c0$5c773fc1@media1> I for one think this is a brilliant idea! I visit the PHP3 channel on EFNET frequently, a real sense of community and friendship can be built. I really do hope this comes off, so let's make a go of this eh guys 8^) See you there. Phil ----- Original Message ----- From: Fredy Villa To: Sent: Tuesday, March 16, 1999 1:07 PM Subject: [Zope] IRC channel >Dear Zopists, > > This is another post to make you aware of a new source of >information for Zope. You can access #zope on the EFNet servers. Their >is an infobot on this channel that could be a great resouce, but it >needs to learn a lot about zope. If you pay a visit to the channel, >query the bot by typing: /msg wizkid1 help. This will provide more >information on the bot. > >Cheers, > >Fredy Villa >Gestalt Technology >FVilla@GestaltTechnology.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From tschruefer@mail.howard.k12.md.us Tue Mar 16 15:10:54 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Tue, 16 Mar 1999 10:10:54 -0500 Subject: [Zope] Newbie install Q? and the Zope web site Message-ID: <199903161508.KAA22234@mail.howard.k12.md.us> Ok, two questions 1. What happened to the Zope web site, it seems to have gone down yesterday and still is not operating ? 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), but the install instructions do not seem complete. I retrieved the INSTALL.TXT file from the doc directory and started to follow them, but their doesn't seem to be any 'access' file in this distribution. What's more some of the command line options come up as invalid, like -c,which the install program quit on saying it was a invalid option. The -c option doesn't even show up in the --help for the installer. I was hoping there would be some additional install info on the web site, but that's not working. Tom From rob.page@digicool.com Tue Mar 16 15:20:45 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:20:45 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C1@GANDALF> > To followup my last post, I'm getting an exception when > trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() Try: select LAST_INSERT_ID() as fred then grab If this works then I know what the problem is! :^) If you use the database's command line tool and run this SQL statement I bet it returns a single value (i.e., it doesn't return a table). The DA wants to munge and chew on rows in tables. If think that if you use the select LAST_INSERT_ID() as fred you'll get a one-row, one-column table -- this is what Zope wants. --Rob From kid@ans.net Tue Mar 16 15:24:32 1999 From: kid@ans.net (Kevin Dangoor) Date: Tue, 16 Mar 1999 10:24:32 -0500 Subject: [Zope] Newbie install Q? and the Zope web site In-Reply-To: <199903161508.KAA22234@mail.howard.k12.md.us>; from Thomas Schruefer on Tue, Mar 16, 1999 at 10:10:54AM -0500 References: <199903161508.KAA22234@mail.howard.k12.md.us> Message-ID: <19990316102432.D13267@throwingcopper.ans.net> On Tue, Mar 16, 1999 at 10:10:54AM -0500, Thomas Schruefer wrote: ,----- | | Ok, two questions | | 1. What happened to the Zope web site, it seems to have gone down | yesterday and still is not operating ? It works from where I'm at. You may want to try traceroute www.zope.org (or tracert www.zope.org from Windows) to see where things are getting hung up. | | 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), | but the install instructions do not seem complete. I retrieved the | INSTALL.TXT file from the doc directory and started to follow them, but | their doesn't seem to be any 'access' file in this distribution. What's | more some of the command line options come up as invalid, like -c,which | the install program quit on saying it was a invalid option. The -c | option doesn't even show up in the --help for the installer. The access file just needs one line of the format "username:password" and should be in your zope install directory. Since I was using PCGI with Zope, all I did was just untar it, make it and then copy Zope.cgi into my web area... Kevin `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From rob.page@digicool.com Tue Mar 16 15:57:04 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:57:04 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C3@GANDALF> Tom: [Reading from my support script..] This is where I say, "Hmm, I'm no expert on MySQL...." ;^) Anyone else have any ideas? This, um, worked on Sybase!? --Rob Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when > > > trying to use > > > MySQL's "select LAST_INSERT_ID()" function: > > > > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() Rob Page replied: > >Try: > > > > select LAST_INSERT_ID() as fred > > > > then grab > > > > If this works then I know what the problem is! :^) > > > > If you use the database's command line tool and run this > SQL statement I > > bet it returns a single value (i.e., it doesn't return a > table). The DA > > wants to munge and chew on rows in tables. If think that > if you use the > > select LAST_INSERT_ID() as fred you'll get a one-row, > one-column table > > -- this is what Zope wants. Then Tom wrote back: > Hi Rob, > Made the change and tested but still got the exception. > I ran it at the command line (for mysql) and it returns a > "table" with one > row and field From jbb@spyderlab.com Tue Mar 16 17:01:32 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 12:01:32 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com> Message-ID: On Mon, 15 Mar 1999, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Try: select LAST_INSERT_ID()+0 to cast it to an int... Also, check your declaration for LAST_INSERT_ID().. if the above doesn't work you'll need to either try the patch for ZMySQLDA that was posted a week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to cast it to a string and then use a nifty Python fn. to convert it to an integer number. It seems the MySQL driver has problems with some datatypes. There was a patch posted befure.. I'm curious to know if it'll fix this problem... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From M.Faassen@vet.uu.nl Tue Mar 16 17:59:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 18:59:44 +0100 Subject: [Zope] ZDP's FAQs version 0.2.2 Message-ID: <36EE9C0F.A597FA4C@pop.vet.uu.nl> Hi there, Sorry for the cross posting, but the ZDP's Zope FAQs are online with a new version at zdp.zope.org. I hope they are useful. Please continue to contribute! Regards, Martijn (one of the two :), of the Zope Documentation Project From mbernstein@profitscape.net Tue Mar 16 18:21:59 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 10:21:59 -0800 Subject: [Zope] My own zope site... References: <36ED9827.7A8EB410@netscape.com> Message-ID: <36EEA147.50458405@profitscape.net> Andrew Wooldridge wrote: > > I've started a site that will show the results of my work in getting > Dreamweaver and Zope to talk to each other - and I would appreciate a > link from the zope.org site if there is a section for 3rd party > developer links... > > http://alaji.home.mindspring.com/zopeweaver/ I've added this to the Zope category in the Open Directory Project: http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ Michael Bernstein. From Oliver Thuns" Hi! I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a very simple counter module (with PIL). How could I set the mime header to image/gif and return an image? From M.Faassen@vet.uu.nl Tue Mar 16 19:01:14 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 20:01:14 +0100 Subject: [Zope] ZPublisher: How to set the mime header? References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <36EEAA7A.8FA5DC3D@pop.vet.uu.nl> Oliver Thuns wrote: > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? This is in the Zope FAQ, actually, at http://zdp.zope.org/FAQ/external. At least I think I'd apply to ZPublisher as well? How do I return an image from an External Method? Example (for a png image): def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is: RESPONSE.setHeader('content-type','image/png') Regards, Martijn From prudek@sol.cz Tue Mar 16 19:15:57 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 16 Mar 1999 20:15:57 +0100 Subject: [Zope] Zope modifies HTML order of tags? References: <4.1.19990316105207.00bbe560@lisp.atmm.nl> Message-ID: <36EEADED.C6223063@sol.cz> > >It seems to me that Zope is rendering my HTML tag attributs in different > >order than in the source. For instance I put > Could you supply us with some DTML examples of this behaviour? It´s > something I´ve seen before. Is there any chance your HTML editor is doing this? You are right. I wanted to check the frame, which I can't do easily under Netscape, so I pushed File/Edit Frame, and apparently Netscape Composer did it, because when I do "Save frame as...", it looks O.K. Having discovered this, there is no chance I would ever use Composer. I would be happy to have Zope work as closely as possible with Dreamweaver, though. -- Milos Prudek Sonet Online s.r.o. http://www.sol.cz From andy@ictibroker.com Tue Mar 16 19:40:56 1999 From: andy@ictibroker.com (Andy Smith) Date: Tue, 16 Mar 1999 14:40:56 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com> Message-ID: <000001be6fe4$e90f1920$ce63efa1@venice> I've been using this.... (Zope example but should work with ZServer) It was fully expecting to have to mess about with headers to get browsers to recognise the gif, but broswers seem to know a gif when they get one! This example returns gifs in a browser when you do .... http://mysite/renderGif or even (I'm fully prepared to admit there may be better ways of doing it) ;)_ Cheers, Andy. def renderGif(self, size=500, counter=1): """Draw a pie chart""" im = PIL.Image.new('RGB', (size,size)) # Do GIF manipulation stuff here! outFile = cStringIO.StringIO() im.save(outFile, 'GIF') outFile.seek(0) outString = outFile.read() return outString > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Oliver Thuns > Sent: Tuesday, March 16, 1999 1:44 PM > To: zope@zope.org > Subject: [Zope] ZPublisher: How to set the mime header? > > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 16 19:49:17 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 16 Mar 1999 20:49:17 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com>; from Tom Jenkins on Mon, Mar 15, 1999 at 11:17:44PM -0500 References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <19990316204917.A659@RaVER.duck.org> On Mon, Mar 15, 1999 at 11:17:44PM -0500, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Why not use: select 'id_field_name' from 'table' where 'id_field_name' IS NULL id_field_name beeing the field with AUTO_INCREMENT set Hope this helps - Sture > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From eric.kidd@pobox.com Tue Mar 16 19:55:15 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Tue, 16 Mar 1999 14:55:15 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com>; from Oliver Thuns on Tue, Mar 16, 1999 at 07:44:18PM +0100 References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <19990316145515.A484@moebius.dartmouth.edu> On Tue, Mar 16, 1999 at 07:44:18PM +0100, Oliver Thuns wrote: > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? When using Zope to publish XML documents (using DTML Document objects) I often write: Some part of Zope tries to guess the Content-Type otherwise. A lot of this code is directly shared between Zope and Z Publisher, so you might see similar behavior. Cheers, Eric From andreww@netscape.com Tue Mar 16 20:15:47 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Tue, 16 Mar 1999 12:15:47 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <36EEBBF1.B7B05990@netscape.com> Ok, I consider myself pretty technical, but not a UNIX master, and I've used NT enough to know about services, etc. But I cannot for the life of me figure out how to get zope running as a service without manually starting it from start.bat. Could someone please post somewhere a "zope for dummies" description of getting zope running as a service on NT. Here's what I do: I downloaded zope 1.10.2 I unzipped and ran the installer. It works fine to the point where it wants me to choose between running zope alone or as a service. I've tried it "both ways" and although I can get zope running fine by manually starting it from start.bat, and I make the zope service start automatically, it will not work as a service! I dont have any other web server on this machine and dont really care which server I use. I had assumed that ZopeHTTPServer would run as the service, but it doesnt work... Is there just a minimal way to get zope going on it's own? I know the ip address etc. of my system, but that doesnt seem to be the issue. I wouldnt even mind if in the install you had an option for "install default web server" so that zope can piggy back on it. Does it have something to do with setting permissions to the var directory? All I'm basically looking for is sort of a recipe style instruction on how to get it up and running. (With no handwaving like "now configure your system to run the zope.exe". Assume I'm a total idiot... Which I'm not, but I'm still having problems. -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From M.Faassen@vet.uu.nl Tue Mar 16 20:14:04 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 21:14:04 +0100 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEBB8B.31158570@pop.vet.uu.nl> Andrew Wooldridge wrote: [snip getting Zope to run on NT] I've made Zope run on NT with Apache. > I dont have any other web server on this machine and dont really care > which server I use. I had assumed that ZopeHTTPServer would run as the > service, but it doesnt work... No, I don't think that can work. You need another webserver, like Apache (which you can download from www.apache.org, though of course it has its own configuration hassles). > Is there just a minimal way to get zope going on it's own? Hm..Perhaps ZServer, but that's still not stable. Can it run as a service in NT? Otherwise I'd recommend Apache; it can do plenty, though there is a learning curve there. Regards, Martijn From mbernstein@profitscape.net Tue Mar 16 20:42:51 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 12:42:51 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEC24B.BD57D221@profitscape.net> Andrew Wooldridge wrote: > > Ok, I consider myself pretty technical, but not a UNIX master, and I've > used NT enough to know about services, etc. But I cannot for the life > of me figure out how to get zope running as a service without manually > starting it from start.bat. Here's what I did: I downloaded zope 1.10.2 I unzipped and ran the installer. I chose to run zope alone I created a shortcut to start.bat in C:\WINNT\Profiles\All Users\Start Menu\Programs\Startup This will start Zope every time you reboot. Note that it will not get rid of the annoying MSDOS command prompt window. I hope this helps From robin@alldunn.com Tue Mar 16 21:30:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 16 Mar 1999 13:30:09 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <016701be6ff4$30e2b5e0$8725d2d1@rogue.jenkon-dev.com> I posted a message last week about running ZServer as a service. You can find the message at http://www.zope.org/pipermail/zope/1999-March/005030.html I built my Zope from source, so I don't know if this works the same as the self-installer version, but it should be pretty close. 1. Install Zope 1.10.2, choosing to run standalone. 2. Untar the ZServer distribution in the root Zope directory. 3. Test that it works by running start.py in the ZServer directory. 4. Follow the directions in the message linked-to above. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Andrew Wooldridge To: zope@zope.org Date: Tuesday, March 16, 1999 11:34 AM Subject: [Zope] Help - need a brainless guide to getting zope running >Ok, I consider myself pretty technical, but not a UNIX master, and I've >used NT enough to know about services, etc. But I cannot for the life >of me figure out how to get zope running as a service without manually >starting it from start.bat. > > >Could someone please post somewhere a "zope for dummies" description of >getting zope running as a service on NT. > >Here's what I do: > >I downloaded zope 1.10.2 >I unzipped and ran the installer. >It works fine to the point where it wants me to choose between running >zope alone or as a service. >I've tried it "both ways" and although I can get zope running fine by >manually starting it from start.bat, and >I make the zope service start automatically, it will not work as a >service! > >I dont have any other web server on this machine and dont really care >which server I use. I had assumed that ZopeHTTPServer would run as the >service, but it doesnt work... > >Is there just a minimal way to get zope going on it's own? > >I know the ip address etc. of my system, but that doesnt seem to be the >issue. > >I wouldnt even mind if in the install you had an option for "install >default web server" so that zope can piggy back on it. > >Does it have something to do with setting permissions to the var >directory? > >All I'm basically looking for is sort of a recipe style instruction on >how to get it up and running. (With no handwaving like "now configure >your system to run the zope.exe". Assume I'm a total idiot... > >Which I'm not, but I'm still having problems. > > > >-- > >------------------------------------------------------------------------- > >- Andrew Wooldridge - Opinions expressed are my own - >- andreww@netscape.com - http://people.netscape.com/andreww/ >- ICQ: 6345881 - Find It at http://dmoz.org - >------------------------------------------------------------------------- > > > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Tue Mar 16 21:52:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:52:32 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903162155.QAA08372@mail.digiweb.com> OK to follow up, if you use call mysql using the form select CONCAT(LAST_INSERT_ID()) as new_id you get back the correct value in 'last_id' now I'm still having problems with getting that value into the REQUEST object. What goes in place of the ??? (Pardon me if this has been answered already, there was some problems with me getting messages from zope list) Thanks again... > On Mon, 15 Mar 1999, Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when trying to use > > MySQL's "select LAST_INSERT_ID()" function: > > > > Error, exceptions.KeyError: unhandled > > > > SQL used: > > > > select LAST_INSERT_ID() > > > > Anybody have any ideas? > > Try: select LAST_INSERT_ID()+0 to cast it to an int... > > Also, check your declaration for LAST_INSERT_ID().. if the above doesn't > work you'll need to either try the patch for ZMySQLDA that was posted a > week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to > cast it to a string and then use a nifty Python fn. to convert it to an > integer number. > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 21:56:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:56:14 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> References: Message-ID: <199903162159.QAA12320@mail.digiweb.com> > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > Umm that should read select CONCAT(LAST_INSERT_ID()) as last_id -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From jbb@spyderlab.com Tue Mar 16 22:35:08 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:35:08 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> Message-ID: On Tue, 16 Mar 1999, Tom Jenkins wrote: > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > > now I'm still having problems with getting that value into the REQUEST > object. What goes in place of the ??? > > > (Pardon me if this has been answered already, there was some > problems with me getting messages from zope list) > Thanks again... Well, try something like:
  • The id last inserted is where lastInsert is your SQL method Note this is untested code, so caveat emptor :) Have fun, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Tue Mar 16 22:51:20 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:51:20 -0500 (EST) Subject: [Zope] #sqltags Message-ID: Hi: Are the #sqltags documented somewhere? I couldn't find them in the DTML reference manual, etc. I found some examples of their use, but nothing definative. I have no problems reading the source and documenting what I find, I just don't want to be re-inventing the wheel. Specifically I'd like to know about #sqlgroup and friends. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From amos@aracnet.com Tue Mar 16 22:51:50 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 16 Mar 1999 14:51:50 -0800 Subject: [Zope] #sqltags In-Reply-To: Message-ID: <3.0.5.32.19990316145150.011c19a0@mail.aracnet.com> At 05:51 PM 3/16/99 -0500, Jordan B. Baker wrote: >Are the #sqltags documented somewhere? I couldn't find them in the DTML >reference manual, etc. Did you notice the "Z SQL Methods User's Guide": http://www.zope.org/Documentation/Guides/ZSQL I think that this covers what you want to know. -Amos From neves@inf.puc-rio.br Tue Mar 16 22:45:29 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 16 Mar 1999 19:45:29 -0300 Subject: [Zope] setting variable References: <199903160352.WAA04182@mail.digiweb.com> Message-ID: <36EEDF09.91998D6@inf.puc-rio.br> Tom Jenkins wrote: > > Hello folks, > I'm stuck on a problem which I hope some one could help me with. I > have a database entry form where the user will enter in information for > two related tables. When she submits the form, I want to first post one > tables information, then call another sql method to get the id generated > for that post, then take that value and add it to the REQUEST object > and pass it to the second sql insert for inserting to the second table > (along with some other parts of the REQUEST object from the form). Do you really need this? You can put more than one sql commands in a sql method, you just have to put a between them. You can insert in the two tables with just one method. The last_insert_id() should be in the values field of the second insert. Take a look at the code genereated by the sql wizard in the contrib page. > > I'm planning on using MySQL that has a special select: > select LAST_INSERT_ID() > to return the last auto-generated id value to get the id. > > I know you can add a variable to the REQUEST object via > > but how to I get the value from the sql method? The only way I know > now is via #var tags but you can't nest the DTML. Take a look at the other thread. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From rhww@erols.com Tue Mar 16 23:27:35 1999 From: rhww@erols.com (Robert Wentworth) Date: Tue, 16 Mar 1999 18:27:35 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <36EEE8E7.11F8DBC@erols.com> Right now my biggest obstacle to setting up a Zope-powered site could be finding a hosting provider I have confidence in who is willing to run Zope. When I asked my first-choice provider about running Zope, they replied: > Though it's true that we can install programs that need root > instlall, it only so when the program is low CPU/mem use and > non-intrusive. Zope is neither, so to run it you would need to get > your own dedicated server through us. A dedicated server is not a viable option for this site at this point in time. So, a few questions: 1) Are the provider's fears justified? What sort of memory footprint, CPU requirements (for a site that should have fairly low traffic at first), and other impact are Zope likely to have on a hosting provider? 2) Would anyone care to let me know what their experience has been with the two hosting providers (NexusWeb and CodeIt Computing) listed as known to host Zope-based sites? (I've been sufficiently badly burned in the past by bad hosting providers that I cannot justify signing up for a provider without positive recommendations or multiple alternatives for backup.) Robert Wentworth From TomJenkins@zentuit.com Tue Mar 16 23:27:19 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 18:27:19 -0500 Subject: [Zope] setting variable In-Reply-To: <36EEDF09.91998D6@inf.puc-rio.br> Message-ID: <199903162330.SAA24924@mail.digiweb.com> > Do you really need this? You can put more than one sql commands in a sql > method, you just have to put a between them. > You can insert in the two tables with just one method. The > last_insert_id() should be in the values field of the second insert. > Take a look at the code genereated by the sql wizard in the contrib > page. Hey Paulo, thanks for that tip. I didn't know about #var sql_delimiter and the ability to put more than one sql commands in a sql method. I had wondered about it but the #var sql_delimiter was the key. With this information, no I don't need to insert into the REQUEST object. But I'm still curious . Unfortunately, putting last_insert_id() directly into the values of the second insert did not work. It works from mysql command line. INSERT INTO entry_tbl (master_id,submitted_by,staff_id,version,comment) VALUES (LAST_INSERT_ID(), , , , ) It surprised me that it didn't work as I thought it would get sent enmass to mysql for processing so I had thought that the DA wouldn't interfer with it. feeling-very-dense-ly y'rs -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From vanandel@ucar.edu Wed Mar 17 01:44:26 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Tue, 16 Mar 1999 18:44:26 -0700 Subject: [Zope] newbie - permissions on FAQ object Message-ID: <199903170144.SAA26992@stout.atd.ucar.edu> I'm trying to configure a ZOPE FAQ object on starship.python.net . This is Zope v10.10.2 with ZServer 1.0b2 . I'm baffled by the permissions scheme. I've created a FAQ under my ZOPE home: http://starship.python.net:9673/crew/vanandel I'd like selected users to add FAQ entries, but only certain trusted users to be able to create categories. Unfortunately, anyone can add a new category, which is not what I want. The Security Screen for vanandel/NumPy only enables 'view' for anonymous, but still an 'anonymous' user can enter the 'Add a category' screen, without being challenged. There are specific permissions shown for various "add-ins" like TinyTables on the Security screen, but not for the FAQ module. (I'd expect to see permissions for FAQAddCategory.) Also, when I first create a 'FAQ', I can't view it until I create a 'isCategory' property. This seems like a bug, since 'isFAQ' is already created for me. A minor question. I'd obviously like to test ZOPE with various users, to see what ZOPE allows them to do. ZOPE uses cookies to give someone permission, after they've supplied a password. Under Unix, I can manually remove a cookie by editing ~/.netscape/cookies. How do I do this under NT? Are Netscape cookies in the registry (I hope not!). Thanks much for your help. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From mike@icebox.dlogue.net Wed Mar 17 02:40:15 1999 From: mike@icebox.dlogue.net (Michel Pelletier) Date: Tue, 16 Mar 1999 20:40:15 -0600 (CST) Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: <199903141232.XAA17000@mbuna.arbhome.com.au> from "Anthony Baxter" at Mar 14, 99 11:32:36 pm Message-ID: <199903170240.UAA04469@icebox.dlogue.net> > > > Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now > available from http://www.interlink.com.au/anthony/python/ > Excellent. > I'm looking for opinions on the LDAP zope product I've been building. > We here at DC (well, I'm out of the office this week, but I'm there virtualy) have been kicking around an LDAP authentication mechanism, probably a folderoid, to go against LDAP. In fact, this was supposed to be one of my projects when I get back next week. From the details below it looks like you have thought this out well, I didn't even consider making an API of methods like XSQL methods, good idea! > Right now, LDAP connections work, LDAP Methods work, but there's still > a bit more to do. Right now, the following is unimplemented: > > In ZLDAPconn: > . Anything other than simple_bind(who, passwd) for connecting to the > LDAP server That's where we want to start... > . meaningful doc strings > > In ZLDAPMethods: > . Pluggable Brains > . Result Caching > . Limits on the number of results > . Variable interpolation in the filters, and in the base DN > . modify or add queries (only search is supported right now) > . meaningful doc strings :) Under the catagory 'result caching' you might want to consider making some kind of Connection Manager in your LDAP Connection. A model I've been kicking around is a CM class that manages Connections and uses a simple caching algoritm. Wrapping all of the API in a class will also help yu when you want to break out the LDAP stuff and stick it in shared. In this way, it becomes a sort of 'Device Driver' (to use Ken's terminology) for the entire Zope system. We're going to be doing this with the IMAP functionality that NotMail uses. I'm assuming what you call an LDAP connection is like a Database Adapter is to ZSQL methods. Maybe you might want to consider calling these LDAP Adapters. > > Other stuff: > . UserLDAP is not finished yet (or released) - the primary issue is the > storing of roles and domains. Right now this would have to be some > non-standard LDAP attribute... but what should it be? It also probably > needs modify and add added to ZLDAPMethods before being really useful. > The etcUserFolder product has a settable property to change the 'default role' that the users are given. You can check it out from the download page, it is also in cvs under Packages/Products/etcUserFolder > Things I'd like comments on: > For ZLDAPconn: > what other bind methods would you like to see? > For ZLDAPMethods: > how should add/modify/query be distinguished? Separate methods? > I'd have to look at the code, I'll get back to you. (hey paul, I need a laptop!) > I had planned to get variable interpolation working tonight, but decided I'd > rather get an early night. Probably tomorrow evening, instead. Stuff I hope to > get going in the next day or so: variable interpolation, pluggable brains. > Don't hurt yourself. It looks like you got this down pretty good, I'll proablby be looking into incorporating much of this if not all into Zope, want to be in charge of zope LDAP? We can give you an area on the site. > Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from > http://www.interlink.com.au/anthony/python/ > > It requires David Leonard's ldapmodule, from > http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ > > It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the > ldapmodule works on other platforms (it's available in source, and also as > a windows .pyd) it should work elsewhere, too. > > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Wed Mar 17 06:17:46 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 17 Mar 1999 01:17:46 -0500 (EST) Subject: [Zope] recursive document oddity Message-ID: Hey zope freaks: Okay, I am driving myself crazy, maybe I am just doing something silly (hopefully). I am trying to write this recursive SQL result DTML (basically a tree):

    Category

    I have a variable pwd that I want to pass along to recurseCategories.. I tried something like (and in quotes) pwd is used in listCategories to get a list of categories in that 'path' A couple questions: 1. Should I be using a DTML method or a DTML document for something like this? 2. As I recurse will I lose access to documents in my current folder? I got a traceback to seemed to indicate that once I was into a certain depth I couldn't access listCategories. 3. Is there a more Zope-happy way to do this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mj@antraciet.nl Wed Mar 17 07:58:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 17 Mar 1999 08:58:44 +0100 Subject: [Zope] My own zope site... In-Reply-To: <36EEA147.50458405@profitscape.net> References: <36ED9827.7A8EB410@netscape.com> Message-ID: <4.1.19990317085034.00c271d0@lisp.atmm.nl> At 19:21 16/03/99 , Michael Bernstein wrote: >I've added this to the Zope category in the Open Directory Project: > >http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ > I added the ZDP website as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Wed Mar 17 12:28:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 13:28:32 +0100 Subject: [Zope] fsimport Message-ID: <36EF9FF0.EB6B1648@sol.cz> Does fsdir parameter of fsimport specify the remote directory (where Zope is) or local directory (from where I look at Zope)? -- Milos Prudek From prudek@sol.cz Wed Mar 17 13:27:35 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 14:27:35 +0100 Subject: [Zope] fsimport References: <36EF9FF0.EB6B1648@sol.cz> <36EFA878.F90AECE6@plaza1.snu.ac.kr> Message-ID: <36EFADC7.82074370@sol.cz> > > Does fsdir parameter of fsimport specify the remote directory (where > > Zope is) or local directory (from where I look at Zope)? > > remote directory in your terminology OK, so it still does not work for me. If someone on this conference would look at my mail from Monday, I would be grateful. The idea of having to put all my images into Zope by hand makes me very sick :-) -- Milos Prudek From rocon@pivot.net Wed Mar 17 13:54:49 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 17 Mar 1999 08:54:49 -0500 Subject: [Zope] Python Anyone: Linuxworld Article Message-ID: <01b901be707d$c1b77040$0201a8c0@hawkeye.bob.oc> Check out the article in Linuxworld: This is good for ZOPE newbees who wonder what and why about Python (The underlying language of ZOPE). http://www.linuxworld.com/linuxworld/expo/lw-python.html Title: "Python, anyone? " You may have dismissed Python as just another scripting language beginning with 'P,' but more and more open source developers are finding Python has some bite Summary At first, the Python scripting language may sound like another version of Perl, but Robert Richardson highlights the differences that make it useful in its own right. (1,500 words) By Robert Richardson *--- Paul Everitt mentions Zope in the discussion forums related to this article. -bobo connor bob@rocnet.com From raver@box.dust.za.net Wed Mar 17 16:43:16 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 17 Mar 1999 17:43:16 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 References: <199903160420.XAA01117@mail.digiweb.com>; <19990316204917.A659@RaVER.duck.org> <199903161952.OAA01245@mail.digiweb.com> Message-ID: <19990317174316.A263@RaVER.duck.org> On Tue, Mar 16, 1999 at 02:49:43PM -0500, Tom Jenkins wrote: > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() > > > > > > Anybody have any ideas? > > > > Why not use: > > > > select 'id_field_name' from 'table' where 'id_field_name' IS NULL > > > > id_field_name beeing the field with AUTO_INCREMENT set > > > Hi Sture, > Unfortunately, I don't think that'll work since after the insert there will be > a value (non null) in 'id_field_name' > > Thanks for taking the time for a suggestion, I really do appreciate it. > Probly I misunderstod your problem. Anyways I want to say that my suggestion does just what 'select last_insert_id()' does. namely return the number created in an auto_increment field during your last insert Sture Lygren > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > From kid@ans.net Wed Mar 17 16:52:45 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 17 Mar 1999 11:52:45 -0500 Subject: [Zope] Eric Kidd compares Zope and Frontier Message-ID: <19990317115245.A15201@throwingcopper.ans.net> Hi, I just saw an interesting thread over at http://www.scripting.com. Here's the direct link to the article: http://discuss.userland.com/msgReader$4124 Someone wrote a comparison of Zope and Frontier. Followed up by a technology demo of getting the two to talk via XML. Interesting stuff. Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From TomJenkins@zentuit.com Wed Mar 17 16:57:26 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Wed, 17 Mar 1999 11:57:26 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <19990317174316.A263@RaVER.duck.org> References: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 Message-ID: <199903171700.MAA04810@mail.digiweb.com> > Anyways I want to say that my suggestion does just what 'select > last_insert_id()' does. namely return the number created in an > auto_increment field during your last insert > > Sture Lygren > My profound apologies. "select from where IS NULL" does indeed return the same value as last_insert_id(). My apologies again. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From andy.smith@iname.com Wed Mar 17 17:12:23 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:12:23 -0500 Subject: [Zope] (no subject) Message-ID: <000901be7099$53119140$ce63efa1@venice> Hi All, I'm just uploaded a new Product to the contrib area. It is a poll product based on Amos's example. It uses PIL to draw piecharts of the poll results. I was originally going to include a precompiled PIL with the product, but the product swelled to 500k as a result, so instead I've left pointers to where to get PIL in the product documentation. I'll send a hypertext screenshot immediately after this message so that people can decide whether or not they want to go to the effort of downloading and installing PIL. Pls note that there are some problems I'm having with getting the GIFs to update appropriately, so after banging my head against a wall for a while [in true opensource tradition ;) ] I've decided to throw it open to the floor to see if anyone can find a workaround. I've also uploaded a 'fixed' version of the Guestbook example product, which broke going from Zope1.9 -> Zope1.10. Enjoy! Andy. From andy.smith@iname.com Wed Mar 17 17:16:14 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:16:14 -0500 Subject: [Zope] Poll product example screenshot.... Message-ID: <000a01be7099$dc8f2b30$ce63efa1@venice> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here's a screenshot from the new poll product... (Figures chosen at random and don't reflect the current state of mind of any person or persons ;) ). Cheers, A.. Edit Question Object Id question1 Question Piechart Not bad 64.0 (28.32%) Good 43.0 (19.03%) Ugly 32.0 (14.16%) Been Better 87.0 (38.50%) Responses response1 response2 response3 response4 ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

    Here's a=20 screenshot from the new poll product...

    (Figures=20 chosen at random and don't reflect the current state of mind of any = person or=20 persons ;) ).

    Cheers,

    A..

     

    Edit Question Object

  • Id question1
    Question =
    Piechart
      Not= =20 bad 64.0 (28.32%)
      Goo= d 43.0 (19.03%)
      Ugl= y 32.0 (14.16%)
      Bee= n=20 Better 87.0=20 = (38.50%)
    Responses
    =20 res= ponse1=20
    =20 res= ponse2=20
    =20 res= ponse3=20
    =20 res= ponse4=20 =20 =

    ------=_NextPart_000_000B_01BE706F.F3B92330-- From andy@ictibroker.com Wed Mar 17 17:34:02 1999 From: andy@ictibroker.com (Andy Smith) Date: Wed, 17 Mar 1999 12:34:02 -0500 Subject: [Zope] FW: [Zope] Poll product example screenshot.... Message-ID: <001801be709c$59458550$ce63efa1@venice> Hmm... the screenshot didn't seem to 'travel' too well, Guess you'll just have to install PIL to see it. ;) Cheers, A. From jharris@memphis.edu Wed Mar 17 17:52:24 1999 From: jharris@memphis.edu (Jim Harris) Date: Wed, 17 Mar 1999 11:52:24 -0600 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <000701be709e$ea4cd4c0$642fe18d@jharris.coe.memphis.edu> I contacted NexusWeb yesterday and they said they would provide a setup for Zope, but no support. They were not specific as to the setup. They did mention they supported Python. I was going to write them back to see if they ran Zserver, or just provided the links to Apache. They did have msql and mysql. The minimum plan to support Zope was the 50MB/$20 a month plan. The other site was out of my price range ($50/mo). I just started studying Zope yesterday to use for a project I was planning to use Visual Basic/ADO/ASP for. I'm testing on a Win95 machine, but plan to move testing to a Linux box. I decided before signing up with a hosting server to wait for Zope 2, which I've seen a couple of references to. What's the deal on that? One place promised a better integrated web server. If Zope moves more torward being a totally self contained server, then I don't want to mess with Apache or IIS. -----Original Message----- From: Robert Wentworth To: zope@zope.org Date: Tuesday, March 16, 1999 4:25 PM Subject: [Zope] Impact of Zope on hosting provider? >Right now my biggest obstacle to setting up a Zope-powered >site could be finding a hosting provider I have confidence >in who is willing to run Zope. When I asked my first-choice >provider about running Zope, they replied: > >> Though it's true that we can install programs that need root >> instlall, it only so when the program is low CPU/mem use and >> non-intrusive. Zope is neither, so to run it you would need to get >> your own dedicated server through us. > >A dedicated server is not a viable option for this site at >this point in time. So, a few questions: > >1) Are the provider's fears justified? What sort of > memory footprint, CPU requirements (for a site that > should have fairly low traffic at first), and other > impact are Zope likely to have on a hosting provider? > >2) Would anyone care to let me know what their experience > has been with the two hosting providers (NexusWeb and > CodeIt Computing) listed as known to host Zope-based > sites? (I've been sufficiently badly burned in the past > by bad hosting providers that I cannot justify signing > up for a provider without positive recommendations or > multiple alternatives for backup.) > >Robert Wentworth > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From arankine@lucent.com Wed Mar 17 21:07:09 1999 From: arankine@lucent.com (Rankine, Alastair) Date: Thu, 18 Mar 1999 08:07:09 +1100 Subject: [Zope] Newbie questions Message-ID: Hi Zopesters, I'm trying out Zope for the purpose of getting a book catalogue on the web. So far, I'm extremely impressed with it! Of course, I have some questions. (For the record, I am running Zope 1.10.2 with Apache 1.3.something on a MkLinux DR3 box, administered with IE4 on NT). 1. When you edit a DTML document using the Zope management interface and hit the update button, Zope goes away and tries to parse it to ensure that it's consistent DTML. If this fails, you are left with no option but the browser's back button, which, under IE4 anyway, seems to discard the changes you made to the document. Is there a fix or workaround (besides ctrl-A ctrl-C before clicking the update button) for this? Us newbies write lots of bad DTML :) 2. When a folder acquires an index_html document from further up in the heirarchy, the tag refers to the title of the index_html document, rather than the folder being displayed. How do you write the index_html document to display the title of the acquired object, rather than the index_html document itself? (Hope this is clear) 3. Finally, I need some advice about how best to lay out the website. Basically I'm trying to build a site containing a book catalogue. Here's what I've got so far: + Root + Titles [folder] - index_html + OriginSpecies [folder, title: "Origin of the Species", desc: "blah", author: "CharlesDarwin", year: 1854] - cover [image] + DiamondAge [folder, title: "The Diamond Age", desc: "blab", author: "NealStephenson", year: 1995] - cover [image] ... + Authors [folder] - index_html + CharlesDarwin [folder, title: "Charles Darwin", bio: "..."] - photo [image] + NealStephenson [folder, title: "Charles Darwin", bio: "..."] - photo [image] Hope the notation is clear enough. What I want to do is "link" the titles to their authors and vice versa. So the index_html document for Authors would display the author, their picture, bio, and a list of titles by them. A similar arrangement would apply for Titles. The author property of the title (*) links the title to author, but what's the best way to link backwards? Similarly, what's the best way to display the author's information for a title? All advice appreciated! Thanks. (*) assuming only one author for now From tschruefer@mail.howard.k12.md.us Wed Mar 17 21:15:41 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 17 Mar 1999 16:15:41 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903172113.QAA02057@mail.howard.k12.md.us> Thus far my attempts to install the Zope binary release on a Linux machine have been for nothing. The Install documentation and the Install program contradict each other at almost every turn. The docs say use ./install -u but the -u switch is gives a error message, saying it is a invalid switch and not supported at all. The install --help, says nothing about a -u switch. The docs say you can specify the cgi directory, with the -c switch, but the install program says that is a unsupported feature. The -s switch in the docs says this is to provide the superuser login and password to the install routine, yet the install program say this is used to strip tables (perhaps parsing the access file), none of the docs say anything more. I have tried numerous variations, all to no avail. Perhaps the ZDP should have started at the beginning, with usable install instructions, instead of with a FAQ. I must say that the screen shots in the PDF file and those docs are quite nice, but thats about it. Reading the PDF docs, just makes me want to get in and try Zope even more. Is there anyone that could help or give me some pointers ? Tom From cimarron@taylors.org Thu Mar 18 00:35:52 1999 From: cimarron@taylors.org (cimarron@taylors.org) Date: Wed, 17 Mar 1999 16:35:52 -0800 Subject: [Zope] multiple trees Message-ID: <199903180035.QAA28795@christopherrobin.kolo.net> There seems to be a problem with DTML documents which uses more than one .. sections. I'm seeing a python error when attempting to expand any node of the second tree. I'm going to try and fix this on my own as a way to familiarize myself with Zope internals but I thought others on this list might want to be aware of the problem and/or provide information about their own experience with multiple trees. Cimarron Taylor cimarron@taylors.org From wade@okaynetwork.com Thu Mar 18 00:37:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 17 Mar 1999 19:37:33 -0500 Subject: [Zope] ZAP In-Reply-To: References: Message-ID: <199903180036.TAA03738@gem.lightlink.com> > On Sun, 14 Mar 1999, Shaw, Howard wrote: > > > How can I configure ZAP so that all http requests go through the cgi? > > Zope is the only thing running through this apache, so I don't want > > everything on the site prefixed with Zope/ (or anything else, so no, I > > don't just want to know how to change the prefix). This is basically > > what is keeping me on ZopeHTTPServer. > > > > [snip] > > > > How can I make a Zope pcgi accessible as the root of a Zap install? > > Please help. > > In looking through my Apache configuration files, I tried to piece > together what changes I made. Here's what I think you need to do. > > In httpd.conf, make sure you have these lines (I put them at the end): > > Alias / /cgi-bin/Zope.cgi > > # Zope configuration maps /Zope/ to the Zope.cgi CGI script > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > NOTE: In the RewriteRule directive above, the [e=...] stuff should go > directly after the ...Zope.cgi/$1 section, with a space separating them, > e.g. ...Zope.cgi/$1 [e=HTTP...] > > You will need to munge the path in the RewriteRule directive, where it > says /home/httpd to be wherever your document root is. > > I did this a while back, and have since switched from Apache to ZServer to > test it out, so I haven't used it lately. However, this should work, as I > never changed the config files after I stopped using Apache. > > Let me know if you have problems; I'll do what I can to help. > > > Howard C. Shaw III > > jkh > Here's a setup that works for me. ----- ServerName www.okaynetwork.com ServerAdmin wade@okaynetwork.com DocumentRoot /home/ok/htdocs ErrorLog logs/okaynetwork.com-error_log TransferLog logs/okaynetwork.com-access_log RewriteEngine On RewriteLog logs/okaynetwork-rewrite-log RewriteLogLevel 0 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule (.*) /usr/local/Zope/Zope/Zap/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http d-cgi,l] --------- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Anthony Baxter Thu Mar 18 07:29:48 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 18 Mar 1999 18:29:48 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: Your message of "Tue, 16 Mar 1999 20:40:15 MDT." <199903170240.UAA04469@icebox.dlogue.net> Message-ID: <199903180729.SAA06949@mbuna.arbhome.com.au> >>> Michel Pelletier wrote > We here at DC (well, I'm out of the office this week, but I'm there > virtualy) have been kicking around an LDAP authentication mechanism, > probably a folderoid, to go against LDAP. In fact, this was supposed to > be one of my projects when I get back next week. From the details below > it looks like you have thought this out well, I didn't even consider > making an API of methods like XSQL methods, good idea! It's on the list. I was originally going to write a simple LDAP auth object, then thought about it a bit more and realised a generic interface into LDAP would be more useful, then I can bolt the auth on top. > > In ZLDAPconn: > > . Anything other than simple_bind(who, passwd) for connecting to the > > LDAP server > That's where we want to start... The way I figure it, I'll support this first. If/when someone needs something else, I'll look at supporting that. > Under the catagory 'result caching' you might want to consider making some > kind of Connection Manager in your LDAP Connection. A model I've been > kicking around is a CM class that manages Connections and uses a simple > caching algoritm. Not quite sure what you're getting at here :) > Wrapping all of the API in a class will also help yu > when you want to break out the LDAP stuff and stick it in shared. In > this way, it becomes a sort of 'Device Driver' (to use Ken's > terminology) for the entire Zope system. Hm. The LDAP connection already is a class. It's as much a device driver as the current Database Adaptors. > We're going to be doing this > with the IMAP functionality that NotMail uses. I'm assuming what > you call an LDAP connection is like a Database Adapter is to ZSQL methods. > Maybe you might want to consider calling these LDAP Adapters. Good point. Next version, they'll be called that. (I figure I'm allowed to make changes like this between versions 0.1 and 0.2 :) > The etcUserFolder product has a settable property to change the 'default > role' that the users are given. You can check it out from the download > page, it is also in cvs under Packages/Products/etcUserFolder That and maybe allowing a mapping for any organizationalRole that the users have. More useful for the "lecturer", "student" type roles. > I'd have to look at the code, I'll get back to you. (hey paul, I need a > laptop!) Yeah, Paul, get the boy a laptop. :) > > I had planned to get variable interpolation working tonight, but decided I'd > > rather get an early night. Probably tomorrow evening, instead. Stuff I hope > > get going in the next day or so: variable interpolation, pluggable brains. > > > Don't hurt yourself. It looks like you got this down pretty good, I'll > proablby be looking into incorporating much of this if not all into Zope, I've got variable interpolation _mostly_ working. For some reason, though, it doesn't pick up all the namespaces - I'm probably just not using the document templates right. I'm going to add DTML interp. to both the filters and to the baseDN. Depends on my supply of round tuits - I might get the pluggable brains also working shortly. I kinda see how they work now. > want to be in charge of zope LDAP? We can give you an area on the site. Hm - depends if it's easier to get to than my current web site. :) Anthony -- Anthony Baxter It's never to late to have a happy childhood. From Andreas Jung Thu Mar 18 09:17:46 1999 From: Andreas Jung (Andreas Jung) Date: Thu, 18 Mar 1999 10:17:46 +0100 (MET) Subject: [Zope] Python freezes in lwp_sema_p() Message-ID: We are running Python1.5.2b2 (with thread support) , latest DCOracle, Oracle 7.3 under Solaris 2.5.1. Some of our applications hang in about 10% when they run. We trussed the binaries and discovered that they all sleep in a lwp_sema_p() call. Python/thread_cthread.h seems to mention a problem with the Solaris PThreads implementation however I can't figure out if this is the real problem. I am not sure whether it's a problem of Python, DCOracle or the Oracle libraries. Any ideas or comments ? Thanks, Andreas _\|//_ (' O-O ') ------------------------------ooO-(_)-Ooo-------------------------------------- Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH Saarbrücker Daten-Innovations-Center Gutenbergstr. 11-23, D-66103 Saarbrücken, Germany Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509 Email: ajung@sz-sb.de (PGP key available) ------------------------------------------------------------------------------- From rocon@pivot.net Thu Mar 18 13:13:25 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 18 Mar 1999 08:13:25 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <004901be7141$318eaf00$0201a8c0@hawkeye.bob.oc> Hi Thomas, >Is there anyone that could help or give me some pointers ? Yup, those switch options are confusing so I avoid them ;-) First, the most helpful tool for me in working with Linux is "git". This is a nice character based navigation and file management utility. Just type git. It came on my RH Linux and is installed automatically without your request. This program is alot like the DOS Norton Commander that I started using years ago. So you get the distribution: Zope-1_10_2-linux2-x86.tgz I use git's F6 key to rename it zope1102.tgz to ease the long typing. Move it to a newly created directory (F7) named perhaps "zope". Then in that directory, type: tar -xvzf zope1102.tgz A new directory is then created under your new zope directory named: Zope-1_10_2-linux2-x86.tgz/ Go into this directory and type ***This is were you got stuck*** ./install ***No switches!!! Then edit the access file now in this directory and change the obscure username and password to your favorites with F4 key to use "vi" Press i to insert new user/passwrd -- example: zope:gogo Press escape then :wq to save. Then ./start to start zope and maybe later if you EVER want to stop zope (who would ever WANT to stop!, ./stop. BTW, if you want to test the integrity of the downloaded zope distro, only change the t to an x as in: tar -xvzf zope1102.tgz Enjoy!!! -bobo connor From mj@antraciet.nl Thu Mar 18 13:33:05 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 18 Mar 1999 14:33:05 +0100 Subject: [Zope] I don't trust this. Message-ID: <4.1.19990318141119.00c0ad80@lisp.atmm.nl> Hello list, are you there? Sorry, but I haven't had any mail from the Zope list, Zope-Dev list and the ZDP list for over 3 and a half hours. And I don't trust such quiet.. =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tschruefer@mail.howard.k12.md.us Thu Mar 18 17:12:06 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Thu, 18 Mar 1999 12:12:06 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903181710.MAA21630@mail.howard.k12.md.us> >Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: >Hi Thomas, > >***This is were you got stuck*** > >./install > >***No switches!!! > Ok, unstuck, whoops, stuck again. I guess I have to do this in little baby steps. Some sort of initiation ritual, I think. ;-) Now I am getting the error message below even though python is clearly in the bin directory under the Zope install directory. "./install: bin/python: No such file or directory" This is the shell install script: *** #!/bin/sh # Get script dir if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` cd $PYTHONHOME else PYTHONHOME=. fi export PYTHONHOME bin/python inst/product_install.py $* *** A little different than the PERL I am used to seeing, but I've managed to make heads-and-tails of the thing. - I checked the location of python in the Zope install dir, ok. - I checked to ensure that the sh shell was in the bin/ dir, ok. Next up, re-upload the Zope file and check for a corrupted archive. Any other ideas ? From adminjim@coe.memphis.edu Thu Mar 18 19:39:36 1999 From: adminjim@coe.memphis.edu (Jim Harris) Date: Thu, 18 Mar 1999 13:39:36 -0600 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <000601be7177$11a7a940$642fe18d@jharris.coe.memphis.edu> Hope you don't mind me butting in, but if you just want to check out Zope very quickly, run the Windows version on 95/98/NT. It was nothing to install, and I was playing with Zope two minutes after downloading it. Python is also a snap to insall on Windows. -----Original Message----- From: Thomas Schruefer To: Zope Date: Thursday, March 18, 1999 10:09 AM Subject: Re: [Zope] Newbie install help needed !!!!! > > >>Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: > >>Hi Thomas, >> > >>***This is were you got stuck*** >> >>./install >> >>***No switches!!! >> > >Ok, unstuck, whoops, stuck again. > >I guess I have to do this in little baby steps. Some sort of initiation >ritual, I think. ;-) Now I am getting the error message below even >though python is clearly in the bin directory under the Zope install >directory. > >"./install: bin/python: No such file or directory" > >This is the shell install script: > > >*** >#!/bin/sh > ># Get script dir >if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then > PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` > cd $PYTHONHOME >else > PYTHONHOME=. >fi > >export PYTHONHOME >bin/python inst/product_install.py $* >*** > >A little different than the PERL I am used to seeing, but I've managed to >make heads-and-tails of the thing. > > >- I checked the location of python in the Zope install dir, ok. >- I checked to ensure that the sh shell was in the bin/ dir, ok. > > >Next up, re-upload the Zope file and check for a corrupted archive. > > >Any other ideas ? > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Christopher.Abraham@cio.treas.gov Thu Mar 18 21:22:22 1999 From: Christopher.Abraham@cio.treas.gov (Christopher.Abraham@cio.treas.gov) Date: Thu, 18 Mar 1999 16:22:22 -0500 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <85256738.007567CA.00@mail.cio.treas.gov> Hi. Here's the required History: Cold Fusion almost then found PHP3 and now ZOPE. I am running a P100 RH5.2 Apache 1.3, Kernel 2.0.36 and I am pretty sure I have Zope running: http://memes.org But neither my guru or I can get Apache to dance with Zope -- I am having all kinds of problems getting the admin page to work with me and my Login/PW is just not taking. My guru cannot even get it going and suggests using the Python server -- but I shall not be dashed -- any more info you need, I will give you a wee bit more: Want to use MySQL and will be developing a Writer's site -- for my fun and no profit, currently at: http://coelaboration.com -- I want to publish Hyperfiction and Hypertext using Zope as opposed to Perl or flatstatic... Cheers in advance... Chris From tony.mcdonald@ncl.ac.uk Thu Mar 18 22:33:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 18 Mar 1999 22:33:01 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903182236.WAA24270@cheviot.ncl.ac.uk> Hi all, I have an application that consists of 140+ XML documents, roughly 100k bytes each that I want to be able to query (using XSL pattern matching at present) and output to XML/HTML and RTF format. This will happen in real time (if at all possible). At the moment, my XML documents are held as files in a real file system (sacrilige! :). However, I'd like to get them into the database structure if at all possible, as I imagine it will make things easier in terms of searching. For example, the XML file Cell Biology is a good thing. If it weren't for Cell Biology, you wouldn't be around. This is lecture 1. This is lecture 2. A big bok Would lend itself to creation in the Zope database really easily (I think). XML elements (document, topic) and attributes such as id (used to uniquely identify an element) and title would be properties of the DTML document/method. So long as the id numbers were properly arranged, it should be *relatively* (good word that!) simple to recreate the original XML document. I assume that parsing the XML (in actual fact, the DTML doc/method would consist of *very little* XML I think, it all being taken care of in properties) to create HTML would be, again, relatively easy (my own tendency is to use the 'title' attribute as a class identifier for cascading style sheets). My question is, do people think that this idea could fly? I have spent *a long time* looking at how to get our Word (sorry for saying that!) documents into a format that means they can be easily put into a database and thereby benefit from all the good things that means. Several cul-de-sacs and wasted weekends later, it seems to me that Zope is coming out to be the closest thing to a solution for my problem... (I know from off-list discussions that there's a definite 'weirdness' about how people have been wanting/needing to implement things and then finding that (a) Zope does it already, (b) there's a product available or (c) someones working on it... !). any thoughts, as usual, greatly appreciated. tone. From jae@kavi.com Thu Mar 18 22:58:22 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 14:58:22 -0800 (PST) Subject: [Zope] ZSQL direct traveral question Message-ID: I've been messing around with using direct traveral on the ZSQL methods. I'm having a problem getting the traveral to work with anything more than one level of depth, eg: http://zope.kavi.com/mem/2/comp_admin/contacts/ Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. But it does work in this case: http://zope.kavi.com/comp_admin/contacts/mem/2/ Is this a restriction on the use of ZSQL direct traveral, or am I doing something wrong. If this is a restriction on how you can use direct traversal, I was wondering why, and if it'd be possible to 'fix' this. If so, I'm willing to do it and supply a patch, I assume this is functionality comes from Zope/lib/python/Shared/DC/ZRDB/DA.py, either in the DA.__call__ or in the Traverse object. I'll have to mess around with it a bit to figure out exactely whats going on (but I figured I'd ask about it first). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Thu Mar 18 23:21:24 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 18 Mar 1999 18:21:24 -0500 (EST) Subject: [Zope] Parsing XML into/out of the database In-Reply-To: <199903182236.WAA24270@cheviot.ncl.ac.uk> Message-ID: On Thu, 18 Mar 1999, Tony McDonald wrote: > Would lend itself to creation in the Zope database really easily (I think). > XML elements (document, topic) and attributes such as id (used to uniquely > identify an element) and title would be properties of the DTML > document/method. So long as the id numbers were properly arranged, it should > be *relatively* (good word that!) simple to recreate the original XML > document. I assume that parsing the XML (in actual fact, the DTML doc/method > would consist of *very little* XML I think, it all being taken care of in > properties) to create HTML would be, again, relatively easy (my own tendency > is to use the 'title' attribute as a class identifier for cascading style > sheets). > > My question is, do people think that this idea could fly? I have spent *a > long time* looking at how to get our Word (sorry for saying that!) documents This is more or less what I did for my original FAQ product (but on a much smaller scale). I found out XML docs map nicely onto Zope's DB structure. I think you should give it a try because really it is not much effort to implement. Since the FAQ development has moved to zdp.zope.org my site is no longer needed so I created a guest account with the following authentication info: guest bobo at URL http://www.gaaros.com:9673 You can visit it and see my approach to the problem. I should also include the code of the external method that creates the Zope objects. (I believe a couple of more zopistas asked me for source access so here is your chance.) I have backed up Zope's DB so you can mess around as much as you want. Pavlos From jkhoffman@usa.net Thu Mar 18 23:38:42 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 18:38:42 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > I've been messing around with using direct traveral on the ZSQL methods. > I'm having a problem getting the traveral to work with anything more than > one level of depth, eg: > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > But it does work in this case: > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > something wrong. Without seeing your folder hierarchy, I'm not quite sure what's going on. Frankly, my head feels like it's going to explode when I try and figure out how your second example even worked. What are comp_admin and contacts? Folders? Where do they fit in your folder hierarchy? I have an event calendar, in which I use direct traversal of a ZSQL Method to display a particular event. My hierarchy is as follows: + events [Folder] - event_details_html [DTML Method] - dbFindEventById [ZSQL Method] My dbFindEventById method takes on parameter, event_id. To use direct traversal on my dbFindEventById query, using the event_details_html file to display the details of the event with event_id of 2 requires the following URL: http://localhost/events/dbFindEventById/event_id/2/event_details_html At first, I tried: http://localhost/events/dbFindEventById/2/event_details_html which looks very close to your first example, and it did not work. Then I realized you are required to specify the name of the parameter in the URL as well, so I added event_id before the 2, and I was off to the races. I'm sure I've misunderstood your problem somewhere, and if I did, I apologize for spouting off nonsense. But, I figured this just might help, since I got tripped up when I first tried to use direct traversal, also. Better safe than sorry. :^) > John Eikenberry jkh From jae@kavi.com Thu Mar 18 23:58:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 15:58:05 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > I've been messing around with using direct traveral on the ZSQL methods. > > I'm having a problem getting the traveral to work with anything more than > > one level of depth, eg: > > > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > > But it does work in this case: > > > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > > something wrong. > > Without seeing your folder hierarchy, I'm not quite sure what's going on. > Frankly, my head feels like it's going to explode when I try and figure > out how your second example even worked. What are comp_admin and contacts? > Folders? Where do they fit in your folder hierarchy? Ok, a bit more info... mem ZSQL method (on top level - stands for member company) + comp_admin folder (company admin) + contacts folder (contact info for that company) contacts has an index_html which uses information returned from the mem query (its not how I use it, it won't even display with just #var). 'mem' takes one argument: comp_id (of which 2 is a test case) > I have an event calendar, in which I use direct traversal of a ZSQL Method > to display a particular event. My hierarchy is as follows: > > + events [Folder] > - event_details_html [DTML Method] > - dbFindEventById [ZSQL Method] > > My dbFindEventById method takes on parameter, event_id. To use direct > traversal on my dbFindEventById query, using the event_details_html file > to display the details of the event with event_id of 2 requires the > following URL: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > At first, I tried: > > http://localhost/events/dbFindEventById/2/event_details_html > > which looks very close to your first example, and it did not work. Then I > realized you are required to specify the name of the parameter in the URL > as well, so I added event_id before the 2, and I was off to the races. Actually, I've found the reverse to be true. When I try: http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ I get this error: Invalid integer value for comp_id Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 413, in publish (Info: /db/m/comp_id/2/comp_admin/contacts/) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 414, in __getitem__ (Object: CopySource) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 386, in __call__ (Object: CopySource) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File lib/python/Shared/DC/ZRDB/sqltest.py, line 192, in render (Object: comp_id) ValueError: (see above) If I use creosote.spew to output the comp_id value before calling the query (I made spew an external method on the top level, this has come in very handy), the value resolves to 'comp_id'. But when I don't use the comp_id arg (like in the original example, and spew shows the value to be 2), it works fine as long as the method using it is the next on the URL. > I'm sure I've misunderstood your problem somewhere, and if I did, I > apologize for spouting off nonsense. But, I figured this just might help, > since I got tripped up when I first tried to use direct traversal, also. > Better safe than sorry. :^) Actually you are close, but in your example you use it as I said it works. In your code app can you do something like this (fictional change of your example): http://localhost/events/dbFindEventById/ event_id/2/modify_event/edit_event_details_html (should be all one line) Make more sense now? BTW, thanks for the help. :) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Fri Mar 19 02:18:35 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 18:18:35 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > > > At first, I tried: > > > > http://localhost/events/dbFindEventById/2/event_details_html > > > > which looks very close to your first example, and it did not work. Then I > > realized you are required to specify the name of the parameter in the URL > > as well, so I added event_id before the 2, and I was off to the races. > > Actually, I've found the reverse to be true. When I try: > > http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ > > I get this error: > > Invalid integer value for comp_id > < Traceback snipped > Ok, I think I figured out why we have different (opposite) results in this. I don't think you checked the "Allow direct traversal" checkbox on the advanced management page for the ZSQL method. If I unchecked it, then I could traverse like so... http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ After checking it, I could traverse in this way... http://zope.kavi.com/mem/2/comp_admin/contacts/ Strange... :) Still doesn't address my original problem thought. I still can't get access to any of the results of the 'mem/2' query anywhere other than directly after it (on the url). Ie. http://zope.kavi.com/mem/2/comp_admin/contacts/index_html Doesn't work, but... http://zope.kavi.com/mem/2/test_html Does... I'm still digging through the ZSQL code looking for a way to fix this. I'll let everyone know once I've figured it out. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jkhoffman@usa.net Fri Mar 19 03:13:36 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:13:36 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, John Eikenberry wrote: > > [snip] > > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... Ok, here's a thought. What about trying: http://zope.kavi.com/comp_admin/contacts/mem/2/index_html Since the 'mem' ZSQL Method is in your root folder, it will be acquired by all folders below the root folder. Thus, the URL above should tell ZPublisher to go to the /comp_admin/contacts folder, then call the acquired 'mem' ZSQL method, with 2 as an argument, and using index_html to display the results. (Assuming the parameter name is not required, because you have checked 'Allow direct traversal', as you described.) I am curious to know what the 'Allow direct traversal' button does on the Advanced tab. Can anyone else here comment on that? Frankly, I didn't know it existed, as I've been able to use direct traversal just fine without it. It's curious to me that it changes the behavior of the traversal in the manner you demonstrated. I'm dying to know why. :^) > John Eikenberry jkh From jkhoffman@usa.net Fri Mar 19 03:17:47 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:17:47 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > > I'm sure I've misunderstood your problem somewhere, and if I did, I > > apologize for spouting off nonsense. But, I figured this just might help, > > since I got tripped up when I first tried to use direct traversal, also. > > Better safe than sorry. :^) > > Actually you are close, but in your example you use it as I said it works. > In your code app can you do something like this (fictional change of your > example): > > http://localhost/events/dbFindEventById/ > event_id/2/modify_event/edit_event_details_html In this case, I would probably do: http://localhost/events/modify_event/dbFindEventById/ event_id/2/edit_event_details_html (should all be one line) > Make more sense now? Yup. > BTW, thanks for the help. :) You bet. By the way, what in the world is creosote.spew? :^) > John Eikenberry jkh From TomJenkins@zentuit.com Fri Mar 19 03:19:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 22:19:32 -0500 Subject: [Zope] Tracebacks and feeling pretty dumb Message-ID: <199903190322.WAA05466@mail.digiweb.com> Hey folks, Boy I'm feeling mighty dumb, but I just now, after maybe 8 hours of zope stuff (late night after work), discovered where the tracebacks were hiding from me. I searched this list, but never actually saw where they were printed, I finally saw it in the Trinkets Tutorial which I'm sure I read earlier . So just in case someone else is out there in the same boat as I was - the tracebacks are comments in the html error page. DOH! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From kid@kendermedia.com Fri Mar 19 03:47:36 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Thu, 18 Mar 1999 19:47:36 -0800 (PST) Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <19990319034736.16171.rocketmail@send206.yahoomail.com> ---Christopher.Abraham@cio.treas.gov wrote: > http://memes.org > > But neither my guru or I can get Apache > to dance with Zope -- I am having all > kinds of problems getting the admin page > to work with me and my Login/PW is just > not taking. You'll want to check out the doc/WEBSERVER.txt file under your Zope directory. Make sure your running a recent enough version of Apache and have mod_rewrite installed. Then, you need to configure rewrite rules so that Apache will pass authentication info through to Zope. Kevin _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com From simon@joyful.com Fri Mar 19 03:55:39 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 19:55:39 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" References: <36EE5791.1B7AD457@GestaltTechnology.com> Message-ID: Fredy Villa writes: > This is another post to make you aware of a new source of > information for Zope. You can access #zope on the EFNet servers. Their thanks for the resource - I want to check it out. Maybe you could answer this for me and other irc newbies, since I cannot find an answer elsewhere: All EFNet servers I've tried require me to be running "identd". Is there one which doesn't ? It's not on my default redhat system and I won't install it if I don't have to. -Simon From TomJenkins@zentuit.com Fri Mar 19 04:01:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:01:14 -0500 Subject: [Zope] IRC channel In-Reply-To: References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" Message-ID: <199903190404.XAA15203@mail.digiweb.com> > Fredy Villa writes: > > > This is another post to make you aware of a new source of > > information for Zope. You can access #zope on the EFNet servers. Their > > thanks for the resource - I want to check it out. Maybe you could > answer this for me and other irc newbies, since I cannot find an > answer elsewhere: > > All EFNet servers I've tried require me to be running "identd". Is > there one which doesn't ? It's not on my default redhat system and I > won't install it if I don't have to. > Simon, AFAIK, all the EFNet servers require identd. If you are running ip-masq then you need midentd. You can find it at rpmfind website ( http://rpmfind.net/RPM ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From TomJenkins@zentuit.com Fri Mar 19 04:17:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:17:00 -0500 Subject: [Zope] IRC channel In-Reply-To: <199903190404.XAA15203@mail.digiweb.com> References: Message-ID: <199903190420.XAA28663@mail.digiweb.com> > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > Sorry, my mistake, there isn't an rpm for midentd... here's the url ftp://ftp.ox.compsoc.org.uk/pub/users/steve/midentd/ get the midentd-0.1.1.tar.gz file -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From Anthony Baxter Fri Mar 19 04:43:38 1999 From: Anthony Baxter (Anthony Baxter) Date: Fri, 19 Mar 1999 15:43:38 +1100 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Your message of "Thu, 18 Mar 1999 23:01:14 CDT." <199903190404.XAA15203@mail.digiweb.com> Message-ID: <199903190443.PAA11704@mbuna.arbhome.com.au> Heck, identd is a trivial enough protocol. You can always just write one in 2 lines of python which just returns "sod off" as the username. :) That EFnet require it is somewhat puzzling. Anthony > > Fredy Villa writes: > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > From simon@joyful.com Fri Mar 19 06:15:21 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 22:15:21 -0800 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Anthony Baxter's message of "Fri, 19 Mar 1999 15:43:38 +1100" References: <199903190443.PAA11704@mbuna.arbhome.com.au> Message-ID: Anthony Baxter writes: > Heck, identd is a trivial enough protocol. You can always just > write one in 2 lines of python which just returns "sod off" as the > username. :) Heh :) Thanks all, for the info. From kevin@studioinfo.com Fri Mar 19 06:36:21 1999 From: kevin@studioinfo.com (Kevin Teague) Date: Thu, 18 Mar 1999 22:36:21 -0800 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: I installed the Zope binary on a linux box, and everything went well. User authentication worked successfully with Apache using the 'REMOTE USER' environment variable. Then I tried to get ZMySQLDA to work, but I couldn't get the Zope Python install to find 'libmysqlclient'. I got a build of Python 1.5.1 to successfully import MySQL. So I decided to reinstall Zope from source, so that I could use my own Python. The source Zope built okay, but when I tried to start Zope through the web browser I got an "Internal Server Error" message from Apache, the error log said I had a "Premature end of script header". I've checked permission on the var dir and user authentication still seems to work fine. I couldn't figure out why I was getting the error, so I tried re-installing the binary distribution of Zope. No luck there either, I get the same "premature end of script header" error message. I've checked the Zope.cgi file, and it seems o.k. Does anyone have any idea why Zope.cgi is failing on me? Is there something I have to do to Apache or Zope if I've removed the Zope folder and then untarred and re-installed a new Zope? Don't know if this'll help, but this is what I get when I run Zope.cgi from the command line: Status: 500 Internal Server Error Bobo-Exception-File: lib/python/ZPublisher/Request.py Content-Type: text/html Bobo-Exception-Type: exceptions.KeyError Bobo-Exception-Value: SCRIPT_NAME Content-Length: 363 Bobo-Exception-Line: 167 exceptions.KeyError Sorry, an error occurred.

    Kevin Teague Kevin@StudioInfo.com Temporary Nelson address: #6-560 Baker street Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 From tony.mcdonald@ncl.ac.uk Fri Mar 19 06:26:32 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 19 Mar 1999 06:26:32 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903190636.GAA00186@cheviot.ncl.ac.uk> > Since the FAQ development has moved to zdp.zope.org my site is no longer > needed so I created a guest account with the following authentication > info: > Many thanks Pavlos - I saw that the Doc effort had moved to zdp.zope.org and is using structured text, and thought that it was a bit of an opportunity lost (no disrespect to the Zope Doc Effort of course) as I was amazed to see that the FAQ system you wrote was XML-based and hence easily extensible. > guest > bobo > > at URL http://www.gaaros.com:9673 > > You can visit it and see my approach to the problem. I should also include > the code of the external method that creates the Zope objects. (I believe > a couple of more zopistas asked me for source access so here is your > chance.) I have backed up Zope's DB so you can mess around as much as you > want. Thats excellent! - thanks a lot. I'll be snooping around later on once I get into work - I had looked at XMLConfig almost straight away, but had to put it to one side whilst I got to grips with Zope (and Python!) fundamentals. At least I've got somewhere to start from now... again many thanks for this, tone. From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 08:58:20 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 08:58:20 -0000 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <001f01be71e6$a359ca20$5c773fc1@media1> Also, and this is important! Don't forget to make sure that the cgi driectory holding Zope.cgi has ExecCGI turned on. As I said this is important, later versions of Apache don't turn it on by default. HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Dangoor To: ; Sent: Friday, March 19, 1999 3:47 AM Subject: Re: [Zope] Newbie: How to make Apache Play Nice... >---Christopher.Abraham@cio.treas.gov wrote: >> http://memes.org >> >> But neither my guru or I can get Apache >> to dance with Zope -- I am having all >> kinds of problems getting the admin page >> to work with me and my Login/PW is just >> not taking. > >You'll want to check out the doc/WEBSERVER.txt file under your Zope >directory. Make sure your running a recent enough version of Apache >and have mod_rewrite installed. Then, you need to configure rewrite >rules so that Apache will pass authentication info through to Zope. > >Kevin >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 09:03:47 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 09:03:47 -0000 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: <004701be71e7$661d68a0$5c773fc1@media1> The error you get when running Zope.cgi from the command line is a red herring, ignore it? It comes about because SCRIPT_NAME is set by the Web Server and as you aren't running it through such, you will get errors telling you that various ENVVARS do not exist. As to your other problem, hmm, it still sounds as if the var dir is not set correctly, maybe? HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Teague To: Sent: Friday, March 19, 1999 6:36 AM Subject: [Zope] Zope install help needed: "Premature end of script header" >I installed the Zope binary on a linux box, and everything went well. User >authentication worked successfully with Apache using the 'REMOTE USER' >environment variable. Then I tried to get ZMySQLDA to work, but I couldn't >get the Zope Python install to find 'libmysqlclient'. I got a build of >Python 1.5.1 to successfully import MySQL. > >So I decided to reinstall Zope from source, so that I could use my own >Python. The source Zope built okay, but when I tried to start Zope through >the web browser I got an "Internal Server Error" message from Apache, the >error log said I had a "Premature end of script header". I've checked >permission on the var dir and user authentication still seems to work fine. >I couldn't figure out why I was getting the error, so I tried re-installing >the binary distribution of Zope. No luck there either, I get the same >"premature end of script header" error message. I've checked the Zope.cgi >file, and it seems o.k. > >Does anyone have any idea why Zope.cgi is failing on me? Is there something >I have to do to Apache or Zope if I've removed the Zope folder and then >untarred and re-installed a new Zope? > >Don't know if this'll help, but this is what I get when I run Zope.cgi from >the command line: >Status: 500 Internal Server Error >Bobo-Exception-File: lib/python/ZPublisher/Request.py >Content-Type: text/html >Bobo-Exception-Type: exceptions.KeyError >Bobo-Exception-Value: SCRIPT_NAME >Content-Length: 363 >Bobo-Exception-Line: 167 > > > >exceptions.KeyError > > >Sorry, an error occurred.

    > > >Kevin Teague >Kevin@StudioInfo.com > >Temporary Nelson address: #6-560 Baker street >Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jaime@ml.com Fri Mar 19 14:18:57 1999 From: jaime@ml.com (Jaime A. Jofre) Date: Fri, 19 Mar 1999 14:18:57 +0000 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <36F25CD1.69125518@ml.com> Can anyone tell me how to setup up Zope using PCGI with Netscape Enterprise Server 3.51? I have read WEBSERVER.txt, but it only details Apache. Any help would be greatly appreciated. Cheers, Jaime From p.bizzarri@icube.it Fri Mar 19 15:13:06 1999 From: p.bizzarri@icube.it (Paolo Bizzarri) Date: Fri, 19 Mar 1999 16:13:06 +0100 Subject: [Zope] Access control problems. Message-ID: <36F26982.C8DBAF5@icube.it> Hi everybody, I am in a FAQish problem. I am using ZopeHTTPServer for setting up a complex intranet site. However, access control do not seem to work at all. Either I can build a public site (which is viewable by everybody), or I have to use SuperUser passwd to enter in a private site. I would like to allow user A to see folder X but not folder Y, and so on. I have created users, assigned roles, but it seems not to work. BTW, cut & paste do not seem to work at all. Any suggestions ? Thanks. -- ----------------------------------------------------------------------- | Paolo Bizzarri, I3 Icube Srl, Via Ridolfi 15, 56100 Pisa, Italy | | Email: p.bizzarri@icube.it WWW: www.icube.it | | Tel: 050 97 02 07 Fax: 050 36 31 588 | |-----------------------------------------------------------------------| | Red Hat Support Partner & Samba Consultant | ----------------------------------------------------------------------- From FVilla@GestaltTechnology.com Fri Mar 19 15:53:35 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 19 Mar 1999 10:53:35 -0500 Subject: [Zope] IRC channel References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" <199903190404.XAA15203@mail.digiweb.com> Message-ID: <36F272FE.52C87A31@GestaltTechnology.com> Simon, irc.cs.cmu.edu doesn't require it, last I checked. Fredy Villa bohemio@thetruthhurts.com Tom Jenkins wrote: > > Fredy Villa writes: > > > > > This is another post to make you aware of a new source of > > > information for Zope. You can access #zope on the EFNet servers. Their > > > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Y2K problem? The Mayans didn't have a millennium-2K problem! > Eric S. Raymond at IPC7, on learning that the Mayan calendar > takes 28 octillion years to wrap around From Brian@digicool.com Fri Mar 19 16:19:52 1999 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 19 Mar 1999 11:19:52 -0500 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <613145F79272D211914B0020AFF64019FD99@GANDALF> > Can anyone tell me how to setup up Zope using PCGI with Netscape > Enterprise Server 3.51? I have read WEBSERVER.txt, but it > only details > Apache. Any help would be greatly appreciated. > > Cheers, > > Jaime Jaime, Please see the url http://www.zope.org/Download/Prereleases/NetscapePlugin Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jamesh@altavista.net Fri Mar 19 17:11:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 09:11:12 -0800 (PST) Subject: [Zope] Security tab in home grown Product Message-ID: I'm resending this to the zope list, because I didn't get any response from the zope-dev list. Hi. I have made my first Product (a little message wall that people can post colored messages to), but I am having some trouble with the Security tab. When I press the tab, I get a Permissions screen that looks as it should, but when I click the change button (no matter what permissions I change, if any), I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /wall/manage_changePermissions) File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in manage_changePermissions (Object: RoleManager) File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, in setRoles AttributeError: manage_main I don't doubt that I am causing this, but since it isn't occuring in my code, I don't know how to go about finding the source of the problem. Thanks for any help you can give. -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From billr@coinet.com Fri Mar 19 17:31:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 19 Mar 1999 09:31:42 -0800 Subject: [Zope] frames and external method lookups Message-ID: <9903190931.ZM14151@saab.coinet.com> I have a DTML Document that references an External Method. This document is embedded inside another DTML document. If I view this document, then the page is rendered correctly. If I now take this document and reference it from a tag, Zope complains and says it can't find the external method. What's different here that causing me problems? Here's some more details, including the traceback: 1. Zope-1.10.2-linux2-x86 2. The innermost DTML docuemnt (lighttablebar) refers to the extermal method like this: 'looprange' is my external method and is located in the top level folder 'ltblSize' is a property of the document that "includes" this document. This innermost DTML docuemnt is also located in the top-level folder. 3. The next DTML document (lighttable_frame) includes the previous document with a simple #var command (in between some other html stuff): This document has a property named 'ltblSize' defined as 6. This document lives two folders down from the top-level folder I can use the View tab in the manager to see the rendition of this page and it looks just fine and there are no complaints about looprange(). 4. If I include the previous DTML document in another DTML document that is specifying some frames, e.g.: Stock Book When I use the View tab to see what this page looks like, I get the two frames, but in the lighttable_frame frame, I get an error message about looprange being undefined: ---- start of traceback message ---- The specified module, looprange, couldn't be opened. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Gamba_home/Stockbook/LightTable/lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: lighttable_frame) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 205, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_In.py, line 620, in renderwob (Object: looprange(ltblSize)) File lib/python/DocumentTemplate/DT_Util.py, line 266, in eval (Object: looprange(ltblSize)) File , line 0, in ? File lib/python/Products/ExternalMethod/ExternalMethod.py, line 233, in __call__ (Object: CopySource) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 195, in getFunction (Object: CopySource) File lib/python/App/Extensions.py, line 137, in getObject Module Error: (see above) ---- end of traceback message ---- So again, what is happening when the DTML doc is being refered to inside a frame that is different than not in a frame (and more to the point, how do I get around this apparent problem)? -Bill Randle Central Oregon Internet billr@coinet.com From jim@digicool.com Fri Mar 19 17:55:06 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 19 Mar 1999 12:55:06 -0500 Subject: [Zope] Security tab in home grown Product References: Message-ID: <36F28F7A.5B117767@digicool.com> "James A. Hillyerd" wrote: > > I'm resending this to the zope list, because I didn't get any response > from the zope-dev list. > > Hi. > > I have made my first Product (a little message wall that people can post > colored messages to), but I am having some trouble with the Security tab. > When I press the tab, I get a Permissions screen that looks as it should, > but when I click the change button (no matter what permissions I change, > if any), I get the following error: > > Sorry, an error occurred. > > Traceback (innermost last): > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in > publish_module > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in > publish > (Info: /wall/manage_changePermissions) > File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in > manage_changePermissions > (Object: RoleManager) > File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, > in setRoles > AttributeError: manage_main > > I don't doubt that I am causing this, but since it isn't occuring in my > code, I don't know how to go about finding the source of the problem. > > Thanks for any help you can give. Zope (up to 1.10.x) expects every managed object to have a manage_main method that provides the default management interface for the object. You need to rename or create an alias from your default management method to manage_main. In Zope 1.10, there will be a new inherited method, manage_workspace, which should not be overridden, that picks the first item in you manage_options as the default management interface. This gives you more flexibility in naming and will allow more dynamic view management. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jamesh@altavista.net Fri Mar 19 18:32:25 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 10:32:25 -0800 (PST) Subject: [Zope] Security tab in home grown Product In-Reply-To: <36F28F7A.5B117767@digicool.com> Message-ID: On Fri, 19 Mar 1999, Jim Fulton wrote: > > Zope (up to 1.10.x) expects every managed object to have a manage_main > method that provides the default management interface for the object. > > You need to rename or create an alias from your default management > method to manage_main. > Oh, I see. So the manage_main I see is actually being acquired from the folder my product instance is installed in? If so that would explain why adding things to it actually adds things to it's parent folder. If I write a manage_main method, will it start magically working, or do I need to add it to __init__.methods and/or one of the __ac_permissions__ tuples? > In Zope 1.10, there will be a new inherited method, manage_workspace, > which should not be overridden, that picks the first item in you > manage_options as the default management interface. This gives > you more flexibility in naming and will allow more dynamic view > management. > Sounds cool to me. =) [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From ropjes@groovy.xs4all.nl Fri Mar 19 18:52:21 1999 From: ropjes@groovy.xs4all.nl (Rop Slijkerman) Date: Fri, 19 Mar 1999 18:52:21 +0000 (GMT) Subject: [Zope] NameError: In-Reply-To: <9903190931.ZM14151@saab.coinet.com> Message-ID: In a database with personal bookmarks wich I created as a test I get the following error when trying to update a bookmark. This is new. It worked before I had to reinstall Linux from scratch, wich had ofcourse nothing to do with zope. This error is the result of calling this method:

    Your data was Updated in the Database! The SQL statement (SQL_update_bookmarks): UPDATE bookmarks SET naam=, bookmark_url= WHERE nummer= - Rop From mbernstein@profitscape.net Fri Mar 19 19:38:05 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 11:38:05 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 Message-ID: <36F2A79D.FEF0FDD@profitscape.net> I apologize if for the off-topic nature of this post, but felt it was too important to ignore. Microsoft has released IE5, which is non-compliant with many of the standards that Microsoft has helped author. As widespread compliance to standards is one of the things that will greatly enhance Zopes success in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue deserved to be aired here too. The original statement from the WSP can be found at: http://www.webstandards.org/ie5.txt Following is an email posted to another list I am on, as I think this sums up the appropriate responses rather well. Michael Bernstein -------- Original Message -------- From: "A List Apart" Subject: A List Apart - Special Announcement To: "Michael Bernstein" Greetings Webmakers. The following is a special note from our friend Glenn Davis regarding a somewhat urgent and pressing issue. I won't waste time talking about it, as the following explains it all quite well. I hope everyone finds it in them to support the cause. Thanks. -Brian M. Platz, ALA Co-Moderator ------ Greetings! Since 1993 I've done my best to show everyone the good on the web and to help anyone who wanted it gain the knowledge they needed to create that good. Today I'm asking for your help. I'm not asking not as Glenn Davis, CTO of Project Cool, and not as Glenn Davis, cofounder of The Web Standards Project. I'm asking as Glenn Davis, a man who, for the past six years has worked to make the web a better place for everyone. Recently Microsoft released their 5.0 browser and after all this time there is still not 100% support for the standards that make web development easier. Standards that Microsoft helped create. Below are three simple letters. Very to the point letters that ask one very simple question. I'm hoping that you'll pick just one of those letters and use it to ask Microsoft the very simple question within. If you would copy just one of those letters into an email and send that email to wasp@microsoft.com I would very much appreciate it. This email address is one that Microsoft set up for email about standards. I'm also asking that you pass this email along to anyone else who has ever tried to make a webpage. My sincerest thanks for the help you provide. Sincerely and simply, Glenn Davis ------------------ CSS-1 Letter-------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for CSS-1 in your Internet Explorer browser. Could you please respond with the date when I might expect this? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) DOM Letter-------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for the W3C DOM in your Internet Explorer browser. Please let me know when that will happen. A simple date will suffice for a response. If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) HTML 4.0 Letter-------------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for HTML 4.0 in your Internet Explorer browser. On what date will this event occur? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) ------------------- From ben@amvalue.com Fri Mar 19 21:22:14 1999 From: ben@amvalue.com (Benjamin Suto) Date: Fri, 19 Mar 1999 16:22:14 -0500 Subject: [Zope] Web Application Software Message-ID: <36F2C006.9D7E89C9@amvalue.com> I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben From Paul@digicool.com Fri Mar 19 21:33:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 16:33:38 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with which to attach his persona. Glenn got his start at InfiNet, our former majority owner. I remember when he shared a 10x10 office with the other Mac person there. I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, I'm asking as a humble guy that singlehandedly saved the web" part. That paragraph is so pathetic, I can't believe he actually wrote it. IMO opinion, the only cause he is advancing is himself. It's a shame, because browser vendors _do_ need to be beaten into standards compliance and away from bait-and-switch. --Paul > -----Original Message----- > From: Michael Bernstein [mailto:mbernstein@profitscape.net] > Sent: Friday, March 19, 1999 2:38 PM > To: zope@zope.org > Subject: [Zope] OT: A petition condemning non-standard > compliance in IE5 > > > I apologize if for the off-topic nature of this post, but felt it was > too important to ignore. > > Microsoft has released IE5, which is non-compliant with many of the > standards that Microsoft has helped author. As widespread > compliance to > standards is one of the things that will greatly enhance Zopes success > in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue > deserved to be aired here too. > > The original statement from the WSP can be found at: > http://www.webstandards.org/ie5.txt > > Following is an email posted to another list I am on, as I think this > sums up the appropriate responses rather well. > > Michael Bernstein > > -------- Original Message -------- > From: "A List Apart" > Subject: A List Apart - Special Announcement > To: "Michael Bernstein" > > Greetings Webmakers. > > The following is a special note from our friend Glenn Davis > regarding a > somewhat urgent and pressing issue. I won't waste time > talking about it, > as > the following explains it all quite well. I hope everyone finds it in > them > to support the cause. > > Thanks. > > -Brian M. Platz, ALA Co-Moderator > > > ------ > Greetings! > Since 1993 I've done my best to show everyone the good on > the web and > to > help anyone who wanted it gain the knowledge they needed to > create that > good. Today I'm asking for your help. I'm not asking not as Glenn > Davis, > CTO of Project Cool, and not as Glenn Davis, cofounder of The Web > Standards > Project. I'm asking as Glenn Davis, a man who, for the past six years > has > worked to make the web a better place for everyone. > Recently Microsoft released their 5.0 browser and after > all this time > there is still not 100% support for the standards that make web > development > easier. Standards that Microsoft helped create. > Below are three simple letters. Very to the point letters that ask > one > very simple question. I'm hoping that you'll pick just one of those > letters and use it to ask Microsoft the very simple question > within. If > you would copy just one of those letters into an email and send that > email > to wasp@microsoft.com I would very much appreciate it. This email > address > is one that Microsoft set up for email about standards. I'm > also asking > that you pass this email along to anyone else who has ever > tried to make > a > webpage. > My sincerest thanks for the help you provide. > > > Sincerely and simply, > Glenn Davis > > ------------------ > CSS-1 Letter-------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > CSS-1 in your Internet Explorer browser. Could you please > respond with > the > date when I might expect this? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > Sincerely, > (Your name here) > (Your company name here) > > > DOM Letter-------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > the > W3C DOM in your Internet Explorer browser. Please let me > know when that > will happen. A simple date will suffice for a response. > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > HTML 4.0 Letter-------------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > HTML > 4.0 in your Internet Explorer browser. On what date will this event > occur? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > ------------------- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Fri Mar 19 21:25:51 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Fri, 19 Mar 1999 16:25:51 -0500 Subject: [Zope] ZServer licensing Message-ID: <199903192129.QAA13415@mail.digiweb.com> Hello all, Since ZServer is based on Medusa, does a commercial enterprise have to pay the $200/computer license? Or is ZServer released under a true Open Source license (somehow)? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From mbernstein@profitscape.net Fri Mar 19 21:36:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 13:36:16 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 References: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Message-ID: <36F2C350.7DD65AF5@profitscape.net> Paul Everitt wrote: > > Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with > which to attach his persona. Glenn got his start at InfiNet, our former > majority owner. I remember when he shared a 10x10 office with the other > Mac person there. > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, > I'm asking as a humble guy that singlehandedly saved the web" part. > That paragraph is so pathetic, I can't believe he actually wrote it. Ooh, that is so harsh, dude. :^) > IMO opinion, the only cause he is advancing is himself. It's a shame, > because browser vendors _do_ need to be beaten into standards compliance > and away from bait-and-switch. Ok, but what do you think of using the three templated emails? I feel that they're rather well written, and could be effective. After all, this is about results, right? Michael Bernstein From petrilli@amber.org Fri Mar 19 21:40:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Fri, 19 Mar 1999 16:40:24 -0500 Subject: [Zope] ZServer licensing In-Reply-To: <199903192129.QAA13415@mail.digiweb.com>; from Tom Jenkins on Fri, Mar 19, 1999 at 04:25:51PM -0500 References: <199903192129.QAA13415@mail.digiweb.com> Message-ID: <19990319164024.B22929@amber.org> On Fri, Mar 19, 1999 at 04:25:51PM -0500, Tom Jenkins wrote: > Hello all, > Since ZServer is based on Medusa, does a commercial enterprise have > to pay the $200/computer license? Or is ZServer released under a true > Open Source license (somehow)? I believe the current agreement that Digital Creations has reached with Sam Rushing (the author of Medusa) allows for open-source-style distribution of ZServer so long as it's used with Zope. Paul can probably corret the exact legal situation, but basically DC bought an unlimited license to give it away ... say thank you :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From simon@joyful.com Fri Mar 19 22:07:54 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 14:07:54 -0800 Subject: [Zope] ZServer licensing In-Reply-To: Christopher Petrilli's message of "Fri, 19 Mar 1999 16:40:24 -0500" References: <199903192129.QAA13415@mail.digiweb.com> <19990319164024.B22929@amber.org> Message-ID: Christopher Petrilli writes: > probably corret the exact legal situation, but basically DC bought an > unlimited license to give it away ... say thank you :-) they *bought* it ? really ? From Paul@digicool.com Fri Mar 19 23:00:26 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:00:26 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F26@GANDALF> Michael wrote: > Paul wrote: > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. > Hyper Star, > > I'm asking as a humble guy that singlehandedly saved the web" part. > > That paragraph is so pathetic, I can't believe he actually wrote it. > > Ooh, that is so harsh, dude. :^) OK, I agree, and I ought to just focus on his words rather than on him. Public retraction on the personal stuff, BUT I absolutely stand behind taking offense at the words. If you're going to lead an offensive based on principal, make the self-aggrandizement a bit more subtle. Hmm, didn't turn out to be much of a retraction. :^) --Paul From Paul@digicool.com Fri Mar 19 23:04:45 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:04:45 -0500 Subject: [Zope] ZServer licensing Message-ID: <613145F79272D211914B0020AFF640190D9F27@GANDALF> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but basically DC > bought an > > unlimited license to give it away ... say thank you :-) > > they *bought* it ? really ? We reached a mutually agreeable arrangement whereby Medusa could become the core for our object publishing system, under the Zope license. Definately turned out to be a win-win-win (Sam, DC, and Zope). --Paul From simon@joyful.com Fri Mar 19 23:10:31 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 15:10:31 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Fri, 19 Mar 1999 10:53:35 -0500" References: <199903190404.XAA15203@mail.digiweb.com> <36F272FE.52C87A31@GestaltTechnology.com> Message-ID: Fredy Villa writes: > irc.cs.cmu.edu doesn't require it, last I checked. I get: [info] Connecting to irc.cs.cmu.edu port 6667... {irc.cs.cmu.edu} *** Looking up your hostname... {irc.cs.cmu.edu} *** Checking Ident {irc.cs.cmu.edu} *** Found your hostname [info] Not enough parameters: Not enough parameters [info] You have not registered From vanandel@ucar.edu Sat Mar 20 00:56:24 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Fri, 19 Mar 1999 17:56:24 -0700 Subject: [Zope] Status of Collector? Message-ID: <199903200056.RAA27359@stout.atd.ucar.edu> I see that the bug report and feature request lists are implemented using the "Collector". What's the status of this? 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) 2) Is it purchased from Digital Creations? Thanks much. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From jae@kavi.com Sat Mar 20 01:50:55 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 17:50:55 -0800 (PST) Subject: [Zope] ZServer licensing In-Reply-To: <19990319164024.B22929@amber.org> Message-ID: On Fri, 19 Mar 1999, Christopher Petrilli wrote: > I believe the current agreement that Digital Creations has reached with > Sam Rushing (the author of Medusa) allows for open-source-style > distribution of ZServer so long as it's used with Zope. Paul can AFAIK, ZServer was released (including Medusa) under the same license as the rest of Zope. Which means that all of it is free software, including the medusa code it contains. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Sat Mar 20 02:09:29 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 18:09:29 -0800 (PST) Subject: [Zope] #raise problem? Message-ID: I just used the #raise tag for the first time, and its not working the way I thought it was supposed to. When I raise, I get always just get... Sorry, and error occured. (plus the traceback, but that's not relevant) Where my DTML looks like this... You are not authorized to view this information. (I didn't use Unauthorized as I didn't want an a login box) The problem is that I thought that it was supposed to display... You are not authorized to view this information. NOT Sorry, and error occured. Any tips? PS. The title is set to "Permission Denied" as its supposed to. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From hadar@verticality.com Sat Mar 20 15:03:58 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:03:58 -0500 Subject: [Zope] Status of Collector? In-Reply-To: <199903200056.RAA27359@stout.atd.ucar.edu> Message-ID: <000a01be72e2$e1beb620$7863efa1@hadar.bestweb.net> Joe wrote: > I see that the bug report and feature request > lists are implemented using the "Collector". > What's the status of this? > > 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) Nope. > 2) Is it purchased from Digital Creations? Yes. At the moment, we are selling Collector. A number of copies have been sold already. There are a couple of things to note about a few of the packages that we have been selling (relatively privately lately): 1) Most have little documentation (read the source Luke :-) 2) Our license specifically reserves the right to give the software away at some future point (so you need to realize you are paying to get it now, and shouldn't be annoyed when/if others get it for free!) 3) Our license specifically prohibits redistribution, or the creation of derivative works (for distribution) 4) We permit unlimited internal use of the code, including operating public websites 5) We offer email-based support for 90 days (for 2 contacts usually) 6) The license is for 5 developers only. If you have more, you buy more copies 7) Additional support options are available for purchase. The point of the above isn't to make a lot of money. We're selling more copies than we anticipated, but hardly enough to make this our business model. The point of charging is to cover the inevitable support costs of shipping a product that has little documentation, but is more technically advanced to use than the content-oriented Zope general release. A secondary benefit is that people who purchase now are clearly motivated to use the product(s). Therefore, the support questions tend to be focused around real-world use of the products, and help us make them more robust for the inevitable Open Source release (whenever that might be). So, which products are we currently offering for sale? 1) Collector 2) Z Tables 3) Z Network Client 4) Infoseek DA In general, pricing is at $1,500 per package. The exception in the above list is Collector, which is $2,000. The reason? It makes heavy use of Z Tables, so essentially you are getting two products for the price on 1.3333 products :-). Those who wish to discuss this (either to become customers, or to tell me that we're "off base") should write to me directly, and _not_ post to the list. Hadar Pedhazur From hadar@verticality.com Sat Mar 20 15:10:21 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:10:21 -0500 Subject: [Zope] ZServer licensing In-Reply-To: Message-ID: <000b01be72e3$c60f80c0$7863efa1@hadar.bestweb.net> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but > > basically DC bought an unlimited license to give > > it away ... say thank you :-) > > they *bought* it ? really ? I know that a number of people responded to this already, including Paul. However, he didn't give as concrete response as this direct question requests. The answer is _yes_, Digital Creations most definitely paid _real money_ to Sam for the right to embed parts of Medusa in ZServer. However, the intent of the license is to allow unlimited, free, Open Source(tm) use, within the Zope environment. If you don't intend to use Zope, then you should be licensing Medusa separately from Sam Rushing. We highly recommend it (obviously), and have put our money where our mouth is. The reason that this is an important question to answer is that we are so committed to the Open Source movement, that not only do we release stuff that we wrote, but when appropriate, we will invest hard cash to further the community as well (ZServer being but one example). From tpatrick@IndigoNetworks.com Sat Mar 20 18:20:12 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Sat, 20 Mar 1999 12:20:12 -0600 Subject: [Zope] Web Application Software Message-ID: <57D47461794DD211825300A0C9D17EF906C89F@IGOPDC01> I do not know much about btrieve. If you can make btrieve a data source you are home free. All you need is the connector/drivers. http://www.zope.org/Download/Adapters Also look into: http://www.python.org/download/Contributed.html#Database Typically these modules make there way into zope as they are existing python modules. Actually I would gather that Btrieve has a c interface that would make a great product. As with all projects .... it depends. Using attributes is the key to zope. If you take advantage of its ability to store session variables Zope is far better than other solutions because you do not need a database to store info during a transaction, you can simply write it to an attribute in zope thus lowering the # database calls. I guess the implementation depends on allot of variables that were not listed in your email. 1. # of concurrent users 2. # of queries and "How databasy is the application? Big Queries? OnChange?" 3. Specifics on your data model 4. # of tasks required 5. How OO(Object Oriented) are you? It is a difficult concept to cover but developmental access to ZOPE is remote by nature. Anything you can do in Zope is accessible anywhere, by anyone else. Except for installing modules and products, you do not need machine access ---> Everything is done online and inside of Zope. It is convenient that way. Look into the bug collector for the ZOPE site. It allows many levels of access to the bug database except there is not database just Ztables. It might be just the ticket. http://www.zope.org/Collector Also take a look at the example folder here http://www.zope.org/Download/Contrib Specifically the DTML EXAMPLE FOLDER --> IT WILL GIVE YOU LOTS O' CODE and HINTS Just think in OO and Zope will work. Best of luck. Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Benjamin Suto [mailto:ben@amvalue.com] Sent: Friday, March 19, 1999 3:22 PM To: zope@zope.org Subject: [Zope] Web Application Software I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From roeder@berg.net Sat Mar 20 17:47:22 1999 From: roeder@berg.net (Maik Roeder) Date: Sat, 20 Mar 1999 18:47:22 +0100 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <99032019551700.01550@alpha> Hi all ! I am new to Zope, and I have a problem with External Methods. Everytime I change the implementation of my file in Extensions/test.py I have to reimport the External Method to see the changes. What am I doing wrong ? I just want the changes I made to the source code to be reflected when I reload a page ! I hope someone can explain what I am doing wrong here. Maik Röder Some more details: I have a folder called VMBI and an external method test in it. Everything works just fine, the index_html file has a call to the external method, which just prints "Hello World!" So the following URL http://localhost:9673/VMBI/test prints Hello World ! But when I change the original source code to print for example Hello Zope ! Then upon reloading the web page http://localhost:9673/VMBI/test there still is printed Hello World ! What's going on here ? From jae@kavi.com Sat Mar 20 22:08:52 1999 From: jae@kavi.com (John Eikenberry) Date: Sat, 20 Mar 1999 14:08:52 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <99032019551700.01550@alpha> Message-ID: On Sat, 20 Mar 1999, Maik Roeder wrote: > Everytime I change the implementation of my file in Extensions/test.py I have > to reimport the External Method to see the changes. You don't have to delete and recreate an External Method each time you change it's file. But you do have to go back to its properties page and hit the "Edit" button to reload its module (this is actually a nice feature of python, being able to reload modules at run time). > What am I doing wrong ? I just want the changes I made to the source > code to be reflected when I reload a page ! Well, it may be possible to stat the External Methods file each time its used, and reload it if its changed (you'd have to store its last modification time somewhere to compare against). This probably isn't done for performance reasons. Perhaps it could be linked to the BOBO_DEBUG_MODE environmental variable or something to address this issue. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Sat Mar 20 22:52:10 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 14:52:10 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Message-ID: Is there a similar way to reload code for a Product, or is the shutdown/restart of Zope necessary? If I do have to continue the shutdown/restart process, is there any way of tuning PCGI so that it loads up faster? Thanks. -james On Sat, 20 Mar 1999, John Eikenberry wrote: > > You don't have to delete and recreate an External Method each time you > change it's file. But you do have to go back to its properties page and > hit the "Edit" button to reload its module (this is actually a nice > feature of python, being able to reload modules at run time). [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From jamesh@altavista.net Sat Mar 20 23:52:37 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 15:52:37 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <36F42B23.39763A52@rubic.com> Message-ID: On Sat, 20 Mar 1999, Jeff Bauer wrote: > "James A. Hillyerd" wrote: > > If I do have to continue the shutdown/restart process, is > > there any way of tuning PCGI so that it loads up faster? > > In the pcgi/Util directory, you'll find a killpcgi.py > script. You could hack it to perform a restart, i.e. > launch a new pcgi process after killing the old one. > This would speed up your initial connect time and be > much faster during debugging (multiple restarts). > But wouldn't that kill the Zope process instead of having it shut itself down? How gracefully does Zope exit when receiving a SIGTERM? > Best regards, > > Jeff Bauer > Rubicon, Inc. > [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From quinn@challenge.calarts.edu Sun Mar 21 03:25:19 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Sat, 20 Mar 1999 19:25:19 -0800 Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Your message of "Sat, 20 Mar 1999 15:52:37 PST." Message-ID: <199903210325.TAA36206@challenge.calarts.edu> > On Sat, 20 Mar 1999, Jeff Bauer wrote: > > > "James A. Hillyerd" wrote: > > > If I do have to continue the shutdown/restart process, is > > > there any way of tuning PCGI so that it loads up faster? > > > > In the pcgi/Util directory, you'll find a killpcgi.py > > script. You could hack it to perform a restart, i.e. > > launch a new pcgi process after killing the old one. > > This would speed up your initial connect time and be > > much faster during debugging (multiple restarts). > > A simple way that works for me is, when debugging, have a normal cgi version postfixed with -c and use that. This brings me to another thing: the default zope distribution doesn't include ZCGI and friends, I assume because Zope users supposedly have no interest in normal cgi. I think it should be included anyway, so that Full Zope is a superset of Only ZP/ZT. That's more intuitive, and then you don't have to download both if you want to use both :) And ZCGI.py is only a small text file, after all. And perhaps zope users are interested in ZCGI after all, or does zope make assumptions about running persistently (can't see how it could, without violating http's statelessness). And as far as tuning pcgi: you could shorten pcgi_socket():delay or the 2 second sleep() at the end of pcgiStartProc(). The first one could probably be pretty safely shortened with the miniscule cost of a chance of a few extra connect() calls, but the second one should probably stay the same, although I'm not clear on its purpose (give time for the child to sort itself out?). Here's a random question: how come the win32 pcgiConnect uses CONNDELAY (defined in pcgi.h as 1), while the unix version says int delay=1; ? See, that's the problem with open source: all sorts of grubby randoms can go rooting through your code :) From jeffbauer@bigfoot.com Sun Mar 21 04:10:43 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 22:10:43 -0600 Subject: [Zope] Why do I have to reimport External Methods ? References: <199903210325.TAA36206@challenge.calarts.edu> Message-ID: <36F47143.814CF865@rubic.com> Quinn Dunkan wrote: > And as far as tuning pcgi: you could shorten pcgi_socket():delay > or the 2 second sleep() at the end of pcgiStartProc(). The first > one could probably be pretty safely shortened with the miniscule > cost of a chance of a few extra connect() calls, You may season to taste. The 2 second pause seemed safe enough on most tested systems, since we're flying blind. We've reserved an extra header byte to designate out-of-band data that could be much smarter about how to handle this, eventually. > but the second one should probably stay the same, although > I'm not clear on its purpose (give time for the child to > sort itself out?). I don't have the code here, but it's probably trying to avoid some problem that I encountered when it was missing . > Here's a random question: how come the win32 pcgiConnect uses > CONNDELAY (defined in pcgi.h as 1), while the unix version > says int delay=1; ? Probably historical flotsam. The win32 portion of pcgi is almost a completely separate product and only coexists with its Unix cousin by virtue of an overabundance of #ifdef clauses. I've mentioned this before, but it probably won't hurt to repeat. I don't think the win32 version of pcgi as the best solution for this sort of thing. It's mainly there to fill out a niche. Process launch is more expensive under Windows than Unix, so the Medusa/ZServer approach is probably more sensible in that environment, where good performance is desired. > See, that's the problem with open source: all sorts of grubby > randoms can go rooting through your code :) I don't consider that a problem. ;-) Best regards, Jeff Bauer Rubicon, Inc. From tsarna@endicor.com Sun Mar 21 21:17:56 1999 From: tsarna@endicor.com (Ty Sarna) Date: 21 Mar 1999 21:17:56 GMT Subject: [Zope] Calendar tag released Message-ID: <922051077.270607@zoo-of-death.endicor.com> People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From raver@box.dust.za.net Mon Mar 22 09:52:16 1999 From: raver@box.dust.za.net (Raver) Date: Mon, 22 Mar 1999 10:52:16 +0100 Subject: [Zope] Make site searchable Message-ID: <19990322105216.A461@box.dust.za.net> Hi! I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Help is much appreciated! Sture Lygren From wade@okaynetwork.com Mon Mar 22 13:44:22 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 08:44:22 -0500 Subject: [Zope] one 'document' in many 'folders' Message-ID: <199903221343.IAA17544@gem.lightlink.com> As a demonstration project to try and get a client to go with Zope, I'm converting a newsfeed database that I had originally built using Perl. The object of the game is to pull fresh articles from a Reuters server every two hours and put them in a bin. A human editor goes through the bin, culls and sorts the articles, edits where appropriate. One article may appear in more than one section of the site. For example, an article titled "Zope Is Cool" might appear in the Python, Web Development, and Open Source sections. Each section has its own contents page. This is where I get confused. My Perl application simply used the filesystem as a database, and generated three separate static copies of "Zope Is Cool", placing one in each of three directories: /python, /web_development, and /open_source. I suspect there are much better ways to do it in Zope, but how do I organize things? My naive idea is to make each article a Document, one of whose properties is a list (or dictionary) of categories in which it should be placed. Generating each section's contents page would then take some figuring out, and performance on doing the contents page would be a concern. If there's a better way, I'd certainly appreciate hearing about it. Signed, Confused a/k/a Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From sfranke@cdc-group.com Mon Mar 22 14:32:06 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 15:32:06 +0100 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Correct me if I'm wrong, but the only way I see to do this *inside* the Zope application is to keep all your articles inside one folder (pool) and have key documents in your tree structure which reference an article in the pool. I don't know if problems appear when you establish an acyclic directed graph structure in the object hierarchy itself (I asked the question myself months ago without an answer). I see no point why it shouldn't work, but it is not maintained by the application. An interesting fact is that your object's properties vary when accessed by different paths due to the acquisition structure. An object inside Zope's database (again, correct me, if...) doesn't know about its father. It only knows about its sons, the aq_parent path is constructed on each access. Would also like to hear more about this... Stefan > -----Ursprüngliche Nachricht----- > Von: Wade Leftwich [SMTP:wade@lightlink.com] > Gesendet am: Montag, 22. März 1999 13:44 > An: zope@zope.org > Betreff: [Zope] one 'document' in many 'folders' > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should > be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. > > Signed, > > Confused a/k/a > > > > > > Wade Leftwich > Okay Network Services, Ithaca NY > tel 607-277-1334 fax 607-272-3612 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Paul@digicool.com Mon Mar 22 14:49:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 22 Mar 1999 09:49:14 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <613145F79272D211914B0020AFF640190D9F2D@gandalf.digicool.com> Jim wrote: > I decided before signing up with a hosting server to wait for > Zope 2, which > I've seen a couple of references to. What's the deal on > that? One place > promised a better integrated web server. If Zope moves more > torward being a > totally self contained server, then I don't want to mess with > Apache or IIS. I expect ZServer, which is the better integrated package that you're talking about, to enter beta within the next three weeks. --Paul From petrilli@amber.org Mon Mar 22 14:44:11 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 09:44:11 -0500 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net>; from Raver on Mon, Mar 22, 1999 at 10:52:16AM +0100 References: <19990322105216.A461@box.dust.za.net> Message-ID: <19990322094411.A5636@amber.org> On Mon, Mar 22, 1999 at 10:52:16AM +0100, Raver wrote: > Hi! > > I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Check out the FAQ on http://zdp.zope.org it has some information on how to use the built-in searching capabilities :-) It's not perfect, and needs lots more work, but it's a start. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From kid@kendermedia.com Mon Mar 22 15:05:07 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 10:05:07 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <001b01be7475$6665dd20$7c5addc7@kid> ----- Original Message ----- From: Wade Leftwich To: Sent: Monday, March 22, 1999 8:44 AM Subject: [Zope] one 'document' in many 'folders' > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. This application sounds similar to stuff that I (and others on this list are trying to accomplish). > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? My immediate term solution is to make multiple copies of the article in the ZDB. I agree that this is suboptimal. Paul@DC has mentioned that they are working on a "Catalog" feature that they would like to integrate with Zope. This feature will be *perfect* for this application (and many others). Unfortunately, I don't think this is on the very near term radar scope. Depending on how far out Catalog is, and when I manage to finish off the basic necessities for my sites, I was thinking of delving into Zope's btree stuff and trying to put together some kind of search interface. Right now, though, I've still got a bunch of work to do before I get to that point. Kevin From wade@okaynetwork.com Mon Mar 22 15:39:05 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 10:39:05 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <199903221538.KAA22051@gem.lightlink.com> What a great mailing list! I posted my question, shovelled the driveway (Ithaca NY, 8" of heavy wet snow last night), had breakfast and an extra cup of coffee, then came back to my desk to find 2 good answers. Thanks Stefan and Kevin. Well, on the one hand I'm pleased to hear that my question wasn't trivial. But I'm disappointed to hear that my problem is difficult. I'm competing against Cold Fusion here, and the problem resolves itself pretty easily with linked tables. (At least until I actually try to write the code.) So maybe I should just co-opt the competition and use ZSQL? But the odb is so nice, I really want to make it work that way. I don't really need for the URLs to look like a directory structure: instead of /open_source/zopeiscool, it would be okay for the article URL to be /zopeiscool?section=open_source. But that still leaves the problem of generating a contents page for each section. I suppose I could have a script that periodically-or-on-demand walks through the articles and generates a fresh static contents page for each section. Seems kind of non-zopish, but that might be the best way to get decent rendering performance on the contents page anyway. (The site is very active.) >an acyclic directed graph structure in the object hierarchy itself Yow! The original question: > > -----Ursprüngliche Nachricht----- > > Von: Wade Leftwich [SMTP:wade@lightlink.com] > > Gesendet am: Montag, 22. März 1999 13:44 > > An: zope@zope.org > > Betreff: [Zope] one 'document' in many 'folders' > > > > As a demonstration project to try and get a client to go with Zope, I'm > > converting a newsfeed database that I had originally built using Perl. > > > > The object of the game is to pull fresh articles from a Reuters > > server every two hours and put them in a bin. A human editor goes > > through the bin, culls and sorts the articles, edits where > > appropriate. > > > > One article may appear in more than one section of the site. For > > example, an article titled "Zope Is Cool" might appear in the > > Python, Web Development, and Open Source sections. Each > > section has its own contents page. > > > > This is where I get confused. My Perl application simply used the > > filesystem as a database, and generated three separate static > > copies of "Zope Is Cool", placing one in each of three directories: > > /python, /web_development, and /open_source. I suspect there are much > > better ways to do it in Zope, but how do I organize things? > > > > My naive idea is to make each article a Document, one of whose > > properties is a list (or dictionary) of categories in which it should be > > placed. Generating each section's contents page would then take some > > figuring out, and performance on doing the contents page would be a > > concern. > > > > If there's a better way, I'd certainly appreciate hearing about it. > > > > Signed, > > > > Confused a/k/a > > > > > > > > > > > > Wade Leftwich > > Okay Network Services, Ithaca NY > > tel 607-277-1334 fax 607-272-3612 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Mon Mar 22 15:42:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Mon, 22 Mar 1999 10:42:22 -0500 (EST) Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221343.IAA17544@gem.lightlink.com> Message-ID: On Mon, 22 Mar 1999, Wade Leftwich wrote: > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I suggest you try out your idea first. It sounds simple and straightforward and performance won't be a problem unless you have too many entries (but I am only guessing). > placed. Generating each section's contents page would then take > some figuring out, Assuming you have a folder Entries and folders Python and Zope. An entry in the entries folder is a DTML doc with a lines property named sections containing the sections (folder names) where the given entry belongs to. In the root folder you have a DTML method like: (untested)

    contents:

    ... Do something (ie link to the entry or render the entry etc ... you can call this method from inside the index_html method in each section's folder. Pavlos From johanl@bahnhof.se Mon Mar 22 16:38:07 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 17:38:07 +0100 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <4.1.19990322173318.035daf00@mail.bahnhof.se> Pavlos wrote: >Assuming you have a folder Entries and folders Python and Zope. An entry >in the entries folder is a DTML doc with a lines property named sections >containing the sections (folder names) where the given entry belongs to. >In the root folder you have a DTML method like: (untested) This is great, I'm planning on doing exactly this myself. Roughly, if I don't want sluggish performance, what would the upper limit be in regard to number of articles? Are we talking hundreds of articles? Thousands? /J - Zope ultra-newbie ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:01:49 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:01:49 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221538.KAA22051@gem.lightlink.com> Message-ID: <001601be7485$ad4671e0$7863efa1@bestweb.net> Sorry to post a commercial plug here, but it seems in stride with my post from this weekend to another question (Collector). Basically, Z Tables would be a pretty perfect fit (IMHO). I realize that you too realize that (sort of), because you suggested going the ZSQL route. Clearly, there are similarities. But, Z Tables has already been independently benchmarked as _kicking a**_ performance-wise, and is also more closely aligned with the gestalt that you indicated you liked about the object database. Just a thought (and a few bucks, of course :-). From TomJenkins@zentuit.com Mon Mar 22 17:03:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 22 Mar 1999 12:03:00 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903221706.MAA28840@mail.digiweb.com> Hi Phil, Sorry I didn't make things clear (maybe I'll update the list?). Yes I solved my problem and feel really dumb. I didn't realize that the traceback is in the error page as a comment. Once I found that out, I saw immediately that the arguments passed in had a couple of extra fields that I didn't use (the master and detail tables share some initial fields). I took them out of the sql statement and the form, but I didn't remove them from the argument list. (Just an FYI, the system allows you to add additional detail records, the first one is autogenerated from the master) > Hi Tom, > > I have been on vacation and can't tell whether you have solved your problem. > > If you are still having problems email me. I am doing exactly what you > want to do so I will dig through my code and send you some tested examples > if you like. > > Phil. > > >To followup my last post, I'm getting an exception when trying to use > >MySQL's "select LAST_INSERT_ID()" function: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From amos@aracnet.com Mon Mar 22 17:18:12 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 22 Mar 1999 09:18:12 -0800 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net> Message-ID: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> At 10:52 AM 3/22/99 +0100, Raver wrote: >I'm working on an intranet site (using Zope). Now I need to make the site >searchable. Tried using htdig, but without luck (should it work with zopesites?). Unless you do something tricky, I doubt you will be able to get normal search engines to work with a Zope site, since I belive that most search engines want to read HTML files from the filesystem for indexing. >Now I wonder - is there a builtin feature in zope that can fix my problem, or >are there other programs like htdig that works with zope? Right now there is a simple Find mechanism, but it isn't really a robust search facility. In addition, Zope now includes low-level Python packages for indexing. So the basic tools are there, but there isn't an easy to use, out of the box search engine in Zope. We're working on a much better solution to this problem. We're calling it Zope Cataloging, and it is currently built with ZTables. I believe that like ZTables, Zope Cataloging will eventually be free, and become a core part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( -Amos From M.Faassen@vet.uu.nl Mon Mar 22 17:29:08 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 22 Mar 1999 18:29:08 +0100 Subject: [Zope] one 'document' in many 'folders' References: <001601be7485$ad4671e0$7863efa1@bestweb.net> Message-ID: <36F67DE4.4890F29@pop.vet.uu.nl> Hadar Pedhazur wrote: > > Sorry to post a commercial plug here, but it seems in stride > with my post from this weekend to another question > (Collector). As long as it's you (i.e. important cause of Zope's open sourcing) posting commercial plugs on zope@zope.org, I doubt many people would mind. :) [ZTables] Although I'm still a complete ZTables newbie, I've seen ZTables come up repeatedly when there are similar design problems. This would indeed seem to indicate ZTables are a good fit. :) Regards, Martijn From johanl@bahnhof.se Mon Mar 22 17:34:14 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 18:34:14 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <4.1.19990322182853.03607220@mail.bahnhof.se> Amos Latteier wrote: >>I'm working on an intranet site (using Zope). Now I need to make the site >>searchable. Tried using htdig, but without luck (should it work with >zopesites?). > >Unless you do something tricky, I doubt you will be able to get normal >search engines to work with a Zope site, since I belive that most search >engines want to read HTML files from the filesystem for indexing. [Apologies if this post is considered off-topic on this list] You might want to try Webinator, an outstanding search engine available at: http://www.thunderstone.com/webinator/ It's free to use for up to 10,000 documents. It works by fetching documents over HTTP (not your file system), so it should work with Zope. However, the free version requires an Internet connection to check with the license server, so it might be impractical for an intranet soluition without full Internet access. Hope That Helps, /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:46:34 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:46:34 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <36F67DE4.4890F29@pop.vet.uu.nl> Message-ID: <001e01be748b$ed844f60$7863efa1@bestweb.net> Martijn Faassen wrote: > Although I'm still a complete ZTables newbie, > I've seen ZTables come up > repeatedly when there are similar design > problems. This would indeed > seem to indicate ZTables are a good fit. :) I agree :-). Of course, this is precisely why we intend to release it (eventually) as Open Source(tm). We truly feel that the community will benefit, so we will release it. In the meantime, we're swamped, and prioritizing workload based on hard currency makes for simple decisions... From sfranke@cdc-group.com Mon Mar 22 18:19:56 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 19:19:56 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> I just thought a little more about the approach having a pool and some proxy objects that refer to the pool. I think it could be made quite neat when using just the following code for the proxies (DTML documents): So you just need to put zope_is_cool inside your pool and add DTML documents with the above code under the same id to your folder structure wherever you like. Just check it out. Two caveats: - You have to use DTML documents, not methods, otherwise id() refers to the folder's id - Make sure that zope_is_cool really exists inside your pool, or you get an infinite redirection! (zope_is_cool is not found in the pool and then sought for along the aquisiton path, which refers to zope_is_cool itself, which redirects to the pool which ...) Maybe this could be even generalized to some kind of "symbolic link" product. Ideas anyone? Stefan From kid@kendermedia.com Mon Mar 22 18:43:22 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 13:43:22 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> Message-ID: <001d01be7493$df67f820$7c5addc7@kid> ----- Original Message ----- From: Stefan Franke To: ; Sent: Monday, March 22, 1999 1:19 PM Subject: Re: [Zope] one 'document' in many 'folders' > I just thought a little more about the approach having a pool > and some proxy objects that refer to the pool. > > I think it could be made quite neat when using just the > following code for the proxies (DTML documents): > > An alternate solution could be something like for your "link" methods. I think this would take better advantage of acquisition. A document could pick up its headers and footers from the category, instead of the pool. It does seem like someone could create a "symlink" product pretty easily. Kevin From eq3pvl@eq.uc.pt Mon Mar 22 19:45:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Mon, 22 Mar 1999 19:45:09 +0000 Subject: [Zope] Trying to understand the Scheduler Message-ID: <36F69DC5.2FBB044@eq.uc.pt> Zope is great. It's so great that I guess I'm trying to use it for doing something different from what zope it's expected to do. I want to make some SQL scripts to access different databases and collect the data in a new table. That I can do with the following external method that calls see_data and put_data ZSQLMethods def get_data(self): result = self.see_data() self.put_data(value=result._data[0][1]) return None Then I wish to make this kind of data management automatic every hour. I dug in the sources and I found out the Scheduler class, which I think is what I need (is it?). But I'm having some trouble using it. This was the external method I tried (without success). def eventGetData(self): rev = RegularEvent(get_data,(),interval=60) self.schedule(rev) return(None) It seems that RegularEvent is not available. Besides, is schedule available trough acquisition in the folder? Can someone give me some light on this. I don't even know if it's possible to use the Scheduler with external methods so it would be great at least to know I'm in the right path. Thanks -- Pedro Vale Lima eq3pvl@eq.uc.pt From rocon@pivot.net Mon Mar 22 19:49:15 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 22 Mar 1999 14:49:15 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases Message-ID: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Looking for some enlightenment: I understand that Ztables was formerly Tabula an object database. If one were starting from scratch without legacy data would it make sense to use an object database instead of a relational database? If so, is ZTables/Tabula a full, robust database system that can scale up and exceed the features of Oracle or SQLxxx databases? What are the pros/cons of Object vs Relational databases. Currently it appears that Ztables/Tabula is priced at $1,500 but eventually may become open source. From recent posts on the list *"Make site searchable" *"one 'document' in many 'folders'" It seems like Ztables would be an Ideal solution to these problems. ie, rather than the kludge of multiple copies of the SAME document, ONE copy in the database. Also, searching by key or full text would be possible. But for further enlightenment, can anyone point to good examples on the web of the use of ZTables/Tabula? woops, your request to has been denied! :-) -bobo connor From jim@digicool.com Mon Mar 22 19:53:24 1999 From: jim@digicool.com (Jim Fulton) Date: Mon, 22 Mar 1999 14:53:24 -0500 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> Message-ID: <36F69FB4.5787CB99@digicool.com> Do not try to understand the scheduler. It's not really implemented nor is it useful for anything at this time. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Mon Mar 22 20:01:53 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 15:01:53 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases In-Reply-To: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Mon, Mar 22, 1999 at 02:49:15PM -0500 References: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Message-ID: <19990322150153.C5814@amber.org> On Mon, Mar 22, 1999 at 02:49:15PM -0500, Robert OConnor wrote: > Looking for some enlightenment: > > I understand that Ztables was formerly Tabula an > object database. By nature anything named "tabula" wouldn't be a pure object database :-) OODB don't have tables, tables are a relational concept, and I believe ZTables is a relational database last I checked---b ut then I've never seen it either, but the implications by Jim/Paul/et. al. are that it is something along these lines. > If one were starting from scratch without legacy data > would it make sense to use an object database instead > of a relational database? Maybe, it all depends on your data, the interdependencies, and what kind of queries you run, how ad-hoc, and what level of reporting tools you need. OODB are mature, but their supporting structure (reporting tools, modeling tools, and more importantly Zen :-) are quite lacking in my opinion). > If so, is ZTables/Tabula a full, robust database > system that can scale up and exceed the > features of Oracle or SQLxxx databases? i doubt it, but then, Oracle/et al are not necessarily the right answer for all problem sets, it's not a one hammer fits all nails solution. > What are the pros/cons of Object vs > Relational databases. Dear gods, there's thousands of papers written on this topic ;-) References are faster in OODB, ad-hoc is easier in RDB, and there are a billion other blends... it's also necessasry to understand network databases in my mind before you approach OODB. You just can't generalize to this level, it's impossible, and a "quick" overview of OODB v. Relational would require about 30 pages :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From FVilla@GestaltTechnology.com Mon Mar 22 22:25:28 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Mon, 22 Mar 1999 17:25:28 -0500 Subject: [Zope] passings vars to sql method Message-ID: <36F6C357.1F277AE3@GestaltTechnology.com> Zopists, I run into a problem. I have a DTML Methos that call an SQL Method. The SQL method, displayTasks, has two parameters, userID and statusID. The DTML method does have access to the variables userID and statusID prior to calling the sql method with a tag. The DTML method looks like this:

    List of tasks:
    >
    THE SQL methos look like this: select * from task_schedule where task_schedule.userID = AND task_schedule.statusID = -------------------------------------------------- I basically can't run the query because it cannot get a value for userID or statusID. How do I pass these vars to the sql method from a dtml method??? Thanks in advance, Fredy Villa FVilla@GestaltTechnology.com From raver@box.dust.za.net Mon Mar 22 22:30:55 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 22 Mar 1999 23:30:55 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com>; from Amos Latteier on Mon, Mar 22, 1999 at 09:18:12AM -0800 References: <19990322105216.A461@box.dust.za.net> <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> Message-ID: <19990322233055.A314@RaVER.duck.org> On Mon, Mar 22, 1999 at 09:18:12AM -0800, Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > > >Now I wonder - is there a builtin feature in zope that can fix my problem, or > >are there other programs like htdig that works with zope? > > Right now there is a simple Find mechanism, but it isn't really a robust > search facility. In addition, Zope now includes low-level Python packages > for indexing. So the basic tools are there, but there isn't an easy to use, > out of the box search engine in Zope. > > We're working on a much better solution to this problem. We're calling it > Zope Cataloging, and it is currently built with ZTables. I believe that > like ZTables, Zope Cataloging will eventually be free, and become a core > part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( > > -Amos > Sounds promising - hurry up will ya! :) > Sture From jbb@spyderlab.com Mon Mar 22 23:26:00 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 18:26:00 -0500 (EST) Subject: [Zope] passings vars to sql method In-Reply-To: <36F6C357.1F277AE3@GestaltTechnology.com> Message-ID: On Mon, 22 Mar 1999, Fredy Villa wrote: > Zopists, > > I run into a problem. I have a DTML Methos that call an SQL Method. > The SQL method, displayTasks, has two parameters, userID and statusID. > > The DTML method does have access to the variables userID and statusID > prior to calling the sql method with a tag. > > The DTML method looks like this: > > -------------------------------------------------- > I basically can't run the query because it cannot get a value for userID > or statusID. > How do I pass these vars to the sql method from a dtml method??? Freddy, did you make the variables you are passing to your SQL method parameters of the SQL method? If not they won't be looked up in the request, they will only be searched via acquisition. This is described in the Z SQL guide where it shows the order of lookup for SQL method parameters. Have fun! > Thanks in advance, > > Fredy Villa > FVilla@GestaltTechnology.com ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From vanandel@ucar.edu Tue Mar 23 01:30:13 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Mon, 22 Mar 1999 18:30:13 -0700 Subject: [Zope] sort order for tree display? Message-ID: <199903230130.SAA00571@stout.atd.ucar.edu> I'm still experimenting with ZOPE and the FAQ tool, which uses the 'tree' display widget. When I add a category or a FAQ entry, these items seem to appear in reverse order of the order I added them. The FAQ widget index_html DTML contains the line: On what basis are the categories sorted? By name of the object's folder? Is there anyway to get the entries sorted in the order they were entered? Thanks much! Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From webmaster@mtear.com Mon Mar 22 23:48:45 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:48:45 -0500 Subject: [Zope] Re: Zope digest, Vol 1 #185 - 21 msgs References: <199903222000.MAA18778@zope.codeit.com> Message-ID: <36F6D6DD.D270C58E@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From webmaster@mtear.com Mon Mar 22 23:52:03 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:52:03 -0500 Subject: [Zope] Re: Calendar tag References: <199903222000.MAA18778@zope.codeit.com> <36F6D6DD.D270C58E@mtear.com> Message-ID: <36F6D7A3.819ED7E2@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From jarvis.sd082@ex.tel.co.jp Tue Mar 23 03:44:35 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 12:44:35 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Hi all! I'm having a problem with running queries containing long numbers. I found in db.py that the data type NUMBER is converted to an integer which overflows in my case. The errors: Error, oci.error: (1455, 'ORA-01455: converting column overflows integer datatype\012') Traceback (innermost last): File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish (Info: /queries/wisdom/customer-Line/manage_test) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ (Object: CopySource) File db.py, line 198, in query File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, in fetchmany File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, in fetchone File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, in _error oci.error: (see above) I tried changing line 219 in query() in db.py: from if scale==0: type='i' to if scale==0: type='f' in order to force a float type, but this has no effect, it seems. I'm sure that I'm misunderstanding something here. Any pointers to where I can look to fix this would be greatly appreciated. TIA, John Jarvis Tokyo Electron FE, Ltd. From jbb@spyderlab.com Tue Mar 23 04:21:47 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 23:21:47 -0500 (EST) Subject: [Zope] ZOracleDA and long numbers In-Reply-To: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') Without having yet looked at the source(*) could this be an error occuring in Oracle itself? I just noticed the ORA-* which is typically an Oracle error message. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com (*) - BEWARE :) From jarvis.sd082@ex.tel.co.jp Tue Mar 23 04:49:03 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 13:49:03 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA461@telisnt1020.is.tel.co.jp> I have no problems with other applications as long as I stick with floats. Notably, Zope on Windows running through ODBC has no problems--the values are all converted to python L types. (Hey! maybe I should take a look at the ODBC code...) This is what originally led me to believe that the problem wasn't with Oracle, but within the OCI interface to Zope. I also thought that it also might have something to do with my Linux install, but SQL*Net doesn't have problems and Zope works wonderfully except for long numbers. Environment info: Zope 1.10.2 ZOracleDA 2.0.0 RedHat Linux 5.2 Oracle Net8 Client Apache > -----Original Message----- > From: Jordan B. Baker [SMTP:jbb@spyderlab.com] > Sent: Tuesday, March 23, 1999 1:22 PM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. > > ------- > Jordan B. Baker -- jbb@spyderlab.com > weaving the web @ http://www.spyderlab.com > (*) - BEWARE :) > From MHammond@skippinet.com.au Tue Mar 23 07:24:35 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 18:24:35 +1100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <004c01be74fe$35088aa0$0801a8c0@bobcat> Ive started playing with DocTemplate for a project, but I will be using it sans Zope. I hope this is still the appropriate place... I want DocTemplate to expose an object model, and it seems perfect for the task. However, Im having trouble using "." expressions. Code speaks louder than words, so my code is: ## class Spam: def eggs(self): return "Eggs" spam=Spam() from DocumentTemplate import * ss=HTML('Eggs are ') print ss(spam=spam) ss=String('Eggs are %(spam.eggs)s') print ss(spam=spam) ## What Im hoping to do should be quite obvious - I want to refer to "spam.eggs" in the DTML. With the HTML example, #var expr="spam.eggs()" is the best I can get. It seems ugly to me, and I feel there must be a better way. Using the String example, I can't make _anything_ work. Any I missing something? Is there something I can do so that String('Eggs are %(spam.eggs)s') does what I want? Please CC me - Im not on the list (but did peruse the archives before mailing...) Thanks, Mark. From raver@pc-125.andoy.vgs.no Tue Mar 23 11:25:04 1999 From: raver@pc-125.andoy.vgs.no (Sture Lygren) Date: Tue, 23 Mar 1999 12:25:04 +0100 (CET) Subject: [Zope] #tree - trouble Message-ID: Hi! How come this code (from within index_html) doesn't show files and folders within my folder? ( ) doesn't work either) This is using Zope 1.10.2 on linux (2.0.35) All I get is a blank screen - how come?? From Paul@digicool.com Tue Mar 23 11:54:23 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 06:54:23 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Mark wrote: > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) Here's an alternative that works: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) and a second choice: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) --Paul From MHammond@skippinet.com.au Tue Mar 23 12:00:11 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 23:00:11 +1100 Subject: [Zope] Questions about DocumentTemplate. In-Reply-To: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Message-ID: <005001be7524$b4a29960$0801a8c0@bobcat> > Here's an alternative that works: Thanks for the response. My problem is that I want a deep object model. I want the user to be able to say "spam.eggs" or "pantry.eggs" etc. Just using eggs wont do - I really need it qualified. The solution I came up with was: class DotWrapper: def __init__(self, ob): self._obj_ = ob def __getattr__(self, attr): bits = string.split(attr, '.') ob = getattr(self._obj_, bits[0]) for bit in bits[1:]: ob = getattr(ob, bit) return ob Then: s=Spam() print s.ss(DotWrapper(s)) does pretty-much the right thing... Thanks, Mark. From sfranke@cdc-group.com Tue Mar 23 12:40:24 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 13:40:24 +0100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <01E40461E003D21195CC0080296495D80B12E9@gates.cdc-group.com> Mark Hammond wrote: >The solution I came up with was: > > class DotWrapper: > def __init__(self, ob): > self._obj_ = ob > def __getattr__(self, attr): > bits = string.split(attr, '.') > ob = getattr(self._obj_, bits[0]) > for bit in bits[1:]: > ob = getattr(ob, bit) > return ob Small caveat: Since whitespaces could occur in an nested attrbute access ("a. b .x") , it's better to string them first. An alternative approach for DotWrapper's __getattr__ could be (not tested): def __getattr__(self, attr): bits = map (string.strip, string.split(attr, '.')) return reduce (getattr, bits, self._obj) Stefan From wade@okaynetwork.com Tue Mar 23 12:46:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Tue, 23 Mar 1999 07:46:33 -0500 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <199903231245.HAA17730@gem.lightlink.com> At Mon, 22 Mar 1999 09:18:12 -0800 Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > If your search engine works via http it should work OK with Zope. Thunderstone Webinator (thunderstone.com) does this, and there's a free version that I think will do up to 10,000 docs. (The commercial version costs $700.) There's a command-line switch that tells Webinator to go ahead & index URLs that include /cgi- bin/. -- Wade Leftwich (satisfied Thunderstone customer). Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Tue Mar 23 13:35:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 08:35:38 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <613145F79272D211914B0020AFF6401907BB91@gandalf.digicool.com> Thomas wrote: > Thus far my attempts to install the Zope binary release on a Linux > machine have been for nothing. The Install documentation and > the Install > program contradict each other at almost every turn. We'll look at overhauling the install documentation for the next release. In the meantime, could you provide more examples of how it can be improved beyond the -u confusion? --Paul From michel@digicool.com Tue Mar 23 14:17:15 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 23 Mar 1999 09:17:15 -0500 Subject: [Zope] RE: Install Zope on Web Host? Message-ID: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> > -----Original Message----- > From: Jeff Rawlins [mailto:penweb@olypen.com] > Sent: Tuesday, March 23, 1999 8:08 AM > To: support@digicool.com > Subject: Install Zope on Web Host? > > > I can't seem to find on your site whether Zope can be > installed on a web > hosting acct. or must be installed directly on your own server. > Thanks, > Jeff Rawlins > Jeff, I have cc'ed your question to the list, not to defer it, but to let you pick the brains of several people who have tried, some successful, some not, to run zope as a user in a web hosting environment. None of us here have tried it so we're not really the ones to ask. It is true there is no documentation on Zope with web hosting, perhaps your discussion will provide information for the Zope Documentation Project, AKA the Martijn Conspiracy. As I understand it, the web hosting provider you pick is key to the whole issue. If they run the kind of environment that works with Zope, great. If they don't (and most probably don't by default) you must communicate to them clearly what you want. If they are cooperative and cool, they will oblige you and join our Zope hosting family. If you can't get ahold of them and/or they don't care, your out of luck unless you go with a Zope friendly provider of which there are two to be found here.: http://www.zope.org/Community/ZHP -Michel From TomJenkins@zentuit.com Tue Mar 23 14:34:47 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 09:34:47 -0500 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <199903231437.JAA27247@mail.digiweb.com> Hey Sture, Check to see if your index_html is a DTML Document. DTML Document has its own namespace and doesn't use the folder's. If you change DTML Document to a DTML Method then you'll pick up the folder's files and folders. > Hi! > > How come this code (from within index_html) doesn't show files and folders > within my folder? > > > > > > ( ) doesn't work either) > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From kid@kendermedia.com Tue Mar 23 14:51:23 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Tue, 23 Mar 1999 09:51:23 -0500 Subject: [Zope] RE: Install Zope on Web Host? References: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> Message-ID: <002301be753c$9fd86880$7c5addc7@kid> > > -----Original Message----- > > From: Jeff Rawlins [mailto:penweb@olypen.com] > > Sent: Tuesday, March 23, 1999 8:08 AM > > To: support@digicool.com > > Subject: Install Zope on Web Host? > > > > > > I can't seem to find on your site whether Zope can be > > installed on a web > > hosting acct. or must be installed directly on your own server. > > Thanks, > > Jeff Rawlins > > My experience has been that if the hosting company is running Apache (many do) and if they have mod_rewrite installed (which is probably also pretty common), it is not *too* difficult to get Zope running in that environment. However, many hosting companies have policies against creating long running processes. Zope takes up a few MB of memory, which is considerably more than an instance of Apache... so many providers are not keen on that kind of thing. Before putting effort into trying to make Zope work in their environment, you'll probably want to ask them if they are willing to let you run a process that will hang out in memory all the time. CodeIt (one of the Zope hosting companies, http://www.codeit.com) will actually host Zope for you. You don't need to deal with building and configuring the package at all. Kevin From jim@digicool.com Tue Mar 23 15:00:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:00:23 -0500 Subject: [Zope] ZOracleDA and long numbers References: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: <36F7AC87.B2D8C96D@digicool.com> TFE MMS JARVIS JOHN wrote: > > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') > > Traceback (innermost last): > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > (Info: /queries/wisdom/customer-Line/manage_test) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > (Object: CopySource) > File db.py, line 198, in query > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, > in fetchmany > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, > in fetchone > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, > in _error > oci.error: (see above) > > I tried changing line 219 in query() in db.py: > from > if scale==0: type='i' > to > if scale==0: type='f' > > in order to force a float type, but this has no effect, it seems. This typr only affects meta-data seen by some Zope tools. > I'm sure that I'm misunderstanding something here. Nope, you aren't. > Any pointers to where I can look to fix this would be greatly > appreciated. There is a similar change that needs to be made to *work around* this problem. In DCOracle/ociCurs.py, change: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None to: elif dbtype==2: # Number if scale or 1: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None This has the undesirable effect of causing all numbers to be treated as ints. (This is what oracledb does) :( Unfortunately, you can't tell from Oracle column meta data whether values in a column will fit into Python ints. The right way to fix this is to implement Oracle's NUMBER or VARNUM C data types and convert to Python ints or longs on a case by case basis. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:01:21 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:01:21 -0500 Subject: [Zope] ZOracleDA and long numbers References: Message-ID: <36F7ACC1.3D31C5A9@digicool.com> "Jordan B. Baker" wrote: > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. Right, but in this case, it's because DCOracle bound a buffer that was too small to hold the values. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mark@interwalk.com Tue Mar 23 15:01:06 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 23 Mar 1999 07:01:06 -0800 Subject: [Zope] Re: Calendar tag Message-ID: <36F7ACB2.F29C21C4@interwalk.com> Again thanks for the Calendar tag. I just ran across a php3 application that might influence you/others. It is http://screwdriver.net/twig/ The demo show you a live application and is quite cool Mark <36f6d7a3.819ed7e-@mtear.com> wrote: Original Article: http://www.egroups.com/list/zope/?start=3428 > Ty: > > Again, the usefullness of your code is only outweighed by your > generousity. > I'm trying to get a personal schedular for my people, and I didn't want > to go outside of Zope(since they are using that for thier everyday > needs). And here you are with your Calendar tag. Thanks! > > Oh, I am reading your source to gleen how to implement the persistance > of appointments, any hints? > > Jason Spisak > webmaster@mtear.com > > > Message: 1 > From: tsarna@endicor.com (Ty Sarna) > Subject: [Zope] Calendar tag released > Date: 21 Mar 1999 21:17:56 GMT > Organization: Endicor Technologies, Inc., San Antonio, Texas > To: zope@zope.org > > People have been asking for my Calendar tag product, so I've uploaded a > beta version to the contributed software page. With the DateTime class > fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations > sometimes cause botches like repeated days). > > Have fun, and let me know what you think. When I get a chance I'll > probably add a Year mode and polish up the documentation and call it > 1.0. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Brian@digicool.com Tue Mar 23 15:15:45 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 23 Mar 1999 10:15:45 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF64019FDA8@gandalf.digicool.com> Hi Mark. I've cc'ed this to the zope list, since others may find this useful. > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) > > ss=String('Eggs are %(spam.eggs)s') > print ss(spam=spam) > ## > > What Im hoping to do should be quite obvious - I want to refer to > "spam.eggs" in the DTML. > > With the HTML example, #var expr="spam.eggs()" is the best I can > get. It seems ugly to me, and I feel there must be a better way. The is a perfectly valid way to do it. Another way would be to use the "with" tag: Neither is really "more correct" than the other, though the with construct is probably cleaner in situations where you use many services of the object: > Using the String example, I can't make _anything_ work. > > Any I missing something? Is there something I can do so that > String('Eggs are %(spam.eggs)s') does what I want? Hmm - it appears that the expr support is currently broken for the python string format syntax. We'll take a look at that. You can, however, also use the with construct here too: ss=String('eggs are %(with spam)[ %(eggs)s %(with)]') Just in case you hadn't found them already, the latest DTML manuals are on the zope site at: http://www.zope.org/Documentation/Guides/DTML. They contain some examples that try to demonstrate common DTML idioms. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mj@antraciet.nl Tue Mar 23 15:04:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 23 Mar 1999 16:04:39 +0100 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <4.1.19990323153904.00a78f00@mail.atmm.nl> At 12:25 23-3-99 , Sture Lygren wrote: >Hi! > >How come this code (from within index_html) doesn't show files and folders >within my folder? > > > > > >( ) doesn't work either) > >This is using Zope 1.10.2 on linux (2.0.35) > First, you should use branches_expr, instead of branches. And second, it depends on what type of DTML object you have this code in. Is this code in a DTML Method or a DTML Document? If it is a Document, you'll have to specify the Folder you want the tree to start at:: -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jim@digicool.com Tue Mar 23 15:08:38 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:08:38 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <36F7AE76.6431EA6E@digicool.com> Wade Leftwich wrote: > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I think that your approach would work and have the drawbacks you suggest. You could try it and see if performance is actually a problem. Here are some other ideas. First, you can put an object in many folders without creating multiple copies. You can't do this from DTML, but you *can* do it from Python, and therefore, from an external method. This may be the simplest approach. Second, you could come up with some sort of document management system, based on clever indexing machinery, like ZTables or on relational databases. As someone else mentioned, Zope cataloging with use ZTables to provide collections with advanced searching and organizaing features. This is still a work in progress, however. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:17:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:17:23 -0500 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <36F7B083.BD54E19C@digicool.com> Stefan Franke wrote: > > Correct me if I'm wrong, but the only way I see to do this *inside* > the Zope application is to keep all your articles inside one folder > (pool) and have key documents in your tree structure which > reference an article in the pool. You're wrong. ;) There are a numnber of ways to solve this. I suspect the simplest is to simply put the same object in multiple folders. (BTW, this is essentially the same thing as using Unix hard links.) > I don't know if problems appear when you establish an acyclic > directed graph structure in the object hierarchy itself (I asked > the question myself months ago without an answer). Sorry you didn't get an answer. There is no problem with creating acyclic or cyclic graph constructors in the, uh, object hierarchy, which BTW, need not be a hierarchy. :) > I see no point why it shouldn't work, but it is not maintained > by the application. > > An interesting fact is that your object's properties vary when > accessed by different paths due to the acquisition structure. > An object inside Zope's database (again, correct me, if...) > doesn't know about its father. It only knows about its sons, > the aq_parent path is constructed on each access. Yes, exactly. In fact, a better name for aq_parent might be aq_context. > Would also like to hear more about this... Like what? :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phd@sun.med.ru Tue Mar 23 15:31:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:31:22 +0300 (MSK) Subject: [Zope] Database connections Message-ID: Hello! I've finished large project using pure CGI concept (I used Neale's html.py). Now I (and my boss) are thinking of switching to Zope, or at least ZTemplates. While playing with Zope and SQL (I am using Postgres, hence ZPygres Database Adapter), I found that Zope, when loaded into memory by Zope.cgi (I am using Apache, and need to use in the future) opens a database connection for every Folder where I created Connection object. It is bad, as I have many databases, so Zope eats up memory. Another problem - what would do Zope if I restart Postgres (so all current connections break)? Would Zope reestablish connections or just report error? How could I limit number of connections Zope opens? How could I define a timeout, after which Zope close a connection if there is no activity between Zope and Postgres? and reestablish connection when application ask for SQL data? With ZTemplates and CGI all these questions has one easy (but not so nice) answer - there is no constant connection, a connection established on every CGI invocation. PS. BTW, I wrote short introduction to Zope in Russian: http://sun.med.ru/~phd/Russian/Zope/ Any Russian here to verify my understanding of Zope? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From TomJenkins@zentuit.com Tue Mar 23 15:34:50 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 10:34:50 -0500 Subject: [Zope] Database connections In-Reply-To: Message-ID: <199903231537.KAA21461@mail.digiweb.com> > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. As I understand it, you should just create one Connection object in your root folder. Then all the folders underneath the root folder have access to that same Connection object. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From Paul@digicool.com Tue Mar 23 15:48:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 10:48:49 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Oleg writes: > I've finished large project using pure CGI concept (I used Neale's > html.py). Now I (and my boss) are thinking of switching to Zope, or at > least ZTemplates. > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory > by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. Ahh, no need. Just put one Database Connection object in the top folder and all the subfolders will "acquire" it. That is, any SQL Method defined lower down can use it. > It is bad, as I have many databases, so Zope eats up > memory. Another > problem - what would do Zope if I restart Postgres (so all current > connections break)? Would Zope reestablish connections or just report > error? It should re-establish the connection. If it doesn't then there's a bug. This works fine with all the Database Adapters I've used. > How could I limit number of connections Zope opens? How could I There is one connection per Database Connection object. > define a timeout, after which Zope close a connection if there is no Hmm, this is quite a hard thing to do, unfortunately. > activity between Zope and Postgres? and reestablish connection when > application ask for SQL data? > > With ZTemplates and CGI all these questions has one easy > (but not so > nice) answer - there is no constant connection, a connection > established on > every CGI invocation. Of course this means the CPU gets a tremendous beating on every request and the response time goes down. > PS. BTW, I wrote short introduction to Zope in Russian: > http://sun.med.ru/~phd/Russian/Zope/ > Any Russian here to verify my understanding of Zope? Mind if I add a blurb to the Zope News about it? --Paul From phd@sun.med.ru Tue Mar 23 15:45:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:45:55 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > > Database Adapter), I found that Zope, when loaded into memory > > by Zope.cgi > > (I am using Apache, and need to use in the future) opens a database > > connection for every Folder where I created Connection object. > > Ahh, no need. Just put one Database Connection object in the top folder > and all the subfolders will "acquire" it. That is, any SQL Method > defined lower down can use it. There are connections to different databases. So you said "one connection to one database"? > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I'll retest, but currently, when I ask ZPygresDA to close connection, Zope reports "the site has technical difficulties" when I'm trying to access the application. > > define a timeout, after which Zope close a connection if there is no > Hmm, this is quite a hard thing to do, unfortunately. Bad news. :( > > PS. BTW, I wrote short introduction to Zope in Russian: > > http://sun.med.ru/~phd/Russian/Zope/ > > Any Russian here to verify my understanding of Zope? > > Mind if I add a blurb to the Zope News about it? It's Ok. I am not sure about correctness. And it is definetely far from complete. I'll continue working on it. > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Tue Mar 23 15:50:19 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 16:50:19 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Jim Fulton wrote: > Sorry you didn't get an answer. There is no problem with creating > acyclic or cyclic graph constructors in the, uh, object hierarchy, > which BTW, need not be a hierarchy. :) Not too long ago I experimented a little with cyclic structures inside Zope's database. One thing I noticed was, that the copy support failed with tracebacks like this: Traceback (innermost last): File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 877, in publish_module File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 176, in manage_pasteObjects (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 361, in _getCopy (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line 327, in export_file File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line 958, in exportoid ExportError: Object 184337 references itself This led me to the conclusion to better leave my hands off non-hierarchic data structures which differ from those created by the management interface itself. >> Would also like to hear more about this... > Like what? :) More or less simple answers like "this is ok and this is not", or "you can store any complex Python data structure inside the DB, but in conjunction with the management interface, you get the following drawbacks.." I'm still a quite unclear about the object management in the database itself and the management layer Zope adds. But maybe I just have to read the docs harder ;-) Stefan > From Paul@digicool.com Tue Mar 23 16:02:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 11:02:17 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Oleg wrote: > There are connections to different databases. So you said "one > connection to one database"? If you can use one connection string in Postgres to access multiple databases, then you just need one Database Connection. Otherwise, you'll need one connection per database. Note that I don't mean per table -- I don't know much about Postgres and don't know if it organizes tables into separate databases that are selected with a "use database" command. > > > It is bad, as I have many databases, so Zope eats up > > > memory. Another > > > problem - what would do Zope if I restart Postgres (so all current > > > connections break)? Would Zope reestablish connections or > just report > > > error? > > > > It should re-establish the connection. If it doesn't then there's a > > bug. This works fine with all the Database Adapters I've used. > > I'll retest, but currently, when I ask ZPygresDA to close > connection, > Zope reports "the site has technical difficulties" when I'm trying to > access the application. Right, which is the correct behavior, as you had disconnected from the database. I thought your question was about restarting _Zope_, so I had a misunderstanding. I don't know anything about the Postgres client library and whether it can reconnect to a server when the server is shutdown. This definately isn't a Zope issue though -- the client should handle it. --Paul From phd@sun.med.ru Tue Mar 23 16:07:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:07:42 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > Oleg wrote: > > There are connections to different databases. So you said "one > > connection to one database"? > > If you can use one connection string in Postgres to access multiple > databases, then you just need one Database Connection. Otherwise, No. Connection string include database name, so I need one connection for every database. > you'll need one connection per database. Note that I don't mean per > table -- I don't know much about Postgres and don't know if it organizes > tables into separate databases that are selected with a "use database" > command. Yes, I see. > > > > It is bad, as I have many databases, so Zope eats up > > > > memory. Another > > > > problem - what would do Zope if I restart Postgres (so all current > > > > connections break)? Would Zope reestablish connections or > > just report > > > > error? > > > > > > It should re-establish the connection. If it doesn't then there's a > > > bug. This works fine with all the Database Adapters I've used. > > > > I'll retest, but currently, when I ask ZPygresDA to close > > connection, > > Zope reports "the site has technical difficulties" when I'm trying to > > access the application. > > Right, which is the correct behavior, as you had disconnected from the > database. I thought your question was about restarting _Zope_, so I had > a misunderstanding. I meant 3 different situations: 1. I started Potsgres, then started Zope, then restarted Zope - Zope reestablished connections. It's Ok. 2. I started Potsgres, then started Zope, then restarted Postgres. Zope does not reestablish connections: This site is currently experiencing technical difficulties... 3. I started Potsgres, then started Zope, then went to management screen and explicitly close a connection. Zope does not reestablish connections. Situations 2 an3 could be resolved, if I go to management screes, close and reopen database connections. But it is hard to remember "always restart Zope if you restart Postgres"... > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jim@digicool.com Tue Mar 23 16:15:59 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 11:15:59 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Message-ID: <36F7BE3F.CDBF011F@digicool.com> Stefan Franke wrote: > > Jim Fulton wrote: > > Sorry you didn't get an answer. There is no problem with > creating > > acyclic or cyclic graph constructors in the, uh, object > hierarchy, > > which BTW, need not be a hierarchy. :) > > Not too long ago I experimented a little with cyclic structures > inside Zope's database. One thing I noticed was, that the copy > support failed with tracebacks like this: > > Traceback (innermost last): > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 877, in publish_module > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 590, in publish > (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 176, in manage_pasteObjects > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 361, in _getCopy > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line > 327, in export_file > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line > 958, in exportoid > ExportError: Object 184337 references itself > > This led me to the conclusion to better leave my hands > off non-hierarchic data structures which differ from those > created by the management interface itself. I'll admit that cyclic data structures are pretty rare, so handling them may not be totally correct in every case. Export of objects partcipating in cycles is potentially, uh, confusing, unless the cycles are with objects that are totally contained within the object being exported, although containment is pretty hard to check. I should probably take this error check out. > >> Would also like to hear more about this... > > Like what? :) > > More or less simple answers like "this is ok and this > is not", OK, but I need to know what "this" is. I don't think you want me to enumerate all possible "this"s. ;) > or "you can store any complex Python data > structure inside the DB, You can store any complex Python data in the DB subject to: - It must be picklable, - It must follow the persistence rules: - Root objects must be "persistent" meaning they subclass BoboPOS.Persistent (or implement an undocumented interface that BoboPOS.Persistent implements, sigh) - Subobjects of persistent objects must be "persistent" or they must be immutable, or be used immutably, as in: def add_member(self, member): members=self.members # Oops, mutated a list members.append(member) # OK, so pretend it's new and readd it self.members=members > but in conjunction with the > management interface, you get the following drawbacks.." Basically, the objects need to implement certain interfaces if they want to play in the management system. If they don't want to play, they have alot of freedom. We need to do a much better job of documenting these interfaces. > I'm still a quite unclear about the object management > in the database itself The object management at the database level tries to be as transparent as possible. The wish is that you don't have to think about it. Basically, if you follow the rules above, you should be OK. Probably the biggest pitfall in the database is the inability to get to database objects when their classes can no longer be imported, because classes or modules have been moved or deleted or because errors have been introducted into the module source. We need to figure out ways to make these problems easier to diagnose. > and the management layer Zope adds. > But maybe I just have to read the docs harder ;-) Maybe you just need to read my mind better. ;) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Tue Mar 23 16:21:22 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:21:22 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:07:42PM +0300 References: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: <19990323112122.G8268@amber.org> On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > reestablished connections. It's Ok. Ok, so we don't have a problem here :-) > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > does not reestablish connections: This site is currently experiencing > technical difficulties... I agree that if a remote cause forces a database connection to close, it should attempt to re-open it... that should be optional of-course, but should be the default. > 3. I started Potsgres, then started Zope, then went to management screen > and explicitly close a connection. Zope does not reestablish connections. Nope, you closed the connection, you have to open it. This I agree is the appropriate way to behave. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From phd@sun.med.ru Tue Mar 23 16:34:12 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:34:12 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323112122.G8268@amber.org> Message-ID: On Tue, 23 Mar 1999, Christopher Petrilli wrote: > On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > > reestablished connections. It's Ok. > > Ok, so we don't have a problem here :-) Good news! :))) > > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > > does not reestablish connections: This site is currently experiencing > > technical difficulties... > > I agree that if a remote cause forces a database connection to close, it > should attempt to re-open it... that should be optional of-course, but > should be the default. Yes, I think Zope must reopen connection. > > 3. I started Potsgres, then started Zope, then went to management screen > > and explicitly close a connection. Zope does not reestablish connections. > > Nope, you closed the connection, you have to open it. This I agree is > the appropriate way to behave. May be... Well, what about such situation: 4. I started Potsgres, then started Zope, then worked with my application and Postgres failed (postgres fails sometimes). Postgres returned an error and closed connection. Zope, I think, should reopen the connection back, but will it? > Chris > -- > | Christopher Petrilli ``Television is bubble-gum for > | petrilli@amber.org the mind.''-Frank Lloyd Wright Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From petrilli@amber.org Tue Mar 23 16:40:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:40:04 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:34:12PM +0300 References: <19990323112122.G8268@amber.org> Message-ID: <19990323114004.J8268@amber.org> On Tue, Mar 23, 1999 at 07:34:12PM +0300, Oleg Broytmann wrote: > > > > I agree that if a remote cause forces a database connection to close, it > > should attempt to re-open it... that should be optional of-course, but > > should be the default. > > Yes, I think Zope must reopen connection. Well, actually it should be the job of the DA, not Zope. It's not spelled out in a standard anywhere, which probably should be solved. More documentation probably :/ But hey, someone's gotta know what the DA is really supposed to do, other than looking at an existing one. > Well, what about such situation: > > 4. I started Potsgres, then started Zope, then worked with my application > and Postgres failed (postgres fails sometimes). Postgres returned an error > and closed connection. Zope, I think, should reopen the connection back, > but will it? Don't honestly know if it WILL, but it seems reasonable that it should be capable of trying at the very least. Again, this is the responsibility fo the DA, not Zope... that should be made clear. You're using a 3rd party DA, so you might want to talk to them about it as well. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From sfranke@cdc-group.com Tue Mar 23 17:10:39 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 18:10:39 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12ED@gates.cdc-group.com> [Pleased of having caught Jim Fulton in verbose mode 8-] > You can store any complex Python data in the DB subject to: [...] > - Subobjects of persistent objects must be "persistent" or > they must be immutable, or be used immutably, as in: So class Persistent's __setattr__ is basically also the level that transaction and undo support work on? Can I expect the undo support to work if I take care of the persistence rules, regardless of cyclic and acyclic structures? Propably about time to switch to Zope-dev... Stefan From reedstrm@rice.edu Tue Mar 23 18:05:48 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 12:05:48 -0600 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> Message-ID: <36F7D7FC.4E0D66A8@rice.edu> Jim Fulton wrote: > > Do not try to understand the scheduler. It's not really implemented > nor is it useful for anything at this time. > > Jim > Pedro - If you need to do periodic tasks, the wisdom of the list says go with a cron job script attaching to your Zopesite via the ZClient interfaces (caveat: I know nothing about this - just repeating what I've read here) Anyone know were to look for info on this elusive ZClient stuff? To quote Paul Everitt : >As mentioned later, Zope has a simple RPC mechanism -- it's called HTTP! > >ZClient is a package in Zope that automates this. It makes it >convenient to connect to Zope and communicate with it from a scripting, >non-interactive environment. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From petrilli@amber.org Tue Mar 23 18:26:46 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 13:26:46 -0500 Subject: [Zope] Trying to understand the Scheduler In-Reply-To: <36F7D7FC.4E0D66A8@rice.edu>; from Ross J. Reedstrom on Tue, Mar 23, 1999 at 12:05:48PM -0600 References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <19990323132646.N8268@amber.org> On Tue, Mar 23, 1999 at 12:05:48PM -0600, Ross J. Reedstrom wrote: > Jim Fulton wrote: > > > > Do not try to understand the scheduler. It's not really implemented > > nor is it useful for anything at this time. > > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? Read the source luke :-) Actually here's where to find the basics of what you're interested in... .../lib/python/ZPublisher/Client.py This should probably go into the FAQ in the ZDP PDQ ;-) I remember seeing a few examples of it, for the the life of me, I can't find them! Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Tue Mar 23 18:46:09 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:46:09 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <4.1.19990323153904.00a78f00@mail.atmm.nl>; from Martijn Pieters on Tue, Mar 23, 1999 at 04:04:39PM +0100 References: <4.1.19990323153904.00a78f00@mail.atmm.nl> Message-ID: <19990323194609.A251@RaVER.duck.org> On Tue, Mar 23, 1999 at 04:04:39PM +0100, Martijn Pieters wrote: > At 12:25 23-3-99 , Sture Lygren wrote: > >Hi! > > > >How come this code (from within index_html) doesn't show files and folders > >within my folder? > > > > > > > > > > > >( ) doesn't work either) > > > >This is using Zope 1.10.2 on linux (2.0.35) > > > First, you should use branches_expr, instead of branches. And second, it > depends on what type of DTML object you have this code in. Is this code in > a DTML Method or a DTML Document? If it is a Document, you'll have to > specify the Folder you want the tree to start at:: > > > > > Got it working - thanks a lot!!! > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Sture Lygren From raver@box.dust.za.net Tue Mar 23 18:48:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:48:03 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <199903231437.JAA27247@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 23, 1999 at 09:34:47AM -0500 References: <199903231437.JAA27247@mail.digiweb.com> Message-ID: <19990323194803.B251@RaVER.duck.org> On Tue, Mar 23, 1999 at 09:34:47AM -0500, Tom Jenkins wrote: > Hey Sture, > Check to see if your index_html is a DTML Document. DTML > Document has its own namespace and doesn't use the folder's. > > If you change DTML Document to a DTML Method then you'll pick up > the folder's files and folders. That did the trick - thanks! >> > Hi! > > > How come this code (from within index_html) doesn't show files and folders > > within my folder? > > > > > > > > > > > > ( ) doesn't work either) > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Can the denizens of this group enlighten me about what the > advantages of Python are, versus Perl? "python" is more likely > to pass unharmed through your spelling checker than "perl". > An unknown poster and Fredrik Lundh, 11 Sep 1998 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 23 19:01:53 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 20:01:53 +0100 Subject: [Zope] Using database-connection from external methods Message-ID: <19990323200153.C251@RaVER.duck.org> Hi! This will hopefulle be my last questions in a while... Is there some way I can reach/use ZMySQL connection method from within an external method? Rephrase - I have a connection established within Zope - I want to call an external method that handles some sql-queries - is this possible, or should I still have the external method handle it's own connection? Can external methods set/send back variables to the calling document/method? Another question while I'm at it - is the DateTime module in 1.10.2 broke in some way? (I get an error if I try to make a new property with the date type set) Help is much appreciated Sture Lygren From jim@digicool.com Tue Mar 23 19:23:07 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:23:07 -0500 Subject: [Zope] ZClient example (was Re: [Zope] Trying to understand the Scheduler) References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EA1B.E2E2CA71@digicool.com> "Ross J. Reedstrom" wrote: > (snip) > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? (snip) The next release of Zope will have a 'utilities' directory in the distribution that has a load_site.py utility that demonstrates use of ZClient (aka ZPublisher.Client). If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From eq3pvl@eq.uc.pt Tue Mar 23 19:31:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Tue, 23 Mar 1999 19:31:09 +0000 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EBFD.892835C2@eq.uc.pt> "Ross J. Reedstrom" wrote: > Pedro - > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? > After reading Jim's mail I turned myself to the cron. I had already written a simple script to http-call a DTMLDocument that calls my external method. It works, but now that you told me about ZClient I see I could have saved some time with just a single command ZClient.py [-u username:password] url [name=value ...] Thanks guys pedro --- Pedro Vale Lima eq3pvl@eq.uc.pt From jae@kavi.com Tue Mar 23 19:30:08 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:30:08 -0800 (PST) Subject: [Zope] Database connections In-Reply-To: Message-ID: On Tue, 23 Mar 1999, Oleg Broytmann wrote: > On Tue, 23 Mar 1999, Paul Everitt wrote: > > Oleg wrote: > > > There are connections to different databases. So you said "one > > > connection to one database"? > > > > If you can use one connection string in Postgres to access multiple > > databases, then you just need one Database Connection. Otherwise, > > No. Connection string include database name, so I need one connection > for every database. Connection strings for MySQL also require you to include the database, but you can still change databases at runtime via the 'use ' command. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jim@digicool.com Tue Mar 23 19:44:09 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:44:09 -0500 Subject: [Zope] Zope Database in XML Message-ID: <36F7EF09.6AD34A99@digicool.com> A side project of mine is to allow conversion to and from Zope databases (and export files) and XML. This will allow people to more easily access their data without Zope and correct problems, such as moved or renamed software modules, that prevent data from being unpicklable. I've completed a first cut at a tool for converting a Zope database to XML format. It is provided in the file 'bbb.py' in a 'utilities' directory that will be included in the distribution directory of the next Zope release. If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. To run the tool, use: python utilities/bbb.py -rxml var/Data.bbb For now, the tool provides a way to "get at" your data without Zope and get a bit more of an idea of how Zope organizes data in the database. The file uses a module 'ppml.py' (Python pickle markup language :) that must by in the same directory as bbb.py or in the Python path. ppml.py provides for conversion from Python pickles to XML. It will eventually provide conversion from XML to Python pickles. Comments from members of the XML SIG (those who happen to spend time here too) would be welcome. I haven't written a formal DTD for this XML format. I would like to use a standard Python XML pickle format, but I'm not sure if such a thing exists yet. I took the approach of conversion to and from Python pickle format for two reasons: - It allows me to do conversion to and from database format without actually creating any (application objects). This is much faster than creating actual objects and does not require that any application Python modules needed to unpickle objects be around or working. For example, this allows conversion of objects that are not unpicklable. - It means that many of the implementation details of pickling can be avoided. Of course, in combination with the Python pickle modules, pickling objects to XML is straightforward: import pickle, ppml print ppml.ToXMLloads(pickle.dumps(myobject)) Enjoy. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 19:43:42 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:43:42 -0800 (PST) Subject: [Zope] Using database-connection from external methods In-Reply-To: <19990323200153.C251@RaVER.duck.org> Message-ID: On Tue, 23 Mar 1999 raver@box.dust.za.net wrote: > Is there some way I can reach/use ZMySQL connection method from within an > external method? Rephrase - I have a connection established within Zope - I > want to call an external method that handles some sql-queries - is this > possible, or should I still have the external method handle it's own > connection? Just have your external method call ZSQLMethods. For instance, I have an external method which allows the user to upload a file to the database. The external method reads the file, parses it, and calls a ZSQLMethod to update the database. To do this, assuming your ZSQLMethod is in the acquisition heirarchy, simply call it like you would any other method. If you have a ZSQLMethod called 'insert_client', which takes the arguments 'name, company, email', just call it... self.insert_client(name=client_name,company=company_name,email=client_email) > Can external methods set/send back variables to the calling document/method? External methods can modify the current REQUEST object that the DTML uses from name resolution. If you are calling the external method from within the DTML, just use 'self.REQUEST' to access the current REQUEST object. Just create/set items on it like it was a dictionary... sekf.REQUEST['new_key'] = new_value --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:19:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:19:10 -0500 (EST) Subject: [Zope] Zope Database in XML In-Reply-To: <36F7EF09.6AD34A99@digicool.com> Message-ID: On Tue, 23 Mar 1999, Jim Fulton wrote: [Jim announcing a long awaited and exciting new product] > > The file uses a module 'ppml.py' (Python > pickle markup language :) that must by in the I could not find ppml.py in the CVS tree. Pavlos From tpatrick@IndigoNetworks.com Tue Mar 23 20:23:13 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 14:23:13 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> If you can access the database directly through this interface(xml/pickle), couldn't you *potentially* map a network drive to the interface(cifs/nfs). This could allow you to render data in and out of the database through the file system interface rather than ftp/http. Just a thought! Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:25:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:25:27 -0500 (EST) Subject: [Zope] Using database-connection from external methods In-Reply-To: Message-ID: On Tue, 23 Mar 1999, John Eikenberry wrote: > > > Can external methods set/send back variables to the calling document/method? > > External methods can modify the current REQUEST object that the DTML uses > from name resolution. If you are calling the external method from within > the DTML, just use 'self.REQUEST' to access the current REQUEST object. > Just create/set items on it like it was a dictionary... > > sekf.REQUEST['new_key'] = new_value > Alternatively your external method can return objects to the calling DTML. for an external method spammethod you could do omething like: class A: pass def spammethod(self,n): a=[] for i in range(n): tmp=A() tmp.no=i a.append(tmp) return a Then in your DTML you can do something like Pavlos From jim@digicool.com Tue Mar 23 20:29:08 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:29:08 -0500 Subject: [Zope] Zope Database in XML References: Message-ID: <36F7F994.33440542@digicool.com> Pavlos Christoforou wrote: > > On Tue, 23 Mar 1999, Jim Fulton wrote: > > [Jim announcing a long awaited and exciting new product] > > > > > The file uses a module 'ppml.py' (Python > > pickle markup language :) that must by in the > > I could not find ppml.py in the CVS tree. Ugh. I thought I had checked it in, but I handn't. I just checked it in. Try a cvs update. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 20:39:04 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:39:04 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> Message-ID: <36F7FBE8.522F2DE7@digicool.com> Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 20:50:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 12:50:07 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... > > I'm still digging through the ZSQL code looking for a way to fix this. > I'll let everyone know once I've figured it out. Ok, I figured out a way to hack around this limitation of traversing an ZSQLMethod. I whipped up a simple 'pluggable brain' for the ZSQLMethod in question... --------------------------------------------------- from Acquisition import Implicit from Record import Record class req_store_brain(Implicit): """ stores info from sql query in REQUEST """ def __init__(self): new = {} for key in self.__record_schema__.keys(): new[key] = getattr(self,key) self.aq_parent.REQUEST.other.update(new) ---------------------------------------------------- This simply sticks the results of the ZSQLMethod in the REQUEST object. Everything in the heirarchy after this has access to the queries results. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tpatrick@IndigoNetworks.com Tue Mar 23 21:13:57 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 15:13:57 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> What I am referring to is rendering objects in the ZOPE database to a file system view. The object database could be managed as a Network Drive(except that the view would be data in the ZOPE object database). You could through some translation (xml or other) render the object database to CIFS/NFS. 1. Run applications directly from the ZOPE file system. 2. Modify and Render objects through a regular file explorer or file manager potentially an external text editor or file editor(word,excel,other). 3. Objects that had no meaning to the file system view would not be rendered. Attributes to file properties. This is a feature of 8i that oracle is pushing. The rendering of a database to a user that does not realize it is a database. ie. 1. Open a spreadsheet in the Network Drive and see a current version of a file and its data. 2. Intranet is now a shared drive - depending on your privileges - you see different objects. I guess what I am asking is: Can Zope act like a CIFS/NFS file system(virtual file system) with a layer of translation for converting Zope Objects to File system objects directly (XML or other)? If I understand it, this is how the database is rendering objects to HTTP or now(Zserver)FTP. Why can't you render them as a Network file system? Any thought? -----Original Message----- From: Jim Fulton [mailto:jim@digicool.com] Sent: Tuesday, March 23, 1999 2:39 PM To: Theodore Patrick Cc: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From neves@inf.puc-rio.br Tue Mar 23 21:31:53 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 23 Mar 1999 18:31:53 -0300 Subject: [Zope] MySQL loosing connection (Was: [Zope] Database connections) References: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: <36F80849.B7ECF04E@inf.puc-rio.br> Paul Everitt wrote: > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I've just hit something similar in the mysql client. The mysql client has a time-out to close the connection with the server. I'm using it in a test environment where it isn't accessed frequently. The connection is automatically closed and I have to manually close and open the database connection. Has anyone already fixed it? Excuse me if it has already been asked in the list, but the egroups site isn't working. regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From reedstrm@rice.edu Tue Mar 23 21:57:29 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 15:57:29 -0600 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F80E49.66166207@rice.edu> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From jim@digicool.com Tue Mar 23 22:07:44 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 17:07:44 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F810B0.95EA78A6@digicool.com> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > 1. Run applications directly from the ZOPE file system. > 2. Modify and Render objects through a regular file explorer or file manager > potentially an external text editor or file editor(word,excel,other). > 3. Objects that had no meaning to the file system view would not be > rendered. Attributes to file properties. > > This is a feature of 8i that oracle is pushing. The rendering of a database > to a user that does not realize it is a database. > > ie. > 1. Open a spreadsheet in the Network Drive and see a current version of a > file and its data. > 2. Intranet is now a shared drive - depending on your privileges - you see > different objects. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > > If I understand it, this is how the database is rendering objects to HTTP or > now(Zserver)FTP. Why can't you render them as a Network file system? > > Any thought? Ah. I think that this is one of the things that WebDAV is going to accomplish. For example, IE5 can create an thing that looks like that looks like a Windows explorer on a Zope folder. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From raver@box.dust.za.net Tue Mar 23 22:32:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 23:32:13 +0100 Subject: [Zope] Using database-connection from external methods In-Reply-To: ; from John Eikenberry on Tue, Mar 23, 1999 at 11:43:42AM -0800 References: <19990323200153.C251@RaVER.duck.org> Message-ID: <19990323233213.A237@RaVER.duck.org> Got it working! Thanks all!! U have been most helpful. From tpatrick@IndigoNetworks.com Wed Mar 24 00:25:43 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 18:25:43 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8CB@IGOPDC01> Ahhhh.... Oracle's approach to this is an add-on to 8i called IFS(Internet File System). It renders a database to http(woo...woo, Zope does this in its native functionality). Although, they are working on a renderer for native file systems. This would enable object methods for making files on the fly. As Zope already accomplishes this(rendering objects), thus presenting the view of the oo database is thus a filter. HTTP,FTP,CIFS,NFS,POP,IMAP all are protocols that speak the requesting clients language. Make Zope the engine and supply a framework in Zserver to plug in the server renderer. Samba is a great example. It renders between file systems quite well, although it is rather a tough and complex animal and very specialized. Although it would work along the same lines. Actually, there is a PERL module to simulate file systems already. It could be good start. Considering that most file viewing on Windows is moving to HTML, the Network Drive is looking more and more like a simple security login with a connection that is persistent, rather than actually mapping the drive. A distributed (native-CIFS/NFS) file system would change the industry. Actually it already has (http) through a browser window. I am wondering when it will occur as seamlessly as not having to be in a browser. If an ORB existed that could render data to the requesting protocol, it would be a great product, I think ZOPE could do this through the ZServer architecture. The Server in this case is the renderer, the ORB is the fulfillment component and the OO Database is the storage mechanism. The protocol plug-in is stored in Zserver and renders the appropriate view of the data. PROTOCOL | SERVER | ORB | OO DATABASE | HTTP | ZSERVER | --- ZOPE --- | Client dependencies FTP | ZSERVER | --- ZOPE --- | Applications designed to be client/server!!! IMAP | ZSERVER | --- ZOPE --- | POP | ZSERVER | --- ZOPE --- | CIFS | ZSERVER | --- ZOPE --- | No Client dependencies - Native Applications NFS | ZSERVER | --- ZOPE --- | CLIENT/SERVER functionality yet no dependencies! OS support is the dependency! If the rendering engine were modular, ZOPE would always be first in delivering support for new protocols and client functionality(DAV Support!!!), without changing the structure of the underlying database. The data exchange between the ZSERVER AND ZOPE would have to be managed. "You wouldn't want to serve a POP client an Excel file unless it is an attachment just as you wouldn't want to render a query to a FILE SYSTEM accept ones that have been designated as OK." Get It? It would save the world a little time and effort if one system could render data to a diverse set of clients. Rather than making a new server every time a new client arrives. I could simply build a layer of translation(XML) for a client and BINGO! New client/server. At the Native OS level this has the most power. Rendering live data into an Excel file on the fly is a real world application that would be a huge hit right now. "I want this months sales report... open Sales.xls BINGO!!! The data is there." I would really like to edit html in Dreamweaver as I regularly do and have it render into Zope. If you had file system level support every known application could be stored inside of Zope or have access to the data inside of ZOPE. Here is the interesting one: If you can have direct file access you could: Open a client application out of an oo database that rendered a view of the database back at you. (Sounds awfully like an OS!!!) Just Thoughts..... Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Ross J. Reedstrom [mailto:reedstrm@rice.edu] Sent: Tuesday, March 23, 1999 3:57 PM To: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From bjs@crc.com Wed Mar 24 00:30:30 1999 From: bjs@crc.com (Bryan J. Smith) Date: Tue, 23 Mar 1999 19:30:30 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... Message-ID: <199903240030.TAA14192@mail.lsg.crc.com> [Project Idea] Looking ahead to the future of Linux ... [ I am on the Digest list, so send responses directly if you expect an immediate response. ] Although I am a new user, I am quickly growing very fond of Zope. Quite amazing, multiplatform and all. The option to use either the built-in DB or an external one, the built-in web server or an external one. My entire company is thinking of standardizing on Zope since we run Solaris, Linux and NT (along with a few, rogue *BSD variants) on our server-end. Little and big internal projects aside, I was wondering if Zope could possibly fill a gap that will come about with Linux shortly. That gap is software distribution at the enterprise server to client level. Linux (and many other OpenSource software and systems) is winning in the server arena, but the corporate desktop world is staying with NT and the consumer world is staying 95/98. While the third will take awhile, the corporate desktop is something that is attainable in the next few years (with all the Windows 2000 issues which I do not want to get into). Microsoft has SMS for NT and even Apple has a better system for MacOS X Server. What does Linux have? First off, most Linux distributions have RPM. While the format is the same, the filesystem and other distribution or installation-specific configuration may differ. Quite possibly, a Zope-based distributed management system could be built to serve this purpose. I guess my main question is if anyone else is trying to forge such a project togther. E.g., does the Caldera Open Administriative System (COAS) plan to solve such software distribution issues? If not, do any others? If not, I'd say it is a BIG DEAL to get such a project underway. And Zope may be the perfect fit for the back-end (hence, why I am posting this to this list instead of a my local LUG). Just an idea. Please feel free to pick it apart (short of calling me an idiot, well maybe you should anyway :-). I am still learning Python at this stage (big-time Perl advocate, but Python is definately better for web-apps). -- Bryan Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================== How can you say your operating system (OS) is enterprise- scalable when you run a competing operating system for your mail services (Solaris for Hotmail), sport the absolute worst uptimes for application services versus all other OSes (con- tinuous crashes under heavy loads), and have just now, finally started an 64-bit port let alone it is a completely incompa- tible fork from your existing 32-bit API? From Paul@digicool.com Wed Mar 24 02:30:37 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 21:30:37 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Bryan wrote: > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. > That gap is > software distribution at the enterprise server to client level. The field of online software distribution is certainly hot. Marimba, the original Java darling, has reinvented themselves in this field: http://www.marimba.com/products/products.htm They are playing, though, in a pretty complicated mission-critical kind of field. The requirements are pretty daunting. > Linux (and many other OpenSource software and systems) is > winning in the > server arena, but the corporate desktop world is staying with > NT and the > consumer world is staying 95/98. While the third will take > awhile, the > corporate desktop is something that is attainable in the next > few years > (with all the Windows 2000 issues which I do not want to get into). > Microsoft has SMS for NT and even Apple has a better system > for MacOS X > Server. What does Linux have? > > First off, most Linux distributions have RPM. While the > format is the same, > the filesystem and other distribution or > installation-specific configuration > may differ. Quite possibly, a Zope-based distributed > management system > could be built to serve this purpose. One thing I've seen that's pretty interesting in a low-tech kind of way is rpmfind from rufus.w3.org from a repository. > I guess my main question is if anyone else is trying to forge > such a project > togther. E.g., does the Caldera Open Administriative System > (COAS) plan to > solve such software distribution issues? If not, do any > others? If not, > I'd say it is a BIG DEAL to get such a project underway. And > Zope may be > the perfect fit for the back-end (hence, why I am posting > this to this list > instead of a my local LUG). It's certainly a big deal in that it is an enormous initiative. Take some time to jot down what you think the business goals and the requirements of such a project might be and recruit some volunteers! > Just an idea. Please feel free to pick it apart (short of > calling me an > idiot, well maybe you should anyway :-). I am still learning > Python at this > stage (big-time Perl advocate, but Python is definately better for > web-apps). Oh you certainly say all the right things. --Paul From jbb@spyderlab.com Wed Mar 24 04:14:36 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:14:36 -0500 (EST) Subject: [Zope] handling exceptions in DTML Message-ID: Beyond writing an ExternalMethod, is there a good way to catch exceptions? For example, I have a database application that looks pretty ugly if someone attempts to add a duplicate key to the database. Ideally, I'd use a tag to trap exceptions and to provide handlers for them. Anyone have any thoughts on this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Wed Mar 24 04:23:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:23:11 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: Message-ID: Hmm, I found a reference to this in the Collector as something that has been planned. Is anyone working on patches to address this in the near future? I'd be willing to take a stab at it myself if not. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From julian@zereau.net Wed Mar 24 09:01:37 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 24 Mar 1999 09:01:37 -0000 (GMT) Subject: [Zope] quoting in python Message-ID: I need to be able to use the var tag's capabilities to neatly quote URL metacharacters, but I need to do it within an expr="foo" mini python snippet. This is so that I can quote individual included variables into a query string I am building. Is there any way to do this? --- Julian Morrison Programmer (Zereau Ltd) From jarvis.sd082@ex.tel.co.jp Wed Mar 24 10:40:44 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 24 Mar 1999 19:40:44 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723FCC3CE@telisnt1020.is.tel.co.jp> Thanks for the pointer! I have to retract what I said in a previous post about not having a problem with the ZODBCDA--it has the same problem. I had made a small hack of a product for my own study that connected through ODBC and that didn't have the problem because I used Python longs. I somehow got the two confused... This works, but everything gets converted to floats like you said. In my case, this is not so much a problem because I use a lot of large numbers but doesn't seem practical for general use. I found that if, in Buffer.c, I change lines 143 and 144 to case 'd': return PyLong_FromDouble(self->val.d[ii]); I can get the same results as my product--everything is a long. Unfortunately, this causes everything to be printed with Python's 'L' appended instead of '.0'. Either can be fixed by using fmt="%.f" to all of my number fields, but that seems like a lot of extra work (maybe a quick hack to the Z Search Interface would do the trick?) Plus, what if I really have floats somewhere? Would something like: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'f') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 in ociCurs.py (lines 123-131) handle this? I haven't tested it yet on float fields. It might be better to just leave everything as floats. John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: Jim Fulton [SMTP:jim@digicool.com] > Sent: Wednesday, March 24, 1999 12:00 AM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > > > TFE MMS JARVIS JOHN wrote: > > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > > > Traceback (innermost last): > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in > publish_module > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > > (Info: /queries/wisdom/customer-Line/manage_test) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > > (Object: CopySource) > > File db.py, line 198, in query > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 317, > > in fetchmany > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 279, > > in fetchone > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 75, > > in _error > > oci.error: (see above) > > > > I tried changing line 219 in query() in db.py: > > from > > if scale==0: type='i' > > to > > if scale==0: type='f' > > > > in order to force a float type, but this has no effect, it seems. > > This typr only affects meta-data seen by some Zope tools. > > > I'm sure that I'm misunderstanding something here. > > Nope, you aren't. > > > Any pointers to where I can look to fix this would be greatly > > appreciated. > > There is a similar change that needs to be made to *work around* > this problem. In DCOracle/ociCurs.py, change: > > elif dbtype==2: # Number > if scale: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > to: > > elif dbtype==2: # Number > if scale or 1: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > This has the undesirable effect of causing all > numbers to be treated as ints. (This is what oracledb > does) :( Unfortunately, you can't tell from Oracle column > meta data whether values in a column will fit into Python ints. > > The right way to fix this is to implement Oracle's > NUMBER or VARNUM C data types and convert to Python > ints or longs on a case by case basis. > > Jim > > -- > Jim Fulton mailto:jim@digicool.com Python Powered! > Technical Director (888) 344-4332 http://www.python.org > Digital Creations http://www.digicool.com http://www.zope.org > > Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email > address may not be added to any commercial mail list with out my > permission. Violation of my privacy with advertising or SPAM will > result in a suit for a MINIMUM of $500 damages/incident, $1500 for > repeats. From Paul@digicool.com Wed Mar 24 12:31:19 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 07:31:19 -0500 Subject: [Zope] handling exceptions in DTML Message-ID: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Jordan wrote: > Is anyone working on patches to address this in the near > future? I'd be > willing to take a stab at it myself if not. Please, stab away! If you write the try DTML tag, we'll crown you Prince of Zope, or at least Most Honorable Potentate. Looks good on business cards and the girls really dig it. --Paul From M.Faassen@vet.uu.nl Wed Mar 24 15:25:48 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:25:48 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F903FC.F53C8EFB@pop.vet.uu.nl> "Bryan J. Smith" wrote: [snip] > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. That gap is > software distribution at the enterprise server to client level. I'm not sure I understand what you want here, but perhaps interesting for you is the Trove project. Perhaps it's directed more to larger scale internet based distribution, though. Another problem is that as far as I know the project isn't progressing very quickly if at all (perhaps you can help). I've even heard mention of ZTrove, which would be a Zope based Trove, if I understand well. I don't know what the status on that is. Mind, I don't know a thing about Trove, just giving pointers in the hope it's useful. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 24 15:26:47 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:26:47 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F90437.EFA9C1A5@pop.vet.uu.nl> Hi again, Whoops, forgot to mention an URL for Trove, so here it is: http://www.tuxedo.org/~esr/trove/index.html Regards, Martijn From gilles.lavaux@esrin.esa.it Wed Mar 24 15:30:52 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Wed, 24 Mar 1999 16:30:52 +0100 Subject: [Zope] Pb: REQUEST.set with formating. Message-ID: <01be760b$4d817480$fce3ccc1@asgard.esrin.esa.it> Hello I try to set a variable to the current date with some formating: This works: But how can I format the ZopeTime to get only the part I want.(month/year for exemple: fmt="%m/%Y") ?? Gilles Lavaux From michel@digicool.com Wed Mar 24 16:14:33 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 24 Mar 1999 11:14:33 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BBAB@gandalf.digicool.com> > -----Original Message----- > From: Martijn Faassen [mailto:faassen@vet.uu.nl] > Sent: Wednesday, March 24, 1999 10:26 AM > To: Bryan J. Smith > Cc: 'Zope List' > Subject: Re: [Zope] [Project Idea] Looking ahead to the > future of Linux > ... > > > "Bryan J. Smith" wrote: > [snip] > > > Little and big internal projects aside, I was wondering if > Zope could > > possibly fill a gap that will come about with Linux > shortly. That gap is > > software distribution at the enterprise server to client level. > > I'm not sure I understand what you want here, but perhaps interesting > for you is the Trove project. Perhaps it's directed more to > larger scale > internet based distribution, though. Another problem is that > as far as I > know the project isn't progressing very quickly if at all (perhaps you > can help). > > I've even heard mention of ZTrove, which would be a Zope > based Trove, if > I understand well. I don't know what the status on that is. > > Mind, I don't know a thing about Trove, just giving pointers > in the hope > it's useful. > > Regards, > > Martijn > Trove is sketches of code in Python (written by Eric Raymond) and ZTrove is vaporware, barely prototyped in bobo a few months ago when I was on the Trove list. It's unfortunate, since I felt that Trove was a great idea; the Internet hasn't reached the point of 'we need it now' in order to get some development behind it. Personally, I think Sunsite and RedHat should give us lots of money so we can write it. :) With Ken and I now in the Zope loop (Ken was one of the original Trove designers, and I was in on the GUI side of things, pushing what was at the time Bobo) we could probably bang something out sometime in the far future. We'd prefer someone in the community start it up because Paul and Rob have us booked sometime into the year 2011. -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From wade@okaynetwork.com Wed Mar 24 16:49:58 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 11:49:58 -0500 Subject: [Zope] fsimport and permissions Message-ID: <199903241649.LAA11692@emerald.lightlink.com> I just ran into some odd behavior with fsimport that may explain the problem that Milos posted last week. On my Linux box, if fsdir == '/fred/barney', then fred as well as barney must be world-readable. If not, you get the error traceback Milos reported in his March 14 posting. Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From prudek@sol.cz Wed Mar 24 17:10:29 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 24 Mar 1999 18:10:29 +0100 Subject: [Zope] Re: fsimport and permissions References: <199903241649.LAA11692@emerald.lightlink.com> Message-ID: <36F91C85.924DF20E@sol.cz> > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. Bingo!!!!!! Now, is this a correct behaviour? -- Milos Prudek From wade@okaynetwork.com Wed Mar 24 17:36:19 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 12:36:19 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241735.MAA13778@emerald.lightlink.com> > I just ran into some odd behavior with fsimport that may explain the > problem that Milos posted last week. > > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. > Oops, posted too fast. I should have said that fred must be world- executable (listable). -- Wade From aboulanger@ldeo.columbia.edu Wed Mar 24 18:14:10 1999 From: aboulanger@ldeo.columbia.edu (Albert G. Boulanger) Date: Wed, 24 Mar 1999 13:14:10 -0500 (EST) Subject: [Zope] Confera Message-ID: <199903241814.NAA13900@ox> I know Confera is unsupported. I did download it (1.2.0) a few days ago and tried to install it as a product. It is a broken product since it needs a module SearchIndex.TextIndex. Any idea on where to get this module? The Zope I am using is 1.9.0 Regards, Albert Boulanger Columbia University From eq3pvl@eq.uc.pt Wed Mar 24 18:38:39 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Wed, 24 Mar 1999 18:38:39 +0000 Subject: [Zope] Confera References: <199903241814.NAA13900@ox> Message-ID: <36F9312F.38DA362C@eq.uc.pt> "Albert G. Boulanger" wrote: > > I know Confera is unsupported. I did download it (1.2.0) a few days > ago and tried to install it as a product. It is a broken product since > it needs a module SearchIndex.TextIndex. Any idea on where to get this > module? The Zope I am using is 1.9.0 > Confera uses ZTables functions, and these were introduced in Zope 1.10 ...just download Zope 1.10.2 and Confera will work just fine. pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Wed Mar 24 18:40:51 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 24 Mar 1999 19:40:51 +0100 Subject: [Zope] Confera In-Reply-To: <199903241814.NAA13900@ox> Message-ID: <4.1.19990324194019.009bcde0@mail.atmm.nl> At 19:14 24-3-99 , Albert G. Boulanger wrote: > >I know Confera is unsupported. I did download it (1.2.0) a few days >ago and tried to install it as a product. It is a broken product since >it needs a module SearchIndex.TextIndex. Any idea on where to get this >module? The Zope I am using is 1.9.0 > Confera requires Zope 1.10.2 to run. SearchIndex is a package that is oncluded in that release. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Wed Mar 24 19:04:11 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Wed, 24 Mar 1999 14:04:11 -0500 Subject: [Zope] authentication problem Message-ID: <36F9372A.BCADD32B@GestaltTechnology.com> Zopists, I have a secure site and trying to secure a part of the site so that only those with the role of system admin coulds access. One special page has the following code the uses a 'with' tag to include a parent environment:

    Available Documents:

    The parent object has the following permission settings: Roles Acquire permission settings? Anonymous Manager Sysadmin User no View yes yes no Access Cont. info yes yes no Open close DB conn yes yes no use SQL methods the rest are set to acquire .... the role sysadmin is declared in the gestalt object.. Do you what am I doing wrong? Fredy Villa FVilla@GestaltTechnology.com From pj@sam.engr.sgi.com Wed Mar 24 19:06:00 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 11:06:00 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241906.LAA16274@sam.engr.sgi.com> |> I should have said that fred must be world-executable That's just Unix-style permissions, no? Can't expect to access "/fred/barney" if you don't have execute perms on "/fred". ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From ShawH@STHS.org Wed Mar 24 19:27:44 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:27:44 -0600 Subject: [Zope] Counters Message-ID: I remember noticing various comments on the list bemoaning the lack of some sort of counter. I also remember noticing the objections which were raised, and why counters weren't feasible. I don't remember reading these objections, which may be why when I found a need for a counter, I sat down and wrote one. I now have a working Counter product which provides a tag . It includes the ability to have multiple non-incrementing displays of a counter, and the optional ability to render the individual digits using a supplied template, thus allowing graphical counters of whatever sort you feel like using. The counter uses a long property in the containing folder, so you can manually set the counter to whatever you want. It also provides the optional capacity to have a short 'memory' of recent IP's, preventing the 'running up' of the counter by scripts or massive reloading (well, makes it more difficult anyhow). The template is supplied with variables which indicate the position of a given digit in the list (it is wierd, it works from back to front, since it uses modulus) including whether the particular digit is the first, etc. If someone will supply me with instructions on how to package the product, and how to upload it, I will be happy to make it available. Thanks are due to tsarna@endicor.com, on whose product this was based, and to Jim Fulton and Philip Aylesworth for answering my questions. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:34:10 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:34:10 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN In-Reply-To: <199903241906.LAA16274@sam.engr.sgi.com> Message-ID: <199903241933.OAA17777@emerald.lightlink.com> > |> I should have said that fred must be world-executable > > That's just Unix-style permissions, no? Can't expect to > access "/fred/barney" if you don't have execute perms on > "/fred". > Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 /fred/barney. Then anybody can get a listing of barney, but only root can see what's in fred. And if I su nobody and run python, os.listdir('/fred/barney') works but os.listdir('/fred') gets 'Permission Denied'. -- Wade From ShawH@STHS.org Wed Mar 24 19:35:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:35:08 -0600 Subject: [Zope] Counter 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_000_01BE762D.6CC78340 Content-Type: text/plain Well, I think I figured out how CalendarTag was packaged, so I packaged CounterTag the same way (I think). Its only 2.24Kb, so I am going to attach it... I hope I won't get shot. . <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE762D.6CC78340 Content-Type: application/octet-stream; name="CounterTag_tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CounterTag_tar.gz" Content-Description: CounterTag_tar H4sICAFA+TYAA3Rlc3QudGFyAO1Za2/byBXNV+lXzDooKDWyLMUv1A2DZm0X66Ldpo63/WAYxJgc SYOQHJYztKP99T13ZvjQw1p0E7QoqnESi+S9Z+7ce+6DSiofj4qlWaj86GOpkio2+uhSVbkR5dGr b7TYyeT8/JS9YrQma7/9BTs7Oz+bTN5O304Zm54cnx6/YqffyoBdq9KGl4y9KpUyu+R+6fn/6Ep3 xD+KZC5NFI2L5VftMZ1Mzk5OdsT//MzF/y3CfnyO+J+dniD+k290xp3r/zz+UZSoOIpYyIIg8IFn hs8ZhV7yVP7MjVQ5Hvb7MitUaZiXuuPz/n/b+v362rUr/9tAf10F2J3/07fHx03+nx8fn+LW+fRk us///8SalSpjVyquMpGbO5EVKTdifHUX/WRkynzG/7b/otgnU8p8Xgu6q34/TrnWnUJx0adIUxGh 350yc9G3d959d3j4Ova373k51w+Hh+/7jiD3qqASxFNm/MYsVol4aDWPYp6KPOElKdnbt7gUpWac edQxu1sIth2JxTxnj4KJLyKujEjYTJVM8HhhoRI5lwblkJmFqNEYzxMmNRTTFPLP0iyYFk+iBHSl xaxK2RMvJX9MhR47i/5eX/sjO9iBzA27nxz+7mF44W8ZRbYkUsPApUicdKG0lYUUPko6BVMzpzFi RGFDYeCGlXK+MNY+ayvdTcXMjC0MHcEKZEqb+mSaIMNw6g2dyVI3ho2mZNiUyZk7flWWIECrSTcJ nvBGTKRasInHQTkpBMzCidkAZ4nhKHgxVrnhaC6wa6ZSBGnoxL1nD9/lPBPvL5qtnnhaCTqrF6DT qhJYXLNU5fMxu06kIc+6Izp9sq0UflcbHrK0waILsMyymQWkEThtkKQUpAxG8KLg1gRRliCEZ0Dh jrVkBZ8L3CGXI+BawBnKYvA4FoWxwn+miNAH0LHet4msM2dEbIvJHUtVUfBLkaknYZEc71SZULIo JnBQGLZkCjilUydew1z8yRU9bI3Nlpbc41X3yiKV2jRepgvrXO9tWeiug7XN53UXUya5J96jGYoo E/SZUgqWcu8mi+95UQpdpYZVSMyZzEXisAbfV4aEHwG/ZI88+c7z4YMPT50vZDAbuG1BSXvpPdow A1FIaHuZQFHOlnWwJGWhTTox42QE3BV4rcA7SKOEpc0OLFgKHYAaKsBm+MwywXPNEoxC3aNi97qU bO5AEB5d5jHiSh7eukEiYEkGr2j2vBA2ut1q8yzT1MKgMDRIROyFyJlLxNIWvNqrL1gRL0T8OUKM /y0rbq//8te76+jD1dXtiiWxyihBQJQ5EhoM2MqxMbuZ+W2oKHGWcRMvyLIZxJOmLHXParm8dlbL IRKUhZPBc54kv3DivMq658Uh69hpy1O4D+hz7KsLEYMy5BTaJeNfZFZlBPAoSosFthEU1GyC4GCm ybvkSWpBGWIfC0p6qo5KsQXK7YhyydkekWssnE0a68YcjcM45pKLbK/ldYZRH7IlRW/h8PS0Puj1 F078vbDJ6Uq4eQYeVTObDWhVI8fXhSwToGQKMSutJ5A3dDrerRT2JQAWzUUuSAoWzUteLAioEyxU Vio6X4DEUpTUenPuQ4tBwLeL8WarR7v2/bu53jIPuMwMc1WLo7U6yC36pL0Lo+VUSFndZIS98mwJ jyfN9GFR0P0O3LFQWl2zPGjnk3cymzNdxuHBkfeQrg3SRxsGP8p5Mp7L2UF3AyL3rwV0zl1HPJKz GnDDRc4/lyX1EzTnf5TSGBSSxyX7QT1zkOMyRVZgwvi04M/s5ubG2+XX95zKrMrd7AQto3mZ8z+g AslYlWPUBTa49BOZe3kY9nvMdQ6ef7Yp9CeZsT+CxoAhzn9cyBSJ/WGJAekZk+TCzmCouM/CZgGa mYf4ZyU0jT+aehxnRmYCjYMwFiItaPLKeA7KjpuRs20fYVv1XRFLVfz5UtGUVHEHGrKBb0DIM1Z/ AzLQIp2NnLweXjT+MAQ7olGC2qaI7VwWern7yUMjSPrjVsB/GjvBVSkCgwhKqxYR/uWZHrgNaLMw CEY1m+ljS2e6aulMVzWdg8AfqdkjW3p/2Ku5wPw4jwZuEBq1Thqu2e9a5LqWu016VHiHYWh/r6q2 /W9du3myG6BtXesAzZMNgJ4plxcr3LWadU8IqfYP1jzgnhEUausQvMWsgiEfOL0tANNJy5Uaw1HF EQP30W46hEElaYI8XnAdfRbLAckOVw0thanKvJW9J5mWTlQvtiq4DVujGu9GPqbevCzpkKVhCozo FWGW3AcfP9xe/3j3KXggEvdg9aCRHnpX0NwTBms9P3jT4dfvnaB0kLfXf/vp+tMdIIPORBE8eKEZ K8gh/q1hOSB42qrneya8Ta17UFCwVqWGJEXNmUqCFyfN1i+4cC7reYtqyPrTG3Yvi4f6MY6L6jXw D4fsfddBkNnQv784nNbaxTiqigQdc8XIEXptA+jLYW0SNPTamaw4mTQcmWWBVHfTADKyt+r3FYfb SG134w7Ltnj0zRQbefO85oaFU2fZAb2EHXRqpptEIzc4dejm31XRPkduRiCzch2S4brAi5qTdRu6 F8zQK3kjlK2L0HfXriOH7re7NbR0zZJxVFR6MbjBhMPzWFzJ2AxyTXbA974uuHyGvjfY1eJBt1Jb hfUSYNFVMZj6KBZc636vTtgX/KAbR9hTb+TYSgi2Bxfb0egxJXtw4HDS71Fp7/ee0Tvx4pK/n9SB tl4Lqbrl7DcoUt7SPMyPULEajtPkmoPcVs+jTr1fQrvzaiy3R/GNbsIT4u+b6cvOWHECWbDaG4bd IrtZuWj71V4wWqnHww6m60k1YG0PcorYOvg13h8OfZJ30qJbpdfCTcTpv+51dk5kubHxcNhzPooi +irJfg/vgKBc+w6ZV09Tq93FtZbXK80N93TkugWwqBe8pp9Ok9qO5RoHVH5Uueii1h3LAq+3rEZq 3RsdM1oh57ltOr5t9fCD5zZt8YbXfS2kt5F5qh4pEft99z0jTZoY9hJ930wsdOj9/0/s137t137t 137t137t1369sP4F2FdJwQAoAAA= ------ =_NextPart_000_01BE762D.6CC78340-- From ShawH@STHS.org Wed Mar 24 19:38:50 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:38:50 -0600 Subject: [Zope] Counter Message-ID: With regard to the IP checking mechanism. Realize that this reduces the count for machines behind a masquerading firewall and increases the count for machines on dynamic IP dialup accounts. If anyone is interested in using this counter but wants to prevent a given IP from incrementing the counter a second time under any circumstances, it should not be too hard to modify the code to store the IPs in an SQL table as (I think) Slashdot does. I have no need for this, and don't intend to code it, but the code, being Python, is, I think, clear enough to modify. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:41:01 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:41:01 -0500 Subject: [Zope] navigate ZDB with Python Message-ID: <199903241940.OAA17995@emerald.lightlink.com> Hello, I'm trying to put together an External Method that needs to operate on several different objects within the ZDB (a/k/a ZODB, BoboPOS). How do I specify an object ID and retrieve the relevant object? sorry to be obtuse, but I can't find an example anyplace. In the onl;ine docs, this URL -- http://www.digicool.com/releases/bobo/BoboPOS3/BoboPOS3.html -- looked promising, but it comes up empty. Thanks -- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Wed Mar 24 19:53:36 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 14:53:36 -0500 Subject: [Zope] Counters Message-ID: <613145F79272D211914B0020AFF640190D9F64@gandalf.digicool.com> Howard wrote: > I remember noticing various comments on the list bemoaning the lack of > some sort of counter. I also remember noticing the objections > which were > raised, and why counters weren't feasible. I don't remember reading > these objections, which may be why when I found a need for a > counter, I > sat down and wrote one. I now have a working Counter product which > provides a tag . I'll indicate my appreciation of your contribution by, well, asking for more! :^) One of the big objections of the counter kind of object is that the object database gets bigger on every request. A good workaround for this would be to cache writes to the database. Thus, imagine a counter that: 1) Only wrote to the database after a threshold had passed. For instance, only every tenth state change or not until ten minutes had elapsed since the last write. 2) If the process was nicely shut down, the object would save itself. 3) Had knobs in the management screen that allowed adjusting the "buffered write" policy. The benefits: 1) The database wouldn't keep versioning into oblivion. 2) The application wouldn't be slowed by writes on every request. The drawbacks: 1) If the process exited not nicely, some state changes would be lost. --Paul From ShawH@STHS.org Wed Mar 24 19:48:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:48:02 -0600 Subject: [Zope] Counter Product Message-ID: The counter ought to place the properties in the Document if it is a Document and not a Method. If anyone can contribute code which will take 'md' and return x, where x is either the Document or the Folder containing a Method, I would appreciate it. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From tfraser@crieff-strathearn.freeserve.co.uk Wed Mar 24 19:49:09 1999 From: tfraser@crieff-strathearn.freeserve.co.uk (Tim Fraser) Date: Wed, 24 Mar 1999 19:49:09 +0000 Subject: [Zope] is win3.1 ok? Message-ID: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? I'm currently running Zope on Win95 desktop without problems. From joctavio@jimihendrix.net Wed Mar 24 20:00:35 1999 From: joctavio@jimihendrix.net (Ze Octavio) Date: Wed, 24 Mar 1999 17:00:35 -0300 Subject: [Zope] IRC DalNet Channel Message-ID: <36F94463.A827A58F@jimihendrix.net> Hello Zopians, Another way to get in touch with Zope questions, just go to irc.sodre.net (or another server from DalNet) in channel #zope I will be in the channel and who wants can be operator, just talk with me. Thanxs all Ze Octavio PS: Questions in spanol an portuguese are welcome too ! From ShawH@STHS.org Wed Mar 24 19:43:18 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:43:18 -0600 Subject: [Zope] Longs on the Property page Message-ID: In the stock Zope 1.10.2 distro, putting a Long in a property causes a curious error to manifest. When the property page is displayed, the long is display like 44353L. If the then change any other property and attempt to save changes, you get a traceback saying that the property for the long is invalid. You are forced to manually remove the 'L' before saving changes. May I suggest that when the properties are display, if the type is 'long' then the display code should do something like this: str(long_value)[:-1] This would remove the L before it was ever displayed.... Alternatively, something in the response code needs to be modified to accept an 'L' at the end of an integer destined for a property whose type is 'L'. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From ehmka@yahoo.com Wed Mar 24 20:09:04 1999 From: ehmka@yahoo.com (Kevin Ehmka) Date: Wed, 24 Mar 1999 12:09:04 -0800 (PST) Subject: [Zope] The best way to pack and close PickleDictionary? Message-ID: <19990324200904.8613.rocketmail@web204.mail.yahoo.com> Previously, using Bobo, I created several PickleDictionaries for use on my website. Regularly, I would pack these databases before ending the CGI call since they were altered very frequently. Now, using Zope, I find that I cannot pack them without receiving error messages telling me I'm attempting to write while the database is in read-only mode (it appears the Zope threads out the packing). I also found that Zope caches these databases and issues an error when I attempt to open them again. What is the best way to pack and close these databases? How can I query which db's have been opened? Even if I do keep a mapping of previously opened db's, how can I find out if Zope is closing them. Any help is appreciated. Thanks, Kevin _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From jbb@spyderlab.com Wed Mar 24 20:22:17 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 24 Mar 1999 15:22:17 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. Hey.. this isn't bad.. in writing even :) Okay, I have a prototype of this written.. basically you can do the following: foo bnar The exception was So, if an error occurs inside the first block, the second block is rendered with err substituted for the variable (in this case it prints exceptions.KeyError This is pretty basic stuff, so I'm looking for ideas on where to take this. Anyone have more ideas? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From petrilli@amber.org Wed Mar 24 20:28:49 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 24 Mar 1999 15:28:49 -0500 Subject: [Zope] is win3.1 ok? In-Reply-To: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk>; from Tim Fraser on Wed, Mar 24, 1999 at 07:49:09PM +0000 References: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Message-ID: <19990324152849.B11092@amber.org> On Wed, Mar 24, 1999 at 07:49:09PM +0000, Tim Fraser wrote: > Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? This is just a guess, but I doubt it. You'd probably need a DOS port of Python, which would eliminate all the networking code. This is just me, I don't have a 3.1 box, but... you're welcome to try :-) > I'm currently running Zope on Win95 desktop without problems. Goodie goodie :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Paul@digicool.com Wed Mar 24 20:55:29 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 15:55:29 -0500 Subject: [Zope] FYI: Slightly updated version of the Z ODB tech docs Message-ID: <613145F79272D211914B0020AFF640190D9F66@gandalf.digicool.com> I've gotten a lot of reports about a broken link to the ephemeral, much-referenced "BoboPOS3a1" technical docs. I promised myself I wouldn't update the link unless I updated Jim's doc to Zope-ify it. Thus: 1) The official name of the database is "ZODB", the Z Object Database. 2) The News on the site has a link to the ZODB3 Technical Documentation. This is a very well written, circa October document from Jim Fulton that describes the architecture of the next version of the database (i.e. Zope2). It's quite nice -- contains UML diagrams, API discussions, etc. 3) The broken links have been updated. --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From ShawH@STHS.org Wed Mar 24 21:42:46 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 15:42:46 -0600 Subject: [Zope] Counter Message-ID: Ok, having read the newly available ZODB manual, it seems that I should override __setstate__ and call the old __setstate__, passing it a dictionary containing only those attributes I wish to be persistent. Then I don't have to call my __setstate__... it will be called automatically by the system. This should have the effect of making any item not mentioned in my dictionary non-persistent, which will allow me to accomplish Paul's goal. Now, the BIG question... This ZODB manual is for ZODB3, which we don't yet have! So is this still the correct and workable technique for accomplishing this? Thanks again... and please everyone, don't use the old Counter product, since these tags are going to conflict horribly, and this new product should be much better for the DB, according to Paul, if I can make it work. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From lstep@mail.dotcom.fr Wed Mar 24 22:04:21 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 24 Mar 1999 23:04:21 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . In-Reply-To: Paul Everitt's message of "Tue, 23 Mar 1999 21:30:37 -0500" References: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Message-ID: <87bthilf2y.fsf@eurythro.savigny.stp> Paul Everitt writes: > One thing I've seen that's pretty interesting in a low-tech kind of way > is rpmfind from rufus.w3.org from a repository. For .deb there is the official package manager (www.debian.org), but there's a 'Debian Package Finder', which is already complete python :-) On http://badger.alaska.net/debian/finder.cgi That may be easier to convert to Zope. Luc From pj@sam.engr.sgi.com Wed Mar 24 23:50:12 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 15:50:12 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903242350.PAA02166@sam.engr.sgi.com> Wade writes: |> Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 |> /fred/barney. Then anybody can get a listing of barney, but ... Well - darn if you aren't right. Only the immediate parent directory of the item to be opened/listed matters (so far as execture permissions), not the grandparents and up. Seems strange to me -- but seems you're right. ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From neves@inf.puc-rio.br Thu Mar 25 00:38:21 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 24 Mar 1999 21:38:21 -0300 Subject: [Zope] handling exceptions in DTML References: Message-ID: <36F9857D.C40204EE@inf.puc-rio.br> "Jordan B. Baker" wrote: > > ... > > > The exception was > > > ... > > Anyone have more ideas? Maybe something like this for the version 2.3 :-) ... ... ... ... regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From ShawH@STHS.org Thu Mar 25 01:06:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 19:06:02 -0600 Subject: [Zope] New Counter Product 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_000_01BE765B.A6C63540 Content-Type: text/plain Here is the updated Counter Product. This contains two classes, one which provides a visible Counter Product which can be added as an object, and which has Security options, and a new tag which provides a means of accessing the Counter Product. Note: the tag should be able to access ANY object which possesses a getCount() and a incrementCount(md) where md==_. So an SQLCounter Product which stores its numbers in an SQL database should be able to use the same tag structure. Since it passes md into the incrementCount, the Product is free to store as much or as little of the REQUEST as it chooses. My product stores only the IP address, and only under proper conditions. The tag structure is described in the CounterTag.py source file, and examples are given. I hope this is useful to someone. <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE765B.A6C63540 Content-Type: application/octet-stream; name="Counter.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter.tar.gz" Content-Description: Counter.tar H4sIALSN+TYAA+0aS2wkR3X4StNKpEhcQarMEvUMO56PP+PETJts1uvEKJs1a28SZFmtdnd5ptj+ TLq615lEe4AbZ8SJG6cgIYTElUMuiHPuCDhzgHNO4b36dfd4/Mnau8tnSrKnu+rVq/evV/U6ZEfd yTQbJ3F3N02C3M9493aSxxlNu7VramS1t76+RmoEW2/mV72QwWB9sLze7w2WCemvrgzWa2Ttugg4 r+U881JCammSZOfBXTT+X9rCc/Tvy99bQdAJsih84jX6vd5gdfVM/S+v9te0/gervVXQ//rq6kqN 9K6RzzPb/7n+h2PQ7KZFyHBMvWBzmLEspJugcqKsYNiVXcOuAEDIoySYkqORn4RJ6jRubIvWwCEL 9TkcL1cRwLsYkKPHSRoRz89YEjuNyIu9EXW9IFDQDRJRsMbAaeze29tvyIkwK/OOQkp8GoZ84vks HjmNZRitW/VhlsIvgoyJF7IRYH37zvZ+gzxSb/v3dhubOwEwMlaAwTmAFim1IYsneUay6YTC8J33 ATj2InhmQYNw9hE8rfUqc2AVEFIdftIvQd2QRpv7KOZhF56ulVKhvcsQ+2VovT2m/kOys0tucOLF AQkY/yAHoOMpSemEehn/wfVz4uOiLpvwEjeIJ4fHKeXXw9k7eXREU5IcA3ecZAnwE1HsegoMxXl0 Bjv9tevh5q3khICLTcmYZZwcUfA9Srj3CPwHecvGlAQeuJbH6VPg7yRlGfh2NofBlUsaYrCphtTL UbpZWW7vwRt3d/YNWgg7jc0KMhF38Bnjh3wddjEEiUjWxVC2aUGIElHweQfj59DO2/9dl8Usc93O ZHqlNS7Y/8n6oG/yv/4A9//B2mB5sf8/i+a6QeK7LnGIbdtK8STzRgRVz8DnP/Jwp4ZByzpOk4js RLBhbzPYjFk0SdKs6LAs1aPQzLzueyPLgs3dc9F1udMUzvixjbHC3iB6cbst+m2ZIeDAqRxhG9zX FlCPJXBLIIasgTsfy9nz52xoWjrVgfYZk+ZOsB4Ty3Jdz3cnNI0Y50Amd13FT9MupT6c223oKfDu JmEoKGnPdNqtVlvNvz324hE1KBCDHkQ+GfddzaVvyDRKaOrOzogd2+1RmBx5ITcYHs/GuPP8X/N+ Rfe/yP8H6z11/lvpDQaDHvr/6qC/8P9n0ZSP3vI/yBln6HKW6fIp57eTOEuTUHfe296TYeBNaVg6 CLy1f/dtNL82uQuTwBa3IHYkozbZBRNmPKNxJudtJX4ewds+jSahl9HO1r77IGOhRvS9s8H2shTz FgUo3yzLDz3OtbdIHywx09mB+cxnmTT/gpq2gizx2LmfhFT8uyt8M5UwwHJnDxYN6U5Gow7+k864 IZ3QlqFIUSA7IQYgqR5RzkgYSCrOcqDpEe1YAmY/ITmnBUybTJOcxJQGmJpBXIAhDMQqT5sARQLi xIsz0SPmCVQIP4G0G9aJO0Z2InATyHUAGtb3vRgyQHjPIWFnsUBRhGZwcnk+40me+gAGylSE3k5p AOnjBnkP8jmQHTmaEkgsvRTiXAhcwSJ7Y++E7OzsVPJC8gaklQGBYT8JKM7KuJfG3us0DpifpB0f FN287YXw7ikaWlUM+xALH4o0/IcsItt5CIuBTY1ZyCbk1jSk/ARsYSzOIHeZP/ZoCDoOQ5oxCNQV VCgHL+YnVBhRNCUf5JSjhFAzKGoW0XAqMI1pODnOQ8ycYwh/ltGzeMD9CrdLHXxlLzAUO7aIzrP3 JwrCbH2O2erUgNwJkomgBvaR+sd26B3R0N6wISbDLgPcwD5gtkS9d0Qei23YAkvwe9TPQUvTOdCe sHX7sVVvyXXn7mH1pv0uoyeKKDQjwv2U0hgIMDsZJNO82MIEGbjB1M3mVcJamqYoaFdhzb5v4NDc AL0fgkXDASkEj4VXFvupIMhMaMEU5aoGKRKPqEa0BIdDiumAHgPjnGYQ9uFw4jY5DY/b4kU5tHCC bNkRfaaHHZMm9HbGHncf0mnThjAwcYWGgfcNPKAg8hCnHpQHD616EXU685ZebtXLtMmcWw6ywDF2 1hYn+dK7OQ879hTtQx0nHbu/Zrf12cuxV9ZspA/xdVgAlssC9SYQQof4VX06YDmkp+cIBUDHwaGG 0QtDZ0GEpEKBKFoAgMLRrKleW2pUE6eH9bsedx+5hQQFMWXaKl6Dxufo3cckP3eEBRXJTyHfslEJ GaNsGo3GbeznIigKdsUFAF5vnIwhrmD8zrmMzDRkEYtBg/qqA2ZXROWAoMx6JZOWKhXCLnSntWYU 1tbbwf07P3pwZ2/feSeJqSISsRShH2wAovrYS8HTIapBMPNLtEhrqajWqOp8pTnnqcyZqzBFjxxU L2co06mosg5+pRhFGcdJRpBf5U8pzfI0rqYUEKLqyhNQyzSAA0O9HkkQxx5y2Mrj0eYrfNhVjwR8 FnY+2LiomNCxyStEuQPOlYESQ3qnWw5pMFQyHB1QykYDfWV1yFsIoQIRLuZwPyxzj1guIyMlhnmQ pchRjY/S2EgUKFLNaJngaye1Ei0rNlcKrgJg4kTBga1Ubx/i4917+3fcW1tb9yFmVmFVACr5WBUA mJ/gLi7HqisVdlTppiGnpwHNUurhJjlgk8PTYMAeZC1NCdUim6TsP63TeOchP9hY6h9KO8dWDiCK x/McaKbzZl8qcq4mlyqa1NQaHzaqPW8By6oemU/HXMh5qyEXjbKYpDe0iwPgTOBD4WCATinG3CKl 9kQaC3tpCIeHTKg/45Amp2jk20kYKHvcB3v30pFIiYmNVNjkhMEkSIaPRDJsMuzS1I5eVzqYFo1m 5hJ8yFRWyhI2/XtHP6F+hhNNfFSmND/+lZ2+FJWUX6s5rStfWV6i/odh9koFwAvO/ysr62v6/L86 WOlj/W+w2luc/59Fm1//Q5U/aQFw+PLS0o1HINPSYWFpadMytcEq8ouLg7hrP62y4DMsvOkahZGP AADJnFMJMb26lKFfr7dAV8b8dOt0gnmIeQYG+IcMVHTjlgyvcSLeuux4vmxKb1cS0aUqfdcrmbML fsYoFMjTZf0Jy4LXK4xzqoNGGhrmEuIgV/GWPBVb/1s6MD0939BfOZzNc8OcNFqNp8z3llLyNTKu udCp59LF5D95uRd3kkW990rtEvkfVpKutMZF9d++zv+WB8trq2tY/xksL+o/z6S9ubP96mveS7WX ar/+ovYFtFrt008/3d3drYkHCfTy51//Sq32jVobXxD29a+98f7GX373+xdef/jJzz798c3P//bN V7/9y59/508vfrZ1/6eTTm+S/+G7//rjbz/7zWfNRt168Mnf//neC39Nf/GrF//c3uk/uDH46j8+ +lbt+8+P7UVT7RL1X1mZucIaF9V/B/11ff5bXhHf/673++sL/38W7RkUZcF+zC1OuVSK1c0NdSzE tEFf7Bx46YgfFpnDgayMeSHJ1MKioHhYzOz6qohozpn34ZWmvLgu6oh7oPmYdGmUfkj9PKOBqBVS zx/Lu1U2ktdL5ZtecfmENdUwBPgTBqkWp49oCqhzTrF4CEkQwxyEq/rhu/pdsSzRNhmknQe9pdcO WxuqCxJwoAUObEDglAYSepJwAQtQ8ChK23hyETPaBE04EwXnjKRsNM4EfYJW7A3pcSbvs5AFARAl PNOccUTpOH1F6DFLuSGs3UfC+nhNJdhXibKZKeolgB7xtcWlKukpPLfUnZtmWIuuyYWRAFpRSU2O y4JtmzJLmPion1KVmiTiCq2jb7y9PBQ0mIqYWpiLYr1eh4gKB7HjxIYl4ZlE1Is5CZLYzkT5Kdfr aKM4vQKiUNiLi/S5CwQ0w9pnTLFyRAFrWrEbvHgUaEDFBhNa0JjGRIo0FaZLg3OpuPOhh0xuCKuW GstOEuLBOY4FgJKBZbYlU2OWwvmfRkkM9AJ3opKFYvcqalGfGoxoTFN50TpKvckYEZWoF7V2cBTA RELwU7042JvABn6vrKMzx7P1LSoQkbnFCUH5cHFiuNxMpWgnTjQOPHiIxa8DaaEfuYJVHHDAGxqS bwgU0nkaRbwasmhEeOo7ja4SIdd08O4pOo/YKMAMu1FeQF2FPBFCKf1ZjPI6pRwyZyTzH/aVh4hg pz/0mP2Ko4roS37SYW73T33SITwUItBD/DSIxbknsTqk2TqrVC/hy8WfDNG2sfbAIURTXWWUcAe9 oqwk7vgLAPXUkYBVKEQGIBMv5dSF/17Em3IBbcy23dY2jI+FEdt2y6oimymvjyhsIyO3WXxhUEik NUOsDLGzE2U3zsNQ1apWl4vAOTvNjNjt6sRy8VWASklLuUI/BO+SvMErjYzMdxoIO1OQK1dWEPYA YQptnK4MqglywdMVYV3bUsVWrYgoOChL+dCUdCqfMSAiGfHdWFxIGlxtvbtDgGnLMFtiJOYOko23 3lROqZAsN2hHoagMYSrhCKSVbhnPHPlbGWmVbTUKOu4k5+PmDpbeYp9uMT9rxlxwXzKwLJ1WhYiL KkalYTfLZi+mG/hjBjlaOINArJxMmv1q9JhApmk6tGqt+nzh8rKmjCgdbY5anTDcKW7hDCBG+n6J SBCU0yscw1FfAmI7GeMX0s14szdjfEIhDsTTZkxeIf1elZnYibv9XqULq7pYFozJJplFVpDRr8pa clS1q/kWdZPPGocDfzf7p0U6I9F5kjRlf+PRMwTPE/TMdwtlOzD4ZGA5w4+ztBkm8ah5vhZbLVlw 17PPdPPTouOCKAHrupjyi+/lJYhl3SA7qgpdTvQwnZLF8HBqWfJchFshbEABPzBx9RAQlb+Pf97H wUVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEX7H2r/BpAsys8AUAAA ------ =_NextPart_000_01BE765B.A6C63540-- From jbb@spyderlab.com Thu Mar 25 05:32:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 00:32:14 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: Okay after I opened my big mouth I had to deliver. :) NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE Here's an example of what this is: This is the try block You suck There was an exception! Yay!

    It was

    It has this to say: I incorporated a suggestion that except should handle to specify the error to trap. Also, will handle any errors by default. This is packaged as a product, is this the best way to distribute this?? Grab it from: ftp://ftp.spyderlab.com:/pub/zope/Try-0.1.0.tar.gz Since I've only been programming Python on and off, hopefully I didn't make any major assumptions about doing things a certain way. Please let me know if I have. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From phil@media-1.ml.uwcm.ac.uk Thu Mar 25 09:17:40 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 25 Mar 1999 09:17:40 -0000 Subject: [Zope] IRC DalNet Channel References: <36F94463.A827A58F@jimihendrix.net> Message-ID: <002c01be76a0$54f9e220$5c773fc1@media1> There is another IRC channel on the EFNET network, #zope. It is 'protected' by an eggdrop bot so there should be little chance of the channel disappearing. It is manned, at the moment at least by, Phil Harris, Fredy Villa and others. There is also a knowledge bot, zoppy, which can answer rudimentary questions about Zope/Apache/Python. We have a small but growing community, join us. See ya there Phil phil@philh.org ----- Original Message ----- From: Ze Octavio To: Sent: Wednesday, March 24, 1999 8:00 PM Subject: [Zope] IRC DalNet Channel > Hello Zopians, > > > Another way to get in touch with Zope questions, just go to > irc.sodre.net (or another server from DalNet) in channel #zope > I will be in the channel and who wants can be operator, just talk > with me. > > Thanxs all > > Ze Octavio > > PS: Questions in spanol an portuguese are welcome too ! > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From wade@okaynetwork.com Thu Mar 25 11:14:27 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Thu, 25 Mar 1999 06:14:27 -0500 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <199903251113.GAA14712@emerald.lightlink.com> > I'm trying to put together an External Method that needs to operate > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > How do I specify an object ID and retrieve the relevant object? sorry to > be obtuse, but I can't find an example anyplace. In the online docs If I have a URL like '/manny/moe/jack', I know that from within the top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. But if the context is jack, how do I specify the top level so I can talk about manny? Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From ags@beehive.de Thu Mar 25 12:27:43 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 25 Mar 1999 13:27:43 +0100 (CET) Subject: [Zope] Problems with Computed Fields Message-ID: Hello, I want to use a computed field to convert the broken umlauts from a database. I added a computed field and tried the following expression: translate(ARTBEZ,maketrans('”„','öüä')) But when i test the expression i get the following result: Test Computed Field Expression: translate(ARTBEZ,maketrans('”„','öüä')) Computed Field Error: (, ) Does anybody have a solution for my problem? Bye, Alex From jim@digicool.com Thu Mar 25 12:38:13 1999 From: jim@digicool.com (Jim Fulton) Date: Thu, 25 Mar 1999 07:38:13 -0500 Subject: [Zope] name of top object in ZDB? References: <199903251113.GAA14712@emerald.lightlink.com> Message-ID: <36FA2E35.9695D94@digicool.com> Wade Leftwich wrote: > > > I'm trying to put together an External Method that needs to operate > > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > > > How do I specify an object ID and retrieve the relevant object? sorry to > > be obtuse, but I can't find an example anyplace. In the online > docs > > If I have a URL like '/manny/moe/jack', I know that from within the > top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > > But if the context is jack, how do I specify the top level so I can > talk about manny? The top-level object is the 'app' attribute in the Main module. Note, however, that this will change in ZODB3. import Main Main.app.manny Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mj@antraciet.nl Thu Mar 25 12:59:32 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 25 Mar 1999 13:59:32 +0100 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903251113.GAA14712@emerald.lightlink.com> References: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <4.1.19990325135759.00a974f0@lisp.atmm.nl> At 12:14 25/03/99 , Wade Leftwich wrote: >> I'm trying to put together an External Method that needs to operate >> on several different objects within the ZDB (a/k/a ZODB, BoboPOS). >> >> How do I specify an object ID and retrieve the relevant object? sorry to >> be obtuse, but I can't find an example anyplace. In the online >docs > >If I have a URL like '/manny/moe/jack', I know that from within the >top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > >But if the context is jack, how do I specify the top level so I can >talk about manny? > From an external method, self is the object the Externel Method is called from. If you have REQUEST passed in, you can access PARENTS[0], which is the top object. From there you can traverse down the hierarchy. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Thu Mar 25 13:21:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 08:21:45 -0500 Subject: [Zope] Longs on the Property page In-Reply-To: Message-ID: I vote for getting rid of the "L" everywhere. It has caused me some problems and extra fmt attributes in my DTML, too. >In the stock Zope 1.10.2 distro, putting a Long in a property causes a >curious error to manifest. When the property page is displayed, the long >is display like 44353L. If the then change any other property and >attempt to save changes, you get a traceback saying that the property >for the long is invalid. You are forced to manually remove the 'L' >before saving changes. > >May I suggest that when the properties are display, if the type is >'long' then the display code >should do something like this: >str(long_value)[:-1] > >This would remove the L before it was ever displayed.... Alternatively, >something in the response code needs to be modified to accept an 'L' at >the end of an integer destined for a property whose type is 'L'. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From Paul@digicool.com Thu Mar 25 14:05:57 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 25 Mar 1999 09:05:57 -0500 Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Jordan wrote: > Okay after I opened my big mouth I had to deliver. :) > > NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE > > Here's an example of what this is: > > > This is the try block > > You suck > > > There was an exception! Yay! >

    It was >

    It has this to say: > > > I incorporated a suggestion that except should handle to specify the error to trap. Also, will > handle any errors by default. Damn, it worked! > This is packaged as a product, is this the best way to > distribute this?? I'll get Amos to add it to the contrib area. Gotta admit, I'm *really* happy to see this. Guess I have to call you Your Most Revered Magnificenous now. Or how about just Tim? :^) --Paul From mjprobst@visi.com Thu Mar 25 14:45:23 1999 From: mjprobst@visi.com (Matthew J. Probst) Date: Thu, 25 Mar 1999 08:45:23 -0600 (CST) Subject: [Zope] Configuration of Apache-authenticated Zope on Apache 1.2.6 Message-ID: Okay, I understand that the "fall-through" authentication to Zope will not work with rewrite rules when Apache 1.2.6 is used. Unfortunately the project I'm starting is being done for a shop that refuses to upgrade to 1.2.6. I have Zope working just fine with Apache authentication; for the needs of my project, this method of authentication works just fine. However, I need to know how to properly set up Zope to run in a virtual domain "container", _and_ to only authenticate parts of the object hierarchy at one time. The idea is that we have a website docs.foobar.net that is a virtual domain on an Apache 1.2.6 server, and we need to authenticate any requests underneath docs.foobar.net/manage so that the world can see the pages but only people in our list can manage. Another simultaneous difficulty is finding the proper way to make this virtual domain automatically start in folder "docs" of Zope's object hierarchy. I've used an Alias to translate docs.foobar.net to docs.foobar.net/cgi-bin/Zope.cgi/docs , and it works fine, but I don't have proper Zen mystical knowledge of Zope to understand the _proper_ ways of doing these things, if such ways exist. I have done a scan of Email archives and most of the documentation on the Zope site, but either I'm dumb as nails or just don't know the proper magic keywords to get the information I need. Zope looks great, I've resisted learning a new language but a killer app makes it worthwhile. From michel@digicool.com Thu Mar 25 15:26:53 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 10:26:53 -0500 Subject: [Zope] Longs on the Property page Message-ID: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> > -----Original Message----- > From: Philip Aylesworth [mailto:zopelist@regalint.com] > Sent: Thursday, March 25, 1999 8:22 AM > To: Shaw, Howard > Cc: Zope List > Subject: Re: [Zope] Longs on the Property page > > > I vote for getting rid of the "L" everywhere. It has caused me some > problems and extra fmt attributes in my DTML, too. > > > >In the stock Zope 1.10.2 distro, putting a Long in a > property causes a > >curious error to manifest. When the property page is > displayed, the long > >is display like 44353L. If the then change any other property and > >attempt to save changes, you get a traceback saying that the property > >for the long is invalid. You are forced to manually remove the 'L' > >before saving changes. > > > >May I suggest that when the properties are display, if the type is > >'long' then the display code > >should do something like this: > >str(long_value)[:-1] > > > >This would remove the L before it was ever displayed.... > Alternatively, > >something in the response code needs to be modified to > accept an 'L' at > >the end of an integer destined for a property whose type is 'L'. > > > Hmm.. Could you please submit this in the Collector? http://www.zope.org/Collector -Michel > > Phil A > > ------------------------------------------ > Philip Aylesworth zopelist@regalint.com > Regal International > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Thu Mar 25 15:33:15 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 10:33:15 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Message-ID: On Thu, 25 Mar 1999, Paul Everitt wrote: > Damn, it worked! I'll take that as a compliment :) > > This is packaged as a product, is this the best way to > > distribute this?? > > I'll get Amos to add it to the contrib area. Cool.. it still needs a bit of tweaking before getting integrated. I'd like to address some of the issues Amos brought up... > Gotta admit, I'm *really* happy to see this. Guess I have to call you > Your Most Revered Magnificenous now. Or how about just Tim? :^) Umm, no. Jordan will do just fine. heh. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From zopelist@regalint.com Thu Mar 25 16:22:58 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 16:22:58 +0000 Subject: [Zope] Longs on the Property page References: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> Message-ID: <36FA62E2.55CE128F@regalint.com> > > >In the stock Zope 1.10.2 distro, putting a Long in a property causes a > > >curious error to manifest. When the property page is displayed, the long > > >is display like 44353L. > > > > I vote for getting rid of the "L" everywhere. It has caused me some > > problems and extra fmt attributes in my DTML, too. > > > > Hmm.. Could you please submit this in the Collector? > > http://www.zope.org/Collector I am not sure how to classify it. The original complaint was about the Properties page. My problem seems to be with values returned from MySQL - even regular integers get an L tacked on the end (This didn't happen with zope 1.9). So is this two seperate collector entries? Where does mine go - Zope, ZSQL Methods, or ZMySQLDA? What do others think? Has this shown up with other SQL DBMSes? One thing I just thought of: I moved my ZMySQLDA over from 1.9 to 1.10.2 without recompiling it. That is when I noticed this problem. Whould something have changed in the python header files or something that would have made it advisable to recompile ZMySQLDA? What did others do? Phil. From michel@digicool.com Thu Mar 25 17:01:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 12:01:36 -0500 Subject: [Zope] The Artist Formerly Known as NotMail Message-ID: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.com> Greetings, For those of you interested in the NotMail project we have some announcements. First, Digital Creations has officialy adopted NotMail as one of it's products. Second, in an attempt to make the products at least *sound* more mature :), we are changing the name. Third, in the last two weeks I have been working pretty hevily on NotMail and it has changed significantly. Therefore: NotMail is, for the interum, called The Artist Formerly Known as NotMail (TAFKAN). We still call it NotMail, but that's just our code word. TAFKAN was once a product, but now it's just a bunch of dtml methods. The actuall imap functionality that TAFKAN needs has been abstracted into another product called IMAPAdapter. IMAPAdapter is very early alpha software. It has several known bugs, and Linus knows how many unknown ones. Your millage may vary. It may light your computer on fire. It might delete all your mail and crash your imap server. It might send insults in your general direction. You get the point. IMAPAdapter is, in Zopespeak, a 'user database'. Other examples of user databases are User Folder, UserDb Folders, and etcUserFolders. IMAPAdapter walks, swims, and quacks (to quote Jim) like any other type of user database. The simplest example of using IMAPAdapter is: Create an empty folder without an 'acl_users' Add an IMAPAdapter (it will automagicly call itself 'acl_users'), telling it where to find it's imap server, what default roles to assign to users, and other misc stuff. Create a DTML Method called index_html containing the following DTML: > () Going to this file will prompt you for a username and password (assuming you've correctly set the permissions and roles). The username and password you enter here must be a valid IMAP login for your imap server. It is *not* necessary to add a Zope user to Zope, IMAPAdapter will try your uid:pwd pair against the IMAP server and validate/deny you based on the sucess or failure of making an IMAP connection. What you will see when you look at this DTML Method is a pretty #tree breakdown of all your imap namespaces, folders and subfolders. IMAPAdapter, like all other user databases, contains a validate() method that Zope calls to authenticate a user. This method returns an imapUser object (which inherits BasicUser, like most other Zope user objects). This user object is what AUTHENTICATED_USER refers to. imapUser exposes the imap API to the DTML programmer. The API is currently a very rough draft, and there are several functions that were in TAFKAN that are missing in IMAPAdapter (like the folder management stuff to add/edit/delete imap folders) At the moment, IMAPAdapter is pretty much read-only on your 'imap space'. Voila! IMAPAdapter is available in public CVS. Web CVS access will be here soon! (yippee!) -Michel From M.Faassen@vet.uu.nl Thu Mar 25 17:59:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 25 Mar 1999 18:59:54 +0100 Subject: [Zope] Announcing FAQ 0.2.3 Message-ID: <36FA799A.40EED15B@pop.vet.uu.nl> Hi there, Though the ZDP FAQ hasn't moved at the relentless pace it did before this week, there's still a new version of the FAQ at zdp.zope.org. It's a fairly minor change, but you might find some things that are useful to you. Of course, if you haven't seen it yet, go rush over! Happy Zoping, Martijn From brianl@real.com Thu Mar 25 19:45:09 1999 From: brianl@real.com (Brian Lenihan) Date: Thu, 25 Mar 1999 11:45:09 -0800 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.co m> Message-ID: <4.2.0.32.19990325114007.044a0e70@prognet.com> At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: >IMAPAdapter is available in public CVS. > >Web CVS access will be here soon! (yippee!) I have a Zope sandbox which I would like to use to play with new features as they become available. Unfortunately, for the past several days my sandbox server has been broken because ExtensionClass/ComputedAttribute.c is missing. Is it missing on purpose? If so, is there a way I can work around it? From jae@kavi.com Thu Mar 25 23:43:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 25 Mar 1999 15:43:05 -0800 (PST) Subject: [Zope] Anonymous after logging in? Message-ID: Hello, I'm having a strange problem with logged in users getting to anonymous areas of the site. Here's an simplified example to explain... Two directories off the / /private /public /private allows no access to "Anonymous User", requiring a login. There are no usernames in /acl_users. All the user info for logging into /private is kept in /private/acl_users. /public has no acl_users folder. If you start up netscape, you can get to /public without any problems. But once you've logged into /private, you can't get back to /public without getting an unauthorized error... You are not authorized to access this resource. Username and password are not correct. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /MCExam) File lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) Any tips about how to fix this. Note that the login info has to stay in /private/acl_users (they can't be moved to /acl_users). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From John Eikenberry Fri Mar 26 00:50:22 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 25 Mar 1999 16:50:22 -0800 (PST) Subject: [Zope] Re: Anonymous after logging in? Message-ID: > I'm having a strange problem with logged in users getting to anonymous > areas of the site. Here's an simplified example to explain... > > Two directories off the / > /private > /public > > /private allows no access to "Anonymous User", requiring a login. > > There are no usernames in /acl_users. All the user info for logging into > /private is kept in /private/acl_users. > > /public has no acl_users folder. > > If you start up netscape, you can get to /public without any problems. > But once you've logged into /private, you can't get back to /public > without getting an unauthorized error... Ok, the problem was that I had the roles defined on the top level folder and the users defined in the subfolder. By moving the roles into the subfolder, the problem went away. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From sroberts@codeit.com Fri Mar 26 02:12:56 1999 From: sroberts@codeit.com (Scott Robertson) Date: Thu, 25 Mar 1999 18:12:56 -0800 (PST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. > What crack are you smoking and do you mind shipping some to CA? --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - --------------------------------------------------- From jbb@spyderlab.com Fri Mar 26 04:59:58 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 23:59:58 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <3.0.5.32.19990325011457.01119900@mail.aracnet.com> Message-ID: On Thu, 25 Mar 1999, Amos Latteier wrote: > At 12:32 AM 3/25/99 -0500, you wrote: > >Okay after I opened my big mouth I had to deliver. :) > > Way to go! This is a great contribution, and I'd love to see it go into the > standard distribution, assuming that you're agreeable to this. Thanks. Yes, please go ahead and use this in the standard distribution with whatever changes you feel are necessary. > I like this, but how about the fact that Python errors are classes, not > strings now? This implementation does not allow things like this: > > > > > i got me a math problem > > > Because this implementation has no notion that ZeroDivisionError is a > subclass of ArithmeticError. I'm not sure how hard it would be to get this > working, but it would be a nice addition. I suspect a matter of resolving. Probably be a two step procedure, 1) try to match the error by string exactly, otherwise 2) evaluate each handler in turn and see if the exception isa class. > Another small nit is that I think that you should use 'error_message' and > 'error_type' like standard_error_message does rather than 'errmsg' and > 'errname'. I have fixed this in 0.1.1 of the Product which is now available from the same directory as the original. I've also made some other additional fixes relating to the default error handler. Here's the file: ftp://ftp.spyderlab.com/pub/zope/Try-0.1.1.tar.gz Feel free to put this up in the contributed area on zope.org ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From raver@box.dust.za.net Fri Mar 26 07:16:46 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 08:16:46 +0100 Subject: [Zope] URL and #tree trouble... Message-ID: <19990326081646.A10042@box.dust.za.net> Hi! A day or two since last question - now two new ones... Q1 My site is organized so that one folder keeps several other files and folders (containing files and folders and so on). Something like: Top [Folder] F1 [Folder] F2 [Folder] F2-file1 F2-file2 F2-folder1 [Folder] F2-folder2 [Folder] F2-folder2-file ... index_html (Top) has F2 index_html (F2) has F21 and Top Starting at URL: localhost/Top is fine and following links to F2 and from there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), but if I, when in F2, press the link to 'Top' something strange? happens: I get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing appended to the URL) What am I dooing wrong? Q2 Recently I got help on using the #tree tag, and apparantly everything worked all rigth, but ... I get the tree-view, can expand the tree pressing either foldernames or the '+' button - fine. But If I press the '+' button I'm not able top directly access the files appearing (404 error, file not found), I have to enter the folder first before I can get the file. This seems strange and I want to know if theres a solution to this. Heres my #tree href part: Help is much appreciated Sture Lygren From mj@antraciet.nl Fri Mar 26 08:38:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 09:38:11 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <19990326081646.A10042@box.dust.za.net> Message-ID: <4.1.19990326092509.00c28100@lisp.atmm.nl> At 08:16 26/03/99 , Raver wrote: >Q1 > [SNIP]... > >index_html (Top) has F2 >index_html (F2) has F21 and Top > >Starting at URL: localhost/Top is fine and following links to F2 and from >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), >but if I, when in F2, press the link to 'Top' something strange? happens: I >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing >appended to the URL) > >What am I dooing wrong? > You're URL is a relative one. The browser sees 'Top', and requests the object Top with the current Base URL, which is localhost/Top/F2/. And because of Aquisition, Top.F2.Top exists.... And so will Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. >Q2 > >Recently I got help on using the #tree tag, and apparantly everything worked >all rigth, but ... > >I get the tree-view, can expand the tree pressing either foldernames or the >'+' button - fine. But If I press the '+' button I'm not able top directly >access the files appearing (404 error, file not found), I have to enter the >folder first before I can get the file. This seems strange and I want to >know if theres a solution to this. > >Heres my #tree href part: > > > >Help is much appreciated Your URL should include the realitve path to the subfolder. the var tree-item-url gives you the URL to the current object, relative to the base object. Your code should read (untested): Or words to that effect.. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Fri Mar 26 08:38:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 26 Mar 1999 08:38:22 -0000 Subject: [Zope] The Artist Formerly Known as NotMail References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: <001801be7764$024a95f0$5c773fc1@media1> Oh good, it's not just me. I also tried the cvs version last night and was getting the same problem, Computed attribute is not an includeable library, or something along those lines 8^). Phil phil@philh.org ----- Original Message ----- From: Brian Lenihan To: Michel Pelletier Cc: Sent: Thursday, March 25, 1999 7:45 PM Subject: Re: [Zope] The Artist Formerly Known as NotMail > At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: > > > >IMAPAdapter is available in public CVS. > > > >Web CVS access will be here soon! (yippee!) > > I have a Zope sandbox which I would like to use to play with new features > as they become available. Unfortunately, for the past several days my > sandbox server has been broken because ExtensionClass/ComputedAttribute.c > is missing. > > Is it missing on purpose? If so, is there a way I can work around it? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd2@earthling.net Fri Mar 26 09:59:33 1999 From: phd2@earthling.net (Oleg Broytmann) Date: Fri, 26 Mar 1999 12:59:33 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323114004.J8268@amber.org> Message-ID: Hello. Continuing the subject... Next question. If Zope opens one connection to a database, how does Zope manage concurrency? Currently, when two CGIs run in parallel, every CGI opens its own connection to the database, lock neccessary tables, and Postgres manage concurrency very good (even detecting deadlocks). Next Postgres version (6,5) will have Multi-version Concurrency Control. But all this is for different sessions. Zope opens only one session. Is it a problem with concurrency? Oleg. ---- Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net Programmers don't die, they just GOSUB without RETURN. From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 10:08:43 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 11:08:43 +0100 Subject: [Zope] Unusual question Message-ID: <3.0.1.32.19990326110843.00908ce0@poirot> Hi, This is (I think) an unusual question on this thread, but I want to ask it. We are at the start of making an intranet, which will contain a database of procedures (how to handle some examinations etc). We want to make it able that people can query this database and get the information they want on there web-browser. A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) would be the solution to this problem. This on a RedHat Linux 5.2 system with Apache as web-server. But now we've seen Zope. I'm wondering..., can Zope do the same things as PHP3? Or is this a complete different application? How stand Zope and PHP3 next to each other? I believe PHP3 is a scripting language... I'm wondering : is Zope also only a scripting language? Or is it more? Is the scripting language (=Python?) more powerfull then Zope) Are there people, using PHP3 next to Zope? ps. Has Zope the capability to easely make these scripts? I mean not text-based , but in a certain IDE or RAD application? Please, say in some simple words what Zope is and for what it can be used... I've read the web-page. But since I'm a stupid person in this field of webservers I can't understand what they are explaining. Thanks in advance. Kind regards, Tom. From panda@skinnyhippo.com Fri Mar 26 10:55:38 1999 From: panda@skinnyhippo.com (chas) Date: Fri, 26 Mar 1999 18:55:38 +0800 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <3.0.5.32.19990326185538.0093de20@mail.skinnyhippo.com> Hi zoppelgangers, I have several applications built 100% with python CGI scripts that I'd like to run on Zope. The reason for this are : a) For the better performance (I was worried about the scalability of CGI for high-availability and knew I had to move to FastCGI or the equivalent) b) I really really like the way Zope takes care of the CGI variable handling (ie. declaring the HTML form fields as arguments in the python method). However, I don't really want to use DTML at all. The reasons is that I find it much harder to read than pure Python. This is just a personal aesthetic thing and no criticism of Zope at all (full kudos to Digicool on an excellent application). It's just coding aesthetic : I like it all kept in Python, like servlets in java (as opposed to CFML, ASP etc). So, I've put all of my CGI scripts in a newly-created extensions directory and registered them via the Zope web-manager. It was, as the documentation says, incredibly simple and it seems to work for simple methods. (I'll declare my own packages later). Now, if I just use External Methods like this (using my own ex-CGI Python scripts to query databases, IMAP etc), am I missing out on any of Zope's main benefits ? In particular, the cache management ? Would I have to turn my stuff into a Zope Product to get these benefits ? (I've not had too much joy with the Product stuff yet) chas From chsrinfo@guetali.fr Fri Mar 26 11:47:52 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 15:47:52 +0400 Subject: [Zope] external methods Message-ID: <000501be777e$83130900$147800a0@pc-pi0> Hello, I'm confused with external methods. Please help. I want an external method to access its context (for the purpose of acquisition, etc.). So I write: def myExtMethod(self): pass Within myExtMethod, I should be able to: - write self.REQUEST to access the current REQUEST object (I need to be able to modify the current REQUEST object with self.REQUEST.set(...)) - or for example self.myzsqlmethod() to call a zsql method object, right??? Let's suppose that myExtMethod is: def myExtMethod(self): l=[] for i in self.l: l.append(i+1) self.REQUEST.set('l', l) Now, how can I call this method from DTML? All don't work. I end up in a traceback. "read only class, buffer" Any hints? Jepthe CLAIN Service Informatique CHSR From mj@antraciet.nl Fri Mar 26 11:54:34 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 12:54:34 +0100 Subject: [Zope] Database connections In-Reply-To: References: <19990323114004.J8268@amber.org> Message-ID: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> At 10:59 26/03/99 , Oleg Broytmann wrote: >Hello. > > Continuing the subject... > Next question. If Zope opens one connection to a database, how does Zope >manage concurrency? > Currently, when two CGIs run in parallel, every CGI opens its own >connection to the database, lock neccessary tables, and Postgres manage >concurrency very good (even detecting deadlocks). Next Postgres version >(6,5) will have Multi-version Concurrency Control. But all this is for >different sessions. Zope opens only one session. Is it a problem with >concurrency? Zope manages concurrency by being single-threaded... so only one query at a time, on ANY connection... -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 26 10:45:17 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 10:45:17 +0000 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <001801be7764$024a95f0$5c773fc1@media1> References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: > Oh good, it's not just me. > > I also tried the cvs version last night and was getting the same problem, > Computed attribute is not an includeable library, or something along those > lines 8^). > > Phil > phil@philh.org I get, 35 % cvs -z7 -q up -P -d ? var/Data.bbb ? var/serve.log ? var/gadfly ? var/Data.bbb.trans M ZopeHTTPServer/ZopeHTTPServer.py cvs [server aborted]: cannot open directory /cvs-repository/Components/GreyThing/webdav: No such file or directory i.e. the same kind of error message....but different. tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From phd@sun.med.ru Fri Mar 26 12:01:44 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:01:44 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Zope manages concurrency by being single-threaded... so only one query at a > time, on ANY connection... What about ZServer? It will be single-threaded too? Isn't it possible to run Zope multithreaded? > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Fri Mar 26 12:06:42 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Fri, 26 Mar 1999 13:06:42 +0100 Subject: [Zope] AW: [Zope] external methods Message-ID: <01E40461E003D21195CC0080296495D80B12F7@gates.cdc-group.com> Hi Jepthe, First, if you want to acces the REQUEST object, you need to declare it as a formal parameter: def myExtMethod(self, REQUEST): ... REQUEST is then passed automatically by Zope's internal magic, which looks up formal parameter names and matches them to arguments from HTML forms, HTTP Headers, etc. The "read only class, buffer" traceback is due to a very annoying bug in ExternalMethod.py and screws up any other error messages in external methods. I can't remember exactly if it was in line 254 or 256 in ExternalMethod.py, but here's the code I use to fix it: ExternalMethod.py, from line 254 if type(error_type) is type('') and lower(error_type) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): error_message=error_value else: error_message='' With that you should get better error messages. Regards, Stefan PS: should be both OK Service Informatique CHSR wrote: > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? > > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" > > Any hints? > > Jepthe CLAIN > Service Informatique CHSR > From eq3pvl@eq.uc.pt Fri Mar 26 12:11:23 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:11:23 +0000 Subject: [Zope] Unusual question References: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: <36FB796B.DF7AD3CC@eq.uc.pt> Tom Deprez wrote: > > Please, say in some simple words what Zope is and for what it can be > used... Tom, There are probably other guys here that can give you a better comparison between zope and php3. I never used php3 but I used ASP (the microsoft stuff), which is similar (though worst than php3 :-). With Zope you get a server markup language (called DTML) which you can mix with HTML. This concept makes it even easier to program than mixing a scripting language with HTML like php3 and asp do. From what you said I guess you will just need this kind of programming... so Zope will be a better choice than php3. But with Zope you also get *the best* scripting language available: Python. You can add logic to your application by writing external methods or products. This kind of extension is much more powerful than php3, although maybe a bit more complex. Zope also has a great IDE for managing your site through the web. Although I cannot tell you which one is better, if you give Zope a run try and, ... if my instinct is correct, you will want no other thing. hope it helps, pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From tony.mcdonald@ncl.ac.uk Fri Mar 26 11:15:52 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 11:15:52 +0000 Subject: [Zope] Unusual question In-Reply-To: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: Tom, I've cc'ed to the list as this may be useful to others... > > We are at the start of making an intranet, which will contain a database of > procedures (how to handle some examinations etc). We want to make it able > that people can query this database and get the information they want on > there web-browser. ie a relatively standard web application > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can Zope do the same > things as PHP3? Or is this a complete different application? How stand Zope > and PHP3 next to each other? I've used PHP3 since it was PHP/FI and done lots of work in it. It's database integration is excellent and the ability to include PHP3 code into an HTML document and have it 'executed' is really neat (I think CGI's are ugly, whereas code in the delivered doc itself is elegant - my opinion, YMMV). I've run PHP on Solaris and Linux, and used a lot of the contributed code. Since I found out about Zope, I've desubscribed myself from the PHP lists and been focussing on Zope almost entirely. I posted a message a while ago 'Tough Questions about Zope' and got some excellent answers, for more details I'd check it out in the archives. > I believe PHP3 is a scripting language... I'm wondering : is Zope also only > a scripting language? Or is it more? Is the scripting language (=Python?) > more powerfull then Zope) PHP3 is a scripting language, and is relatively easy to get started in. I may get a 16-ton weight dropped on me (in joke) but I think that if you're used to scripting languages already, you may get your application up and running faster in PHP3, as Zope scripting ('DTML') requires a bit of a mind-flip. However, once your application gets more complex, I think you'll find that Zope will start to pull ahead of PHP3 and eventually pull very far ahead. The list of things that Zope provides 'out-of-the-box', which are very difficult to do in PHP3 is pretty long; access permissions (at varying levels) at a per-directory and per-'object' level, editing of web pages online, *undo* - yes, undo!, and versions are the things that come to mind initially. There are many others. Obviously, there are some things in PHP3 that are a bit 'unusual' in Zope too (setting variables for instance! :) The scripting language of Zope is Python - I've bought several Python books (personal rec: Internet Programming in Python by Watters, van Rossum and Ahlstrom - top geezers in the Python world) and have found it to be quite a beautiful language. You can't install Python programs 'directly' into your DTML document, but 'External Methods' seem quite easy to write. Once you become familiar with 'Products' and what *they* can do, your jaw *will* drop. > Are there people, using PHP3 next to Zope? This is a question I asked. The upshot is that it's pretty difficult to do in seemless way with current implementations of Apache (ie more or less impossible) but that a later version will do that. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? I would say, yes. I would suggest reading the FAQ, then the documentation, reading the documentation again (especially the DTML and ZSQL documents), read it once more and then if you do decide to try Zope over PHP3, have a go at your application. I think that it's highly likely that you will be able to get by with just some DTML and a database connection. I'm not knocking the documentation here - the DigiCool guys (and gals?) have relatively recently embraced the open-source concept and seem to be doing 10 things at once. > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person in this field > of webservers I can't understand what they are explaining. I don't think you're stupid at all! :) There are some new and unusual concepts in Zope that many people will not be familiar with (particularly if you're coming from a 'traditional' web-publishing environment). If it helps, I've been in contact with several other people, both here in the UK and elsewhere who are *extremely* excited about what Zope is and what it can do. > Thanks in advance. > Kind regards, Tom. You're welcome - I got a lot of help starting out, just trying to pass it along... :) tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From eq3pvl@eq.uc.pt Fri Mar 26 12:24:44 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:24:44 +0000 Subject: [Zope] external methods References: <000501be777e$83130900$147800a0@pc-pi0> Message-ID: <36FB7C8C.27BE4D44@eq.uc.pt> Service Informatique CHSR wrote: > > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? yes, I guess your are right. > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) Maybe It's self.l that causes the error. It's hard to understand what you want, but I feel it should be for i in l > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" Maybe I can help you with this. The traceback you get is probably the standard error raise in ExternalMethods. To debug external methods I use try/except/raise code blocks and when I get an exception I return it to the screen. Something like this def mymethod(self): try: mycode except: import sys return sys.exc_type, sys.exc_value return something pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Fri Mar 26 12:43:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 13:43:11 +0100 Subject: [Zope] Database connections In-Reply-To: References: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> At 13:01 26/03/99 , Oleg Broytmann wrote: >On Fri, 26 Mar 1999, Martijn Pieters wrote: >> Zope manages concurrency by being single-threaded... so only one query at a >> time, on ANY connection... > > What about ZServer? It will be single-threaded too? Isn't it possible to >run Zope multithreaded? > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because the BoboPOS (cuurent version 2) doesn't support concurrent access. The all new ZODB 3 will support this, and then Zope can (will?) become multithreaded as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Fri Mar 26 12:47:37 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:47:37 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because > the BoboPOS (cuurent version 2) doesn't support concurrent access. The all > new ZODB 3 will support this, and then Zope can (will?) become > multithreaded as well. So I have some time before I'll see problems with concurrent access to SQL server! :) > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From webman@beehive.de Fri Mar 26 13:07:14 1999 From: webman@beehive.de (WWW Admin) Date: Fri, 26 Mar 1999 14:07:14 +0100 (CET) Subject: [Zope] dtml: string to atoi? Message-ID: hi, anybody know whether i convert a string to integer (atoi) via a dtml tag? regards, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From chsrinfo@guetali.fr Fri Mar 26 13:15:53 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 17:15:53 +0400 Subject: [Zope] external methods Message-ID: <000401be778a$e630c2a0$147800a0@pc-pi0> Ok, I'm dumb. After some digging, I found that the problem lies in the expression 'self.l' 'self.' gives access to the object hierarchy, not the variables namespace. So, I solved my problem by writing 'self.REQUEST['l']' instead of 'self.l' Also, I think that this should be clearly documented. Apparently, the only way to acess variables namespaces in external methods is through self.REQUEST This confuses a 'normal' python user whose variable namespace is usually accessed through self. Can someone confirm (or infirm?) this? >Hello, > >I'm confused with external methods. Please help. > >I want an external method to access its context (for the >purpose of acquisition, etc.). So I write: > >def myExtMethod(self): > pass > >Within myExtMethod, I should be able to: >- write self.REQUEST to access the current REQUEST object (I >need to be able to modify the current REQUEST object with >self.REQUEST.set(...)) >- or for example self.myzsqlmethod() to call a zsql method object, >right??? > >Let's suppose that myExtMethod is: > >def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > >Now, how can I call this method from DTML? > > > > > >All don't work. I end up in a traceback. "read only class, buffer" > >Any hints? Regards, Jephte CLAIN, Service Informatique PS: I have been looking for an explanation of the problem for two weeks, until I wrote to the mailing list, and voila! I found the cause of the problem myself :-) One can never be better served than by oneself... From gilles.lavaux@esrin.esa.it Fri Mar 26 13:19:00 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Fri, 26 Mar 1999 14:19:00 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <01be778b$35fa2ce0$fce3ccc1@asgard.esrin.esa.it> Hello This workd for me: Another things I have already asked: how to do the same assigment on a date with a formating(to get only the year for ex.): ???????? Thanks for any help. Gilles lavaux -----Original Message----- From: WWW Admin To: zope@zope.org Date: Friday, March 26, 1999 4:15 PM Subject: [Zope] dtml: string to atoi? >hi, > >anybody know whether i convert a string to integer (atoi) via a dtml >tag? > >regards, > >webman > >--------------------------------------------------------------------------- >webman | _ >beehive GmbH | ASCII ribbon campaign ( ) >berlin, Germany | - against HTML email X >http://www.beehive.de | & vcards / \ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From hoekstra@fswrul.fsw.leidenuniv.nl Fri Mar 26 13:19:26 1999 From: hoekstra@fswrul.fsw.leidenuniv.nl (Rik Hoekstra) Date: Fri, 26 Mar 1999 14:19:26 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <000401be778b$458ed2a0$154ae584@bibf12> -----Original Message----- From: Rik Hoekstra [mailto:fghoekstra@cit10.wsd.leidenuniv.nl] Sent: vrijdag 26 maart 1999 14:17 To: WWW Admin Subject: RE: [Zope] dtml: string to atoi? > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of WWW > Admin > Sent: vrijdag 26 maart 1999 14:07 > To: zope@zope.org > Subject: [Zope] dtml: string to atoi? > > > hi, > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > try: Rik Hoekstra From WWW Admin Fri Mar 26 13:29:00 1999 From: WWW Admin (WWW Admin) Date: Fri, 26 Mar 1999 14:29:00 +0100 (CET) Subject: [Zope] 7 minute response time! thank you rik and gilles Message-ID: hi, a big thank you to gilles and rik for answering my dtml string to atoi question. never been on a mailinglist that had a 7 minute question- to-response time! cheers, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From Paul@digicool.com Fri Mar 26 13:44:12 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 26 Mar 1999 08:44:12 -0500 Subject: [Zope] external methods Message-ID: <613145F79272D211914B0020AFF6401907BBC1@gandalf.digicool.com> > After some digging, I found that the problem lies in > the expression 'self.l' > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > in external methods is through self.REQUEST > This confuses a 'normal' python user whose variable > namespace is usually accessed through self. I believe that you can just ask for it in your function signature: def my_method(self,l): return l + ' is cool!' --Paul From raver@box.dust.za.net Fri Mar 26 13:55:42 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 14:55:42 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <4.1.19990326092509.00c28100@lisp.atmm.nl>; from Martijn Pieters on Fri, Mar 26, 1999 at 09:38:11AM +0100 References: <19990326081646.A10042@box.dust.za.net> <4.1.19990326092509.00c28100@lisp.atmm.nl> Message-ID: <19990326145542.A11439@box.dust.za.net> On Fri, Mar 26, 1999 at 09:38:11AM +0100, Martijn Pieters wrote: > At 08:16 26/03/99 , Raver wrote: > >Q1 > > > [SNIP]... > > > >index_html (Top) has F2 > >index_html (F2) has F21 and Top > > > >Starting at URL: localhost/Top is fine and following links to F2 and from > >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), > >but if I, when in F2, press the link to 'Top' something strange? happens: I > >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing > >appended to the URL) > > > >What am I dooing wrong? > > > > You're URL is a relative one. The browser sees 'Top', and requests the > object Top with the current Base URL, which is localhost/Top/F2/. And > because of Aquisition, Top.F2.Top exists.... And so will > Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. > > > >Q2 > > > >Recently I got help on using the #tree tag, and apparantly everything worked > >all rigth, but ... > > > >I get the tree-view, can expand the tree pressing either foldernames or the > >'+' button - fine. But If I press the '+' button I'm not able top directly > >access the files appearing (404 error, file not found), I have to enter the > >folder first before I can get the file. This seems strange and I want to > >know if theres a solution to this. > > > >Heres my #tree href part: > > > > > > > >Help is much appreciated > > Your URL should include the realitve path to the subfolder. the var > tree-item-url gives you the URL to the current object, relative to the base > object. > > Your code should read (untested): > > > Or words to that effect.. > did the trick! Thanks! > > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From zopelist@regalint.com Fri Mar 26 14:11:38 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 26 Mar 1999 14:11:38 +0000 Subject: [Zope] dtml: string to atoi? References: Message-ID: <36FB959A.7907C2CF@regalint.com> > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > Pg 9 of DTML ref. Use something like " Phil. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 26 14:28:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 26 Mar 1999 09:28:51 -0500 (EST) Subject: [Zope] external methods In-Reply-To: <000401be778a$e630c2a0$147800a0@pc-pi0> Message-ID: On Fri, 26 Mar 1999, Service Informatique CHSR wrote: > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > Jephte In your external method l is a local variable. You can access it by simply referencing it. something like def spammethod: l=[] for i in [1,2]: l.append(i) return l Pavlos From michel@digicool.com Fri Mar 26 14:43:11 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:43:11 -0500 Subject: [Zope] Unusual question Message-ID: <613145F79272D211914B0020AFF6401907BBC2@gandalf.digicool.com> > -----Original Message----- > From: Tom Deprez [mailto:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Friday, March 26, 1999 5:09 AM > To: zope@zope.org > Subject: [Zope] Unusual question > > > Hi, > > This is (I think) an unusual question on this thread, but I > want to ask it. > > We are at the start of making an intranet, which will contain > a database of > procedures (how to handle some examinations etc). We want to > make it able > that people can query this database and get the information > they want on > there web-browser. > cool. > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux > 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can > Zope do the same > things as PHP3? It can do the same thing, and more. This isn't a hack on PHP3, but Zope has many more components and widgets out of the box. It's also object oriented, which helps when your components scales, or when you want your application to suddenly be stitched into four other application six months from now that you didn't forsee. >Or is this a complete different application? PHP has it's niche. Tony 'tone' McDonald mentioned that he thought code inside HTML is elegant, and it is, but it's even more elegent when that code is for the layout of your user interface only. Mixing application code with HTML, or worse yet, making your entire HTML document one huge script, is not so elegent. > How stand Zope > and PHP3 next to each other? > > I believe PHP3 is a scripting language... I'm wondering : is > Zope also only > a scripting language? Or is it more? Is the scripting > language (=Python?) > more powerfull then Zope) Zope is an Application written in a scripting language (Python) that is based on several components also written in Python and C. One of the components of Zope is Document Templates (DTML) which is also a scripting language. It's a bit complex, much more so than PHP's underlying system. Tony also mentioned that PHPs database itegration is excellent, and I'd like to add that Zope's is also top notch. A particular nice thing about Zope is it's database abstraction layer, what we call Database Adapters. You can write program for any SQL server and just change the DA when you change databases. Or your app could use two databases transparently; the DTML programmer wouldn't need to know which database is being queried, it would just be a case of calling the write SQL methods. This also give some compartmentalization. Your Python expert writes your external methods, your SQL expert manages DAs and writes ZSQL Methods, and your DTML/user interface expert uses all of these methods to layout the application. > > Are there people, using PHP3 next to Zope? > Comming soon. The problem is (rumor has it) that Apache sends Zopes output directly back to the browser, not giving it a change to run through any other handlers, like the PHP one. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? > There is a web based interface. The (IMO) ultimate programmer interface is emacs, which can use Zope with FTP (if your using ZServer). > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person > in this field > of webservers I can't understand what they are explaining. > Whew. Zope is a web application platform. It is a framework for writing applications over the web. It is more than this, because it supports more protocols than HTTP, but for your purposes you can call it a web app platform. Zope provides you with a standard set of services that your application can build on. Services include DTML, trasparent persistence of your data, interface to databases, a management interface for developing and managing your application, and a whole slew of out of the box objects for you to use (like documents, files, methods, DAs, mail transport, etc...) Many people have mentioned Python in responses to your question. Python is an incredible language, but I think the application you described can be done easily in Zope with no Python at all. All you need is DTML, some ZSQL Methods, and a good design and your done. -Michel > Thanks in advance. > > Kind regards, Tom. > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Fri Mar 26 14:49:47 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:49:47 -0500 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <613145F79272D211914B0020AFF6401907BBC3@gandalf.digicool.com> > -----Original Message----- > From: chas [mailto:panda@skinnyhippo.com] > Sent: Friday, March 26, 1999 5:56 AM > To: zope@zope.org > Subject: [Zope] Limitations of just using External Methods ? > > > Hi zoppelgangers, > Ha! I like this, are you by change a Peak Freak? > I have several applications built 100% with python CGI > scripts that I'd like to run on Zope. The reason for > this are : > a) For the better performance (I was worried about > the scalability of CGI for high-availability and > knew I had to move to FastCGI or the equivalent) > b) I really really like the way Zope takes care of > the CGI variable handling (ie. declaring the > HTML form fields as arguments in the python method). > > However, I don't really want to use DTML at all. > The reasons is that I find it much harder to read > than pure Python. This is just a personal aesthetic > thing and no criticism of Zope at all (full kudos to > Digicool on an excellent application). It's just > coding aesthetic : I like it all kept in Python, > like servlets in java (as opposed to CFML, ASP etc). > > So, I've put all of my CGI scripts in a newly-created > extensions directory and registered them via the > Zope web-manager. It was, as the documentation says, > incredibly simple and it seems to work for simple > methods. (I'll declare my own packages later). > > Now, if I just use External Methods like this (using my > own ex-CGI Python scripts to query databases, IMAP etc), > am I missing out on any of Zope's main benefits ? > In particular, the cache management ? > Would I have to turn my stuff into a Zope Product to > get these benefits ? (I've not had too much joy with > the Product stuff yet) > These 'benefits' you feel you might be missing out on you might not need. One of Zope's best features is the fact that you can just use the components you want. In fact, it sounds like you may just need ZPublisher by itself. If you go to our site and look at the Components section you'll see where you can download it. ZPublisher is just the ORB part of Zope, it traverses your python module and calls your methods based on the URL. Now, you can still USE Zope with these application you write. Even if you write a pure ZPublisher application, you can then plug that application right into Zope with the External Objects product available in the contributed area. -Michel > chas > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From daren@partners-dsi.com Fri Mar 26 16:22:39 1999 From: daren@partners-dsi.com (Daren Sefcik) Date: Fri, 26 Mar 1999 08:22:39 -0800 (PST) Subject: [Zope] ZMySQLDA Problem Message-ID: <199903261622.IAA23532@partners.partners-dsi.com> I am trying to use the ZMySQL component on a Solaris 251 machine, I have Pyhton 151 installed from sources and MySQL 3.22.16 from sources. Zope,Python and MySQL all work fine and the ZMySQL module compiled fine but when I try to "import" it from python I get the following error: Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umodd i3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 I also tried it from a FreeBSD machine with pretty much the same result. Any ideas.???? TIA Daren From tony.mcdonald@ncl.ac.uk Fri Mar 26 15:55:09 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 15:55:09 +0000 Subject: [Zope] Anyone using '-roman' in next-sequence tags? Message-ID: Hi all, just thought I'd check my sanity here... the way to get roman numerals showing up as the label on a batch object is : (Previous results) isn't it? - I get a NameError, with the following traceback ('sub' is nowhere in my document btw) .... cheers tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 19:03:38 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 20:03:38 +0100 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990326200338.009363e0@poirot> Hi, Thanks to all the reply I got for my question PHP3 or Zope. I'm wanting to give it a try, but .... I've RedHat 5.2 installed with running Apache I'm trying to install Zope, but am expiering some problems : I've downloaded the binary and installed it into /usr/local/dc/Zope-1.10.2 installed it with ./install -sAdmin:Admin the var directory of Zope is permissioned for nobody (done by Zope) As in the manual, Zope created access with Admin:Admin, but it says login with Zope:Admin copied the Zope.cgi to the directory /home/httpd/cgi-bin I want to use it with Apache so I had something to change in the conf file of Apache... Apache has 3 conf files. At the moment it is written in all 3 of the files (because none of them work!). This is the piece of script I've written : (from WEBSERVER.txt) #Zope configuration maps /Zopz/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] When trying to browse to http://localhost/cgi-bin/manage I get the password dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... What am I doing wrong????? -------------------------------------- Now try to use ZopeHTTPServer I can't find anywhere the file serve.sh BUT I tried to start it with start then going to webbrowser http://localhost:9673/manage I get a message of DNS problem etc... So not even a question of password... ---------------- Can somebody tell me what I've done wrong? I want to get it to work with Apache... What do I've to do? Thanks in advance, Tom. From eq3nmf@eq.uc.pt Fri Mar 26 19:31:40 1999 From: eq3nmf@eq.uc.pt (Nuno Maltez) Date: Fri, 26 Mar 1999 19:31:40 +0000 Subject: [Zope] Possible bug in Zope References: Message-ID: <36FBE09C.A209B3FE@eq.uc.pt> Hi, I noticed that if you're browsing two different Zope sites using the same Netscape, the management tree on the second one is incorrectly displayed (the COLSPAN is increased by two). Has anyone noticed this before? regards, Nuno From ShawH@STHS.org Fri Mar 26 21:10:53 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Fri, 26 Mar 1999 15:10:53 -0600 Subject: [Zope] ANNOUNCE: Counter1.0 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_000_01BE77CD.21DA8700 Content-Type: text/plain Ok, I've updated the package to remove the bug that killed it after the first shutdown/cache loss. The _v_ technique certainly served to prevent the saving of the variable, so when the system came back up, before I use the _v_ variable I was testing it to make sure it was higher than the stored value. I added a test to make certain that it exists... Is there a way to register a function (or some __func__) that gets called the the instance is reloaded? It seems fairly stable now, so I'm calling this 1.0. Please send bug reports to shawh@sths.org. BTW, has anyone actually tested this other than me? I thought from the comments I had read on the list that there were a fair number of people who were perturbed at the lack of a counter in Zope. Was I wrong? Am I flogging a dead horse here? <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE77CD.21DA8700 Content-Type: application/octet-stream; name="Counter1.0.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter1.0.tar.gz" Content-Description: Counter1.0.tar H4sIAKn4+zYAA+w8S3AbR3YNgKQIiPpYWvmzXm/a1LoAriGQ4Ae0uQRtWR+LG4vSipTtJVfBDjFN YKTBDDw9EJe2VKjEvuSwp1QOqb2lctikUqmtyjUHX1I5+55Kcsklh6QqN582773u+QHgxyQl72Y5 ssmentev33v9fv2jbW1Otnf8putM3vVcs1P35eQ1t+P4wptkx/Tw2an5+TnOOD5TPb/1C69U5ivz 87PT0zOcl2dn5iuMzx0XAXs9HekbHufMc11/L7j9vv+ePvYe419Xv6+aZsn0W/ah+yhPTVVmZ3cd /+nZ8pwa/+n5yuzULIz//OzsDONTx8jnrs8f+PgvNmFkl3KcLzaFYS4t+pZviyUYcq61YHFSVS1O EgBCbrrmDt9s1F3b9arjl2/SM46fcjiei83pJAJ4pw/q65brtbhR9y3XqY63DMdoiJphmhp6nLcE aKNZHb97Z3VtXDWEVr6xaQteF7Yt20bdchrV8Wn4ms1lF30PfiNIkxu21QCsH9y4uTbOH+u3tTt3 x5eWTWCkqQHNPQBzPPYsWk6743N/py3g842PAdgxWlC2zHEurU+hNDeVaAO9gJCy8Mv7BtQtitbS Gop5cRJKx0opjd5BiP0mtF5rivojvnyXX5bccExuWvKTDgBt7XBPtIXhy3eOn5M6dlqz2jLGDeLp QHFHyOPhbKXT2hQed7eAO8l9F/hpCax6Bgw5ndYu7JTnjoebW+42BxPb4U3Ll3xTgO0JLo3HYD/I m98U3DTAtAwpngF/257lg237AxicOaAimkv6k37Z9JYS3a3ef+/28lqIFtzO+FICGfkdLKP/UK+L k+iCyJNNoitbyoGLIi/4bTvjb+HZK/7XapZj+bVaqb1zpD72if98vlIO4n+5XMH4X5mrTJ/E/+fx 1GqmW6/VeJXn83k98Nw3GhyH3gKb/9TASA0fc7ktz23x5RYE7JsWBGOr1XY9P6rI5XSNRtPzumY0 cjkI7kYNTVdWC2SMn+XRV+QXeNB5vkj1eZUh4Ie+HOEmmG+eoJ4q4AlCDFmDrH6mWg9usxDQUkp+ KO7SaGCD3FOey9VqRr3WFl7LkhLIlLWa5qeQj6U+UuaLUBPhvevaNlFS7KnMT0wUdftrTcNpiBAF Ygg+Ip+WrNcCLushmeEgFILKUsPayhcbtrtp2DLE8LTXx+1l/wHvRzT//ex/vjw7red/lcrM3Dza /+z8/In9P49H2+jV+icdS1pocrmwqi6kvOY6vufaQeWdm6vKDbyvFCtwArfWbn+A6lfkt6ER6OJ1 8B1uo8jvggpb0heOr9pdd+udFrytiVbbNnxRur5Wu+9bdoDoh7uDrfoe5i0aUL3lcnXbkDKwFmWD MWZKy9Deqlu+Uv+ImqKGjPFYuufagn7cJtv0FAywXFqFTm2x7ItWCX8oY1xQRphXrkhToCrBByCp BtfGyC2QlON3gKbHopQjmDWXd6SIYIp8x+1wRwgTUzPwC/AJHbHO09pAEUFsG45PNdSOUCF8G9Ju 6McphbIjx80h1wFo6L9uOJABwnsHEnbLIRSRawYjV/Mz6Xa8OoDBYGpCr3nChPRxgX8E+RzIjm/u cEgsDQ/8nA1cQSerTWObLy8vJ/JC/h6klSaHz3XXFNjKl4bnGO8Kx7Tqrleqw0AXrhk2vBuahokk hjXwhY8oDf+x1eI3OzZ0BjrVtGyrza/u2EJugy40aQ5y26o3DWHDGNu28C1w1AlUKAfDkduClKi1 wz/pCIkSwpFBUVstYe8Qpqaw21sdGzNnB9xfLhxnKmC8wnAZOF9VCww51Tx55971Ew0Rhr5qGOr0 BxUJ3DZRA3Ek+1neNjaFnV/Ig0+GKAPcQBwIQ2IQO1qG5eQhBMbgV0W9A6O0MwDaIF3PP81lJ1S/ A2NYtpD/0BLbmihUIy7rnhAOEBBGMkimZRTCiAwMMNkweMWwxpppCopJ2DDuh3CoboC+boNGwwTJ BouFV8upe0RQ2GACmmhTDZEi8YiqIWJw+EkzbYotYFwKH9w+TE5qBSnsrSK9aIMmI/Cnq1QX1lhb vAC1paYha4/ETiEPbqBdoxEG3hdwgoLIbWy6Ef/4IJeNvE5pUNfTE9k4bSrnVh8tsxrqWZFm8rH3 cD5cze+gfujpZDVfnssXg7lXNT8zl0f6EF/JMkFzLVO/EUKooN+6LnBYVT4VtKEBgIqNBwFM0DFU RkQoKjSIpgUABEzNCvp1Qn8NiAs+B+/B99rjWiRBIiZOW8JqUPmqQfQJk58bpEFR8hPJN65UJGOU zfj4+DWsl+QUiV1aAMDlje0m+BX03x2pPLOwrZblwAgGSx3QOiGqKggq7C+m0mpISdjR2AWjFg5Y MQgH92785P6N1bXqiusITSRiiVw/6AB49abhgaWDVwNnVo/RorQlMbThUO09aNW9hqw6cMA0Peqj ftllMKuJocyCXWlGUcaO63PkV9uTJ/yO5yRTCnBRWW0JOMrChAlDNttSINX8ooRQ7jSW3pCLk7rI wWYh8kHgEtSglOdvcG0O2FY5SnTppcm4S4NPMcUJHEpcaaAuPhxqFYKGAN0FMgNdG77vqaHP94hC OY6DSAl0Dv3PAMDFOOBB0Wm5DoKMuaKkw1Us8JapeQ+/xiXwu897wp8nrCLm/gmgXW2ZG3mtnPkH WLx9Z+1G7er16/fAqydhtYuMeYEkAEizjXmG+pbsKdL0RLWwpegHDLvShTf5htV+0A8G7EFeVVBQ E3yJxy18oh/vIOQbC1fKD5Ql4hN3cZrHvUy8p/LNstKMgSN5JTGSAbWhlwmHdq8OcrnkpL4/KkBW ngwKqOVRoyDk7u+ie1wzCgdDiCcwKkRJv0GJNkR7G6Y3Pg2/LyGR99Bqbrq2qfVxDQzI8BqUtPM8 UpHn2xY0gnR9k9L1cA4Qa1oK+lUWG4gmYOYAfKhkW8kS0pI7mw9F3ceGoQfXqjTYQ8e9SMxvakeh 20z8IS6q/h49B9j/xTB7pA3gfdZ/Zmbm9f7vzNRsZaaM+7+V2amT9Z/n8Qze/8UhP+wG8OLrV65c fgwyjU0Wr1xZyoV7w0nk+28OY9b2rLaFn+PGa7BHFcqHAEAye+yEhbXBVlbwerwbtHHMz3aflpiH iBLCAP8wA6FqTHjg1XHpbdLaGiyb2NuRRHSgnd7jlczuG76hUmiQZ8v6IbeFj1cYe+wOh9IIYA4g Dn4Ua+l4lFjdChzTs7ON4JTL7jyPhzPNifFnzPd1PcjHyHjARZDYX9mf/MNv92MkOdnvP9JzgPwP dxKP1Md++//lIP+brkzPzc7h/l9lunyS/z2P5/3lm2+9bZxn59lf/5b9Fh7Gvvzyy7t37zIqKKDX vx5KMTbMiviCsO9m3vt44V//4Tdj7z769Z99+dM3v/73kbe+95d//to/n/nq+r0/bZem2p1//MH/ /NPff/W3XxXGs7n7v/6P//5o7N+8v/jVmX8pLpfvX66k/+vTi+xH3x7bJ49+DrD/r3bmjtDHPvZf qZTng/nf9ExlGh1CuXyy//9cnuewKQ/6E66RxbfKcXd7QU8LMW0Ils02DK8hH0SZw4baGTVs7uuO aUP5QdRysq43kcN55j14FZ6MFuNKtMo2GFOwNS5+IeodX5i0VyyMelMthVsNtXgXX+mnpT3cU7dt gN+2INWS4rHwAHVHCtw8hiTIwhxE6v3jD4N3zbJCW7Ag7dyYuvL2g4kFXQUJONACEzYgcEeYCrrt SoIFKCjS0QacuVCLIkcV9unAgc89q9H0iT6iFWttseWr1UJkgQBarvQDziSirFbLmtAty5MhYcUy ElbGRUBiXyfKYUvaLwP0iK9IS9Z8SuO5qlc0A4YD0RUkKQmgpZ10dysu2GK4zWa7dRyf2CkF7tIC ZSnYoDA6NtEQ7ojqjiUd1gj64bTDxfOOm4cuocxbwnAkN10n79P2YyfoJ1CK/h4QhcYe7XsM7MAU Pu59OwJ3DgVg9RJ6g8u6hAaGOMSEGtQUDlci9Uh1hbknFTd+YSCTC6TVasT8bZcbMI+zTEBpgWYW FVNNy4P5v2i5DtAL3NFOJordSAyLPmrSEI7w1DJ2wzPaTUQUo57OWoChACZug50GnYO+ETawe60d pQGWHaxRAxF+LZohaBuOZgwHa6kHuuq4AQ6ceFDnx4E0Gh/VQy6a4IA1jCu+wVEo4xmP/NWi1Wpw 6dWr45NahDKgQ0720blpNUzMsMfjHeilkEMhVNLvxaiWU+Ius0cyv2OnfMiD9R/06T3Fk0T0DY/0 hHsnfUd6yELBAz3Co2GW0zEU1iovTOx2VEPBx7fWfERbxJ0dCS5aBLvMCm5jKtq0ox2UCECXSgow CYXIAKRteFLU4KfRkgXVQaDM+Xwx0GEsRkqcz0/kksh6jlc0BISRRq0QnTCJJDLRQ6xysb0NVTW2 Q1c1kTxdEDnO3mbhl3wx2TC++U6gStJKrlAPzjsmb7DKUEbhOR2E7dnujO9bIewGwkSj0b/vqhuo DvtPBAQ7h3pvPBiIlrkRl/KDcMMscYwFESmPX3NoQTLEVQyiOziYonKzMUYcWUWycdVbqCYJklWA rmoUiU+YSlQJaaJa+bOq+p34MhHX1ZZZqrU7sllYxo1Npy6uW3W/4EjiPqZgvreTFCJ2qhlVil2I qz01D+G3LMjR7B4E1LPbLpST3qMNmWZYEQxtLjtYuDI+UqEoq4E6BsMJn0vRKlwIiJ6+HCMSBFWd igyjqk+C4rPdxBPyBWdpqkf5aECq4E8LDn+Dl6eSzDhVZ7I8lagKTlM4fIn3IovIKCdlrThK6tVg jXpT9ipHFf5/s9wv0h6JDpJkeKgitOgeggcJuueYSVwPQnzKsexix75XsF2nUdh7FCcm1HGGoPWu Zt4vOklEEWythik/3ZdQILncZb6s9/jjiR6mU+qogb2Ty6l5EYZCCECm3Aj96gNAFE2Tcs9/RfKA 93/qR+kD5/+V3ef/5emZmeD8/+xMGfd/K/Mn93+fz/NXK2dyvvd1hQZ4GP6Xfwc/uvBfipmMrUMh wx6lmJ1iqe4we5Rm62nWHWGPMmw9w7qjrMnYkJliaTPNFofMDBSG2OJWiq0Pse5Z+irSzBqG+gwA YHkEysNscf0U615k5ggzTzFzlG2l8T8zy7aYLq+Psu7LCgPQkmMiyz5n7PM0ND8NzXPMHGOrhTNI 83fhR2xVoefykjwVfZZDUKbIeQkKA68JyRH4ovag5QuDgCT2mbjmIy8k4IJrPvJsX7U8h7Qkr/jI 01AXW2wnevX7SgE/Uo2+qiWzUA7v+yR4y0Vl8Cb0Gl24ImJ6OM0lqgiXvkhFHPWfECcQfYRKorrQ ifcCKo8sw4/JptsSk58a7ckDOhaZglbvpBhRN5bOpbOpbPr7I68Pvz78rFX/5GEHvf91JPe/j/8v T09NTfX6/8rM3In/fx4P+v/f/DLu/3/FAv//SPn/NPr/9RQFAuX+h9D920PMHmb2iIoLp5g9CiUI DFlm56A0iuFDMGadZmKEgQe3xph1hmEAOMusc2xriEHY+IKhT//p+nnWbTEBVWkmXtBufv0C67pM QIzIsC+Agu8wCC2rBSIy5vWIcogpTF4EX6L6RbJfZd3XsAuk/I8QMVL+OiLDwHVZBa4hFYuGTAxK p9giVY4GlVlVibEIolkBgxCEHoDVwWqM4lWKymeYeZaZ55h5nm1lmPkC1UPhAjMvahhgeX2YdSeZ +R1kfH2EdeeQQvzvRWa+xMyXmXmJfTHMMDa+wwTw8koU9iDida8y87vU9jTr3mACCHiVZHOGddeY +T36dJZ115n5GpXPsXurhe+jxP4ThBNffT+5qBY9/68uqsWzB5XkDLqU1pc3RDfNKK7ThTJKTGJH e+OZ0SgUg9tmlBAlLnnJl6Bml4tkcax4OJBSjf6LY5QR9GRKsZY01GPIauxGjzwPFb0XxYhVfU+M 0j+ki3iOJov1NMvQP3kd3d8k606xJyn2FFxGmT0Bn5VGK/08xdyz4NumsQreqw5mxTPMzzBriD1h WA2GmgIPtFpIA6IV6iY6pV5AAZJ86Q6YzFBpmijUK1ZqMMIbY8Ri/NYYcYBz1AI1Dt4GIMXwebB8 LAr0fd1NMhrpTCqbupg6m6qPkKsFOT1BOc2xbgXlBC81eJ1HAWAZxPYWCgjL4GzfZg1GZfCiC+xJ Br3xQwUJ/vBHzB9hT4ZQulgDrm+RaoaDGpgHVLFgZeg1y0i+yOaKhc6fON4RsoCikyh3y0wKho5a JgwDB0LrDObT4XlEaoe7QgStT+ORCIKzaJTB99w9UOMadqlJiHpOdrEr5kON2CiNmEqo5xhZQCY1 pv9doH+BgIiw8hz9mpmLTzvwJFUdlFmN7Ys4tldZ9z3WvRYMHYUppdUSD24c4cLcisISiisai0Iq 8eHQGhz3CVcVwkwqk6qfYvgPOPwb5PAG695k3fdjCnxLG/bDUI2X0bhBY7UqggL/mGpCdQUF/mOq CdUVwvoHpK4jgT7fZk9GmJ9lD7PMzYPHWGF+Dm0AchHIQCDXeEJ50otqMvw5y6yiY4E8ZLWAmiPH USf3vfsXjnKkdyhZdUtOz+3olpz8AZQPclEu7u/RxSfux60UxgJnpjoLh+2bGlTcLgcYF33X10kI G94/IXoSFwO11RVO9bnFb2SDcWLiHR9KF3vi1Q1GsQ5VMTDNC6lzqfOpyPSqqJhrrHufdT8ktSCd gvDzkDH3IujOR/pd2SQFoI814GpkoZdUdOu/nbjSEzZ2k3fg2I7BIEdjkXYtCCeZ1IsQUCDsDim+ RzB3X2fdDdb92UC+H/Tz/Sc6KLifw0sNzRgE8ArY1SsYt3+ubfApBCCDAlOGPRxh7mkA3kTTW3Vu QdHEevjaSLGXEFQw/1Rk8NYoezjE3AsAuEWBa4id5gBG/TeoKVk8vVuacAB6SZHZfZjg5WX8lSWM yNKj6CO4GjL5TDDBuRRPZOLDmFDK01QOryWuWDhcKgwedIR77AK1p2UqW2rHoySqDSTAuxpOYagv BA7EcygVOst607p1Jr8fU6QzqRfApM6nTqfPp14Bozqfvph6LVXAYJhYOwtX/7CAf7OB2I8WyWIL dvrvMey2ENaXl8XjML0E9w8Ta2a9GXVfBhs6uN5cN25GAwSi1uAOJd3YVGBUraVmL2bSWfo3M3zr 1NjIq7lL6bGhc+fGRig9je5TQkQdhYwQDLiGjstlXY91feYzCqpkcxAqMTYOs6cQCTvaqPDrKcqV u48pOOYoOL4E79s6GmI6PYIgKhiGrq2D1H4bVy11wItPnA6b6MXtLzQZlGx0D3Nw1OtRn8Jon9Ed lpygqzhph9Km5Jqyy6gik8mkXwU7PZ9aKaBrI0Zif6dHLanH/xoPOZw7N1eJIP3XhpJm1Z8B9Eyd XobX3Y420rrzD0nZdz/WSH5LF7Hr4I8JkcTxDwUpBxz9xSCiIPpjQQRHhbjSxN3BgDX5cKyTgjyC fQdL7OgNx2Ail4VhyKVy6bK4lD7w+d8jLAHvs/5bLlfme9Z/52emKifrv8/jwfXf//1Cr/+SI7nK Yuu/tO2XxnVfOwOlIZx6b7H4yi3MiD7FlVuRwV0+3AWkJIZQJfejqAtMc+Un2MVQsFD7Ni4B6IXa RcSOC7VLiApXMDM4Q8MVYEaLsLcxu8IyzLt+glMnvZD6c1yWxTIEGQdnUVgeZRBdxChbz+IyKPnK X44kl0FPDiGfHEI+OYR8cgj55BDyySHkb+UQcjzhrqfZMMyngvXJJdwE1KsaP8vgZsRT+AlB8F2c VFksWF6/yvxhvaquVxQzGBlNXMTI6HXMa3o1BGFok0IvTV4P6ocwgP5fe+fX2zQMRXE7bdJ2pNuo YKwPAx7gadLEBPQJ8TohRNHoQ+EBaaJDojCljFXThJgiwXfjc+FzrvPHSRijRQiJWFrVJp7j63Nt xz/ftOa4ebX0sw1Cas/6pbOWwqP2lsLnVw48QChOT+ZCJHVll9cjl0SEysIlXZ5jBmahNkY0W+dg HZYPgZZbaokRLlH+qhoIY3EA9OWqcF/95v23+JoDBx4rGgBwsabveJv6pp5g64kcbADh90iiyYZA vGTjCQzqSUKMjEeMImy4P8Uqe0QpcJs/LFjmGJHsMKUQBHZLVHOBClbkWNj0nDZ7ojYs73nccqPN ADnmxi4eWhI/tQTvedE2VtKSpbSueVrpWmFz5h1iUSPc3cJnyZbCup74qiVd9ius2FfxC9IP3iN/ YWdDz7Q7Bg3Tzfrn5tZ1DFOnLTVvA45AYQ8i6/iV+twHCJ132BIr9tx5oMamISweZTDFoS//8Vq9 BAkNbEuhgYd0Y47B7GtmduARThfsrAIKGTvXSbRGKLkLzn9SAhs2SlkhjjMmnG6djwvnEt0J+nY6 E9kyr8jA7laVeJeohhSzqLK5Kkq0736yh3bX73uB7mvI3ASqbpnR2Qj9HUIfEConndEIMW1gPQS3 fQPpgZInUB/j9SEcALK/VWcxXsUxwIEjkmW4gYcxeMOUZLQGWubn6yjwXZY/nHUJmnGFplDn95mj GCcQ4PaNzO0GLvmB/idw+/iR0uP4COfEWXyO3mhAGcLpGvB1iTp00FTm/ok2DpHUFKMskqjT4Og7 z8lZavdq/S8uNituUflXi9U4ORAE2tCbRCUdHah1S5i7+pbuwROwbWE8AQ9Fm9VmPLOeMNsyenxM NirELZr2jaZYxzzpq9m2+fAJ29zYbcjnbzPah++Nalduj6KrJutcydaBZBplAQZVxN+dbKu1KwPk /GQpIQTCJhFbX4bPhQB5r0q7RTUJ0vIjSw9Ny2+Zv21PLK0k+r1kEnee2XKxfP4+odAuJX+sMDNX M1uuPA0gbG6ZuSU70lQn18yBzsMGQ2HDThiEzXAtXA3bblww5fqjiLMQPtzm1eSJheUsTAAkrtXV K97GqarTv5EuEvEUKH0W7czPliOfv3j+A7/3l/7+3+6DAeN/B/X3//2VlGCt3Z179dch1alOdarT f5R+AGnTMxgAeAAA ------ =_NextPart_000_01BE77CD.21DA8700-- From jim@digicool.com Fri Mar 26 21:36:49 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 26 Mar 1999 16:36:49 -0500 Subject: [Zope] Method icons Message-ID: <36FBFDF1.23E9F89A@digicool.com> Hi all. Here's a minor issue I'd like to get some opinions on. There are some ideas in Zope that cross object types in Zope, like folders, methods, and content. We reinforce the idea of folders by giving folders icons derived from folder icons. I'd like to do the same thing for methods. The basic idea is that there should be some basic icon that indicates that something is a method. It should be possible to decorate the icon to indicate a particular type of method, such as adding angle brackets for DTML or adding a table grid for SQL, or OO (or glasses ;) for Python. Note that one complication is that the image should fit in a 16x16 icon. I've put some ideas at: http://www.zope.org/methodIcons I'm curious what folks think of these and whether anyone has any better ideas. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phil@philh.org Sat Mar 27 00:30:03 1999 From: phil@philh.org (Phil Harris) Date: Sat, 27 Mar 1999 00:30:03 -0000 Subject: [Zope] installing Zope References: <3.0.1.32.19990326200338.009363e0@poirot> Message-ID: <001101be77e8$ffc87d80$0202a8c0@typhoon> Hi Tom, Try this:- RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Notice the underscores, where you had hyphens. HTH Phil phil@philh.org ----- Original Message ----- From: Tom Deprez To: Sent: 26 March 1999 19:03 Subject: [Zope] installing Zope > Hi, > > Thanks to all the reply I got for my question PHP3 or Zope. > > I'm wanting to give it a try, but .... > > I've RedHat 5.2 installed with running Apache > > I'm trying to install Zope, but am expiering some problems : > > I've downloaded the binary and installed it into > > /usr/local/dc/Zope-1.10.2 > > installed it with ./install -sAdmin:Admin > > the var directory of Zope is permissioned for nobody (done by Zope) > > As in the manual, Zope created access with Admin:Admin, but it says login > with Zope:Admin > > copied the Zope.cgi to the directory /home/httpd/cgi-bin > > I want to use it with Apache so I had something to change in the conf file > of Apache... Apache has 3 conf files. At the moment it is written in all 3 > of the files (because none of them work!). > > This is the piece of script I've written : (from WEBSERVER.txt) > > #Zope configuration maps /Zopz/ to the Zope.cgi CGI script > > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] > > When trying to browse to http://localhost/cgi-bin/manage I get the password > dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... > > What am I doing wrong????? > > -------------------------------------- > > Now try to use ZopeHTTPServer > > I can't find anywhere the file serve.sh > > BUT I tried to start it with start > > then going to webbrowser http://localhost:9673/manage > > I get a message of DNS problem etc... > > So not even a question of password... > > ---------------- > > > Can somebody tell me what I've done wrong? I want to get it to work with > Apache... What do I've to do? > > Thanks in advance, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd@sun.med.ru Sat Mar 27 15:44:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Sat, 27 Mar 1999 18:44:42 +0300 (MSK) Subject: [Zope] Zope info on postgresql.org Message-ID: Hello! I am creating a record on Zope on postgresql.org: http://www.postgresql.org/software/detail.cgi?oid=3440544 I need a short informative description on Zope. Something like "Zope is opensource web application platform - software complex for creating highly dynamic web-sites". What is contact e-mail? I wrote zope@zope.org. Shouldn't it be info@digicool.com? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From daren@sefcik.cc Sat Mar 27 17:49:12 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sat, 27 Mar 1999 09:49:12 -0800 (PST) Subject: [Zope] Zope+FreeBSD.??? Message-ID: Has anybody gotton Zope and FreeBSD to work..?? I cannot get it working and have read some posts to same extent, if anybody has it working could you be kind enough to share your setup details?? TIA, Daren From martin@dougiamas.com Sun Mar 28 13:59:27 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Sun, 28 Mar 1999 21:59:27 +0800 Subject: [Zope] Automatically creating instances for each user? Message-ID: <36FE35BD.AEBBC507@dougiamas.com> Hi, I'm new to Zope, but I'm eagerly learning it. I like the paradigm - it seems to fit the way I think. This is my first post here. I've hit a snag, and I'm hoping someone more experienced can point me in the best direction. I'm developing an application that needs user-modifiable pages. I already have a Zope form where the user can edit text properties of an object, and another page that displays those properties as HTML. My problem is, I want each authenticated user to be editing their own instance of this object, and I also want the URL to be the same for each user. eg fred sees http://host/mypage as fred's editable page mary sees http://host/mypage as mary's editable page What is the best approach I should take to achieve this in DTML? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent is == i see ### Centre for Educational Advancement ### Curtin University of Technology ### http://cea.curtin.edu/staff/martin From daren@sefcik.cc Sun Mar 28 17:31:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 09:31:27 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? Message-ID: What does the ZMySQLDB Database Connection String want to connect to a database?? Could someone please provide an example of what I need to use to create a Z MySQL Database Connection...suppose I have MySQL running with a database named "webdb" and user "joe" with password "password" can accsess it. I am a bit confused as to what ZMySQLDB is asking for. TIA, Daren From kristian@vilmann.com Sun Mar 28 16:59:23 1999 From: kristian@vilmann.com (Kristian Vilmann) Date: Sun, 28 Mar 1999 18:59:23 +0200 Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: (message from Daren Sefcik on Sun, 28 Mar 1999 09:31:27 -0800 (PST)) References: Message-ID: <199903281659.SAA00997@supernaut.strangeparty.dk> Daren writes: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? Yes, the documentation is a bit unclear about this. > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. > You'll need a Database Connection String like this: "webdb joe password". /kristian -- Kristian Vilmann - kristian@vilmann.com Disclaimer -- These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d ^X ^? exitX Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^vi man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d !! man help ^C ^c :e! help exit ?Quit ?q CtrlShftDel "Hey, what does Stop L1A d..." From tsarna@endicor.com Sun Mar 28 18:07:08 1999 From: tsarna@endicor.com (Ty Sarna) Date: 28 Mar 1999 18:07:08 GMT Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: Message-ID: <922644428.678749@zoo-of-death.endicor.com> In article , Daren Sefcik wrote: > What does the ZMySQLDB Database Connection String want to connect to a > database?? dbname[@hostname] [user [password]] > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. "webdb joe password" should work if the database is running on the same machine. From daren@sefcik.cc Sun Mar 28 18:18:45 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 10:18:45 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: <922644428.678749@zoo-of-death.endicor.com> Message-ID: > dbname[@hostname] [user [password]] Works like a charm!! Thanks to all who helped me with this! Daren From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 08:25:24 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 10:25:24 +0200 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990329102524.0097e170@poirot> Hi all, Well, now I don't understand it anymore.... Just back from the weekend (where on Friday I had these installation problems) Now went to the Zope directory and what did I saw? The 'Start' and 'Stop'. I wrote ./Start and then surfed to the correct address and it works! Why did'nt it worked on Friday? The whole weekend searching for a solution and then it appears it isn't needed... (almost) But, still I would like to work with Apache... Why? Because I've heard it's the best in web-servers... (I don't know it's through, but I believe it) Or is the comming ZServer better? Now, I believe I have to recompile apache again to make it ready for Zope, isn't it? I thought I only had to put it in one of the configuration files, but instead you've to write that script in the ./configure file. Kind Regards, Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:03:26 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:03:26 +0200 Subject: [Zope] external databases Message-ID: <3.0.1.32.19990329110326.009816b0@poirot> Hi again, I've a Postgress database with some data I want to use with Zope. So I've to install an external driver. Is it so that I've to recompile Zope? This means that I've to download the source and not the binaries of Zope, like I did... Isn't there a simpler way? Because when I need to recompile, I've do download also all the correct libraries of each program... sghh. Please, let there be a simpler method. Thanks in advance. Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:22:48 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:22:48 +0200 Subject: [Zope] examples Message-ID: <3.0.1.32.19990329112248.00979a00@poirot> Hi, Can you send me an url where I can see your work? So I can get the idea (especially database related) what is possible with Zope. TIA Tom. From martin@dougiamas.com Mon Mar 29 09:22:48 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Mon, 29 Mar 1999 09:22:48 +0000 Subject: [Zope] Usernames in ZopeHTTP logs Message-ID: <36FF4668.5BAA002D@dougiamas.com> I found Zope's HTTP logs at: ...zope/var/server.errors which is what I need to monitor the server, but they don't appear to be including usernames (just a '-' in that field). How can I turn logging of usernames on? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent ### Centre for Educational Advancement is == i see ### http://cea.curtin.edu/staff/martin From phd@sun.med.ru Mon Mar 29 09:27:15 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 13:27:15 +0400 (MSD) Subject: [Zope] external databases In-Reply-To: <3.0.1.32.19990329110326.009816b0@poirot> Message-ID: Hello! On Mon, 29 Mar 1999, Tom Deprez wrote: > I've a Postgress database with some data I want to use with Zope. So I've > to install an external driver. You need to install and compile ZPygres Database Adapter and add it as described in ZPygresDA docs. You don't need to recompile Zope. > Is it so that I've to recompile Zope? This means that I've to download the > source and not the binaries of Zope, like I did... Isn't there a simpler way? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Mon Mar 29 09:41:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 29 Mar 1999 11:41:44 +0200 Subject: [Zope] Automatically creating instances for each user? In-Reply-To: <36FE35BD.AEBBC507@dougiamas.com> Message-ID: <4.1.19990329113945.00c38de0@lisp.atmm.nl> At 15:59 28/03/99 , Martin Dougiamas wrote: >Hi, > >I'm new to Zope, but I'm eagerly learning it. I like the >paradigm - it seems to fit the way I think. > >This is my first post here. I've hit a snag, and I'm hoping >someone more experienced can point me in the best direction. > >I'm developing an application that needs user-modifiable pages. >I already have a Zope form where the user can edit text properties >of an object, and another page that displays those properties as HTML. > >My problem is, I want each authenticated user to be editing their >own instance of this object, and I also want the URL to be the >same for each user. > >eg fred sees http://host/mypage as fred's editable page > mary sees http://host/mypage as mary's editable page > >What is the best approach I should take to achieve this in DTML? AUTHENTICATED_USER.getUserName() returns the name of the current user. You could use this in the DTML of mypage to select the object you are working on. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Mon Mar 29 10:37:46 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 29 Mar 1999 11:37:46 +0100 Subject: [Zope] (no subject) Message-ID: <00e301be79d0$2f6a32c0$5c773fc1@media1> Hi all, I'm using Zope 1.10 with IIS 4.0 on an NT box. All is working well, I just have one small query which is slightly off topic, maybe. The URL for Zope is 'http://localhost/scripts/z.exe' and I would like it to be 'http://localhost/z/', I know that with Apache I could do a rewrite and this works great with Apache, but does anyone know how I would do something similar with IIS. TIA Phil Harris Mail Phil@philh.org IRC Efnet #Zope #PHP WWW www.philh.org From chsrinfo@guetali.fr Mon Mar 29 10:57:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 14:57:36 +0400 Subject: [Zope] external methods Message-ID: <002801be79d3$29f169a0$147800a0@pc-pi0> Hello, >> After some digging, I found that the problem lies in >> the expression 'self.l' >> >> 'self.' gives access to the object hierarchy, not the variables >> namespace. >> >> So, I solved my problem by writing 'self.REQUEST['l']' >> instead of 'self.l' >> >> Also, I think that this should be clearly documented. >> Apparently, the only way to acess variables namespaces >> in external methods is through self.REQUEST >> This confuses a 'normal' python user whose variable >> namespace is usually accessed through self. > >I believe that you can just ask for it in your function signature: > >def my_method(self,l): > return l + ' is cool!' Nope, With that definition, my_method expect to be called with the arguments set, eg to display "Zope is cool". However, I want to get the variable l from the namespace. (application variables made with REQUEST.set, Folder or document properties, etc.) The question was: is self.REQUEST the only way to access the variable namespace? And the only way to *modify* the variable namespace from external methods (with self.REQUEST.set)? By the way, I'd like to thank Stefan Franke and Pedro Vale Lima who gave me a pretty quick answer. I did find the answer before they wrote, but anyway, a thank is not that expensive :-) Also, thanks to Paul who gave me such a useless answer. :-) (just kidding) Regards, Jephte CLAIN Service Informatique CHSR From Paul@digicool.com Mon Mar 29 13:04:07 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 29 Mar 1999 08:04:07 -0500 Subject: [Zope] Zope info on postgresql.org Message-ID: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Oleg wrote: > I need a short informative description on Zope. Something > like "Zope is > opensource web application platform - software complex for > creating highly > dynamic web-sites". Thanks Oleg! Try this: "Zope is a free, Open Source(tm) application server for creating powerful, dynamic web sites such as community portals." > What is contact e-mail? I wrote zope@zope.org. Shouldn't it be > info@digicool.com? Yes, info@digicool.com. --Paul From chsrinfo@guetali.fr Mon Mar 29 13:23:48 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 17:23:48 +0400 Subject: [Zope] error in pcgi Message-ID: <003601be79e7$80d806c0$147800a0@pc-pi0> Hello, my site was working great when suddenly, I got a "Temporarily unavailable" message. The pcgi.log reads: unexpected out-of-bound data in stdin t[0]=60 several times. I suppose this means that something is writing to the stream read by pcgi. I didn't do anything other than uploading new versions of my DTML Documents to the site. (I have done this all the aternoon long). Have you already seen this behavior? Does someone have an idea of where to start to find the problem? Regards, Jephte CLAIN, Service Informatique CHSR From phd@sun.med.ru Mon Mar 29 13:11:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 17:11:55 +0400 (MSD) Subject: [Zope] Zope info on postgresql.org In-Reply-To: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Message-ID: Hi! On Mon, 29 Mar 1999, Paul Everitt wrote: > "Zope is a free, Open Source(tm) application server for creating > powerful, dynamic web sites such as community portals." > > Yes, info@digicool.com. Thanks. Updated: http://www.postgresql.org/software/tools.cgi > --Paul > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffbauer@bigfoot.com Mon Mar 29 13:58:03 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 29 Mar 1999 07:58:03 -0600 Subject: [Zope] error in pcgi Message-ID: <36FF86EB.5F5BC6FF@rubic.com> Service Informatique CHSR wrote: > my site was working great when suddenly, I got a > "Temporarily unavailable" message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is > writing to the stream read by pcgi. I didn't do anything > other than uploading new versions of my DTML Documents > to the site. (I have done this all the aternoon long). > > Have you already seen this behavior? Does someone have > an idea of where to start to find the problem? The error occurs because a value is appearing in a pcgi reserved header record, possibly because your application is sending something to stdout. I'm not sure where to tell you to start looking, but if *all* you have done is uploaded .dtml files to trigger the error, that's probably the place to start. I'm honestly confused why this should happen. Jeff Bauer Rubicon, Inc. From Brian@digicool.com Mon Mar 29 14:12:01 1999 From: Brian@digicool.com (Brian Lloyd) Date: Mon, 29 Mar 1999 09:12:01 -0500 Subject: [Zope] error in pcgi Message-ID: <613145F79272D211914B0020AFF64019FDBD@gandalf.digicool.com> > Hello, > > my site was working great when suddenly, I got a "Temporarily > unavailable" > message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is writing to the > stream read by pcgi. I didn't do anything other than > uploading new versions > of my DTML Documents to the site. (I have done this all the > aternoon long). > > Have you already seen this behavior? Does someone have an idea of > where to start to find the problem? > > Regards, > > Jephte CLAIN, > Service Informatique CHSR Usually this means that the Zope process is unable to start up for some reason (an import error, syntax error, etc.). I'm not sure how changing DTML document objects could cause this, though. You didn't happen to change any DTML that is read from the disk (e.g., HTMLFile objects used from Zope, installed products or external methods) did you? If so, there is probably a dtml syntax error that is being raised at startup time. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From chsrinfo@guetali.fr Mon Mar 29 15:31:59 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 19:31:59 +0400 Subject: [Zope] error in pcgi Message-ID: <000a01be79f9$4e7bb3e0$147800a0@pc-pi0> >> my site was working great when suddenly, I got a "Temporarily >> unavailable" >> message. >> The pcgi.log reads: >> >> unexpected out-of-bound data in stdin t[0]=60 >> >Usually this means that the Zope process is unable to start up >for some reason (an import error, syntax error, etc.). I'm not >sure how changing DTML document objects could cause this, though. >You didn't happen to change any DTML that is read from the disk >(e.g., HTMLFile objects used from Zope, installed products or >external methods) did you? If so, there is probably a dtml syntax >error that is being raised at startup time. You are positively right. I stupidly wrote notice the non-named parameter after a named parameter. I haven't tried it yet with other publishing mechanisms (ZServer, ZopeHTTPServer, which don't use PCGI), but if these servers also dies for such oddities, this might be a bug in error handling. Stay tuned for more informations. Many thanks to Brian and Jeff who took the time to respond to me. Regards, Jephte CLAIN Service Informatique CHSR From tsarna@endicor.com Mon Mar 29 16:59:39 1999 From: tsarna@endicor.com (Ty Sarna) Date: 29 Mar 1999 16:59:39 GMT Subject: [Zope] cgi_module_publish cookie prsing errors? Message-ID: <922726779.752530@zoo-of-death.endicor.com> All of my "real" sites are still running under Principia. Recently a number users of these sites have had their machines upgraded. Those now using the latest versions of IE and Netscape are unable to access the sites now unless they turn off cookies, or they get an error in cgi_module_publish to do with parsing cookies. (I'm still trying to get someone to send me the actual error text). Anyone out there using Principia still? Have you seen this? Anyone using Zope seen this? From michel@digicool.com Mon Mar 29 17:14:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 12:14:30 -0500 Subject: [Zope] Browse the Zope CVS through the web Message-ID: <613145F79272D211914B0020AFF6401907BBDA@gandalf.digicool.com> Greetings, As promised, it is possible now to browse the Zope public CVS repository through the web. If you're interested in looking at the latest Zope developments, this is a good place to start without having the check out your own copy. This site is also handy for viewing the various evolutions of Zope, and for getting pretty colored diffs between versions. If you want to know the difference between two recent versions of a certain file, cvsweb will show you in glaring full color. The web view of the Zope CVS is more fragmentary the the view you get with the 'cvs' command. If you want to check Zope out of the public cvs, it is recommended you just check out 'Zope', which is an options not shown on the web cvs. The public CVS uses its module file to stitch together the various components that can be seen on the web view into a Zope distribution. Complete instructions on how to do this can be found at: http://www.zope.org/Community/CVS_public_access The web interface can be found at: http://www.zope.org/cgi-bin/cvsweb.cgi In case you're curious, this is not a Zope module but a CGI script written in Perl. It can be found at: http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi -Michel From michel@digicool.com Mon Mar 29 20:48:08 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 15:48:08 -0500 Subject: [Zope] Test Message-ID: <613145F79272D211914B0020AFF6401907BBDB@gandalf.digicool.com> ing. From neves@inf.puc-rio.br Mon Mar 29 22:31:52 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Mon, 29 Mar 1999 19:31:52 -0300 Subject: [Zope] ZMySQLDB Connection String?? References: Message-ID: <36FFFF58.38A1239E@inf.puc-rio.br> Daren Sefcik wrote: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. The first release of Aqueduct docs had a table with examples of connections strings for some databases. This table disappeared in the latest docs. Shouldn't it be the case to take it back? -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From daren@sefcik.cc Mon Mar 29 22:58:54 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Mon, 29 Mar 1999 14:58:54 -0800 (PST) Subject: [Zope] ZMySQLDB error Message-ID: After everything compiled fine I try to import MySQL and get the following error: rdi% python Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umoddi3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 >>> Does anyone have any ideas?? MySQL works fine as well as Zope. Do I need to install the Sun ld.so patch?? TIA Daren From egibson@connect.com.au Tue Mar 30 02:35:23 1999 From: egibson@connect.com.au (Evan Gibson) Date: Tue, 30 Mar 1999 12:35:23 +1000 Subject: [Zope] cgi_module_publish cookie prsing errors? In-Reply-To: <922726779.752530@zoo-of-death.endicor.com>; from Ty Sarna on Mon, Mar 29, 1999 at 04:59:39PM +0000 References: <922726779.752530@zoo-of-death.endicor.com> Message-ID: <19990330123523.28633@connect.com.au> On Mon, Mar 29, 1999 at 04:59:39PM +0000, Ty Sarna wrote: > All of my "real" sites are still running under Principia. Recently a > number users of these sites have had their machines upgraded. Those now > using the latest versions of IE and Netscape are unable to access the > sites now unless they turn off cookies, or they get an error in > cgi_module_publish to do with parsing cookies. (I'm still trying to get > someone to send me the actual error text). > > Anyone out there using Principia still? Have you seen this? > Anyone using Zope seen this? Yes, I've seen it in Principia and Bobo for cookies in the form: .com.au TRUE / FALSE 933422008 MC1 GUID=083F5B8E21DE11D28B2C08002BB74F3F The two problems being that cookies are usually only seen by the domain that registers them, but some badly configured servers (most probably Microsoft servers by the look of the cookies) only list the last two parts of the domain name. This is fine for blah.com, but for overseas domains like blah.com.au it means the cookie is returned for ALL .com.au sites. This wouldn't be a problem, but since the cookies are returned to Principia in the form: MC1=GUID=083F5B8E21DE11D28B2C08002BB74F3F parse_cookie breaks since it looks for key value pairs WITHOUT an equals sign on either side. The extra = really confuses it. To fix it change the re in parse_cookies in cgi_module_publisher.py from: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-=\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), to: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace. From chsrinfo@guetali.fr Tue Mar 30 06:12:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 30 Mar 1999 10:12:54 +0400 Subject: [Zope] external methods Message-ID: <004c01be7a74$5ceec720$147800a0@pc-pi0> >Nope, > >With that definition, my_method expect to be called with the arguments >set, eg to display "Zope is cool". > >However, I want to get the variable l from the namespace. (application >variables made with REQUEST.set, Folder or document properties, etc.) >The question was: is self.REQUEST the only way to access the >variable namespace? And the only way to *modify* the variable namespace >from external methods (with self.REQUEST.set)? I'd like to be more precise. Suppose my_method is: def my_method(self): if self.REQUEST.has_key('my_var'): return "oh yes" return "boooo" Now, I write in DTML:


    Believe me or not, the result is: boooo boooo my_value You can now understand why I ask how to access the variable namespace from external methods. How can I test the existence of my_var, and access its value??? Keep the good work, I might ask you some of your photos for my daily worship :-) Regards, Jephte CLAIN Service Informatique From Tom.Deprez@uz.kuleuven.ac.be Tue Mar 30 10:28:25 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Tue, 30 Mar 1999 12:28:25 +0200 Subject: [Zope] Frustrating Message-ID: <3.0.1.32.19990330122825.009293a0@poirot> Hi, I'm getting really frustrating on this subject. Pff, I believe the Zope-people have made already a great effort in their documentation. So I guess my problem is my own bad english. shhg. I finally got the Postgressql adapter compiled, thanks to two great people! Thanks for this already. But now I'm confused? How to use it in Zope? When I go to the product management I see the all the installed products including : ZPyGreSQLDA (broken product APyGreSQL).... I guess here is already something wrong (broken... is not a positive word :-( ) But then, how can I work with it? How can I use it in Zope...? How can I add it to the 'Add list' . I read of a connection string... but where to place it? Sggh, I've read in the manuals, Q&A, ... but I still don't get how to use it.... Please, somebody, help...! Thanks in advance, The Idiot, Tom. From ShawH@STHS.org Tue Mar 30 13:17:28 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:17:28 -0600 Subject: [Zope] Frustrating Message-ID: First thing, if your product is broken you won't get anywhere. So, first step is to delete the broken product, and shutdown and restart your zope server. This is because Zope apparently won't replace a broken product with a working one. If it is still broken, click on it, and then on the screen that comes up, look for the 'traceback' tab on the top of the screen. Copy this traceback and mail it to the list. If your product no longer says broken, then you will be able to go to a folder above where you want to use SQL methods, and from the pull-down menu beside the add button, choose to install the SQL Adapter. I don't know for certain the format for the connection string, but if you go to /lib/python/Products/ and look in the directory for the ZPyGreSQLDA and read the top of any *.py file you see, it should say. Once you have a working adapter, you can add an SQL Method, and it will list your adapter's id on its list of db connections. From this point on the documentation in the SQL Guide should be sufficient. Good luck! Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Tom Deprez[SMTP:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Tuesday, March 30, 1999 4:28 AM > To: zope@zope.org > Subject: [Zope] Frustrating > > Hi, > > I'm getting really frustrating on this subject. Pff, I believe the > Zope-people have made already a great effort in their documentation. > So I > guess my problem is my own bad english. shhg. > > I finally got the Postgressql adapter compiled, thanks to two great > people! > Thanks for this already. > > But now I'm confused? How to use it in Zope? When I go to the product > management I see the all the installed products including : > ZPyGreSQLDA > (broken product APyGreSQL).... I guess here is already something wrong > (broken... is not a positive word :-( ) > > But then, how can I work with it? How can I use it in Zope...? How can > I > add it to the 'Add list' . I read of a connection string... but where > to > place it? > > Sggh, I've read in the manuals, Q&A, ... but I still don't get how to > use > it.... > > Please, somebody, help...! > > Thanks in advance, > > The Idiot, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From ShawH@STHS.org Tue Mar 30 13:29:30 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:29:30 -0600 Subject: [Zope] DTML Methods Message-ID: Using Netscape 3.04, I can't edit the text in DTML Methods. I get the textbox, and I can place my cursor where I choose, and scroll through it, but I can't type in it, I can't paste into it. I can copy the whole contents, make a DTML Document, paste it in, and edit there! Any idea what's going on? When I access it from Netscape 4.07 on Linux it works fine... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From mike@compar.com Tue Mar 30 16:52:31 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 30 Mar 1999 11:52:31 -0500 (EST) Subject: [Zope] E-Commerce Message-ID: If I'm really lucky, I might be getting a contract to put together a rather large site which includes selling the client's product over the web. They'll want to be doing credit card transactions. Has anyone been working on a shopping cart app for Zope, or perhaps even utilities to interact with a credit card transaction service? It's much quicker to buy than write! Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From ShawH@STHS.org Tue Mar 30 16:56:59 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 10:56:59 -0600 Subject: [Zope] RE: [Zope-dev] Object to string Message-ID: Sorry, guess I wasn't clear enough. What I am thinking should work is ... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Jason Spisak[SMTP:webmaster@mtear.com] > Sent: Tuesday, March 30, 1999 6:48 AM > To: zope-dev@zope.org > Subject: Re: [Zope-dev] Object to string > > Damn it didn't work. I if I post again on this subject I get a free > set > of steak knives. ;-) > > I tried appending PARENTS[-1]. to the counter property to tell it that > the counter property I want is a property of the root folder. But > when > I try to save the changes to the DTML, it chokes. Here's the code and > the traceback: > > > > > The counter property is type:int and set to 0. > > > > > Unpack sequence of wrong size? Hmm, any suggestions? > > All the best, > > Jason Spisak > webmaster@mtear.com > > Shaw, Howard wrote: > > > > Actually, he's talking about simple folder property manipulation > (ok, > > its not so simple), the Counter product is intended for visible > counters > > incremented by webpage access. > > > > However, if a Counter is added to the folder as 'countob', and > marked to > > NOT check ips, then it can be handled thusly... (or should be able > to, > > anyhow.) > > > > > > > > > > The parameter on the first line is normally '_', and can be passed > in if > > you like. Not passing it in when the countob is marked to check ips > will > > generate a traceback. > > > > The only real reason I can think of for using a Counter object > instead > > of the folder properties is to be able to use acquisition to make > the > > names globally unique; but the same thing can be done by prepending > > PARENTS[-1]. to Pavlos' technique. > > > > Also, if you use the counter object, you will have to set the "How > many > > hits before saving to the database?" line to 0. > > > > Pavlos' method was not recently added, but has been usable for a > > considerable period of time, and has the added advantage of not > needing > > a Product added to support it. > > > > Howard C. Shaw III > > Programmer/SysAdmin > > St. Thomas High School > > > > > ---------- > > > From: Jason Spisak[SMTP:webmaster@mtear.com] > > > Sent: Monday, March 29, 1999 6:12 PM > > > To: Pavlos Christoforou; zope-dev@zope.org > > > Subject: Re: [Zope-dev] Object to string > > > > > > Pavlos: > > > > > > I had forgotten about the recent addition of the counter object to > our > > > arsenal of Zopeist tools. Shame on me. Thanks for the heads-up! > > > > > > Jason Spisak > > > webmaster@mtear.com > > > > > > > > > > > On Mon, 29 Mar 1999, Jason Spisak wrote: > > > > > > > > > Oh, to follow up on my last post about turning an object to a > > > string > > > > > without leaving DTML, I have tried: > > > > > > > > > > > > > > > > > > > > > > > > > All help welcome! > > > > > > > > will return a string > representation > > > of > > > > the object. > > > > > > > > Alternatively you can generate unique object ids by adding a > counter > > > > property to your containing folder (or root folder) and modify > it > > > > everytime you generate a new object. For instance:: > > > > > > > > > > > > > > > > > > > > > > > > Pavlos > > > > > > -- > > > Jason Spisak > > > webmaster@mtear.com > > > > > > _______________________________________________ > > > Zope-Dev maillist - Zope-Dev@zope.org > > > http://www.zope.org/mailman/listinfo/zope-dev > > > > > > (For non-developer, user-level issues, use the companion list, > > > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > > > > > -- > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://www.zope.org/mailman/listinfo/zope-dev > > (For non-developer, user-level issues, use the companion list, > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > From amos@aracnet.com Tue Mar 30 17:28:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 30 Mar 1999 09:28:35 -0800 Subject: [Zope] external methods In-Reply-To: <004c01be7a74$5ceec720$147800a0@pc-pi0> Message-ID: <3.0.5.32.19990330092835.01192720@mail.aracnet.com> At 10:12 AM 3/30/99 +0400, Service Informatique CHSR wrote: >>Nope, >> >>With that definition, my_method expect to be called with the arguments >>set, eg to display "Zope is cool". >> >>However, I want to get the variable l from the namespace. (application >>variables made with REQUEST.set, Folder or document properties, etc.) >>The question was: is self.REQUEST the only way to access the >>variable namespace? And the only way to *modify* the variable namespace >>from external methods (with self.REQUEST.set)? Well, this is an interesting question. In my experience, seldom do people try to munge the DTML namespace from within an External Method. I guess it could be done (perhaps by passing the special underscore variable to an External Method), but I wonder if this is really the best way to solve your problem. >I'd like to be more precise. Suppose my_method is: > >def my_method(self): > if self.REQUEST.has_key('my_var'): > return "oh yes" > return "boooo" > > >Now, I write in DTML: > >

    >

    >
    > >

    > >Believe me or not, the result is: > >boooo >boooo >my_value > >You can now understand why I ask how to access the variable >namespace from external methods. How can I test the existence >of my_var, and access its value??? Well let's see what's going on here. You call my method, it acquires the REQUEST object and looks for a 'my_var', doesn't see it and returns 'boooo'. so far so good. Now you push a namespace containing only 'my_var' on to the DTML namespace stack and call the method again. Not surprisingly the method does the same thing as before, it acquires the REQUEST and finds that it does not contain 'my_var' so it prints 'boooo'. Finally you call 'my_var' which is found in the DTML namespace and 'my_value' is printed. So the lesson is: the DTML namespace is not the same thing as the REQUEST object. For more on how DTML namespace works see my advanced DTML how-to: http://www.zope.org/Documentation/HowTo/DTML My advice to you is to keep things simple. It's easy to confuse yourself with the complexities of DTML. In general, I would suggest that your External Methods take well defined arguments and return results, rather than modify the objects passed to them. Then allow the DTML to pass those arguments and munge its own namespace in response to the results of the External Method. Of course, this schema isn't always the right one. Finally I would suggest that you, don't munge the DTML namespace from within an External Method unless you have a good reason to, I think that this would make the DTML even harder to understand. Good luck. -Amos From johanl@bahnhof.se Tue Mar 30 17:53:09 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Tue, 30 Mar 1999 19:53:09 +0200 Subject: [Zope] Broken DB In-Reply-To: Message-ID: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Hi! I get this error when trying to start the server with start.bat: Traceback (innermost last): File "serve.py", line 100, in ? ZopeHTTPServer.main(args) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, in set _published_module __import__(name) # to catch problem modules right away File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in read _index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1903771 Can I recover? The db doesn't contain anything important so it's really okay to reinstall, should that be neccessary. /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From petrilli@amber.org Tue Mar 30 18:03:10 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 30 Mar 1999 13:03:10 -0500 Subject: [Zope] Broken DB In-Reply-To: <4.1.19990330194807.00dafef0@mail.bahnhof.se>; from Johan Lindstrom on Tue, Mar 30, 1999 at 07:53:09PM +0200 References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <19990330130310.C11199@amber.org> On Tue, Mar 30, 1999 at 07:53:09PM +0200, Johan Lindstrom wrote: > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > [snipped] > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. It looks like you're running an older release 1.9.x something? 1.10.x will automatically fix the database under 90% of the circumstances by simply truncating the bad record. This should fix your problem. BTW, it's always helpful to give information on what release of Zope you're using. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jim@digicool.com Tue Mar 30 18:12:20 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 30 Mar 1999 13:12:20 -0500 Subject: [Zope] Broken DB References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <37011404.36F2C5A4@digicool.com> Johan Lindstrom wrote: > > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > File "serve.py", line 100, in ? > ZopeHTTPServer.main(args) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, > in main start(module_file,host,port,threading,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, > in start set_published_module(module_file,BoboRequestHandler,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, > in set _published_module __import__(name) # to catch problem modules right away > File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? > Bobobase=OFS.Application.open_bobobase() > File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in > open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line > 159, in __init__ db=apply(DBType,(),storage_options) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in > __init__ self.open(file_name,create,revision_time,meta_index,read_only) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in > open try: self.index,self.pos=read_index( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? At a minimum, you can truncate the data file (var\Data.bbb) at the position indicated. (Let me know if you need help with this.) > The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. You could also just delete the database (var\Data.*) and a new database will be created when you restart. I'd appreciate it if you'd send me the corrupted database as a zipped or gzipped attachment in a private email. Also, what version of Zope were you running? What OS? What products (not included in the Zope distribution) did you have installed? Can you tell me anything more about what might have led up to this? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From Amos@digicool.com Tue Mar 30 18:55:50 1999 From: Amos@digicool.com (Amos Latteier) Date: Tue, 30 Mar 1999 13:55:50 -0500 Subject: [Zope] RE: DTML question Message-ID: <613145F79272D211914B0020AFF640190AD129@gandalf.digicool.com> > Sorry to bother you with these questions but I can't post to > egroups. I > tried senting messages on friday, saturday, monday and > today but none > went through. I've sent from the egroups post page, and from my > email... no luck. Please feel free to cc the list with > any answers > or pointers to answers. You can post to the list without egroups by sending mail to zope@zope.org. You can also read the archives without egroups at http://www.zope.org/pipermail/zope/. > I've been working throught the DTML manual and I've come > across a problem; > I can't get the #in tag > to do what I want with a dictionary. I'm using it from > Python for now, but > plan to use this within a Zope app soon. > > > The following DTML code exits with this error: "...line 641, > in renderwob > l-len(sequence)" > > > > I think what you want is access to the dictionary's items() right? : The mapping attribute is not relevant here. It means treat sequence-items as mappings not instances, that is to say, look up vars with __getitem__, not __getattr__. The DTML User's Guide is your friend. -Amos From rkw@dataplex.net Tue Mar 30 19:19:24 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Tue, 30 Mar 1999 13:19:24 -0600 (CST) Subject: [Zope] Namespace Confusion Message-ID: I'm trying to convert shell scripts into DTML methods. Please excuse the pseudo code. I'm using it to represent the problems that I am addressing. set basket_total=0 set taxable_total=0 foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) if (! isfood($item)) @ taxable_total = $taxable_total + price_of($item) endif @ basket_total = $basket_total + price_of($item) endfor print "Of the $basket_total total, $taxable_total is taxable" 1) Can I generate an explicit list rather than getting it with as the result of either a database query or enumeration of an object? 2) How do I generate "local" variables. I know that I could use the REQUEST variable as a global property store. However, because of nesting, global (REQUEST) variables are not desirable. I'd like to say something like the following: ... ... ... Does Zope's DTML have constructs to address either of these? From jimbag@kw.igs.net Tue Mar 30 19:27:29 1999 From: jimbag@kw.igs.net (JB) Date: Tue, 30 Mar 1999 19:27:29 +0000 Subject: [Zope] External Methods Message-ID: <370125A1.305733AC@kw.igs.net> Please excuse my lack of zoping intuition but I hoped someone could help with this problem. I read all the doc's I could find but seem to be missing something. It goes like this... I have a ZSQLMethod that returns some tuples. There is a field in the tuple which I wish to use to lookup an external file and return a jpeg, if available. I've created an external method called 'getPic' which I wish to pass the key field to locate the file with but I can't seem to get at the variable. e.g ---------- )" --> ---------- This doesn't work for reasons not obvious to me. I've tried creating a class to handle the records. No go. Basically, the External method can't get at the vars defined on each loop thru the sequence returnd from the SQLMethod. Any insight would be appreciated. thanks jb From ShawH@STHS.org Tue Mar 30 19:38:58 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:38:58 -0600 Subject: [Zope] FW: [Zope] Namespace Confusion Message-ID: Once again I forgot to cc the list. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Shaw, Howard > Sent: Tuesday, March 30, 1999 1:38 PM > To: 'rkw@dataplex.net' > Subject: RE: [Zope] Namespace Confusion > > > > > > > > > > > Howard C. Shaw III > Programmer/SysAdmin > St. Thomas High School > > > ---------- > From: Richard Wackerbarth[SMTP:rkw@dataplex.net] > Reply To: rkw@dataplex.net > Sent: Tuesday, March 30, 1999 1:19 PM > To: zope@zope.org > Subject: [Zope] Namespace Confusion > > I'm trying to convert shell scripts into DTML methods. > > Please excuse the pseudo code. I'm using it to represent the problems > that I am addressing. > > set basket_total=0 > set taxable_total=0 > foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) > if (! isfood($item)) > @ taxable_total = $taxable_total + price_of($item) > endif > @ basket_total = $basket_total + price_of($item) > endfor > print "Of the $basket_total total, $taxable_total is taxable" > > > 1) Can I generate an explicit list rather than getting it with > as the result of either a database query or enumeration of an object? > > 2) How do I generate "local" variables. > I know that I could use the REQUEST variable as a global property > store. > However, because of nesting, global (REQUEST) variables are not > desirable. > > I'd like to say something like the following: > > > > ... > > ... > > ... > > > Does Zope's DTML have constructs to address either of these? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > From ShawH@STHS.org Tue Mar 30 19:41:39 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:41:39 -0600 Subject: [Zope] External Methods Message-ID: Try > > > > > You can't nest the 's. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: JB[SMTP:jimbag@kw.igs.net] > Sent: Tuesday, March 30, 1999 1:27 PM > To: zope@zope.org > Subject: [Zope] External Methods > > Please excuse my lack of zoping intuition but I hoped someone could > help > with this problem. I read all the doc's I could find but seem to be > missing something. It goes like this... > I have a ZSQLMethod that returns some tuples. There is a field in the > tuple which I wish to use to lookup an external file and return a > jpeg, > if available. > I've created an external method called 'getPic' which I wish to pass > the > key field to locate the file with but I can't seem to get at the > variable. > e.g > ---------- > > > )" --> > > ---------- > > This doesn't work for reasons not obvious to me. > > I've tried creating a class to handle the records. No go. > Basically, the External method can't get at the vars defined on each > loop thru the sequence returnd from the SQLMethod. > > Any insight would be appreciated. > > thanks > jb > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From webmaster@mtear.com Tue Mar 30 17:29:27 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 12:29:27 -0500 Subject: [Zope] Template Printing from Zope References: <199903302000.MAA28977@zope.codeit.com> Message-ID: <370109F7.F8B0B4E7@mtear.com> I would like to trigger a DTML document to print after the user creates it. ( There are a few documents in my project that need to be snail mailed) Circumstances aside, they aren't allowed to print from Navigator, so I'd like Zope to shoot it out without the user having to have a printer configured. If a printer is configured to work with the server, can Zope send it to lpr? I have zero experience there. :-( Any suggestions? Jason Spisak webmaster@mtear.com From bkc@murkworks.com Tue Mar 30 20:27:20 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 30 Mar 1999 16:27:20 -0400 Subject: [Zope] Template Printing from Zope In-Reply-To: <370109F7.F8B0B4E7@mtear.com> Message-ID: <199903302120.QAA18499@anvil.murkworks.com> Use the win32com extensions to encapsulate the MS IE HTML control (or browser). Get the control to load the html, then control.Print() On 30 Mar 99, at 12:29, Jason Spisak wrote: Date sent: Tue, 30 Mar 1999 12:29:27 -0500 From: Jason Spisak To: zope@zope.org Subject: [Zope] Template Printing from Zope > I would like to trigger a DTML document to print after the user creates > it. ( There are a few documents in my project that need to be snail > mailed) Circumstances aside, they aren't allowed to print from > Navigator, so I'd like Zope to shoot it out without the user having to > have a printer configured. If a printer is configured to work with the > server, can Zope send it to lpr? I have zero experience there. :-( > > Any suggestions? > > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From webmaster@mtear.com Tue Mar 30 18:58:00 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 13:58:00 -0500 Subject: [Zope] Template Printing from Zope References: <199903302120.QAA18499@anvil.murkworks.com> Message-ID: <37011EB8.8031C53D@mtear.com> Brad, Thanks. Regretably, we aren't really using any Microsoft Products (Too bad, we could have got a virus yesterday :-() The clients are(and a browser on the server could be) running Netscape Comm 4.08. I'm sure there is a similar way of controlling Netscape--Any body have a guess? Jason Spisak webmaster@mtear.com Brad Clements wrote: > > Use the win32com extensions to encapsulate the MS IE HTML control > (or browser). Get the control to load the html, then control.Print() > > On 30 Mar 99, at 12:29, Jason Spisak wrote: > > Date sent: Tue, 30 Mar 1999 12:29:27 -0500 > From: Jason Spisak > To: zope@zope.org > Subject: [Zope] Template Printing from Zope > > > I would like to trigger a DTML document to print after the user creates > > it. ( There are a few documents in my project that need to be snail > > mailed) Circumstances aside, they aren't allowed to print from > > Navigator, so I'd like Zope to shoot it out without the user having to > > have a printer configured. If a printer is configured to work with the > > server, can Zope send it to lpr? I have zero experience there. :-( > > > > Any suggestions? > > > > Jason Spisak > > webmaster@mtear.com > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 -- Jason Spisak webmaster@mtear.com From Anthony Baxter Wed Mar 31 01:18:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 31 Mar 1999 11:18:36 +1000 Subject: [Zope] Frustrating In-Reply-To: Your message of "Tue, 30 Mar 1999 07:17:28 CST." Message-ID: <199903310118.LAA01565@mbuna.arbhome.com.au> >>> "Shaw, Howard" wrote > First thing, if your product is broken you won't get anywhere. So, first > step is to delete the broken product, and shutdown and restart your zope > server. This is because Zope apparently won't replace a broken product > with a working one. Yah - this _really_ needs to be emphasised in the "how to write products" docs. It drove me nuts for about 10 minutes before I realised what was happening... From mark@interwalk.com Wed Mar 31 00:48:36 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 30 Mar 1999 16:48:36 -0800 (PST) Subject: [Zope] Ideas about implementing a dynamic site? Message-ID: <19990331004836.5871.rocketmail@web129.yahoomail.com> I am thinking about implementing a dynamic site using zope and as little python as I can get away with. The site is modeled after http://c2.com/cgi/wiki?WikiWikiWeb This is a dynamic site in that all the web pages are dynamically generated and you are allowed to edit any page right from your browser (sound familiar?) and also create new pages very easily. There are many other implementation of wikiwiki (see the WikiWikiClones link). I am interested in any creative ways of dynamically generating the pages and storing the underlying date in the objectDB. Thanks! Mark === ==================================================== Mark Interrante Hewlett Packard mark@interwalk.com mark_interrante@hp.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From chsrinfo@guetali.fr Wed Mar 31 06:36:51 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Wed, 31 Mar 1999 10:36:51 +0400 Subject: [Zope] external methods Message-ID: <003c01be7b40$e0c23560$147800a0@pc-pi0> Hello, >Well, this is an interesting question. In my experience, seldom do people >try to munge the DTML namespace from within an External Method. I guess it >could be done (perhaps by passing the special underscore variable to an >External Method), but I wonder if this is really the best way to solve your >problem. Thanks for your answer. In fact, I want to write external methods to replace DTML methods which work like a charm, but are not very readable (a lot of iterative stuff, given the fact that mySQL doesn't support sub-select) and pretty slow. I have used python for several years right now, but DTML is new for me. My users can search in our news database in several ways, that are covered by different SQL queries. However, the output of all these queries are the same, so I use a single DTML method to display the result. So the name of the ZSQL Method is only known at runtime, and I use something like: to display the result. The arguments of the query are taken from the namespace. I can also write: If I want to cook some args before feeding it to the query. All these work from DTML. Now, I want to write this in an external method. def results(self): for record in getattr(self, self.REQUEST['query'])(self): pass # do watever 'query' has to be in the form REQUEST variables (that is not a problem), but I cannot be sure that any arguments that the query need are all accessible through REQUEST. >Well let's see what's going on here. You call my method, it acquires the >REQUEST object and looks for a 'my_var', doesn't see it and returns >'boooo'. so far so good. Now you push a namespace containing only 'my_var' >on to the DTML namespace stack and call the method again. Not surprisingly >the method does the same thing as before, it acquires the REQUEST and finds >that it does not contain 'my_var' so it prints 'boooo'. Finally you call >'my_var' which is found in the DTML namespace and 'my_value' is printed. I wrote this to test wether an external method has access to the entire namespace, or only to REQUEST variables. >So the lesson is: the DTML namespace is not the same thing as the REQUEST >object. So I come back with the question: is there any way to access the DTML namespace from an external method. Apparently there is not >For more on how DTML namespace works see my advanced DTML how-to: > >http://www.zope.org/Documentation/HowTo/DTML > I have already read it. By the way, let me ask you a question (again. I already asked that, but the answer was not very clear, and I finally gave up): and are the same. So instead of writing: I usually write: But almost everyone told me that also work. So I wonder: are and the same??? The DTML User's guide say that in an expression, variable are not called by default, but _['var0'] calls var0 if possible. >My advice to you is to keep things simple. It's easy to confuse yourself >with the complexities of DTML. In general, I would suggest that your >External Methods take well defined arguments and return results, rather >than modify the objects passed to them. Then allow the DTML to pass those >arguments and munge its own namespace in response to the results of the >External Method. Of course, this schema isn't always the right one. Finally >I would suggest that you, don't munge the DTML namespace from within an >External Method unless you have a good reason to, I think that this would >make the DTML even harder to understand. To keep things simple mean I have to write several times the same external method with different queries and differents arguments each time. this is not what I want. I can remember that in DTML I only need one DTML Method. I would really like to replace some of my DTML Methods with external methods. That's enough for today. Let's take some rest :-) Regards, Jephte CLAIN, Service Informatique CHSR From piers@cs.su.oz.au Wed Mar 31 07:18:14 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Wed, 31 Mar 1999 17:18:14 +1000 Subject: [Zope] multiple SUBMIT buttons for same method, with parameter Message-ID: <129.78.8.1.126.8141.922865008.414.1008> I can use the following in a DTML document to call a specific method: But what if I wanted to have lots of them? I'd like to have multiple SUBMIT buttons, all referring to the same method but diffentiated by parameter - possible? Ie: something like: passing the parameter '1' to 'mymethod', and then later and so on. Incidentally, is the ':method' trick documented? - I can't find it in the DTML guide. From Tom.Deprez@uz.kuleuven.ac.be Wed Mar 31 08:58:51 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Wed, 31 Mar 1999 10:58:51 +0200 Subject: [Zope] One week of Zope-expirience Message-ID: <3.0.1.32.19990331105851.00931700@poirot> Hi all, First of all, thanks to all with their great support and help. At the end of last week I found out about Zope. It looked really interesting, so I wanted to give it a try. Monday after several problems and with lots of help I could manage to enter Zope. Not from Apache as I would like, but from the HTTPServer. Next I wanted to attach Zope with my PostGresSQL demo database. Boy, did it gave me some problems (and all because of my lack in knowledge of Linux). But again several people helped me and today it is solved! Yep, it is done, the hard work can begin. Now, I've to convince other people that Zope is the way to follow. At first blink, Zope is a really nice and great product. I hope it will get the attention it diserves. Still, some work on the documentation, although they already did a great job! Most thingies are written down. Kind Regards, Tom. Now some questions: 1. Have you used CSS-sheets in Zope and how did you use them? Did you incorporated them into Zope or not? Have you got a little sample? From tony.mcdonald@ncl.ac.uk Wed Mar 31 09:22:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 31 Mar 1999 10:22:53 +0100 Subject: [Zope] One week of Zope-expirience In-Reply-To: <3.0.1.32.19990331105851.00931700@poirot> References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: > >Now some questions: > >1. Have you used CSS-sheets in Zope and how did you use them? Did you >incorporated them into Zope or not? Have you got a little sample? > In Zope, this is pretty easy. Create a property at your top level of type 'lines' and called 'css' (you can also create a DTML document/method if you like). Populate it with good CSS things like (this is from the Zope site itself actually). In standard_html_header you put something like <!--#var title_or_id--> and you're away... You may want to change standard_html_header so it doesn't crash if css is not present. <!--#var title_or_id--> Now where it starts to get really cool is that all your documents *below* the top level get the CSS information by acquisition, but you can change CSS information in folders by creating a new CSS property or document within that folder. Tres Neat. hth tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tim.hawes@ncmail.net Wed Mar 31 12:48:50 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 07:48:50 -0500 Subject: [Zope] URL problems. References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: <370219B2.385E84A4@ncmail.net> I just installed Zope on a Netscape Enterprise Server (3.6). I compiled and installed the nscgiauth plugin, and all seems to run OK, except for one thing: When I try to add items to the site through the manage screen, I get: Not Found The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. Please inform the site administrator of the referring page. When I open the frame into a new window, I see that the URL looks something like: http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_addDTMLDocumentForm When I edit the URL by hand to remove the "." http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocumentForm It works fine. What is going on here, and what do I need to do to change it? I plan on having other people from other departments access resourses on Zope to create their own objects, and I need this to work right out of the box. Thanks in advance for any help. Tim Hawes tim.hawes@ncmail.net From michel@digicool.com Wed Mar 31 13:53:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 08:53:22 -0500 Subject: [Zope] URL problems. Message-ID: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> > -----Original Message----- > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > Sent: Wednesday, March 31, 1999 7:49 AM > To: Zope List > Subject: [Zope] URL problems. > > > I just installed Zope on a Netscape Enterprise Server (3.6). > I compiled > and installed the nscgiauth plugin, and all seems to run OK, > except for > one thing: > First off, your the first person (I think) that has come forward with the information that they are using any version of NES higher than 2.0, which is what the nscgiauth plugin was written for. As I have heard (but don't know) there were some significant changes between the 2.0 and higher versions of the NSAPI. So, that you got it to work at all is pretty good. > When I try to add items to the site through the manage screen, I get: > > Not Found > > The requested object does not exist on this server. > The link you > followed is either outdated, > inaccurate, or the server has been instructed not to > let you have > it. Please inform the site > administrator of the referring page. > > When I open the frame into a new window, I see that the URL looks > something like: > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > DTMLDocumentForm > > When I edit the URL by hand to remove the "." > This is unreported behavior, which leads me to think that nscgiauth needs a little tweaking. As nscgiauth is unsuported you will have to experiment with this a little. >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume ntForm >It works fine. What is going on here, and what do I need to do to change >it? I plan on having other people from other departments access resourses >on Zope to create their own objects, and I need this to work right out of >the box. If your looking to showcase this and you can't spend any time working on nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, or IIS, all of which Zope runs out of the box with. -Michel >Thanks in advance for any help. >Tim Hawes >tim.hawes@ncmail.net _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From rkw@dataplex.net Wed Mar 31 16:02:47 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 31 Mar 1999 10:02:47 -0600 (CST) Subject: [Zope] Namespace Confusion In-Reply-To: Message-ID: I think that you missed my point. "I" can write python just fine. However, every time something changes, new python functions must be written. It is desirable to allow "DTML programmers" to do simple things which they can accomplish with simple local variables. What I think I should do is create a function, "LOCAL", similar to REQUEST that stores temporary variables. Unlike REQUEST, LOCAL would be bound to the namespace multiple times, each with a different context stack. The total basket will cost Or perhaps we can trick the namespace into showing basketTotal without the LOCAL.get reference. On Wed, 31 Mar 1999, Shaw, Howard wrote: > Given your needs, I suspect a simple External Method would serve > better... > > What about the local variable? > > Any ideas? From daren@sefcik.cc Wed Mar 31 18:18:39 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 10:18:39 -0800 (PST) Subject: [Zope] Zope+Virtual Domains Message-ID: Can the Zope server provide virtual domains or do I need to use Apache?? Right now I have Apache set up with 4 virtual domains and would rather just use the default Zope httpserver. Daren From tim.hawes@ncmail.net Wed Mar 31 20:58:38 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 15:58:38 -0500 Subject: [Zope] URL problems. References: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> Message-ID: <37028C7E.5B9760D7@ncmail.net> Michel Pelletier wrote: > > -----Original Message----- > > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > > Sent: Wednesday, March 31, 1999 7:49 AM > > To: Zope List > > Subject: [Zope] URL problems. > > > > > > I just installed Zope on a Netscape Enterprise Server (3.6). > > I compiled > > and installed the nscgiauth plugin, and all seems to run OK, > > except for > > one thing: > > > > First off, your the first person (I think) that has come forward with > the information that they are using any version of NES higher than 2.0, > which is what the nscgiauth plugin was written for. As I have heard > (but don't know) there were some significant changes between the 2.0 and > higher versions of the NSAPI. So, that you got it to work at all is > pretty good. > Well, the only difference that stuck out to me were the include files for NSAPI. nscgi calls for several, but in 3.x all the header files have been combined into one, "nsapi.h". I modified nscgi.c to call for this one header file and it compiled cleanly. It does its job very well, and am not all that certain that the problem I am having is related to nscgi at all. > > > When I try to add items to the site through the manage screen, I get: > > > > Not Found > > > > The requested object does not exist on this server. > > The link you > > followed is either outdated, > > inaccurate, or the server has been instructed not to > > let you have > > it. Please inform the site > > administrator of the referring page. > > > > When I open the frame into a new window, I see that the URL looks > > something like: > > > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > > DTMLDocumentForm > > > > When I edit the URL by hand to remove the "." > > > > This is unreported behavior, which leads me to think that nscgiauth > needs a little tweaking. As nscgiauth is unsuported you will have to > experiment with this a little. > > >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume > ntForm > > >It works fine. What is going on here, and what do I need to do to > change > >it? I plan on having other people from other departments access > resourses > >on Zope to create their own objects, and I need this to work right out > of > >the box. > > If your looking to showcase this and you can't spend any time working on > nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, > or IIS, all of which Zope runs out of the box with. > Well, I am a contractor and really don't have that option. I have tried to sell the idea of using Apache here, but they have already bought massively into Netscape. If I cannot get Zope to work, I may end up recommending a commercial package, at least for this case. > > -Michel > > >Thanks in advance for any help. > > >Tim Hawes > >tim.hawes@ncmail.net > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jae@kavi.com Wed Mar 31 20:57:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 31 Mar 1999 12:57:33 -0800 (PST) Subject: [Zope] Building Zope on BSDI Message-ID: Has anyone built Zope on a BSDI machine? BSDI doesn't support shared libraries, so everything has to be statically compiled into python. I just got it to build (python w_pcgi.py finished), but there doesn't seem to be a new python binary anywhere with everything compiled in. To get it to compile, I went through and deleted all the '*shared*' from the 'Setup' files. Any tips? As a side note, I was planning on using the binary porting kit to get it built, then contributing this back to the community. But the porting kit is still Zope-1.9. Is there any plans to update the porting kit. Thanks in advance for any help, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From michel@digicool.com Wed Mar 31 21:26:34 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 16:26:34 -0500 Subject: [Zope] NotMail 0.1.0 and IMAPAdapter 0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBF0@gandalf.digicool.com> Greetings, NotMail-0.1.0 and IMAPAdapter-0.1.0 have been posted to the prereleases area of the site: http://www.zope.org/Download/Prereleases/Mail These are first beta cuts. Both programs are also available in the public CVS. IMAPAdapter allows you to work with IMAP folders and messages in the context of an authenticated IMAP user. Using IMAPAdapter, it is very easy to build IMAP client functionality into your Zope site using DTML. NotMail is a simple web IMAP client that requires IMAPAdapter. Its mail purpose is to verify the operation of IMAPAdapter and to provide an example implimentation of IMAPAdapter's client functionality. NotMail is mostly DTML, and what Python there is is just specific to sending and replying to mail, all other functionality comes from IMAPAdapter. It is important to note that IMAPAdapter looks like a user folder to Zope, in Zope parlance, we call this a user database. It's not a user folder, because it doesn't not contain users. If Zope tries to validate a user against an IMAPAdapter, the IMAPAdapter will contact the IMAP server, try to make a connection with the uid:pwd that the browser supplied, returning either a user object or None, depending on the success or failure of that connection attempt. This means that using IMAPAdapter is quite simple. Here is a snip of DTML to display all an IMAP users mail folders with the #tree tag. > () The user object that IMAPAdapter returns (if the user is valid) is placed into AUTHENTICATED_USER. emapFolderTree is one method of this user object, but there are about a dozen or so more methods to do various imap related things like adding/deleting folders and listing and fetching messages. If you plan on installing and trying out NotMail and IMAPAdapter it is important to know that you can configure the roles that IMAPAdapter associates with users that it returns. The two default associated roles are 'NotMail' and 'IMAPUser'. If you want NotMail to work, you will need to add one of these roles (or any roles you care to define as IMAPAdapter's default roles) somewhere above NotMail/IMAPAdapter and then assign that role the 'View' permission for NotMail's DTML Methods. Have Fun! -Michel From petrilli@amber.org Wed Mar 31 21:17:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 31 Mar 1999 16:17:24 -0500 Subject: [Zope] Building Zope on BSDI In-Reply-To: ; from John Eikenberry on Wed, Mar 31, 1999 at 12:57:33PM -0800 References: Message-ID: <19990331161724.E13913@amber.org> On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > libraries, so everything has to be statically compiled into python. > I just got it to build (python w_pcgi.py finished), but there doesn't seem > to be a new python binary anywhere with everything compiled in. To get it > to compile, I went through and deleted all the '*shared*' from the 'Setup' > files. Any tips? Um, what VERSION of BSDI are you using? I haven't usd anything since 3.0, but I SWEAR it has standard BSD style shared libraries, same as FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it didn't.... are you sure it just didn't auto-detect the method right? Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From John Eikenberry Wed Mar 31 22:24:50 1999 From: John Eikenberry (John Eikenberry) Date: Wed, 31 Mar 1999 14:24:50 -0800 (PST) Subject: [Zope] Building Zope on BSDI In-Reply-To: <19990331161724.E13913@amber.org> Message-ID: On Wed, 31 Mar 1999, Christopher Petrilli wrote: > On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > > libraries, so everything has to be statically compiled into python. > > I just got it to build (python w_pcgi.py finished), but there doesn't seem > > to be a new python binary anywhere with everything compiled in. To get it > > to compile, I went through and deleted all the '*shared*' from the 'Setup' > > files. Any tips? > > Um, what VERSION of BSDI are you using? I haven't usd anything since > 3.0, but I SWEAR it has standard BSD style shared libraries, same as > FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it > didn't.... are you sure it just didn't auto-detect the method right? Alright, I guess I was jumping the gun a bit with my assumptions about shared library support. It does support them, just not in a format I'm used to (based on my Linux/Solaris experience). Ok, so then mabey I messed up in autodetecting as you mentioned. How would you suggest I do this? Here's a few lines of the errors it reports when trying to compile any of the shared extensions... www ~/Zope-1.10.2-src/lib/python/SearchIndex 242> make gcc -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -I/projects/_/python -c ./Splitter.c ld Splitter.o -o Splitter.so ./Splitter.c:105: Undefined symbol _PyString_AsString referenced from text segment ./Splitter.c:114: Undefined symbol _free referenced from text segment ./Splitter.c:126: Undefined symbol _PyString_Type referenced from text segment etc.... (many more Undefined symbol errors) So... any tips for compiling the Zope extensions as shared libs? I'll probably keep working on the static python solution, as I'm actually making progress on this, and I really have no idea where to start with shared libs on BSDI (no good leads on dejanews, and egroups is non-responsive as usual). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From daren@sefcik.cc Wed Mar 31 22:57:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 14:57:27 -0800 (PST) Subject: [Zope] Zope.cgi error Message-ID: I am trying to get Zope.cgi working (Apache 1.3.4) per the Zope source instructions. When I try to access http://somedomain/cgi-bin/Zope.cgi/manage I get the following error in the http-error log: httpd: [Wed Mar 31 14:52:45 1999] [error] [client 168.240.152.202] Premature end of script headers: /usr/local/www/cgi-bin/Zope.cgi Does anybody know what this means?? TIA, Daren From Brian@digicool.com Wed Mar 31 23:48:00 1999 From: Brian@digicool.com (Brian Lloyd) Date: Wed, 31 Mar 1999 18:48:00 -0500 Subject: [Zope] Building Zope on BSDI Message-ID: <613145F79272D211914B0020AFF64019FDCB@gandalf.digicool.com> > > > Has anyone built Zope on a BSDI machine? BSDI doesn't > support shared > > > libraries, so everything has to be statically compiled > into python. > > > I just got it to build (python w_pcgi.py finished), but > there doesn't seem > > > to be a new python binary anywhere with everything > compiled in. To get it > > > to compile, I went through and deleted all the '*shared*' > from the 'Setup' > > > files. Any tips? > > So... any tips for compiling the Zope extensions as shared libs? I'll > probably keep working on the static python solution, as I'm actually > making progress on this, and I really have no idea where to start with > shared libs on BSDI (no good leads on dejanews, and egroups is > non-responsive as usual). > > Thanks, > > --- > > John Eikenberry Here are some things I've found in previous struggles to get Zope compiled on bsdish systems -- I'm no guru, though, and I've seen different things work on different bsdx flavors: o you usually need to add -rdynamic to LDSHARED in your Makefiles (this should be reported & worked into python's makefiles, IMHO) o I havent been able to get threads going on many bsd flavors - so you may not be able to pass --with-thread to configure o I find that extensions will all appear to blow up with unfound symbols (such as those you reported) - you need to run make -k and ignore the errors ;) o On some systems, I had to run make -k, ignore the errors, and rename the output .o files for the extensions to .so :( o I seem to remember having to use shlicc on .so files, but I dont recall the details... Hope this helps - please post a status rpt if you get it working, so that the gory details will at least be captured. This is the sort of thing that should be in an installation FAQ somewhere. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jeffbauer@bigfoot.com Sat Mar 20 23:12:52 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 17:12:52 -0600 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <36F42B74.A082F266@rubic.com> "James A. Hillyerd" wrote: > If I do have to continue the shutdown/restart process, is > there any way of tuning PCGI so that it loads up faster? In the pcgi/Util directory, you'll find a killpcgi.py script. You could hack it to perform a restart, i.e. launch a new pcgi process after killing the old one. This would speed up your initial connect time and be much faster during debugging (multiple restarts). Best regards, Jeff Bauer Rubicon, Inc. From rob.page@digicool.com Mon Mar 1 00:21:43 1999 From: rob.page@digicool.com (Rob Page) Date: Sun, 28 Feb 1999 19:21:43 -0500 Subject: [Zope] Z SQL Methods Message-ID: <613145F79272D211914B0020AFF640190690E5@GANDALF> > Search table foo for matches with a "like" select, user > clicks on an item > and a new query is run using params from the clicked link. > The next page > would be the result of the multitable query. > > I've not a clue how I should format the sytax for first > result returned > using DTML. Before I start into it has anyone else done this yet? If I understand you correctly, you might try something like: Step1QueryForm --------------
    sqlFoo -------- SELECT record_id, first_name, last_name, fav_color_code, postal_code FROM foo WHERE memo_field LIKE Step2QueryForm -----------------

    Click on one of the results:

    --Rob Page -- Rob Page Phone: +1 540 371 6909 Digital Creations Fax: +1 540 371 1201 From garys@magna.com.au Mon Mar 1 06:04:10 1999 From: garys@magna.com.au (Gary Stephenson) Date: Mon, 01 Mar 1999 17:04:10 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> Message-ID: <36DA2DDA.138FF09A@magna.com.au> Amos Latteier wrote: > > Correct. This is what's supposed to be there. Does the FAQ Tool not work > when you install it? Are you using Zope 1.10.2? > > -Amos My Zope Zen seem to have gone negative (started at zero - and just got worse :( ) but HOW do you install it. I could find no mention of any "lever"s in the ZMG.pdf, and I have tried as many ways as I could think of to get my Zope (1.10.2 on ZAP) to read/import the FAQ product, but no cigar - not even close! Where does one put which files, and what procedure does one go through to invoke said "Lever" functionality. Sorry about this, but surely I can't be the *only* one that is totally lost. (Come to think of it, maybe I can!) -Hoping-for-a-positive-Zope-Zen-before-the-millenium-ly yours: (I just love those signoff thingies - one day I'll even think of a good one myself!) - gary From amos@aracnet.com Mon Mar 1 08:32:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 00:32:35 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <4.1.19990228202918.00aca300@mail.atmm.nl> References: <3.0.5.32.19990227203949.01188af0@mail.aracnet.com> <003d01be62ac$c17f1260$fa01a8c0@rogue.easystreet.com> Message-ID: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> At 08:33 PM 2/28/99 +0100, Martijn Pieters wrote: >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at >home, running Win98, and I checked the source of the Product >initialisation. When I twiddle with it a bit, swicth off the try/except >errorhandling, I discovered that it is the product.dat file. Here is the >traceback: ... >It looks like the Lever isn't platform independent. It certainly looks like you are having a problem, but since I developed to FAQ Tool under win32 and it works fine for me under Linux, I don't agree with you assessment of the problem. Would you please file a bug report in the collector including this traceback. This is getting deeper than I can easily troubleshoot. Thanks. -Amos From chsrinfo@guetali.fr Mon Mar 1 09:44:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 13:44:54 +0400 Subject: [Zope] acquisition from parent within standard_html_header Message-ID: <010201be63c8$48369be0$147800a0@pc-pi0> Hello, I want to *add* content to the default standard_html_header in a subfolder that we call, say, SF. The standard_html_header in SF reads: But since an object acquire from itself, this did not work (infinite traceback, obviously because the stack is filled with recursive calls) So I wrote: And it works for object accessed within SF. But when I create sub-folder *under* SF, say SSF, I end up with an error. How could i write this? Regards, Jephte CLAIN Service Informatique CHSR From mj@atmm.nl Mon Mar 1 09:47:39 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 10:47:39 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> Message-ID: <4.1.19990301104630.00a604d0@lisp.atmm.nl> At 22:34 27/02/99 , Amos Latteier wrote: >Hi Everyone: > >As part of writing an article on Zope for WebReview, I've put together an >example FAQ Tool for Zope. If you've seen Guido's FAQ Wizard then you know >what the FAQ Tool is about. I assume this means Zope will also appear in the Application Server list of WebReview? (http://appservers.webreview.com). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:06:41 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:06:41 -0000 (GMT) Subject: [Zope] hiding tracebacks, and catching exceptions In-Reply-To: <613145F79272D211914B0020AFF6401907BA8F@GANDALF> Message-ID: On 26-Feb-99 Paul Everitt wrote: > > Julian wrote: >> On 25-Feb-99 Paul Everitt wrote: >> > >> > >> > >> >

    This page referenced a bad variable.

    >> > >> >> If I want to do this at the moment, I'm going to have to use >> an "external >> method"? > > The above would require writing a DTML tag. I meant, doing the equivalent (catching exceptions) not implementing the same syntax. --- Julian Morrison Programmer (Zereau Ltd) From mj@atmm.nl Mon Mar 1 10:11:27 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:11:27 +0100 Subject: [Zope] acquisition from parent within standard_html_header In-Reply-To: <010201be63c8$48369be0$147800a0@pc-pi0> Message-ID: <4.1.19990301110950.00a5e830@lisp.atmm.nl> At 10:44 01/03/99 , Service Informatique CHSR wrote: >Hello, > >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? > I got it working using the following code: This only works when this code is in a sub-Folder, and the standard_html_header can be found in the root folder. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:16:18 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:16:18 -0000 (GMT) Subject: [Zope] External / Internal Methods In-Reply-To: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: On 26-Feb-99 Michael Bernstein wrote: > "Christopher G. Petrilli" wrote: >> >> I vaguely recall this being discussed in the past, but I can't find it >> in my archives... >> >> Has anyone tried to make a comparable thing to an "External Method" but >> that is contained in the database itself? > > I believe that this was rejected by DC because of security issues. > Letting people store and run Python code directly in the database is > essentially the same as giving someone complete access to the system. Does python have anything equivalent to Perl's taint mode? Because if it does then this could be used. That and restricting allowable APIs from internal methods - again, if this is possible. --- Julian Morrison Programmer (Zereau Ltd) From chsrinfo@guetali.fr Mon Mar 1 10:38:49 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 14:38:49 +0400 Subject: [Zope] Re: acquisition from parent within standard_html_header Message-ID: <011f01be63cf$d2d977c0$147800a0@pc-pi0> Hello, Sorry for the waste of bandwith. I found the problem. But the story is interresting enough to be shared. See at the end of the message. >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? Well, I found that standard_html_header were called several times, and that's what caused the error. Let SF/standard_html_header be: --------8<-------- Hello! --------8<-------- Then, when I access http://mysite/SF, I get: --------8<-------- [pretty standard_html_header] Hello! Hello! This is the index_html document in SF. --------8<-------- Why is Hello! printed twice??? From SSF, I get Hello! printed 3 times... Regards, CLAIN Jephte Service Informatique CHSR. From chalaouxf@synbio.tpgnet.net Mon Mar 1 10:22:37 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 1 Mar 1999 11:22:37 +0100 Subject: [Zope] Find something in Zope mailing list Message-ID: <19990301104352489.AAB134@[195.10.9.163]> Hi, It becomes difficult to find something in Zope mailing list. Is there a find tool to look inside message aera? FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From mj@atmm.nl Mon Mar 1 10:43:12 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:43:12 +0100 Subject: [Zope] Find something in Zope mailing list In-Reply-To: <19990301104352489.AAB134@[195.10.9.163]> Message-ID: <4.1.19990301114206.00a7dd60@lisp.atmm.nl> At 11:22 01/03/99 , FR Chalaoux wrote: >Hi, > >It becomes difficult to find something in Zope mailing list. >Is there a find tool to look inside message aera? > >FR > EGroups archives the mailinglist. At http://www.egroups.com/lists/zope you can find a search interface, which quite often actually works. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Mon Mar 1 11:49:43 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 06:49:43 -0500 Subject: [Zope] Incoming mail, scheduling Message-ID: <613145F79272D211914B0020AFF6401907BAAA@GANDALF> Eric wrote: > Hmmmm. I'd prefer it if users could add tasks without > bothering me, but not > all of them can cope with cron. What's the stuff in the > lib/python/Scheduler directory? Unfortunately the word "comatose" springs to mind. :^( We need to get our concurrency story in better shape to allow multiple things happening simultaneously. --Paul From raver@box.dust.za.net Mon Mar 1 12:22:34 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 13:22:34 +0100 Subject: [Zope] Zope and Apache - again Message-ID: <19990301132234.A682@RaVER.duck.org> Hi all! I know the question has been up to debate earlier on the list, but still... I can't get Apache to send authorization headers on to Zope - even tough I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite and to let apache authenticate /cgi-bin/Zope/). I also grabbed the latest Zap release, but that one din't work (broken?). Also had a look at the zap.conf file and tried using some in my httpd.conf file, but I still had no luck. Now - here is my current config: Linux 2.0.35 Python 1.5.1 Zope 1.10.2 Apache 1.3.4 Something there that doesn't play well together? If not - what is wrong?? Appreciate all the help I can get! Sture Lygren From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 12:28:49 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 12:28:49 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> This may sound like a bit of an obvious suggestion, but it caught me out. Check the Directory directive for /cgi-bin and make sure that the ExecCGI option is set. It should look something like this: AllowOverride none Options ExecCGi Order allow,deny Allow from all Apache 1.3.4 by default doesn't have the ExecCGI option set. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 12:22 PM Subject: [Zope] Zope and Apache - again >Hi all! > >I know the question has been up to debate earlier on the list, but still... > >I can't get Apache to send authorization headers on to Zope - even tough >I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite >and to let apache authenticate /cgi-bin/Zope/). I also grabbed the >latest Zap release, but that one din't work (broken?). Also had a look at >the zap.conf file and tried using some in my httpd.conf file, but I still >had no luck. > >Now - here is my current config: > >Linux 2.0.35 >Python 1.5.1 >Zope 1.10.2 >Apache 1.3.4 > >Something there that doesn't play well together? > >If not - what is wrong?? > >Appreciate all the help I can get! > >Sture Lygren > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From bkc@murkworks.com Mon Mar 1 12:21:11 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 08:21:11 -0400 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> References: <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <199903011315.IAA25687@anvil.murkworks.com> On 1 Mar 99, at 0:32, Amos Latteier wrote: > >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this > >at home, running Win98, and I checked the source of the Product > >initialisation. When I twiddle with it a bit, swicth off the try/except > >errorhandling, I discovered that it is the product.dat file. Here is the > >traceback: > ... I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down. I'm running 1.10.2 on NT with ZServer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From mj@atmm.nl Mon Mar 1 14:08:20 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 15:08:20 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <199903011315.IAA25687@anvil.murkworks.com> References: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <4.1.19990301145717.00a06d60@lisp.atmm.nl> At 13:21 01/03/99 , Brad Clements wrote: >I don't get a traceback because I didn't "fiddle", the FAQ item shows up >in the control panel, but is not in the Add drop-down. > >I'm running 1.10.2 on NT with ZServer. The 'fiddling' involves disbling the exception handling of the product initialisation. Normally, a 'Levered' product, that has been distributed, has a product.dat file. This file contains the compressed pickled reprensentation of the product, which basicly consists of other Zope objects, with a Principia Factory. When Zope can't uncompress and depickle the product.dat file, you only get to see that the Product is installed, but it doesn't contain anything (which a Levered Product actually should), and nothing else happens or can happen. If you want to know more on how to use the 'Lever', read up at http://www.zope.org/Documentation/Guides/ZMG/ZMG-HTML/ZMG.html#pgfId-986684 (Zope Manager's Guide, Creating Zoipe Products). When you disable the exception handling in initializeProduct in Product.py, and restart Zope, it will exit with the traceback I reported. I have reported this to DC with the Collector, but I used Win98. You are using WinNT, which is interesting.. Something goes wrong with decompressing the product.dat file on win32 platforms (Amos says he tested it succesfully on Linux). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 14:14:22 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 14:14:22 -0000 (GMT) Subject: [Zope] inclusions from external methods Message-ID: What is the equivalent of from an external method? --- Julian Morrison Programmer (Zereau Ltd) From petrilli@amber.org Mon Mar 1 14:50:12 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 09:50:12 -0500 Subject: [Zope] External / Internal Methods In-Reply-To: ; from julian@zereau.net on Mon, Mar 01, 1999 at 10:16:18AM -0000 References: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: <19990301095012.53908@amber.org> On Mon, Mar 01, 1999 at 10:16:18AM -0000, julian@zereau.net wrote: > > On 26-Feb-99 Michael Bernstein wrote: > > "Christopher G. Petrilli" wrote: > >> > >> I vaguely recall this being discussed in the past, but I can't find it > >> in my archives... > >> > >> Has anyone tried to make a comparable thing to an "External Method" but > >> that is contained in the database itself? > > > > I believe that this was rejected by DC because of security issues. > > Letting people store and run Python code directly in the database is > > essentially the same as giving someone complete access to the system. > > Does python have anything equivalent to Perl's taint mode? Because if it does > then this could be used. That and restricting allowable APIs from internal > methods - again, if this is possible. > I don't want to get into a language war, but as someone who lives and breathes security, taint mode is a joke. Python's rexec module would be great (as would Bastion), but this is going to require a much higher level of ZopeZen to implement than I currently have. Yes I know my proposal was wrought with huge security problems, but regardless it is valuable to a some people in the near term (such as those of us on the STarship). BTW, requiring write access to the file system is only trivially more secure. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Mon Mar 1 15:54:04 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 16:54:04 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk>; from Phil Harris on Mon, Mar 01, 1999 at 12:28:49PM -0000 References: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> Message-ID: <19990301165404.A981@RaVER.duck.org> On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: > This may sound like a bit of an obvious suggestion, but it caught me out. > > Check the Directory directive for /cgi-bin and make sure that > the ExecCGI option is set. > > It should look something like this: > > > AllowOverride none > Options ExecCGi > Order allow,deny > Allow from all > > > Apache 1.3.4 by default doesn't have the ExecCGI option set. > > HTH > > Phil > ----- Original Message ----- > From: > To: > Sent: Monday, March 01, 1999 12:22 PM > Subject: [Zope] Zope and Apache - again > > Unfortunately the ExecCGI option didn't help much. Thanks anyways. I'm still stuck at the point where I get 'Authorization failed'. I've checked and double checked my Zope/access file and I use correct username and passwd. The filepermissions should also be set correct (according to the instructions given in the INSTALL.txt file). Problem is, as far as I can tell, connected to the way the rewrite module does the rewrite.... Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the authorization header actually works? If it works - is there someone that can say exactly how apache should be configured and compiled to get it working (best of all also put in a working httpd.conf also)? And again.....Appreciate all teh help I can get! From Paul@digicool.com Mon Mar 1 16:03:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 11:03:24 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> > If it works - is there someone that can say exactly how > apache should be > configured and compiled to get it working (best of all also > put in a working > httpd.conf also)? We'd prefer that you start with the Zap distribution, as it removes a whole bunch of variables. Can you tell us what was the error with using Zap? --Paul From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 16:01:14 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 16:01:14 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <00cc01be63fc$bbf4e5d0$5c773fc1@ml.uwcm.ac.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Well the WEBSERVER.txt instructions work for me. Find attached a working httpd.conf. Also attahced is a module listing from my 'httpd'. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 3:54 PM Subject: Re: [Zope] Zope and Apache - again >On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: >> This may sound like a bit of an obvious suggestion, but it caught me out. >> >> Check the Directory directive for /cgi-bin and make sure that >> the ExecCGI option is set. >> >> It should look something like this: >> >> >> AllowOverride none >> Options ExecCGi >> Order allow,deny >> Allow from all >> >> >> Apache 1.3.4 by default doesn't have the ExecCGI option set. >> >> HTH >> >> Phil >> ----- Original Message ----- >> From: >> To: >> Sent: Monday, March 01, 1999 12:22 PM >> Subject: [Zope] Zope and Apache - again >> >> > >Unfortunately the ExecCGI option didn't help much. Thanks anyways. > >I'm still stuck at the >point where I get 'Authorization failed'. I've checked and double checked my >Zope/access file and I use correct username and passwd. The filepermissions >should also be set correct (according to the instructions given in the >INSTALL.txt file). Problem is, as far as I can tell, connected to the way >the rewrite module does the rewrite.... > >Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the >authorization header actually works? > >If it works - is there someone that can say exactly how apache should be >configured and compiled to get it working (best of all also put in a working >httpd.conf also)? > >And again.....Appreciate all teh help I can get! > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.list" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.list" Compiled-in modules:=0A= http_core.c=0A= mod_mmap_static.c=0A= mod_env.c=0A= mod_log_config.c=0A= mod_log_agent.c=0A= mod_log_referer.c=0A= mod_mime_magic.c=0A= mod_mime.c=0A= mod_negotiation.c=0A= mod_status.c=0A= mod_info.c=0A= mod_include.c=0A= mod_autoindex.c=0A= mod_dir.c=0A= mod_cgi.c=0A= mod_asis.c=0A= mod_imap.c=0A= mod_actions.c=0A= mod_speling.c=0A= mod_userdir.c=0A= mod_proxy.c=0A= mod_alias.c=0A= mod_rewrite.c=0A= mod_access.c=0A= mod_auth.c=0A= mod_auth_anon.c=0A= mod_auth_dbm.c=0A= mod_auth_db.c=0A= mod_digest.c=0A= mod_cern_meta.c=0A= mod_expires.c=0A= mod_headers.c=0A= mod_usertrack.c=0A= mod_example.c=0A= mod_unique_id.c=0A= mod_so.c=0A= mod_setenvif.c=0A= mod_php3.c=0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.conf" ##=0A= ## httpd.conf -- Apache HTTP server configuration file=0A= ##=0A= =0A= #=0A= # Based upon the NCSA server configuration files originally by Rob = McCool.=0A= #=0A= # This is the main Apache server configuration file. It contains the=0A= # configuration directives that give the server its instructions.=0A= # See for detailed information about=0A= # the directives.=0A= #=0A= # Do NOT simply read the instructions in here without understanding=0A= # what they do. They're here only as hints or reminders. If you are = unsure=0A= # consult the online docs. You have been warned. =0A= #=0A= # After this file is processed, the server will look for and process=0A= # /www/conf/srm.conf and then /www/conf/access.conf=0A= # unless you have overridden these with ResourceConfig and/or=0A= # AccessConfig directives here.=0A= #=0A= # The configuration directives are grouped into three basic sections:=0A= # 1. Directives that control the operation of the Apache server process = as a=0A= # whole (the 'global environment').=0A= # 2. Directives that define the parameters of the 'main' or 'default' = server,=0A= # which responds to requests that aren't handled by a virtual host.=0A= # These directives also provide default values for the settings=0A= # of all virtual hosts.=0A= # 3. Settings for virtual hosts, which allow Web requests to be sent to=0A= # different IP addresses or hostnames and have them handled by the=0A= # same Apache server process.=0A= #=0A= # Configuration and logfile names: If the filenames you specify for many=0A= # of the server's control files begin with "/" (or "drive:/" for Win32), = the=0A= # server will use that explicit path. If the filenames do *not* begin=0A= # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"=0A= # with ServerRoot set to "/usr/local/apache" will be interpreted by the=0A= # server as "/usr/local/apache/logs/foo.log".=0A= #=0A= =0A= ### Section 1: Global Environment=0A= #=0A= # The directives in this section affect the overall operation of Apache,=0A= # such as the number of concurrent requests it can handle or where it=0A= # can find its configuration files.=0A= #=0A= =0A= #=0A= # ServerType is either inetd, or standalone. Inetd mode is only = supported on=0A= # Unix platforms.=0A= #=0A= ServerType standalone=0A= =0A= #=0A= # ServerRoot: The top of the directory tree under which the server's=0A= # configuration, error, and log files are kept.=0A= #=0A= # NOTE! If you intend to place this on an NFS (or otherwise network)=0A= # mounted filesystem then please read the LockFile documentation=0A= # (available at );=0A= # you will save yourself a lot of trouble.=0A= #=0A= # Do NOT add a slash at the end of the directory path.=0A= #=0A= ServerRoot "/www"=0A= =0A= #=0A= # The LockFile directive sets the path to the lockfile used when Apache=0A= # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or=0A= # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at=0A= # its default value. The main reason for changing it is if the logs=0A= # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL=0A= # DISK. The PID of the main server process is automatically appended to=0A= # the filename. =0A= #=0A= #LockFile /www/logs/httpd.lock=0A= =0A= #=0A= # PidFile: The file in which the server should record its process=0A= # identification number when it starts.=0A= #=0A= PidFile /www/logs/httpd.pid=0A= =0A= #=0A= # ScoreBoardFile: File used to store internal server process information.=0A= # Not all architectures require this. But if yours does (you'll know = because=0A= # this file will be created when you run Apache) then you *must* ensure = that=0A= # no two invocations of Apache share the same scoreboard file.=0A= #=0A= ScoreBoardFile /www/logs/httpd.scoreboard=0A= =0A= #=0A= # In the standard configuration, the server will process httpd.conf,=0A= # srm.conf, and access.conf in that order. The latter two files are=0A= # now distributed empty, as it is recommended that all directives=0A= # be kept in a single file for simplicity. The commented-out values=0A= # below are the built-in defaults. You can have the server ignore=0A= # these files altogether by using "/dev/null" (for Unix) or=0A= # "nul" (for Win32) for the arguments to the directives.=0A= #=0A= #ResourceConfig conf/srm.conf=0A= #AccessConfig conf/access.conf=0A= =0A= #=0A= # Timeout: The number of seconds before receives and sends time out.=0A= #=0A= Timeout 300=0A= =0A= #=0A= # KeepAlive: Whether or not to allow persistent connections (more than=0A= # one request per connection). Set to "Off" to deactivate.=0A= #=0A= KeepAlive On=0A= =0A= #=0A= # MaxKeepAliveRequests: The maximum number of requests to allow=0A= # during a persistent connection. Set to 0 to allow an unlimited amount.=0A= # We recommend you leave this number high, for maximum performance.=0A= #=0A= MaxKeepAliveRequests 100=0A= =0A= #=0A= # KeepAliveTimeout: Number of seconds to wait for the next request from = the=0A= # same client on the same connection.=0A= #=0A= KeepAliveTimeout 15=0A= =0A= #=0A= # Server-pool size regulation. Rather than making you guess how many=0A= # server processes you need, Apache dynamically adapts to the load it=0A= # sees --- that is, it tries to maintain enough server processes to=0A= # handle the current load, plus a few spare servers to handle transient=0A= # load spikes (e.g., multiple simultaneous requests from a single=0A= # Netscape browser).=0A= #=0A= # It does this by periodically checking how many servers are waiting=0A= # for a request. If there are fewer than MinSpareServers, it creates=0A= # a new spare. If there are more than MaxSpareServers, some of the=0A= # spares die off. The default values in httpd.conf-dist are probably OK=0A= # for most sites.=0A= #=0A= MinSpareServers 5=0A= MaxSpareServers 10=0A= =0A= #=0A= # Number of servers to start initially --- should be a reasonable = ballpark=0A= # figure.=0A= #=0A= StartServers 5=0A= =0A= #=0A= # Limit on total number of servers running, i.e., limit on the number=0A= # of clients who can simultaneously connect --- if this limit is ever=0A= # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.=0A= # It is intended mainly as a brake to keep a runaway server from taking=0A= # the system with it as it spirals down...=0A= #=0A= MaxClients 150=0A= =0A= #=0A= # MaxRequestsPerChild: the number of requests each child process is=0A= # allowed to process before the child dies. The child will exit so=0A= # as to avoid problems after prolonged use when Apache (and maybe the=0A= # libraries it uses) leak memory or other resources. On most systems, = this=0A= # isn't really needed, but a few (such as Solaris) do have notable leaks=0A= # in the libraries.=0A= #=0A= MaxRequestsPerChild 30=0A= =0A= #=0A= # Listen: Allows you to bind Apache to specific IP addresses and/or=0A= # ports, in addition to the default. See also the =0A= # directive.=0A= #=0A= #Listen 3000=0A= #Listen 12.34.56.78:80=0A= =0A= #=0A= # BindAddress: You can support virtual hosts with this option. This = directive=0A= # is used to tell the server which IP address to listen to. It can either=0A= # contain "*", an IP address, or a fully qualified Internet domain name.=0A= # See also the and Listen directives.=0A= #=0A= #BindAddress *=0A= =0A= #=0A= # Dynamic Shared Object (DSO) Support=0A= #=0A= # To be able to use the functionality of a module which was built as a = DSO you=0A= # have to place corresponding `LoadModule' lines at this location so the=0A= # directives contained in it are actually available _before_ they are = used.=0A= # Please read the file README.DSO in the Apache 1.3 distribution for more=0A= # details about the DSO mechanism and run `httpd -l' for the list of = already=0A= # built-in (statically linked and thus always available) modules in your = httpd=0A= # binary.=0A= #=0A= # Note: The order is which modules are loaded is important. Don't change=0A= # the order below without expert advice.=0A= #=0A= # Example:=0A= # LoadModule foo_module libexec/mod_foo.so=0A= =0A= #=0A= # ExtendedStatus controls whether Apache will generate "full" status=0A= # information (ExtendedStatus On) or just basic information = (ExtendedStatus=0A= # Off) when the "server-status" handler is called. The default is Off.=0A= #=0A= #ExtendedStatus On=0A= =0A= ### Section 2: 'Main' server configuration=0A= #=0A= # The directives in this section set up the values used by the 'main'=0A= # server, which responds to any requests that aren't handled by a=0A= # definition. These values also provide defaults for=0A= # any containers you may define later in the file.=0A= #=0A= # All of these directives may appear inside containers,=0A= # in which case these default settings will be overridden for the=0A= # virtual host being defined.=0A= #=0A= =0A= #=0A= # If your ServerType directive (set earlier in the 'Global Environment'=0A= # section) is set to "inetd", the next few directives don't have any=0A= # effect since their settings are defined by the inetd configuration.=0A= # Skip ahead to the ServerAdmin directive.=0A= #=0A= =0A= #=0A= # Port: The port to which the standalone server listens. For=0A= # ports < 1023, you will need httpd to be run as root initially.=0A= #=0A= Port 80=0A= =0A= #=0A= # If you wish httpd to run as a different user or group, you must run=0A= # httpd as root initially and it will switch. =0A= #=0A= # User/Group: The name (or #number) of the user/group to run httpd as.=0A= # . On SCO (ODT 3) use "User nouser" and "Group nogroup".=0A= # . On HPUX you may not be able to use shared memory as nobody, and the=0A= # suggested workaround is to create a user www and use that user.=0A= # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)=0A= # when the value of (unsigned)Group is above 60000; =0A= # don't use Group nogroup on these systems!=0A= #=0A= User nobody=0A= Group nogroup=0A= =0A= #=0A= # ServerAdmin: Your address, where problems with the server should be=0A= # e-mailed. This address appears on some server-generated pages, such=0A= # as error documents.=0A= #=0A= ServerAdmin root@d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # ServerName allows you to set a host name which is sent back to clients = for=0A= # your server if it's different than the one the program would get = (i.e., use=0A= # "www" instead of the host's real name).=0A= #=0A= # Note: You cannot just invent host names and hope they work. The name = you =0A= # define here must be a valid DNS name for your host. If you don't = understand=0A= # this, ask your network administrator.=0A= # If your host doesn't have a registered DNS name, enter its IP address = here.=0A= # You will have to access it by its address (e.g., http://123.45.67.89/)=0A= # anyway, and this will make redirections work in a sensible way.=0A= #=0A= ServerName d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # DocumentRoot: The directory out of which you will serve your=0A= # documents. By default, all requests are taken from this directory, but=0A= # symbolic links and aliases may be used to point to other locations.=0A= #=0A= DocumentRoot "/www/htdocs"=0A= =0A= #=0A= # Each directory to which Apache has access, can be configured with = respect=0A= # to which services and features are allowed and/or disabled in that=0A= # directory (and its subdirectories). =0A= #=0A= # First, we configure the "default" to be a very restrictive set of =0A= # permissions. =0A= #=0A= =0A= Options FollowSymLinks=0A= AllowOverride None=0A= =0A= =0A= #=0A= # Note that from this point forward you must specifically allow=0A= # particular features to be enabled - so if something's not working as=0A= # you might expect, make sure that you have specifically enabled it=0A= # below.=0A= #=0A= =0A= #=0A= # This should be changed to whatever you set DocumentRoot to.=0A= #=0A= =0A= =0A= #=0A= # This may also be "None", "All", or any combination of "Indexes",=0A= # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".=0A= #=0A= # Note that "MultiViews" must be named *explicitly* --- "Options All"=0A= # doesn't give it to you.=0A= #=0A= Options Indexes FollowSymLinks=0A= =0A= #=0A= # This controls which options the .htaccess files in directories can=0A= # override. Can also be "All", or any combination of "Options", = "FileInfo", =0A= # "AuthConfig", and "Limit"=0A= #=0A= AllowOverride None=0A= =0A= #=0A= # Controls who can get stuff from this server.=0A= #=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # UserDir: The name of the directory which is appended onto a user's home=0A= # directory if a ~user request is received.=0A= #=0A= UserDir public_html=0A= =0A= #=0A= # Control access to UserDir directories. The following is an example=0A= # for a site where these directories are restricted to read-only.=0A= #=0A= #=0A= # AllowOverride FileInfo AuthConfig Limit=0A= # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec=0A= # =0A= # Order allow,deny=0A= # Allow from all=0A= # =0A= # =0A= # Order deny,allow=0A= # Deny from all=0A= # =0A= #=0A= =0A= #=0A= # DirectoryIndex: Name of the file or files to use as a pre-written HTML=0A= # directory index. Separate multiple entries with spaces.=0A= #=0A= DirectoryIndex index.html=0A= =0A= #=0A= # AccessFileName: The name of the file to look for in each directory=0A= # for access control information.=0A= #=0A= AccessFileName .htaccess=0A= =0A= #=0A= # The following lines prevent .htaccess files from being viewed by=0A= # Web clients. Since .htaccess files often contain authorization=0A= # information, access is disallowed for security reasons. Comment=0A= # these lines out if you want Web visitors to see the contents of=0A= # .htaccess files. If you change the AccessFileName directive above,=0A= # be sure to make the corresponding changes here.=0A= #=0A= =0A= Order allow,deny=0A= Deny from all=0A= =0A= =0A= #=0A= # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with = each=0A= # document that was negotiated on the basis of content. This asks proxy=0A= # servers not to cache the document. Uncommenting the following line = disables=0A= # this behavior, and proxies will be allowed to cache the documents.=0A= #=0A= #CacheNegotiatedDocs=0A= =0A= #=0A= # UseCanonicalName: (new for 1.3) With this setting turned on, whenever=0A= # Apache needs to construct a self-referencing URL (a URL that refers = back=0A= # to the server the response is coming from) it will use ServerName and=0A= # Port to form a "canonical" name. With this setting off, Apache will=0A= # use the hostname:port that the client supplied, when possible. This=0A= # also affects SERVER_NAME and SERVER_PORT in CGI scripts.=0A= #=0A= UseCanonicalName On=0A= =0A= #=0A= # TypesConfig describes where the mime.types file (or equivalent) is=0A= # to be found.=0A= #=0A= TypesConfig /www/conf/mime.types=0A= =0A= #=0A= # DefaultType is the default MIME type the server will use for a document=0A= # if it cannot otherwise determine one, such as from filename extensions.=0A= # If your server contains mostly text or HTML documents, "text/plain" is=0A= # a good value. If most of your content is binary, such as applications=0A= # or images, you may want to use "application/octet-stream" instead to=0A= # keep browsers from trying to display binary files as though they are=0A= # text.=0A= #=0A= DefaultType text/plain=0A= =0A= #=0A= # The mod_mime_magic module allows the server to use various hints from = the=0A= # contents of the file itself to determine its type. The MIMEMagicFile=0A= # directive tells the module where the hint definitions are located.=0A= # mod_mime_magic is not part of the default server (you have to add=0A= # it yourself with a LoadModule [see the DSO paragraph in the 'Global=0A= # Environment' section], or recompile the server and include = mod_mime_magic=0A= # as part of the configuration), so it's enclosed in an = container.=0A= # This means that the MIMEMagicFile directive will only be processed if = the=0A= # module is part of the server.=0A= #=0A= =0A= MIMEMagicFile /www/conf/magic=0A= =0A= =0A= #=0A= # HostnameLookups: Log the names of clients or just their IP addresses=0A= # e.g., www.apache.org (on) or 204.62.129.132 (off).=0A= # The default is off because it'd be overall better for the net if people=0A= # had to knowingly turn this feature on, since enabling it means that=0A= # each client request will result in AT LEAST one lookup request to the=0A= # nameserver.=0A= #=0A= HostnameLookups Off=0A= =0A= #=0A= # ErrorLog: The location of the error log file.=0A= # If you do not specify an ErrorLog directive within a =0A= # container, error messages relating to that virtual host will be=0A= # logged here. If you *do* define an error logfile for a =0A= # container, that host's errors will be logged there and not here.=0A= #=0A= ErrorLog /www/logs/error_log=0A= =0A= #=0A= # LogLevel: Control the number of messages logged to the error_log.=0A= # Possible values include: debug, info, notice, warn, error, crit,=0A= # alert, emerg.=0A= #=0A= LogLevel warn=0A= =0A= #=0A= # The following directives define some format nicknames for use with=0A= # a CustomLog directive (see below).=0A= #=0A= LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" = combined=0A= LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A= LogFormat "%{Referer}i -> %U" referer=0A= LogFormat "%{User-agent}i" agent=0A= =0A= #=0A= # The location and format of the access logfile (Common Logfile Format).=0A= # If you do not define any access logfiles within a =0A= # container, they will be logged here. Contrariwise, if you *do*=0A= # define per- access logfiles, transactions will be=0A= # logged therein and *not* in this file.=0A= #=0A= CustomLog /www/logs/access_log common=0A= =0A= #=0A= # If you would like to have agent and referer logfiles, uncomment the=0A= # following directives.=0A= #=0A= CustomLog /www/logs/referer_log referer=0A= CustomLog /www/logs/agent_log agent=0A= =0A= #=0A= # If you prefer a single logfile with access, agent, and referer = information=0A= # (Combined Logfile Format) you can use the following directive.=0A= #=0A= CustomLog /www/logs/access_log combined=0A= =0A= #=0A= # Optionally add a line containing the server version and virtual host=0A= # name to server-generated pages (error documents, FTP directory = listings,=0A= # mod_status and mod_info output etc., but not CGI generated documents).=0A= # Set to "EMail" to also include a mailto: link to the ServerAdmin.=0A= # Set to one of: On | Off | EMail=0A= #=0A= ServerSignature On=0A= =0A= #=0A= # Aliases: Add here as many aliases as you need (with no limit). The = format is =0A= # Alias fakename realname=0A= #=0A= # Note that if you include a trailing / on fakename then the server will=0A= # require it to be present in the URL. So "/icons" isn't aliased in this=0A= # example, only "/icons/"..=0A= #=0A= Alias /icons/ "/www/icons/"=0A= =0A= =0A= Options Indexes MultiViews=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # ScriptAlias: This controls which directories contain server scripts.=0A= # ScriptAliases are essentially the same as Aliases, except that=0A= # documents in the realname directory are treated as applications and=0A= # run by the server when requested rather than as documents sent to the = client.=0A= # The same rules about trailing "/" apply to ScriptAlias directives as to=0A= # Alias.=0A= #=0A= ScriptAlias /cgi-bin/ "/www/cgi-bin/"=0A= ScriptAlias /Zope/ "/www/cgi-bin/Zope/"=0A= =0A= #=0A= # "/www/cgi-bin" should be changed to whatever your ScriptAliased=0A= # CGI directory exists, if you have that configured.=0A= #=0A= =0A= AllowOverride none=0A= Options ExecCGI=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # Redirect allows you to tell clients about documents which used to = exist in=0A= # your server's namespace, but do not anymore. This allows you to tell = the=0A= # clients where to look for the relocated document.=0A= # Format: Redirect old-URI new-URL=0A= #=0A= =0A= #=0A= # Directives controlling the display of server-generated directory = listings.=0A= #=0A= =0A= #=0A= # FancyIndexing is whether you want fancy directory indexing or standard=0A= #=0A= IndexOptions FancyIndexing=0A= =0A= #=0A= # AddIcon* directives tell the server which icon to show for different=0A= # files or filename extensions. These are only displayed for=0A= # FancyIndexed directories.=0A= #=0A= AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A= =0A= AddIconByType (TXT,/icons/text.gif) text/*=0A= AddIconByType (IMG,/icons/image2.gif) image/*=0A= AddIconByType (SND,/icons/sound2.gif) audio/*=0A= AddIconByType (VID,/icons/movie.gif) video/*=0A= =0A= AddIcon /icons/binary.gif .bin .exe=0A= AddIcon /icons/binhex.gif .hqx=0A= AddIcon /icons/tar.gif .tar=0A= AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A= AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip=0A= AddIcon /icons/a.gif .ps .ai .eps=0A= AddIcon /icons/layout.gif .html .shtml .htm .pdf=0A= AddIcon /icons/text.gif .txt=0A= AddIcon /icons/c.gif .c=0A= AddIcon /icons/p.gif .pl .py=0A= AddIcon /icons/f.gif .for=0A= AddIcon /icons/dvi.gif .dvi=0A= AddIcon /icons/uuencoded.gif .uu=0A= AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A= AddIcon /icons/tex.gif .tex=0A= AddIcon /icons/bomb.gif core=0A= =0A= AddIcon /icons/back.gif ..=0A= AddIcon /icons/hand.right.gif README=0A= AddIcon /icons/folder.gif ^^DIRECTORY^^=0A= AddIcon /icons/blank.gif ^^BLANKICON^^=0A= =0A= #=0A= # DefaultIcon is which icon to show for files which do not have an icon=0A= # explicitly set.=0A= #=0A= DefaultIcon /icons/unknown.gif=0A= =0A= #=0A= # AddDescription allows you to place a short description after a file in=0A= # server-generated indexes. These are only displayed for FancyIndexed=0A= # directories.=0A= # Format: AddDescription "description" filename=0A= #=0A= #AddDescription "GZIP compressed document" .gz=0A= #AddDescription "tar archive" .tar=0A= #AddDescription "GZIP compressed tar archive" .tgz=0A= =0A= #=0A= # ReadmeName is the name of the README file the server will look for by=0A= # default, and append to directory listings.=0A= #=0A= # HeaderName is the name of a file which should be prepended to=0A= # directory indexes. =0A= #=0A= # The server will first look for name.html and include it if found.=0A= # If name.html doesn't exist, the server will then look for name.txt=0A= # and include it as plaintext if found.=0A= #=0A= ReadmeName README=0A= HeaderName HEADER=0A= =0A= #=0A= # IndexIgnore is a set of filenames which directory indexing should = ignore=0A= # and not include in the listing. Shell-style wildcarding is permitted.=0A= #=0A= IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t=0A= =0A= #=0A= # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) = uncompress=0A= # information on the fly. Note: Not all browsers support this.=0A= # Despite the name similarity, the following Add* directives have nothing=0A= # to do with the FancyIndexing customization directives above.=0A= #=0A= AddEncoding x-compress Z=0A= AddEncoding x-gzip gz=0A= =0A= #=0A= # AddLanguage allows you to specify the language of a document. You can=0A= # then use content negotiation to give a browser a file in a language=0A= # it can understand. Note that the suffix does not have to be the same=0A= # as the language keyword --- those with documents in Polish (whose=0A= # net-standard language code is pl) may wish to use "AddLanguage pl .po" =0A= # to avoid the ambiguity with the common suffix for perl scripts.=0A= #=0A= AddLanguage en .en=0A= AddLanguage fr .fr=0A= AddLanguage de .de=0A= AddLanguage da .da=0A= AddLanguage el .el=0A= AddLanguage it .it=0A= =0A= #=0A= # LanguagePriority allows you to give precedence to some languages=0A= # in case of a tie during content negotiation.=0A= # Just list the languages in decreasing order of preference.=0A= #=0A= LanguagePriority en fr de=0A= =0A= #=0A= # AddType allows you to tweak mime.types without actually editing it, or = to=0A= # make certain files to be certain types.=0A= #=0A= # For example, the PHP3 module (not part of the Apache distribution)=0A= # will typically use:=0A= #=0A= AddType application/x-httpd-php3 .phtml .php3=0A= AddType application/x-httpd-php3-source .phps=0A= =0A= #=0A= # AddHandler allows you to map certain file extensions to "handlers",=0A= # actions unrelated to filetype. These can be either built into the = server=0A= # or added with the Action command (see below)=0A= #=0A= # If you want to use server side includes, or CGI outside=0A= # ScriptAliased directories, uncomment the following lines.=0A= #=0A= # To use CGI scripts:=0A= #=0A= AddHandler cgi-script .cgi=0A= AddHandler cgi-script .pl=0A= =0A= #=0A= # To use server-parsed HTML files=0A= #=0A= #AddType text/html .shtml=0A= #AddHandler server-parsed .shtml=0A= =0A= #=0A= # Uncomment the following line to enable Apache's send-asis HTTP file=0A= # feature=0A= #=0A= #AddHandler send-as-is asis=0A= =0A= #=0A= # If you wish to use server-parsed imagemap files, use=0A= #=0A= #AddHandler imap-file map=0A= =0A= #=0A= # To enable type maps, you might want to use=0A= #=0A= #AddHandler type-map var=0A= =0A= #=0A= # Action lets you define media types that will execute a script whenever=0A= # a matching file is called. This eliminates the need for repeated URL=0A= # pathnames for oft-used CGI file processors.=0A= # Format: Action media/type /cgi-script/location=0A= # Format: Action handler-name /cgi-script/location=0A= #=0A= =0A= #=0A= # MetaDir: specifies the name of the directory in which Apache can find=0A= # meta information files. These files contain additional HTTP headers=0A= # to include when sending the document=0A= #=0A= #MetaDir .web=0A= =0A= #=0A= # MetaSuffix: specifies the file name suffix for the file containing the=0A= # meta information.=0A= #=0A= #MetaSuffix .meta=0A= =0A= #=0A= # Customizable error response (Apache style)=0A= # these come in three flavors=0A= #=0A= # 1) plain text=0A= #ErrorDocument 500 "The server made a boo boo.=0A= # n.b. the (") marks it as text, it does not get output=0A= #=0A= # 2) local redirects=0A= #ErrorDocument 404 /missing.html=0A= # to redirect to local URL /missing.html=0A= #ErrorDocument 404 /cgi-bin/missing_handler.pl=0A= # N.B.: You can redirect to a script or a document using = server-side-includes.=0A= #=0A= # 3) external redirects=0A= #ErrorDocument 402 http://some.other_server.com/subscription_info.html=0A= # N.B.: Many of the environment variables associated with the original=0A= # request will *not* be available to such a script.=0A= =0A= #=0A= # The following directives modify normal HTTP response behavior.=0A= # The first directive disables keepalive for Netscape 2.x and browsers = that=0A= # spoof it. There are known problems with these browser implementations.=0A= # The second directive is for Microsoft Internet Explorer 4.0b2=0A= # which has a broken HTTP/1.1 implementation and does not properly=0A= # support keepalive when it is used on 301 or 302 (redirect) responses.=0A= #=0A= BrowserMatch "Mozilla/2" nokeepalive=0A= BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0=0A= =0A= #=0A= # The following directive disables HTTP/1.1 responses to browsers which=0A= # are in violation of the HTTP/1.0 spec by not being able to grok a=0A= # basic 1.1 response.=0A= #=0A= BrowserMatch "RealPlayer 4\.0" force-response-1.0=0A= BrowserMatch "Java/1\.0" force-response-1.0=0A= BrowserMatch "JDK/1\.0" force-response-1.0=0A= =0A= #=0A= # Allow server status reports, with the URL of = http://servername/server-status=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-status=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Allow remote server configuration reports, with the URL of=0A= # http://servername/server-info (requires that mod_info.c be loaded).=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-info=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # There have been reports of people trying to abuse an old bug from = pre-1.1=0A= # days. This bug involved a CGI script distributed as a part of Apache.=0A= # By uncommenting these lines you can redirect these attacks to a = logging =0A= # script on phf.apache.org. Or, you can record them yourself, using the = script=0A= # support/phf_abuse_log.cgi.=0A= #=0A= #=0A= # Deny from all=0A= # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi=0A= #=0A= =0A= #=0A= # Proxy Server directives. Uncomment the following lines to=0A= # enable the proxy server:=0A= #=0A= #=0A= #ProxyRequests On=0A= #=0A= #=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Enable/disable the handling of HTTP/1.1 "Via:" headers.=0A= # ("Full" adds the server version; "Block" removes all outgoing Via: = headers)=0A= # Set to one of: Off | On | Full | Block=0A= #=0A= #ProxyVia On=0A= =0A= #=0A= # To enable the cache as well, edit and uncomment the following lines:=0A= # (no cacheing without CacheRoot)=0A= #=0A= #CacheRoot "/www/proxy"=0A= #CacheSize 5=0A= #CacheGcInterval 4=0A= #CacheMaxExpire 24=0A= #CacheLastModifiedFactor 0.1=0A= #CacheDefaultExpire 1=0A= #NoCache a_domain.com another_domain.edu joes.garage_sale.com=0A= =0A= #=0A= # End of proxy directives.=0A= =0A= ### Section 3: Virtual Hosts=0A= #=0A= # VirtualHost: If you want to maintain multiple domains/hostnames on your=0A= # machine you can setup VirtualHost containers for them.=0A= # Please see the documentation at = =0A= # for further details before you try to setup virtual hosts.=0A= # You may use the command line option '-S' to verify your virtual host=0A= # configuration.=0A= =0A= #=0A= # If you want to use name-based virtual hosts you need to define at=0A= # least one IP address (and port number) for them.=0A= #=0A= #NameVirtualHost 12.34.56.78:80=0A= NameVirtualHost 193.63.119.119=0A= =0A= #=0A= # VirtualHost example:=0A= # Almost any Apache directive may go into a VirtualHost container.=0A= #=0A= #=0A= # ServerAdmin webmaster@host.some_domain.com=0A= # DocumentRoot /www/docs/host.some_domain.com=0A= # ServerName host.some_domain.com=0A= # ErrorLog logs/host.some_domain.com-error_log=0A= # CustomLog logs/host.some_domain.com-access_log common=0A= #=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName d033.ml.uwcm.ac.uk=0A= ErrorLog logs/d033.ml.uwcm.ac.uk-error_log=0A= CustomLog logs/d033.ml.uwcm.ac.uk-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/z/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName z.realdns.com=0A= ErrorLog logs/z.realdns.com-error_log=0A= CustomLog logs/z.realdns.com-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= CheckSpelling on=0A= =0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410-- From michel@digicool.com Mon Mar 1 16:17:31 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:17:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 7:23 AM > To: zope@zope.org > Subject: [Zope] Zope and Apache - again > Now - here is my current config: > > Linux 2.0.35 > Python 1.5.1 > Zope 1.10.2 > Apache 1.3.4 > > Something there that doesn't play well together? > The only difference between your setup and the setup used to compile Zap is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there might be an incompatability with Zap on 5.1. Has anyone on the list gotten Zap working on this platform? Also, please send us the details of the error you get with Zap. When you say it's broken, how does it break? Does the starzap script fail to run? Does it say 'Apache did NOT start sucessfuly' and then spit up the last 10 lines of your error log? If so, what are those lines? -Michel > > Sture Lygren > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Wiebe Kunst" Can somebody please help me out. I've read through most of the postings to the list, but I'm still in the dark. I have defined a DTML documentproperty of type lines. Each line represents the ID of another DTML document. When using:
    I get the ID's. I tried all kinds of variations on this code (including the ones suggested by Amos) but are still unable to turn those ID's into rendered objects. Regards Wiebe Kunst From ShawH@STHS.org Mon Mar 1 16:31:06 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Mon, 1 Mar 1999 10:31:06 -0600 Subject: [Zope] ZMySQLDA installation Message-ID: You need to install python... Or adjust the Makefile.pre.in to look at Zope's internal python, instead of trying to find the external one. Actually, from a quick runthrough of the Makefile.pre.in, you should set the enviroment variable PYTHON to point to the local python binary; I mean the one internal to zope, like PYTHON=/home/zope/bin/python export PYTHON (in bash) or setenv PYTHON /home/zope/bin/python (in tcsh) ... (and no I am not quite certain on the syntax here). The 'make -f Makefile.pre.in boot' appears to call $(PYTHON) with parameters that cause it to return the proper location for the python configuration files, etc. Good luck. > ---------- > From: Timothy Grant[SMTP:tjg@avalongroup.net] > Sent: Sunday, February 28, 1999 5:39 PM > To: Zope Folk > Subject: [Zope] ZMySQLDA installation > > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: > > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it > right. > I then downloaded the ZMySQLDA from the Zope site. > > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 > > Any help would be greatly appreciated. > > -- > Stand Fast, > tjg. > =================================================== > Timothy Grant > VP Technology/CTO > Avalon Technology Group > tjg@avalongroup.net > www.avalongroup.net > (503) 246-3630 voice > (503) 246-3124 fax > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Mon Mar 1 16:57:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:57:55 -0500 Subject: [Zope] NotMail 0.0.5 alpha release Message-ID: <613145F79272D211914B0020AFF6401907BAB1@GANDALF> Greetings Zopesters, I have been working on a little pet Zope Product project for months now. Getting hired at digicool put the brakes on it a little but I have finally gotten the time to polish it up a bit for alpha release. Check out: http://starship.python.net:9673/crew/furtrapper/NotMail for NotMail. NotMail is a clone of 'other' popular web-mail interfaces. Please download and evaluate. But first a word of warning: NotMail is alpha. It is being released with the intention of harvesting other developers who are interesting in breaking it, fixing it, and improving it. Although it is a cool program, it is unstable (try pointing it at Exchange!) and not complete. I have tried to document it in code as much as possible, and it does contain a nice README.txt. You are expected to be able to infer the workings of NotMail by the source, or by telepathy, whatever. If NotMail makes your hard drive partition go bye-bye or makes your imap server think it's a dhcp server that's the way the cookie crumbles. Okay, now a word of license: NotMail is released under the GNU General Public License. Give yourself a piece of mind and send the Free Software Foundation a donation. You'd do it for NPR wouldn't you? Now a kind word about Digital Creations: Digicool has been kind enough to let me waste a small fraction of my time to release this today. They also let me use their computer to check my personal mail, etc. Please don't infer that because I work for Digicool that NotMail is a product of Digital Creations. Please do not submit NotMail bugs to the Collector or send reports to support@digicool.com. These things are for Zope and other Digicool products. It is ok to discuss it in the list but I'd prefer all discussion happen using the cool Confera discussion that can be found in the same place you can get NotMail. Regards, Michel From raver@box.dust.za.net Mon Mar 1 19:03:56 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:03:56 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF640190D9E1B@GANDALF>; from Paul Everitt on Mon, Mar 01, 1999 at 11:03:24AM -0500 References: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> Message-ID: <19990301200356.A1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:03:24AM -0500, Paul Everitt wrote: > > > If it works - is there someone that can say exactly how > > apache should be > > configured and compiled to get it working (best of all also > > put in a working > > httpd.conf also)? > > We'd prefer that you start with the Zap distribution, as it removes a > whole bunch of variables. Can you tell us what was the error with using > Zap? > > --Paul > What I did: 1) Extract the Zap distro into my top level Zope dir. Entered the Zap dir and did ./startzap. This happened: './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' 2) I figured the httpd equivalent 'zap' was broken and replaced it with my httpd (from apache 1.3.4). Again I fired up zap with ./startzap. This happened: No complaints this time. Apache (or rather zap) fires up correctly, but when I try to reach the server with netscape or lynx (http://localhost/, (I changed port back to 80)) I get 'Document contains no data'. Same goes for trying: http://localhost/cgi-bin/Zope/manage - I get 'zero sized reply', 'The requested URL could not be retrived'. Now - seems like there are some settings missing from the zap.conf file? Or if nothings wrong - then maby give the readme-file a facelift and make it more clear to ppl like me what to do to get it running. Zope seems just too good to just let go!! Hope to get it running soon Regards Sture Lygren From michel@digicool.com Mon Mar 1 19:25:45 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:25:45 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 2:04 PM > To: zope@zope.org > Subject: Re: [Zope] Zope and Apache - again > What I did: > > 1) Extract the Zap distro into my top level Zope dir. Entered > the Zap dir and > did ./startzap. > > This happened: > > './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' > I just did a fresh install and this works for me. Can you run bin/zap by hand from the shell prompt? Have you tried downloading a fresh copy of the Zap tarball? > 2) I figured the httpd equivalent 'zap' was broken and > replaced it with my > httpd (from apache 1.3.4). Again I fired up zap with ./startzap. > > This happened: > > No complaints this time. Apache (or rather zap) fires up > correctly, but when > I try to reach the server with netscape or lynx (http://localhost/, (I > changed port back to 80)) I get 'Document contains no data'. > > Same goes for trying: http://localhost/cgi-bin/Zope/manage - > I get 'zero > sized reply', 'The requested URL could not be retrived'. > Your own httpd binary might not be compiled properly for Zope use, check out the Zap FAQ at http://www.zope.org/Community/Projects/Zap. Doh, I just noticed that this is not an obvious link from the d/l page. I will make it so. > Now - seems like there are some settings missing from the > zap.conf file? > The conf file that comes with zap is ok. We and others tested it quite a bit. > Or if nothings wrong - then maby give the readme-file a facelift and > make it more clear to ppl like me what to do to get it running. > When we figure out your problem, it will get added to the docs. > Zope seems just too good to just let go!! It is that good. > > Hope to get it running soon > > Regards Sture Lygren > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Bern.McCarty@bentley.com Mon Mar 1 19:15:17 1999 From: Bern.McCarty@bentley.com (Bern McCarty) Date: Mon, 1 Mar 1999 14:15:17 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibility? Message-ID: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect. In our case it is a given that a specialized JVM will be embedded in all of our products and more and more of our own source will be written in Java, so code which can integrate with Java easily is all the more interesting to us. We already have a product which uses traditional Python behind a web server to provide an entirely through-the-web user interface for product configuration/administration. My aim has been to replace the traditional Python with JPython since we'll have lot's of Java stuff we'll want to be using on the server going forward anyway. It looks like Zope would enable us to do what we are already doing more easily (and therefore better). So here's hoping we'll one day see Z-over-P-over-J. Yeah. I know it would have to be slower. Zope looks cool. Bern McCarty From michel@digicool.com Mon Mar 1 19:46:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:46:52 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF6401907BAB6@GANDALF> > -----Original Message----- > From: Bern McCarty [mailto:Bern.McCarty@bentley.com] > Sent: Monday, March 01, 1999 2:15 PM > To: zope@zope.org > Subject: [Zope] Is a JPython implemention within the realm of > possibility? > > > > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPytho > So > here's hoping we'll one day see Z-over-P-over-J. > I am not the expert about this, but: Zope is written entirely in Python, except for a few 'kernel' like components written in C. If you translate these components into Java, you might just have something there. I'm not a Java guy so I have no real idea. > Yeah. I know it would have to be slower. From what Ken was telling me JPython is actually quite well designed and speedy, even for a Java program. :) If you've commited yourself to Java then I assume you've allready resigned yourself to the performance penalty and are considering it in your engineering goals. Performance may not be your primary goal in the first place. > > Zope looks cool. Oh it is. > > Bern McCarty > -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Mon Mar 1 19:47:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 14:47:28 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF640190D9E20@GANDALF> Bern wrote: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPython) > in addition to operation under traditional Python. I know it > would probably > be a large undertaking and that there may well be better > places to spend > precious energy, but I thought I'd register my interest in > the prospect. This was one of the things that I hoped to see by going Open Source. So far there have been ports to operating systems that we just wouldn't have supported, which is a great to see. I'm intrigued by someone that really knows Java picking up a JZope effort. As for Digital Creations, I doubt you'll see us focus on it unless one of our consulting customers requires it. Same old story -- never enought time :^( --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From pj@sam.engr.sgi.com Mon Mar 1 19:40:14 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Mon, 1 Mar 1999 11:40:14 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903011940.LAA18485@sam.engr.sgi.com> I'm just beginning with Zope, and just beginning with a project to develop some new software product management (bug tracking and such) tools for use within Silicon Graphics (SGI). Zope appears to be an excellent fit for many of our needs. I will need to connect with an existing large Sybase database (the existing bug data). I can freely choose to use either Linux or Irix for the server side operating system. From which server O.S. would it be easiest to get Zope connected to Sybase? Something I read on www.zope.org led me to suspect that I should use Irix, so that I can use our Sybase licensed library, and that Linux wouldn't work, because of a lack of the needed library. Is that so? Any other obvious factors that I should consider in this choice? ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From raver@box.dust.za.net Mon Mar 1 19:48:46 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:48:46 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAAF@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 11:17:31AM -0500 References: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> Message-ID: <19990301204846.B1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:17:31AM -0500, Michel Pelletier wrote: > > > > -----Original Message----- > > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > > Sent: Monday, March 01, 1999 7:23 AM > > To: zope@zope.org > > Subject: [Zope] Zope and Apache - again > > Now - here is my current config: > > > > Linux 2.0.35 > > Python 1.5.1 > > Zope 1.10.2 > > Apache 1.3.4 > > > > Something there that doesn't play well together? > > > > The only difference between your setup and the setup used to compile Zap > is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 > kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there > might be an incompatability with Zap on 5.1. Has anyone on the list > gotten Zap working on this platform? Also, please send us the details > of the error you get with Zap. When you say it's broken, how does it > break? Does the starzap script fail to run? Does it say 'Apache did > NOT start sucessfuly' and then spit up the last 10 lines of your error > log? If so, what are those lines? Hmmm - I'm a slackware guy. And no glibc guy either.... Still the zap bin starts from the prompt and when I changed some settings in zapctl then ./startzap also worked. That is the zap process shows on ps, but I'm not able to connect to the server with any browsers. Now - whats wrong? > > -Michel > > > > > Sture Lygren > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > From da@ski.org Mon Mar 1 19:47:39 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 11:47:39 -0800 (Pacific Standard Time) Subject: [Zope] Is a JPython implemention within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program (under JPython) > in addition to operation under traditional Python. I know it would probably > be a large undertaking and that there may well be better places to spend > precious energy, but I thought I'd register my interest in the prospect. My guess is that the hardest part of such an undertaking would be to convert Jim's extensions to Java/JPython. Specifically, ExtensionClasses and Acquisition are probably the hardest to do (I believe many of the others are just fast implementations of Python versions). Jim Hugunin mentioned that he had thought a bit about ExtensionClasses, but I'm not sure how far that went. The efficient POS and other extensions are also clearly a significant undertaking, but maybe not as hard to translate. However, I don't see it happening until someone has a commercial motivation to invest the large required number of hours into it. --david From amos@aracnet.com Mon Mar 1 19:53:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 11:53:19 -0800 Subject: [Zope] Is a JPython implementation within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> At 02:15 PM 3/1/99 -0500, Bern McCarty wrote: > >I am wondering if it is within the realm of possibility that the Zope >project might eventually support operation as a Java program (under JPython) >in addition to operation under traditional Python. I know it would probably >be a large undertaking and that there may well be better places to spend >precious energy, but I thought I'd register my interest in the prospect. Zope relies on a lot of code in C as well as Python, so I doubt you'll see Zope on JPython anytime soon. However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'. -Amos From pje@telecommunity.com Mon Mar 1 20:15:31 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:15:31 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <199903011940.LAA18485@sam.engr.sgi.com> Message-ID: <3.0.5.32.19990301151531.01230100@telecommunity.com> At 11:40 AM 3/1/99 -0800, Paul Jackson wrote: >I'm just beginning with Zope, and just beginning with a >project to develop some new software product management >(bug tracking and such) tools for use within Silicon >Graphics (SGI). > >Zope appears to be an excellent fit for many of our >needs. > >I will need to connect with an existing large Sybase >database (the existing bug data). > >I can freely choose to use either Linux or Irix for >the server side operating system. > >>From which server O.S. would it be easiest to get Zope >connected to Sybase? Something I read on www.zope.org >led me to suspect that I should use Irix, so that I >can use our Sybase licensed library, and that Linux >wouldn't work, because of a lack of the needed library. > >Is that so? Any other obvious factors that I should >consider in this choice? FWIW, my shop is running Sybase OpenClient 11.1.1 on IRIX 6.2, 6.4, and 6.5 on a Challenge/S, O2000, and Challenge/L, respectively. I successfully installed ZSybaseDA into Zope on the Challenge/S; haven't tried on any others. Also FWIW, I have experienced nothing but problems getting PCGI to work on any of the IRIX platforms; your mileage may vary. (Coincidentally, the company I work for owns a couple hundred SGI boxes and we keep our inventory of them in a ZPublisher app... it's on mySQL, though, not Sybase. OTOH, our request tracking system is a ZPublisher-on-Sybase app.) From jeffbauer@bigfoot.com Mon Mar 1 20:29:12 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 14:29:12 -0600 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <36DAF898.14B40EF0@rubic.com> > Also FWIW, I have experienced nothing but problems > getting PCGI to work on any of the IRIX platforms; > your mileage may vary. Does this include the latest version of PCGI? FWIW, I'm willing to work with anyone getting PCGI to work on their platform of choice. Best regards, Jeff Bauer Rubicon, Inc. From Jose.Lacal@icn.siemens.com Mon Mar 1 20:39:00 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Mon, 1 Mar 1999 15:39:00 -0500 Subject: [Zope] MailHost problems. Message-ID: <85256727.00714502.00@li01.lm.ssc.siemens.com> Folks: Error message when trying to send e-mail from a Zope-generated web-form. I did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still get the following error message:

    Copyright 1999 Siemens I & CN. Maintained by Jose C. Lacal.

    Platform: Red Hat 5.1 Zope 1.10.2 Both sendmail and DNS are properly installed since I was able to send e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" I'm no Zope expert, so any suggestions appreciated. Regards. From pje@telecommunity.com Mon Mar 1 20:37:28 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:37:28 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <36DAF898.14B40EF0@rubic.com> References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <3.0.5.32.19990301153728.01372a00@telecommunity.com> At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > >Does this include the latest version of PCGI? > >FWIW, I'm willing to work with anyone getting PCGI >to work on their platform of choice. The last version I tried was the one distributed with Zope 1.9.0 - it exhibited the same fail-on-process startup behavior as previous versions, so I went to ZServer as a stopgap until I could complete a FastCGI replacement. I'm now using FastCGI, so it's no longer an issue. From drew_csillag@geocities.com Mon Mar 1 20:43:35 1999 From: drew_csillag@geocities.com (Andrew Csillag) Date: Mon, 01 Mar 1999 15:43:35 -0500 Subject: [Zope] Is a JPython implementation within the realm ofpossibility? References: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> Message-ID: <36DAFBF7.DE205CAB@starmedia.net> Amos Latteier wrote: > > However, ZPublisher (Zope's ORB) could be made to work with JPython without > too much trouble. In fact a while ago I tried this and succeeded, though it > was quite slow. The main issue is that ZPublisher uses 'regex' while > JPython uses 're'. Actually, some time ago I sent Jim some code that was a regex mockup implemented using re. It didn't do all of regex, but enough to make DocumentTemplate work. -- "There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence." - Jeremy S. Anderson From bkc@murkworks.com Mon Mar 1 19:51:08 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 15:51:08 -0400 Subject: [Zope] MailHost problems. In-Reply-To: <85256727.00714502.00@li01.lm.ssc.siemens.com> Message-ID: <199903012045.PAA26056@anvil.murkworks.com> On 1 Mar 99, at 15:39, Jose.Lacal@icn.siemens.com wrote: > Error message when trying to send e-mail from a Zope-generated web-form. I > did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still > get the following error message: > > > >
    >

    Copyright 1999 Siemens I & CN. Maintained by > Jose C. Lacal. HREF="http://www.linux.org"> >

    > > > > > Platform: > > Red Hat 5.1 > Zope 1.10.2 > > Both sendmail and DNS are properly installed since I was able to send > e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" > > > I'm no Zope expert, so any suggestions appreciated. > > Regards. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From raver@box.dust.za.net Mon Mar 1 21:22:52 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 22:22:52 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAB4@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 02:25:45PM -0500 References: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> Message-ID: <19990301222252.A9776@RaVER.duck.org> I give up! From rocon@pivot.net Mon Mar 1 22:04:51 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 1 Mar 1999 17:04:51 -0500 Subject: [Zope] The Zope Starship (for Python PSA) Message-ID: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> I Followed the URL backward from: Michel Pelletier's "You've Not Mail !!!" Page, http://starship.python.net:9673/crew/furtrapper/NotMail Hey, this is neat, starship.python.net must be running ZOPE because the port is "9673" !!! therefore going to: http://starship.python.net:9673 "Welcome to Zope at the Starship Python!" So, to join the crew of the Starship and get your own ZOPE pages on the internet requires PSA membership. One can join now and pay for a half year $50/yr or $25 for half. Membership wouldn't be effective until April 1st (a Foolish day!) So, Zope is cool and so is Python. I am considering joining PSA on the strength of Zope and Elegance of Python but I'm concerned that Python doesn't seem to have much "MindShare" like Java or Perl. Ok so our local Borders has only one book on Python: "Programming Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. The shelves are full of books on Java and there are quite a few Perl books. What is the BIG PICTURE here? Is Python so good that lot of programming tomes are unnecessary? Why is there so little press on Python and so much for the less Elegant and slower Java? Is Python a "secret weapon"? If so, the secret should get out to the world so Python gets more mind share and doesn't develop cobwebs. ***So, where are the rabid Python fans?*** Yes, a bunch of them are on the ZOPE list. Great answers to these questions will only help ZOPE! -bobo connor From quinn@challenge.calarts.edu Mon Mar 1 22:17:08 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Mon, 01 Mar 1999 14:17:08 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903012217.OAA20295@challenge.calarts.edu> philip wrote: > At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > > > >Does this include the latest version of PCGI? > > > >FWIW, I'm willing to work with anyone getting PCGI > >to work on their platform of choice. > > The last version I tried was the one distributed with Zope 1.9.0 - it > exhibited the same fail-on-process startup behavior as previous versions, > so I went to ZServer as a stopgap until I could complete a FastCGI > replacement. I'm now using FastCGI, so it's no longer an issue. I'm using pcgi from 1.9.0 (README says it's 2.0a4) under Irix 5.3 (yes, I know, I keep bugging the sysadmin to upgrade :) ). Occaisionally, pcgi fails to start up, logging "Interrupted system call (116) unable to connect, fd=4". I also had the same problem when using FastCGI w/ threads: the application would hang and I'd get an "interrupted system call" in the log after a while. I have never experienced either of these problems under linux, so might this be an Irix problem? I remember that Philip also suspected an Irix "sockets-and-threads-don't-mix" problem, which appears to be what I have experienced as well. Philip, is theaded FastCGI still broken on Irix? From jeffbauer@bigfoot.com Mon Mar 1 22:34:44 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 16:34:44 -0600 Subject: [Zope] The Zope Starship (for Python PSA) References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <36DB1604.AB0002A2@rubic.com> Robert OConnor wrote: > What is the BIG PICTURE here? Is Python so good > that lot of programming tomes are unnecessary? As a language qua language, Python is so good in design and implementation that it has few dark mysteries that require a lot of documentation to explain. The existing Python books are quite good, with at least 4 more in the works. More Python books are necessary to explain things like Win32/COM programming, for instance, than the language itself. Perl has lots of books, because for the past 2 years, almost anything that offered to make Perl programming easy was given shelf space. Java has lots of books because almost everything in Java has to be written in Java, and the Java libraries have been a moving target for so long. More important than the number of books (how many Perl books do you really need, after the Camel?) is the level of support/platforms in the Python community, which is quite high. It will probably never attain the proportion of mindshare that Perl or Java has, but is has critical mass, and a lot of compentent people who contribute code. Too many companies now rely upon Python as their core development language for it to go away anytime soon. More importantly: You'll spend more time learning about the eccentricities of whatever your environment demands, be it Unix, Windows, web servers, CE devices, COM, Tk, etc. than learning the language itself. This is Python's great (and under-reported) strength. Best regards, Jeff Bauer Rubicon, Inc. From tjg@avalongroup.net Mon Mar 1 22:28:08 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Mon, 01 Mar 1999 14:28:08 -0800 Subject: [Zope] ZMySQLDA installation Message-ID: <36DB1478.E2D7915E@avalongroup.net> Hi all, This is probably more of a newbie Linux question than a newbie Zope question, but I'm going to ask it here anyway: I would like to connect Zope to a database, so I have setup both PostgreSQL and MySQL. My reading tells me that MySQL is probably the better choice as a web backend (Any comments from those of you more knowledgable than I would be appreciated!) So I downloaded the MySQL source, compiled, installed and tested it. It looks like I did it right. I then downloaded the ZMySQLDA from the Zope site. I have followed the directions--I think, but get the following error when trying to do the initial make: [tjg@puddleglum src]$ make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho n/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python /Products/ZMySQLDA/src' make: *** [boot] Error 2 Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From da@ski.org Mon Mar 1 22:41:17 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 14:41:17 -0800 (Pacific Standard Time) Subject: [Zope] The Zope Starship (for Python PSA) In-Reply-To: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: > Ok so our local Borders has only one book on Python: "Programming > Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. > The shelves are full of books on Java and there are quite a few Perl > books. FYI: I know of at least 5 other Python-related book projects in various stages of development. One of those should be hitting those same shelves in April sometime (http://www.oreilly.com/catalog/lpython/). It even mentions Zope in a couple of places. [Disclosure: I'm a coauthor of said book] > What is the BIG PICTURE here? Is Python so good that lot of > programming tomes are unnecessary? Python is certainly easier to learn than some other languages. > Why is there so little press on Python and so much for the less > Elegant and slower Java? Mostly, because Java is backed by a multibillion dollar company with lots of $$'s for public relations. --david ObZope: I'm having a hard time with the 'access' file -- it looks as if my Zope installation (w/ ZServer) only accesses the first entry in the file. What am I missing? From garys@magna.com.au Mon Mar 1 22:51:00 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 09:51:00 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> Message-ID: <36DB19D4.77F33EA7@magna.com.au> Amos Latteier wrote: > At 05:04 PM 3/1/99 +1100, you wrote: > >Amos Latteier wrote: > > > >> > >> Correct. This is what's supposed to be there. Does the FAQ Tool not work > >> when you install it? Are you using Zope 1.10.2? > >> > >> -Amos > > > >My Zope Zen seem to have gone negative (started at zero - and just got worse > >:( ) but HOW do you install it. > > I hate to tell you to RTFM, but did you try the "Installation Instructions" > on the page where you downloaded it? > A perfectly reasonable suggestion - and one that I have made many times myself! I did, in fact, RTFM - but the FM makes absolutely zero mention of anything "leverish", to adopt a seemingly Zopish mode of Englishish. ;-) I followed your link given in another message, and realised that what I had been reading about in terms of Product Distributions was (I think) what you refer to as the "Lever". IAC, I followed the instructions given, and when it didn't work I went back, and worked my way through the Product Tutorial exercise - excellent! The POLL product works fine! But the levered faq product .DAT file apparently failed to unpickle - as described by others in this thread. My product management screen shows the FAQ product as installed, but the actual product directory still has just the three files from the tarball. In my case, however, it is on a Linux ZAP system - so the problem is not confined to Win32 as others have conjectured. Hope this helps, and apologies for the lack of specifics in my previous post. Can we please have the term "lever" clarified and documented a little better. -my-FAQ-product-having-FA-Q's-in-it-ly yours gary From mvoltchenko@platinum.com Mon Mar 1 23:04:28 1999 From: mvoltchenko@platinum.com (mvoltchenko@platinum.com) Date: Mon, 1 Mar 1999 17:04:28 -0600 Subject: [Zope] Z Oracle Database Connection doesn't show up. Message-ID: <86256727.007E80F3.00@platinum.com> I have compiled and installed Python 1.5.1, Zope 1.10.2 - all works fine. I downloded and installed ZOracle DA, following all the steps in the README file. However, I can't get Z Oracle Database Connection to show up in the list of available item types in Zope mangement interface. Any suggestions would be greatly appreciated. Marina Voltchenko. From jeffbauer@bigfoot.com Mon Mar 1 23:08:33 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 17:08:33 -0600 Subject: [Zope] ZMySQLDA installation References: <36DB1478.E2D7915E@avalongroup.net> Message-ID: <36DB1DF1.C2EB63BD@rubic.com> Timothy Grant wrote: > I would like to connect Zope to a database, so I have > setup both PostgreSQL and MySQL. My reading tells me that > MySQL is probably the better choice as a web backend (Any > comments from those of you more knowledgable than I would > be appreciated!) My experience was MySQL had better support for large streams of text data and blobs than PostgreSQL. However, MySQL also lacks support for transactions. This probably contributes to its speed, which in turn makes it popular for web apps. Best regards, Jeff Bauer Rubicon, Inc. From petrilli@amber.org Mon Mar 1 23:09:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 18:09:07 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: ; from David Ascher on Mon, Mar 01, 1999 at 02:41:17PM -0800 References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <19990301180907.03092@amber.org> On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > Zope installation (w/ ZServer) only accesses the first entry in the file. > What am I missing? > THis is completely correct. The access file is ONLY for the global-overall-uberuser :-) Everything else should be defined in the database itself :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From garys@magna.com.au Mon Mar 1 23:53:07 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 10:53:07 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <36DB2863.DF5662BF@magna.com.au> Amos Latteier wrote: > > > But the levered faq product .DAT file apparently failed to > >unpickle - as described by others in this thread. > > Can you tell me why you believe this to be the case? > I assumed that the .DAT file contained all the component DTML and PY scripts etc and that these would be expanded into the Product's home directory somehow. Is this not the case? Is the .DAT distribution a way of distributing the objects without the source ? (more Cathedral than Bazaar) > > >My product management screen > >shows the FAQ product as installed, but the actual product directory still > has > >just the three files from the tarball. > > This is normal. That's what's supposed to be there. > > Does the FAQ item show up in the product add list? No - but it does show up in the installed products control panel. > If not, then you have a > problem. If you have this problem, then please send to me, not the zope > list, information about your platform, and the version of Zope you have > installed. As stated before, Zope 1.10.2 running on ZAP-Linux. many tias, gary From Anthony Baxter Mon Mar 1 23:56:39 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 10:56:39 +1100 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: Your message of "Mon, 01 Mar 1999 18:09:07 CDT." <19990301180907.03092@amber.org> Message-ID: <199903012356.KAA01601@mbuna.arbhome.com.au> > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > > Zope installation (w/ ZServer) only accesses the first entry in the file. > > What am I missing? > > > > THis is completely correct. The access file is ONLY for the > global-overall-uberuser :-) Everything else should be defined in the > database itself :-) Note that you could, pretty easily, write a new UserFolder type object which worked off an access file. Could be useful for people who are generating the access file from an /etc/passwd file, or whatever. Anthony From michel@digicool.com Tue Mar 2 00:14:54 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 19:14:54 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) Message-ID: <613145F79272D211914B0020AFF6401907BAB8@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Monday, March 01, 1999 6:57 PM > To: Christopher G. Petrilli > Cc: zope@zope.org > Subject: Re: [Zope] Access File (was: The Zope Starship (for Python > PSA)) > > > > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > > > ObZope: I'm having a hard time with the 'access' file -- > it looks as if my > > > Zope installation (w/ ZServer) only accesses the first > entry in the file. > > > What am I missing? > > > > > > > THis is completely correct. The access file is ONLY for the > > global-overall-uberuser :-) Everything else should be > defined in the > > database itself :-) > > Note that you could, pretty easily, write a new UserFolder type object > which worked off an access file. Could be useful for people > who are generating > the access file from an /etc/passwd file, or whatever. > You could also skip the generation step and write a UserFolder which works off of /etc/passwd. In fact, NotMail could use this as a helper too. Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From DAve@mail.netraven.com Tue Mar 2 04:36:23 1999 From: DAve@mail.netraven.com (Dave G) Date: Mon, 1 Mar 1999 20:36:23 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: Has anyone else experienced a problem getting Explorer to connect with Zserver? I have no problem with any version of Navigator but MSIE 3.01 and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an "error with Explorer's internet extensions has failed". Very baffling, I can connect just fine via telnet using the following requests, ZServer (medusa) returns a proper html page. Requests sent: GET / HTTP/1.0 Connection: Keep-Alive Host: www.fishwrapper.com Accept: image/gif, image/jpeg, */* GET / HTTP/1.0 accept: image/gif, image/jpeg, */* GET / HTTP/1.1 accept: image/gif, image/jpeg, */* response recieved: Status: 200 OK Content-Length: 1307 Content-Type: text/html blah, blah, blah..... (note the difference in the sent host and recieved host, the host arg in the start script sets the host for the ftp server, not the webserver...) I can see nothing in the responses that would cause MSIE to fail, note this has been tested from four different PC's on three different ip's, including a local connection from my Lan. Strangly enough I did a stream capture and hit my server and the startship server (also running ZServer) and the two responses differ even though the requests were from the same browser on the same connection. request for http://www.fishwrapper.com/ followed by my servers response : Send 357 bytes on stream 4. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Pragma: no-cache <00000067< Host: www.fishwrapper.com <00000082< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000BF< image/png, */* <000000CF< Accept-Encoding: gzip <000000E6< Accept-Language: en <000000FB< Accept-Charset: iso-8859-1,*,utf-8 <0000011F< Cookie: sql_pref__rows="10"; sql_pref__cols="65"; dtpref_cols="9 <0000015F< 5" <00000163< Receive 1364 bytes on stream 4. >00000000> Status: 200 OK >0000000F> Content-Length: 1303 >00000024> Content-Type: text/html >0000003C> >0000003D> blah, blah, blah..... request for http://starship.python.net/ followed by starship's response : Send 276 bytes on stream 1. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Host: starship.python.net:9673 <00000075< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000B2< image/png, */* <000000C2< Accept-Encoding: gzip <000000D9< Accept-Language: en <000000EE< Accept-Charset: iso-8859-1,*,utf-8 <00000112< Receive 1254 bytes on stream 1. >00000000> HTTP/1.0 200 OK >00000011> Server: Medusa/1.4 >00000025> Content-Length: 1112 >0000003B> Content-Type: text/html >00000054> Connection: close >00000067> Date: Tue, 02 Mar 1999 02:24:00 GMT >0000008C> >0000008E> >00000095> blah, blah, blah..... Do starships ZServer and mine differ? My http_server.py script carries RC_ID of: "v 1.4 1999/01/18 22:44:49 amos" I downloaded a fresh copy of ZServer when I grabbed the newest copy of Zope. Any clues? I've been documenting and testing everything I could think of, I'd report a bug but it seems MSIE works with the Starship server, so I think it's not a bug so much as something wrong on my end? Slackware V 3.6 Zope v 1.10.2 ZServer 1.0a2 DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From tseaver@palladion.com Tue Mar 2 06:05:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 00:05:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <36DB2602.1DB0C1E8@palladion.com> <19990301202550.44519@amber.org> <36DB5BB7.A6DA0185@palladion.com> <19990301223719.63315@amber.org> <36DB5E48.6FE6AED4@lyra.org> <19990301225006.05483@amber.org> Message-ID: <36DB7F96.41DA505B@palladion.com> Christopher G. Petrilli wrote: > > On Mon, Mar 01, 1999 at 07:43:04PM -0800, Greg Stein wrote: > > Christopher G. Petrilli wrote: > > > On Mon, Mar 01, 1999 at 09:32:07PM -0600, Tres Seaver wrote: > > > > As one who comes down firmly on the "weenie" side of the great "content manager" > > > > vs. "web weenie" divide, I am naturally inclined to code up Zopoids as > > > > ExternalMethods. The docs say to put them under the $ZOPEROOT/lib/python, but > > > > that seems icky for a "shared" Zope like the one on starship. > > > Well, right now that's the only way it's supported... it's not really > > > inteded for an ISP situation with hundereds of "untrusted" users, which > > > is kinda how we're using it right now. FOr now, unfortunately, I'm > > > makign the executive decision that ExternalMethods are verbotten until > > > we can figure out a way to isolate them from one-anohter. If someone > > > wants to develop a derived ExternalMethod that uses rexec or some such > > > to control it's access to the database, that'd be great. > > > > > > > Whither should such gems be placed? > > > > > > Well, unfortunatly all of them would run wit the permissions of "root" > > > as far as I understand it... someone else correct me, but this is how it > > > was explained to me... basically they'd be able to do anything. > > > > Can't you run Zope as another user? That could eliminate a number of > > issues. > > I'm sorry, I wasn't clear ;-) What I meant was that the method has > unlimited abilities to peruse the object database... it doesn't have any > abilities outside it that aren't avilable to the zope process itself > (which in this case runs as uid 'zope'). > > The concern is taht it would be able to circumvent other user's security > since it wouldn't be enforced against the ExternalMethod. I understand the security problems inherent in ExternalMethods; unfortunately, without them, Zope is merely an "also-ran" in the web applicaton race, from my perspective. DTML in isolation is not an "ASP-killer." I'm CC'ing the Zope list, in hopes that someone there can either allay or slay our fears. It seems to me that the security problem is that ExternalMethods can get access to "sibling objects" of the object on which they are invoked, right? I mean, if we could make the siblings inaccessible, and acquired properties read-only, then we should be ok, no? Ugh, I don't grok acquisition well enough to tackle that myself, I fear. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Tue Mar 2 06:47:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 17:47:36 +1100 Subject: [Zope] terminating DTML parsing... Message-ID: <199903020647.RAA07473@mbuna.arbhome.com.au> from inside DTML, is there a way to say "don't process any further DTML, just return this to the user"? What I'm looking at is a small DTML snippet that gets included at the top of a number of pages, and looks for a particular variable to be set. If it's not set, it should just display a small "please enter a widget name" form which submits back to the same page, and not display the rest of the page at all. will just doing a RESPONSE.redirect() automatically do this? Anthony From piers@cs.su.oz.au Tue Mar 2 06:54:28 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Tue, 02 Mar 1999 17:54:28 +1100 Subject: [Zope] Help with editing Product dtml files Message-ID: <129.78.8.1.126.8280.920360936.257.8891> I'm making a Zope "Product" for managing and creating student surveys (which I hope to contribute via zope.org) but I'm having trouble with a couple of techniques: 1. How does one enable a dtml file that is instantiated as in my_dtml = HTMLFile('my', globals()) available for editing in the products' management screen? There's probably more to this - as at the moment the management screen goes straight to the "index_html" form as with the "Poll" Product. 2. What's the approved way to catch database errors in methods? I'm creating tables on the fly, and need to check if the table exists before trying to create it. (I'd use a "tables" method if all the database interfaces supported it. I'd also use a try/except but the database objects have different names for their exceptions.) From jarvis.sd082@ex.tel.co.jp Tue Mar 2 09:40:22 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 18:40:22 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Hi All! First off, I'd like to thank Digital Creations for an excellent (and really fun) product. I'm building a prototype web site interface for a database where I work using Zope 1.10.2 and the ZOracleDA product and have a some questions. 1. When trying to do a join (a lazy query, I know) like: select a.*, b.* from tablea a, tableb b where a.b_id=a.id Both tables have an ID column so Zope raises a 'ValueError' exception with the message 'Duplicate column name, ID'. I wonder if instead of raising an exception something like the following could be done? A diff of Shared/DC/ZRDB/Results.py: 120,131c120 < #raise ValueError, 'Duplicate column name, %s' % name < < #instead of error, append an extension to < #create a unique name < tempname=name < nameext=1 < while schema.has_key(name): < name=tempname+'_'+str(nameext) < nameext=nameext+1 < < #update with newly created name < item['name']=name --- > raise ValueError, 'Duplicate column name, %s' % name I tested this some and it seems to work. Are there any problems that could be caused by doing this? 2. I'll post the other questions separately because they are unrelated. TIA!, John Jarvis Tokyo Electron, FE Ltd. From mj@antracietm.nl Tue Mar 2 09:49:28 1999 From: mj@antracietm.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 10:49:28 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <36DB2863.DF5662BF@magna.com.au> References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <4.1.19990302103050.00a84500@lisp.atmm.nl> At 00:53 02/03/99 , Gary Stephenson wrote: >I assumed that the .DAT file contained all the component DTML and PY scripts >etc >and that these would be expanded into the Product's home directory somehow. Is >this not the case? Is the .DAT distribution a way of distributing the objects >without the source ? (more Cathedral than Bazaar) The .DAT file only contains information to be added to the Object Database. It won't be expanded into files onto your harddisk. Zope stores all instances of classes in it's object databse, via a process called 'pickling'. This, in simple terms, means that all data stored in an object is turned into one stream of data that can be stored in a file. As a 'Levered' product contains nothing but instances of classes, not the classes themselves, it suffices to distribute only the compressed pickled contents of the product. The source for the used classes you allready have (at least with the FAQ you do, it uses only DTML Methods and Folders), and the DTML scripts can be viewed in Zope, so you do get all the source. The objects that make up the product should normally be automaticly decompressed and imported into Zope, but the decrompressing seems to be failing. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jarvis.sd082@ex.tel.co.jp Tue Mar 2 10:09:28 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 19:09:28 +0900 Subject: [Zope] DTML #var null= problem/patch Message-ID: <8174B1EE3D2CD21180960000F8056723CFB32E@telisnt1020.is.tel.co.jp> Thank you for pointing out how to fix this. At first, the patch didn't work with ZSQLMethods until I made a small change: 271a272,274 > #richard jone's null patch --- slightly modified by jj > elif have_arg('null') and not val: > val = args['null'] val wasn't set to None and so the null attribute never got used. Since None is false, the above should be OK. (It seems to work for me, anyway :^) John Jarvis Tokyo Electron, FE Ltd. > -----Original Message----- > From: richard.jones@fulcrum.com.au [SMTP:richard.jones@fulcrum.com.au] > Sent: Monday, March 01, 1999 8:31 AM > To: Philip Aylesworth > Cc: zope@zope.org > Subject: Re: [Zope] DTML #var null= problem/patch > > > [Philip Aylesworth] > > Does your patch mean that I don't need a fmt= atribute? > > Yes. > > > > Are you using 1.9 or 1.10? > > Does 1.10 do the same thing? > > My patch was against 1.10 > > > > Should you send this to the collector? From the documentation I expected > it > > to work without the fmt= atribute, therefore, it could be considered a > bug, > > right? > > Yep, I've submitted a report to the Collector. > > > Richard > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From akhavr@compchem.kiev.ua Tue Mar 2 11:05:39 1999 From: akhavr@compchem.kiev.ua (Andrey V Khavryutchenko) Date: 02 Mar 1999 13:05:39 +0200 Subject: [Zope] Bobo distribution Message-ID: Hi! I'm looking for Bobo (not Zope) distribution tarball. Looks like it is taken from the web away. I need to create very simple application. Zope is an overkill for it. Anyone? -- SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr Shick's Law: There is no problem a good miracle can't solve. From sfranke@cdc-group.com Tue Mar 2 11:27:41 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 12:27:41 +0100 Subject: [Zope] Bobo distribution Message-ID: <01E40461E003D21195CC0080296495D80B12B1@gates.cdc-group.com> Bobo is now called "ZPublisher". You dan download it separately on http://www.zope.org/Download/ZPublisher Stefan Andrey V Khavryutchenko wote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it > is > taken from the web away. > > I need to create very simple application. Zope is an overkill for it. > > Anyone? > > -- > SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr > > Shick's Law: > There is no problem a good miracle can't solve. > From ajung@sz-sb.de Tue Mar 2 11:58:47 1999 From: ajung@sz-sb.de (Andreas Jung) Date: Tue, 2 Mar 1999 12:58:47 +0100 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <19990302125847.A22379@sz-sb.de> Reply-To: Hello, we want to use the DCOracle module for Python inside a commercial production process in our house. We don't sell a product with DCOracle nor we redistribute DCOracle in any form. Is the use of DCOracle for this purposes free ? Thanks Andreas From Paul@digicool.com Tue Mar 2 12:17:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:17:14 -0500 Subject: [Zope] terminating DTML parsing... Message-ID: <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Anthony wrote: > from inside DTML, is there a way to say "don't process any > further DTML, > just return this to the user"? Umm, ?? --Paul From Paul@digicool.com Tue Mar 2 12:19:01 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:19:01 -0500 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <613145F79272D211914B0020AFF640190D9E2C@GANDALF> Andreas writes: > we want to use the DCOracle module for Python inside a commercial > production > process in our house. We don't sell a product with DCOracle > nor we redistribute DCOracle in any form. Is the use of DCOracle > for this purposes free ? Yes, DCOracle is free and Open Source. --Paul From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From JPGlutting@cspt.es Tue Mar 2 13:23:41 1999 From: JPGlutting@cspt.es (JP Glutting) Date: Tue, 2 Mar 1999 13:23:41 MET-1MEST Subject: [Zope] AUTHENTICATED_USER Message-ID: <153C1D93564@sahara.cspt.es> Does anyone have any more information on AUTHENTICATED_USER? We saw a while back that it has properties (AUTHENTICATED_USER.has_role(['Manager', 'Editor'])). I would like to be able to get the user name, and use that to index simple files for users. Is there something like AUTHENTICATED_USER['UserName']?? This is essentially the information that is returned if you try . However, if you try something like , it does not work. The only way I have been able to use this information so far is to put in a form, and pass it in a REQUEST to another page. But I want to be able to get this information directly. I have even tried REQUEST.set('myUser', AUTHENTICATED_USER) inthe header, but this has the same problem (unsurprisingly) as AUTHENTICATED_USER itself. Any hints? Thanks, JP From julian@zereau.net Tue Mar 2 13:06:21 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 13:06:21 -0000 (GMT) Subject: [Zope] calling a function with arguments? Message-ID: I want to call a function I have made, with arguments. 1) is there any way to call it direct, complete with module name? It would mean getting Zope to import that module. 2) I know I can put it in an external metod and use but it needs arguments, so I'll need to set and re-set the same DTML-namespace variable throughout the document, in which case, how do I alter/set DTML varibles from within DTML? --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 13:58:23 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 08:58:23 -0500 Subject: [Zope] AUTHENTICATED_USER Message-ID: <613145F79272D211914B0020AFF64019FD7A@GANDALF> > Does anyone have any more information on AUTHENTICATED_USER? > We saw a while > back that it has properties (AUTHENTICATED_USER.has_role(['Manager', > 'Editor'])). I would like to be able to get the user name, > and use that to > index simple files for users. Is there something like > AUTHENTICATED_USER['UserName']?? This is essentially the > information that is > returned if you try . However, > if you try > something like , it does not > work. AUTHENTICATED_USER itself is an object -- the reason gives you the user name is that it effectively does an str() on the user object. To work with the user name directly, you can use the getUserName() method of the user object: Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 13:49:14 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 08:49:14 -0500 (EST) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On Tue, 2 Mar 1999 julian@zereau.net wrote: > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same DTML-namespace > variable throughout the document, in which case, how do I alter/set DTML > varibles from within DTML? > I am not sure I understand your problem. Default arguments can be given in the definition of the function. If you need to pass a variable in an external method you can just do Additionally the self argument in the external method definition is replaced by the object (or containing folder) that calls the method so you have access to the namespace of the object through self. Pavlos From sfranke@cdc-group.com Tue Mar 2 14:05:25 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 15:05:25 +0100 Subject: [Zope] calling a function with arguments? Message-ID: <01E40461E003D21195CC0080296495D80B12B2@gates.cdc-group.com> julian@zereau.net wrote: > I want to call a function I have made, with arguments. > > 1) is there any way to call it direct, complete with module name? It > would mean > getting Zope to import that module. > Where is your function located? Is it an external method? In this case imports in the method's file work fine, but only inside Zope's search path (practically, the installation path and lib subdirectory). A good place to put your modules and packages is the lib//shared/ dir. > > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same > DTML-namespace > variable throughout the document, in which case, how do I alter/set > DTML > varibles from within DTML? > try (the quotation marks are important) Stefan From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From julian@zereau.net Tue Mar 2 14:12:48 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 14:12:48 -0000 (GMT) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On 02-Mar-99 Pavlos Christoforou wrote: > Thanks, this is exactly what I was looking for. --- Julian Morrison Programmer (Zereau Ltd) From mj@antraciet.nl Tue Mar 2 14:34:37 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 15:34:37 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <153C1D93564@sahara.cspt.es> Message-ID: <4.1.19990302144353.00ba8560@lisp.atmm.nl> At 14:23 02/03/99 , JP Glutting wrote: >Does anyone have any more information on AUTHENTICATED_USER? We saw a while >back that it has properties (AUTHENTICATED_USER.has_role(['Manager', >'Editor'])). I would like to be able to get the user name, and use that to >index simple files for users. Is there something like >AUTHENTICATED_USER['UserName']?? This is essentially the information that is >returned if you try . However, if you try >something like , it does not >work. > Use More hints linke this can be found in the User.py file in your lib/python/AccessControl directory. The following functions could be usefull: getUserName(self): Return the username of a user getRoles(self): Return the list of roles assigned to a user. getDomains(self): Return the list of domain restrictions for a user allowed(self, parent, roles=None): Check wether the user has access to parent hasRole(self, parent, roles=None): Check wether the user has the specified roles has_role(self, roles): Check wether the user has the specified roles allowed & hasRole are one and the same. When called with parent=None, it just returns wether the user has the named roles. has_role also checks for roles, but doesn't automatically include the Anonymous role. So, hasRole(None, 'Anonymous') always returns true, but has_role('Anonymous') returns false for every user that has been authenticated. Note that AUTHENTICATED_USER is always defined, also for anonymous access. Here is a little example of what you could do with these functions: Display user info You are the user named .

    You have the following roles:

  • You have no roles defined.

    You are allowed to log in from the following domains:

  • You can log in from any domain.

    You have the 'Manager' role.
    You have the 'Anonymous' role. You are therefore an anonymous user.
    You have the 'nonexistent' role.
    The last call to has_role is to show that the user defined in the 'access' file in the root folder of your Zope installation, has ALL roles, including non-existent ones. And even more interesting, the call to getRoles() will get you 'manage', a misspelled version of the 'Manager' role. This is probably the only way to reliably recognize the superuser. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Brian@digicool.com Tue Mar 2 15:08:47 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 10:08:47 -0500 Subject: [Zope] Re: [Crew] External Methods? Message-ID: <613145F79272D211914B0020AFF64019FD7B@GANDALF> > I understand the security problems inherent in > ExternalMethods; unfortunately, > without them, Zope is merely an "also-ran" in the web > applicaton race, from my > perspective. DTML in isolation is not an "ASP-killer." > > I'm CC'ing the Zope list, in hopes that someone there can > either allay or slay > our fears. > > It seems to me that the security problem is that > ExternalMethods can get access > to "sibling objects" of the object on which they are invoked, > right? I mean, if > we could make the siblings inaccessible, and acquired > properties read-only, then > we should be ok, no? Ugh, I don't grok acquisition well > enough to tackle that > myself, I fear. Well, it's actually deeper than that. You are correct in saying that DTML alone is not an ASP-killer. Consider the similarities between Zope and, for example, ASP/COM (though the same holds true for practically any other system as well): ASP lets you use the services provided by (COM) objects, which may be provided by the server or provided independently. I'm sure that MS tries to make the server-provided objects fairly safe, but there is _nothing_ stopping a programmer from writing and installing a COM object with an evil() method that wipes out your C: drive, except the fact that presumably the sysadmin exercises some control over making these independent services available. The same holds true for Zope (and any other app server out there). Like ASP/COM, External Methods give you the ability to provide more powerful services for use by your application. It also gives you exactly the same problems (though I'm sure that evil() method could be developed in a quarter of the time in Python :) Basically, with power comes responsibility, and I can't really imagine any system that could _safely_ allow possibly-untrusted people to write (basically) arbitrary code. It's not even really a matter of what services are or are not available to those people. I'm sure that many, many hours and much brain-power went into the design of Java's security mechanisms. Even so, if I were a web site manager I still couldn't let untrusted users write their own arbitrary java code to run in my web or app server. Even after I had figured out a way to wall off every service I could think of that could possibly be harmful, the user could still probably just do the Java equivalent of: while 1: pass Zope DTML goes to a good deal of trouble to minimize these problems in DTML itself, and we would certainly consider any concrete ideas on how to make External Methods safer. Can you give me some examples of other app servers that you feel deal with safety of external services in a better way? I'd be happy to do some looking into how others are dealing with this. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From michel@digicool.com Tue Mar 2 15:18:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:18:30 -0500 Subject: [Zope] Help with editing Product dtml files Message-ID: <613145F79272D211914B0020AFF6401907BABA@GANDALF> > -----Original Message----- > From: Piers Lauder [mailto:piers@cs.su.oz.au] > Sent: Tuesday, March 02, 1999 1:54 AM > To: Zope Mailinglist > Subject: [Zope] Help with editing Product dtml files > > > I'm making a Zope "Product" for managing and creating student surveys > (which I hope to contribute via zope.org) but I'm having > trouble with a > couple of techniques: > > 1. How does one enable a dtml file that is instantiated as in > my_dtml = HTMLFile('my', globals()) > available for editing in the products' management screen? > Make your Product a Folderoid (zopespeak for a Folder Object) that contains it's own user interface which the manager can edit. Your __init__ function initially loads the documents off disk into the Folder. Confera and NotMail both do this (Confera does it a little smarter). > There's probably more to this - as at the moment the management > screen goes straight to the "index_html" form as with the "Poll" > Product. > > 2. What's the approved way to catch database errors in methods? > I'll let someone who has more experience with those areas answer this one. :) > I'm creating tables on the fly, and need to check if the table > exists before trying to create it. (I'd use a "tables" method if > all the database interfaces supported it. I'd also use > a try/except > but the database objects have different names for their > exceptions.) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From julian@zereau.net Tue Mar 2 15:17:00 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 15:17:00 -0000 (GMT) Subject: [Zope] Re: [Crew] External Methods? In-Reply-To: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: On 02-Mar-99 Brian Lloyd wrote: > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. There absolutely does need to be an "unprotected mode" available though - the system designers might *need* it to do scary destructive things like deleting files. Zope should not get in the way. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 15:34:35 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 10:34:35 -0500 (EST) Subject: [Zope] Zope needs a FAQ. Message-ID: Zopistas Seems that the activity on the Zope list has exploded. A lot of the questions I read in the posts have been raised many times in the past. I believe a FAQ on the Zope site is neccessary. Do the folks at digital creations have time to set it up? Pavlos From michel@digicool.com Tue Mar 2 15:54:18 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:54:18 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BABB@GANDALF> > -----Original Message----- > From: Martijn Pieters [mailto:mj@antraciet.nl] > Sent: Tuesday, March 02, 1999 9:35 AM > To: JP Glutting; zope@zope.org > Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. > > This is an excellent post. I want to add that _getPassword() is a handy function also if you want to use your Zope user to authenticate into an external system, like POP3 or IMAP. -Michel > Use > > More hints linke this can be found in the User.py file in your > lib/python/AccessControl directory. > > The following functions could be usefull: > > getUserName(self): Return the username of a user > getRoles(self): Return the list of roles assigned to a user. > getDomains(self): Return the list of domain restrictions for a user > allowed(self, parent, roles=None): Check wether the user has > access to parent > hasRole(self, parent, roles=None): Check wether the user has > the specified > roles > has_role(self, roles): Check wether the user has the specified roles > > allowed & hasRole are one and the same. When called with > parent=None, it > just returns wether the user has the named roles. has_role > also checks for > roles, but doesn't automatically include the Anonymous role. So, > hasRole(None, 'Anonymous') always returns true, but > has_role('Anonymous') > returns false for every user that has been authenticated. > > Note that AUTHENTICATED_USER is always defined, also for > anonymous access. > > Here is a little example of what you could do with these functions: > > Display user info > You are the user named .

    > > > You have the following roles: > > >

  • > > > You have no roles defined. > >

    > > > You are allowed to log in from the following domains: > > >

  • > > > You can log in from any domain. > >

    > > > You have the 'Manager' role.
    > > > > You have the 'Anonymous' role. You are therefore an anonymous > user.
    > > > > You have the 'nonexistent' role.
    > > > > The last call to has_role is to show that the user defined in > the 'access' > file in the root folder of your Zope installation, has ALL > roles, including > non-existent ones. And even more interesting, the call to > getRoles() will > get you 'manage', a misspelled version of the 'Manager' role. This is > probably the only way to reliably recognize the superuser. > > > -- > M.J. Pieters, Web Developer > | Antraciethttp://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From bkc@murkworks.com Tue Mar 2 14:42:43 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 10:42:43 -0400 Subject: [Zope] ZServer and MSIE (long & detailed) In-Reply-To: Message-ID: <199903021536.KAA27681@anvil.murkworks.com> On 1 Mar 99, at 20:36, Dave G wrote: > Has anyone else experienced a problem getting Explorer to connect with > Zserver? I have no problem with any version of Navigator but MSIE 3.01 > and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an > "error with Explorer's internet extensions has failed". Edit Zserver/medusa/http_server.py around line 55, change to: use_chunked = 0 Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From Armin.Tschammer@oi42.kwu.siemens.de Tue Mar 2 15:53:07 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Tue, 02 Mar 1999 16:53:07 +0100 Subject: [Zope] ZPublisher or Bobo and stdout Message-ID: <36DC0962.7996940D@oi42.kwu.siemens.de> Hi, The followowing problem seems very fundamental to me. I already did a post to this group to this topic and I got the following answer: On Wed, 13 Jan 1999, Dr. Armin Tschammer wrote: > I publish the following Modul with Bobo: > Very simple: > > hello.py: > > import sys, os, time > import DocumentTemplate > > lib=sys.path[0] > sys.path.append(os.path.join(lib,'DT')) > > def hello(): > "Display a greeting" > # print "rrr" > X3 = DocumentTemplate.HTMLFile(lib+'/hello.dtml') > return X3() > Now, when I make the commentated line print "rrr" active, I get > Internal Server Error The "print" goes directly to the webserver, which confused it: it expects HTTP headers like "HTTP/1.0 200 Okay". The "return" sends your data to *Zope*, which then does the header stuff for you. Same with cookies, content-type, etc. Summary: dont use 'print', or redirect stdout to a log file. Now the problem is deeper, what shall I do when I am import C++ Modules in Python ( extending Python), and that modules are writing to the stdout via "cout" or "printf", I have no influence to that. If I change the stdout via "freopen( "file, "wr", stdout )" or stuff like that, I have no chance to switch back to the *real* stdout ( look at the c-faq of comp.lang.c ), and I *have to* switch back because of the cgi-mechnism, which uses ZPublisher. The only the chance to handle stuff like that is to work with two processes in the Zopemechanism. A Zopeserver which tells the Zope Client to start a pythonfunction. Now all stdout happens on the client and the server listen for a string on a socket ( or something similar ). Now when the server gets the string it does all necessary wrapping ( content-type and so on ), and send it to the Xserver via its stdout. Or is there a less complicate solution ? Thanks in advance Armin From Paul@digicool.com Tue Mar 2 16:04:31 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 11:04:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E37@GANDALF> raver wrote: > I give up! That's unfortunate, but we understand. Getting *anything* to work with Apache's mod_rewrite module is quite a chore. It doesn't help that distributions like RedHat 5.2 ship it in a broken way, then people blame us for it, then we track down a problem that is completely outside Zope. Did you follow the recommendations to start with the built-in webserver before trying integrate with Apache? If so, did that work? --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From mj@antraciet.nl Tue Mar 2 16:04:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 17:04:41 +0100 Subject: [Zope] Zope needs a FAQ. In-Reply-To: Message-ID: <4.1.19990302165933.00bd1160@lisp.atmm.nl> At 16:34 02/03/99 , Pavlos Christoforou wrote: >Zopistas > >Seems that the activity on the Zope list has exploded. A lot of the >questions I read in the posts have been raised many times in the past. I >believe a FAQ on the Zope site is neccessary. > >Do the folks at digital creations have time to set it up? > >Pavlos > I believe this is allready under construction: http://www.zope.org/Community/Services By far from incomplete, but it is the right direction. I think Amos' FAQ tool should be utilized there somewhere, and maybe some people from this list willing to help out DC should fill it in, because it looks like Ken Manheimer (who has been charged with community communications) allready seems overloaded. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From bkc@murkworks.com Tue Mar 2 15:05:41 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 11:05:41 -0400 Subject: [Zope] Request.py and duplicate column names In-Reply-To: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Message-ID: <199903021559.KAA27718@anvil.murkworks.com> On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > 1. When trying to do a join (a lazy query, I know) like: > > select a.*, b.* > from tablea a, tableb b > where a.b_id=a.id What about select * from tablea a, tableb b where a.b_id=a.id Wouldn't this give you vars called a.id and b.id? Hmmm... I bet Zope won't like that. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From julian@zereau.net Tue Mar 2 16:19:38 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 16:19:38 -0000 (GMT) Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: On 02-Mar-99 Michel Pelletier wrote: > > This is an excellent post. I want to add that _getPassword() is a handy > function also if you want to use your Zope user to authenticate into an > external system, like POP3 or IMAP. It occurs to me that a DTML document could contain this in a transparent sendmail form, assuming there is already a handy Mailhost set up, to capture and mail off the password of anyone browsing the page... --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 16:34:26 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 11:34:26 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF64019FD7C@GANDALF> > > This is an excellent post. I want to add that > _getPassword() is a handy > > function also if you want to use your Zope user to > authenticate into an > > external system, like POP3 or IMAP. > > It occurs to me that a DTML document could contain this in a > transparent > sendmail form, assuming there is already a handy Mailhost set > up, to capture > and mail off the password of anyone browsing the page... Not really -- you can't access _getPassword() from DTML. You would have to write an external method to do that (which implies that you have access to the filesystem, and could get the passwords anyway if you wanted them that bad...) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From zopelist@regalint.com Tue Mar 2 16:37:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 11:37:27 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: While we are on the subject of AUTHENTICATED_USER, I would like my users to be able to "logout" so that they then become anonymous again. Any ideas? I have seen this on Dejanews. It would be useful so that authorized users don't leave themselves logged in if they don't quit Netscape. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From chris.hunter@humancode.com Tue Mar 2 16:45:56 1999 From: chris.hunter@humancode.com (Chris Hunter) Date: Tue, 02 Mar 1999 10:45:56 -0600 Subject: [Zope] Request.py and duplicate column names References: <199903021559.KAA27718@anvil.murkworks.com> Message-ID: <36DC15C4.5527844D@humancode.com> Brad Clements wrote: > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > 1. When trying to do a join (a lazy query, I know) like: > > > > select a.*, b.* > > from tablea a, tableb b > > where a.b_id=a.id Is there any chance that you're trying to do something like: select * from a, b where a.b_id = b.id ^ Note that I'm joining a field in a to a field in b here (not 2 fields in a) Hope this helps. --chris From M.Faassen@vet.uu.nl Tue Mar 2 16:45:22 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:45:22 +0100 Subject: [Zope] Zope needs a FAQ. References: <4.1.19990302165933.00bd1160@lisp.atmm.nl> Message-ID: <36DC15A2.39FC35C6@pop.vet.uu.nl> Martijn Pieters wrote: > > At 16:34 02/03/99 , Pavlos Christoforou wrote: > > >Seems that the activity on the Zope list has exploded. A lot of the > >questions I read in the posts have been raised many times in the past. I > >believe a FAQ on the Zope site is neccessary. [snip] > I believe this is allready under construction: > http://www.zope.org/Community/Services > > By far from incomplete, but it is the right direction. I think Amos' FAQ tool > should be utilized there somewhere, and maybe some people from this list > willing to help out DC should fill it in, because it looks like Ken Manheimer > (who has been charged with community communications) allready seems overloaded. More generally speaking, we should be organizing the Zope documentation project. There was word of it before, but haven't heard much on it recently. In fact, the messages that I can find in my mailbox on it is people saying we should start such a project :). I'd obviously be very useful. As an example: I myself have sent some (obscure) questions to the list the week before last, and have only managed to receive an answer that confused me more (I welcomed the answer though, of course!). I sent more questions and observations last week, but haven't received answers yet (perhaps it's because I'm doing something fundamentally wrong with Zope but I'd like to hear it if that's so). Of course I'd like to see my questions answered. A FAQ would help filter out all the less obscure questions so that my obscure questions might get answers. :) So, the Zope Communication Project (hereby started if it doesn't exist yet, this is open source after all :) should make its first priority to create a fairly exhaustive FAQ. I currently have some time to invest in the ZDP (he said, tempting fate; work's slow right now, but this can change quickly). Anyway, I'll help. If only with the *questions* side of the FAQ, perhaps, but I can help. :) Initial Plan of Action for the ZDP: - Produce a fairly exhaustive FAQ, mining the mailing list for good questions and answers. - Organize the ZDP itself. :) Regards, Martijn From Dave.Goodrich@Premera.com Tue Mar 2 16:51:53 1999 From: Dave.Goodrich@Premera.com (Dave Goodrich) Date: Tue, 2 Mar 1999 08:51:53 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: <1DBBCA4F9A86D21196BB0008C7A48FD6041A2A@MLTRD31> (Dummy Dummy Dummy......) I should have known that, it was a stumbling block with Mac cgi's, but I never noticed it when I checked http_server.py. I imagine that will fix it. It's the little stuff that gets ya, thanks. DAve. > -----Original Message----- > From: Brad Clements [mailto:bkc@murkworks.com] > Sent: Tuesday, March 02, 1999 6:43 AM > To: Dave G; zope@zope.org > Subject: Re: [Zope] ZServer and MSIE (long & detailed) > > > On 1 Mar 99, at 20:36, Dave G wrote: > > > Has anyone else experienced a problem getting Explorer to > connect with > > Zserver? I have no problem with any version of Navigator > but MSIE 3.01 > > and 4.0 and 4.5 for both Mac and Windows throw up an error > box claiming an > > "error with Explorer's internet extensions has failed". > > > Edit Zserver/medusa/http_server.py > > around line 55, change to: > > use_chunked = 0 > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 > From M.Faassen@vet.uu.nl Tue Mar 2 16:54:16 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:54:16 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Hi there, Hereby I announce in absolute adhoc anarchistic fashion the Zope Documentation Project. The Zope Documentation Project aims to generate documention on anything Zope. The Zope Documentation Project needs people who wants to help. It needs these people to get organized. To get focused, I propose the ZDP's initial project is to provide FAQs on various Zope topics. We can mine the mailing list for good questions and answers. The ZDP asks everybody to contribute. Right now we need everything. :) We need questions and answers, and we need to categorize these in separate FAQ sections. We need Zope webspace somewhere to put up the FAQ, I assume using the FAQ product. We need to develop the FAQ product further, if necessary. We need whatever you can think of. The prime mean of communications for the ZDP is the Zope mailing list, until further notice. I suggest that to keep the mailing list somewhat organized we prepend our mailing list subjects with '[ZDP]'. If somebody has a better way, we'll do it a better way. Note that while I'm sending out this message, I'm not anything official. I'm just attempting to get the ball rolling. *nudges the ball* Regards, Martijn From wmlph@d033.ml.uwcm.ac.uk Tue Mar 2 17:01:20 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 2 Mar 1999 17:01:20 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Yay, Martin. Cheers from all involved. Phil ----- Original Message ----- From: Martijn Faassen To: Sent: Tuesday, March 02, 1999 4:54 PM Subject: [Zope] [ZDP] Announcing the Zope Documentation Project >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > >The Zope Documentation Project needs people who wants to help. It needs >these people to get organized. > >To get focused, I propose the ZDP's initial project is to provide FAQs >on various Zope topics. We can mine the mailing list for good questions >and answers. > >The ZDP asks everybody to contribute. Right now we need everything. :) >We need questions and answers, and we need to categorize these in >separate FAQ sections. We need Zope webspace somewhere to put up the >FAQ, I assume using the FAQ product. We need to develop the FAQ product >further, if necessary. We need whatever you can think of. > >The prime mean of communications for the ZDP is the Zope mailing list, >until further notice. I suggest that to keep the mailing list somewhat >organized we prepend our mailing list subjects with '[ZDP]'. If somebody >has a better way, we'll do it a better way. > >Note that while I'm sending out this message, I'm not anything official. >I'm just attempting to get the ball rolling. > >*nudges the ball* > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From robin@alldunn.com Tue Mar 2 17:14:51 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 09:14:51 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. Message-ID: <008601be64d0$33854620$8725d2d1@rogue.jenkon-dev.com> > >The objects that make up the product should normally be automaticly >decompressed and imported into Zope, but the decrompressing seems to be >failing. > Could it be a 1.5.1 vs 1.5.2b2 thing? I have 1.5.1 and it failed for me. Is the zlib.pyd in 1.5.2 based on a newer version of the zlib library that may not be forward compatible? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From oyvindmo@pvv.ntnu.no Tue Mar 2 18:14:07 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:14:07 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) Message-ID: Trying to get started with Zope on a FreeBSD machine. I did the following: * Downloaded source distribution of Zope-1.10.2 * Extracted it * cd into directory and ran 'python wo_pcgi.py' (no error messages) * ./start I then get the following in var/serve.log (slightly edited for slightly more readability): Traceback (innermost last): File "serve.py", line 90, in ? ZopeHTTPServer.main(sys.argv[1:]+[os.path.join(os.getcwd(),'lib','python','Main.py')]) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/Main.py", line 90, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/__init__.py", line 99, in ? import SingleThreadedTransaction, Persistence, PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SingleThreadedTransaction.py", line 110, in ? from PickleDictionary import PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/PickleDictionary.py", line 91, in ? import marshal,time,Persistence,SimpleDB, PickleJar File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", line 104, in ? from cPickle import Pickler, Unpickler ImportError: /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I don't have any experience with Zope or even Python, but am I right in guessing that this looks like a problem with the python binary and not with Zope? Any ideas to precisely what the problem might be? python is v1.5.1. C compiler used is gcc 2.7.2.x. -- Øyvind Møll oyvindmo@pvv.ntnu.no From raver@box.dust.za.net Tue Mar 2 18:29:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 2 Mar 1999 19:29:03 +0100 Subject: [Zope] Zope and Apache - MADE IT! In-Reply-To: <613145F79272D211914B0020AFF640190D9E37@GANDALF>; from Paul Everitt on Tue, Mar 02, 1999 at 11:04:31AM -0500 References: <613145F79272D211914B0020AFF640190D9E37@GANDALF> Message-ID: <19990302192903.A5042@RaVER.duck.org> On Tue, Mar 02, 1999 at 11:04:31AM -0500, Paul Everitt wrote: > > raver wrote: > > I give up! > > That's unfortunate, but we understand. Getting *anything* to work with > Apache's mod_rewrite module is quite a chore. It doesn't help that > distributions like RedHat 5.2 ship it in a broken way, then people blame > us for it, then we track down a problem that is completely outside Zope. > > Did you follow the recommendations to start with the built-in webserver > before trying integrate with Apache? If so, did that work? > > --Paul > > Paul Everitt Digital Creations > paul@digicool.com 540.371.6909 > I finally got it working - just couldn't get it off my mind. Was kinda mindblowing the whole thing but finally - YES I MADE IT! :) What I did was to jump off the mod_rewrite thing and try let apache handle the authentication all together. At first I didn't know of the htpasswd binary (stupid as I am) so things didn't work at first. Then htpasswd lit my eyes - did the 'htpasswd -c' thing and ended up with a working AuthUserFile. Now the trick was to configure the damned thing in httpd.conf - this worked out ok: """ ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" AllowOverride None Options FollowSymLinks ExecCGI Order allow, deny Allow from all AddHandler cgi-script .cgi AuthType Basic AuthName Zope-in AuthUserFile /usr/local/apache/conf/zope_auth require valid-user # 'zope_auth' created with htpasswd -c /usr/local/apache/conf/zope_auth \ 'username' """ Actually - just like the manual tells me to. I did some wrong links and generally fucked things up. Thanks for keeping me going at least (that goes to all U ppl answering me) - sorry for taking up your time. Sture Lygren Sture Lygren From zopelist@regalint.com Tue Mar 2 18:25:51 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 13:25:51 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: Excellent! Maybe one of the Web Hosts who offer Zope hosting would be interested in the excellent public relations derived from hosting the ZDP. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Tue Mar 2 18:34:14 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 13:34:14 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: ; from Philip Aylesworth on Tue, Mar 02, 1999 at 01:25:51PM -0500 References: Message-ID: <19990302133414.09101@amber.org> On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > Excellent! > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > the excellent public relations derived from hosting the ZDP. > If not, I can probably provide resources (within reason :-) for this. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From oyvindmo@pvv.ntnu.no Tue Mar 2 18:44:16 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:44:16 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) In-Reply-To: References: Message-ID: * Oyvind Moll | | Trying to get started with Zope on a FreeBSD machine. [snip] | I then get the following in var/serve.log (slightly edited for | slightly more readability): [snip] | | File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", | line 104, in ? | from cPickle import Pickler, Unpickler | ImportError: | /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I discovered that my python binary was compiled without thread support. I think this is the case for many FreeBSD machines which haven't been updated recently-ish; maybe the ZDPers could mention this in a FAQ or something. Could the build script(s) check for proper thread support upon building? -- Øyvind Møll oyvindmo@pvv.ntnu.no From rob.page@digicool.com Tue Mar 2 18:58:27 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 2 Mar 1999 13:58:27 -0500 Subject: [Zope] RFQ: Upgd Netscape 2.x auth patch to Netscape 3.5.x Message-ID: <613145F79272D211914B0020AFF64019069109@GANDALF> Hello everyone: Some of you may know that many moons ago we (Brian) developed a plug-in for Netscape Enterprise Server (ES) 2.x (and FastTrack -- based on the same libraries) that addressed Netscape's nasty habit of removing authenticated_user information from the environment before calling CGI apps. Obviously, this has a deleterious effect on interesting zope applications. Fortunately (?), we are up to our armpits in projects and initiatives. As a result, we need someone to do a bit of work to upgrade the plug-in from ES 2.x to ES 3.5.x. I can provide the following files from our 2.x incarnation: o plug-in source code o obj.conf o magnus.conf The source code is only 153 lines of generously formatted C (w/lots of defs) so I'm hopeful that this isn't a HUGE task. I'm interested in hearing quotes from people in the community that have experience with the NSAPI and would, for a reasonable fee, develop, compile (Solaris 2.6 and NT4) and test an upgraded plug-in. The work would be contributed back under the ZPL. Naturally, I'd also entertain offers from people to do this for free! :^) --Rob P.S. - I KNOW there are some NSAPI wizards out there so don't be shy! -- Rob Page V: 540 371 6909 Digital Creations http://www.digicool.com From jae@kavi.com Tue Mar 2 19:41:57 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:41:57 -0800 (PST) Subject: [Zope] ZPublisher or Bobo and stdout In-Reply-To: <36DC0962.7996940D@oi42.kwu.siemens.de> Message-ID: On Tue, 2 Mar 1999, Dr. Armin Tschammer wrote: > Or is there a less complicate solution ? How about Mr. Creosote. This is a wonderful little utility from Jeff Bauer. It basically an example implementation of socket datagrams... ie. it lets you print out via a socket to a little server program. Its great for debugging Zope/Bobo apps. Here's Mr. Creosote's web page for more info... http://starship.python.net/crew/jbauer/creosote/index.html --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tseaver@palladion.com Tue Mar 2 19:43:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 13:43:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: <36DC3F4E.C7D86C0E@palladion.com> Brian Lloyd wrote: > > > > > > It seems to me that the security problem is that > > ExternalMethods can get access > > to "sibling objects" of the object on which they are invoked, > > right? I mean, if > > we could make the siblings inaccessible, and acquired > > properties read-only, then > > we should be ok, no? Ugh, I don't grok acquisition well > > enough to tackle that > > myself, I fear. > > Well, it's actually deeper than that. You are correct in saying > that DTML alone is not an ASP-killer. Consider the similarities > between Zope and, for example, ASP/COM (though the same holds true > for practically any other system as well): Please don't ge me wrong: I _like_ ExternalMethod / Product as a way to extend Zope. My comment is in the context of not (currently) being able to add ExternalMethods to my Zope demesne on starship, given the (quite legitimate) security concerns of the Zopemeister. > > ASP lets you use the services provided by (COM) objects, which may > be provided by the server or provided independently. I'm sure that > MS tries to make the server-provided objects fairly safe, but there > is _nothing_ stopping a programmer from writing and installing a COM > object with an evil() method that wipes out your C: drive, except the > fact that presumably the sysadmin exercises some control over making > these independent services available. I looked at the ExternalMethod source last night a bit: the actual method execution is done via an apply() call, after loading and compiling the code for the function. We might be able to come up with an alternate product which used a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python code stored in the Zbase itself. The particulars of my case are that the control structures of DTML are not quite powerful enough to accomplish my task; of course, strengthening them, even in a "sandbox" model, still leaves open the possibility for buggy/malicious code to do ugly things (like your example below). > > The same holds true for Zope (and any other app server out there). > Like ASP/COM, External Methods give you the ability to provide more > powerful services for use by your application. It also gives you > exactly the same problems (though I'm sure that evil() method could > be developed in a quarter of the time in Python :) > > Basically, with power comes responsibility, and I can't really imagine > any system that could _safely_ allow possibly-untrusted people to write > (basically) arbitrary code. It's not even really a matter of what services > are or are not available to those people. I'm sure that many, many hours > and much brain-power went into the design of Java's security mechanisms. > Even so, if I were a web site manager I still couldn't let untrusted > users write their own arbitrary java code to run in my web or app > server. > > Even after I had figured out a way to wall off every service I could > think of that could possibly be harmful, the user could still probably just do > the Java equivalent of: > > while 1: > pass > > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. Any Turing machine can do "while 1: pass", so no sufficiently general syntax is "safe" from this attack. Actually, the possibility which seemed most interesting was Doug Wyatt's suggestion of "federating" a set of independent Zbases under one (at least apparently one) server. Then any damage my ExternalMethod did would be to the Zbase would be on my own head, at least. If that server were actually a process running as me, then standard system security procedures should probably be fine. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jae@kavi.com Tue Mar 2 19:50:50 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:50:50 -0800 (PST) Subject: [Zope] ZMySQLDA installation In-Reply-To: <36DB1478.E2D7915E@avalongroup.net> Message-ID: On Mon, 1 Mar 1999, Timothy Grant wrote: > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: Which distribution are you using? > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it right. > I then downloaded the ZMySQLDA from the Zope site. You might want to consider switching to one of the official binary kits available from MySQL's homepage. MySQL is notoriously picky about how it is compiled. > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 Looks like you didn't install the development libraries for python (python-devel or python-dev). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From petrilli@amber.org Tue Mar 2 19:56:03 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 14:56:03 -0500 Subject: [Zope] Re: External Methods? In-Reply-To: <36DC3F4E.C7D86C0E@palladion.com>; from Tres Seaver on Tue, Mar 02, 1999 at 01:43:10PM -0600 References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> Message-ID: <19990302145603.03234@amber.org> On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > I looked at the ExternalMethod source last night a bit: the actual method > execution is done via an apply() call, after loading and compiling the code for > the function. We might be able to come up with an alternate product which used > a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python > code stored in the Zbase itself. This was an idea I'd proffered, but honestly haven't looked at enough yet to know whether it would work... it SHOULD work, but it might require some modifications to the aquisition code, but I've not looked neough yet. > The particulars of my case are that the control structures of DTML are not quite > powerful enough to accomplish my task; of course, strengthening them, even in a > "sandbox" model, still leaves open the possibility for buggy/malicious code to > do ugly things (like your example below). Well, it might help if you offered what control strucuture you need, we might be able to come up wit han interim solution. > Actually, the possibility which seemed most interesting was Doug Wyatt's > suggestion of "federating" a set of independent Zbases under one (at least > apparently one) server. Then any damage my ExternalMethod did would be to the > Zbase would be on my own head, at least. If that server were actually a process > running as me, then standard system security procedures should probably be fine. > TO me this is just a hack to get around it near term, and doesn't fix the problem. Also if you have 100 users, do you have 100 instances of zope running under 1 ZServer? That sounds like a true administrative nightmare... And substantial overkill. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rwolff@noao.edu Tue Mar 2 20:12:36 1999 From: rwolff@noao.edu (Richard Wolff) Date: Tue, 2 Mar 1999 13:12:36 -0700 Subject: [Zope] FTop level name Message-ID: <199903022012.NAA27462@daikon.tuc.noao.edu> This feels so dumb but: How do I change the manage page so it says, for example, "Plutonia" next to the top folder, instead of "Zope"? From tseaver@palladion.com Tue Mar 2 20:16:27 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 14:16:27 -0600 Subject: [Zope] Re: [Crew] Re: External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> <19990302145603.03234@amber.org> Message-ID: <36DC471B.686654F9@palladion.com> Christopher G. Petrilli wrote: > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > The particulars of my case are that the control structures of DTML are not quite > > powerful enough to accomplish my task; of course, strengthening them, even in a > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > do ugly things (like your example below). > > Well, it might help if you offered what control strucuture you need, we > might be able to come up wit han interim solution. Ok, the "teeth-cutting" example I am trying to implement generates math-facts problems for my five year old. In Python, two trivial functions: I _think_ this one is easy in DTML: def problem( max_term, operators ) : """ Generate a single math-fact problem whose terms are within range( max_term + 1 ), using one of the supplied operators. """ lhs = random.randrange( max_term + 1 ) rhs = random.randrange( max_term + 1 ) operation = operators[ random.randrange( len( operators ) ) ] return ( lhs, operation, rhs ) But not this one: def gen_problem( max_term, operators ) : """ Generate a math-fact problem whose terms and results are all within range( max_term ), using the supplied operators. """ while 1 : # Arbitrary looping! (could benefit from # the dreaded assignment-in-conditional :) probStr = "%d %s %d" % problem( max_term, operators ) result = eval( probStr ) if 0 <= result and result <= max_term : return probStr And of course, the DTML syntax for something like this is going to be ugly. > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > suggestion of "federating" a set of independent Zbases under one (at least > > apparently one) server. Then any damage my ExternalMethod did would be to the > > Zbase would be on my own head, at least. If that server were actually a process > > running as me, then standard system security procedures should probably be fine. > > > > TO me this is just a hack to get around it near term, and doesn't fix > the problem. Also if you have 100 users, do you have 100 instances of > zope running under 1 ZServer? That sounds like a true administrative > nightmare... And substantial overkill. One instance per "sandbox", not one per user (although on starship this is a distinction without a difference). The "content manager only" applications will do fine in a single Zope instance, as now. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Jose.Lacal@icn.siemens.com Tue Mar 2 21:02:05 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 2 Mar 1999 16:02:05 -0500 Subject: [Zope] Zope 1.10.2 dies every so often. Message-ID: <85256728.007360D6.00@li01.lm.ssc.siemens.com> Folks: My installation of Zope 1.10.2 dies every so often, from once a week to twice a day (like today). I am running Red Hat 5.0 on a 486 / 32 Mb RAM. I upgraded from Zope 1.9.0 to 1.10.2 /var/server.errors says: WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006. brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:46] "GET /documents/portable.pdf HTTP/1.1" 200 - Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:47] "GET /documents/portable.pdf HTTP/1.1" 200 -Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+ IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:54] "GET /documents/portable.pdf HTTP/1.1" 200 - Obviously I have something wrong here. Any ideas? TIA. From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 21:00:18 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 16:00:18 -0500 (EST) Subject: [Zope] Re: [Crew] Re: External Methods? In-Reply-To: <36DC471B.686654F9@palladion.com> Message-ID: In my experience many situations where external methods are needed do not require access to the Zope data tree, like the math test example you presented. One approach is to use a second server that does XML-RPC (Fredrik Lundh has already written a client and a simple server) and set an account/folder where everybody can upload their scripts and access them through XML-RPC calls from their Zope environment. I suppose we can write a product that provides the client site of the XML-RPC based on Fredrik's implementation. As for the server site Jim once mentioned that the support should go in ZPublisher but initially a simple server based on python standard libraries will be adequate. Or use the newly released asyncore libs though I suspect a multithreading server will be better in this situation. If however one requires access to the 'self' argument of an external method such an approach will not be adequate. Usually though one can collect the relevant parameters by using DTML calls and send them to the XML-RPC server for processing. Pavlos On Tue, 2 Mar 1999, Tres Seaver wrote: > Christopher G. Petrilli wrote: > > > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > > > The particulars of my case are that the control structures of DTML are not quite > > > powerful enough to accomplish my task; of course, strengthening them, even in a > > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > > do ugly things (like your example below). > > > > Well, it might help if you offered what control strucuture you need, we > > might be able to come up wit han interim solution. > > Ok, the "teeth-cutting" example I am trying to implement generates math-facts > problems for my five year old. In Python, two trivial functions: > > > I _think_ this one is easy in DTML: > > def problem( max_term, operators ) : > """ Generate a single math-fact problem whose terms are within > range( max_term + 1 ), using one of the supplied operators. > """ > lhs = random.randrange( max_term + 1 ) > rhs = random.randrange( max_term + 1 ) > operation = operators[ random.randrange( len( operators ) ) ] > return ( lhs, operation, rhs ) > > But not this one: > > def gen_problem( max_term, operators ) : > """ Generate a math-fact problem whose terms and results are all within > range( max_term ), using the supplied operators. > """ > > while 1 : # Arbitrary looping! (could benefit from > # the dreaded assignment-in-conditional :) > > probStr = "%d %s %d" % problem( max_term, operators ) > result = eval( probStr ) > > if 0 <= result and result <= max_term : > return probStr > > And of course, the DTML syntax for something like this is going to be ugly. > > > > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > > suggestion of "federating" a set of independent Zbases under one (at least > > > apparently one) server. Then any damage my ExternalMethod did would be to the > > > Zbase would be on my own head, at least. If that server were actually a process > > > running as me, then standard system security procedures should probably be fine. > > > > > > > TO me this is just a hack to get around it near term, and doesn't fix > > the problem. Also if you have 100 users, do you have 100 instances of > > zope running under 1 ZServer? That sounds like a true administrative > > nightmare... And substantial overkill. > > One instance per "sandbox", not one per user (although on starship this is a > distinction without a difference). The "content manager only" applications will > do fine in a single Zope instance, as now. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From aaron@cs.rutgers.edu Tue Mar 2 21:10:50 1999 From: aaron@cs.rutgers.edu (Aaron Watters) Date: Tue, 2 Mar 1999 16:10:50 -0500 (EST) Subject: [Zope] Re: [Crew] Re: [Zope] Re: [Crew] Re: External Methods? Message-ID: <199903022110.QAA22581@athos.rutgers.edu> Suggestion: for python-python data transfer and storage XML-RPC is overkill. Python already has marshal which will be a lot faster and I think do the same thing. Also, if you haven't, please have a look at what I did using gadfly and cgi. I know it's more conventional and hence boring, but nevertheless... http://starship.skyport.net/crew/aaron_watters/kwParsing/chatcgi.cgi (source included). -- Aaron Watters From robin@alldunn.com Tue Mar 2 21:25:20 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 13:25:20 -0800 Subject: [Zope] Setting properties based on security Message-ID: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> I have a folder with various boolean properties associated with it which are accessed by the dtml docs as flags for enabling or disabling content. Turn off the flag and a chunk of the page goes away when it is next viewed. This works great, but I would like to associate that behaviour with the security attributes. In other words, when somebody in the Anonymous role is viewing objects in the folder the properties should be unset, but when users in the manager (or some other specific role) view the pages then the properties should be set and those parts of the pages are activated. How can this be done? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From klm@digicool.com Tue Mar 2 20:14:58 1999 From: klm@digicool.com (Ken Manheimer) Date: Tue, 2 Mar 1999 15:14:58 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF640190BED65@GANDALF> Martijn Faassen wrote: > Hereby I announce in absolute adhoc anarchistic fashion the Zope > Documentation Project. The Zope Documentation Project aims to generate > documention on anything Zope. Thank you, Martijn, you've made my day! This is extremely cool. As you might expect, here at digicool we're yearning to produce more and better documentation, and, as with other things, we want to have more time and energy to do it than we do. This kind of effort from you, and from anyone else who can help, is *severely* appreciated. I know i'll be participating - question is, besides scraping together the time we can, how else can digicool help? Some thoughts, below... > The Zope Documentation Project needs people who wants to help. It needs > these people to get organized. > > To get focused, I propose the ZDP's initial project is to provide FAQs > on various Zope topics. We can mine the mailing list for good questions > and answers. > > The ZDP asks everybody to contribute. Right now we need everything. :) > We need questions and answers, and we need to categorize these in > separate FAQ sections. We need Zope webspace somewhere to put up the > FAQ, I assume using the FAQ product. We need to develop the FAQ product > further, if necessary. We need whatever you can think of. > > The prime mean of communications for the ZDP is the Zope mailing list, > until further notice. I suggest that to keep the mailing list somewhat > organized we prepend our mailing list subjects with '[ZDP]'. If somebody > has a better way, we'll do it a better way. Some thoughts: - We would be happy to provide a mailing list or two for you all - If it makes sense (logistically, for us as well as for you), we could host the FAQ stuff or whatever on zope.org. This we'll have to discuss - both what all might want, and what we can safely and effectively do... (I've been thinking about requirements for a collaborative FAQ mechanism, which can be tricky if you want it to be available for contribution to the community in general, yet still remain organized enough for people to find what they're seeking. An interesting problem...) > > Note that while I'm sending out this message, I'm not anything official. > I'm just attempting to get the ball rolling. > > *nudges the ball* Yay! Ken klm@digicool.com From Paul@digicool.com Tue Mar 2 20:29:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 15:29:56 -0500 Subject: [Zope] Anyone want to give a talk about Zope at WWW8? Message-ID: <613145F79272D211914B0020AFF640190D9E4A@GANDALF> David wrote: > http://www.utoronto.ca/ian/WWW8/sessions.html > > See session 6, run by our friend Cameron Laird. Actually I emailed a talk proposal for the last one (Brian Behlendorf's Open Source one). --Paul From Anthony Baxter Tue Mar 2 22:20:50 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 09:20:50 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Tue, 02 Mar 1999 15:34:37 BST." <4.1.19990302144353.00ba8560@lisp.atmm.nl> Message-ID: <199903022220.JAA08390@mbuna.arbhome.com.au> Note that this snippet: > > You have the following roles: > > >

  • > > > You have no roles defined. > can also be written: You have the following roles:
  • You have no roles defined. That is, #in can have an #else clause, which is called when the sequence is zero length. I find this easier to read (particularly when the expression to generate the sequence is large.) Anthony Anthony From DAve@mail.netraven.com Wed Mar 3 00:33:07 1999 From: DAve@mail.netraven.com (Dave G) Date: Tue, 2 Mar 1999 16:33:07 -0800 Subject: [Zope] ZServer and MSIE Message-ID: For those interested changing the "chunks=1" to "chunks=0" in http_server.py did in fact fix the incompatibility with MSIE and ZServer. Zope's, I don't consider this a bug with ZServer but with MSIE as this also plauged me using Frontier cgi's many times, the fix was the same. So I'm not creating a bug report unless you want this documented. DAve. >I too have noticed this on occasion. I believe that the problem has to do >with ZServer's attempt at chunking responses. > >The next version of ZServer will significantly alter the way ZServer >handles HTTP response munging issues like this, and hopefully will fix this >problem. > >Thanks for the bug report. > >-Amos > >P.S. Until then Brad Clements's advice to change use_chunked=1 to >use_chunked=0 in medusa/http_server.py may help. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From jarvis.sd082@ex.tel.co.jp Wed Mar 3 00:53:43 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 3 Mar 1999 09:53:43 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB385@telisnt1020.is.tel.co.jp> Oops! The a.b_id=a.id was a typo in my mail. Sorry about that. I did mean a.b_id=b.id. I also tried out Brad Clements' suggestion (thanks, I would have never thought to write it that way!) but it raises the same exception. It works fine with the patch, though. Thank you for your responses! John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: chris.hunter@humancode.com [SMTP:chris.hunter@humancode.com] > Sent: Wednesday, March 03, 1999 1:46 AM > To: bkc@murkworks.com > Cc: TFE MMS JARVIS JOHN; zope@zope.org > Subject: Re: [Zope] Request.py and duplicate column names > > > > Brad Clements wrote: > > > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > > > 1. When trying to do a join (a lazy query, I know) like: > > > > > > select a.*, b.* > > > from tablea a, tableb b > > > where a.b_id=a.id > > Is there any chance that you're trying to do something > like: > > select * > from a, b > where a.b_id = b.id > ^ > Note that I'm joining a field in a to a field > in b here (not 2 fields in a) > > Hope this helps. > > --chris > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From Anthony Baxter Wed Mar 3 01:38:28 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 12:38:28 +1100 Subject: [Zope] Zope 1.10.2 dies every so often. In-Reply-To: Your message of "Tue, 02 Mar 1999 16:02:05 CDT." <85256728.007360D6.00@li01.lm.ssc.siemens.com> Message-ID: <199903030138.MAA08759@mbuna.arbhome.com.au> > WARNING: Python C API version mismatch for module _pg: This Python has API > version 1007, module _pg has version 1006. Hm - this indicates you've upgraded your Python since the module _pg was compiled (postgres?) It's not the cause of the following error, but it is something you might want to fix, anyway. The error looks to be caused by ZopeHTTPServer not handling a client aborting the connection. Looking into the code, at around line 240 of ZopeHTTPServer/ZopeHTTPServer.py, the write() method of ResponseWriter should probably trap IOError and ignore it. Something like wrapping the two calls to write() in the write method like try: write.... except IOError: pass would be a blunt fix to it. I don't think DC want to continue to support ZopeHTTPServer, tho. You might want to try to upgrade to ZServer, instead. Anthony From luke@geeklife.com Wed Mar 3 04:10:04 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 2 Mar 1999 20:10:04 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903030410.UAA00469@hipmail2.gohip.com> I'm *really* newbie. I have table with data like this: field1 field2 ------ ------ red 3/1/99 blue 3/1/99 green 3/1/99 brown 3/2/99 yellow 3/2/99 I'd like to render this in DTML from the data: Monday, March 1 red blue green Tuesday, March 2 brown yellow How do I do that? Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From mj@antraciet.nl Wed Mar 3 07:52:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 08:52:48 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303085121.00bb78a0@lisp.atmm.nl> At 17:19 02/03/99 , julian@zereau.net wrote: >On 02-Mar-99 Michel Pelletier wrote: >> >> This is an excellent post. I want to add that _getPassword() is a handy >> function also if you want to use your Zope user to authenticate into an >> external system, like POP3 or IMAP. > >It occurs to me that a DTML document could contain this in a transparent >sendmail form, assuming there is already a handy Mailhost set up, to capture >and mail off the password of anyone browsing the page... > No, because from DTML you can't call methods starting with an underscore. This was actually the reason I didn't include this in my overview. You can still use it in en external method, I know. But then again, I can do a heck of a lot more bad things in external methods. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:06:38 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:06:38 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303090101.00bb6180@lisp.atmm.nl> At 17:37 02/03/99 , you wrote: >While we are on the subject of AUTHENTICATED_USER, I would like my users to >be able to "logout" so that they then become anonymous again. > >Any ideas? > >I have seen this on Dejanews. It would be useful so that authorized users >don't leave themselves logged in if they don't quit Netscape. > >Phil. > This is very hard to do from the serverside. I can force a new login, but I cannot stop a browser from authenticating itself at every request, therefore effectivly becoming anonymous. Problem is more that HTTP is stateless, a user is not 'still logged in', but it autenticates itself at every request. Only when the server says that the authentication is incorrect, does the browser ask for the username and password. What you could do, is write your own UserFolder/User combo, that stores a last-access time on the User object, and checks for this every time a user is authenticated. If the difference is greater than, say 15 minutes, you force a reauthentication by raising a permission denied. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:11:28 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:11:28 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Message-ID: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> At 17:54 02/03/99 , Martijn Faassen wrote: >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > I know it is against netiquette to send *me too!* messages, but I'm doing it anyway... Just to show support, count me in. I allready started rewriting the AUTHENTICATED _USER doc and the tree tag info. The-other-Dutchman-named-Martijn-i-ly yours, Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Anthony Baxter Wed Mar 3 08:20:53 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 19:20:53 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Wed, 03 Mar 1999 09:06:38 BST." <4.1.19990303090101.00bb6180@lisp.atmm.nl> Message-ID: <199903030820.TAA10202@mbuna.arbhome.com.au> > What you could do, is write your own UserFolder/User combo, that stores a > last-access time on the User object, and checks for this every time a user is > authenticated. If the difference is greater than, say 15 minutes, you force a > reauthentication by raising a permission denied. I tried playing with this once upon a time, but I found that the stupid browser still cached the original result and would continue to use it after the failed login/relogin combination. Most frustrating. Anthony From jay@tomigaya.shibuya.tokyo.jp Thu Mar 4 17:31:28 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Thu, 04 Mar 1999 17:31:28 Subject: [Zope] need help with IIS/ODBC Message-ID: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> As a novice (who's loving Zope!) I'm having a terrible time trying to get Zope1.10.2 on NT with IIS to connect to MS SQL with a Z ODBC connection. Previously I had no problem getting Zope 1.9/ZopeHTTPServer to connect to MS SQL via Z ODBC. Recently I upgraded to 1.10.2 without a hitch, and was able to run it with IIS 4.0 after putting the (PCGI executable?) MYZOPE.exe in /InetPub/scripts/ and turning off in IIS both Basic Authentication and NT Challenge/Response as I read here in the list. My problem now is that when I try to open my db connection (exactly the same connection that was working with 1.9 & ZopeHTTPServer) I get the following error from IIS: >HTTP Error 400 >400 Bad Request >Due to malformed syntax, the request could not be understood by >the server. The client should not repeat the request without modifications. In trying to figure out what's going on I've noticed a couple things. First, and I think most illustrative, if I try to add a new Z ODBC connection, none of my ODBC sources are showing up in the available list (except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 Zope with ZopeHTTPServer all my ODBC connections show up just fine. Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by side with the functioning 1.9/ZopeHTTPServer, I printed our the environment variables of both and noticed some differences - USERPROFILE's are Default User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least USERDOMAIN in the 1.10.2/IIS environ, with no luck. I've read all the posts from the list that I could find dealing with IIS and ODBC, but couldn't find anything with info on this type of trouble. Have I made a boneheaded mistake and started to look in the wrong places for the fix? Any help/info/pointers would be hugely appreciated as I continue to bang my head on my keyboard hoping that I'll soon clear this hurdle and get back to having fun with Zope! Thanks! Jay From mj@antraciet.nl Wed Mar 3 08:35:46 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:35:46 +0100 Subject: [Zope] Setting properties based on security In-Reply-To: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990303092944.00bb3220@lisp.atmm.nl> At 22:25 02/03/99 , Robin Dunn wrote: >I have a folder with various boolean properties associated with it which are >accessed by the dtml docs as flags for enabling or disabling content. Turn >off the flag and a chunk of the page goes away when it is next viewed. This >works great, but I would like to associate that behaviour with the security >attributes. In other words, when somebody in the Anonymous role is viewing >objects in the folder the properties should be unset, but when users in the >manager (or some other specific role) view the pages then the properties >should be set and those parts of the pages are activated. > >How can this be done? > You could, using AUTHENTICATED_USER.has_role() and manage_changeProperties(). I think it will be better if you completely skip the property setting though.. You could just show content using Content _only_ for the Anonymous user Content for users with the Manager role. This way you don't accidently let any properties float around, causing content to be shown to the wrong people. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 09:05:35 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:05:35 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903030410.UAA00469@hipmail2.gohip.com> Message-ID: <4.1.19990303094004.00bba4e0@lisp.atmm.nl> At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: > >field1 field2 >------ ------ >red 3/1/99 >blue 3/1/99 >green 3/1/99 >brown 3/2/99 >yellow 3/2/99 > >I'd like to render this in DTML from the data: > >Monday, March 1 > red > blue > green >Tuesday, March 2 > brown > yellow > >How do I do that? > You can use the #in tag's grouping features for this. If you use GROUP BY in your SELECT statement, or use the appropriate sorting, you can use the following DTML code to get the desired output, assuming the column names are the same as in your example: ,
    Sorry, no colors in your query. The variables first-xxx and last-xxx are set whenever the field with name xxx starts/ends in a sequence. For more information on this, read the Zope DTML User's Guide (http://www.zope.org/Documentation/Guides/DTML -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From cg@acriter.com Wed Mar 3 08:58:29 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 09:58:29 +0100 Subject: [Zope] ZPublisher and creating children Message-ID: <36DCF9B5.97A62E66@acriter.com> Hi, I'm using ZPublisher+DocumentTemplate+BoboPOS in a cgi environment, because that's all I need (and can use on my ISP's box). In the couple of things I've developed so far, a pattern has emerged that disturbs me: if you have a container object, when adding a child, the whole add thing is done in the parent. IIIRC, I fetched this design from the (Bobo) Trinkets example when I started: class Container.... add = HTMLFile(....) def do_add(self, childattrone, childattrtwo, childattrthree): d = self._items d[childattrone] = Child(childattrone, childattrtwo, childattrthree) self._items = d class Child... def __init__(self, childattrone, childattrtwo, childattrthree): .... edit = HTMLFile(....) def do_edit(self, childattrone, childattrtwo, childattrthree): .... The Container, IMHO, "knows" too much about the Child in this case, and it's hard to modify the attribute set of the Child class. Am I doing something wrong? Is there a design pattern here I'm not aware of? Regards, Cees From mj@antraciet.nl Wed Mar 3 09:24:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:24:44 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990303102401.00bb1310@lisp.atmm.nl> At 18:31 04/03/99 , Jay Ashton wrote: >My problem now is that when I try to open my db connection (exactly the >same connection that was working with 1.9 & ZopeHTTPServer) I get the >following error from IIS: > >>HTTP Error 400 >>400 Bad Request >>Due to malformed syntax, the request could not be understood by >>the server. The client should not repeat the request without modifications. I have exactly the same problem with an Access database, same error. I'll file a bug report. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Wed Mar 3 10:10:24 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:10:24 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Message-ID: <36DD0A90.1FC53ED0@pop.vet.uu.nl> Phil Harris wrote: > > Cheers from all involved. Thanks! This implies you're involved in the ZDP as of now, right? :) Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:12:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:12:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <19990302133414.09101@amber.org> Message-ID: <36DD0B22.7681AC07@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > > Excellent! > > > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > > the excellent public relations derived from hosting the ZDP. > > > > If not, I can probably provide resources (within reason :-) for this. These are good ideas (and thanks Chris for the offer!), but Ken Manheimer later on in the list is offering space on www.zope.org, and that would of course be perfect. Thanks again though! Martijn From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 10:13:32 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 10:13:32 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <00ab01be655e$7e558e60$5c773fc1@ml.uwcm.ac.uk> If ther's anything I can do, let me know. Ain't collaboration wonderful? Phil ----- Original Message ----- From: Martijn Faassen Cc: Sent: Wednesday, March 03, 1999 10:10 AM Subject: Re: [Zope] [ZDP] Announcing the Zope Documentation Project >Phil Harris wrote: >> >> Cheers from all involved. > >Thanks! This implies you're involved in the ZDP as of now, right? :) > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From andreas@mtg.co.at Wed Mar 3 10:35:57 1999 From: andreas@mtg.co.at (Andreas Kostyrka) Date: Wed, 3 Mar 1999 11:35:57 +0100 (CET) Subject: [Zope] Bobo distribution In-Reply-To: Message-ID: On 2 Mar 1999, Andrey V Khavryutchenko wrote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it is > taken from the web away. ftp://heaven.oeh.univie.ac.at/pub/mirrors/bobo-mirror/bobo/ Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98. From M.Faassen@vet.uu.nl Wed Mar 3 10:52:32 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:52:32 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF640190BED65@GANDALF> Message-ID: <36DD1470.531A427@pop.vet.uu.nl> Ken Manheimer wrote: > > Martijn Faassen wrote: > > > Hereby I announce in absolute adhoc anarchistic fashion the Zope > > Documentation Project. The Zope Documentation Project aims to generate > > documention on anything Zope. > > Thank you, Martijn, you've made my day! This is extremely cool. I'm glad I made someone's day. :) > As you might expect, here at digicool we're yearning to produce more and > better documentation, and, as with other things, we want to have more > time and energy to do it than we do. It was getting obvious that this was so. You guys all did a great job, and still are doing a great job, but the volume of questions and documention requests has exploded in the mean time. Which is great, in fact, of course, as it shows people are interested. [snip] > Some thoughts: > > - We would be happy to provide a mailing list or two for you all This would be great! We probably don't want to be spread out too much so one mailing list would be best (zdp@zope.org?). I also intend to make regular announcements of ZDP's progress (and some advertising to get people more involved in the project) on the main Zope list (or future multiple main Zope lists :). Right now though to keep the ball rolling I'll be using the normal list to send out messages. > - If it makes sense (logistically, for us as well as for you), we could > host the FAQ stuff or whatever on zope.org. This we'll have to discuss - > both what all might want, and what we can safely and effectively do... Zope.org would I think be the ZDP's favorite place to be hosted on, so that'd be very nice. Your thoughts on how we could best arrange this (who gets manage access to the place, if we develop in a branch we export to you, or develop in there directly, or use FTP, or possibly something else, etc) are welcome. > (I've been thinking about requirements for a collaborative FAQ > mechanism, which can be tricky if you want it to be available for > contribution to the community in general, yet still remain organized > enough for people to find what they're seeking. An interesting > problem...) Independently (for local purposes) I've been thinking about making a FAQ wizard product myself, but I got stranded somewhere in the beginning (my laments I posted some time ago to the list :). But at least I've given some thought to the design. Now Amos made one, and we can build on that. The use of the tree tag is nice, but probably a simple list is more useful in some cases (one can do a text search in it, for instance). From my cursory glance at the management screens of the example, it seems that it's not hard to produce that. What would also be nice is some way to simply generate plain ascii text versions of the FAQ as well, along with possibly some other versions. We could also think about generating DocBook SGML (which then can be converted in a lot of different formats with for instance the Linux SGMLtools 2.0). I haven't given too much thought to collaboration mechanisms. It would be useful to have the ability to easily move questions around in the list from one section to the other. My plan is to early on just get any question/answer pairs we can come up with (from mining the mailing list, documentation, and whatever people contribute). Later on we can then organize these in categories, once the pattern becomes clear (likely we'd have a DMTL section, for instance, and an installation section). If there's flexibility in moving questions around the FAQ might be developed more quickly. People could contribute question/answer pairs (or just questions) in some 'contribution area' and the managers of the list can then edit these and move them to the right sections of the list after doing so. The contribution area should still be visible for everybody, so that even the raw entries can be useful. I'm brainstorming right now, so here's another idea: if someone sees a question in the 'contributed' area that he knows the answer to, that person should be able to write in an answer. Even with the already edited questions in the main list it would be useful if people could leave comments ("I tried this but it didn't work for such and such reason. But if I did this and that, I got it working."). The editors can then later review all that's added and integrate it into the main text. Right now I intend to just assemble a big raw plaintext file (structured text!), though; anyone can work with these. It's good to keep the process moving. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:55:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:55:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> Message-ID: <36DD1536.1ADF8CD4@pop.vet.uu.nl> Martijn Pieters wrote: > > At 17:54 02/03/99 , Martijn Faassen wrote: > >Hi there, > > > >Hereby I announce in absolute adhoc anarchistic fashion the Zope > >Documentation Project. The Zope Documentation Project aims to generate > >documention on anything Zope. > > > > I know it is against netiquette to send *me too!* messages, but I'm doing it > anyway... As long as the *me too!* message doesn't include the entire previous message body it's not against my personal netiquette. :) > Just to show support, count me in. I allready started rewriting the > AUTHENTICATED _USER doc and the tree tag info. Shows of support are *great* netiquette. :) Thanks! Regards, Martijn From Oliver Thuns Wed Mar 3 11:24:46 1999 From: Oliver Thuns (Oliver Thuns) Date: Wed, 03 Mar 1999 12:24:46 +0100 Subject: [Zope] ZServer (FTP): socket.error: host not found Message-ID: <199903031225.EAA23367@zope.codeit.com> >It works for me. Check to be certain that your DNS has a PTR record for >your host. Winsock is SUPPOSED to support this for "localhost" even >without DNS, but if you're multi-homed that may be a problem. I have no DNS, it's a local system only. I'm using Windows 95 and this doesn't work. But it should no problem to "fix" the ftp_server. The IP_ADDRESS could set in start.py and this address is used by the http_server module, but not by the ftp_server module. >> If I start ZServer under Windows I get the following error ind the >> ftp_server module. This can be easily fixed by changing line 57 and >> inserting the IP, but this is not very nice. Could you fix this? >> >> Traceback (innermost last): >> File "start.py", line 20, in ? >> import ZServerFTP >> File "ZServerFTP.py", line 158, in ? >> from medusa.ftp_server import ftp_channel, ftp_server >> File "medusa\ftp_server.py", line 57, in ? >> IP_ADDRESS = socket.gethostbyname (socket.gethostname()) >> socket.error: host not found From julian@zereau.net Wed Mar 3 13:01:30 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 13:01:30 -0000 (GMT) Subject: [Zope] count of items in group? Message-ID: Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture). --- Julian Morrison Programmer (Zereau Ltd) From sfranke@cdc-group.com Wed Mar 3 13:01:07 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Wed, 3 Mar 1999 14:01:07 +0100 Subject: [Zope] Strange problem calling a base classes method Message-ID: <01E40461E003D21195CC0080296495D80B12B3@gates.cdc-group.com> While debugging a Product that inherits from OFS.Folder stumbled across the following problem (copied from the debugger command line stopped inside one of my Product's methods): >>> self.__class__.__bases__[0].__bases__[3].__bases__[1] >>> isinstance (self, OFS.CopySupport.CopySource) 0 >>> (self.__class__.__bases__[0].__bases__[3].__bases__[1] is OFS.CopySupport.CopySource) 1 The first line says self is an instance of OFS.CopySupport.CopySource, the second says it's not. The class objects are identical. My problem is that I'm not able to override one of OFS.CopySupport.CopySource's methods and to call the base classes method from inside. At that point I get a TypeError: unbound method must be called with class instance 1st argument which usually occurs when calling an unbound method with an instance of the wrong class. I'm clueless.. Stefan From mj@antraciet.nl Wed Mar 3 13:37:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 14:37:04 +0100 Subject: [Zope] count of items in group? In-Reply-To: Message-ID: <4.1.19990303142401.00b9a7f0@lisp.atmm.nl> At 14:01 03/03/99 , julian@zereau.net wrote: >Using the "in" tag's grouping capability, is there any way to get the count of >items in that group? I need this so I can have a table with one row per item >and a cell rowspanned for all the group's items (eg: related products and their >picture). > No, there isn't. You will have to use the SQL statement, to add a calculated value column to it's output. You should be able to use COUNT to achieve this. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Wed Mar 3 13:54:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:47 -0500 Subject: [Zope] ZPublisher and creating children Message-ID: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Cees wrote: > The Container, IMHO, "knows" too much about the Child in this > case, and > it's hard to modify the attribute set of the Child class. Am I doing > something wrong? Is there a design pattern here I'm not aware of? Actually this example shows the beauty of Zope/Bobo programming -- the code looks completely like normal Python code, no CGI hackery involved. Anyway, this is really a Python question, IMO. You don't the arguments to the Child's constructor to be hardwired in the Parent, right? You could take a route where pass a dictionary, e.g. REQUEST, into the Child's constructor and let it figure out for itself what it needs. This feels less OO and doesn't let Zope/Bobo help you with type conversions and raising exceptions for missing arguments. --Paul From Paul@digicool.com Wed Mar 3 13:54:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:49 -0500 Subject: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAC0@GANDALF> Martijn wrote: > I have exactly the same problem with an Access database, same > error. I'll file > a bug report. Good timing. We are planning a Collector Day At The Beach pizza party on Friday. We'll gather everybody together for a couple of hours, discuss a bunch of submitted issues, and try to clear them out. I'll articulate a policy on support within a week. We still haven't emerged from our network hell -- our dedicated line hasn't been installed yet -- but things are slowing getting under control. I want to double the number of people working here within two months. If anybody wants a job at Zope HQ, email me! --Paul From Paul@digicool.com Wed Mar 3 13:54:50 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:50 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Phil wrote: > If ther's anything I can do, let me know. > > Ain't collaboration wonderful? Count me in as well. I'm meeting with some folks today to get a Zope training course scheduled. I'll create the preliminary docs which they will improve and use for the course. Thus I'll have some some material for a (perhaps four day) training course to contribute. BTW, is there any interest here in a Zope training course? --Paul From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 13:48:56 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 13:48:56 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> You thinking of running one in UK 8^) ----- Original Message ----- From: Paul Everitt To: Phil Harris Cc: Sent: Wednesday, March 03, 1999 1:54 PM Subject: RE: [Zope] [ZDP] Announcing the Zope Documentation Project > >Phil wrote: >> If ther's anything I can do, let me know. >> >> Ain't collaboration wonderful? > >Count me in as well. I'm meeting with some folks today to get a Zope >training course scheduled. I'll create the preliminary docs which they >will improve and use for the course. Thus I'll have some some material >for a (perhaps four day) training course to contribute. > >BTW, is there any interest here in a Zope training course? > >--Paul From M.Faassen@vet.uu.nl Wed Mar 3 13:57:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 14:57:43 +0100 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Hi everybody, Here is a start. I just randomly browsed the mailing list and created a completely uncategorized set of questions and answers for the FAQ. I even snuck in a question of myself, see if you can answer it. :) If you see a problem with some of these questions or answers, send a followup with suggested corrections to the list and I'll include them in the FAQ. If you have more question/answer pairs, go ahead and followup too. I prefer these things to appear in the list (in a thread, and marked by [ZDP]) for now, as this might stop people from writing the same FAQs twice. I hope in a while we'll get somekind of collaborative FAQ environment going that makes all this easier. I'd prefer additions to the FAQ in StructuredText for now. See what follows for an example of the format I have in mind. If you think another format works better feel free to convert. (yes, that's the theme of open source; if you want something done differently, feel free to do the work to change it :). Here's what I have so far, enjoy! * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use: <!--#var "external_method_name(arguments)"--> to call any External Method in the folder (or acquired by the folder). The more explicit alternative is: <!--#var expr="external_method_name(arguments)"--> The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). From cg@acriter.com Wed Mar 3 14:09:59 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 15:09:59 +0100 Subject: [Zope] ZPublisher and creating children References: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Message-ID: <36DD42B7.7C838624@acriter.com> Paul Everitt wrote: > Cees wrote: > > The Container, IMHO, "knows" too much about the Child in this > > case, and > > it's hard to modify the attribute set of the Child class. Am I doing > > something wrong? Is there a design pattern here I'm not aware of? > > Actually this example shows the beauty of Zope/Bobo programming -- the > code looks completely like normal Python code, no CGI hackery involved. > > Anyway, this is really a Python question, IMO. You don't the arguments > to the Child's constructor to be hardwired in the Parent, right? Well, the underlying issue is the stateless-ness of the whole thing. In normal python, you'd create an empty child, call the child's editing form so the user can enter initial data, and only after the user's commit add the child to the container: def addChild(self): newChild = Child() if newChild.editForm() == true: container.append(newChild) in short. I've attempted this in the ZPublisher environment, but to no avail - either it didn't work at all or it got very messy (with the Child needing to know about the Parent, etcetera). I must say, I was under a bit of time pressure last night when looking for alternatives (wanted to have a beta release on my website before breakfast), I haven't got around playing with hidden form variables etcetera yet - that could work. Just hoped somebody on the list here would have a canned answer - I'm a lazy guy ;-) From tony.mcdonald@ncl.ac.uk Wed Mar 3 14:41:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 3 Mar 1999 14:41:53 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: Hi all, This is quite a long email where I ask a lot of questions about Zope, but I hope you'll be lenient with me as I think I have a few hard decisions to make! Some background: I'm one of the web developers here, with a remit to implement a curriculum database that can; (a) support the Medical Faculty here (b) get rolled out to three other Medical-related sites, each with their own 'look and feel' (c) possibly implement a University-wide curriculum database. The curriculum database is essentially delivering online study guides (over 100 for each Faculty) whose source is originally from very well marked up Word Documents. In addition, we include multiple choice questions, file upload of lecture notes etc. and some 'active' web pages showing dynamical processes in medicine etc. The curriculum database needs to be searchable across its entire breadth (although initially restricted to the one site), so that students and faculty can find occurences of, say, 'lung cancer' in lecture resources - this is to plan for curriculum management, so that we can find out if we're pushing subjects too much (or indeed, whether we're pushing a subject at all!). We have other applications (nearly all of which are written in Perl/PHP3) and want to seemlessly integrate them into the curriculum database. Currently we do all our development work on Unix, using Apache virtual web servers, MySQL as our database engine and Perl running as a CGI for most of our applications. My input has been to introduce PHP-3 (an Apache module with a bulit-in XML parser) and some XML knowledge to the group. I've been looking at a scenario where our study guides are converted in XML using Omnimark and held as static XML documents in a database. They are then rendered into HTML/RTF and put into static web directories. The student can run a program that extracts elements from selected XML documents and creates a customised set of HTML pages or RTF document that is built for them 'on the fly'. My manager was a bit worried about all these static pages lying about and to be honest so am I, but extracting the relevant XML from a database to render into individual HTML pages seems a massive drain on the system. I found out about Zope Monday morning, dl'ed it, installed it, got one or two things working... and have been worried sick ever since. My problem? is that I can see how Zope can do so much for us, but it seems to need a hell of a gut-wrench to do so. There also doesn't seem to be an easy 'half-way' house to move to Zope. I've read a lot of the documentation, and am doing so constantly, but the wisdom of the list would be very helpful indeed. The questions: a) Is there a way for us to 'dump' the non-dynamic parts of a Zope database into static HTML pages. This would act as a way to say to the team "look, we have a parachute!". b) Can I integrate with the Perl/PHP3 programs that we have (the Perl programs are mainly .cgi, but the PHP3 programs are server-side scripted, and as such are embedded into the HTML itself). This is so that I can c) Is there any way of using the XML documents that I'm creating into the database and parsing them to produce either HTML or RTF output? d) I know that this a terrible question to ask... but is Zope likely to 'remain' open-source (we're worried about getting stuck with a proprietary system)?. e) Can I 'point' an Apache virtual server to run a Zope cgi (ie dropping the :port requirment). f) I'd like to have the option to have user authentication information coming from a database - is this possible? g) We have something like 200 main level directories holding the study guides, each with up to 200 files in them - is that pushing the Zope database too far? h) We also need resources such as QuickTime movies, images PowerPoint slides etc. to be uploaded - would they sit in the database or can they be held somewhere else (and what happens about file name conflicts)? i) Does Zope have the equivalent of 'server logs', which we use for research. j) Is it possible to have a 'pointer' at a location in the Zope database that will point to a 'real, honest to goodness' HTML file on the server (ie something like a redirect..oops I think I may have answered my own question) and lastly k) What kind of loads have people put Zope under (10,000 +hits a day, 100k?). We have one application which has 170 Medical Students sitting in front of screens and clicking a button at the same time (they're selecting their final year options) which then starts 170 CGI-based Perl processes off interrogating and updating the database. This really grinds the system down... I hope that I haven't bored everyone to tears here - it's just that Zope seems to do an awful lot of what I need, and I'd really like to know what I'm letting myself in for if I start using it for everything I do.... many many thanks, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From michel@digicool.com Wed Mar 3 14:39:57 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 09:39:57 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BAC2@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Wednesday, March 03, 1999 3:21 AM > To: Martijn Pieters > Cc: zope@zope.org > Subject: Re: [Zope] AUTHENTICATED_USER, and what you can do with it. > > > > > What you could do, is write your own UserFolder/User combo, > that stores a > > last-access time on the User object, and checks for this > every time a user is > > authenticated. If the difference is greater than, say 15 > minutes, you force a > > reauthentication by raising a permission denied. > > I tried playing with this once upon a time, but I found that > the stupid > browser still cached the original result and would continue > to use it after > the failed login/relogin combination. Most frustrating. > Cookies or passing around secret messages would be the way to avoid this, don't use Basic authentication at all. The UserDB product shows off a User Folder than uses cookies, and possibly today I am releasing a User Folder product that authenticates off of a flat file, like /etc/passwd for alpha testing which also uses either Basic or Cookie auth. If you use Cookie auth you are presented with a login/logout screen to set/clear the cookie. -Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From luke@geeklife.com Wed Mar 3 15:17:35 1999 From: luke@geeklife.com (Luke Duff) Date: Wed, 3 Mar 1999 07:17:35 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903031517.HAA31270@hipmail1.gohip.com> Thanks for the help, but... My problem is a little bit harder than that. The data in field2 is date *and* time. So like this: field1 field2 ------ --------------- red 3/1/99 10:00 AM blue 3/1/99 11:00 AM green 3/1/99 03:00 PM brown 3/2/99 10:00 AM yellow 3/2/99 04:30 PM I've seen in the guide where you can format a data field when outputting, but how do actually extract the day-of-the-month number and put it in a temp variable. The pseudo-code I've used before to do this before is: tempday = 0 for each record if tempday<>dayofmonth(datefield) then print out a header print out other fields tempday = dayofmonth(datefield) next I'm just having a little trouble translating that into DTML. Creating a simple temporary variable seems overly complicated. Luke ============================================================ Martijn Pieters wrote: At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: >> >>>field1 field2 >>>>------ ------ >>>>>red 3/1/99 >>>>>>blue 3/1/99 >>>>>>>green 3/1/99 >>>>>>>>brown 3/2/99 >>>>>>>>>yellow 3/2/99 >>>>>>>>>> >>>>>>>>>>>I'd like to render this in DTML from the data: >>>>>>>>>>>> >>>>>>>>>>>>>Monday, March 1 >>>>>>>>>>>>>> red >>>>>>>>>>>>>>> blue >>>>>>>>>>>>>>>> green >>>>>>>>>>>>>>>>>Tuesday, March 2 >>>>>>>>>>>>>>>>>> brown >>>>>>>>>>>>>>>>>>> yellow >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>How do I do that? >>>>>>>>>>>>>>>>>>>>>> You can use the #in tag's grouping features for this. ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From michel@digicool.com Wed Mar 3 15:17:04 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 10:17:04 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Wednesday, March 03, 1999 9:42 AM > To: zope@zope.org > Subject: [Zope] Some tough questions about zope... (long) > > > Hi all, > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! > > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. > > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > If you continue to use it you will get the Zope Zen. :) > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". This begs the question we've asked around here so many times, 'What is data?' Everything in Zope is Dynamic, in my thoughs, 'non-dynamic' is a Document with not DTML in it. But there is no way for Zope to sniff a document and see if it contains dynamic structures or not. Perhaps what could be done is to write a simple MyDocument that you stipulate in policy never to have dynamic stuff in it, and then write a crawler scripts that sucks out all such documents into a local file structure. There maybe easier solutions. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can ...do what? ;) Zope can call your cgi scripts just like they are, as URLs. They would, of course, have to be external to Zope and if you have a bunch of little ones you may find it better (and a damn sight easier) to rewrite them as Python in Zope as external methods. (DTML is also a rather powerful language for being so simple). Just leave your PHP stuff in your documents; Zope will parse out the DTML and return it to the server, which will parse out the PHP stuff and return it to the browser. In fact, you can probably make DTML and PHP work together nicely and simplify much of your PHP code. In the quickie case you don't need to change your PHP. > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? Zope doesn't contain an XML parser. You would need to do this with an external package. > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. Yes. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yes. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Yes. There is an unsupported open source User Folder Product called UserDB, where you tell it how to query your DB and it uses that for authentication. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Not at all. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? ooo. Someone has yet to write an ExternalFile product (though I suspect it would be fairly simple) to add objects to the db that refer to files outside the db. For now you can upload them as File objects to be contained entirely in the db. The same rules that apply to file name conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't have the same object id in the same folder. (With a minor non-exception of aquisition, all lower folders can see the contents of higher folders, but if you place an object in a lower folder with the same id as an object in a higher folder the lower object will override the higher object. Get that?) > i) Does Zope have the equivalent of 'server logs', which we > use for research. Since Zope is served through a web server you can continue to use the server logs. In other words, No. ;) Object by Object logging is something we've discussed, but would require *a lot* of thought and work. > j) Is it possible to have a 'pointer' at a location in the Zope > database that will point to a 'real, honest to goodness' HTML file on > the server (ie something like a redirect..oops I think I may have > answered my own question) If that file is being served up by Apache then you can just use it's URL as a 'pointer'. > and lastly > k) What kind of loads have people put Zope under (10,000 +hits a day, > 100k?). We have one application which has 170 Medical Students > sitting in front of screens and clicking a button at the same time > (they're selecting their final year options) which then starts 170 > CGI-based Perl processes off interrogating and updating the database. > This really grinds the system down... Ah yes, the inevitable benchmarking question. There are lots of issues here, memory footprint vs processor speed vs concurrent access...etc. The quick word is, Zope is fast and it will get much faster. Zope is currently not concurrent but will be in 2.0. Zope+Apache is a bit slow due to the pcgi bottleneck and is much improved by using ZServer. As it stands now, ZServer is something like twice to 10 times faster than Zope+Apache. Medusa (the web core of ZServer) serializes the requests into Zope at the moment, but when 2.0 comes out it will be the fastest web application platform on earth. Don't quote me. > > I hope that I haven't bored everyone to tears here - it's just that > Zope seems to do an awful lot of what I need, and I'd really like to > know what I'm letting myself in for if I start using it for > everything I do.... No problemo. > > many many thanks, > tone. -Michel > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mj@antraciet.nl Wed Mar 3 15:16:17 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:16:17 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Message-ID: <4.1.19990303155923.00b8acb0@lisp.atmm.nl> Let me try to answer (some) of your questions: >The questions: >a) Is there a way for us to 'dump' the non-dynamic parts of a Zope >database into static HTML pages. This would act as a way to say to >the team "look, we have a parachute!". I will be looking into this, as soon as I have the time. The answer for now is: probably, because everyone wants to download a local copy of part of any website at some point. There are tools out there to do this, I haven't looked for them yet. >b) Can I integrate with the Perl/PHP3 programs that we have (the Perl >programs are mainly .cgi, but the PHP3 programs are server-side >scripted, and as such are embedded into the HTML itself). This is so >that I can Just run Zope via Apache (see below). >c) Is there any way of using the XML documents that I'm creating into >the database and parsing them to produce either HTML or RTF output? Python is very capable of parsing XML. You will have to write an External Method to handle this, though. An example of XML parsing can be found at http://www.zope.org/Download/Contrib/XMLConfig.tar.gz. This Zope Product parses a static XML file for use in Zope. >d) I know that this a terrible question to ask... but is Zope likely >to 'remain' open-source (we're worried about getting stuck with a >proprietary system)?. I certainly do hope so. I intent to use it en expand on it heavily anyway, and sodo others. These extensions will generally be Open Source themselves, making it hard for Digital Creations to pull Zope out of the Open Source domain. >e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >dropping the :port requirment). Yes. The doc/WEBSERVER.txt will start you on this. Be warned though, there are some problems with Apache and Zope integration, for reasons that others are better equiped to explain. >f) I'd like to have the option to have user authentication >information coming from a database - is this possible? Yes, you can find the UserDB Product at http://www.zope.org/Download/Prereleases/UserDB/UserDb-1.2.0-nonbin.tar.gz. >g) We have something like 200 main level directories holding the >study guides, each with up to 200 files in them - is that pushing the >Zope database too far? Nah, Zope has handled much more than that allready. Ask Paul =). >h) We also need resources such as QuickTime movies, images PowerPoint >slides etc. to be uploaded - would they sit in the database or can >they be held somewhere else (and what happens about file name >conflicts)? Zope can store any filetype you want it to. Filename conflicts are handled the same way a filesystem handles them: In the same Folder, you cannot have two objects with the same name at once. But because it is a hierachical system, you can use the same name in two different folders. >i) Does Zope have the equivalent of 'server logs', which we use for research. ZopeHTTPServer's output is it's serverlog. You can start it up with STDOUT redirected into a file. When you use Apache as your webserver, all requests will be logged through Apache itself. >j) Is it possible to have a 'pointer' at a location in the Zope >database that will point to a 'real, honest to goodness' HTML file on >the server (ie something like a redirect..oops I think I may have >answered my own question) You said it yourself =). >and lastly >k) What kind of loads have people put Zope under (10,000 +hits a day, >100k?). We have one application which has 170 Medical Students >sitting in front of screens and clicking a button at the same time >(they're selecting their final year options) which then starts 170 >CGI-based Perl processes off interrogating and updating the database. >This really grinds the system down... Zope will be much much faster. I can't give you any direct numbers, maybe someone else on this list can. You basicly don't have the overhead of starting a fullblown new process for every request, and Zope pools Database connectiosn for you, so you don't have the initial connection overhead either. And, your code isn't compiled everytime, like with Perl. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 3 15:25:47 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 10:25:47 -0500 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: ; from Tony McDonald on Wed, Mar 03, 1999 at 02:41:53PM +0000 References: Message-ID: <19990303102547.A6002@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 02:41:53PM +0000, Tony McDonald wrote: ,----- | Hi all, | This is quite a long email where I ask a lot of questions about Zope, | but I hope you'll be lenient with me as I think I have a few hard | decisions to make! I know the feeling. I was choosing between ColdFusion and Zope for developing my new application and had some similar questions. Ultimately, I chose Zope. [nice application description deleted] | a) Is there a way for us to 'dump' the non-dynamic parts of a Zope | database into static HTML pages. This would act as a way to say to | the team "look, we have a parachute!". Right now, there isn't. This question has come up repeatedly on the list, to the point where DC is getting sick of hearing it and thinking of actually implementing something :) They have said it would be pretty easy, and I believe it. I think the basic idea is to write a method that will go through the Folders and use the DocumentTemplate code to render out the pages. | b) Can I integrate with the Perl/PHP3 programs that we have (the Perl | programs are mainly .cgi, but the PHP3 programs are server-side | scripted, and as such are embedded into the HTML itself). This is so | that I can If you're using Zope with Apache, you use mod_rewrite to get the authentication headers passed to Zope. You can also use mod_rewrite to decide how URLs map to content on your server. For example, you can have all of the content on your site go through your Zope.cgi, but /cgi-bin/* can go directly to your CGI or PHP files. You can access MySQL from Zope, PHP and Perl, so they can all use the same data source for the databases. | c) Is there any way of using the XML documents that I'm creating into | the database and parsing them to produce either HTML or RTF output? I'll leave this one to people more knowledgeable about XML. | d) I know that this a terrible question to ask... but is Zope likely | to 'remain' open-source (we're worried about getting stuck with a | proprietary system)?. I think it would be tough for DC to try to take it back at this point :) Even if DC did decide to not release any more updates to Zope, the community would probably continue working from the 1.10.2 code. Anyhow, DC had sound business reasons to release Zope as Open Source. Over time, they will likely get a lot of benefits by having done so and by encouraging outsiders (like us) to work with and improve Zope. | e) Can I 'point' an Apache virtual server to run a Zope cgi (ie | dropping the :port requirment). Yes. This uses a technique called Persistent CGI. It works quite well. There is also a hope that there will be better integration with Apache in the future. Also, as ZServer stabilizes, you may find good reason to migrate from Apache to it. | f) I'd like to have the option to have user authentication | information coming from a database - is this possible? There is an unsupported bit of code called UserDB which is designed for this. | g) We have something like 200 main level directories holding the | study guides, each with up to 200 files in them - is that pushing the | Zope database too far? Though I have no first hand experience with a Zope DB this large, the DC guys have said that they've worked with some very large DBs. | h) We also need resources such as QuickTime movies, images PowerPoint | slides etc. to be uploaded - would they sit in the database or can | they be held somewhere else (and what happens about file name | conflicts)? You could put them in either place. There would probably be some advantages to putting them in the database. For example, your standard Zope security rules will apply to the downloading and updating of the files. | i) Does Zope have the equivalent of 'server logs', which we use for research. I don't know about ZServer, but if you use Apache as your web server you will be able to use your standard server logs. | j) Is it possible to have a 'pointer' at a location in the Zope | database that will point to a 'real, honest to goodness' HTML file on | the server (ie something like a redirect..oops I think I may have | answered my own question) Yes, you can do a redirect. | and lastly | k) What kind of loads have people put Zope under (10,000 +hits a day, | 100k?). We have one application which has 170 Medical Students | sitting in front of screens and clicking a button at the same time | (they're selecting their final year options) which then starts 170 | CGI-based Perl processes off interrogating and updating the database. | This really grinds the system down... I've heard it said that Zope should be able to handle 500k hits or more on reasonable hardware. Of course, this depends on exactly what the server has to go through for each of those hits, etc. DC is also working on concurrency for Zope 2.0. This will probably enable you to handle a whole bunch of requests. `----- Good luck! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From mj@antraciet.nl Wed Mar 3 15:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:47:52 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903031517.HAA31270@hipmail1.gohip.com> Message-ID: <4.1.19990303163641.00a17d40@lisp.atmm.nl> At 16:17 03/03/99 , Luke Duff wrote: >Thanks for the help, but... > >My problem is a little bit harder than that. The data in field2 is date *and* >time. So like this: > >field1 field2 >------ --------------- >red 3/1/99 10:00 AM >blue 3/1/99 11:00 AM >green 3/1/99 03:00 PM >brown 3/2/99 10:00 AM >yellow 3/2/99 04:30 PM > >I've seen in the guide where you can format a data field when outputting, but >how do actually extract the day-of-the-month number and put it in a temp >variable. The pseudo-code I've used before to do this before is: > >tempday = 0 >for each record > if tempday<>dayofmonth(datefield) then > print out a header > print out other fields > tempday = dayofmonth(datefield) >next > You'll have to use SQL function for this. In MySQL you could do the following: SELECT field1, DATE_FORMAT(field2, "W, M d") as datefield FROM MyDB. Put this in a Z SQL Method, and then the following DTML will get you your results: ,
    Sorry, no colors in your query. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 15:57:23 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 10:57:23 -0500 (EST) Subject: [Zope] ZPublisher and creating children In-Reply-To: <36DD42B7.7C838624@acriter.com> Message-ID: On Wed, 3 Mar 1999, Cees de Groot wrote: > etcetera yet - that could work. Just hoped somebody on the list here would > have a canned answer - I'm a lazy guy ;-) > Everybody on this list is lazy ;-) This is my approach: First define a Webobject class that every object needs to inherit. The simplest could be just: class WebObject: def __init__(self,name): '''__init__(self,name) ''' self.name=string.replace(name,' ','_') def _set_root(self,root_obj,parent_path): '''_set_root(self,root_obj,parent_path) sets the root object and relative path. Note: one will never need to pass parent_path directly. I also need to have a reference to the root object so I can do stuff remotely similar to acquisition''' self.root=root_obj self.rel_path=parent_path+self.name+os.sep class Container(WebObject): def __init__(self,name): WebObject.__init__(self,name) ##Holds contents self._d={} def __getitem__(self, key): return self._d[key] def items(self): return self._d.items() def _do_add(self,object): '''_do_add(self,object) Adds object in container. Object MUST have inherited the WebObject class.''' name=object.name if hasattr(self,name) or self._d.has_key(name): raise ValueError,'Object with same name exists in WebFolder' d=self._d object._set_root(self.root,self.rel_path) d[name]=object self._d=d So you can create any object that has inherited the WebObject class independently and add it to the container instance. Pavlos From mj@antraciet.nl Wed Mar 3 15:58:14 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:58:14 +0100 Subject: [Zope] [ZDP] Tree FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <4.1.19990303153836.00a64c50@lisp.atmm.nl> My two cents on the tree tag: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: <!--#tree branches_expr="objectValues(['Folder'])"--> <A HREF="<!--#var URL1-->/<!--#var id-->"> <!--#var title_or_id--> </A> <!--#/tree--> * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: <A HREF="<!--#var URL0-->?expand_all=1"> Expand all</A>| <A HREF="<!--#var URL0-->?collapse_all=1"> Collapse all</A> <!--#tree--><!--#var id--><!--#/tree--> * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: <!--#tree single--><!--#var id--><!--#/tree--> More cents will follow. Martijn -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Wed Mar 3 16:44:20 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:44:20 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: >Here is a start. Great start! Could I suggest that there be FAQs for different catagories? My list would include: DTML external methods Win32 (maybe there are specific issues, if so I don't want to read about them :) SQL methods patches/hacks to Zope I am sure that I can find lots of work for you! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From zopelist@regalint.com Wed Mar 3 16:45:32 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:45:32 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> Message-ID: >You thinking of running one in UK 8^) Maybe Michigan/Ontario area? Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rkw@dataplex.net Wed Mar 3 16:47:07 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 3 Mar 1999 10:47:07 -0600 (CST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: This sounds like something we need. I know that I could use it. If folks will critique this design, I'll implement it. - - Proposed Access Method - - It is desired to be able to have "non DTML" files incorporated in a Zope URL system. These files might be static GIF files, quicktime movies, or just plain old HTML. Obviously, they might be "included" in a DTML page by simply referencing them directly by their URL. However, I can see cases where one would like the access to be under the control of the Zope system. For example, access controls might apply. I believe that we can achieve this by having an object which represents an ExternalFS mount point. In general, we map a URL onto a node of the FS. It would be directly analogous to a symbolic link (ln -s). The Zope mount point would enforce permissions just as if the file were loaded into the Zope DB. Objects can be "imported" without having them take up space in the database. Their creation and maintanence can be handled outside the Zope system. They are rendered by "cat"ing their contents. By permitting substitutions in the link, we can create effective reformatting of the visible FS. As an example, I am monitoring customer traffic. "mrtg" automatically generates graphs for each customer. In Zope, I could create customized displays by importing these files. By using the ExFS, I can update the graphics without affecting Zope. Further, assuming /mygraphs/today/customer1.gif /mygraphs/today/customer2.gif /mygraphs/yesterday/customer1.gif /mygraphs/yesterday/customer2.gif we can map them onto somewhere/KustomerA/graphs/today somewhere/KustomerA/graphs/yesterday by substituting a property of the Kustomer - - - Thoughts and/or suggestions? Richard On Wed, 3 Mar 1999, Michel Pelletier wrote: > ooo. Someone has yet to write an ExternalFile product (though I suspect > it would be fairly simple) to add objects to the db that refer to files > outside the db. For now you can upload them as File objects to be > contained entirely in the db. The same rules that apply to file name > conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't > have the same object id in the same folder. (With a minor non-exception > of aquisition, all lower folders can see the contents of higher folders, > but if you place an object in a lower folder with the same id as an > object in a higher folder the lower object will override the higher > object. Get that?) From mbernstein@profitscape.net Wed Mar 3 17:00:13 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:00:13 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Message-ID: <36DD6A9D.557592FB@profitscape.net> Paul Everitt wrote: > BTW, is there any interest here in a Zope training course? Yes, at least theoretically. What would be covered and is this an online or offline course? Michael Bernstein. From bkc@murkworks.com Wed Mar 3 16:17:07 1999 From: bkc@murkworks.com (Brad Clements) Date: Wed, 3 Mar 1999 12:17:07 -0400 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903031711.MAA29620@anvil.murkworks.com> On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. Time to move this to zope-dev? anyway, I think this sounds like a good idea. It harkens back to an inquiry I made about byte-serving PDF files. I don't want to dump my pdf's into the database. If you can implement this, I think I could implement byte-serving. Although byte-serve could be handled at the ZServer level, I think for large external files it'd be more effective at the "cat" level -B Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From kid@ans.net Wed Mar 3 17:26:15 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 12:26:15 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <19990303122615.A6474@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: ,----- | >Here is a start. | | Great start! | | Could I suggest that there be FAQs for different catagories? This is a good idea. I can see this FAQ growing very, very quickly. So, I would suggest that we start thinking about a hierarchy already... a couple suggestions below: | | My list would include: | Installation * building * win32 * freeBSD * etc. * server configuration * zap * apache * ZServer | DTML | external methods | Win32 (maybe there are specific issues, if so I don't want to read about | them :) I'm not sure if there will be many platform specific issues after installation... | SQL methods | patches/hacks to Zope | | I am sure that I can find lots of work for you! | | Phil A | | ------------------------------------------ | Philip Aylesworth zopelist@regalint.com | Regal International | | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From julian@zereau.net Wed Mar 3 17:31:31 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:31:31 -0000 (GMT) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903031711.MAA29620@anvil.murkworks.com> Message-ID: On 03-Mar-99 Brad Clements wrote: > On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > > >> This sounds like something we need. >> I know that I could use it. >> If folks will critique this design, I'll implement it. > > > Time to move this to zope-dev? > > anyway, I think this sounds like a good idea. It harkens back to an > inquiry I made about byte-serving PDF files. I don't want to dump my > pdf's into the database. > > If you can implement this, I think I could implement byte-serving. > > Although byte-serve could be handled at the ZServer level, I think for > large external files it'd be more effective at the "cat" level How safe would it be, to allow any random user to use the add menu to create arbitrary symlinks into the native file system tree? --- Julian Morrison Programmer (Zereau Ltd) From mbernstein@profitscape.net Wed Mar 3 17:32:20 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:32:20 -0800 Subject: [Zope] count of items in group? References: Message-ID: <36DD7224.67AED2C5@profitscape.net> julian@zereau.net wrote: > > Using the "in" tag's grouping capability, is there any way to get the count of > items in that group? I need this so I can have a table with one row per item > and a cell rowspanned for all the group's items (eg: related products and their > picture). Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit. Michael Bernstein. From julian@zereau.net Wed Mar 3 17:34:16 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:34:16 -0000 (GMT) Subject: [Zope] count of items in group? In-Reply-To: <36DD7224.67AED2C5@profitscape.net> Message-ID: On 03-Mar-99 Michael Bernstein wrote: > julian@zereau.net wrote: >> >> Using the "in" tag's grouping capability, is there any way to get the count >> of >> items in that group? I need this so I can have a table with one row per item >> and a cell rowspanned for all the group's items (eg: related products and >> their >> picture). > > Rather than using rowspan, use nested tables. I haven't done this in > Zope yet, but it was always my solution of choice in ColdFusion. It also > makes it easier to debug your layout in a WYSIWYG editor. It does, of > course, bloat your HTML a bit. It will work, and I'm going to have to in the short term, but I really would like the multiple columns for each item to line up down the page, without ugly fixed-width hacks. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 17:40:19 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 12:40:19 -0500 (EST) Subject: [Zope] Crossposting Message-ID: Is it possible to have a filter on the mailing lists that will drop any posts on the main zope site that appear to be cross-posted on the zope-dev site? Pavlos From zopelist@regalint.com Wed Mar 3 18:00:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 13:00:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <19990303122615.A6474@throwingcopper.ans.net> References: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Maybe by splitting up the FAQs we could split up the work, too! Have a different person/group resposible for each FAQ. Of course there would be nothing stopping some energetic type being involved with all of them :) Also, I think that HOWTOs of the Linux type would be a great idea. They have a person/group responsible for each HOWTO to keep it up to date and add/edit things as needed. I am just commenting from the sidelines. Right now I barely have time to scan through the zope-list! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Wed Mar 3 18:53:55 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 13:53:55 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 01:00:03PM -0500 References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <19990303135355.47418@amber.org> On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > Maybe by splitting up the FAQs we could split up the work, too! Have a > different person/group resposible for each FAQ. Well, I think it'd be nice if there was someone "responsible" for each major section, this would keep everyone from getting swamped. > Of course there would be nothing stopping some energetic type being > involved with all of them :) :-) I for one have no problem causing trouble in everyone's life! > Also, I think that HOWTOs of the Linux type would be a great idea. They > have a person/group responsible for each HOWTO to keep it up to date and > add/edit things as needed. You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and I'm sure Guido/Fred wouldn't mind us using this. It works real well, and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets you do the "bigger" stuff in a nice pretty way. What would also be nice is a list of "bigger" issues that people would liek to see explained more... something that's more than a single question. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rocon@pivot.net Wed Mar 3 20:28:27 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 3 Mar 1999 15:28:27 -0500 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Christopher G. Petrilli wrote:... >You can find a "howto" LaTeX stylesheet in the >Python CVS checkout, and I'm sure Guido/Fred >wouldn't mind us using this. It works real well, >and can target HTML, ASCII (I think), >Postscript, PDF, etc... this lets >you do the "bigger" stuff in a nice pretty way. Ok, I found: http://www.python.org/doc/howto/writing.html the link on that page: you can grab [Fred Drake's documentation distribution], and use... Is broken with a "Error 404: File Not Found" Searching for "LaTeX CVS" didn't quite get it can you please provide the links? Not only will this be good for the DOC project but also for general use in targeting HTML PDF etc....etc... TIA -bobo connor From michel@digicool.com Wed Mar 3 20:48:32 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 15:48:32 -0500 Subject: [Zope] etcUserFolder Product Message-ID: <613145F79272D211914B0020AFF6401907BACC@GANDALF> Greetings, (This is crossposted because it is a product anouncement, and contains interesting developer pointers) I've have massaged the source code for UserDb and created a new user folder products called etcUserFolder. This products authenticates off of a flat file of usernames:cryptedpasswords. If there is anything trailing the crypted password it is ignored, so any /etc/passwd file will work. It is generaly not recommended, however, to use your /etc/passwd file for security reasons. This is an unsuported product and has been written because it was asked for a few times, and I felt the community could use another good example of writing user folders. It also shows off cookie authentication which Brian perfected with UserDb. Here is the documentation: etcUserFolder requires a directory called 'etcUsers' in which to place your file containing the uid:pwd pairs. This directory may be an INSTANCE_HOME (typicaly your top level Zope dir), SOFTWARE_HOME (typicaly 'lib/python') or in the etcUserFolder directory. Jim wrote a nifty function called getPath that sniffs all of these places for a directory and file of your choosing. This function is included in etcUserFolder and will be included as a standard function of the next release. Other Product authors may find it interesting. Since the flat file is meant to be b/w compatable with /etc/passwd and htpasswd style files, there is no Role associated with the users it authenticates. You can specify a default role which is, by default, 'etcUser'. I have not done extensive testing of this, therefore it is a pre-release. Please send bug-reports and hopefully a patch to me (michel@digicool.com) http://www.zope.org/Download/Prereleases/etcUserFolder/etcUserFolder.tar .gz -Michel From phila@regalint.com Wed Mar 3 20:44:25 1999 From: phila@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 15:44:25 -0500 Subject: [Zope] DTML Method vs Document Message-ID: I just upgraded to 1.10.2 and I noticed that when creating a new document I have a choice of DTML document and DTML method. This seems useful. I noticed that all my DTML documents and DTML methods have the icon for a DTML method. Everything seems to work. What is the difference between a DTML document and a DTML method? Seems to me a method should not be surfable but they are. Is it possible to change my documents to DTML documents? Even just for housekeeping. One other unrelated question: What is a Principia Draft? ------------------------------------------------------------------- Philip Aylesworth Information Systems Manager phila@regalint.com PGP public key: http://www.regalint.com/PGPkeys/phila.html From petrilli@amber.org Wed Mar 3 21:05:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 16:05:07 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Wed, Mar 03, 1999 at 03:28:27PM -0500 References: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: <19990303160507.37050@amber.org> On Wed, Mar 03, 1999 at 03:28:27PM -0500, Robert OConnor wrote: >[Robert mentions problems with the links on the web site] I just had a quick exchange with Fred Drake (who handles most of the documentation duties for the Python organization), and he is aware of this problem, and has forwarded the issue to AMK who is responsible for teh HOWTO stuff. IN the mean time, he suggests grabbing the latex documentation whihc will have it all in it. If this is too painful, I can post a snapshot of the pieces taht are needed from the current CVS repository. The URL for the LaTeX documentation is: http://www.python.org/ftp/python/doc/latex-1.5.2b2.tgz Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jae@kavi.com Wed Mar 3 21:04:07 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:04:07 -0800 (PST) Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DD1470.531A427@pop.vet.uu.nl> Message-ID: On Wed, 3 Mar 1999, Martijn Faassen wrote: > What would also be nice is some way to simply generate plain ascii text > versions of the FAQ as well, along with possibly some other versions. We > could also think about generating DocBook SGML (which then can be > converted in a lot of different formats with for instance the Linux > SGMLtools 2.0). I would love to see this feature (generating DocBook SGML). I thought about something like this myself (for my howto), but I just don't have the time at the moment. I could probably find enough time to help out a little though. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Wed Mar 3 21:10:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 16:10:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: >Is broken with a "Error 404: File Not Found" >Searching for "LaTeX CVS" didn't quite get it >can you please provide the links? Try ftp://ftp.python.org/pub/python/doc/latex-1.5.2b2.tgz Thanks, Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tjg@avalongroup.net Wed Mar 3 21:06:43 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Wed, 03 Mar 1999 13:06:43 -0800 Subject: [Zope] ZMySQLDA Message-ID: <36DDA463.683D9460@avalongroup.net> Hi, I'm playing with Zope, and have been trying to get Zope to talk to MySQL using the MySQLDA. I'm running RedHat 5.2 Since there were caveats about having MySQL development enabled, and such, I downloaded the source distribution for MySQL and made it. It appears to be working very nicely. When I follow the procedures outlined in the README, the following happens: I run make -f Makefile.pre.in boot and everything works correctly. I then run make and get the following error. gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql -lmysqlclien t -lm -o MySQLmodule.so ld: cannot open -lmysqlclient: No such file or directory make: *** [MySQLmodule.so] Error 1 I did a locate on mysqlclient, and coudln't find the file. though I did find some called libmysqlclient. So I changed the both Setup and Setup.in to reflect that other name. however, I still get the above error. Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From jae@kavi.com Wed Mar 3 21:48:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:48:33 -0800 (PST) Subject: [Zope] ZMySQLDA In-Reply-To: <36DDA463.683D9460@avalongroup.net> Message-ID: On Wed, 3 Mar 1999, Timothy Grant wrote: > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. Your problem wasn't with the library, -lmysqlclient refers to libmysqlclient (think of the -l as short for lib). The problem probably was that libmysqlclient wasn't on the path gcc searched for libraries. This is controled by the -L argument (-L is library paths). So... here's what to do: 1. Get everything cleaned up (ie. back in the condition after first untarring ZMySQL). 2. Edit Setup.in, add -L to the end of the last line. 3. Proceed as usual (make -f Makefile.pre.in boot; make) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From ron@rotflol.cx Wed Mar 3 21:57:31 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 22:57:31 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Your message of "Wed, 03 Mar 1999 10:17:04 EST." <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903032157.WAA00348@heaven.rotflol.cx> > > > > -----Original Message----- > > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > > Sent: Wednesday, March 03, 1999 9:42 AM > > To: zope@zope.org > > Subject: [Zope] Some tough questions about zope... (long) > > > > > > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > > programs are mainly .cgi, but the PHP3 programs are server-side > > scripted, and as such are embedded into the HTML itself). This is so > > that I can > > ...do what? ;) Zope can call your cgi scripts just like they are, as > URLs. They would, of course, have to be external to Zope and if you > have a bunch of little ones you may find it better (and a damn sight > easier) to rewrite them as Python in Zope as external methods. (DTML is > also a rather powerful language for being so simple). Just leave your > PHP stuff in your documents; Zope will parse out the DTML and return it > to the server, which will parse out the PHP stuff and return it to the > browser. In fact, you can probably make DTML and PHP work together > nicely and simplify much of your PHP code. In the quickie case you > don't need to change your PHP. If this would work (having Apache parse the PHP code in the pages returned by Zope), you would save me a lot of painfull converting working PHP code (mainly database related) and I would gradually convert from PHP/Apache to Zope/Python/Apache. Pleaz tell me how this neat trick is done... (maybe some fiddling with the headers???) Hint: Creating a DTML Document/method with the following contents doesn't fool Apache in rendering PHP!

    Give me the (PHP) money...

    Read the phpinfo between the lines... NOT!!

    -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From raver@box.dust.za.net Wed Mar 3 22:02:07 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 3 Mar 1999 23:02:07 +0100 Subject: [Zope] Data from forms into a database - how? Message-ID: <19990303230207.A1292@RaVER.duck.org> Hello! Don't laugh at me - this is probably a very simple thing to do, but as I'm new to zope and can't find description of how this is accomplished I seek your help. I get data out of my database (MySQL) by querying, but how can I have data collected by forms showeled into the database? Appreciate any help I can get! Sture Lygren From michel@digicool.com Wed Mar 3 22:24:41 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 17:24:41 -0500 Subject: [Zope] DTML Method vs Document [ZDP?] Message-ID: <613145F79272D211914B0020AFF6401907BACD@GANDALF> > -----Original Message----- > From: Philip Aylesworth [mailto:phila@regalint.com] > Sent: Wednesday, March 03, 1999 3:44 PM > To: Zope List > Subject: [Zope] DTML Method vs Document > > > I just upgraded to 1.10.2 and I noticed that when creating a > new document I > have a choice of DTML document and DTML method. This seems useful. I > noticed that all my DTML documents and DTML methods have the > icon for a > DTML method. Everything seems to work. > > What is the difference between a DTML document and a DTML > method? Seems to > me a method should not be surfable but they are. > This is my take on the situation. As far as I can tell this is pretty deep voodoo. A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called foo, and it contained a DTML Method called bar, then bar is a method of foo. foo doesn't contain the object bar, it has the method bar bound to it. What this means is that from bar's point of view, 'self' is a Folder object, and any properties it sees are properties of foo, not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of DTMLDocument.DTMLDocument. They can manage their own Properties (because they inherit PropertyManager.PropertyManager). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question 'Am I showing some other objects content through me?' is Yes. DTML Documents should be used when the answer to the question 'Am I the content I want to display?' is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. (BTW Martijn, perhaps the above should go in the FAQs) If this isn't clear to you don't worry, it isn't even really clear to me. There is no way, but there really should be a way to convert between the two because the roles for a DTML widget may change from Method to Document as your system evolves. This will probably be a feature in the next release. (This is the answer to the question 'Can I convert between DTML Meths and DTML Docs?' for the FAQs) > Is it possible to change my documents to DTML documents? Even just for > housekeeping. > See directly above. > One other unrelated question: What is a Principia Draft? > Ugh..good question... I need to find that one out myself. > > > ------------------------------------------------------------------- > Philip Aylesworth Information Systems Manager > phila@regalint.com > PGP public key: http://www.regalint.com/PGPkeys/phila.html > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mjd@networklogic.com Wed Mar 3 22:23:44 1999 From: mjd@networklogic.com (Maurice Davis) Date: Wed, 03 Mar 1999 14:23:44 -0800 Subject: [Zope] Version 0.3 of ZPyGreSQLDA Message-ID: <36DDB670.4B15C6A4@networklogic.com> Version 0.3 of ZPyGreSQLDA has been posted to the Contrib area of the Zope site. This version upgrades to PyGreSQL 2.3 and compiles under Zope-1.10.2. It now closes the backend connection to postgres when the database connection is shut down from Zope. Maury From ron@rotflol.cx Wed Mar 3 22:42:30 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 23:42:30 +0100 Subject: [Zope] ZMySQLDA In-Reply-To: Your message of "Wed, 03 Mar 1999 13:06:43 PST." <36DDA463.683D9460@avalongroup.net> Message-ID: <199903032242.XAA02180@heaven.rotflol.cx> > Hi, > > I'm playing with Zope, and have been trying to get Zope to talk to MySQL > using the MySQLDA. > > I'm running RedHat 5.2 > > Since there were caveats about having MySQL development enabled, and > such, I downloaded the source distribution for MySQL and made it. It > appears to be working very nicely. > > When I follow the procedures outlined in the README, the following > happens: > > I run make -f Makefile.pre.in boot and everything works correctly. > > I then run make and get the following error. > gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 > -DHAVE_CONFIG > _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c > ./MySQLmodule.c: In function `pythonify_row': > ./MySQLmodule.c:238: warning: assignment from incompatible pointer type > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. > > Any help would be greatly appreciated. You almost made it ;=) The -lmysqlclient does refer to the libmysqlclient you found, but you should only modify the path pointing to it. This is done in the Setp[.in] just before the -lmysqlclient; modify the '-L/', if have this set to -L/usr/local/lib/mysql. [ZDP] Maybe this is something for the FAQ? -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From jae@kavi.com Wed Mar 3 23:03:12 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 15:03:12 -0800 (PST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903032157.WAA00348@heaven.rotflol.cx> Message-ID: On Wed, 3 Mar 1999, Ronald Offerman wrote: > > also a rather powerful language for being so simple). Just leave your > > PHP stuff in your documents; Zope will parse out the DTML and return it > > to the server, which will parse out the PHP stuff and return it to the > > browser. In fact, you can probably make DTML and PHP work together > > nicely and simplify much of your PHP code. In the quickie case you > > don't need to change your PHP. > > If this would work (having Apache parse the PHP code in the pages > returned by Zope), you would save me a lot of painfull converting > working PHP code (mainly database related) and I would gradually convert > from PHP/Apache to Zope/Python/Apache. This can't be done currently. I researched this a while back, trying to get server side includes to work. There's actually an entry in the Apache FAQ about it: """ 9.How can I have my script output parsed? So you want to include SSI directives in the output from your CGI script, but can't figure out how to do it? The short answer is "you can't." This is potentially a security liability and, more importantly, it can not be cleanly implemented under the current server API. The best workaround is for your script itself to do what the SSIs would be doing. After all, it's generating the rest of the content. This is a feature The Apache Group hopes to add in the next major release after 1.3. """ Though this is about SSI, it basically means (I believe) that apache can't take back the output of a CGI for additional module handling. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From neves@inf.puc-rio.br Wed Mar 3 23:22:43 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 03 Mar 1999 20:22:43 -0300 Subject: [Zope] Data from forms into a database - how? References: <19990303230207.A1292@RaVER.duck.org> Message-ID: <36DDC443.EF76DAE0@inf.puc-rio.br> raver@box.dust.za.net wrote: > > Hello! > > Don't laugh at me - this is probably a very simple thing to do, but > as I'm new to zope and can't find description of how this is accomplished > I seek your help. I get data out of my database (MySQL) by querying, but > how can I have data collected by forms showeled into the database? > > Appreciate any help I can get! > Hi Sture, try to use the P MySQL Input wizard in the contrib download area. It will automatically create a insert sql method and a form for you. So you can just follow the pattern. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From michel@digicool.com Wed Mar 3 23:42:05 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 18:42:05 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BACF@GANDALF> > -----Original Message----- > From: John Eikenberry [mailto:jae@kavi.com] > Sent: Wednesday, March 03, 1999 6:03 PM > To: Ronald Offerman > Cc: Michel Pelletier; Tony McDonald; zope@zope.org; > ron@heaven.rotflol.cx > Subject: Re: [Zope] Some tough questions about zope... (long) > > > On Wed, 3 Mar 1999, Ronald Offerman wrote: > > > > also a rather powerful language for being so simple). > Just leave your > > > PHP stuff in your documents; Zope will parse out the DTML > and return it > > > to the server, which will parse out the PHP stuff and > return it to the > > > browser. In fact, you can probably make DTML and PHP > work together > > > nicely and simplify much of your PHP code. In the > quickie case you > > > don't need to change your PHP. > > > > If this would work (having Apache parse the PHP code in the pages > > returned by Zope), you would save me a lot of painfull converting > > working PHP code (mainly database related) and I would > gradually convert > > from PHP/Apache to Zope/Python/Apache. > > This can't be done currently. I researched this a while back, > trying to > get server side includes to work. There's actually an entry > in the Apache > FAQ about it: > > """ > 9.How can I have my script output parsed? > > So you want to include SSI directives in the output from your CGI > script, but can't figure out how to do it? The short > answer is "you > can't." This is potentially a security liability and, more > importantly, it can not be cleanly implemented under the current > server API. The best workaround is for your script > itself to do what > the SSIs would be doing. After all, it's generating the > rest of the > content. > > This is a feature The Apache Group hopes to add in the next major > release after 1.3. > """ > > Though this is about SSI, it basically means (I believe) that > apache can't > take back the output of a CGI for additional module handling. > > --- Well paint me blue and call me a liar. At least it's planned. Michel > > John Eikenberry > [jae@kavi.com - http://taos.kavi.com/~jae/] > ______________________________________________________________ > "A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From reedstrm@rice.edu Thu Mar 4 00:02:51 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Wed, 03 Mar 1999 18:02:51 -0600 Subject: [Zope] Indirect variable references References: <3.0.5.32.19990204010511.01588de0@mail.aracnet.com> Message-ID: <36DDCDAB.E2D20FD@rice.edu> Amos Latteier wrote: I'm piggy backing this on Amos's post from a while ago, because that is where I finally found my answer. I could have sworn I had seen (and used!) a DTML code fragment that displayed the form variables sent to it, with there values. Obviously, this involves indirection. After hunting through my (extensive) zope-list archive, I couldn't find it, so I started over, with the help of Amos's text and wrote one. I often need little tools like this to debug between my forms and sql actions, so I can see what's really going on! I call it 'show_vars' The only tricky thing in it is that sequence-item is an invalid variable name, so I need to wrap it in _[''] which leads to the double wrap when dereferencing to get the value. Anyway, hope someone else finds it useful!
    Form VariableValue
    Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From oyvindmo@pvv.ntnu.no Thu Mar 4 00:18:41 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 04 Mar 1999 01:18:41 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: Message-ID: * John Eikenberry | | On Wed, 3 Mar 1999, Ronald Offerman wrote: | | > > also a rather powerful language for being so simple). Just leave your | > > PHP stuff in your documents; Zope will parse out the DTML and return it | > > to the server, which will parse out the PHP stuff and return it to the | > > browser. In fact, you can probably make DTML and PHP work together | > > nicely and simplify much of your PHP code. In the quickie case you | > > don't need to change your PHP. | > | > If this would work (having Apache parse the PHP code in the pages | > returned by Zope), you would save me a lot of painfull converting | > working PHP code (mainly database related) and I would gradually convert | > from PHP/Apache to Zope/Python/Apache. | | This can't be done currently. I researched this a while back, trying to | get server side includes to work. [...] | Though this is about SSI, it basically means (I believe) that apache can't | take back the output of a CGI for additional module handling. I haven't tried it, but it could possibly be done by running two Apaches: one which stands "in front of" the other. The front-side Apache would rewrite every access into a PHP wrapper-script which include()s a corresponding URL from the back-side Apache where the Zope things would be done. On the other hand, I really should be asleep now so all this _may_ be utter nonsense, but I do think it's possible. It may even be possible with a single Apache, but that's more hairy than I dare think about right now. Good night. (Btw, my suggested hack isn't in total disagreement with the quoted FAQ entry, because my hack surely won't work with SSI. PHP3 isn't an official Apache module, so they don't neccessarily mention things like this in their FAQ.) -- Øyvind Møll oyvindmo@pvv.ntnu.no From Anthony Baxter Thu Mar 4 00:24:34 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 04 Mar 1999 11:24:34 +1100 Subject: [Zope] debugging ZServer FTP sessions. Message-ID: <199903040024.LAA11235@mbuna.arbhome.com.au> I'm attempting to use ZServer's ftp daemon to upload a number of images into my database, however no matter what I try I always get back ftp> put sidebar.gif local: sidebar.gif remote: sidebar.gif 200 PORT command successful. 150 Opening Binary connection for sidebar.gif 550 Error creating file. 189 bytes sent in 0.00139 secs (1.3e+02 Kbytes/sec) ftp> I've tried this with an image that doesn't exist, as well as for one that already exists. Is it just a matter of "it doesn't work for images" or what? Also, where does ZServer send errors from ftp sessions? It looks to me like it's just silently eating them. :( Anthony From rushing@nightmare.com Thu Mar 4 01:03:59 1999 From: rushing@nightmare.com (rushing@nightmare.com) Date: Wed, 3 Mar 1999 17:03:59 -0800 (PST) Subject: [Zope] ZServerFTP In-Reply-To: <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> References: <008401be622b$0a80edd0$fa01a8c0@rogue.easystreet.com> <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> Message-ID: <14045.55810.997842.777915@gnome.nightmare.com> Amos Latteier writes: > At 12:27 AM 2/27/99 -0800, you wrote: > >HomeSite's FTP mode is apparently trying to use the FTP commands "MODE S" > >and "STRU F" to which ZServer is responding with a "500 '%s': command not > >understood." % command and then HomeSite bails out and never fetches any > >directory listings or anything. > > > >Is there any intent to support these commands? It sure would be nice. > > Right now we are trying not to add a lot of FTP commands to ZServer that > Medusa's FTP server doesn't already support, and it seems that Medusa > doesn't support these right now. > > I'll look into these commands and if they are easy to implement and make > sense for Zope, I'll try. Of course, patches are always welcome. In all the world you might find 4 machines still plugged in that support 'record' or 'page' structure. The default is 'file', which is what that command is trying to do. Add these two methods to ftp_server.py::ftp_channel def cmd_stru (self, line): 'obsolete - set file transfer structure' if line[1] in 'fF': # f == 'file' self.respond ('200 STRU F Ok') else: self.respond ('504 Unimplemented STRU type') def cmd_mode (self, line): 'obsolete - set file transfer mode' if line[1] in 'sS': # f == 'file' self.respond ('200 MODE S Ok') else: self.respond ('502 Unimplemented MODE type') And that should do the trick. [these changes have just been checked into my CVS repository, too] -Sam From mj@antraciet.nl Thu Mar 4 09:06:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:06:39 +0100 Subject: [Zope] DTML Method vs Document In-Reply-To: Message-ID: <4.1.19990304090459.00bef1b0@lisp.atmm.nl> At 21:44 03/03/99 , Philip Aylesworth wrote: >What is the difference between a DTML document and a DTML method? Seems to >me a method should not be surfable but they are. > >Is it possible to change my documents to DTML documents? Even just for >housekeeping. Micheal answered these perfectly. >One other unrelated question: What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. This has allready been reported as a bug to the Collector by me. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder. I think that Folder objects _used_ to call title_and_id on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using it's id and title separetly. Principia Drafts made use of the call to title_and_id to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's users__draft__.manage_main method, and reach the Session controls by calling its manage_approve__draft__ method. The URLS are: http://yoursever.com/Zope/Draft/users__draft__/manage_main and http://yoursever.com/Zope/Draft/manage_approve__draft__ Martijn Ps. Martijn, I am CCing to you for use in the FAQ. I know it still needs editing.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 4 09:19:50 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:19:50 +0300 (MSK) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BACF@GANDALF> Message-ID: Hi! On Wed, 3 Mar 1999, Michel Pelletier wrote: > > Though this is about SSI, it basically means (I believe) that > > apache can't > > take back the output of a CGI for additional module handling. > > > > --- > > Well paint me blue and call me a liar. At least it's planned. It will be implemented with Layered (stacked) handlers. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phd@sun.med.ru Thu Mar 4 09:29:41 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:29:41 +0300 (MSK) Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Hello! I am new to Zope, and i want to clarify some problems. On Wed, 3 Mar 1999, Martijn Faassen wrote: > * How do I call an external method from DTML? As far as I understand there are DTML objects (templates), Products and External methods. There is no such thing as "Internal" methods (objects, that live in Zope's object database). Are these 3 the only 3 kinds of executable (callable) things? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Thu Mar 4 09:30:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:30:45 +0100 Subject: [Zope] [ZDP] Showing form data Message-ID: <4.1.19990304101312.00b9b100@lisp.atmm.nl> * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Thu Mar 4 09:32:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:32:44 +0100 Subject: [Zope] [ZDP] Showing form data (take two) In-Reply-To: <4.1.19990304101312.00b9b100@lisp.atmm.nl> Message-ID: <4.1.19990304103150.00b90ef0@lisp.atmm.nl> Take two, now with escaped HTML.... * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: <!--#in "REQUEST.form.items()" sort--> <!--#var sequence-key-->: <!--#var sequence-item--><BR> <!--#/in--> Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Thu Mar 4 09:40:40 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:40:40 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: Message-ID: <36DE5518.109B83A2@pop.vet.uu.nl> John Eikenberry wrote: > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > > What would also be nice is some way to simply generate plain ascii text > > versions of the FAQ as well, along with possibly some other versions. We > > could also think about generating DocBook SGML (which then can be > > converted in a lot of different formats with for instance the Linux > > SGMLtools 2.0). > > I would love to see this feature (generating DocBook SGML). I thought > about something like this myself (for my howto), but I just don't have the > time at the moment. I could probably find enough time to help out a little > though. I'm randomly assuming here you know more about DocBook SGML than I do, so here I'm involuntarily inofficially but you can back out of it immediately appointing you the ZDP DocBook SGML expert. :) I think perhaps the first thing you could do is get together with people in the Latex thread for docs; they seem to have come up with it independently. I know even less Latex than SGML and SGML seems a closer fit with the XML-ish direction the web's taking, so my question would be to point out the advantages of SGML to everybody. Regards and thanks in advance, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 09:45:31 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:45:31 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <36DE563B.C19C92A5@pop.vet.uu.nl> Kevin Dangoor wrote: > On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: > > Here is a start. > > > > Great start! > > > > Could I suggest that there be FAQs for different catagories? > This is a good idea. I can see this FAQ growing very, very quickly. > So, I would suggest that we start thinking about a hierarchy > already... [snip proposed hierarchies] Yup, splitting up the FAQ into different categories appears to be pretty needed, so this is a good idea. My idea is to 'involunteer' you category maker guys to take the assembled FAQ that I'll produce hopefully today (in a few hours), and put each question in the category you feel it belongs to. This way I have to do less work and thinking. :) Realizes-he-is-talking-to-two-people-so-you-can-always-say-I-thought-the-other-guy-would-do-itly yours, (wow, a long one :) Martijn From Armin.Tschammer@oi42.kwu.siemens.de Thu Mar 4 09:49:39 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Thu, 04 Mar 1999 10:49:39 +0100 Subject: [Zope] Bobo or ZPublisher and stdout ( Solution: Client/Server) Message-ID: <36DE5733.60F87988@oi42.kwu.siemens.de> Hi, I already sent some postings to this topic, but I would like to discuss the following problem again and how it could be solved. Imagine there is a big C++/Python project. The application is mainly prgrammed in C/C++ und one supports a scritpting interface to that application via the SWIG mechanism - the target language is Python. During the developping process many stuff is written to the stdout - during initialization ( before the main-function ), during execution ( in the main-function ), and in the destructors of the static instances ( after the main-function ). Now we want to do some web-stuff via ZPublisher, we define a function which return a html string, which is calculated through calling functions from our scritpting interface of our application, that means beside my correct calculated string there is many stuff sent to stdout, that confuses the Xserver and I get an error. Ok, you would say switch the stdout to a file via calling c-funcions like dup() or dup2( ) and encapsulate this in a function (wrapped via SWIG), which is called in the function which I call from the URL in the browser. Less cryptic: xy.py: start(): "XXXXXXX" #Now all stdout goes in a file stdout2file( "log.txt") .... HTMLstring = .... # sitches the stdout back ( REVerse ) # The way is free for CGI REVstdout2file() return HTMLstring the URL: http://myserver:3333/yyy/cgi-bin/xy/start BUT with this method I have no chance to chatch stuff which is written to the stdout in the destrutors of the static instances, because we already have switched back to the "usual" stdout (for a correctly working cgi-mechnism). The some problem one have with things which are written to the stdout during the initialisation of the static instances. ( Imagine python itself is compiled against a library which writes some stuff to stdout during initialization). I see only one solution: If there is a ZPublisher Server process which says to a client process do everything and give me a calculated string via sockets or something like that, I have not to take care about stuff which is written to the stdout at the client process. Or are there better solutions ? Thanks in advance, Armin From M.Faassen@vet.uu.nl Thu Mar 4 10:02:39 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 11:02:39 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> <19990303135355.47418@amber.org> Message-ID: <36DE5A3F.39DA2C28@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > > Maybe by splitting up the FAQs we could split up the work, too! Have a > > different person/group resposible for each FAQ. > > Well, I think it'd be nice if there was someone "responsible" for each > major section, this would keep everyone from getting swamped. Yes, this would be a good idea. My first priority however is to get as much of a FAQ as possible out there. Organization we'll do at the same time. Otherwise we run the risk getting bogged down in organizing who does what. That said, volunteers who want to manage specific sections of the FAQ are very welcome to step forward. Procedure is as follows: you get to name your topic; the first person who names a particular topic and produces a FAQ for it (assembling it from the FAQ we have now, and hopefully adding more of his or her own to it) will be manager for that section, unless that person doesn't want to, of course. :) I suggest to mail this list instead of me personally, so that other people can respond friday and during the weekend, when I won't be around to check the mail. We're working on getting a zdp@zope.org mailing list too, but I can't say yet when that'll be ready. [snip] ] > > Also, I think that HOWTOs of the Linux type would be a great idea. They > > have a person/group responsible for each HOWTO to keep it up to date and > > add/edit things as needed. Aren't there some HOWTOs out there already on the Zope site? (there are FAQs too but that doesn't stop us of course). HOWTOs and FAQs of course have some overlap; we'll just see how it evolves. > You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and > I'm sure Guido/Fred wouldn't mind us using this. It works real well, > and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets > you do the "bigger" stuff in a nice pretty way. Earlier I suggested using SGML Docbook for this purpose; I've appointed John Eikenberry (without any feedback from him :) as our official SGML docbook expert. One advantage of Docbook SGML is that it's the new Linux standard for writing documentation. > What would also be nice is a list of "bigger" issues that people would > liek to see explained more... something that's more than a single > question. I think essentially a HOWTO is a particular frequently asked question with a very long answer. :) Regards, Martijn From Rheal.Dugas@CAN.XEROX.com Thu Mar 4 13:02:53 1999 From: Rheal.Dugas@CAN.XEROX.com (Dugas, Rheal) Date: Thu, 4 Mar 1999 08:02:53 -0500 Subject: [Zope] Query Message-ID: HI all I am a color specialist with Xerox. What i am doing with Zope is setting up a Knowedge database for my fellow color specialist. I am having a bit of a problem setting up a search query. Following is what i have know, Could somebody tell me how i could improve on this query. SELECT * FROM problems WHERE problems_rip_model LIKE OR problems.prob_descript LIKE '%%' OR problems.prob_solution LIKE '%%' Is this the proper code or is there a better way of doing it? Thank You Rheal J. Dugas 1-800-939-3769 ext 1074 From Paul@digicool.com Thu Mar 4 13:34:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:24 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Philip wrote: > Maybe Michigan/Ontario area? Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) No, right now we're considering partnering with a technology training company in Washington DC. --Paul From Paul@digicool.com Thu Mar 4 13:34:25 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:25 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD2@GANDALF> Michael wrote: > Yes, at least theoretically. What would be covered and is > this an online > or offline course? My rough sketch right now is a four-day course: Day One -- Zope for Content Managers Day Two -- Zope Programming Using Zope Day Three -- Zope Programming Using Python Day Four -- Relational Databases and Zope -- Zope for System Administrators It would be a professionally produced and delivered "in the classroom" class, a la Learning Tree. That is, I won't be doing it. :^) Instead, I'll produce a poor version of the whole thing and give it to them, including the first customer that will send maybe 7 people. My poor version would probably become an online version. Just my thoughts currently. --Paul From rocon@pivot.net Thu Mar 4 13:37:40 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 4 Mar 1999 08:37:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Hi Martijn, >I suggest to mail this list instead of me personally, so that other >people can respond friday and during the weekend, when I won't be around >to check the mail. We're working on getting a zdp@zope.org mailing list >too, but I can't say yet when that'll be ready. This ZDP list appears to be ready now although only Ken [List admin] is signed up. I added my name using: http://www.zope.org/mailman/listinfo/zdp The list of ZDP collaborators (subscribers) is at: http://www.zope.org/mailman/roster/zdp -bobo connor bob@rocnet.com From M.Faassen@vet.uu.nl Thu Mar 4 13:43:49 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 14:43:49 +0100 Subject: [Zope] [ZDP] List appears ready References: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Message-ID: <36DE8E15.A3901B2A@pop.vet.uu.nl> Robert OConnor wrote: > > Hi Martijn, > > >I suggest to mail this list instead of me personally, so that other > >people can respond friday and during the weekend, when I won't be around > >to check the mail. We're working on getting a zdp@zope.org mailing list > >too, but I can't say yet when that'll be ready. > > This ZDP list appears to be ready now although only Ken [List admin] > is signed up. I know, Ken sent me a mail. :) I still need to subscribe to it. > I added my name using: > > http://www.zope.org/mailman/listinfo/zdp > > The list of ZDP collaborators (subscribers) is at: > > http://www.zope.org/mailman/roster/zdp I guess this counts as an announcement. Ken asked me to do it, but I just mailed him I'd rather he did it (as he knows more about these things than I do, and I won't be available to deal with problems until monday, after today, thursday). But, now you did, so that's fine too. :) Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 14:16:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:16:50 +0100 Subject: [Zope] ZDP's Ad-hoc Zope FAQ version 0.1 Message-ID: <36DE95D2.A35366C2@pop.vet.uu.nl> Hi everybody, Here is the new ad-hoc FAQ. I'll start versioning it as of now; this is version 0.1. How we'll do the actual versioning we'll still have to decide on, but at least we have a way to refer to this one now. Regards, Martijn ---- Note on the use of the Zope mailing lists: The Zope Documentation Project is getting its own mailing list (zdp@zope.org). In an attempt to gain publicity and support among the Zope community, I'll post this development FAQ to the main Zope list as well, however. Feel free to respond to it on either list for now, but you are encouraged to join the ZDP mailing list and to send new FAQ suggestions there. You can subscribe to the ZDP mailing list by using the page: http://www.zope.org/mailman/listinfo/zdp Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured, unrelated questions are mixed haphazardly. If you feel the calling to categorize the FAQ or to maintain the questions for a particular topic, feel free to mail your changes to the list, and thanks in advance! Note on the code examples and StructuredText: I've reconsidered and used normal '<' and '>' characters in sample DTML, for the reason that at least the FAQ is readable as text then. If you try to feed this FAQ through:: there will be an error message in Zope, however. For some reason Zope seems to try to interprete even StructuredText that uses & escape codes. Until this issue is resolved it is not possible to render this document into HTML. In my uninformed opinion, StructuredText code examples shouldn't be interpreted by Zope as actual DTML. There may be some rather subtle technical difficulties involved however. Any input on this is very welcome. Until the matter is resolved, the FAQ document will use StructuredText in the plaintext readable way. Thanks to Martijn Pieters in being so considerate to supply HTML escaped DTML examples; it's unfortunate his efforts weren't useful this time. Note on my availability: Martijn Faassen (me!), ad-hoc FAQ maintainer of the ZDP's Zope FAQ is generally not available to read or respond to email on friday, saturday and sunday. It is suggested ZDP related communication goes through the ZDP mailing list at zdp@zope.org anyway, and is not sent directly Martijn. This way anyone who wants to do something for the ZDP (such as editing and extending the FAQ) does not have to wait for Martijn to read his mail, having all relevant information available on the list. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them)::
    * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. * What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's 'users__draft__.manage_main' method, and reach the Session controls by calling its 'manage_approve__draft__' method. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ From M.Faassen@vet.uu.nl Thu Mar 4 14:51:55 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:51:55 +0100 Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) References: Message-ID: <36DE9E0A.393AD83B@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > I am new to Zope, and i want to clarify some problems. > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > * How do I call an external method from DTML? > > As far as I understand there are DTML objects (templates), Products and > External methods. There is no such thing as "Internal" methods (objects, > that live in Zope's object database). Are these 3 the only 3 kinds of > executable (callable) things? Hm, DTML methods can be called as well, naturally, that's why they're called methods. They're called through URL. The DTML method then is executed. This means executing any DTML in it and returning the resulting HTML to the caller. One way of 'calling' a DTML method is by using it in a form action, like this:
    (or method="GET", of course) This does go through the browser, but it feels like you're calling 'your_dtml_method' when the user presses the submit button. This is another way of 'calling' a DTML method: I'm sure there are more ways, and I'm a bit vague about this, so I'll leave it up to other people to turn this into a nice FAQ. :) Regards, Martijn From zopelist@regalint.com Thu Mar 4 14:50:57 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 4 Mar 1999 09:50:57 -0500 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br> References: <19990303230207.A1292@RaVER.duck.org> Message-ID: >raver@box.dust.za.net wrote: >> >> Hello! >> >> Don't laugh at me - this is probably a very simple thing to do, but >> as I'm new to zope and can't find description of how this is accomplished >> I seek your help. I get data out of my database (MySQL) by querying, but >> how can I have data collected by forms showeled into the database? >> >> Appreciate any help I can get! >> > >Hi Sture, >try to use the P MySQL Input wizard in the contrib download area. It >will automatically create a insert sql method and a form for you. So you >can just follow the pattern. So that is what the MySQL Input wizard does. I've been meaning to look at it. Instead of saving time by using it, I did it manually. It is not that hard but you have to understand what is happening. 1. HTML form (eg. form_html) collects data and sends it to a DTML document (eg input_html) (that is the only tricky concept). For example: (That :int tag does error checking. It is optional. They are documented in the Z SQL Database Methods User's Guide) 2. The receiving doc (input_html) calls an SQL method (eg input_sql) with an in tag. If you do a select after your INSERT or UPDATE you can use it between the in tags, otherwise you can just display a message or do a redirect after it. 3. Your SQL method (input_sql) would be something like: INSERT INTO database (num) VALUES ( ) SELECT num, etc You don't need to do a select but if you do don't forget the between any SQL statements. Have fun! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From mj@antraciet.nl Thu Mar 4 15:18:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 16:18:02 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> Message-ID: <4.1.19990304161646.00bdb160@lisp.atmm.nl> At 15:50 04/03/99 , Philip Aylesworth wrote: >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with >an in tag. > > > > >If you do a select after your INSERT or UPDATE you can use it between the >in tags, otherwise you can just display a message or do a redirect after it. If you don't do anything with the returned data, a #call will suffice: -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From arw@ifu.net Thu Mar 4 15:31:37 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 10:31:37 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <36DEA759.4FCDB933@ifu.net> Hi. I've been getting a lot of confusing complaints about gadfly that turn out to be Zope bugs. Just for the record. ZGadflyDA doesn't support more than one db, gadfly does. ZGadflyDA doesn't support newlines in string literals, gadfly does. ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x faster. ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 (October 1998) where a lot of other bugs are fixed.... I'm sure these will be fixed soon, in fact I'd offer a patch if I could figure out how the thing works, but until then, Yours truly, -- Aaron Watters http;//www.chordate.com From michel@digicool.com Thu Mar 4 15:44:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 4 Mar 1999 10:44:22 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAD9@GANDALF> > -----Original Message----- > From: Aaron Watters [mailto:arw@ifu.net] > Sent: Thursday, March 04, 1999 10:32 AM > To: zope@zope.org; crew@server.python.net; jeffbauer@bigfoot.com > Subject: [Zope] zope ZGadfly DA buggy > > > Hi. I've been getting a lot of confusing complaints about gadfly > that turn out to be Zope bugs. Just for the record. > > ZGadflyDA doesn't support more than one db, gadfly does. > ZGadflyDA doesn't support newlines in string literals, gadfly does. > ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x > faster. > ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 > (October 1998) where a lot of other bugs are fixed.... > > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, > Yours truly, > -- Aaron Watters http;//www.chordate.com > > Aaron, could you please submit a collector bug with the above information? We will make sure the next release takes a stab at these (at the least use the latest version!) -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From klm@digicool.com Thu Mar 4 16:51:40 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 11:51:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <613145F79272D211914B0020AFF640190BED77@GANDALF> Martijn Faassen wrote: > > Robert OConnor wrote: > > This ZDP list appears to be ready now although only Ken [List admin] > > is signed up. > > I know, Ken sent me a mail. :) I still need to subscribe to it. > [...] > I guess this counts as an announcement. Ken asked me to do it, but I > just mailed him I'd rather he did it (as he knows more about these > things than I do, and I won't be available to deal with problems until > monday, after today, thursday). > > But, now you did, so that's fine too. :) Umm - i know it's redundant at this point, but for completeness sake - the Zope Documentation Project mailing list is open and ready for business. Thanks again to martijn for instigating this effort - have at it! Ken Manheimer klm@digicool.com From klm@digicool.com Thu Mar 4 17:10:38 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 12:10:38 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <613145F79272D211914B0020AFF640190BED78@GANDALF> Martijn Pieters wrote: > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. As a new zope user, and also according to my general documentation sensibilities, i suspect it would be very valuable to have a catalogue of the various special variables (like sequence-key and sequence-item) and the various entities (REQUEST.cookies, ...) available to the DTML programmer. There may already be some sort of catalogues around - in which case pointers to those kinds of resources would be very nice to have... Ken From the perspective of a new user of zope, as well as from the perspective of completeness, one thing i think would be From amos@aracnet.com Thu Mar 4 17:11:05 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 04 Mar 1999 09:11:05 -0800 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> At 05:31 PM 3/4/99, Jay Ashton wrote: >In trying to figure out what's going on I've noticed a couple things. >First, and I think most illustrative, if I try to add a new Z ODBC >connection, none of my ODBC sources are showing up in the available list >(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >Zope with ZopeHTTPServer all my ODBC connections show up just fine. > >Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >variables of both and noticed some differences - USERPROFILE's are Default >User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >USERDOMAIN in the 1.10.2/IIS environ, with no luck. I think at least this part of your problem may be due to the fact that Zope is running as a different user under IIS than it is under ZopeHTTPServer. My guess is that it can't see your datasources since they weren't created as 'System' datasources. Check under the windows ODBC control panel and make sure your DSNs appear under 'system dsn', not 'user dsn'. -Amos From jeffrey@Digicool.com Thu Mar 4 17:20:13 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 04 Mar 1999 12:20:13 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <199903041720.JAA27601@zope.codeit.com> >From: Martijn Pieters >To: Zope Mailinglist >Subject: [Zope] [ZDP] Showing form data >Date: Thu, Mar 4, 1999, 4:30 AM > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. > > Show showing all form data can be done like this:: > > > :
    > > > Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() > for all REQUEST variables, including CGI Environment variables. The most supremely easy way is::
    :) .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Thu Mar 4 17:32:36 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 04 Mar 1999 09:32:36 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Message-ID: <36DEC3B4.D6B3C99@profitscape.net> Paul Everitt wrote: > Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) ROAD TRIP! From tjg@avalongroup.net Thu Mar 4 19:40:55 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 11:40:55 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DEE1C7.39E6E77F@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From skip@mojam.com (Skip Montanaro) Thu Mar 4 20:21:31 1999 From: skip@mojam.com (Skip Montanaro) (skip@mojam.com (Skip Montanaro)) Date: Thu, 4 Mar 1999 15:21:31 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/site-packages? Message-ID: <199903042021.PAA00587@dolphin.calendar.com> Can the contents of Zope's lib/python directory safely be copied to the site-packages directory of the Python install directory? Thx, Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@mojam.com | Musi-Cal: http://www.musi-cal.com/ 518-372-5583 From arw@ifu.net Thu Mar 4 20:39:29 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 15:39:29 -0500 Subject: [Zope] gadfly bug in charstring literal recognition [fixable] References: <199903041633.IAA26276@zope.codeit.com> <36DEBB14.8C3AF1FD@digicool.com> <36DEC913.36F30F17@ifu.net> <36DED050.A1C0ED43@digicool.com> <36DEDF94.6B3CD6FF@ifu.net> Message-ID: <36DEEF81.ACFD17AC@ifu.net> Oops. One "zope bug" I complained of was mine. If it had been reported to the gadfly-rdbms list it would have been fixed back when. viz: Aaron Watters wrote: > [copied to gadfly-rdbms list] > > Jim Fulton wrote: > >...most RDBMSs (as in all but gadfly) > > > accept: > > > > cursor.execute(""" > > select name > > from table > > where descr = 'this > > doesn''t work for two reasons' > > """) > > > > Are you saying that the SQL spec disallows newlines in > > quoted strings? > > I actually was unaware of that. I'll look to my docus. In the > mean time if you want it, in sqlgen.py change the charstre to > > charstre = "'[^']*'" > > ===interactively > >>> c.execute(""" > select 'this > doesn''t work for two reasons' > from dual""") > >>> print c.pp() > > ========================================================= > this > doesn't work for two reasons > ===end ... > -- Aaron Watters > > ps: and thanks. post script: The current usage of gadfly in Zope makes gadfly do lots of parsing as in insert into table(a,b,c) values (1,2,3) insert into table(a,b,c) values (6,2,3) insert into table(a,b,c) values (1,7,3) insert into table(a,b,c) values (1,2,8) The "right" way to do this would be to take advantage of gadfly's dynamic parameter/multiinsert feature executing insert into table(a,b,c) values (?,?,?) ONCE with dynamic parameters list [(1,2,3), (6,2,3), (1,7,3), (1,2,8)] which would run much faster than thrashing the parser with the individual inserts above (with kjbuckets present). In general dynamic parameters on repeated statements reduce parsing and binding overhead (even for other types of statements). However, I understand this may be hard to implement as it would require special features for the gadfly "adapter" not of value for the other adapters. Oh well. Anyway, in future please post/forward/crosspost any gadfly related issues to the gadfly list. I just discovered a pile of complaints on the zope list this morning and I found it distressing. I don't normally read the zope list. -- Aaron Watters http://www.chordate.com From robin@alldunn.com Thu Mar 4 21:24:49 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 13:24:49 -0800 Subject: [Zope] evaluating attribute values Message-ID: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> How can I evaluate a #var equivallent for setting a tag attribute value? For example, Zope doesn't like this: --> or this: (it tries to use smtpHost as the host name, instead of its value) Help! -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From jae@kavi.com Thu Mar 4 22:05:21 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 14:05:21 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > For example, Zope doesn't like this: > > --> > > or this: > > > > (it tries to use smtpHost as the host name, instead of its value) Try: or this: --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jody@ldeo.columbia.edu Thu Mar 4 22:12:16 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Thu, 4 Mar 1999 17:12:16 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903042212.RAA16927@hog> I have a long running process that will be started by Zope. This process has a CORBA interface that is implemented using ILU. I would like to be able to asynchronously have this process generate data for Zope. My basic questions are: o Can I have an ILU mainloop inside of Zope? (I really don't care if I have to hack Zope or if I can use an external method.) o Should I fork/exec the long running process and give the process a URL that indicates where the data should be written? (I can use pickles or sql.) o How do I tell Zope that new data is avaliable if the process is external to Zope? Jody Winston From John Eikenberry Thu Mar 4 22:26:18 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 14:26:18 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: Ok, what's the trick to getting special characters to be converted to their escape codes (eg. " to "). This is particularly important for forms in which the user may enter these types of character. For instance, if I create a property on a folder that is a string, and if the string I enter has quotes around it... it doesn't show in the interface the next time I go to edit the properties. For example, in MCExam, the 2nd sample question has this as an answer "bar, spam". If I go to the folder's properties to change it, it doesn't show up. In the source it looks like: Obviously, if I then save changes, the value is gone altogether. Is there a way of automatically converting quotes and other special characters to their escape codes (like the sqlquote method)? Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From robin@alldunn.com Thu Mar 4 22:37:05 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 14:37:05 -0800 Subject: [Zope] evaluating attribute values Message-ID: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Sorry, your ideas don't work either. This time I get a NameError for mhost in the following code in SendMailtag.py. mhost is never being created. if self.mailhost: mhost=md[self.mailhost] elif self.smtphost: mhost=MailBase() mhost._init(localHost=gethostname(), smtpHost=self.smtphost, smtpPort=self.port) mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, self.subject) -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: John Eikenberry To: Robin Dunn Cc: zope Date: Thursday, March 04, 1999 1:17 PM Subject: Re: [Zope] evaluating attribute values >On Thu, 4 Mar 1999, Robin Dunn wrote: > >> For example, Zope doesn't like this: >> >> --> >> >> or this: >> >> >> >> (it tries to use smtpHost as the host name, instead of its value) > >Try: > > > >or this: > > > >--- > >John Eikenberry >[jae@kavi.com - http://taos.kavi.com/~jae/] >______________________________________________________________ >"A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 4 22:42:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 17:42:51 -0500 (EST) Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <199903042212.RAA16927@hog> Message-ID: Are you the wonderful folk that manage the atmospheric database at LDEO?? If so thanks a lot. I use it all the time for my work! On Thu, 4 Mar 1999, Jody Winston wrote: > I have a long running process that will be started by Zope. This > process has a CORBA interface that is implemented using ILU. I would > like to be able to asynchronously have this process generate data for > Zope. I do not know much about CORBA but you might find it helpful to check the ZClient library that comes with Zope. You can use ZClient to script Zope actions. In other words you can have your CORBA proccess running independently of Zope and whenever there are available data you can call Zope using ZClient and update whatever you need to. Pavlos From reedstrm@wallace.ece.rice.edu Thu Mar 4 23:08:29 1999 From: reedstrm@wallace.ece.rice.edu (Ross J. Reedstrom) Date: Thu, 4 Mar 1999 17:08:29 -0600 (CST) Subject: [Zope] special characters In-Reply-To: from John Eikenberry at "Mar 4, 99 02:26:18 pm" Message-ID: > it looks like: > > value=""bar, spam""> > > Obviously, if I then save changes, the value is gone altogether. > > Is there a way of automatically converting quotes and other special > characters to their escape codes (like the sqlquote method)? Grovelling through the source I find something called html_quote in lib/python/DocumentTemplate/DT_Util.py, so I tried: Which seems to so the right thing in the generated source. I'm not sure how to get at the equivalent method call, though. Does that help? (p.s. there's url_quote, as well) -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From raver@box.dust.za.net Thu Mar 4 23:16:22 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:16:22 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br>; from Paulo Eduardo Neves on Wed, Mar 03, 1999 at 08:22:43PM -0300 References: <19990303230207.A1292@RaVER.duck.org> <36DDC443.EF76DAE0@inf.puc-rio.br> Message-ID: <19990305001622.A479@RaVER.duck.org> On Wed, Mar 03, 1999 at 08:22:43PM -0300, Paulo Eduardo Neves wrote: > raver@box.dust.za.net wrote: > > > > Hello! > > > > Don't laugh at me - this is probably a very simple thing to do, but > > as I'm new to zope and can't find description of how this is accomplished > > I seek your help. I get data out of my database (MySQL) by querying, but > > how can I have data collected by forms showeled into the database? > > > > Appreciate any help I can get! > > > > Hi Sture, > try to use the P MySQL Input wizard in the contrib download area. It > will automatically create a insert sql method and a form for you. So you > can just follow the pattern. > Actually just after I sent the mail initially I spottet the Input Wizard at the zope site. It works just great. Thanks! > []s > -- > Paulo Eduardo Neves > PUC-Rio de Janeiro > Pager: Central: 292-4499 cod. 213 99 64 > ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html > From John Eikenberry Thu Mar 4 23:12:12 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 15:12:12 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > Sorry, your ideas don't work either. > > This time I get a NameError for mhost in the following code in > SendMailtag.py. mhost is never being created. > > > if self.mailhost: > mhost=md[self.mailhost] > elif self.smtphost: > mhost=MailBase() > mhost._init(localHost=gethostname(), smtpHost=self.smtphost, > smtpPort=self.port) > > mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, > self.subject) I think we're trying to assign a string where a mailhost object is needed. I'm not sure how to get around this, without an external method. Though with an external method, it'd be pretty simple: (warning: untested) def get_mailhost(self,property_name): """ gets the mailhost """ mailhost_id = getattr(self,property_name) return getattr(self,mailhost_id) Or something like this... [shrug] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From raver@box.dust.za.net Thu Mar 4 23:26:06 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:26:06 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <4.1.19990304161646.00bdb160@lisp.atmm.nl>; from Martijn Pieters on Thu, Mar 04, 1999 at 04:18:02PM +0100 References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> <4.1.19990304161646.00bdb160@lisp.atmm.nl> Message-ID: <19990305002606.B479@RaVER.duck.org> On Thu, Mar 04, 1999 at 04:18:02PM +0100, Martijn Pieters wrote: > At 15:50 04/03/99 , Philip Aylesworth wrote: > >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with > >an in tag. > > > > > > > > > >If you do a select after your INSERT or UPDATE you can use it between the > >in tags, otherwise you can just display a message or do a redirect after it. > > If you don't do anything with the returned data, a #call will suffice: > > > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > Both answers are much appreciated. Things start to clear up, but ... As far as I understand zope it should also be possible to have forms send data directly to external methods. How do I go abouth to make the argument list in a python function so that it receives more than one 'form variable'. 1 is simple, but my form consists of 5. I get an error constructing the python function to take 5 arguments. How is the 5 'variables' sent to the method? How do I get hold of the values each store? Lotsa questions - probly me doing things the wrong way but - I'm learning:) Sture Lygren From jae@kavi.com Thu Mar 4 23:24:08 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 15:24:08 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: On Thu, 4 Mar 1999, Ross J. Reedstrom wrote: > Grovelling through the source I find something called html_quote in > lib/python/DocumentTemplate/DT_Util.py, so I tried: > > > > Which seems to so the right thing in the generated source. I'm not sure > how to get at the equivalent method call, though. > > Does that help? Yes. This is just what I was looking for. This leads to a followup question/request for the group. 'manage_addProperty' calls various converters from ZPublisher.Converters to format the properties values. Shouldn't html_quote be used when formatting strings and text? This would be trivial to change. Would this cause some problem I don't realize? If not, I'd like to add this to the Collector for the next version. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From da@ski.org Fri Mar 5 00:55:11 1999 From: da@ski.org (David Ascher) Date: Thu, 4 Mar 1999 16:55:11 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem Message-ID: I have a standard_html_header/footer pair which works much like that on zope.org. The header inserts a in the left column. The sidebar DTML method is:

    (show links to sub-folders which don't have the 'hidden' property set). The above works fine in the toplevel folder. In the subfolder, however, nothing shows up, even though there are two folders which do qualify. I'd tried originally to have it be a DTML Document and change the expr to _.objectValues(['Folder']), but that doesn't work at all. What am I missing? --david From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 01:32:06 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 20:32:06 -0500 (EST) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: On Thu, 4 Mar 1999, David Ascher wrote: > > > >

    > > > Check if your DTML properly closes all tags. I had something similar happening to me in a complicated DTML, when some condition failed to add a tag. BTW you can use ... Pavlos From jay@tomigaya.shibuya.tokyo.jp Fri Mar 5 17:47:53 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Fri, 05 Mar 1999 12:47:53 -0500 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> References: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> At 09:11 AM 3/4/99 -0800, you wrote: >At 05:31 PM 3/4/99, Jay Ashton wrote: > >>In trying to figure out what's going on I've noticed a couple things. >>First, and I think most illustrative, if I try to add a new Z ODBC >>connection, none of my ODBC sources are showing up in the available list >>(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >>Zope with ZopeHTTPServer all my ODBC connections show up just fine. >> >>Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >>side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >>variables of both and noticed some differences - USERPROFILE's are Default >>User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >>contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >>USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >>USERDOMAIN in the 1.10.2/IIS environ, with no luck. > >I think at least this part of your problem may be due to the fact that Zope >is running as a different user under IIS than it is under ZopeHTTPServer. >My guess is that it can't see your datasources since they weren't created >as 'System' datasources. Check under the windows ODBC control panel and >make sure your DSNs appear under 'system dsn', not 'user dsn'. > >-Amos Yes! This was exactly what was causing the error. I added a new 'System DSN' which then showed up under IIS, and now I've got a shiny new and perfectly functional Z ODBC Database Connection. Much thanks! - Jay PS - Don't know if this info is helpful, but I noticed that (after I set up a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my IIS/1.10.2 environ was flawed for whatever reason I would receive the cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick poking around I noticed that even after selecting a valid dsn, flaws such as trying to add a connection with an ID already in use, or entering an invalid connection string would give this 400 error - whereas in my ZopeHTTPServer/1.9 environ I would receive relevant and helpful error messages in such situations... Wish I knew more about how to help fix... From tjg@avalongroup.net Fri Mar 5 04:05:33 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 20:05:33 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DF580D.8D43DD51@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 07:40:21 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 02:40:21 -0500 (EST) Subject: [Zope] An interim solution for the FAQ Message-ID: Zopistas Until the SGML experts develop the FAQ format here is an interim solution: I have set up a Zope FAQ site at: http://www.gaaros.com:9673/FAQ

    FAQ Related
    How can one contribute to the FAQ?
    FAQ Related
    How can one contribute to the FAQ? Answer One Answer Two Tag case is not important. and are all equivalent as long as starting and ending tags match. If you want to include DTML or HTML in your answers or questions you need to include the ugly CDATA directive. If there is an error in the formating of your entry the parsing will fail and your entry will not be uploaded, but the entry will be logged. Structured Text is not supported because of the problems that Martijn Faassen discussed on the Zope List. If the section or question already exist in the FAQ then the entries will be appended to the already existing ones, otherwise the new categories will be created.]]>
    How can I download the whole FAQ? The whole FAQ can be exported by clicking on the "Export FAQ" in the navigation margin.
    DTML Scripting
    How do I pass a non-form variable to the next requested URL? ">]]> If everything works ok this e-mail will make the first entry to the FAQ! Pavlos From wmlph@d033.ml.uwcm.ac.uk Fri Mar 5 09:24:36 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 5 Mar 1999 09:24:36 -0000 Subject: [Zope] ZMySQLDA Message-ID: <004d01be66e9$fd393330$5c773fc1@ml.uwcm.ac.uk> Where exactly is the file? find out by doing a locate 'libmysqlclient'. Let's assume that it is in /usr/local/mysql/lib. The easiest way to accomplish what you want is this. 1. cd /etc 2. vi ld.so.conf 3. Goto the end of the file and add a line that says '/usr/local/mysql/lib' replace this with the exact location of you libmysqlient.so.6 4. save the file 5. run 'ldconfig' 6. run 'sync' twice, this just makes sure all changes are written to the disk. This adds the mysql lib directory to the lib search path. HTH Phil ----- Original Message ----- From: Timothy Grant To: Zope Folk Sent: Friday, March 05, 1999 4:05 AM Subject: Re: [Zope] ZMySQLDA >John Eikenberry wrote: > >> 1. Get everything cleaned up (ie. back in the condition after first >> untarring ZMySQL). >> 2. Edit Setup.in, add -L to the end of the >> last line. >> 3. Proceed as usual (make -f Makefile.pre.in boot; make) > >Thanks to both John and Ronald for their kind assitance. I have made it >past >my original error and got everything compiled correctly. However, my >general >Newbieness is still coming back and biting me on the you-know-what. > >The instructions state that I should start python, and then Import the >MySQL >module to make sure it works. When I do, I get yet another error. > >Traceback (innermost last): > File "", line 1, in ? >ImportError: libmysqlclient.so.6: cannot open shared object file: No >such >file or directory > >The file does exist, so I am once again stumped. > >Thank you for your continued assitance. > > >-- >Stand Fast, > tjg. >=================================================== >Timothy Grant >VP Technology/CTO >Avalon Technology Group >tjg@avalongroup.net >www.avalongroup.net >(503) 246-3630 voice >(503) 246-3124 fax > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope From mj@antraciet.nl Fri Mar 5 09:54:01 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 10:54:01 +0100 Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990305105227.00a69140@lisp.atmm.nl> At 22:24 04/03/99 , Robin Dunn wrote: >How can I evaluate a #var equivallent for setting a tag attribute value? > >For example, Zope doesn't like this: > > --> > >or this: > > > >(it tries to use smtpHost as the host name, instead of its value) > > >Help! > Why not use a MailHost Object? On that object you can then set the appropriate SMTP Host, even from DTML code.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:16:30 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:16:30 +0100 Subject: [Zope] special characters In-Reply-To: References: Message-ID: <4.1.19990305105646.00a90870@lisp.atmm.nl> At 00:24 05/03/99 , John Eikenberry wrote: >'manage_addProperty' calls various converters from ZPublisher.Converters >to format the properties values. Shouldn't html_quote be used when >formatting strings and text? This would be trivial to change. Would this >cause some problem I don't realize? If not, I'd like to add this to the >Collector for the next version. > Yes, because you sometimes (most of the time, really), want to have the raw input from the user. If you then use this raw input in HTML again, only *then* should you quote out any HTML. Besides, what if I want the data to be URL quoted? Or SQL quoted? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:18:50 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:18:50 +0100 Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: <4.1.19990305111759.00a68e60@lisp.atmm.nl> At 01:55 05/03/99 , David Ascher wrote: > > > >

    > > > >(show links to sub-folders which don't have the 'hidden' property set). > >The above works fine in the toplevel folder. In the subfolder, however, >nothing shows up, even though there are two folders which do qualify. > >I'd tried originally to have it be a DTML Document and change the expr to >_.objectValues(['Folder']), but that doesn't work at all. > >What am I missing? > Just a quick shot: Could it be that the value 'hidden' is aquired from somewhere else? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:38:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:38:33 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> References: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990305111949.00be5e30@lisp.atmm.nl> At 18:47 05/03/99 , Jay Ashton wrote: >PS - Don't know if this info is helpful, but I noticed that (after I set up >a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my >IIS/1.10.2 environ was flawed for whatever reason I would receive the >cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick >poking around I noticed that even after selecting a valid dsn, flaws such >as trying to add a connection with an ID already in use, or entering an >invalid connection string would give this 400 error - whereas in my >ZopeHTTPServer/1.9 environ I would receive relevant and helpful error >messages in such situations... Wish I knew more about how to help fix... > I did notice today that IIS 4.0 seems to be the cullprit. Whenever Zope returns a 400 error (like 'sorry, an error occured') IIS mangles that into the 400 Bad Request error. This means the traceback is also gone. *grmbl*. Just try and add a Principia Draft and not specify an ID, and compare this to the message returned when using ZopeHTTPServer. I think I'll switch to ZServer. Maybe this should go into the FAQ... I'll cc to ZDP BTW, I hereby retract the bug I reported to the Zope Collector regarding ZODBC connections being broken. I forgot to fill in the ID :|. IIS mangles the returned errormessage. What is the procedure for retracting bug reports? mail support@digicool.com? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 10:46:40 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 05:46:40 -0500 (EST) Subject: [Zope] Plenty of problems. Please Help Message-ID: Zopistas I have encountered problems mainly associated with ZServer and ZAP: I am using Zope-1.9.0 and the preconfigured Apache server to run my Zope site. Last night (a couple of hours ago!) I installed ZServer. It wouldn't run and I had to add the following to start.py to fix it: import sys,os sys.path.insert(0,os.path.join('..','lib','python')) Later on upon entering the management screens I noticed that the id of the top level folder dissappeared which caused the paths to my objects to change. With ZAP (the preconfigured apache) I would visit: http://www.gaaros.com:8080/Gaaros/ to get to the top level directory but with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of links that people have on my site. Switching back to ZAP I got the following error: Temporarily Unavailable

    The resource you requested is temporarily unavailable - please try again later. (102) failure during connect Seems like ZServer changed my root id from "Gaaros" to nothing. I called PickleDictionary on Data.bbb directly from python but I could not even see the subobjects. BTW can the Zope Data.bbb be accessed directly from PickleDictionary?? Also trying to shut ZServer from the control-panel results in a core dump. Ok enough for now, its very late and I cannot think anymore. If anybody has any clues about the root object id problem please let me know. Thanks Pavlos From mj@antraciet.nl Fri Mar 5 10:51:53 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:51:53 +0100 Subject: [Zope] An interim solution for the FAQ In-Reply-To: Message-ID: <4.1.19990305115013.00a11100@lisp.atmm.nl> >To contribute to the FAQ you just have to send e-mail to me or to the >Zope list and include the word FAQ somewhere in the subject. >In the body of your e-mail message you should include (somewhere) an >XMLish faq entry as below: Hmmm.. could we change this the ZDP list? After all, that's what it is there for.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 11:03:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 06:03:52 -0500 (EST) Subject: [Zope] An interim solution for the FAQ In-Reply-To: <4.1.19990305115013.00a11100@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > > Hmmm.. could we change this the ZDP list? After all, that's what it is > there for.. > No problem. Basically I filter all emails arriving in my personal account that contain FAQ in the Subject: field. As I am subscribed to all the Zope lists it doesn't really matter where you send it to. Pavlos From Paul@digicool.com Fri Mar 5 13:21:22 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:22 -0500 Subject: [Zope] RE: [ZDP] Re: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAE3@GANDALF> Martijn wrote: > What is the procedure for retracting bug reports? mail > support@digicool.com? That's a good solution for now. --Paul From Paul@digicool.com Fri Mar 5 13:21:27 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:27 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> Jody wrote: > My basic questions are: > o Can I have an ILU mainloop inside of Zope? (I really don't > care if I have to hack Zope or if I can use an external > method.) This is a poor answer (as most here know I don't have the mental horsepower to provide good responses :^), but...our _intention_ over time is to have "ZServer" allow objects to be published via PCGI, FastCGI, HTTP, FTP, and CORBA simultaneously. Ideally we'd get some kind of Python implementation into the Medusa handler layer. Obviously this approach has some serious drawbacks... Anyway, I realize that I'm not providing much of an answer, so sorry :^( --Paul From Paul@digicool.com Fri Mar 5 13:21:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:28 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Aaron wrote: > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, Right, understood. We had to spend a lot of time figuring out Gadfly in order to host it inside Zope. Thus we labeled it "Demo". I imagine that it is best for everybody if we take Gadfly out of the base Zope and make it an external, no-warranty package like the MySQL support. --Paul From Paul@digicool.com Fri Mar 5 13:21:33 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:33 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAE9@GANDALF> Tony wrote: > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! I appreciate your patience and taking the time to submit well-thought questions. > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. Sounds fantastic! > The curriculum database is essentially delivering online study guides > (over 100 for each Faculty) whose source is originally from very well > marked up Word Documents. In addition, we include multiple choice This is really weird, it just reminded me of a (rather pathetic) dream I had last night. I dreamt that someone created a Python module that would read Word files. My DreamTV must be picking up the wrong channel. > questions, file upload of lecture notes etc. and some 'active' web > pages showing dynamical processes in medicine etc. The curriculum > database needs to be searchable across its entire breadth (although > initially restricted to the one site), so that students and faculty > can find occurences of, say, 'lung cancer' in lecture resources - > this is to plan for curriculum management, so that we can find out if > we're pushing subjects too much (or indeed, whether we're pushing a > subject at all!). We have other applications (nearly all of which are > written in Perl/PHP3) and want to seemlessly integrate them into the > curriculum database. > > Currently we do all our development work on Unix, using Apache > virtual web servers, MySQL as our database engine and Perl running as > a CGI for most of our applications. My input has been to introduce > PHP-3 (an Apache module with a bulit-in XML parser) and some XML > knowledge to the group. I've been looking at a scenario where our > study guides are converted in XML using Omnimark and held as static > XML documents in a database. They are then rendered into HTML/RTF and > put into static web directories. The student can run a program that > extracts elements from selected XML documents and creates a > customised set of HTML pages or RTF document that is built for them > 'on the fly'. My manager was a bit worried about all these static > pages lying about and to be honest so am I, but extracting the > relevant XML from a database to render into individual HTML pages > seems a massive drain on the system. I've been awfully interested in XML in the last few days. Can you describe what user-visible benefits PHP delivers due to its integrated XML parser? Additionally, we are working on Zope searching for a consulting project right now. Actually it is Zope Cataloging. It's still a consulting-only option, but plans are that eventually it will go "below the line". > I found out about Zope Monday morning, dl'ed it, installed it, got > one or two things working... and have been worried sick ever since. Ahhh, you too, eh? Did you have the dream about the chimp and the External Method where...oh, nevermind. :^) > My problem? is that I can see how Zope can do so much for us, but it > seems to need a hell of a gut-wrench to do so. I *think* I have some good news to report on this, but before I squawk, could you detail this gut-wrench a bit more? > There also doesn't seem to be an easy 'half-way' house to > move to Zope. > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". There have been a lot of suggestions on this one. Here's another one: a command-line program that takes everything out, such as the wget program. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? I'd like to have this as well. I've been doing a lot of thinking about this lately. It is a bit more complicated than expected, though... > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. This is the main reason I replied. Having Zope as a free and Open Source(tm) platform is the heart of our business plan. A closed Zope would basically mean we start over completely as a different company. Thus, closing Zope is roughly equivalent to closing our company. With _that_ said, we still need to provide some assurances that we won't legislate the connection between Zope and DC. First, we are trying to keep some arm's length distance between zope.org and Digital Creations. We hope to formalize the way the community participates in the platform. We expect to make it lucrative for other businesses to participate. At the same time, we intend to pursue commercial opportunities atop the platform for vertical applications. Ultimately this is the same question put to Netscape regarding Mozilla during the AOL talks. The answer is simple: "The genie is out of the bottle." Since it is open sourced, Digital Creations must *earn* its stewardship of Zope. If we don't we'll become less relevant. Earning the community's enthusiasm is pretty simple, I think. Unfortunately we aren't doing a good job right now, though we are trying damn hard. But we'll keep trying... In the meantime, I'm absolutely ecstatic to see folks in the community step forward over the last month and lead the way. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yep, the zope.org machine has five virtual hosts. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Previously answered. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Ditto. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? We put them in the database. The 3 Mb Zope binaries are served out of the database, the PDF files are served out of the database. This works so well I don't even think about it any more. --Paul From arw@ifu.net Fri Mar 5 13:42:59 1999 From: arw@ifu.net (Aaron Watters) Date: Fri, 05 Mar 1999 08:42:59 -0500 Subject: [Zope] zope ZGadfly DA buggy References: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Message-ID: <36DFDF63.6CB8C32F@ifu.net> Paul Everitt wrote: > Aaron wrote: > > I'm sure these will be fixed soon, in fact I'd offer a patch > > if I could > > figure out how the thing works, but until then, > > Right, understood. We had to spend a lot of time figuring out Gadfly in > order to host it inside Zope. Thus we labeled it "Demo". hmmm. That's interesting because it works just like oracle or it should,unless there are more bugs you haven't passed on to me. Let me know what caused the problems. Basically any non-conformance with the db-api is a bug. Please report it to the gadfly-rdbms list. > I imagine that it is best for everybody if we take Gadfly out of the > base Zope and make it an external, no-warranty package like the MySQL > support. Yes, this is fine. BTW, it might be hard for your existing customers to upgrade to Gadfly 1.0 since I think the db file formats are different (that's why it was called beta, so I could change things like that). I remain, Yours Truly, Aaron Watters From michel@digicool.com Fri Mar 5 14:48:24 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 09:48:24 -0500 Subject: [Zope] Plenty of problems. Please Help Message-ID: <613145F79272D211914B0020AFF6401907BAEB@GANDALF> 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_01BE6717.3B426460 Content-Type: text/plain > -----Original Message----- > From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu] > Sent: Friday, March 05, 1999 5:47 AM > To: zope@zope.org > Subject: [Zope] Plenty of problems. Please Help > > > Zopistas > > I have encountered problems mainly associated with ZServer and ZAP: > > I am using Zope-1.9.0 and the preconfigured Apache server to > run my Zope > site. Last night (a couple of hours ago!) I installed > ZServer. It wouldn't > run and I had to add the following to start.py to fix it: > I would suggest, first off, to use 1.10.2. ZServer is being developed against 1.10.2, and the latest Zap was tested and confirmed to work with it. > import sys,os > sys.path.insert(0,os.path.join('..','lib','python')) > Yes, there were discussions on this in the list about this problem. Someone needs to go back, rassle up the discussion and submit it to the ZDP. Looks like you found the fix. > Later on upon entering the management screens I noticed that > the id of the > top level folder dissappeared which caused the paths to my objects to > change. With ZAP (the preconfigured apache) I would visit: > http://www.gaaros.com:8080/Gaaros/ to get to the top level > directory but > with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of > links that people have on my site. Hm. Is your Zap .pcgi file named Garros or does your RewriteRule look for Garros and then call PCGI? If so that is why you need to use Garros to reach the server. ZServer can server right out of Zope and doesn't have this problem. Your description makes this sould like it is a production site, I would not suggest running ZServer on a production machine as it is alpha and still buggy. > > Switching back to ZAP I got the following error: > > Temporarily Unavailable >

    > The resource you requested is temporarily unavailable - > please try again > later. > > > > (102) failure during connect > > > > Seems like ZServer changed my root id from "Gaaros" to nothing. This error comes from PCGI. It can't find your .cgi file so Zope isn't even being launched. Did your zap.conf file change (specificly the RewriteRule)? > I called PickleDictionary on Data.bbb directly from python > but I could not > even see the subobjects. BTW can the Zope Data.bbb be > accessed directly > from PickleDictionary?? > You can open a Data.bbb file into a PickleDictionary, but you won't see anything useful unless you really know what your doing. The Database itself is not a Pickle, it is a database of Pickles. I have attached a small 5K script that will be released with 1.10.3 which paruses the database and generates reports. In the future we are intending it to translate the entire database into XML for transport. (Note, we do not intend to use XML as the db format) > Also trying to shut ZServer from the control-panel results in > a core dump. > I suspect this is because you are using 1.9.0 > Ok enough for now, its very late and I cannot think anymore. > > If anybody has any clues about the root object id problem > please let me > know. > > Thanks > > Pavlos > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > ------ =_NextPart_000_01BE6717.3B426460 Content-Type: application/octet-stream; name="bbb.py" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bbb.py" """Read and (re-)format BoboPOS 2 database files=0A= """=0A= =0A= import struct, string, sys, time=0A= =0A= file__version__=3D3.0=0A= packed_version=3D'SDBMV'+struct.pack(">f",file__version__)=0A= =0A= def error(message, fatal=3D0, exc=3D0):=0A= if exc:=0A= sys.stderr.write('%s: %s' % (sys.exc_info()[0], = sys.exc_info()[1]))=0A= sys.stderr.write("\n%s\n" % message)=0A= if fatal: sys.exit(fatal)=0A= =0A= def _read_and_report(file, rpt=3DNone, fromEnd=3D0, both=3D0, = n=3D99999999, show=3D0):=0A= """\=0A= Read a file's index up to the given time.=0A= """=0A= =0A= file.flush()=0A= seek=3Dfile.seek=0A= read=3Dfile.read=0A= unpack=3Dstruct.unpack=0A= split=3Dstring.split=0A= join=3Dstring.join=0A= find=3Dstring.find=0A= seek(0,2)=0A= file_size=3Dfile.tell()=0A= gmtime=3Dtime.gmtime=0A= =0A= if fromEnd: pos=3Dfile_size=0A= else: pos=3Dnewpos=3Dlen(packed_version)=0A= =0A= tlast=3D0=0A= err=3D0=0A= while 1:=0A= if fromEnd:=0A= seek(pos-4)=0A= l=3Dunpack(">i", read(4))[0]=0A= if l=3D=3D0:=0A= b=3Dpos=0A= p=3Dpos-4=0A= while l=3D=3D0:=0A= p=3Dp-4=0A= seek(p)=0A= l=3Dunpack(">i", read(4))[0]=0A= =0A= pos=3Dp+4=0A= error("nulls skipped from %s to %s" % (pos,b)) =0A= p=3Dpos-l=0A= if p < 0:=0A= error('Corrupted data before %s' % pos)=0A= if show > 0:=0A= p=3Dpos-show=0A= if p < 0: p=3D0=0A= seek(p)=0A= p=3Dread(pos-p)=0A= else:=0A= p=3D''=0A= error(p,1)=0A= pos=3Dp=0A= else:=0A= pos=3Dnewpos=0A= =0A= seek(pos)=0A= h=3Dread(24) # 24=3Dheader_size=0A= if not h: break=0A= if len(h) !=3D 24: break=0A= oid,prev,start,tlen,plen=3Dunpack(">iidii",h)=0A= if (prev < 0 or prev >=3D pos or start < tlast=0A= or plen > tlen or plen < 0 or oid < -999):=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= =0A= newpos=3Dpos+tlen=0A= if newpos > file_size:=0A= error('Truncated data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= seek(newpos-4)=0A= if read(4) !=3D h[16:20]:=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0:=0A= seek(pos+24)=0A= error(read(show))=0A= err=3D1=0A= break=0A= =0A= tlast=3Dstart-100=0A= =0A= if rpt is None: continue=0A= n=3Dn-1=0A= if n < 1: break=0A= =0A= seek(pos+24)=0A= p=3Dread(plen)=0A= t=3Dsplit(read(tlen-plen-28),'\t')=0A= tname, user =3D (t+[''])[:2]=0A= t=3Djoin(t[2:],'\t')=0A= start,f=3Ddivmod(start,1)=0A= y,m,d,h,mn,s=3Dgmtime(start)[:6]=0A= s=3Ds+f=0A= start=3D"%.4d-%.2d-%.2d %.2d:%.2d:%.3f" % (y,m,d,h,mn,s)=0A= rpt(pos, oid,start,tname,user,t,p)=0A= =0A= if err and both and not fromEnd:=0A= _read_and_report(file, rpt, 1, 0, n, show)=0A= =0A= =0A= =0A= def none(*ignored): pass=0A= def positions(pos, *ignored): sys.stdout.write("%s\n" % pos)=0A= def tab_delimited(*args):=0A= sys.stdout.write("%s\n" % string.join(args[:-1],'\t'))=0A= =0A= =0A= reports=3D{=0A= 'none': none,=0A= 'positions': positions,=0A= 'tab_delimited': tab_delimited,=0A= }=0A= =0A= if __name__=3D=3D'__main__':=0A= import getopt=0A= =0A= usage=3D"""Usage: %s [options] filename=0A= =0A= where filename is the name of the database file.=0A= =0A= options:=0A= =0A= -r report=0A= =0A= Specify an output report.=0A= =0A= The valid reports are:=0A= %s=0A= =0A= -e=0A= =0A= Read the file from back to front=0A= =0A= -l n=0A= =0A= Show only n records=0A= =0A= -b=0A= =0A= If an error is encountered while reading from front,=0A= ret reading from the back.=0A= =0A= -s n=0A= =0A= If a corrupted data record is found, show the first n=0A= bytes of the corrupted record.=0A= =0A= """ % (sys.argv[0], string.join(reports.keys(), ',\n\t\t'))=0A= =0A= try:=0A= opts, args =3D getopt.getopt(sys.argv[1:],'r:ebl:s:')=0A= filename,=3Dargs=0A= except: error(usage,1,1)=0A= =0A= rpt=3Dnone=0A= fromEnd=3D0=0A= both=3D0=0A= n=3D99999999=0A= show=3D0=0A= for o, v in opts:=0A= o=3Do[1:]=0A= if o=3D=3D'r':=0A= try: rpt=3Dreports[v]=0A= except: error('Invalid report: %s' % v, 1)=0A= elif o=3D=3D'l':=0A= try: n=3Dstring.atoi(v)=0A= except: error('The number of records, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D's':=0A= try: show=3Dstring.atoi(v)=0A= except: error('The number of bytes, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D'e':=0A= fromEnd=3D1=0A= elif o=3D=3D'b':=0A= both=3D1=0A= else:=0A= error('Unrecognized option: -%s' % o, 1)=0A= =0A= try: file=3Dopen(filename)=0A= except: error('Coud not open %s' % filename,1,1)=0A= =0A= _read_and_report(file, rpt, fromEnd, both, n, show)=0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= ------ =_NextPart_000_01BE6717.3B426460-- From jody@ldeo.columbia.edu Fri Mar 5 15:18:45 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Fri, 5 Mar 1999 10:18:45 -0500 Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> (message from Paul Everitt on Fri, 5 Mar 1999 08:21:27 -0500) Message-ID: <199903051518.KAA01296@hog> >>>>> "Paul" == Paul Everitt writes: Paul> Jody wrote: >> My basic questions are: >> o Can I have an ILU mainloop inside of Zope? (I really don't >> care if I have to hack Zope or if I can use an external >> method.) Paul> This is a poor answer (as most here know I don't have the Paul> mental horsepower to provide good responses :^), but...our Paul> _intention_ over time is to have "ZServer" allow objects to Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA Paul> simultaneously. Paul> Ideally we'd get some kind of Python implementation into the Paul> Medusa handler layer. Obviously this approach has some Paul> serious drawbacks... Paul> Anyway, I realize that I'm not providing much of an answer, Paul> so sorry :^( Would it be worthwhile to start looking at and hacking ZServer? Jody From michel@digicool.com Fri Mar 5 15:35:50 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 10:35:50 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAEE@GANDALF> > -----Original Message----- > From: Jody Winston [mailto:jody@ldeo.columbia.edu] > Sent: Friday, March 05, 1999 10:19 AM > To: Paul@digicool.com > Cc: zope@zope.org > Subject: RE: [Zope] Using Zope with CORBA (new user question) > > > >>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? > It's allways worth while! :) I think the point paul was trying to push is that we are interesting in publishing our objects over various transport protocols. If you want to look in this direction, probably the best idea would be to write a Medusa handler. Check out Sam's site at: http://www.nightmare.com/medusa There currently exists an ftp and http medusa handler for Zope, which you can look at in the latest ZServer alpha release availabe at zope.org. I'm not sure is there is a Medusa CORBA handler or not, I suspect not, but maybe there's some type of CORBA out there written in Python? -Michel > Jody > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jeffrey@Digicool.com Fri Mar 5 16:02:55 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 05 Mar 1999 11:02:55 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903051602.IAA27197@zope.codeit.com> >>>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? Yes. ZServer really restores Zope's original intent from the Bobo days: publishing objects through a variety of protocols. I think ILU support was once attempted back in those days. However, a Bobo app at that time could only have one publishing mechanism (ie, CGI, PCGI, FastCGI, ILU, etc...). ZServer allows for multiple publishing mechanisms in the same application, allowing access to the objects through the web, through FTP, or through any other protocol developed for ZServer/Medusa. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From rocon@pivot.net Fri Mar 5 16:57:34 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 11:57:34 -0500 Subject: [Zope] Documents for web and paper Message-ID: <012c01be6729$74f6bd40$0201a8c0@hawkeye.bob.oc> I'm looking for the best way to store and retrieve documents with these requirements: SPECS *Easy storage and retrieval on the web *Pretty printing on paper *Easy simple collaboration (no checkout) *One BASE format for both web and paper *Base format *could be* edited with Word or WP *Preserve text markup: bullets, bolds, underlines, tables, graphics, links...etc. *Search by keyword *Search by full text ******* I look forward to comments and Ideas on implementing this in ZOPE Perhaps some of this has been solved already and I don't know it. EXAMPLE: Say you have a small book/article that is fully contained in a WORD or WP file. It has chapters and sections: Chap1 Plants Section1: Trees Section2: Flowers Section3: Vegetables Section4: Fruits Chap2 Animals Section1: Dogs Section2: Cats Section3: Fish Section4: Humans Ok, as a paper document in the word processor it is laid out *nice* with a new page for each chapter, section, and subheadings for groups of paragraphs in each section. It prints *nice* and can even have a table of contents and index. For the web, the whole book could be one LONNNG web page. Ugly and it doesn't work well. Ideally on the web each chapter and section would be navigable with a left hand frame like table a la http://www.zope.org. Then sections can be placed on separate pages on the right. This means that the one source document becomes multiple html "files" on the web site. *Tree Navigation Ok, for tree navigation like http://localhost:9673/QuickStart Each Chapter and Section becomes a folder and the text from each section is contained in the same named: "dtContent" as in ...9673/QuickStart/Outline/Applications/External/dtContent While the tree is nice, and separate html "files" make the website better, *REVISIONS with TWO OUTPUTS How do you do: Make revisions to the source document in word/WP and have it FLOW automatically to html format or tree format for the web? *Perhaps* XML could come to the rescue as holy grail to help solve this problem??? I understand the idea of mark up but how does it solve the problem of two outputs? Can you have a template that automatically chops up the SOURCE into the appropriate folders/files etc and feeds it to ZOPE? Can this or another template reformat for pretty printing including page numbers that are updated based on the planned printing? Maybe I need to reconsider how documents are stored as source, i.e. not Word. And if not, what tool or mechanism would be best? Maybe the NATIVE source could flow to Word/WP or via a template making for pretty printing. Maybe for simple stuff, the source could be simple text entered on a webpage or sent by e-mail with *simple* markup and parsed automatically? *KEYWORD SEARCH Ok, on the web (and Zope), the benefit is it's searchability: Do we "hide" keywords in the source somehow and in addition use Chapter and Section titles as Keywords? Search for: "dogs" gives a result of Chapter 2 Section 1 in the example as one entry. Additional entries might be lessor cross references such as a keyword "dog" in the Section 4 humans as "man's best friend". *FULL TEXT SEARCH Ok so we search for the word "Daisy" and this word is found in the text in sections: Flowers, Dogs (as a pet name) and Humans (as a proper name). The result is then three line entries that take you to the words. *Zope IDEAS for this? I assume that it would be best to store the documents and source in the ZOPE database rather than an external datasource. Thanks for any input on this -bobo connor bob@rocnet.com From da@ski.org Fri Mar 5 18:02:28 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:02:28 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: <4.1.19990305111759.00a68e60@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 01:55 05/03/99 , David Ascher wrote: > > > > > > > >

    > > > > > > > >(show links to sub-folders which don't have the 'hidden' property set). > > > >The above works fine in the toplevel folder. In the subfolder, however, > >nothing shows up, even though there are two folders which do qualify. > > > >I'd tried originally to have it be a DTML Document and change the expr to > >_.objectValues(['Folder']), but that doesn't work at all. > > > >What am I missing? > > Just a quick shot: Could it be that the value 'hidden' is aquired from > somewhere else? Nah -- getting rid of the hidden test doesn't change a thing. Sorry I confused the issue with that. I think my problem has to do with my lack of understanding of the interactions between acquitision, DTML Methods, DTML docs and namespaces. I just noticed that the standard html headers and footers are methods. That means, if I understand the earlier email, that the default namespace in them is that of the thing they are contained in. So, in my case, the top-level Folder. Now, in the sub-folder, the standard html headers and footers are acquired from the toplevel folder. The standard header does a #var sidebar, which also lives in the toplevel folder, and that gets included fine. Within that sidebar, I'm not sure what the default namespace is -- my fuzzy understanding makes me think that it should be either: a) the / Folder (the 'physical' container for the DTMLMethods) b) the sub Folder (the container for the thing which did the aqcuisition, namely the index_html DTML Document. Problem is, neither of these makes sense given what I'm seeing. If it was a), I'd expect the 'objectValues()' call to return the same list of the subfolders of the toplevel folder every time. If it was b), I'd expect the thing to work and give me the subfolders of the subfolder. Let me try to summarize the hierarchy: / - index_html (#var standard_html_header...#var standard_html_footer) - standard_html_header (#var sidebar) - standard_html_footer - sidebar SubFolder1/ SubFolder2/ - index_html (#var standard_html_header... #var standard_html_footer) - SubSubFolder1 - SubSubFolder2 The top sidebar shows SubFolder1 and SubFolder2, the /SubFolder2 sidebar doesn't show a thing. --david PS: Thanks to pavlos for pointing out the #unless tag. PS: For some reason the title of the root folder is "Zope" in the properties tag but doesn't show up in the tree or in the pathlinks. Anyone have a suggestion? From mbernstein@profitscape.net Fri Mar 5 18:10:27 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 10:10:27 -0800 Subject: [Zope] Simple DTML Method/Acquisition problem References: Message-ID: <36E01E13.6F8A4FB4@profitscape.net> David Ascher wrote: > > I have a standard_html_header/footer pair which works much like that on > zope.org. > > The header inserts a in the left column. The > sidebar DTML method is: > > > > >

    > > > > (show links to sub-folders which don't have the 'hidden' property set). > > The above works fine in the toplevel folder. In the subfolder, however, > nothing shows up, even though there are two folders which do qualify. Try: This will call the method using the root folders' namespace, thereby showing all qualifiying subfolders regardless of where the method is called from. You might have to modify your method to construct absolute URL's. Michael Bernstein. From da@ski.org Fri Mar 5 18:52:10 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:52:10 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem + bug report In-Reply-To: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: On Fri, 5 Mar 1999, Michael Bernstein wrote: > Try: > > This will call the method using the root folders' namespace, thereby > showing all qualifiying subfolders regardless of where the method is > called from. You might have to modify your method to construct absolute > URL's. Thanks! What I actually wanted was sidebar(PARENTS[0], REQUEST), but you pointed me in the direction I needed. Now I have to understand it, but that's much easier with working code. This also led me to find a bug. I was wondering why the REQUEST parameter was needed, so I tried to remove it. The next time I loaded a page calling this code, the ZServer process died with the Win32 equivalent of a segfault. Is it just me? I don't dare try it on another Zope server =). [Zope 1.10.2, latest ZServer, win32, NT4SP3] --david From jae@kavi.com Fri Mar 5 18:52:13 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 5 Mar 1999 10:52:13 -0800 (PST) Subject: [Zope] special characters In-Reply-To: <4.1.19990305105646.00a90870@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 00:24 05/03/99 , John Eikenberry wrote: > >'manage_addProperty' calls various converters from ZPublisher.Converters > >to format the properties values. Shouldn't html_quote be used when > >formatting strings and text? This would be trivial to change. Would this > >cause some problem I don't realize? If not, I'd like to add this to the > >Collector for the next version. > > > > Yes, because you sometimes (most of the time, really), want to have the raw > input from the user. If you then use this raw input in HTML again, only > *then* should you quote out any HTML. Besides, what if I want the data to > be URL quoted? Or SQL quoted? Yeah, I already figured out that the problem was actually in the OFS/properties.dtml file (I moved over to the zope-dev list, as I realized this thread really belongs there). In properties.dtml the 'string' type is listed twice: "> "> 'string' needs to be removed from that first list. I'll be submitting this to the Collector. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From prudek@sol.cz Fri Mar 5 19:14:01 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 05 Mar 1999 20:14:01 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: <36E02CF9.F79E416F@sol.cz> I'm new to Zope. I'm very excited about it's potential, but my first impression is that I will need to master Python in order to use it. I believe Python is an excellent language, but I do not have the time to learn it. Several questions about this: - Can I achieve anything useful in Zope without touching Python? I can learn DTML, of course. - if so, what I can and what I cannot do without Python? - could I, for instance, do something like slashdot.org without Python? - is there a plan to give Zope features (or ready-made modules/factories) that would completely eliminate the need to work with Python (for certain tasks that can be automated or turned into templates)? -- Milos Prudek From jbb@spyderlab.com Fri Mar 5 19:45:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 14:45:11 -0500 (EST) Subject: [Zope] bug with SQL methods? Message-ID: Hi, I'm re-posting to this list because it probably is more suited here... thanks in advance, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com ---------- Forwarded message ---------- Date: Fri, 5 Mar 1999 12:11:02 -0500 (EST) From: Jordan B. Baker To: zope-dev@zope.org Subject: [Zope-dev] SQL methods q: Hi guys: I'm trying to write a SQL method though, and its giving me an error when I try to test it.. Error, exceptions.TypeError: keyword parameter redefined SQL used: Could not render the query template! The query I was using: SELECT searches.engineID as engine, queries.param as query, MAX(searches.timestamp) AS time, searches.position AS position, MIN(lastsearch.timestamp) AS lastupdate, lastsearch.position AS lastsearch, searches.URL as URL, 'NA' as change, engines.graphic as engine_gfx FROM searches LEFT JOIN searches as lastsearch USING (queryID,engineID), engines, queries WHERE lastsearch.timestamp BETWEEN AND AND searches.timestamp BETWEEN AND AND queries.clientID = AND queries.queryID = searches.queryID AND engines.engineID = searches.engineID AND searches.timestamp != lastsearch.timestamp GROUP BY searches.engineID, searches.queryID ORDER BY searches.engineID ASC, searches.queryID ASC, searches.timestamp ASC, lastsearch.timestamp DESC ; Any ideas what I could be doing wrong? BTW, Zope is great! I've been kinda messing around with it for a while, also checking out PHP3 and other UNIX-based scripting languages and I've very impressed. As soon as I figure out what is causing this I plan to write something 'cool' with Zope :) TIA, -jordan. _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev From rocon@pivot.net Fri Mar 5 20:49:30 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 15:49:30 -0500 Subject: [Zope] XML discussions Message-ID: <00be01be6749$aeea0b40$0201a8c0@hawkeye.bob.oc> Hi Paul and Zopesters, Paul writes in the thread: [Zope] Some tough questions about zope... >I've been awfully interested in XML in >the last few days. Can you describe what >user-visible benefits PHP delivers due to its integrated >XML parser? I found a great description about XML in: "20 Questions on XML" http://builder.com/Authoring/Xml20/index.html On Paul's Zope roadmap: (Jan 18th) http://www.zope.org/Information/Roadmap "(2) XML. Zope is a great fit for XML, even better with the machinery from Tabula going in. We also see XML becoming the basis for other initiatives, such as WebDAV and RDF. However, we just can't squeeze out the time to dive in deep. Rather, we'd love to see more community progress like that which popped up this weekend." I did a search for postings that had "XML" in the subject and found 55 messages in ~6 threads between Jan 8th and Feb 2nd Other messages have "XML" in the body. Hopefully we can get some OUTLINE of how ZOPE and XML can work together. --- A framework for further discussions. -bobo connor bob@rocnet.com From michel@digicool.com Fri Mar 5 21:07:09 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:07:09 -0500 Subject: [Zope] Python neccessary to work with Zope? Message-ID: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Friday, March 05, 1999 2:14 PM > To: zope@zope.org > Subject: [Zope] Python neccessary to work with Zope? > > > I'm new to Zope. I'm very excited about it's potential, but my first > impression is that I will need to master Python in order to use it. I > believe Python is an excellent language, but I do not have the time to > learn it. Several questions about this: > You do not need to know a single line of Python to use Zope. But learning Python is a pleasure, not a chore. > - Can I achieve anything useful in Zope without touching Python? I can > learn DTML, of course. > You can do just about anything with DTML. In fact, most 'Products' (read that, 'Zope Extnesions') are mostly DTML. If your not writing a Product then you can stay entirely in the domain of DTML. DTML does use a small bit of Python in itself, these are called expressions. For example, if you had an integer called num you could use: to 'render' it in your web page. To get num + 1 you would use: The contents of "" is a python expression. But it's not a python program. If we didn't use Python we'd of had to have come up with some other language like way of doing this that you'd have had to learn anyway. > - if so, what I can and what I cannot do without Python? > Python is used for the following: To write Products. This is hard core development. To write External Methods, which are used to hook special or wierd/pre-existing python functions into Zope. This is rarely necesary. > - could I, for instance, do something like slashdot.org > without Python? > Yes. There may be a 1% slice of something like slashdot needing a bit of Python. But remember, slashdot is a huge application written entirely in Perl. > - is there a plan to give Zope features (or ready-made > modules/factories) that would completely eliminate the need > to work with > Python (for certain tasks that can be automated or turned into > templates)? > Yep. These are called Zope Classes. They are still in-house here at Digital Creations because we are still debugging/figuring them out. A Zope Class lets your create your own objects that can be added into Zope without writing Python code. > > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Fri Mar 5 21:10:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:10:36 -0500 Subject: [Zope] Simple DTML Method/Acquisition problem + bug report Message-ID: <613145F79272D211914B0020AFF6401907BAF0@GANDALF> > -----Original Message----- > From: David Ascher [mailto:da@ski.org] > Sent: Friday, March 05, 1999 1:52 PM > To: Michael Bernstein > Cc: The Zope Group > Subject: Re: [Zope] Simple DTML Method/Acquisition problem + > bug report > > > On Fri, 5 Mar 1999, Michael Bernstein wrote: > > > Try: > > > > This will call the method using the root folders' namespace, thereby > > showing all qualifiying subfolders regardless of where the method is > > called from. You might have to modify your method to > construct absolute > > URL's. > > Thanks! What I actually wanted was sidebar(PARENTS[0], > REQUEST), but you > pointed me in the direction I needed. Now I have to > understand it, but > that's much easier with working code. > > This also led me to find a bug. I was wondering why the > REQUEST parameter > was needed, so I tried to remove it. The next time I loaded a page > calling this code, the ZServer process died with the Win32 > equivalent of a > segfault. Is it just me? I don't dare try it on another > Zope server =). > [Zope 1.10.2, latest ZServer, win32, NT4SP3] > Could you submit this bug report to the Collector? http://www.zope.org/Collector Thanks, -Michel > --david > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jbb@spyderlab.com Fri Mar 5 21:19:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:19:14 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: More information on my front.. I've been fiddling around a bit trying to find out what is going wrong.. I'm using ZServer/Zope 1.10.2 with ZMySQLDA that I just downloaded 2 days ago. The traceback is as follows: line 384 of DA.py -- __call__ reads: query=apply(self.template, (p,), argdata) I added a bit of debugging code and was able to a take a look at some of the data being passed around: argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', 'pstart': '1', 'sql_quote__': } This is starting to confuse me because simple queries work fine within Zope, its only the query that I posted in my previous message that seems to be fowling things up. I'll keep slagging away until either I figure it out or someone tells me its not something I've done and that I should submit it to the Collector :) -jordan. From Paul@digicool.com Fri Mar 5 21:28:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 16:28:56 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/sit e-packages? Message-ID: <613145F79272D211914B0020AFF640190D9E61@GANDALF> Skip writes: > Can the contents of Zope's lib/python directory safely be > copied to the > site-packages directory of the Python install directory? I asked Jim, who replied: "As far as I know, they can. Note, however, that it will be important for INSTANCE_HOME to be defined." --Paul From Tony.McDonald@newcastle.ac.uk Fri Mar 5 21:37:08 1999 From: Tony.McDonald@newcastle.ac.uk (Tony.McDonald@newcastle.ac.uk) Date: Fri, 5 Mar 1999 21:37:08 +0000 (GMT) Subject: [Zope] DatabaseError: Corrupted data record... Message-ID: <199903052137.VAA24776@finan.ncl.ac.uk> Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... "...there is one small problem!" (MPaTHG) My database has got nuked. I don't know how it happened, but this is the tail of my serve.errors file File "lib/python/OFS/Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "lib/python/BoboPOS/PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "lib/python/BoboPOS/SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "lib/python/BoboPOS/SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "lib/python/BoboPOS/SimpleDB.py", line 1365, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1087646 Trying to 'start' the server again just results in the serve.errors file being touched. As you'll know from my 'Touch Questions' post, I'm a novice in Zope (but I've bought the Lutz 'Programming Python' book, have two more on order and have been reading and rereading the docs all week...so I'm learning fast), but this has me stumped. I haven't got too far into my Zope 'career' yet, so I won't be devastated if I have to replace the database from scratch (how do you do that by the way?), but I'm sorta worried about the way that all my work seems inaccessible to me now. any and all help would be ... appreciated. tone. From jbb@spyderlab.com Fri Mar 5 21:45:56 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:45:56 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: Continuing this great tradition of responding to my own posts :) On Fri, 5 Mar 1999, Jordan B. Baker wrote: > argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', > 'pstart': '1', 'sql_quote__': } > This is starting to confuse me because simple queries work fine within > Zope, its only the query that I posted in my previous message that seems > to be fowling things up. Okay, now it makes sense. Is 'client' a reserved variable? If so, perhaps a warning would be nice if you attempt to use a reserved variable as an argument to a SQL method. Argh.. so I got that fixed and now I am getting another traceback when testing the SQL method! I can't believe it :) Here it is: Error, exceptions.KeyError: unhandled -jordan. From da@ski.org Fri Mar 5 21:45:06 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 13:45:06 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables Message-ID: I need to detect not only whether a list is empty (that's easy with the #if tag for example), but also whether all of the elements in the list have a property. In Python, one could do this with something like: empty = 1 for element in theList: if not element.hidden: empty = 0 print element if theList and not empty: print "no non-hidden elements" What's the equivalent DTML? Can one create a variable in DTML? Can anyone tell I miss my Python when writing DTML? =) From tismer@appliedbiometrics.com Fri Mar 5 22:05:10 1999 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 05 Mar 1999 23:05:10 +0100 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> Message-ID: <36E05516.FBCEC2BE@appliedbiometrics.com> Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. Oh my :-) ... > DatabaseError: Corrupted data record at 1087646 I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-) ciao - chris -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home From da@ski.org Fri Mar 5 22:10:22 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 14:10:22 -0800 (Pacific Standard Time) Subject: [Zope] DTML Method truth value Message-ID: The following method tests false (correctly): But if I change it to: then it tests true (note that nothing happens in the #in block). Is this correct behavior or one for the Collector? --david From rwolff@noao.edu Fri Mar 5 22:11:30 1999 From: rwolff@noao.edu (Richard Wolff) Date: Fri, 5 Mar 1999 15:11:30 -0700 Subject: [Zope] Authentication and Zope.cgi Message-ID: <199903052211.PAA16445@daikon.tuc.noao.edu> I'm in need of a bit of clarification about how Zope starts up and when it decides to do its authentication and why. I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request mymachine/Zope/manage I do indeed get the normal management screen. I haven't been asked in some time for a password, which suprises me; the 'access' file exists and (but?) hasn't changed since installation. I'd really like the root folder to say something other than Zope, so I added to Apache a second rewrite rule that substitues 'mpg' for Zope in the two places (restarted Apache), and copied Zope.cgi in cgi-bin to mpg.cgi . These two cgi files are identical so they point to the same /var directory. If I try mymachine/mpg/manage , I get an authorization failed box, and upon clicking 'retry', I get the usual authentication box with the correct 'access' user entered. I type in the correct password and the system fails again ("You are not authorized to use this system. Username and password are not correct"). So, I'm very curious as to what's going on ... and I wouldn't mind learning how to change the top of the root name as well. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 22:21:54 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 17:21:54 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > What's the equivalent DTML? Can one create a variable in DTML? ... > > Can anyone tell I miss my Python when writing DTML? =) > I try hard to do everything in DTML but ... python is such a breeze. OTH if you have most of your code written in DTML it is so easy to create similar products and move them around. Pavlos From jim@digicool.com Fri Mar 5 22:31:11 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:31:11 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: Message-ID: <36E05B2F.97F986C2@digicool.com> Tony.McDonald@newcastle.ac.uk, Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. What version of Zope are you using? What OS? Were you using NFS? MySQL? Please send *in private mail* me a gzipped tar file (or Zip file) containing the Data.* files from your var directory. Any other thoughts you might have regarding events leading up to this would be helpful. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Fri Mar 5 22:33:07 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:33:07 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> <36E05516.FBCEC2BE@appliedbiometrics.com> Message-ID: <36E05BA3.D5125CF@digicool.com> Christian Tismer wrote: > > Tony.McDonald@newcastle.ac.uk wrote: > > > > > DatabaseError: Corrupted data record at 1087646 > > I didn't try such a thing before. But because the Zope > database is always only appended to (if I'm understanding right), > you might try to truncate the file upto that offset and see > if it is working again? (please keep a backup :-) Good point. I should have mentioned that as a quick recovery, especially if the location is near the end of the file. But please send me the file before you truncate it. :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From da@ski.org Sat Mar 6 00:35:44 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 16:35:44 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > On Fri, 5 Mar 1999, David Ascher wrote: > > > What's the equivalent DTML? Can one create a variable in DTML? > > > ... > Hmm. I want to create a variable whose value is given by another value. Doing: )"--> doesn't make it through the parser. I've tried adding various quotes to no effect. I think I'm going to work on understanding ExternalMethods -- this syntax is not made for me. =) --david From jbb@spyderlab.com Sat Mar 6 00:58:51 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 19:58:51 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Jordan B. Baker wrote: > Error, exceptions.KeyError: unhandled > > Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? Well, I was looking at the code for the MySQLmodule and it appears that it has problems handling some fields. This appears to be a limitation of the MySQLmodule. It currently does not handle the LONGLONG datatype longer timestamps use. At least I assume its the LONGLONG that is messing it up. I haven't looked into that much detail to be honest. I'm not quite sure if this is something that should be included in the FAQ, or considered a known bug, or submitted to the Collector? Thanks, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mbernstein@profitscape.net Sat Mar 6 01:37:26 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 17:37:26 -0800 Subject: [Zope] Webreview Article Message-ID: <36E086D6.B90F1AEF@profitscape.net> Well, it's the end of the day, and no-one else has posted this, so... http://webreview.com/wr/pub/1999/03/05/feature/index2.html This is a link to Amos' Article on Zope in Webreview. Way to go, Amos! BTW, what have the server logs been telling you guys about people visiting zope.org recently? Has traffic been going up? Michael Bernstein. From kslee@plaza1.snu.ac.kr Sat Mar 6 01:57:52 1999 From: kslee@plaza1.snu.ac.kr (LEE, Kwan Soo) Date: Sat, 06 Mar 1999 10:57:52 +0900 Subject: [Zope] Authentication and Zope.cgi References: <199903052211.PAA16445@daikon.tuc.noao.edu> Message-ID: <36E08B9F.1B56136@plaza1.snu.ac.kr> Richard Wolff wrote: > I'm in need of a bit of clarification about how Zope starts up and when > it decides to do its authentication and why. Me, too ;-) > I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request > mymachine/Zope/manage I do indeed get the normal management screen. > I haven't been asked in some time for a password, which suprises me; > the 'access' file exists and (but?) hasn't changed since installation. This surprises me, since as far as I can see, one is always asked for password accessing /Zope/manage. Does netscape 4.07 automatically go through authenticate procedure? > I'd really like the root folder to say something other than Zope, so > I added to Apache a second rewrite rule that substitues 'mpg' for Zope > in the two places (restarted Apache), and copied Zope.cgi in cgi-bin > to mpg.cgi . These two cgi files are identical so they point to the > same /var directory. > > If I try mymachine/mpg/manage , I get an authorization failed box, > and upon clicking 'retry', I get the usual authentication box with > the correct 'access' user entered. I type in the correct password and > the system fails again ("You are not authorized to use this system. > Username and password are not correct"). There are at least two possibility. 1) Misconfigured rewrite rule. 2) mpg.cgi is not altered suitably. (oh, 1+2 gives the 3rd possibility). I was in a similar situation a few days ago. Now one of apache virtual host on my linux box has 1) ordinary apache site tree, 2) experimental(read 'for play') Zope site under hostname/Zope/ (through Zope.cgi) 3) public Zope site under hostname/public/ (through public.cgi) If this is similar enough to what you want achieve and you are desperate enough, just mail me your rewrite rule and Zope.cgi & mpg.cgi with sensitive parts altered suitably. But be aware that I am new to rewrite rules and pcgi world(hence if you are desperate enough). > So, I'm very curious as to what's going on ... and I wouldn't mind > learning how to change the top of the root name as well. This is easy. Just edit BOBO_REALM (NAME?) in your *.cgi file. LEE Kwan Soo. ps. my Zope's have their own var/Data.bbb but you want your Zope to point to the same var/Data.bbb. Oh this seems far beyond the capacity of mortal being. If you really want need this setting, I guess, the easist way to achieve it is getting Zopal blessings from DC(i.e. make a consulting contract with DC). From chadm@sgi.com Fri Mar 5 23:32:04 1999 From: chadm@sgi.com (Chad McDaniel) Date: 05 Mar 1999 15:32:04 -0800 Subject: [Zope] underscores in Z SQL Method Message-ID: Hello all, I recently discovered Zope and am diving right in. I have a Z SQL Method with the following Query Template: --- select * from rw_ProjectData where _id = --- when I test it, I get the following: --- Sorry, an error occurred. Traceback (innermost last): File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /test/viewSRR/manage_test) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/Shared/DC/ZRDB/DA.py, line 302, in manage_test (Object: CopySource) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_In.py, line 599, in renderwb (Object: viewSRR) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Var.py, line 237, in render (Object: _id) KeyError: _id --- I'm guessing that the parsing of the tokens picks up on underscore ('_') even outside of the DTML tags. Does anyone have a solution or workaround? thanks -- -chad From tony.mcdonald@ncl.ac.uk Sat Mar 6 08:23:25 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sat, 06 Mar 1999 08:23:25 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <199903060823.IAA17941@cheviot.ncl.ac.uk> Again, another lengthy one, with some details of word conversions and XML musings. Fingers over 'd' key... >> Some background: >> I'm one of the web developers here, with a remit to implement a >> curriculum database that can; >> (a) support the Medical Faculty here >> (b) get rolled out to three other Medical-related sites, each with >> their own 'look and feel' >> (c) possibly implement a University-wide curriculum database> >Sounds fantastic! > Absolutely. One of the reasons I applied for the job is that the potential for it is so great! >> The curriculum database is essentially delivering online study guides >> (over 100 for each Faculty) whose source is originally from very well >> marked up Word Documents. In addition, we include multiple choice > >This is really weird, it just reminded me of a (rather pathetic) dream I >had last night. I dreamt that someone created a Python module that >would read Word files. > Ouch!, what we do is save the word docs as RTF. A free program (written in Omnimark) called RTF2XML then trundles through it and creates well-formed and valid XML. I then pass it through another Omnimark program that I wrote that turns it into XML that is more suited to what we want. >I've been awfully interested in XML in the last few days. Can you >describe what user-visible benefits PHP delivers due to its integrated >XML parser? > Background:... PHP is a (non OO) server-level scripting language, usually delivered as an Apache module, that has it's roots in C, but with some of the arcane bits removed. It's database integration is very good. The authors have recently built the (almost XML-industry standard) parser Expat into it. ... From my point of view, having the XML parser in PHP meant that (a) I didn't need to call Perl CGIs (with all that overhead), (b) I'd understand the code a bit (I *cannot* do Perl!), (c) there might be a performance boost from having the parser in the Apache Module and (d) I'd be able to map XML elements such as ... into HTML

    ...
    tags or RTF control codes (all of which would be read from a user-defined database) - thus leading to the 'Holy Grail' (ouch!) of being able to render the documents into whatever form the end-user wanted. As well as that, using XML means that I can select all .. tags that match a certain criteria (eg, all first-year study guides that mention cell biology) from *all* our study guides and create a 'composite' document that would be passed through the XML 'converter' to get custom HTML and RTF docs. Of course, once I 'got into' XML I found out that just having the Expat parser around didn't necessarily mean I was going to get all that for free...ie how 'do' you 'search' an XML document to get those matched tags (and possibly their children). Enter XQL and it's friends, DOM and XSL. XQL (Perl module based on a W3C recommendation) works, but it's slow. In short, I was at an impasse. The level of work needed to incorporate XQL into PHP (as a CGI) or (gulp) rewriting it as PHP was just too much. I installed the XML-Config product for Zope and my appetite was whetted. I read about the XML-sig and downloaded the XML-0.5 toolkit from python.org. I tried one or two examples out ... and my jaw literally fell open. By the time I'd looked in the 'dom' directory I was almost gibbering. This was something I felt I might be able to understand (and definitely use). Ooops...I'll shut up as I'm waay of topic. >Additionally, we are working on Zope searching for a consulting project >right now. Actually it is Zope Cataloging. It's still a >consulting-only option, but plans are that eventually it will go "below >the line". That would be most welcome! > >> I found out about Zope Monday morning, dl'ed it, installed it, got >> one or two things working... and have been worried sick ever since. > >Ahhh, you too, eh? Did you have the dream about the chimp and the >External Method where...oh, nevermind. :^) No, but I've spent the last week muttering 'ok, I can use UserDB to authenticate against our StaffDB and allow per-user access to the file upload area', 'yeah, should be able to rewrite my PHP Multi-Choice Question engine in this DTML gubbins', 'ok, I'll pull in the Perl script that does xxx by using a redirect' and the like ... which is probably more scary! > >> My problem? is that I can see how Zope can do so much for us, but it >> seems to need a hell of a gut-wrench to do so. > >I *think* I have some good news to report on this, but before I squawk, >could you detail this gut-wrench a bit more? > Simply this: Zope seems to do just about everything I need (which is basically to provide a *framework* for the Electronic Curriculum - others will fill in *and manage* the content). I can then concentrate on providing features that people need and 'rolling them out' to the users of the systems, confident that they will integrate into the whole system. I think it's a paradigm-shifty thing more than anything else. Everyone in our group *knows* that an .htaccess file allows access to the files in that directory. They all have at least a basic grasp of CGI programming and all recognize the mapping between files in a unix file structure and their representations as web pages. People using Zope will have to break that habit of logging in to change a file ('cos it ain't there!). (for the time being, I've desubscribed from the PHP-lists to give me more room to think!...) >> c) Is there any way of using the XML documents that I'm creating into >> the database and parsing them to produce either HTML or RTF output? > >I'd like to have this as well. I've been doing a lot of thinking about >this lately. It is a bit more complicated than expected, though... This would be extremely useful to have. > >> d) I know that this a terrible question to ask... but is Zope likely >> to 'remain' open-source (we're worried about getting stuck with a >> proprietary system)?. > >This is the main reason I replied. > >Having Zope as a free and Open Source(tm) platform is the heart of our >business plan. A closed Zope would basically mean we start over >completely as a different company. Thus, closing Zope is roughly >equivalent to closing our company. > phew! well I suppose that answers *that* question! > >Earning the community's enthusiasm is pretty simple, I think. >Unfortunately we aren't doing a good job right now, though we are trying >damn hard. But we'll keep trying... > Seems to this newbie that you're doing a pretty *good* job! >> e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >> dropping the :port requirment). > >Yep, the zope.org machine has five virtual hosts. great. > >> h) We also need resources such as QuickTime movies, images PowerPoint >> slides etc. to be uploaded - would they sit in the database or can >> they be held somewhere else (and what happens about file name >> conflicts)? > >We put them in the database. The 3 Mb Zope binaries are served out of >the database, the PDF files are served out of the database. This works >so well I don't even think about it any more. > great again. Thanks for the reply Paul, (and thanks to the others that replied too - I'm not able to reply in person yet...) Cheers, tone. From jay@tomigaya.shibuya.tokyo.jp Sat Mar 6 23:07:33 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Sat, 06 Mar 1999 18:07:33 -0500 Subject: [Zope] Subfolder Access? Message-ID: <3.0.6.32.19990306180733.009318b0@hito.eccosys.com> I think there must be an easy way around a little trouble I'm having, but it's had me stumped for a few days and I can't find any mention in the list/docs. From a dhtml method I want to access a subfolder's sql methods, which is easy enough using . The problem is, because of the amount of methods involved and in order to keep things flexible I want to add the to a standard_header, and the to a standard_footer. Of course, Zope nixes this. So I was hoping there was an end-run around this dilemna - some other way to give access to subfolders. I've tried including the opening and closing WITH's in the same document surrounded by IF's with no luck, and have been wondering if there's a way to set a folder property to accomplish this... - Jay From prudek@sol.cz Sat Mar 6 09:30:44 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 06 Mar 1999 10:30:44 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> Message-ID: <36E0F5C4.4979DF71@sol.cz> Michel Pelletier wrote: > > Subject: [Zope] Python neccessary to work with Zope? > You do not need to know a single line of Python to use Zope. But > learning Python is a pleasure, not a chore. Thanks a lot for your answers, now I will have a deeper look into Zope. -- Milos Prudek From pavlos@gaaros.msrc.sunysb.edu Sat Mar 6 20:03:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sat, 6 Mar 1999 15:03:10 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > > )"--> > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. You cannot nest DTML but you can use _[] to access the namespace. For instance you could do: Have a nice weekend Pavlos From tseaver@palladion.com Sat Mar 6 21:40:16 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 06 Mar 1999 15:40:16 -0600 Subject: [Zope] [DTML] creating variables References: <199903062000.MAA29011@zope.codeit.com> Message-ID: <36E1A0C0.55D44B20@palladion.com> David Ascher wrote: > Subject: > > On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > > > On Fri, 5 Mar 1999, David Ascher wrote: > > > > > What's the equivalent DTML? Can one create a variable in DTML? > > > > > > ... > > > > Hmm. I want to create a variable whose value is given by another value. > Doing: > > )"--> > > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. > > I think I'm going to work on understanding ExternalMethods -- this syntax > is not made for me. =) I too miss Python when working in DTML. But in this case, I think that the following will help: -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From raver@box.dust.za.net Sun Mar 7 12:02:36 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Sun, 7 Mar 1999 13:02:36 +0100 Subject: [Zope] Creating Zope a zope application Message-ID: <19990307130236.A532@RaVER.duck.org> Hi! I'm reading 'A technical introduction to object publishing with Zope'. The doc says 'Creating a Zope application is simply a matter of creating a regular Python module containing the objects to be published, and placing this module along with some Zope-provided support files in the appropriate place on a web server' The doc continues to say that the zope documentation covers this prosess, but I'm not able to find it. So my question is - what are those zope-provided support files, and where am I supposed to place those file along with the python module that I've created? Sture Lygren From Paul@digicool.com Sun Mar 7 15:32:32 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 10:32:32 -0500 Subject: [Zope] [DTML] creating variables Message-ID: <613145F79272D211914B0020AFF6401907BB06@GANDALF> Tres wrote: > I too miss Python when working in DTML. But in this case, I I also wish Python could get into DTML. I look at some of the DTML that gets written and think "Ugh, that's pretty awful." Still, I don't yet see an alternative. --Paul From edcjones@erols.com Sat Mar 6 11:05:18 1999 From: edcjones@erols.com (Edward C. Jones) Date: Sat, 06 Mar 1999 06:05:18 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <36E10BEE.17A0A5DB@erols.com> Are there any Zope users in the Washington, DC area? From michel@digicool.com Sun Mar 7 18:08:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 13:08:36 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <613145F79272D211914B0020AFF6401907BB08@GANDALF> > -----Original Message----- > From: Edward C. Jones [mailto:edcjones@erols.com] > Sent: Saturday, March 06, 1999 6:05 AM > To: zope@zope.org > Subject: [Zope] Washington, DC area Zope users? > > > Are there any Zope users in the Washington, DC area? > > Digital Creations (the mecca of Zope users) is in Fredricksburg, VA. About 50 miles south of DC. -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Sun Mar 7 19:44:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 14:44:17 -0500 Subject: [Zope] Creating Zope a zope application Message-ID: <613145F79272D211914B0020AFF6401907BB0C@GANDALF> Sture wrote: > The doc says 'Creating a Zope application is simply a matter > of creating a > regular Python module containing the objects to be published, > and placing > this module along with some Zope-provided support files in > the appropriate > place on a web server' > > The doc continues to say that the zope documentation covers > this prosess, > but I'm not able to find it. So my question is - what are those > zope-provided support files, and where am I supposed to place > those file > along with the python module that I've created? Docs are still pretty light, but take a look at the Product Tutorial at: http://www.zope.org/Documentation/Reference/API --Paul From tony.mcdonald@ncl.ac.uk Sun Mar 7 20:25:00 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 07 Mar 1999 20:25:00 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <199903072025.UAA09186@cheviot.ncl.ac.uk> Hi, I've read on the zope-dev list that Zope is not multi-threaded. Does this have any ominous implications for server performance? I believe it means problems for people writing products, but does it give problems for folk using Zope in an 'install products and use them' scenario? many thanks for any thoughts, tone. From michel@digicool.com Sun Mar 7 21:00:48 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 16:00:48 -0500 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Sunday, March 07, 1999 3:25 PM > To: zope@zope.org > Subject: [Zope] Zope not multi-threaded - is this a problem? > > > Hi, > I've read on the zope-dev list that Zope is not multi-threaded. > > Does this have any ominous implications for server > performance? I believe it > means problems for people writing products, but does it give > problems for > folk using Zope in an 'install products and use them' scenario? > We can discuss this now, but in a short while it won't really matter. Zope as we know it now is not 'multi-threaded'. The real issue concerning Zope is one of concurrency, since the 'threading' of requests is ussualy created by the web server (Apache using multi-processes or Medusa (ZServer's) use of select(), neither of which use actual 'threads'). There are two areas that we are working on to make zope concurrent. The Database: There is a new version of BoboPOS, called BoboPOS3. It is currently alpha. BoboPOS3 supports concurrent processes opening, reading and writing the Object Database. 'Concurrifying' Zope: Concurrent programs have to be careful about some issues. In particular, the use of global data. These can sneak in on you in wierd ways. For example, in the regex python module (yes, regex has been depreciated for re, but for now regex is faster) certain uses of compiled reg expressions don't work when two 'threads' enter the same expression. Also, there is an issue about passing mutable objects as default arguments to methods. To be truely thread safe, default arguements need to be immutable, or mutable arguments can only be used in immutable ways. These are, as you said, developer issues. Product developers have to be careful not to block Zope for long periods of time. People in the 'install and use them' scenario should not use these types of Products unless they are sure the block times are low, and product developers should be very, very careful about moving their software out into the world if the product blocks. It should be made clear to the user that this software could stop up the whole works. Why is won't matter soon is because we are working on making Zope fully concurrent. -Michel > many thanks for any thoughts, > tone. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From DAve@mail.netraven.com Mon Mar 8 05:14:32 1999 From: DAve@mail.netraven.com (Dave G) Date: Sun, 7 Mar 1999 21:14:32 -0800 Subject: [Zope] Q for the group Message-ID: Advice needed, opinions wanted. I have a situation where there is a group of users with both a private space and a public space. The users homepage is considered private with the public space where all anonymous viewable docs are held. I have two thoughts on how to do this, Zope is capable of either method, I'm curious which method everyone else thinks best, and why. First method; community folder (contents public viewable by permission) user_folder (contents not public viewable by permission) users manage page (not public viewable by aquisition) users public folder (public viewable by permission) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by aquisition) Second method; community folder (contents public viewable by permission) user_folder (contents public viewable by aquisition) users manage page (not public viewable by permission) users public folder (public viewable by aquisition) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by permission) Both have advantages and disadvantages, either way I end up with on - off, off - on, in the permissions hirearchy. Anyone have a good argument for either method? DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From chsrinfo@guetali.fr Mon Mar 8 05:27:14 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 8 Mar 1999 09:27:14 +0400 Subject: [Zope] top level acl_users Folder Message-ID: <002e01be6924$55424c60$147800a0@pc-pi0> Hello, Is it possible to change (I mean: to delete) the top level UserFolder and use something else, say, a UserDb folder? Also, I made a french version of Confera. If someone is insterested, drop me a note. Regards, Jephte CLAIN From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:04:28 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:04:28 +0000 Subject: [Zope] Why doesn't this loop over files? Message-ID: Hi, I've d/led the ZopeDemos folder, installed it and started learning more about Zope, but there's something happening that I'm not sure about. The 'looping' example doesn't seem to iterate correctly over new additions to the folder. The DTML is here:

    Objects of type

    IdTitle
    If I create a new DTML method or document in the folder 'subFolder', it isn't recognised. I've even copy/pasted the documents that do work into the subFolder with no joy. Curiously, new folders *are* recognised. My Question is: What's preventing Zope from reading *all* the Documents in the subFolder? This would be the core of my first real application in Zope (a resource upload/download facility for staff here) so any advice would be appreciated. thanks tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:08:31 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:08:31 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? In-Reply-To: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> Message-ID: > We can discuss this now, but in a short while it won't really matter. > Zope as we know it now is not 'multi-threaded'. The real issue > concerning Zope is one of concurrency, since the 'threading' of requests > is ussualy created by the web server (Apache using multi-processes or > Medusa (ZServer's) use of select(), neither of which use actual > 'threads'). There are two areas that we are working on to make zope > concurrent. Thanks for the informative answer Michel. Look forward to seeing the all-new singing and dancing server! ta tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:31:59 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:31:59 +0000 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: Hi Richard, > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. I don't know if my critiques will be all that useful (being a Zope newbie), but hopefully this will help a bit. > - - Proposed Access Method - - > It is desired to be able to have "non DTML" files incorporated > in a Zope URL system. These files might be static GIF files, > quicktime movies, or just plain old HTML. Yes. > Obviously, they might be "included" in a DTML page by simply > referencing them directly by their URL. However, I can see cases > where one would like the access to be under the control of the Zope > system. Definitely. We have dozens and dozens (eventually hundreds) of files (QT movies, PowerPoints, Word Docs and the like - the mean size is about 600k-1Meg, but we have quite a few monsters at 6-7 Megs). > For example, access controls might apply. I think that this is 'a good thing'. > > The Zope mount point would enforce permissions just as if the > file were loaded into the Zope DB. > > Objects can be "imported" without having them take up space > in the database. Their creation and maintanence can be handled > outside the Zope system. This would be excellent news for us. > They are rendered by "cat"ing their contents. Does this ensure that MIME types are kept with the document, so that 'clicking' on its link will ensure that the correct helper application is invoked? Cheers, Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From M.Faassen@vet.uu.nl Mon Mar 8 10:54:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 08 Mar 1999 11:54:50 +0100 Subject: [Zope] Ad-hoc Zope FAQ version 0.1.1 Message-ID: <36E3AC7A.3C93D5F4@pop.vet.uu.nl> Ad-hoc Zope FAQ version 0.1.1 Note on the use of the Zope mailing lists: The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Please join and help us document Zope! Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured; unrelated questions are mixed haphazardly. If you feel the calling to help categorize the FAQ into sections, or if you'd like to maintain a particular FAQ section, please mail to the ZDP list. Thank you in advance! Note on the use of StructuredText: See the (currently) first FAQ entry for information on how to render this FAQ into HTML using Zope. For more information on StructuredText see:: http://www.zope.org/Documentation/Reference/StructuredText but this link is currently not completely up to date; see the comments in 'lib\python\StructuredText\StructuredText.py' for the current documentation. * How do I render the Structured Text FAQ into HTML cleanly? (in Zope) When including Structured Text (STX) from a DTML Method into another Document with the 'fmt="structured-text"' attribute, it will be quoted twice. This is because the '__str__' method of the 'DocumentTemplate.HTML' class automatically quotes its HTML when called. You can work around this by calling the STX document's 'read_raw()' method to get the unquoted version. This way we can use unquoted Structured Text examples in our FAQ:: Note that if the STX comes from a property the 'read_raw()' workaround is not needed. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] Another possibly is to use '_.getitem()', like this:: _.getitem('sequence-item') The difference is that the first renders 'sequence-item' through DTML, whereas 'getitem()' does not; it returns the raw value of 'sequence-item'. * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like 'REQUEST.form', 'REQUEST.cookies' and even 'REQUEST' itself. Just call the 'items()' method of the dictionary, and the #in tag will provide a 'sequence-key' and 'sequence-item' variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use 'REQUEST.cookies.items()' for all your cookies, and 'REQUEST.items()' for all 'REQUEST' variables, including CGI Environment variables. If you don't mind the format, you could use '
    ' as a shortcut. * What is a Principia Draft? A Principia Draft is a special copy of any Zope object that is invisible to visitors of your site. You can make changes to this copy, and grant access to outsiders to view your changes (or work along with you). When all changes are done, you can approve all the changes, or discard them. Approving will make the changes permanent and visible to your audience. However, currently Drafts can appear to be broken. To add a draft, choose Principia Draft from the popup menu and click 'Add'. Next, you will have to supply an ID for the Draft, and specify on what base object you are going to work. Clicking 'Add' in this screen will create the Draft for you. Next, you will have to specify who will have access to the Draft. Here the problem starts, because of the way Drafts are managed. First, a Draft doesn't acquire any users from its parent, so you will have to add anyone who has to have access explicitly, even if they have already been access to a parent Folder. But the biggest problem is that you can't reach the UserFolder and Approval screens via the management screens. This will make a Draft a bit harder to use, but it still is workable. This second problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Approval management screens. As this now doesn't happen anymore, you will have to type in the URLs to the screens yourself. You can reach the screens calling the Draft object's 'users__draft__.manage_main' and 'manage_approve__draft__' methods. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ So, the next step is typing in the URL to the Draft's UserFolder management screen, and adding all users that should have access to the Draft. These users can now edit and view all changes made to this Draft. When done, you go to the 'manage_approve__draft__' management screen, and approve, or discard the changes. * How does my Folder Product load default documents? Create a list of tuples containing filenames (without '.dtml') and title pairs:: self.defaultDocs = [ ('index', 'NotMail'), ('address', 'Address Book'), ('attach', 'Attach a File'), ('composer', 'Compose a Message'), ('contact', 'Contact Developers'), ('search', 'Search Your Mailboxes'), ('results', 'Your Search Results'), ('folder', 'Mailbox'), ('message', 'Message'), ('help', 'Help'), ('lookup', 'Lookup Users'), ('standard_footer', 'Standard HTML Footer'), ('standard_header', 'Standard HTML Header'), ('noto', 'Message must have at least one recipient.'), ('reminders', 'Your Reminders'), ('save', 'Save Message'), ('logout', 'You have been logged out'), ('GPL', 'The GNU General Public License'), ('sentmail', 'Mail was sent')] # Then iterate over them and create each one for id,title in self.defaultDocs: try: self.defaultDocFile(id, title, id) except: pass # defaultDocFile is a handy little function: def defaultDocFile(self, id, title, file): f=open('%s/Products/NotMail/%s.dtml' % (SOFTWARE_HOME, file)) file=f.read() f.close() self.manage_addDocument(id, title, file) When you are debugging your DTML, it's a pain to keep deleting and creating new instances of your object in order to load the new dtml files off of the disk. This function comes in handy:: def refresh_docs(self, REQUEST): """ refresh documents from disk (for debug purposes) """ for id,title in self.defaultDocs: try: self._delObject(id) except: pass try: self.defaultDocFile(id, title, id) except: pass return self.manage_main(self, REQUEST) Then, assuming your object has an attribute 'debug' you can define some DTML like so in your manage_main screen::

    Refresh Documents from disk

    * How do I add management tabs to my folder sub-class? If you subclass 'OFS.Folder.Folder' to build a folderish object, you may want to keep around the old Folder management tabs, but add some of your own as well. This can be done by mucking with the Folder class 'manage_options' attribute. One problem is that you might want your own custom 'manage_main' but the FolderClass uses 'manage_main' for displaying the contents of the folder. Here is what I did for my EMarket product. By examining Folder's manage_options:: for option in Folder.manage_options: print option We get the following output:: {'label': 'Contents', 'target': 'manage_main', 'action': 'manage_main'} {'label': 'Properties', 'target': 'manage_main', 'action': 'manage_propertiesForm'} {'label': 'Import/Export', 'target': 'manage_main', 'action': 'manage_importExportForm'} {'label': 'Security', 'target': 'manage_main', 'action': 'manage_access'} {'label': 'Undo', 'target': 'manage_main', 'action': 'manage_UndoForm'} {'label': 'Find', 'target': 'manage_main', 'action': 'manage_findFrame'} Notice that the "Contents" tab calls Folder's manage_main attribute. Just rename that in your sub-class with something like:: manage_contents=OFS.Folder.Folder.manage_main and assign that to a different tab. Here is the beginning of the MarketItem class from the EMarket product:: class MarketItem(OFS.Folder.Folder): """A MarketItem """ # Specify a name for the item type: meta_type='MarketItem' # Specify a relative URL for the icon used to display icons: icon='misc_/EMarket/marketItem' # rename Folder's manage_main to manage_contents manage_contents=OFS.Folder.Folder.manage_main manage_main=HTMLFile('marketItemEdit', globals()) manage_image=HTMLFile('marketItemImage', globals()) # Specify definitions for tabs: manage_options=[ {'label':'Attributes', 'action':'manage_main'}, {'label':'ImageUpload','action':'manage_image'}, {'label':'View', 'action':''}, ] # add in the options from the Folder class.... change # the 'action' for Contents to 'manage_contents' for item in OFS.Folder.Folder.manage_options: if item['label'] == 'Contents': # be sure to use a *copy* manage_options.append(item.copy()) manage_options[-1]['action'] = 'manage_contents' else: manage_options.append(item) From doussot@gifrance.com Mon Mar 8 10:56:19 1999 From: doussot@gifrance.com (doussot@gifrance.com) Date: Mon, 8 Mar 1999 11:56:19 +0100 (CET) Subject: [Zope] Netscape server. Message-ID: Hello, In Zope documentation I found this: > Netscape Servers > > * Like Apache, Netscape does not pass HTTP Authorization information to > CGI scripts. We have a plugin at our website that addresses this. > http://www.digicool.com I found a link on Digicool Web site (Free Stuff / nscgi) but it is broken :( Does anyone know where I can find this plugin ? Thanks. (Please CC me your answers, I'm not suscribed to the list) --- Yann Doussot Grey Interactive - France - http://www.gifrance.com/ Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00 From Lutz.Ehrlich@EMBL-Heidelberg.de Mon Mar 8 13:27:33 1999 From: Lutz.Ehrlich@EMBL-Heidelberg.de (Lutz.Ehrlich@EMBL-Heidelberg.de) Date: Mon, 8 Mar 1999 14:27:33 +0100 ('MET) Subject: [Zope] '~' in StructuredText links? Message-ID: <14051.53317.19816.135841@cuckoo.EMBL-Heidelberg.DE> Hi Zopists, using StructuredText ($Id: StructuredText.py,v 1.11 1999/02/08 18:13:12 klm Exp $) for content generation, I find that I can't include tilde (~) characters in hyperlinks, i.e. a string like "brabbel":http://www.embl-heidelberg.de/~ehrlich. is not mapped to

    brabbel.

    but output as literal

    "brabbel":http://www.embl-heidelberg.de/~ehrlich

    . I tried to fix StructuredText,StructuredText.__init__ by inserting '~' into the gsub statements. No success whatsoever... As I couldn't find this entry neither in the Collector nor in the archive, I wonder whether somebody has a patch sitting somewhere? Cheers, Lutz Ps: Congratulations to the people at Digicool. Keep up the great work! ______________________________________________________________________ Lutz Ehrlich web : http://www.embl-heidelberg.de/~ehrlich email: lutz.ehrlich@embl-heidelberg.de European Molecular Biology Laboratory phone: +49-6221-387-140 Meyerhofstr. 1 fax : +49-6221-387-517 D-69012 Heidelberg, Germany From zopelist@regalint.com Mon Mar 8 13:32:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 08:32:45 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I just ran into this error. When I did a SELECT * on joined tables it would give the error but if I named the fields I needed it worked. I played with it a little and got the error again when I named a field that ended in _num in the SELECT. I have four such INT fields that I don't need, they are used by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). As you can see my SELECT list is long and it would have been nice to just use a * since I need almost all the fields. Everything works fine in MySQL client but from Zope I can produce that error. Maybe there is some conflict with the *_num names. What are your field names? SELECT sonum,cust_name,cust_n,description,kickoff,delivery, comment,partnum,pm_n,pm_initials,cad_n,cad_initials, md_n,md_initials,mm_n,mm_initials,division,custdate,RD, manmeet,steel,exp_del FROM jobinfo LEFT JOIN customer ON cust_n=cust_num LEFT JOIN pm ON pm_n=pm_num LEFT JOIN cad ON cad_n=cad_num LEFT JOIN md ON md_n=md_num LEFT JOIN mm ON mm_n=mm_num WHERE AND active='1' ORDER BY sonum DESC >On Fri, 5 Mar 1999, Jordan B. Baker wrote: > >Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? > >Well, I was looking at the code for the MySQLmodule and it appears that it >has problems handling some fields. > >This appears to be a limitation of the MySQLmodule. It currently does not >handle the LONGLONG datatype longer timestamps use. > >At least I assume its the LONGLONG that is messing it up. I haven't >looked into that much detail to be honest. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From jbb@spyderlab.com Mon Mar 8 16:12:06 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 11:12:06 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Philip Aylesworth wrote: > I just ran into this error. When I did a SELECT * on joined tables it would > give the error but if I named the fields I needed it worked. I played with > it a little and got the error again when I named a field that ended in _num > in the SELECT. I have four such INT fields that I don't need, they are used > by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). > As you can see my SELECT list is long and it would have been nice to just > use a * since I need almost all the fields. > > Everything works fine in MySQL client but from Zope I can produce that error. > > Maybe there is some conflict with the *_num names. What are your field names? I was able to find a work around. The problem was the handling of the TIMESTAMP datatype by the MySQLmodule. It doesn't know how to handle a long timestamp unfortunately, so you'll want to retrieve it as a UNIX timestamp or as a formatted date using one of MySQL's many date functions. The other thing is that I doubt it handles double long integers since AFAIK Python doesn't handle these without an extension module. If your query is returning any of these you'll most likely get this response from Zope... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mike@compar.com Mon Mar 8 16:33:34 1999 From: mike@compar.com (Mike Pelletier) Date: Mon, 8 Mar 1999 11:33:34 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Jordan B. Baker wrote: > The other thing is that I doubt it handles double long integers since > AFAIK Python doesn't handle these without an extension module. It sure does: Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> long("99999999999999999") 99999999999999999L >>> 9999999999999L ** 2 99999999999980000000000001L Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can make numbers as large as you have memory for. Or is this not what you mean? Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From jbb@spyderlab.com Mon Mar 8 17:56:59 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 12:56:59 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Mike Pelletier wrote: > On Mon, 8 Mar 1999, Jordan B. Baker wrote: > > > The other thing is that I doubt it handles double long integers since > > AFAIK Python doesn't handle these without an extension module. > > It sure does: > > Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> long("99999999999999999") > 99999999999999999L > >>> 9999999999999L ** 2 > 99999999999980000000000001L > > Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can > make numbers as large as you have memory for. Or is this not what you > mean? Hey, I'm glad you proved me wrong :) It looks like there is a limitation in the MySQLmodule when handling MySQL's LONGLONG datatypes that could probably be corrected. I may take a look at this later, but I am thinking I may just store UNIX timestamps in my database since this is more portable across databases anyways. But anyway, this may be a FAQ item as I'm sure other people may run into it. -jbb. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From chalaouxf@synbio.tpgnet.net Mon Mar 8 17:43:22 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 8 Mar 1999 18:43:22 +0100 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: References: Message-ID: <19990308180532781.AAA136@[195.10.9.163]> Hi All, I fetched FAQ tool from "http://www.zope.org/WebReview/" but the archive contain only : * __init__.py *version.txt *Product.dat No, FAQ.py file. Strange no. Thus, this is maybe why I cant view Faq in the list of objet in Zope!! FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From zopelist@regalint.com Mon Mar 8 18:30:31 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 13:30:31 -0500 Subject: [Zope] Getting an L on integers eg. 53L Message-ID: Here is a strange one -- I am getting an L on the end of integer numbers from MySQL. (They are INT not BIGINT!) It didn't happen in 1.9, and it doesn't happen with methods that I created in 1.9 and moved to 1.10.2 (I think). In I have to use fmt='%d' to get rid of it. I also had a problem when I tried to use one in a redirect: produces: http://server/dir/file_html?num=53L which causes an error. I got around that by adding an int function: Has anybody else experienced this problem? Having to add all this extra code is driving me crazy! Phil A Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From amos@aracnet.com Mon Mar 8 18:57:54 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 10:57:54 -0800 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: <19990308180532781.AAA136@[195.10.9.163]> References: Message-ID: <3.0.5.32.19990308105754.01145910@mail.aracnet.com> At 06:43 PM 3/8/99 +0100, FR Chalaoux wrote: >I fetched FAQ tool from "http://www.zope.org/WebReview/" but the >archive contain only : > >* __init__.py > >*version.txt > >*Product.dat > > >No, FAQ.py file. Strange no. While this may seem strange, this is in fact the normal contents of a Product distribution file for a "levered product". When you build a product through the web inside the control panel, these are the normal files Zope creates inside the product distribution. >Thus, this is maybe why I cant view >Faq in the list of objet in Zope!! Unfortunately this is not the case. The reason you can't use the FAQ is that there is a bug in Zope which keeps some people from being able to use levered distributions. As discussed on the list, it appears to be related to zlib compression. We are aware of the problem and are working to solve it. Thanks for your patience. -Amos P.S. If you're curious about a bug, you can try searching the Collector. http://www.zope.org/Collector In this case a search under "lever" or "faq" would turn up the existing bug report for this problem. From prudek@sol.cz Mon Mar 8 20:48:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 08 Mar 1999 21:48:32 +0100 Subject: [Zope] python binary not found by bash Message-ID: <36E437A0.4788EA32@sol.cz> When I try to install binary distribution of zope (on Linux), I run the install script and end up with: bash: ./python: No such file or firectory even though python binary is there, with correct rights. Does it mean that the binary lacks some libraries? If so, can I find which ones? -- Milos Prudek From bjs@crc.com Mon Mar 8 21:52:50 1999 From: bjs@crc.com (Bryan J. Smith) Date: Mon, 8 Mar 1999 16:52:50 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <199903082152.QAA14654@mail.lsg.crc.com> New subscriber: Zope on Linux/Alpha? I understand the Zope is developed on Linux/Intel and is supported on many other systems. Linux/Alpha was not one listed on the FAQ. Anyone know if it is possible to compile it on Linux/Alpha? Anyone got a precompiled binary for Linux/Alpha? Thanx ... -- Bryan P.S. If not, what are the issues? I may be interested in resolving them. ************************************************************ Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================ Some say the U.S. is run by special interest, including me. I say, cut the middle man out and save the tax payers money. In keeping with the Bill Of Rights, the ACLU would be 1st in charge, the NRA 2nd, etc... -- Just my $0.02 ************************************************************ From michel@digicool.com Mon Mar 8 22:19:17 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 8 Mar 1999 17:19:17 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <613145F79272D211914B0020AFF6401907BB18@GANDALF> > -----Original Message----- > From: Bryan J. Smith [mailto:bjs@crc.com] > Sent: Monday, March 08, 1999 4:53 PM > To: 'Zope List' > Subject: [Zope] New subscriber: Zope on Linux/Alpha? > > > New subscriber: Zope on Linux/Alpha? > > I understand the Zope is developed on Linux/Intel and is > supported on many > other systems. Linux/Alpha was not one listed on the FAQ. > Anyone know if > it is possible to compile it on Linux/Alpha? Anyone got a precompiled > binary for Linux/Alpha? > > Thanx ... > > -- Bryan > > P.S. If not, what are the issues? I may be interested in > resolving them. > No real issues, just d/l the source release and try compiling Zope. I'd recommend having Python 1.5.1. To build the source release to use the built in simple web server, try: '/usr/local/bin/python1.5.1 wo_pcgi.py' to use with Apache (Note, d/l Zap and look at it's .conf file) '/usr/local/bin/python1.5.1 w_pcgi.py' Change the command line to reflect your python binary. Check out, I think, INSTALL.txt in the doc directory. All the C is ANSI, and python is python (grin) so you shouldn't have a problem. -Michel > ************************************************************ > Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com > Software Engineer http://www.SmithConcepts.com/legal.html > ============================================================ > Some say the U.S. is run by special interest, including me. > I say, cut the middle man out and save the tax payers money. > In keeping with the Bill Of Rights, the ACLU would be 1st in > charge, the NRA 2nd, etc... -- Just my $0.02 > ************************************************************ > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From amos@aracnet.com Tue Mar 9 00:40:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 16:40:35 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Hi Guys: I think I've nailed the problem that was keeping people from using the FAQ Tool and levered products in general under windows. I'd love some confirmation that this does or does not solve people's problems. The fix is to open the product.dat file in 'rb' mode. To do this, change line 420 of lib/python/App/Product.py to: f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') Again, let me know if this doesn't work for you. -Amos P.S. Here's a little FAQ to tide you over until you're happily building your own ;-) Q. What's the FAQ Tool any way? A. Find out for yourself at: http://www.zope.org/WebReview/ Q. What's a levered product? A. A Product created through the web by building it inside the Control Panel. See the Zope Manager's Guide for more information. From robin@alldunn.com Tue Mar 9 01:16:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Mon, 8 Mar 1999 17:16:09 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <011401be69ca$6c2d9730$fa01a8c0@rogue> Yep. Didn't work for me before (even for Levered Products I made myself) but now it does. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Amos Latteier To: zope@zope.org Date: Monday, March 08, 1999 4:11 PM Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) >Hi Guys: > >I think I've nailed the problem that was keeping people from using the FAQ >Tool and levered products in general under windows. > >I'd love some confirmation that this does or does not solve people's problems. > >The fix is to open the product.dat file in 'rb' mode. To do this, change >line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') > >Again, let me know if this doesn't work for you. > >-Amos > >P.S. Here's a little FAQ to tide you over until you're happily building >your own ;-) > >Q. What's the FAQ Tool any way? >A. Find out for yourself at: http://www.zope.org/WebReview/ > >Q. What's a levered product? >A. A Product created through the web by building it inside the Control >Panel. See the Zope Manager's Guide for more information. > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From bkc@murkworks.com Tue Mar 9 00:21:51 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 8 Mar 1999 20:21:51 -0400 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) In-Reply-To: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Message-ID: <199903090115.UAA08625@anvil.murkworks.com> On 8 Mar 99, at 16:40, Amos Latteier wrote: > The fix is to open the product.dat file in 'rb' mode. To do this, change > line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' > shshsh') > > Again, let me know if this doesn't work for you. This fix works for me (lline 407 in my Product.py) HOWEVER ... you must delete the FAQ product from the control panel, then restart ZServer for this fix to take effect. Apparently the old FAQ in bobo inhibits re-reading of the product.dat file. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From butchland@yahoo.com Tue Mar 9 02:23:55 1999 From: butchland@yahoo.com (Butch Landingin) Date: Mon, 8 Mar 1999 18:23:55 -0800 (PST) Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <19990309022355.23900.rocketmail@send205.yahoomail.com> In a previous posting, Tony McDonald wrote: >Hi, >I've d/led the ZopeDemos folder, installed it and started learning >more about Zope, but there's something happening that I'm not sure >about. > >The 'looping' example doesn't seem to iterate correctly over new >additions to the folder. The DTML is here: <... additional text deleted ...> There's a bug in the code, something I noticed when I was playing with the examples too. this is the fixed version: 001 002 003 004

    Objects of type

    005 006 007 008 009 010 011
    IdTitle
    012 013 014 About the bug and the fix: the bug was due to the statement looping over the current folder, not the subFolder which it should be. By moving the "with" statement to enclose it (see line 002), the statement VS. where column_name = Is the only advantage of using the first (sqltest) the type checking? I can't find any other obvious advantages. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tony.mcdonald@ncl.ac.uk Tue Mar 9 09:46:27 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 09:46:27 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <19990309022355.23900.rocketmail@send205.yahoomail.com> Message-ID: > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 Butch, Thanks for the reply - but this doesn't work completely either. I can add folders and delete them and the changes made show up in the listing, but adding documents (both documents and methods) has no effect. If I delete the *original* documents created by the installation, they show up as being gone, but even a copy-paste of the original documents doesn't get any new documents/methods etc. to show up. Am I doing a dumb newbie thing here? (I *do* have a folder called 'subFolder' btw). many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From dick.wall@mediamail.telinet.com Tue Mar 9 13:47:08 1999 From: dick.wall@mediamail.telinet.com (Dick Wall) Date: Tue, 09 Mar 1999 08:47:08 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <19990309084120.83ca0fd9.in@mediamail.telinet.com> Hi all, I have been using python for years, and zope for a few months now (lovely), ZServer for weeks, but Windows NT? Not long enough to understand the differences between services and ordinary process (give me a break, I am heavily from a Un*x background) :-). I know when I installed the binary version of Zope on the windows machine here it gave me a service in the services list which I can activate on startup. However, I am betting that this runs the ZopeHTTPServer, not the ZServer which I got as a separate download. I have everything working just lovely with the ZServer now, but it needs to be run as an NT service (and respond to start and stop signals, etc) at which point I freely admit my own inadequacies in this area. Now my question. How can I do what I need to do. Is it simply a case of redirecting a python 'shell' file used by the service to the start.py in the ZServer module, or is there more to it? If it is this simple, which python 'shell' file do I use? If it is not this simple, can someone send me basic instructions on how to do it (why is NT like this - give me an rc.local file any day - I know where I stand with that stuff). Thanks in advance. Dick From michel@digicool.com Tue Mar 9 15:00:46 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:00:46 -0500 Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <613145F79272D211914B0020AFF6401907BB25@GANDALF> > -----Original Message----- > From: Butch Landingin [mailto:butchland@yahoo.com] > Sent: Monday, March 08, 1999 9:24 PM > To: tony.mcdonald@ncl.ac.uk > Cc: Zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > In a previous posting, Tony McDonald wrote: > > >Hi, > >I've d/led the ZopeDemos folder, installed it and started learning > >more about Zope, but there's something happening that I'm not sure > >about. > > > >The 'looping' example doesn't seem to iterate correctly over new > >additions to the folder. The DTML is here: > <... additional text deleted ...> > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 > > About the bug and the fix: > the bug was due to the statement > looping over the current folder, not the subFolder which it should be. > By moving the "with" statement to enclose it (see line 002), the > statement

    Objects of type

    IdTitle
    > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony > McDonald > Sent: Tuesday, March 09, 1999 4:46 AM > To: Butch Landingin > Cc: zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > > > > There's a bug in the code, something I noticed when I was playing > > with the examples too. this is the fixed version: > > > > 001 > > 002 > > 003 > > 004

    Objects of type

    > > 005 > > 006 > > 007 > > 008 > > 009 > > 010 > > 011
    IdTitle
    > > 012 > > 013 > > 014 > > Butch, > Thanks for the reply - but this doesn't work completely either. I can > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. > > Am I doing a dumb newbie thing here? (I *do* have a folder called > 'subFolder' btw). > > many thanks > tone > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Tue Mar 9 15:03:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:03:55 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF6401907BB27@GANDALF> > -----Original Message----- > From: Dick Wall [mailto:dick.wall@mediamail.telinet.com] > Sent: Tuesday, March 09, 1999 8:47 AM > To: zope@zope.org > Subject: [Zope] ZServer as a windows NT service? > > > Hi all, > > > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). > Ahmen brother! Can I get a witness! -Michel > Thanks in advance. > > Dick > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From zopelist@regalint.com Tue Mar 9 15:01:52 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 10:01:52 -0500 Subject: [Zope] sqltest vx. var Message-ID: >Something I'm just curious about... > >where > >VS. > >where column_name = > >Is the only advantage of using the first (sqltest) the type checking? I >can't find any other obvious advantages. > I haven't played with it too much but I think that Zope handles undefined variables properly if you do the sqltest. ie. where and will work if name2 is not defined. It also handles the quoting and SQL syntax (such as doubling single quotes). Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tony.mcdonald@ncl.ac.uk Tue Mar 9 15:04:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 15:04:02 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <000401be6a3c$38a6cc70$ce63efa1@venice> References: Message-ID: > > Tony's problem was that Zope was correctly respecting the meta_type of the > 'old' Document objects included with the demo, but any new documents added > afresh were being created with the 'DTML Document' or 'DTML Method' > meta-types, which were falling through the objectValues 'sieve'. > Andy, Thank you *very* much for this - I thought I was losing my marbles over it! (Now all I need is links to External Files and I'm away! :) Thanks again, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From pavlos@gaaros.msrc.sunysb.edu Tue Mar 9 15:06:13 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 10:06:13 -0500 (EST) Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: Message-ID: On Tue, 9 Mar 1999, Tony McDonald wrote: > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. My guess is that you created your original database in Zope-1.9 and then moved everything into Zope-1.10. If that is the case then you need to replace with or something to that effect. Pavlos From Paul@digicool.com Tue Mar 9 15:21:40 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 9 Mar 1999 10:21:40 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF640190D9E77@GANDALF> Dick wrote: > startup. However, I am betting that this runs the > ZopeHTTPServer, not the Not quite. ZopeHTTPServer is a console app just like ZServer. The service is a PCGI-like thing that runs Zope as a service, listening for named pipe connections from something that is run as a CGI by the web server. > ZServer which I got as a separate download. I have everything > working just > lovely with the ZServer now, but it needs to be run as an NT > service (and > respond to start and stop signals, etc) at which point I > freely admit my > own inadequacies in this area. ZServer is still at alpha 2 so it's premature to focus on things like how it is packaged. I *think* we have all the issues figured out and the next release, perhaps this month, will be a beta1. Until we get into beta, we'll have to hope that someone in the community packages it up as a service. > Now my question. How can I do what I need to do. Is it simply > a case of > redirecting a python 'shell' file used by the service to the > start.py in > the ZServer module, or is there more to it? If it is this > simple, which > python 'shell' file do I use? If it is not this simple, can > someone send me > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). One issue off the top of my head is integration with the NT Event Log. --Paul From rob.page@digicool.com Tue Mar 9 16:05:08 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:05:08 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069142@GANDALF> > >Something I'm just curious about... > > > >where > > > >VS. > > > >where column_name = > > > >Is the only advantage of using the first (sqltest) the type > checking? I > >can't find any other obvious advantages. > > > > I haven't played with it too much but I think that Zope > handles undefined > variables properly if you do the sqltest. > > ie. > > where > and > > will work if name2 is not defined. > > It also handles the quoting and SQL syntax (such as doubling > single quotes). Absolutely... we ran into some situations where the SQL was so dynamic potential security problems arose. sqltest and sqlvar are designed to reduce that exposure. Additionally, we've found a very common rhythm where a search UI might expose all of a large percentage of the available data elements in the RDBMS. Using sqltest lets the user not specify one or more parameters without a lot of messy stuff in the SQL Method. --Rob From zopelist@regalint.com Tue Mar 9 16:06:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 11:06:27 -0500 Subject: [Zope] sqltest vx. var In-Reply-To: Message-ID: >>Something I'm just curious about... >> >>where >> >>VS. >> >>where column_name = >> >>Is the only advantage of using the first (sqltest) the type checking? I >>can't find any other obvious advantages. >> > >I haven't played with it too much but I think that Zope handles undefined >variables properly if you do the sqltest. > >ie. > >where >and > >will work if name2 is not defined. > >It also handles the quoting and SQL syntax (such as doubling single quotes). > I'll correct myself here. I was thinking of the tag. I don't know what does that or won't do... Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rob.page@digicool.com Tue Mar 9 16:23:11 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:23:11 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069145@GANDALF> > I'll correct myself here. I was thinking of the > tag. I > don't know what does that or > won't do... I meant to bring this up in my earlier post -- this tag too, is used to simplify what could be a terribly complicated SQL Method given an indeterminate number and list of search criteria. With this tag you can permit an arbitrary arguments to be supplied connected with your predetermined ANDs and ORs This one tag has, in the past, reduced may SQL Methods into one -- natural maintenance savings. --Rob From jeffrey@Digicool.com Tue Mar 9 16:27:49 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 09 Mar 1999 11:27:49 -0500 Subject: [Zope] sqltest vx. var Message-ID: <199903091627.IAA32000@zope.codeit.com> >From: Philip Aylesworth > I'll correct myself here. I was thinking of the tag. I > don't know what does that or > won't do... A _very very_ nice feature of #sqltest is the 'multiple' feature. For example: SELECT * FROM inbox WHERE If doc_status is passed in as a single value, like "foo", the SQL statement will be rendered as:: SELECT * FROM inbox WHERE doc_status='foo' BUT!!! (this is where it gets good), if doc_status is passed in as a list/sequence, like ["foo", "bar", "drop", "ship"], it will be rendered as:: SELECT * FROM inbox WHERE doc_status in ('foo','bar,'drop','ship') This is an _extremely_ handy feature of #sqltest. Prior to #sqltest, doing the above might be like: SELECT * FROM inbox WHERE doc_status in ( '' , ) (#else used to be used where #unless is used today). The above code also always required doc_status to be passed in as a sequence. #sqltest is smart enough (I believe - i've never been bitten by this) to detect the difference between strings and lists. I've used #sqltest with multiple many times with Acquisition where a folder property would define part of a SQL statement. That property in some cases would be a single value, in other places it would be a tokens or lines property. So, in otherwords, you get the type checking, the multiple, the optional, etc... with #sqltest that you don't get otherwise. About the only problem is that #sqltest currently doesn't do not-equals or "not in (...)". .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From A.K.Heath@shu.ac.uk Tue Mar 9 17:05:39 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Tue, 9 Mar 1999 17:05:39 GMT Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <199903091705.RAA07667@teak.shu.ac.uk> I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? Andy btw: Zope looks really good to me (when I can get over these glitches). --------------------------- Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () From zopelist@regalint.com Tue Mar 9 17:15:29 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 12:15:29 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I found that this problem came up when I used MEDIUMINT in MySQL. I changed my database to INT and it worked fine. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From michel@digicool.com Tue Mar 9 17:29:26 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 12:29:26 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB2E@GANDALF> > -----Original Message----- > From: Andy Heath [mailto:A.K.Heath@shu.ac.uk] > Sent: Tuesday, March 09, 1999 12:06 PM > To: zope@zope.org > Subject: [Zope] tree doesn't work 4me linux amd win32 > > > I'm a zope newbie. > > I just installed on a windows 95 box and on a linux 2.0.something > but I can't get anything with tree working (other stuff seems ok). > > Hadars' second sample app doesn't work for me (the tree part > produces no output). > > Even the minimal > > > > > doesn't produce output (tried this with the second Habar example after > creating the "sub-folders"). > > I get the same behaviour on windows as linux. > > I must be doing something wrong. Clues please ? > I bet your using a DTML Document. Try using a DTML Method. The reason why the tree tag renders nothing for the DTML Document is because DTML Documents are not containers of other objects, they are objects to hold DTML content. DTML Methods are (and this is the suble thing) *methods* of the Folder object that contains them. They are not 'objects' in the same sense of the term used for DTML Documents (I can hear Jim saying now "*everything's* an object"). Because Folder objects *are* containers, the #tree tag used in a Folder's DTML Method will render the contents of that Folder. Hadar's example is a little outdated, it is based on 1.9, in which DTML Documents didn't exist, and all Documents were DTML methods. -Michel > Andy > btw: Zope looks really good to me (when I can get over these > glitches). > > --------------------------- > Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o > Sheffield Hallam University. Phone: +44 114 2534904 /\ > Sheffield, England Fax: +44 114 2533161 () () > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From robin@alldunn.com Tue Mar 9 17:31:35 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 9 Mar 1999 09:31:35 -0800 Subject: [Zope] ZServer as a windows NT service? Message-ID: <006501be6a52$b0bbe900$fa01a8c0@rogue> I currently have ZServer running as a service on two machines using the srvany.exe tool from the NT resource kit or from MSDN. Essentially srvany is the actual service and then you tell it via registry settings what other program you want to run. It works good enough for me for the time being. The only problem is that the service stop message does a hard kill on the ZServer process so any last second updates to the Zope DB might be fragmented if it wasn't finished writing, but with the way the DB works at least the DB will still be usable. I am out of the office right now so I can't provide step by step instructions right now. There is a .doc file that comes with srvany.exe that I followed. I specified that Python was the executeable to be run by srvany, the ZServer directory is to be the CWD, and that the command-line should be start.py. Worked first try. Of course the right thing to do would be to integrate native service capabilities into ZServer itself via the win32api packages. That way ZServer could shhutdown gracefully and could send meaningful things to the event log. But srvany is good enough for alpha level, non-production servers. And I havn't had any problems to speak of dealing with running it as a service. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Dick Wall To: zope@zope.org Date: Tuesday, March 09, 1999 5:09 AM Subject: [Zope] ZServer as a windows NT service? >Hi all, > >I have been using python for years, and zope for a few months now (lovely), >ZServer for weeks, but Windows NT? Not long enough to understand the >differences between services and ordinary process (give me a break, I am >heavily from a Un*x background) :-). > >I know when I installed the binary version of Zope on the windows machine >here it gave me a service in the services list which I can activate on >startup. However, I am betting that this runs the ZopeHTTPServer, not the >ZServer which I got as a separate download. I have everything working just >lovely with the ZServer now, but it needs to be run as an NT service (and >respond to start and stop signals, etc) at which point I freely admit my >own inadequacies in this area. > >Now my question. How can I do what I need to do. Is it simply a case of >redirecting a python 'shell' file used by the service to the start.py in >the ZServer module, or is there more to it? If it is this simple, which >python 'shell' file do I use? If it is not this simple, can someone send me >basic instructions on how to do it (why is NT like this - give me an >rc.local file any day - I know where I stand with that stuff). > >Thanks in advance. > >Dick > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From William_Whitehead@byu.edu Tue Mar 9 17:34:19 1999 From: William_Whitehead@byu.edu (William Whitehead) Date: Tue, 09 Mar 1999 10:34:19 -0700 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <3.0.5.32.19990309103419.00a35920@email.byu.edu> I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I was able to compile and add the ZPyGreSQL Product to my Zope installation. I want to create a Database connection. When I go to create a new one, it asks for the Id, Title, and Database Connection String. What do I put into the Database Connection String? I tried the database I want to use, but it gives Invalid connection String: baseball Is it a rights issue with PostgreSQL or something else? What is it expecting the database connection string field anyway? Thanks for your help! Bill - ====================================================================== William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | Library Information Systems | Email: | 2840 HBLL | mailto:william_whitehead@byu.edu | Provo, UT 84602 | Home Page | | http://www.lib.byu.edu/~wbw | ====================================================================== From ShawH@STHS.org Tue Mar 9 18:24:12 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 9 Mar 1999 12:24:12 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: I have a nifty system whereby each individual I add to a database automatically gets a personal directory and password. One of my users has come to me with a problem. He can add images to his directory, but cannot subsequently edit the image (i.e. open the image's manage screen) as it complains about lack of permissions. The security role he has contains all the image related options I see. He can delete it, btw. This is not an immediate issue, but I do wonder why the permissions don't seem to be working in a sensible manner. Why should he be able to add images, but not manage them? Are there extra 'image manage' permissions? If so, where do I find them? From M.Faassen@vet.uu.nl Tue Mar 9 18:33:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 09 Mar 1999 19:33:44 +0100 Subject: [Zope] FAQ 0.2 - About this FAQ Message-ID: <36E56988.CEF76199@pop.vet.uu.nl> Zope FAQ 0.2 - About this FAQ and the Zope Documention Project * What is this FAQ? This FAQ is a project of the Zope Documentation Project, and aims to answer any (or at least lost) questions you might have about Zope and how to use it. * What is the Zope Documentation Project? The Zope Documentation Project (ZDP) is a community project of Zope users that aims to create documentation for Zope. The first goal of the ZDP is the creation and maintenance of an extensive Zope FAQ, later on other documentation will follow. We welcome everybody to contribute; for instance by sending in questions and answers for the FAQ. * Where is the rest of this FAQ? The Zope FAQ has been split into separate sections. If you are reading this on the ZDP mailing list, you should see the other documents posted as well. If you are reading this on zope@zope.org or zope-dev@zope.org, you will only see this message. The Zope FAQ is under development. It is probably already useful, but because I don't want to spam everybody you will have to look at the ZDP list to see the rest of the FAQ. Everyone is very welcome to join the ZDP list. You can also wait until the ZDP has its web infrastructure going and the FAQ is published on the web. This will hopefully be very soon; we're working on it. * How do I contribute? The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. * How do I join the ZDP mailing list? You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Thanks in advance for your contributions! * Are there other Zope-related FAQs? Yes, there is the "Zope Questions and Answers" at:: http://www.zope.org/Information/QA/ This is maintained by Digital Creations; currently it is the best place to look if you are brand new to Zope. That said, Paul Everitt of Digital Creations has kindly contributed the Zope Questions and Answers to the ZDP (or vice versa; the ZDP is contributing to the Q&A). The ZDP plans to merge the two FAQs shortly. * What is Structured Text and what does it have to do with this FAQ? The FAQ is (currently) written in Structured Text, so you may very well reading the FAQ in Structured Text format (the double colons and the indented paragraph structure give it away). If you are just reading this FAQ you shouldn't worry about it. If you plan to contribute to the ZDP we'd prefer it if your contributions were written in Structured Text, however. For more information see the Structured Text section of this FAQ. * What are these FIXME comments I see scattered through the FAQ? If you are reading the ZDP mailing list or its archives, then it is the FAQ's editor (or possibly a contributor) who is not entirely sure about some details on Zope, and is asking people on the list to help figure it out. If you are reading this FAQ somewhere else, then oops, they don't belong there. Please send a message to the zdp@zope.org list telling us about it, and thanks! * What other sections does this FAQ have? We currently have sections on: o DTML o Zope Administration o Structured Text o External Methods o Builtin Products o Product Development From Jose.Lacal@icn.siemens.com Tue Mar 9 19:27:23 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 14:27:23 -0500 Subject: [Zope] Zope for CD Index? Message-ID: <8525672F.006A78AE.00@li01.lm.ssc.siemens.com> Folks: http://www.freeamp.org/cdindex I don't know if anybody in the community would like to approach these folks and show them how Zope can make their project so much easier to manage / control. "The CD Index project (this is a temporary name -- we should find a better name soon) is designed to replace the badly designed and even worse administered CDDB project." Just a PR hint. Regards. - - - - - I do NOT speak for Siemens. - - - - - "Everything we lack, we make-up in denial." Jose C. Lacal, Senior Engineer, Data Services Siemens I & CN - Boca Raton, FL USA jose.lacal@icn.siemens.com +01 (561) 955-3081 From Brian@digicool.com Tue Mar 9 19:44:10 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 9 Mar 1999 14:44:10 -0500 Subject: [Zope] Images and Zope1.10.2 Message-ID: <613145F79272D211914B0020AFF64019FD80@GANDALF> > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mike@compar.com Tue Mar 9 19:37:04 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 9 Mar 1999 14:37:04 -0500 (EST) Subject: [Zope] ZPyGreSQL Database Connection Problem In-Reply-To: <3.0.5.32.19990309103419.00a35920@email.byu.edu> Message-ID: From lib/python/Products/ZPyGreSQLDA/README.txt: The connection string in Zope should be: baseball@localhost:5432 your_user_name Mike. On Tue, 9 Mar 1999, William Whitehead wrote: > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > was able to compile and add the ZPyGreSQL Product to my Zope installation. > I want to create a Database connection. When I go to create a new one, it > asks for the Id, Title, and Database Connection String. What do I put into > the Database Connection String? I tried the database I want to use, but it > gives > > Invalid connection String: baseball > > Is it a rights issue with PostgreSQL or something else? What is it > expecting the database connection string field anyway? Thanks for your help! > > Bill > > > - > ====================================================================== > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > Library Information Systems | Email: | > 2840 HBLL | mailto:william_whitehead@byu.edu | > Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | > ====================================================================== > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From prudek@sol.cz Tue Mar 9 20:33:13 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 09 Mar 1999 21:33:13 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E58589.2A99E93C@sol.cz> I have a problem with authorization under Apache 1.3.3 I can go to introductory screen but I can't get to ./manage screen. I get Athorization failed, and when I pres cancel I get the traceback below. I have put the lines (with modification reflecting my placement of Zope.cgi) from doc/WEBSERVER.txt at the top of my srm.conf file. I wasn't sure where to put it, since according to Apache documentation the directive is not inherited. Later I copied those lines to Virtual WWW section of www.sol.cz but to no avail. What does the line "Zope configuration maps /Zope/ to the Zope.cgi cgi script" mean? I thought that all I need to do is put Zope.cgi in my cgi-bin, put the above lines into srm.conf, and restart Apache... You can try it on http://www.sol.cz/cgi-bin/Zope.cgi. name is superuser, password is 123 # This is the traceback: You are not authorized to access this resource. No Authorization header found. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /manage) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) -- Milos Prudek From rocon@pivot.net Tue Mar 9 20:44:23 1999 From: rocon@pivot.net (Robert OConnor) Date: Tue, 9 Mar 1999 15:44:23 -0500 Subject: [Zope] Root Folders and Names {Manager's Guide Update} Message-ID: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> * How do I "name" the *blank* root folder? This is the same folder that is named "Plutonia" in the Zope manager's guide. Maybe the root folder has no name so that if I go to http://www.bob.com/ the "Folder at / " will present index_html to requesting browsers. If I did name it "plutonia" would it be accessible both as http://www.bob.com/ and as http://www.bob.com/plutonia ? So maybe I don't need to "name" this root folder. If so, then the Zope manager's guide needs to be clearer. In the fourth paragraph on page 12 it says: "...presuming that your ZOPE is installed at http://your.place.com/Objects and it's management screen is at http://your.place.com/Objects/manage" This does not follow through the document. There is no folder named "Objects" Maybe the document should say: http://plutonia.com/ and it's management screen is at http://plutonia.com/manage" And to manage one of the three departments used in the examples, say for example "News" then: http://plutonia.com/news/manage" Other notes on this issue: Timothy J. Grant asked: "...My problem is that my Root folder in Zope has no name, and it appears that FSIMPORT requires a folder name for it to work." No response was found to this post on the ZOPE list. -bobo connor From luke@geeklife.com Tue Mar 9 21:02:05 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 9 Mar 1999 13:02:05 -0800 Subject: [Zope] NT Server Question Message-ID: <199903092102.NAA24259@hipmail1.gohip.com> I've gotten Zope up and running on my IIS/NT server. Right now I can access it through www.myserver.com/cgi-bin/zope.exe. Is there any tricky way to get it to run as www.myserver.com/zope? including www.myserver.com/zope/folder/object? Can you do that with Apache on NT? I would use ZServer but I need to also be able to run Perl CGI scripts. Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From amos@aracnet.com Tue Mar 9 21:53:22 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 13:53:22 -0800 Subject: [Zope] Root Folders and Names {Manager's Guide Update} In-Reply-To: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> Message-ID: <3.0.5.32.19990309135322.010e9d40@mail.aracnet.com> At 03:44 PM 3/9/99 -0500, Robert OConnor wrote: >* How do I "name" the *blank* root folder? Right now you can't. And you don't need to. The "name" of the root folder is simply the SCRIPT_NAME your webserver uses to access Zope. By default in ZServer and ZopeHTTPServer this is an empty string, since they both normally server one published module, though they both can server multiple published modules. So, you can give your root folder a title, but you can't use Zope to change how your web server calls Zope. Do this with your webserver. In the case of ZServer, check out the zope_handler.py, it has options to set the SCRIPT_NAME. ZopeHTTPServer also has options to set the SCRIPT_NAME with command line arguments. >So maybe I don't need to "name" this root >folder. Right. >If so, then the Zope manager's guide needs >to be clearer. Perhaps the docs should be updated. The manager's guide probably assumes that you're using PCGI, but it shouldn't make this assumption. Hope this helps. -Amos From jeffbauer@bigfoot.com Tue Mar 9 23:05:02 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Tue, 09 Mar 1999 17:05:02 -0600 Subject: [Zope] NT Server Question References: <199903092102.NAA24259@hipmail1.gohip.com> Message-ID: <36E5A91E.B5E9D9FE@rubic.com> Luke Duff wrote: > I've gotten Zope up and running on my IIS/NT server. > Can you do that with Apache on NT? Yes, documented here: http://starship.python.net/crew/jbauer/apachenotes/ Best regards, Jeff Bauer Rubicon, Inc. From jae@kavi.com Wed Mar 10 00:56:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 9 Mar 1999 16:56:07 -0800 (PST) Subject: [Zope] ZSQL methods in parent subfolder Message-ID: Is this behaviour a bug? I have all my ZSQL methods collected together in a folder. If I call these from a sibling folder[1] without any arguments, ie. I get the below error, if I call them with specific arguments, ie. I get no errors. (comp_id was in REQUEST in both cases). [1] by sibling folder I mean something like the following arrangement... /sql/company (where the sql method is stored) /lists/company_list (where the call is made) Here's the error: Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /filter/contacts/index_html) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: index_html) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_In.py, line 656, in renderwob (Object: sql.companies) File lib/python/Shared/DC/ZRDB/DA.py, line 420, in __getitem__ (Object: CopySource) File lib/python/Shared/DC/ZRDB/Aqueduct.py, line 332, in __getitem__ KeyError: (see above) Looking into it, line 332 in Aqueduct.py is a simple key lookup... def __getitem__(self, key): return self._data[key] It would seem that an argument is getting passed in by default when the sql in put in a parent's subfolder. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Wed Mar 10 01:09:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Tue, 9 Mar 1999 17:09:12 -0800 (PST) Subject: [Zope] Q: Setting/Creating variables Message-ID: I have been playing around with Zope/ZPublisher/DocumentTemplate and have been extremely pleased with the ease of development, as well as the power of the Python language. Sometimes I have found myself wanting to save the results of an expression in my DTML code, for use later in the same page (or even an embedded DTML object). The only thing I have used that is similar to DTML is ColdFusion, which has a CFSET tag, ie: or In reading the docs, it looked like I might be able to do something along the lines of but this didn't seem to work, and it's not very elegant either. Am I missing something? None of the howtos or tutorials seem to cover this. A / would be really spiffy. =) Please make sure you CC me if you respond to this message, as I had to unsubscribe due to the overwhelming amount of traffic. Thanks! -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From webmaster@mtear.com Wed Mar 10 01:16:29 1999 From: webmaster@mtear.com (webmaster@mtear.com) Date: Tue, 9 Mar 1999 17:16:29 -0800 Subject: [Zope] tree doesn't work 4me linux amd win32 In-Reply-To: <199903092000.MAA08338@zope.codeit.com> Message-ID: Andy wrote> Subject: [Zope] tree doesn't work 4me linux amd win32 I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? I had the same problem, but only with Zope 1.10.2. I noticed that DTML documents (the default to be created) won't work with the tree tag. If you create a DTML Method (like the old DTML from Zope 1.9) then they work as expected. I don't have a clue as to why this works like this. Maybe its the proerties of the DTML Documents that are acting folderish and tree doesn't know what to do? Hope that helps, Jason Spisak webmaster@mtear.com Jason Spisak Webamster Masterson, Tate & Associates 6151 West Century Boulevard #928 Los Angeles, CA 90045 http://www.mtear.com From TomJenkins@zentuit.com Wed Mar 10 01:17:48 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 9 Mar 1999 20:17:48 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <199903100120.UAA13261@mail.digiweb.com> Hello folks, Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does Medusa/ZopeHTTPServer support SSL? Thanks! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From luciano@magnet.com.br Wed Mar 10 01:52:31 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Tue, 09 Mar 1999 22:52:31 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: Message-ID: <4.1.19990309224955.009de8f0@10.0.0.1> We have been unable to access properties of the new DTML Document objects in the same way we used to access properties of Folders. I don't know whether we are doing something wrong or we found an inconsistency in the new 1.10 Zope API. Here is a very simplified test case illustrating the issue. I have a folder with these contents: folder1 [Folder] - broken_html [DTML Document] - index_html [DTML Document] - sub-document (The Grand Sub-Document) [DTML Document] - sub-folder (The Grand Sub-Folder) [Folder] The source of index_html (which works) is:

    Title of sub-item:

    Author of sub-item:

    This works as expected. The properties title and author of the sub-folder are retrieved. The source of broken_html is exactly the same, except for the sub-document reference:

    Title of sub-item:

    Author of sub-item:

    Viewing this document-method I get a "Zope Unavailable" message with this traceback: So, how do I access properties of sub-documents from a sub-document in the same folder? []s Luciano Ramalho -- Not all who wander are lost. [J.R.R.Tolkien] From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 02:13:50 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 21:13:50 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: On Tue, 9 Mar 1999, Luciano Ramalho wrote: > folder1 [Folder] > - broken_html [DTML Document] > - index_html [DTML Document] > - sub-document (The Grand Sub-Document) [DTML Document] > - sub-folder (The Grand Sub-Folder) [Folder] > > So, how do I access properties of sub-documents from a sub-document in the > same folder? > One way is to use DTML Methods instead of DTML Documents. For more info visit: http://www.gaaros.com:9673/FAQ/ The issue you raise is currently the first entry in the FAQ Pavlos From petrilli@amber.org Wed Mar 10 02:35:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 9 Mar 1999 21:35:04 -0500 Subject: [Zope] ZopeHTTPserver In-Reply-To: <199903100120.UAA13261@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 09, 1999 at 08:17:48PM -0500 References: <199903100120.UAA13261@mail.digiweb.com> Message-ID: <19990309213504.C26240@amber.org> On Tue, Mar 09, 1999 at 08:17:48PM -0500, Tom Jenkins wrote: > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? Nope, ZHS (for short) is derived from the example CGIHTTPServer.py that ships with Python---it's heavily modified though. ZServer is what is derived from Medusa and is currently in alpha (though pretty stable for me). As for SSL, not currently, and I'm not sure what's going to happen with this. You can use Apache+SSL right now for this. I've had some thoughts about it, but I'm not sure how SSL will impact an async-socket based system... the setup of new SSL connections is kind of heavy. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Jose.Lacal@icn.siemens.com Wed Mar 10 03:02:14 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 22:02:14 -0500 Subject: [Zope] Mailhost problems. Message-ID: <85256730.00104603.00@li01.lm.ssc.siemens.com> Folks: I am still stuck with a sendmail / Mailhost problem. Everything works fine except mailing from a DTML document via sendmail. I am using: Red Hat 5.2 Zope 1.10.2 - I created a username of "zope_u" and a group "zope" - I did run the installation script with a command line like: ./install -sAdmin:MyPassword -u zope_u -g zope - I created the Feedback and SendFeedback forms as per the manuals. - I added the user "zope_u" to the mail group. - I modified user zope_u's .bash_profile file to include the path to sendmail in /usr/sbin - If I log-in to the Linux server as zope_u, I _am_ able to call sendmail and to send mail outside of the server. Anything else I missed, folks? Regards. From luciano@magnet.com.br Wed Mar 10 03:19:24 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 00:19:24 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: <4.1.19990310001056.0127a5c0@10.0.0.1> At 21:13 09/03/99 -0500, Pavlos Christoforou wrote: >On Tue, 9 Mar 1999, Luciano Ramalho wrote: >> So, how do I access properties of sub-documents from >> a sub-document in the same folder? >> >One way is to use DTML Methods instead of DTML Documents. I understand the difference between DTML Methods and DTML Documents. The very reason I chose to do it with DTML Documents was to be able to store some special fields, such as 'author' in my example, along with the document. I cannot do that with DTML Methods, as they do not have properties. In Zope 1.0.9 I used folders but I was running into problems with relative links. It seemed natural to switch from my previous folders to the new DTML Documents. I still do not know to reference the properties of a DTML Document 'A' from within a document or method 'B' in located in the same folder as 'A'. Thanks for any help. []s Luciano From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 03:31:59 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 22:31:59 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: On Wed, 10 Mar 1999, Luciano Ramalho wrote: > > The very reason I chose to do it with DTML Documents was to be able to > store some special fields, such as 'author' in my example, along with the > document. I cannot do that with DTML Methods, as they do not have properties. > > In Zope 1.0.9 I used folders but I was running into problems with relative > links. It seemed natural to switch from my previous folders to the new DTML > Documents. You are right. I was using folders too for the same reason. > > I still do not know to reference the properties of a DTML Document 'A' from > within a document or method 'B' in located in the same folder as 'A'. You can use the PARENTS variable. so if you have a folder which contains two DTML Documents A and B then you can access B's properties from A by: PARENTS[1] will return the folder or containing object one level up and PARENTS[-1] will return the top most Folder. Pavlos From luciano@magnet.com.br Wed Mar 10 04:45:22 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 01:45:22 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <4.1.19990310013702.0129a4d0@10.0.0.1> At 22:31 09/03/99 -0500, Pavlos Christoforou wrote: >You can use the PARENTS variable. > >so if you have a folder which contains two DTML Documents A and B then >you can access B's properties from A by: > >PARENTS[1] will return the folder or containing object one level up and >PARENTS[-1] will return the top most Folder. Thanks for your help, Pavlos. I found another way. Instead of writing: I wrote this, and it worked fine: I found a way, but I don't understand why the first syntax worked fine with Folders and fails with DTML Documents. If anyone would like to clarify the semantic difference between _['sub-document'] and _.getitem('sub-document'), I would be even happier. By the way, Pavlo's site http://www.gaaros.com:9673/ is useful! []s Luciano From amos@aracnet.com Wed Mar 10 06:00:04 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 22:00:04 -0800 Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310013702.0129a4d0@10.0.0.1> References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <3.0.5.32.19990309220004.01152aa0@mail.aracnet.com> At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > > >I wrote this, and it worked fine: > > > >I found a way, but I don't understand why the first syntax worked fine with >Folders and fails with DTML Documents. If anyone would like to clarify the >semantic difference between _['sub-document'] and >_.getitem('sub-document'), I would be even happier. The answer is in both the ZDP's FAQ and the DTML Manager's Guide. _['foo'] "renders" foo according to DTML rules. This process mostly consists of calling DTML and other callable objects. _.getitem('foo') simply returns foo as found in the DTML namespace. The reason you were having problems is that _['sub-document'] renders the document to a string. Naturally strings don't have properties. Hence the error you got from Zope, "'string' object has no attribute 'title'". Make sense? -Amos From mwm@phone.net Wed Mar 10 07:58:25 1999 From: mwm@phone.net (Mike Meyer) Date: Tue, 9 Mar 1999 23:58:25 -0800 (PST) Subject: [Zope] Another "no such file" failure... Message-ID: I'm trying to get zope working to study it, but keep stumbling over the "(102) failure during connect" error - with the "No such file or directory" addendum. The underlying OS is FreeBSD 3.1. I want to run it on an Apache web server (at least for now), with the server doing the authentication. That all appears to be working properly - after all, I'm getting errors from pcgi, now, right? The var directory is writable by nobody. In fact, the entire source tree is owned by nobody, which is the user that the Apache httpd is running as. However, I get log file entries from pcgi, even after deleting the pcgi.log file. I initially tried copying the Zope.cgi file to cgi-bin, but noticed that some (unspecified) setting in Zope.cgi might need to change because of that, so I added a second scriptalias to the Apache httpd.conf pointing at the source directory, set the protections on it, and tried to load . No change - the log file records the same error message. The pcgifile.py test reports error attempting: 'from cgi_module_publisher import publish_module' This doesn't appear to exist in the distribution - and I recalled something about that being a holdover from bobo, so I removed that test from the script, and ran it again. The modified version runs cleans. Was I wrong about cgi_module_publisher? Should it be finding that? If not, then what's the next thing to look at? FWIW, here's the entry from httpd.conf section for Zope: SriptAlias /Zope-bin/ "/home/mwm/external-src/Zope-1.10.2-src/" AllowOverride None Options None FollowSymLinks Auth_PGhost sql Auth_PGport 5432 Auth_PGdatabase web Auth_PGpwd_table users Auth_PGuid_field name Auth_PGpwd_field password Auth_PG_encrypted off AuthName "Zope" AuthType basic require valid-user And here's Zope.cgi: #!/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/home/mwm/external-src/Zope-1.10.2-src/lib/python/Main.py PCGI_PUBLISHER=/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_SOCKET_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.soc PCGI_PID_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.pid PCGI_ERROR_LOG=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/home/mwm/external-src/Zope-1.10.2-src Thanx, Message-ID: Hi! On Tue, 9 Mar 1999, Mike Pelletier wrote: > The connection string in Zope should be: > baseball@localhost:5432 your_user_name You don't need hostname and port part, so the connection string can be just "baseball user_name". (BTW, without host:port, libpq will connect to postgres using UNIX sockets, not TCP/IP. I think it is much better - for speed and security) > Mike. > > On Tue, 9 Mar 1999, William Whitehead wrote: > > > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > > was able to compile and add the ZPyGreSQL Product to my Zope installation. > > I want to create a Database connection. When I go to create a new one, it > > asks for the Id, Title, and Database Connection String. What do I put into > > the Database Connection String? I tried the database I want to use, but it > > gives > > > > Invalid connection String: baseball > > > > Is it a rights issue with PostgreSQL or something else? What is it > > expecting the database connection string field anyway? Thanks for your help! > > > > Bill > > > > > > - > > ====================================================================== > > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > > Library Information Systems | Email: | > > 2840 HBLL | mailto:william_whitehead@byu.edu | > > Provo, UT 84602 | Home Page | > > | http://www.lib.byu.edu/~wbw | > > ====================================================================== > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > > > -- > --- | Mike Pelletier Work: 519-746-1607 > /opeware! | Software Developer Home: 519-725-7710 > --- | mike@zopeware.com Fax: 519-746-7566 > http://www.zopeware.com | Zopeware is not endorsed by Digital Creations > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From prudek@sol.cz Wed Mar 10 08:46:10 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 09:46:10 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E63152.C315225C@sol.cz> Hi, I cannot go to management screen of Zope, probably due to some problem with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care to look at it. Thanks! -- Milos Prudek From anthony@interlink.com.au Wed Mar 10 09:07:59 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Wed, 10 Mar 1999 20:07:59 +1100 Subject: [Zope] streaming data through zope from an external method. Message-ID: <199903100907.UAA01717@mbuna.arbhome.com.au> I've got an external method that is generating a (possibly quite large) audio file and sending it back. Right now, I'm generating this in memory in a big string, then returning it to zope. I'd _like_ to be able to just have the external method send the data straight through (maybe in chunks) without having to read it all into memory. Is this possible with zope at all? Anthony From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 09:28:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 09:28:19 -0000 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <000901be6ad8$55ac54b0$5c773fc1@media1> Try something like: dbname@machinename user password the password is optional HTH Phil ----- Original Message ----- From: William Whitehead To: Sent: Tuesday, March 09, 1999 5:34 PM Subject: [Zope] ZPyGreSQL Database Connection Problem >I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I >was able to compile and add the ZPyGreSQL Product to my Zope installation. >I want to create a Database connection. When I go to create a new one, it >asks for the Id, Title, and Database Connection String. What do I put into >the Database Connection String? I tried the database I want to use, but it >gives > >Invalid connection String: baseball > >Is it a rights issue with PostgreSQL or something else? What is it >expecting the database connection string field anyway? Thanks for your help! > >Bill > > >- >====================================================================== >William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | >Library Information Systems | Email: | >2840 HBLL | mailto:william_whitehead@byu.edu | >Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | >====================================================================== > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From mj@antraciet.nl Wed Mar 10 09:30:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:30:41 +0100 Subject: [Zope] ZSQL methods in parent subfolder In-Reply-To: Message-ID: <4.1.19990310102902.00be2630@lisp.atmm.nl> At 01:56 10/03/99 , John Eikenberry wrote: >Is this behaviour a bug? > >I have all my ZSQL methods collected together in a folder. If I call these >from a sibling folder[1] without any arguments, ie. > > > >I get the below error, if I call them with specific arguments, ie. > > > >I get no errors. (comp_id was in REQUEST in both cases). Because you are calling "sql.company" (in quotes), it is assumed to be an expression, and your expression is referencing an attribute, not a method. Try using the following: "sql.company()", or sql.company (without quotes). Note: I didn't test either method. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 10 09:37:57 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:37:57 +0100 Subject: [Zope] Mailhost problems. In-Reply-To: <85256730.00104603.00@li01.lm.ssc.siemens.com> Message-ID: <4.1.19990310103401.00bd6560@lisp.atmm.nl> At 04:02 10/03/99 , Jose.Lacal@icn.siemens.com wrote: > > >Folks: > >I am still stuck with a sendmail / Mailhost problem. Everything works fine >except mailing from a DTML document via sendmail. > > > [SNIP] > >I am using: >Red Hat 5.2 >Zope 1.10.2 > >- I created a username of "zope_u" and a group "zope" > >- I did run the installation script with a command line like: > ./install -sAdmin:MyPassword -u zope_u -g zope > >- I created the Feedback and SendFeedback forms as per the manuals. > >- I added the user "zope_u" to the mail group. > >- I modified user zope_u's .bash_profile file to include the path to >sendmail in /usr/sbin > >- If I log-in to the Linux server as zope_u, I _am_ able to call sendmail >and to send mail outside of the server. > >Anything else I missed, folks? MailHost doesn't use sendmail, but rather opens a socket to the specified sendmail host and uses the SMTP protocol to send the messages. This is somehow prohibited. It looks like there is maybe no SMTP server listening on the specified address and port, or your machine is not allowed to connect. You could try and do a manual telnet to the address and port from the zope_u account and see what happens. Make sure you also go through the motions, like HELO , and such. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Wed Mar 10 10:00:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 10 Mar 1999 10:00:01 +0000 Subject: [Zope] sqltest vx. var In-Reply-To: <199903091627.IAA32000@zope.codeit.com> Message-ID: > > So, in otherwords, you get the type checking, the multiple, the optional, > etc... with #sqltest that you don't get otherwise. About the only problem > is that #sqltest currently doesn't do not-equals or "not in (...)". > .jPS | jeffrey@digicool.com Can #sqltest handle the 'wildcard' situation in MySQL (and probably other DBMSs too) select * from tbl where tbl_val like '%nib%' is a different SQL query from select * from tbl where tbl_val = 'niblet' my attempt... select * from tbl where ta Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Paul@digicool.com Wed Mar 10 11:30:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 10 Mar 1999 06:30:28 -0500 Subject: [Zope] streaming data through zope from an external method. Message-ID: <613145F79272D211914B0020AFF6401907BB34@GANDALF> Anthony wrote: > I've got an external method that is generating a (possibly > quite large) > audio file and sending it back. Right now, I'm generating > this in memory > in a big string, then returning it to zope. I'd _like_ to be > able to just > have the external method send the data straight through > (maybe in chunks) > without having to read it all into memory. Is this possible with zope > at all? I think the first problem will be finding a publisher that streams. PCGI buffers all I/O, perhaps FastCGI doesn't. Even if you didn't, sending it through Zope in chunks would avoid getting Zope's memory footprint up there. One way would be to have the ExternalMethod return a sequence, then do something like: Of course the above might be completely wrong, but you get the drift :^) --Paul From ShawH@STHS.org Wed Mar 10 12:40:43 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 06:40:43 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: It does ! That's why I can't figure out what's wrong. I made certain he had every permission that seemed image related, and he still can't access it. ---------- From: Brian Lloyd [SMTP:Brian@digicool.com] Sent: Tuesday, March 09, 1999 1:44 PM To: 'Shaw, Howard'; 'Zope@zope.org' Subject: RE: [Zope] Images and Zope1.10.2 > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:29:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:29:07 -0000 Subject: [Zope] Image button values Message-ID: <008501be6b02$5b05b580$5c773fc1@media1> This is a multi-part message in MIME format. ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I'm using some image buttons and am having trouble getting the return = values for them. I have a button called answerbtn and the return values would be = 'answerbtn.x' and 'answerbtn.y', I need to check one of these values to = check whether this button was pressed. I have tried _['answerbtn.x'] but I get a traceback from Zope. Any Ideas? TIA Phil phil@media-1.ml.uwcm.ac.uk ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all,
     
    I'm using some image buttons and am = having trouble=20 getting the return values for them.
     
    I have a button called answerbtn and = the return=20 values would be 'answerbtn.x' and 'answerbtn.y', I need to check one of = these=20 values to check whether this button was pressed.
     
    I have tried _['answerbtn.x'] but I get = a traceback=20 from Zope.
     
    Any Ideas?
     
    TIA
     
    Phil
    phil@media-1.ml.uwcm.ac.uk=
     
    ------=_NextPart_000_0082_01BE6B02.5AE423C0-- From jeffbauer@bigfoot.com Wed Mar 10 14:43:58 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Wed, 10 Mar 1999 08:43:58 -0600 Subject: [Zope] Another "no such file" failure... Message-ID: <36E6852E.1C76031D@rubic.com> Mike Meyer wrote: > I'm trying to get zope working to study it, but keep stumbling over > the "(102) failure during connect" error - with the "No such file or > directory" addendum. > > The underlying OS is FreeBSD 3.1. I want to run it on an Apache web > server (at least for now), with the server doing the > authentication. That all appears to be working properly - after all, > I'm getting errors from pcgi, now, right? Correct. > The pcgifile.py test reports > > error attempting: 'from cgi_module_publisher import publish_module' > > This doesn't appear to exist in the distribution - and I recalled > something about that being a holdover from bobo, so I removed that > test from the script, and ran it again. The modified version runs > cleans. > > Was I wrong about cgi_module_publisher? Should it be finding that? If > not, then what's the next thing to look at? Yes, it's a holdover from Bobo days (which some people are still using for existing apps) but you can ignore that particular error. Contact me offline and we'll try to get this resolved. Best regards, Jeff Bauer Rubicon, Inc. From mj@antraciet.nl Wed Mar 10 14:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 15:47:52 +0100 Subject: [Zope] Image button values In-Reply-To: <008501be6b02$5b05b580$5c773fc1@media1> Message-ID: <4.1.19990310154506.00bb7140@lisp.atmm.nl> At 15:29 10/03/99 , you wrote: >Hi all, >I'm using some image buttons and am having trouble getting the return values >for them. >I have a button called answerbtn and the return values would be 'answerbtn.x' >and 'answerbtn.y', I need to check one of these values to check whether this >button was pressed. >I have tried _['answerbtn.x'] but I get a traceback from Zope. >Any Ideas? Try::
    or::
  • : No form items To generate an overview of all form variables your DTML has access to. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:53:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:53:22 -0000 Subject: [Zope] Image button values Message-ID: <009101be6b05$be7e0150$5c773fc1@media1> Thanks for the suggestion Martijn but I've already tried that and it does indeed show variables of the form 'answerbtn.x'. But when I try to access them using one of: or or I get a traceback error, so I am none the wiser 8^( Thanks anyway Any other ideas? Phil phil@media-1.ml.uwcm.ac.uk ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 2:47 PM Subject: Re: [Zope] Image button values >At 15:29 10/03/99 , you wrote: >>Hi all, > >>I'm using some image buttons and am having trouble getting the return values >>for them. > >>I have a button called answerbtn and the return values would be 'answerbtn.x' >>and 'answerbtn.y', I need to check one of these values to check whether this >>button was pressed. > >>I have tried _['answerbtn.x'] but I get a traceback from Zope. > >>Any Ideas? > >Try:: > >
    > >or:: > > >
  • : > > No form items > > >To generate an overview of all form variables your DTML has access to. > > > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From michel@digicool.com Wed Mar 10 15:03:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:03:52 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB38@GANDALF> > > > I had the same problem, but only with Zope 1.10.2. I noticed > that DTML > documents (the default to be created) won't work with the > tree tag. If you > create a DTML Method (like the old DTML from Zope 1.9) then > they work as > expected. I don't have a clue as to why this works like > this. Maybe its > the proerties of the DTML Documents that are acting folderish and tree > doesn't know what to do? Read my reply to the orginal message in this thread as to why the tree tag doesn't work as you expect in DTML Documents. -Michel > > Hope that helps, > > Jason Spisak > webmaster@mtear.com > > Jason Spisak > Webamster > Masterson, Tate & Associates > 6151 West Century Boulevard #928 > Los Angeles, CA 90045 > http://www.mtear.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Wed Mar 10 15:06:19 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:06:19 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <613145F79272D211914B0020AFF6401907BB39@GANDALF> > -----Original Message----- > From: Tom Jenkins [mailto:TomJenkins@zentuit.com] > Sent: Tuesday, March 09, 1999 8:18 PM > To: zope@zope.org > Subject: [Zope] ZopeHTTPserver > > > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? > Thanks! Nope. ZopeHTTPServer is not Medusa, it is based on the HTTPServer that comes with Python. Medusa is it's own product, that we have integrated parts of into ZServer (which uses the core of Medusa to drive it's network end). http://www.nightmare.com/medusa/ For medusa info. http://www.zope.org/ for info on ZServer. Once ZServer is stable (it is alpha at the moment) use of ZopeHTTPServer will be depreciated (but not forgotten). -Michel > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > I suggested holding a "Python Object Oriented Programming Seminar", > but the acronym was unpopular. Joseph Strout, 28 Feb 1997 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 15:01:59 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 16:01:59 +0100 Subject: [Zope] Image button values In-Reply-To: <009101be6b05$be7e0150$5c773fc1@media1> Message-ID: <4.1.19990310160031.00bd7a60@lisp.atmm.nl> At 15:53 10/03/99 , Phil Harris wrote: >Thanks for the suggestion Martijn but I've already tried that and it does >indeed show variables of the form 'answerbtn.x'. But when I try to access >them using one of: > > or > or > > >I get a traceback error, so I am none the wiser 8^( > >Thanks anyway > >Any other ideas? > Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:15:54 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:15:54 -0000 Subject: [Zope] Image button values Message-ID: <00a801be6b08$e43dfa50$5c773fc1@media1> Well I'll give it another go then 8^) Thanks Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:21:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:21:19 -0000 Subject: [Zope] Image button values Message-ID: <00ae01be6b09$a5d91e60$5c773fc1@media1> Martijn, I tried it again, and it worked! It was my fault it didnt work in the first place 8^( Sorry for wasting your time Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From tschruefer@mail.howard.k12.md.us Wed Mar 10 15:27:35 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 10 Mar 1999 10:27:35 -0500 Subject: [Zope] New subscriber: Installing Zope Message-ID: <199903101525.KAA25149@mail.howard.k12.md.us> Having seen Zope recommended on Usenet last week, I decided to check it out, Monday I found the Webreview article in the email box. I have been reading as much as I can find, but one question is always on my mind, when ever I find one of these wonderful, does it all systems. Can I install it ? Not, is it to complicated to install, but do I need root access to the machine to install this application. This question and the answer have killed many a promising application (DB & BBS). So, the question is, can Zope be installed in a typical Telnet account ? The install docs mention, you have to be root user, to install some components, does this mean what I fear it means ? (machine admin, ie. super user) Tom From webmaster@mtear.com Wed Mar 10 12:43:59 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:43:59 -0500 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] Message-ID: <36E6690F.3F29A15@mtear.com> This is a multi-part message in MIME format. --------------FC234E87DDED8B9F783D1ACF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------FC234E87DDED8B9F783D1ACF Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E66801.26F0DC53@mtear.com> Date: Wed, 10 Mar 1999 07:39:29 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Michel Pelletier Subject: Re: [Zope-dev] The Spanish Aquisition References: <613145F79272D211914B0020AFF6401907BB37@GANDALF> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michel Pelletier wrote: > > > -----Original Message----- > > From: Jason Spisak [mailto:webmaster@mtear.com] > > Sent: Tuesday, March 09, 1999 4:57 PM > > To: zope-dev@zope.org > > Subject: [Zope-dev] The Spanish Aquisition > > > > > > Zopistas, > > > > I am trying to reference a property of a Folder that is in a totally > > spearate hirearchy of Zope. When inserted below the folder > > Iwish to grab > > the property of it works fine, but when moves elsewhere it dies. > > > > > > > > > > > > Hmm.. I'm not sure I understand the problem you want to solve, but have > you tried: > > Yes. I am trying to reference a folder that is not in the same path. And I tried your next suggestion a long time ago, with no luck. , and get an error with traceback: ) > > If the folder is one of your ancestors (ie above you and in your path) > you can just reference it's attributes like they were your own. If the > folder you are targeting is above you but not in your path (ie not an > ancestor) but is a child of one of your ancestors, you must first aquire > the folder, and then reference it's property, like this: > > > > The rule is: > If a folder is an ancestor of yours, you can just say > If a folder is a child of one of your ancestors, but not one of your > ancestors (like a cousin), you can say , because you must first aquire the folder. > This doesn't work. My paths are like, /staff/candidates/candidate1, and staff/companies/company1/job1/submission1/MyDocument. I am trying to reference a property of the candidate1 folder in the MyDocument document. Thanks for your time Michel. Jason Spisak webmaster@mtear.com --------------FC234E87DDED8B9F783D1ACF-- From webmaster@mtear.com Wed Mar 10 12:44:21 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:44:21 -0500 Subject: [Zope] [Fwd: [Zope-dev] Vairable Query of TinyTables] Message-ID: <36E66925.458D5754@mtear.com> This is a multi-part message in MIME format. --------------AAF88E2DDEBDA15484C1770F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------AAF88E2DDEBDA15484C1770F Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E6652E.220B4EF3@mtear.com> Date: Wed, 10 Mar 1999 07:27:26 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Martijn Pieters Subject: Re: [Zope-dev] Vairable Query of TinyTables References: <4.1.19990310100907.00bd7100@lisp.atmm.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Worked like a charm! I am obviously new to objects. ;-) Thanks. Jason Spisak webmaster@mtear.com >Martijn Pieters wrote: > > At 22:59 09/03/99 , Jason Spisak wrote: > >By variable query I mean for example: > > > > > > > > > >
    > > > > > > > >Believe it or not, it doesn't choke, it just gives me nothing. > > TinyTables act like dictionary objects I think, and are keyed on strings. > AUTHENTICATED_USER is not a string, but an object, so you'll have to > convert it. Try calling AUTHENTICATED_USER.getUserName() instead. > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ --------------AAF88E2DDEBDA15484C1770F-- From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:40:28 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:40:28 -0000 Subject: [Zope] Image button values Message-ID: <00c201be6b0c$52a8b400$5c773fc1@media1> Hmm, More on the image button saga. It seem's that does indeed work, but doesn't, and neither does the getitem way. Seems weird to me, any ideas? TIA Phil ----- Original Message ----- From: Phil Harris To: ; Martijn Pieters Sent: Wednesday, March 10, 1999 3:21 PM Subject: Re: [Zope] Image button values >Martijn, > >I tried it again, and it worked! > >It was my fault it didnt work in the first place 8^( > >Sorry for wasting your time > >Phil >----- Original Message ----- >From: Martijn Pieters >To: Phil Harris ; >Sent: Wednesday, March 10, 1999 3:01 PM >Subject: Re: [Zope] Image button values > > >>At 15:53 10/03/99 , Phil Harris wrote: >>>Thanks for the suggestion Martijn but I've already tried that and it does >>>indeed show variables of the form 'answerbtn.x'. But when I try to access >>>them using one of: >>> >>> or >>> or >>> >>> >>>I get a traceback error, so I am none the wiser 8^( >>> >>>Thanks anyway >>> >>>Any other ideas? >>> >> >>Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... >> >>-- >>M.J. Pieters, Web Developer >>| Antraciet http://www.antraciet.nl >>| Tel: +31-35-6254545 Fax: +31-35-6254555 >>| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >>| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >>------------------------------------------ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From petrilli@amber.org Wed Mar 10 15:50:27 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 10 Mar 1999 10:50:27 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310105027.C28029@amber.org> On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: > > Can I install it ? Not, is it to complicated to install, but do I need > root access to the machine to install this application. This question > and the answer have killed many a promising application (DB & BBS). You should be able to install a binary package as a typical user on a UNIX machine. If your machine already has Python 1.5.1 or higher installed (don't they all?!?!?! :-) then you can just install the basic source distribution of Zope and do the: $ python wo_pcgi.py Thing :-) You can then use the ZopeHTTPServer on a untrusted port (over 1000) and off you go :-) If you want to use Apache+PCGI you probably will need administrator support, and if yo uwant to be on a port under 1000 you'll need it. > The install docs mention, you have to be root user, to install some > components, does this mean what I fear it means ? (machine admin, ie. > super user) You should be able to get a feel for it without being root. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From michel@digicool.com Wed Mar 10 15:58:12 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:58:12 -0500 Subject: [Zope] Apache Authorization Message-ID: <613145F79272D211914B0020AFF6401907BB3B@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Wednesday, March 10, 1999 3:46 AM > To: zope@zope.org > Subject: [Zope] Apache Authorization > > > Hi, > > I cannot go to management screen of Zope, probably due to some problem > with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care > to look at it. Thanks! > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf file will probably have something your not including in your apache. also, do an 'httpd -l' and make sure you have mod_rewrite compiled and/or dynamicly loaded in. http://www.zope.org/Community/Projects/Zap -Michel > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 16:06:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 17:06:04 +0100 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] In-Reply-To: <36E6690F.3F29A15@mtear.com> Message-ID: <4.1.19990310170353.00bd7f00@lisp.atmm.nl> At 13:43 10/03/99 , Jason Spisak wrote: >This doesn't work. My paths are like, /staff/candidates/candidate1, and >staff/companies/company1/job1/submission1/MyDocument. I am trying to >reference a property of the candidate1 folder in the MyDocument >document. > will work. candidates is the object that is the common ancestor, and from there you can reference objects down that path. You will have to place the expression into quotes, however. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 10 16:14:13 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 10 Mar 1999 11:14:13 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310111413.E5210@throwingcopper.ans.net> You can indeed install it. I had originally had a standard telnet sort of account on a FreeBSD machine. You can basically get a full-featured Zope if your web provider runs apache with mod_rewrite. (If they don't have mod_rewrite, authentication is a little bit more of a headache.) The thing to beware of is that PCGI starts a long running process and many hosting companies will not be pleased about this. Kevin On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: ,----- | | Having seen Zope recommended on Usenet last week, I decided to check it | out, Monday I found the Webreview article in the email box. I have been | reading as much as I can find, but one question is always on my mind, | when ever I find one of these wonderful, does it all systems. | | Can I install it ? Not, is it to complicated to install, but do I need | root access to the machine to install this application. This question | and the answer have killed many a promising application (DB & BBS). | | So, the question is, can Zope be installed in a typical Telnet account ? | | The install docs mention, you have to be root user, to install some | components, does this mean what I fear it means ? (machine admin, ie. | super user) | | | Tom | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From david.a.wagle@healthpartners.com Wed Mar 10 16:56:41 1999 From: david.a.wagle@healthpartners.com (David Wagle) Date: Wed, 10 Mar 1999 10:56:41 -0600 (CST) Subject: [Zope] help on ZMySQL Message-ID: <14054.42057.794893.98199@plato.healthpartners.com> Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- From M.Faassen@vet.uu.nl Wed Mar 10 17:08:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 10 Mar 1999 18:08:28 +0100 Subject: [Zope] title and id properties in DTML methods Message-ID: <36E6A70C.687B26BA@pop.vet.uu.nl> Hi everybody, I'm probably completely confused, but if I understood it right, DTML Methods in Zope 1.10 are the same as Documents in Zope 1.9. I may remember wrongly, but wasn't it so that in 1.9 documents rendered the title and id of the actual document, and not that of the containing folder? In 1.10 in DTML methods, they appear to render the containing folder, instead. The only way I can access title of a DTML method in 1.10, is by referring to it specifically, i.e. . It works as expected with DTML Documents. Is this as it should be? Am I correct about the 1.9 behavior? If so, then DTML Methods don't seem to be exactly equivalent to 1.9 Documents, and this should probably be in the FAQ. :) Regards, Martijn From ShawH@STHS.org Wed Mar 10 19:45:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 13:45:08 -0600 Subject: [Zope] help on ZMySQL Message-ID: Do it without the ';'. When it says 'that was not a query' it simply means that there was no returned results for it to display. If you check the database, the values should have been successfully inserted. ---------- From: David Wagle [SMTP:david.a.wagle@healthpartners.com] Sent: Wednesday, March 10, 1999 10:57 AM To: zope@zope.org Subject: [Zope] help on ZMySQL Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jeffrey@Digicool.com Wed Mar 10 21:56:35 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Wed, 10 Mar 1999 16:56:35 -0500 Subject: [Zope] help on ZMySQL Message-ID: <199903102156.NAA17945@zope.codeit.com> >From: David Wagle > I have a ZSQL method for inserting data into the database. > The database connection is active. > the permissions are correct. > the method is defined roughly as: > > insert into tblname (col1, col3, col4, col5) values > (col1val, "value taht is constant", col4val, col5val); > > when I try and test it, Zope tells me that there > is a parse error near ';'. If you're doing just a single query, you don't need the ';' (or its equivilent). If you're doing multiple queries, use to seperate them. The DA will seperate the queries using this. This is equivilent to what command line or other SQL tools often do with the ';' character. > I remove teh ';' and Zope tells me that > "This was not a query." Nothing is being returned is what this means (or more basically, it wasn't a SELECT based query). .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From prudek@sol.cz Wed Mar 10 22:41:42 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 23:41:42 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E6F526.D5A29939@sol.cz> > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf > file will probably have something your not including in your apache. I can't use another apache just for Zope. I looked into zap.conf and incorporated some changes into my httpd.conf. No way. Since the log file of RewriteLog remains empty, I believe no rewriting takes place, actually. I have about 30 virtual servers on that httpd, maybe there lies the problem? Also this is Apache 1.3.3, do I need Apache 1.3.4? -- Milos Prudek From sfl@beehive.de Thu Mar 11 11:02:28 1999 From: sfl@beehive.de (Sebastian Luehnsdorf) Date: Thu, 11 Mar 1999 12:02:28 +0100 (CET) Subject: [Zope] Apache Authorization In-Reply-To: <36E6F526.D5A29939@sol.cz> Message-ID: On Wed, 10 Mar 1999, Milos Prudek wrote: > Since the log file of RewriteLog remains empty, I believe no rewriting > takes place, actually. I have about 30 virtual servers on that httpd, > maybe there lies the problem? Also this is Apache 1.3.3, do I need > Apache 1.3.4? > hi! No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI option? And did you remember to turn the RewriteEngine on? ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99 From ags@beehive.de Thu Mar 11 12:29:27 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 11 Mar 1999 13:29:27 +0100 (CET) Subject: [Zope] Converting Whitespaces Message-ID: Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex From prudek@sol.cz Thu Mar 11 13:16:25 1999 From: prudek@sol.cz (Milos Prudek) Date: Thu, 11 Mar 1999 14:16:25 +0100 (MET) Subject: [Zope] Apache Authorization In-Reply-To: Message-ID: Yes I turned rewite engine on, but maybe not in the right place. I wrote it into global config. I believe do not need to use ExecCGI, since I use ScriptAlias. And Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope introductory. I'm desperate.... ------------ Milos Prudek On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI > option? And did you remember to turn the RewriteEngine on? From ShawH@STHS.org Thu Mar 11 13:32:47 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Thu, 11 Mar 1999 07:32:47 -0600 Subject: [Zope] FW: [Zope] Converting Whitespaces Message-ID: Once again I forgot to cc the list. Sorry. ---------- From: Shaw, Howard Sent: Thursday, March 11, 1999 7:32 AM To: 'Alexander Schad' Subject: RE: [Zope] Converting Whitespaces Something in an external method similar to this should do the job. from string import split, join def stringtounderscore(str): return join(split(str," "),"_"); which is then called from your page as Alternatively, if this is something you only need occasionally, you can code it directly in DTML... Both of these are untested, but I have tested the join/split command in python directly: >>> join(split("this is a test string"," "),"_") 'this_is_a_test_string' >>> ---------- From: Alexander Schad [SMTP:ags@beehive.de] Sent: Thursday, March 11, 1999 6:29 AM To: zope@zope.org Subject: [Zope] Converting Whitespaces Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" OK - I think I get it, but how do I "convert" a string to a reference to an object, so that I can call properties associated with the object (DTML document). This should be possible, isn't it??? Best regards Wiebe Kunst >At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > >> >> >>I wrote this, and it worked fine: >> >> >> >>I found a way, but I don't understand why the first syntax worked fine with >>Folders and fails with DTML Documents. If anyone would like to clarify the >>semantic difference between _['sub-document'] and >>_.getitem('sub-document'), I would be even happier. > >The answer is in both the ZDP's FAQ and the DTML Manager's Guide. > >_['foo'] "renders" foo according to DTML rules. This process mostly >consists of calling DTML and other callable objects. > >_.getitem('foo') simply returns foo as found in the DTML namespace. > >The reason you were having problems is that _['sub-document'] renders the >document to a string. Naturally strings don't have properties. Hence the >error you got from Zope, "'string' object has no attribute 'title'". > >Make sense? > >-Amos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:14:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:14:27 -0500 (EST) Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Alexander Schad wrote: > I know there is a way to convert underscores to spaces (spacify) but i > need it the other way around is. There a function to convert spaces to > underscores and if not how can i do it elseway? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:26:11 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:26:11 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <000001be6bc9$789ff520$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > OK - I think I get it, but how do I "convert" a string to a reference to an > object, so that I can call properties associated with the object (DTML > document). This should be possible, isn't it??? > >_.getitem('foo') simply returns foo as found in the DTML namespace. > > Wiebe You can use something like: (Is 0 the default?) _.getitem('foo',0) returns a reference to the object with id foo. Pavlos From phd@sun.med.ru Thu Mar 11 14:28:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 17:28:58 +0300 (MSK) Subject: [Zope] non-External Methods Message-ID: Hello! In ExternalMethods.html I found: "ernal Methods operate just like normal methods". But what are "normal" methods? The only thing I know is DTML Scripts. Are there other? Could I put Python code into Object Database? Should I? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phil@media-1.ml.uwcm.ac.uk Thu Mar 11 14:50:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 11 Mar 1999 14:50:07 -0000 Subject: [Zope] Apache Authorization Message-ID: <006e01be6bce$749a5920$5c773fc1@media1> Turn on ExecCGI, you do need it ! ----- Original Message ----- From: Milos Prudek To: Sebastian Luehnsdorf Cc: Sent: Thursday, March 11, 1999 1:16 PM Subject: Re: [Zope] Apache Authorization >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > >------------ >Milos Prudek > >On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > >> No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI >> option? And did you remember to turn the RewriteEngine on? > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" Thanks for a very fast reply, however it doesn't work. I'm still getting: Error value: 'string' object has no attribute 'title'. This is what I'm trying to do: A DTML document (index_html) has a property art1 which has an ID for another DTML document as value (type: string). In index_html I use: which renders the article. I can of course use in the actual article, but I rather don't. So I'm still banging my head in the wall after hours of trying to accomplish this. Can it be a bug with DTML documents?? Best regards Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> OK - I think I get it, but how do I "convert" a string to a reference to an >> object, so that I can call properties associated with the object (DTML >> document). This should be possible, isn't it??? > >> >_.getitem('foo') simply returns foo as found in the DTML namespace. >> > > >Wiebe > >You can use something like: > > (Is 0 the default?) > >_.getitem('foo',0) returns a reference to the object with id foo. > >Pavlos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From M.Faassen@vet.uu.nl Thu Mar 11 15:00:45 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:00:45 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > In ExternalMethods.html I found: "ernal Methods operate just like normal > methods". But what are "normal" methods? The only thing I know is DTML > Scripts. Are there other? Could I put Python code into Object Database? > Should I? I think that DTML Methods (or Documents?) are meant. They are like methods to the folder objects that Zope publishes. Look at: http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I want your subfolder 'bar' (this could be seen as using a method on foo to request 'bar'), and then I want to view 'doc' (which is, let's say, a DTML method) in bar. 'doc' in that case is a method of the bar object, which, when called, returns HTML code (to the browser). An *external* method is a method which comes from outside the Zope object database (though it's loaded into it, and behaves just like a normal internal method). If all this talk turns out to be correct (somebody tell me or send corrections), then I can turn this into a FAQ entry. If anybody else feels like writing this up in a nice way for the FAQ (Oleg?) that'd even be better. Just send your contributions to the ZDP list. Regards, Martijn From phd@sun.med.ru Thu Mar 11 15:08:45 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:08:45 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Message-ID: Hi! That is, there are DTML Scripts and External Methods. Python code is used in External Methods and Products, but never goes into Object Database. On Thu, 11 Mar 1999, Martijn Faassen wrote: > > In ExternalMethods.html I found: "ernal Methods operate just like normal > > methods". But what are "normal" methods? The only thing I know is DTML > > Scripts. Are there other? Could I put Python code into Object Database? > > Should I? > > I think that DTML Methods (or Documents?) are meant. They are like > methods to the folder objects that Zope publishes. Look at: > http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I > want your subfolder 'bar' (this could be seen as using a method on foo > to request 'bar'), and then I want to view 'doc' (which is, let's say, a > DTML method) in bar. 'doc' in that case is a method of the bar object, > which, when called, returns HTML code (to the browser). > > An *external* method is a method which comes from outside the Zope > object database (though it's loaded into it, and behaves just like a > normal internal method). > > If all this talk turns out to be correct (somebody tell me or send > corrections), then I can turn this into a FAQ entry. If anybody else > feels like writing this up in a nice way for the FAQ (Oleg?) that'd even > be better. Just send your contributions to the ZDP list. > > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From M.Faassen@vet.uu.nl Thu Mar 11 15:14:57 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:14:57 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hi! > > That is, there are DTML Scripts and External Methods. Python code is > used in External Methods and Products, but never goes into Object Database. I think it's true Product python code doesn't go into the Object Database, but I'm unclear about what happens with External Method python code. You need press the 'edit' button for an external method in Zope each time you changed something in it and want it updated. This would imply Python code can indeed be part of the Object database, right? Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 11 15:17:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:17:28 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> Message-ID: <36E7DE88.344745B3@pop.vet.uu.nl> Phil Harris wrote: > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a FAQ on this one? (I think I heard the Digicool folks are working on some FAQ document on Apache with Zope too, what's the status on this?). Regards, Martijn From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:28:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:28:52 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <001b01be6bd0$2188dde0$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > A DTML document (index_html) has a property art1 which has an ID for another > DTML document as value (type: string). In index_html I use: which renders the article. I can of course use I haven't tried it myself but is this what you tried? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:40:07 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:40:07 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Actually not. For security reasons the code of an External method does not reside in the Object Database but in the filesystem. When you press the 'edit' button the code is read and evaluated and it is the evaluated code that is stored in the Object Database. There was a thread about whether the source code should be included in the Object Database but I think thge Digital Creators were not convinced. Pavlos From phd@sun.med.ru Thu Mar 11 15:41:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:41:22 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? May be... Thanks for replaying. > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From raver@box.dust.za.net Thu Mar 11 15:51:26 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 16:51:26 +0100 Subject: [Zope] Passing forms data to external python methods Message-ID: <19990311165126.A577@RaVER.duck.org> --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=arg-mail Hi! I have a form here wich should submit 5 values on to an external python method (as 5 arguments to a function). Now - one value from form to function is no problem - more then one is. Questions arise.... How are more than 1 value submitted from a form? How can I get those values passed onto an external method, and have the values assigned to the functions argument? Help is much appreciated! Sture --ZPt4rx8FFjLCG7dd-- From mj@antraciet.nl Thu Mar 11 15:52:20 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 11 Mar 1999 16:52:20 +0100 Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> References: Message-ID: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> At 16:14 11/03/99 , Martijn Faassen wrote: >Oleg Broytmann wrote: >> >> Hi! >> >> That is, there are DTML Scripts and External Methods. Python code is >> used in External Methods and Products, but never goes into Object Database. > >I think it's true Product python code doesn't go into the Object >Database, but I'm unclear about what happens with External Method python >code. You need press the 'edit' button for an external method in Zope >each time you changed something in it and want it updated. This would >imply Python code can indeed be part of the Object database, right? > No, it forces Python to recompile the code. The code itself is NOT stored int the object database. Only instance data is stored in the object database, no code is. Zope classes are said to change all this, aren't they, DC? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 11 15:52:40 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:52:40 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > > imply Python code can indeed be part of the Object database, right? > > Actually not. For security reasons the code of an External method does > not reside in the Object Database but in the filesystem. When you press > the 'edit' button the code is read and evaluated and it is the evaluated What is "evaluated"? Compiled? > code that is stored in the Object Database. There was a thread about > whether the source code should be included in the Object Database but I I watched the thread and did understand the security implications. > think thge Digital Creators were not convinced. > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffrey@Digicool.com Thu Mar 11 15:57:47 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 10:57:47 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111557.HAA09410@zope.codeit.com> >From: Martijn Faassen > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Pressing the 'edit' button "reloads" that particular External Method code into the system. It's not stored in the database at all - the External Method object you add/edit through the Zope management screens is primarily a pointer/wrapper to a method in a module in the Extensions directory. The Edit button in essence acts similar to the reload(module) function in Python. Basically, Zope (and Python) don't have a way of knowing the code in a module has changed unless it's explicitly reloaded, which is a good thing. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 16:07:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 11:07:22 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Oleg Broytmann wrote: > > What is "evaluated"? Compiled? > > > code that is stored in the Object Database. There was a thread about > > whether the source code should be included in the Object Database but I > > I watched the thread and did understand the security implications. > Well this is how I understood the process. Basically the code is read and exec-ed and the the func_code func_code.co_varnames are extracted. Then they apply all the clever tricks to turn the function into a valid Zope method, by (I assume) creating a Zope method and replacing its func_code and the associated func_defaults and arguments with the ones extracted from the external function. The relevant code can be found in Zope/lib/python/App/Extensions.py and Zope/lib/python/Products/ExternalMethod/ExternalMethod.py Pavlos From phd@sun.med.ru Thu Mar 11 16:11:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 19:11:58 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: Hi! Thank you! On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > Well this is how I understood the process. > > Basically the code is read and exec-ed and the the func_code > func_code.co_varnames are extracted. Then they apply all the clever tricks > to turn the function into a valid Zope method, by (I assume) creating a > Zope method and replacing its func_code and the associated func_defaults > and arguments with the ones extracted from the external function. > > The relevant code can be found in > Zope/lib/python/App/Extensions.py and > Zope/lib/python/Products/ExternalMethod/ExternalMethod.py > > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Wiebe Kunst" Yes I did, but... I finally found out by trying: This works like a dream. Thanks a lot again. Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> A DTML document (index_html) has a property art1 which has an ID for another >> DTML document as value (type: string). In index_html I use: which renders the article. I can of course use > >I haven't tried it myself but is this what you tried? > > > >Pavlos > > From jeffrey@Digicool.com Thu Mar 11 17:09:23 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:09:23 -0500 Subject: [Zope] pretty printable pages at zope.org Message-ID: <199903111709.JAA12826@zope.codeit.com> We now have sortof-pretty printable pages at Zope.org :). At the bottom of every page with the standard header/footer is a link "Printable Page" which links to the same page being viewed, but passes a value to standard_html_header/footer that is used to _not_ render the surround Zope layout (sidebar, navigation bar). For example, http://www.zope.org/Information/Zen/HTMLMethods?pp=1 .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From jeffrey@Digicool.com Thu Mar 11 17:27:07 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:27:07 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111726.JAA13377@zope.codeit.com> >From: "Shaw, Howard" > Does this mean that when Zope is stopped and restarted, it is as if > every External Method has its 'edit' button repushed? If I change code > in an External Method, but don't manually reload it, it will be reloaded > the next time the Zope process restarts? This seems to conflict with > Christoforou's description... Perhaps DC can clarify? External Methods are (to the best of my knowledge) evaluated and their compiled code is kept in process memory (effectively cached) the first time the object (the External Method object pointing to a particular module/method) is activated. It is removed from process memory when the object is de-activated. This is kindof a tricky process and may be effectively cleaned up in the near future so I won't go into too many details here. An important thing to keep in mind is (again, this may change soon) that the compiled code is kept locally in each External Method Object. If you have two EM's in Zope pointing to the same code, you have to use the "Edit" button on _both_ External Method objects to effectively reload it. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From raver@box.dust.za.net Thu Mar 11 17:44:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 18:44:13 +0100 Subject: [Zope] Letting everyone view contents of a newly built site Message-ID: <19990311184413.A1175@RaVER.duck.org> Hi! Just made a small test-site, and followed the Zope magager guide to how to let anyone view my newly made site, but thisg doesn't work. The doc say that by default everyone should have access to view the contents of a site made by zope, but here the authorization/authentication dialogue pops up whenever someone try to access the site. Cancelling username/passwd just ends in failure. Why ? I'm using apache as webserver for zope and has made it so that apache handles the authentication bit, but still - shouldn't it let 'anonymous' trough? I've had a look at the security settings for both folders and files and they all let 'anonymous view'. Whats wrong? Sture From M.Faassen@vet.uu.nl Thu Mar 11 17:53:41 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 18:53:41 +0100 Subject: [Zope] non-External Methods References: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> Message-ID: <36E80325.B637033F@pop.vet.uu.nl> Martijn Pieters wrote: > Martijn Faassen wrote: > > You need press the 'edit' button for an external method in Zope > > each time you changed something in it and want it updated. This would > > imply Python code can indeed be part of the Object database, right? > > No, it forces Python to recompile the code. The code itself is NOT stored > int the object database. Only instance data is stored in the object > database, no code is. Zope classes are said to change all this, aren't > they, DC? Aah, of course, I see. Thanks! Martijn From M.Faassen@vet.uu.nl Thu Mar 11 18:09:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:09:54 +0100 Subject: [Zope] non-External Methods References: <199903111726.JAA13377@zope.codeit.com> Message-ID: <36E806F2.F20A4457@pop.vet.uu.nl> Jeffrey P Shell wrote: [enlightnening discussion on External Methods snipped] Thanks everybody, I added this to the FAQ. Regards, Martijn From kid@ans.net Thu Mar 11 18:49:39 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 13:49:39 -0500 Subject: [Zope] Letting everyone view contents of a newly built site In-Reply-To: <19990311184413.A1175@RaVER.duck.org>; from raver@box.dust.za.net on Thu, Mar 11, 1999 at 06:44:13PM +0100 References: <19990311184413.A1175@RaVER.duck.org> Message-ID: <19990311134939.A7002@throwingcopper.ans.net> Hello! On Thu, Mar 11, 1999 at 06:44:13PM +0100, raver@box.dust.za.net wrote: ,----- | Hi! | | Just made a small test-site, and followed the Zope magager guide to how to | let anyone view my newly made site, but thisg doesn't work. The doc say that | by default everyone should have access to view the contents of a site made | by zope, but here the authorization/authentication dialogue pops up whenever | someone try to access the site. Cancelling username/passwd just ends in | failure. Why ? I'm using apache as webserver for zope and has made it so that | apache handles the authentication bit, but still - shouldn't it let | 'anonymous' trough? I've had a look at the security settings for both | folders and files and they all let 'anonymous view'. Whats wrong? When you say that you made it so that Apache handles the authentication, I take that to mean you have created a .htaccess file? If that is the case, Apache will always prompt for the password and check it against your password file. If you use mod_rewrite to let Zope handle authentication, you will not see the password prompt for resources that are available to anonymous users. Kevin | | Sture | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From M.Faassen@vet.uu.nl Thu Mar 11 18:55:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:55:54 +0100 Subject: [Zope] Zope FAQ 0.2.1 and zdp.zope.org Message-ID: <36E811BA.23802256@pop.vet.uu.nl> Zopists, Zope-hackers, Zopineers and Zopistas, The ZDP is pleased to announce the creation of the zdp.zope.org website. Thanks to Brian Brown of BW Group for generously providing Zope space for the ZDP! Also thank you to the wonderful people at Digital Creations for their support. So go ahead and visit us at: http://zdp.zope.org Please note that zdp.zope.org is very much a work in progress, and so is the Zope FAQ (currently at revision 0.2.1). Still, we've come a long way in barely two weeks time! The FAQ appears to be already useful to some people, which is very good to know. The ZDP and the Zope FAQ eagerly await your contributions, by the way. So run and join the ZDP mailing list! My apologies to the people who may have heard this before. :) Regards, Martijn From da@ski.org Thu Mar 11 19:55:43 1999 From: da@ski.org (David Ascher) Date: Thu, 11 Mar 1999 11:55:43 -0800 (Pacific Standard Time) Subject: [Zope] Guestbook Message-ID: The guestbook product is broken in 1.10.2. I've 'fixed' it by removing both references to OFS.DocumentHandler (import and class inheritance). Now it's not broken, but it doesn't seem to work! Anytime I enter any data, it says 'data entered' but nothing ever shows up in the data view. Has anyone fixed this? BTW, I couldn't find an author name listed anywhere. --david From amos@aracnet.com Thu Mar 11 20:37:49 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 11 Mar 1999 12:37:49 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Hello Zopesters: Are you confused by the subtleties of DTML? Want the skinny on advanced DTML tricks and gotchas? Check out my advanced DTML HowTo: http://www.zope.org/Documentation/HowTo/DTML This document explains in detail the concepts behind advanced DTML tricks like indirect variable lookup, setting variables, calling sub-templates with different client objects, etc. Its main emphasis is on understanding how DTML uses a namespace stack to manage variable lookups. Enjoy and send me your feedback. -Amos P.S. Probably at least some of this material will be incorporated into the DTML User's Guide in the future. From M.Faassen@vet.uu.nl Thu Mar 11 21:12:13 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 22:12:13 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E831AD.FF7FE4F4@pop.vet.uu.nl> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Thanks! Although by now I knew most of what was mentioned (though it sure was nice seeing it all together in one place) this will be invaluable for people who want to get up to speed with DTML. Martijn From mbernstein@profitscape.net Thu Mar 11 21:28:31 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 11 Mar 1999 13:28:31 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E8357F.3DE329F@profitscape.net> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Excelent! This is so much clearer than isolated answers to 'how-do-I' questions. This gives me the context I've been missing! Thanks! Michael Bernstein. From crowland@psionic.com Thu Mar 11 22:23:29 1999 From: crowland@psionic.com (Craig H. Rowland) Date: Thu, 11 Mar 1999 16:23:29 -0600 (EST) Subject: [Zope] Newbie questions. Message-ID: Hello, I've looked through all the docs, FAQs and threads of the Zope list for some of these answers and haven't found a clear method described. I'll apologize now if the questions seem obvious, but I'm new to deploying Zope on a web server and need some initial Zope setup guidance. Question 1: Under Zope, what is the proper way to configure the website so users can simply go to http://www.example.com instead of: http://www.example.com/example http://www.example.com:9673/ etc. My understanding is that the mod_rewrite rules will have to come into effect here. Will I also need to do a re-direct of some type? I need some way to direct all URL requests so they are re-written to point to the correct Zope folder. The ideal for me is to have a series of folders in Zope that contain separate websites. The sites can be virtual hosted as needed (although right now I'm only running one site). I can't find a clear description of how to make this happen. Also I don't want to run a separate Zope process and proxy people to the port. I want to have everything running on port 80. I'll have to agree with other posters that a tutorial on the design of the actual Zope site with Zope would be very helpful as they are using a layout of html and hierarchy that is very similar to what I'm pursuing. In fact if someone could provide me with a description of the config they're using it would be a huge help. Question 2: Under .DTML construction of links is it generally considered "better" Zope practice to reference the entire URL or the Zope object hierarchy directly? Question 3: I don't want tracebacks to appear under any circumstances to the end users. I haven't tried anything to counter this yet, but wanted to know what some others have done. Would an approach to this be a try/except positioned in the standard_html_header and footer files? Ideally I would like to catch all exceptions and have it automatically mail the exceptions to the webmaster instead of showing the user (In fact I think this would be a good feature for the product). Question 4: Has anyone pursued a security audit of the Zope code? I've been considering doing this (not that I don't trust the Zope developers, it's just that I don't trust anyone) and would like to work with others if possible. Several of the sites I admin get hacked on very frequently and I'm a little nervous about replacing static web pages with no CGI running anywhere with the exact opposite end of the spectrum with Zope. :) I'm also going to prepare a document describing how to run Zope in a chroot() environment under UNIX to increase security. I'll let the list know when it is complete. Thank you for any responses, -- Craig From gdeering@csu.edu.au Thu Mar 11 23:50:02 1999 From: gdeering@csu.edu.au (Geoff Deering) Date: Fri, 12 Mar 1999 09:50:02 +1000 Subject: [Zope] Zope Benchmarks and Performance testing Message-ID: <000201be6c19$e16afd20$cd86a689@gdeering.mur.csu.edu.au> I'm new to this list. It seems to me that the www.zope.org is rather slow this week. Documents are taking far too long to be parsed. Pings seem reasonable, so I am expecting that the server may be receiving a lot of requests and being overloaded (maybe from the Web Review article). So I am just wondering what the specs of the system that the www.zope.org ISP is using. Also wondering about stress tests and benchmarks for the Zope system. (It must also depend on backend systems etc) Geoff Deering Web Programmer Charles Sturt University From kid@ans.net Thu Mar 11 23:31:54 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 18:31:54 -0500 Subject: [Zope] Problem setting security on a DTML Method Message-ID: <19990311183154.A7550@throwingcopper.ans.net> Hi, Using Zope 1.10.2 on Win95, I was trying to set permissions on a DTML Method. I was trying to set everything except "View" to the Acquired permissions. View was turned on only for "Manager" and "Editor". When I click the change button after setting things as I just described, I get the following Traceback: Traceback (innermost last): File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 877, in publish_module File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /beta/incoming/edit/manage_changePermissions) File C:\Program Files\WebSite\lib\python\AccessControl\Role.py, line 194, in manage_changePermissions (Object: edit) File C:\Program Files\WebSite\lib\python\AccessControl\Permission.py, line 166, in setRoles AttributeError: manage_addProperty If I'm not doing something foolish here, I'll submit this to the Collector. Thanks! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From jae@kavi.com Fri Mar 12 00:02:23 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 11 Mar 1999 16:02:23 -0800 (PST) Subject: [Zope] Newbie questions. In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Craig H. Rowland wrote: > Question 1: > > Under Zope, what is the proper way to configure the website so users can > simply go to http://www.example.com instead of: > > http://www.example.com/example > http://www.example.com:9673/ > etc. Use Apache's VirtualHost ability... Look here for more info: http://www.apache.org/docs/vhosts/ An example: # in httpd.conf # your ip NameVirtualHost 192.123.44.3 # your standard host.domain (this must come first) ServerName your.standard.name DocumentRoot /home/httpd/html # one or more extra virtual hosts ServerName your.zope.name DocumentRoot /home/httpd/html RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From andreww@netscape.com Fri Mar 12 00:35:21 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Thu, 11 Mar 1999 16:35:21 -0800 Subject: [Zope] Lots of questions: Message-ID: <36E86145.7BF0385B@netscape.com> 1) How do I get Zope to run as a service on my NT box so I dont have to stay logged in for it to run? 2) When I upgrad Zope will I have to re-build all of my applications? 3) Is there an IRC channel for ZOPE? IF not I would like to offer the idea of creating one on say the mozilla or slashdot servers 4) Is there anyone interested in working with me on a Zope/Dreamweaver cross-communication project? -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From andy@ictibroker.com Fri Mar 12 01:10:32 1999 From: andy@ictibroker.com (Andy Smith) Date: Thu, 11 Mar 1999 20:10:32 -0500 Subject: [Zope] Guestbook In-Reply-To: Message-ID: <000001be6c25$2026dc40$0363efa1@atlantis.nyr.cable.rcn.com> > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of David > Ascher > Sent: Thursday, March 11, 1999 2:56 PM > To: The Zope Group > Subject: [Zope] Guestbook > > > The guestbook product is broken in 1.10.2. I've 'fixed' it by removing > both references to OFS.DocumentHandler (import and class inheritance). > Now it's not broken, but it doesn't seem to work! Anytime I enter any > data, it says 'data entered' but nothing ever shows up in the data view. > Has anyone fixed this? > > BTW, I couldn't find an author name listed anywhere. > I'm the guilty party (!) I found this problem before but so far haven't found the fix.... here's what I originally posted to the list. I'd like to get this sorted out as I'm also working on a Souped (Zoped?) up version of Amos's poll product, which produces pie-chart gifs in response to the poll results, but it also broke in much the same manner going from 1.9 to 1.10. So any help on this matter would be much appreciated! Cheers, Andy. ============================================================== -----Original Message----- From: Andy Smith [mailto:andy.smith@iname.com] Sent: Friday, February 19, 1999 2:29 PM To: Phil Harris; zope@zope.org Subject: RE: [Zope] Guestbook Product I get the same thing :( Hmm.. looks like DocumentHandler no longer exists. I've taken out DocumentHandler from the Guestbook, to mimick the change that has been made to 'Folder' going from 1.9->1.10. When doing the guestbook, I kept making sideways glances to Folder.py to see how it was done ;) The book no longer crashes but I'm getting some other wierdness. The guestbook is a folderish product which contains two documents that the user can add to change the appearance of the guestbook. They're added by the following lines in the 'add' method ... # Add a Document used to view previous entries fileName = os.path.join(prefix,'index.dtml') index2 = open(fileName,'r').read() i = DTMLMethod(index2,__name__='index_html') print "i is %s" % i.meta_type i.title='Change me to determine how entries are viewed' self._setObject('index_html',i) print "ObjectItems is %s" % list(self.objectItems()) The added objects no longer seem to be showing up in objectItems(). The debug statement, when run on 1.9 prints out the newly added object in the call to 'objectItems()', while on 1.10 it returns an empty list. Is this a side-effect of the removal of DocumentHandler? I thought that _setObject was being inherited from ObjectManager, so wouldn't be affected by the removal of DocumentHandler. Cheers, Andy. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil > Harris > Sent: Friday, February 19, 1999 8:46 AM > To: zope@zope.org > Subject: [Zope] Guestbook Product > > > Has anyone else noticed that the GuestBook Product no longer > works in 1.10? > > Is it just me or what? > > I get a traceback of > > Traceback (innermost last): > File "/usr/local/Zope-1.10.0pr1-src/lib/python/OFS/Application.py", line > 393, in import_products > product=__import__(pname, global_dict, global_dict, silly) > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/__init__.py", > line 7, in ? > import GuestBook > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/Guest > Book.py", > line 7, in ? > from OFS.Document import DocumentHandler, Document > ImportError: cannot import name DocumentHandler > > Any Ideas? > > Phil > From wolf@searchbutton.com Fri Mar 12 04:16:44 1999 From: wolf@searchbutton.com (Wolf Logan) Date: Thu, 11 Mar 1999 20:16:44 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <810F7CEE7B5FD211B68A00400541C762071804@orion.searchbutton.com> i was reading and enjoying the guide when i came across this line: "at different points while rending a DTML document..." i know at times *i've* wanted to rend a DTML document, but i didn't realize that zope did it too. :) > -----Original Message----- > From: Amos Latteier [SMTP:amos@aracnet.com] > Sent: Thursday, March 11, 1999 12:38 PM > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML > From chsrinfo@guetali.fr Fri Mar 12 05:36:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 09:36:36 +0400 Subject: [Zope] Apache Authorization Message-ID: <009401be6c51$67cea7e0$147800a0@pc-pi0> >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > Well, under RedHat 5.2, mod_rewrite is a DSO, and is activated in the *middle* of the httpd.conf. I had the same problem. The rewrite rules put a the top of the file have no effect because they occur *before* mod_rewrite is activated. I had to put the rewrite rules a the end of the file. I works now. I don't know if this will solve your problem, but, just in case... Regards, Jephte CLAIN Service Informatique CHSR From chsrinfo@guetali.fr Fri Mar 12 07:55:17 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 11:55:17 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <00a401be6c5d$caec6180$147800a0@pc-pi0> Hello, Correct me if i'm wrong: one has got to have "access content informations" permission to be able to write: right? I've been bitten with that, and once i gave "access content informations" to the Anonymous User, my problem went away. Also, before I submit this to the Collector, is it normal that the "use mailhost services" doesn't appear in the security tab of the folders? Each product has its permissions that are listed, but nothing with the mailhost object. I had to change it directly in the mailhost object. If it's normal, it means that i can't give global permission for mailhost objects??? What confuse me, however, is that the mailhost object claims to "acquire" permission settings from its parents, but nowhere in its parents i can define the permissions. Regards, Jephte CLAIN Service Informatique CHSR From jim.bickford@flinders.edu.au Fri Mar 12 08:52:47 1999 From: jim.bickford@flinders.edu.au (Jim Bickford) Date: Fri, 12 Mar 1999 18:22:47 +0930 Subject: [Zope] Fsimport problems Message-ID: <36E8D5DF.CD3009CB@flinders.edu.au> Hi... I'm having no luck importing an existing file tree using fsimport with Zope-1.10.2 with pcgi Apache... it seemed to work well under 1.9 ... but then I was also using ZopeHttpServer Could that be the problem or something I have done.. Thanks guys for a great system... Cheers JimB This is the dump: Sorry, an error occurred. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Bio/fsimport) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/home/jimb/AAA-work/bio.www/body', form: fsdir: '/home/jimb/AAA-work/bio.www/body' environ: DOCUMENT_ROOT: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs' HTTP_ACCEPT_ENCODING: 'gzip' SCRIPT_FILENAME: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' PCGI_NAME: 'Main' PCGI_MODULE_PATH: '/usr/local/Zope-1.10.2-linux2-x86/lib/python/Main.py' SERVER_PORT: '9673' PATH_TRANSLATED: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs/Bio/fsimport' REMOTE_ADDR: '129.96.230.155' SCRIPT_NAME: '/Zope' PCGI_EXE: '/usr/local/Zope-1.10.2-linux2-x86/bin/python' HTTP_ACCEPT_LANGUAGE: 'en,de,af' PCGI_PUBLISHER: '/usr/local/Zope-1.10.2-linux2-x86/pcgi/pcgi_publisher.py' GATEWAY_INTERFACE: 'CGI/1.1' SERVER_NAME: 'daphne.bio.flinders.edu.au' HTTP_CONNECTION: 'Keep-Alive' HTTP_USER_AGENT: 'Mozilla/4.5 [en] (WinNT; I)' HTTP_ACCEPT_CHARSET: 'iso-8859-1,*,utf-8' HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*' REQUEST_URI: '/Zope/Bio/fsimport?fsdir=/home/jimb/AAA-work/bio.www/body' PCGI_INFO_FILE: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' HTTP_COOKIE: 'tree-s="eJyLjjaMjQUABOIBog"; dtpref_rows="55"; dtpref_cols="100"' PATH: '/sbin:/usr/sbin:/bin:/usr/bin' QUERY_STRING: 'fsdir=/home/jimb/AAA-work/bio.www/body' SERVER_PROTOCOL: 'HTTP/1.0' HTTP_HOST: 'daphne.bio.flinders.edu.au:9673' SCRIPT_URL: '/Zope/Bio/fsimport' REMOTE_PORT: '1931' PCGI_PID_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.pid' SERVER_SIGNATURE: '' SCRIPT_URI: 'http://daphne.bio.flinders.edu.au:9673/Zope/Bio/fsimport' PCGI_SOCKET_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.soc' SERVER_ADMIN: '[no address given]' SERVER_SOFTWARE: 'Apache/1.3.4 (Unix)' PYTHONHOME: '/usr/local/Zope-1.10.2-linux2-x86' PCGI_DISPLAY_ERRORS: '1' PATH_INFO: '/Bio/fsimport' BOBO_REALM: 'Zope' BOBO_DEBUG_MODE: '1' HTTP_PRAGMA: 'no-cache' REQUEST_METHOD: 'GET' PCGI_ERROR_LOG: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.log' ), {}, (None,))) TypeError: read-only buffer, class -- --------------------------------------------------------------------- Jim.Bickford@flinders.edu.au Biological Sci Flinders University 61 8 8201 3179(v) 61 8 8201 3015(f) South Australia 5042 --------------------------------------------------------------------- From tallard@sagem.fr Fri Mar 12 08:58:21 1999 From: tallard@sagem.fr (Stephane Tallard) Date: Fri, 12 Mar 1999 09:58:21 +0100 Subject: [Zope] PSFS or DTML Message-ID: <36E8D72D.D17C66B8@sagem.fr> Il s'agit d'un message multivolet au format MIME. --------------46BAC34F26042FC3E496775C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all , We try to use DocumentTemplate not for HTML dynamic generation but for C++ generation. For convenience, and because we are familiar with Python we intend to use the Alternate Python String Format Syntax. The generation code is beautiful compared to our previous output.write("blah blah.... ") instructions. Reading the docs, looking at the Zope site, this behaviour doesn't seem to be shared by a lot of zope users. Moreover the Alternate Python String Format Syntax is poorly documented, and DTML features seems to be usable but the way they can be used seem very strange. Basically our needs are to use conditional structures, iterative structures and to call methods. The last point seems to be the hardest one. The following code shows a way to call python methods in python strings but 3 persons during half a day have been necessary to find it out. I suppose you can imagine my questions : Is there a natural and convenient way to find out PSFS expressions going from their DTML equivalent ? Is there a complete documentation on PSFS syntax ? Are the features of DTML and PSFS identical ? And the most important : Do you encourage us to keep on using PSFS instead of DTML ? Thank for your help Stephane my code ================================= import DocumentTemplate ########################################## class attr: def __init__(self,att): self.att = att def get_att(self): return self.att def get_num(self): return len(self.att) ########################################## l__list = [attr('aa'),attr('bb'),attr('cc')] l_str = DocumentTemplate.String(""" %(l_item fmt=get_att)s %(l_item fmt=get_num)3d %(in l_list)[ POUETPOUET %(sequence-var-get_att)s %(in)] """) dict = {'l_item':l__list[1], 'l_list':l__list} print l_str(None,dict) --------------46BAC34F26042FC3E496775C Content-Type: text/x-vcard; charset=us-ascii; name="tallard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Stephane Tallard Content-Disposition: attachment; filename="tallard.vcf" begin:vcard n:;Stephane Tallard x-mozilla-html:FALSE org:Softeam version:2.1 email;internet:tallard@urd24.sagem.fr x-mozilla-cpt:;0 tel;work:01 34 30 57 89 fn:Stephane Tallard end:vcard --------------46BAC34F26042FC3E496775C-- From tony.mcdonald@ncl.ac.uk Fri Mar 12 08:45:21 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 08:45:21 +0000 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: One more voice shouting "thanks!". Just what I needed, this misty Friday morning. tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Armin.Tschammer@oi42.kwu.siemens.de Fri Mar 12 09:13:11 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Fri, 12 Mar 1999 10:13:11 +0100 Subject: [Zope] Newbie dtml question ( very simple ) Message-ID: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Hi, I would like to do things like that: XY.py : d = {} d['x1']=1 d['x2']=2 X = DocumentTemplate.HTMLFile('X3.dtml') string = X(d) WRONG: X3.dtml : Some Stuff More Stuff Other Stuff How does the right X3.dtml file look like ? Thanks, Armin From prudek@sol.cz Fri Mar 12 09:14:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 12 Mar 1999 10:14:40 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> <36E7DE88.344745B3@pop.vet.uu.nl> Message-ID: <36E8DB00.F257932A@sol.cz> > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a > FAQ on this one? (I think I heard the Digicool folks are working on some Well you were both right. I have turned on ExecCGI for my standard cgi-bin directory, where I placed a copy of Zope.cgi. It is NOT neccessary to add statement for /usr/local/zope/ (I thought it was neccessary... so I'm writing it here for the upcoming FAQ). Also I thought that I should use http://www.domain.com/cgi-bin/Zope.cgi address, which brings the introductory screen (that fooled me) but does not allow authorization. The correct address is of course http://www.domain.com/Zope, since that's what the rewrite rule is about. Thanks to all who helped me! -- Milos Prudek From ron@rotflol.cx Fri Mar 12 11:19:24 1999 From: ron@rotflol.cx (ron@rotflol.cx) Date: Fri, 12 Mar 1999 12:19:24 +0100 Subject: [Zope] Tree Tag & SQL Message-ID: <199903121119.MAA31716@heaven.rotflol.cx> I am trying to implemented a directory service using the tree tag where the info from several tables of a database. A simplified outline: +Locations +Offices +People +Phones Tel Fax +Addresses Problem: how to have the tree tag use a different SQL method for each level WITHOUT resorting to external methods, because the directory should be maintainable by mere mortals, not Python or SQL gods. -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From Paul@digicool.com Fri Mar 12 12:18:46 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 07:18:46 -0500 Subject: [Zope] Tree Tag & SQL Message-ID: <613145F79272D211914B0020AFF6401907BB49@GANDALF> Ron wrote: > Problem: how to have the tree tag use a different SQL method > for each level > WITHOUT resorting to external methods, because the directory > should be > maintainable by mere mortals, not Python or SQL gods. Hi Ron. Just a guess, but how about having the tree tag pass in the the current level as an argument to the same SQL method, then have the SQL method adapt itself based on the argument? Remember that an SQL method can embed logic and act like an object using DTML. For instance: select ... select ... etc. --Paul From phd@sun.med.ru Fri Mar 12 12:09:21 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 12 Mar 1999 15:09:21 +0300 (MSK) Subject: [Zope] Zope.cgi -> mod_zope Message-ID: Hello! Is there any plan to make complex "Apache + Zope" even more efficient by making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Paul@digicool.com Fri Mar 12 13:30:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 08:30:47 -0500 Subject: [Zope] Lots of questions: Message-ID: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Andrew "Zopeweaver" Wooldridge wrote: > 1) How do I get Zope to run as a service on my NT box so I > dont have to > stay logged in for it to run? The installer for the Zope NT binary asks you if you want to run as a service -- in fact, that's the default. Take a look at the file "doc/INSTALL.txt", under Installation on Windows, for more information. > 2) When I upgrad Zope will I have to re-build all of my applications? Unless we do something wrong, nope. > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > idea of creating one on say the mozilla or slashdot servers I'm not sure if the Zope universe is big enough yet for that. I rememer Guido doing this for Python about a year ago and nobody showed up. :^) Perhaps if there were coordinated events? > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > cross-communication project? I think the answer will certainly be yes. Go to: http://www.egroups.com/list/zope/ and do a search for Dreamweaver. There are about 18 hits. --Paul From mj@antraciet.nl Fri Mar 12 13:58:00 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 12 Mar 1999 14:58:00 +0100 Subject: [Zope] Zope.cgi -> mod_zope Message-ID: <4.1.19990312145716.00bf3210@lisp.atmm.nl> Whoops, here is a copy for the list as well... (I forgot to 'reply-all', *smirk*) At 13:09 12/03/99 , you wrote: >Hello! > > Is there any plan to make complex "Apache + Zope" even more efficient by >making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? > I do hope there is. If implemented like the Apache JServ module (http://java.apache.org/) it should solve a lot of problems for everyone, adding performance to boot. JServ is in effect a separate process (like Zope) that receives it's request via the Apache server, with the help of a module, that translates the requests into socket calls. If someone modifies the module that comes with JServ to call the Zope process instead of the JServ process..... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 12 14:00:07 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 14:00:07 +0000 Subject: [Zope] Getting slashdot to work... Message-ID: HI all, In my quest to figure out how Zope works, I'm starting with ExtrenalMethods. I've moved slashdot.py into Extensions and set up an external method (id: get_headlines, funstion name: get_headlines, python module: slashdot). My 'calling' DTML is a method (slashdot_headlines) with the following;

    trying 'view' on this method gives the following; ... I *did* have a problem with using a proxy, but got around that by adding this line to slashdot.py (just before the urllib.urlopen() call). urllib.URLopener(proxies={'http': 'http://cache-box.you.domain:your_port'}) What am I doing wrong? many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From jeffbauer@bigfoot.com Fri Mar 12 13:57:26 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Fri, 12 Mar 1999 07:57:26 -0600 Subject: [Zope] Zope.cgi -> mod_zope References: Message-ID: <36E91D46.9DE0A239@rubic.com> Oleg Broytmann wrote: > Is there any plan to make complex "Apache + Zope" even > more efficient by making Zope.cgi a module (mod_zope, > let's name it, or mod_pcgi)? A mod_pcgi Apache module has been discussed. It would certainly be more efficient. One of the issues would be whether pcgi should get out of the process launch business, which would simplify a mod_pcgi and make it easier to debug. -Jeff Bauer From A.K.Heath@shu.ac.uk Fri Mar 12 14:41:16 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Fri, 12 Mar 1999 14:41:16 GMT Subject: [Zope] Create zope property from external method? Message-ID: <199903121441.OAA24954@teak.shu.ac.uk> I'm a zope newbie I have an external method in which I want to check whether a property within zope exists and if it doesn't exist to create it. How can I do this ? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From andreww@netscape.com Fri Mar 12 15:52:12 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 07:52:12 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9382C.DD2C695E@netscape.com> Paul Everitt wrote: > Andrew "Zopeweaver" Wooldridge wrote: > > 1) How do I get Zope to run as a service on my NT box so I > > dont have to > > stay logged in for it to run? > > The installer for the Zope NT binary asks you if you want to run as a > service -- in fact, that's the default. Take a look at the file > "doc/INSTALL.txt", under Installation on Windows, for more information. Ok, I'll check that out. My experience has been than I run it with start.bat and when I close that ms-dos window zope stops. > > > > 2) When I upgrad Zope will I have to re-build all of my applications? > > Unless we do something wrong, nope. > > > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > > idea of creating one on say the mozilla or slashdot servers > > I'm not sure if the Zope universe is big enough yet for that. I rememer > Guido doing this for Python about a year ago and nobody showed up. :^) > > Perhaps if there were coordinated events? > I think that now that zope is "out there " and is open source that you will find more people. Perhaps a news.zope.org newsgroup would be cool as well. From julian@zereau.net Fri Mar 12 16:41:40 1999 From: julian@zereau.net (julian@zereau.net) Date: Fri, 12 Mar 1999 16:41:40 -0000 (GMT) Subject: [Zope] please interpret Message-ID: "TypeError: read-only buffer, class" I keep getting this error, please can someone explain what typically causes it? --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Fri Mar 12 16:56:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 12 Mar 1999 11:56:52 -0500 (EST) Subject: [Zope] Create zope property from external method? In-Reply-To: <199903121441.OAA24954@teak.shu.ac.uk> Message-ID: On Fri, 12 Mar 1999, Andy Heath wrote: > I'm a zope newbie > > I have an external method in which I want to check whether a > property within zope exists and if it doesn't exist to create it. > > How can I do this ? > > Andy If your external method is called from DTML document 'foo' then something like this should do it (untested): def mymethod(self): if not self.hasProperty('myproperty'): self.manage_addProperty('myproperty','hello','string') BTW you can achieve the same effect from DTML Pavlos From jeffrey@Digicool.com Fri Mar 12 18:03:08 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 12 Mar 1999 13:03:08 -0500 Subject: [Zope] please interpret Message-ID: <199903121802.KAA23415@zope.codeit.com> >From: julian@zereau.net > > "TypeError: read-only buffer, class" > > I keep getting this error, please can someone explain what typically causes > it? This is a buglet in ExternalMethod where an exception has been raised and caught by ExternalMethod, and EM is looking at the values of the traceback for some special conditions. It's trying to do a string.lower() call on one of the values that in Python1.4 was always a string, but in Python1.5.x is an instance (in Python 1.5, standard exceptions became classes). This has been fixed and will be in the next release. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Fri Mar 12 19:56:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 11:56:16 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> <36E9382C.DD2C695E@netscape.com> Message-ID: <36E97160.E76D75F0@profitscape.net> Andrew Wooldridge wrote: > > I think that now that zope is "out there " and is open source that you will > find more people. > Perhaps a news.zope.org newsgroup would be cool as well. Welcome to the list Andrew! I'm glad you found my suggestions interesting enough to check Zope out. Regarding my last email, did you figure out how to do PUT and GET from DW yet? And do you know if Macromedia is going to add WebDAV support to DW? In case you missed it, I'd like to point you towards the Advanced DTML Howto: http://www.zope.org/Documentation/HowTo/DTML as that has more thorough information than the DTML guide I showed you before. I would also be interested in a newsgroup, as I am currently filtering the email into a folder and sorting it by thread, but a newsgroup would let me see the the same threaded view from home, as well. This would also have the effect of letting new users see the context of the current posts. Michael Bernstein. From FVilla@GestaltTechnology.com Fri Mar 12 20:45:52 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 12 Mar 1999 15:45:52 -0500 Subject: [Zope] IRC channel Message-ID: <36E97D00.26FB26F9@GestaltTechnology.com> Gentlemen, I am very pleased with Zope and in an effort to support it, I will create a channel called #zope under the EFnet. I am still learning about ZOpe, but I will try to help all I can. Also, I will be placing an infobot to provide lots of information on Zope. Drop by and pay a visit to #zope if you have some time... Cheers, Fredy Villa Gestalt Technology, LLC Fvilla@GestaltTechnology.com From jae@kavi.com Fri Mar 12 21:08:18 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 12 Mar 1999 13:08:18 -0800 (PST) Subject: [Zope] Access Control Advice Message-ID: Hello all, I am working on a Zope app, and would like to see if anyone has any tips for how I should handle access control in this situation... The site is a corporate organization site. It has many corporate members, each has an admin which has control over a subset of information kept in a relational database. I want to have just one role (comp_admin) for this. But each company can only have access to their company info. Thus I need to check that the admin belongs to that company. (there are also regular users who also have to login. they can view, but not modify) The users, passwords and roles are kept in the database too (UserDB). Each company has a unique id, and this is the primary keys in the DB. Each user is associated to the company using this id (a field in their table). Make sense? My current idea is: 1. Have a general main page which both users and admins login to. If they use the admin login, get their company id (comp_id) and create a link to the admin section using the magic of direct traversal (this way they can bookmark the admin page). Eg. admin section ('comp' is the zsql method, 1 is the comp_id, admin is the folder) Thus the comp_id of the company will be available, and I could: A. I could then (mabey?) use the comp_id in the UserDB query (in the admin folder) to only retrieve those people belonging to that company. OR (if I can't get to the comp_id from the UserDB query). B. I could then compare to the person's comp_id to the company's comp_id in each of the effect pages via a new standard_header. Thoughts? Better ways to do this? --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Fri Mar 12 21:30:22 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 12 Mar 1999 16:30:22 -0500 Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: >I know there is a way to convert underscores to spaces (spacify) but i >need it the other way around is. There a function to convert spaces to >underscores and if not how can i do it elseway? I haven't tryed this but on pg 10 of DTML Users Guide check out: maketrans(FROM,TO) and translate(S,TABLE[, DELS]) it seems to do character for character translations. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From kent@goathill.org Fri Mar 12 22:04:17 1999 From: kent@goathill.org (Kent Polk) Date: 12 Mar 1999 22:04:17 GMT Subject: [Zope] Tree Tag & SQL In-Reply-To: <199903121119.MAA31716@heaven.rotflol.cx> Message-ID: <921276256.763497@zoo-of-death.endicor.com> On 12 Mar 1999 05:55:00 -0600, ron@rotflol.cx wrote: >I am trying to implemented a directory service using the tree tag where the >info from several tables of a database. > >A simplified outline: > >+Locations > +Offices > +People > +Phones > Tel > Fax > +Addresses > >Problem: how to have the tree tag use a different SQL method for each level >WITHOUT resorting to external methods, because the directory should be >maintainable by mere mortals, not Python or SQL gods. Brian built a pretty cool way to hook SQL entries to particular folder trees for the PDMS. Each folder has a uniqueid which is stored in a sql table, along with the folder parent heirarchy, when an item is added to the SQL database. This allows each folder to easily identify which SQL entries belong directly to it and which SQL entries belong as children. This allows one to easily do things such as count the number of SQL items which are identified with a folder tree using SQL query syntax. Brian also provided dtml methods to move folders and their relationships around in the Zope heirarchy quite nicely. The mechanism holds quite a few SQL items in it and there has never been a need for a Python or SQL god to do any maintenance on the system at that level. However, it does use both SQL and External Methods. So, don't believe that just because something requires a fairly deep level of competence to create that it requires that same level of competence to maintain (me for example :^). That's simply one mark of a decent implementation. Kent From mbernstein@profitscape.net Sat Mar 13 00:12:28 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 16:12:28 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9AD6C.D3E15A56@profitscape.net> Paul Everitt wrote: > > Andrew "Zopeweaver" Wooldridge wrote: > > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > > cross-communication project? > > I think the answer will certainly be yes. Go to: > > http://www.egroups.com/list/zope/ > > and do a search for Dreamweaver. There are about 18 hits. I've been unable to log in to the egroups archive all day. Is there something wrong with their server? Michael Bernstein. From billr@coinet.com Sat Mar 13 02:26:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 12 Mar 1999 18:26:42 -0800 Subject: [Zope] sequence of numbers Message-ID: <9903121826.ZM7584@saab.coinet.com> This may be a newbie question, but I've loked thru the doc and didn't spot any obvious way to do this, short of an External Method. What I want to do is given a limit number, iterate over a sequence of DTML commands. This would be an obvious use for #in (which I'm using elsewhere for other things) except I don't have a sequence - just the number of items in the sequence, as it were. In psuedo-code, what I'm after is something like this: for (i=0; i < ; i++) { // some DTML/HTML code using "i" } Now if, given a #var, I could get a list - e.g.: --> list = [0, 1, 2, ... max_items] or [1, 2, ... max_items], it doesn't make much difference. then I could just use: // some stuff using Is there an easy way to do this? Is there *any* way to do it? -Bill Randle Central Oregon Internet billr@coinet.com From jkhoffman@usa.net Sat Mar 13 04:18:55 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Fri, 12 Mar 1999 23:18:55 -0500 (EST) Subject: [Zope] User Profiles? Message-ID: I am working on a web site for a local outdoors group. They have about 1,000 members and are growing fast, but their web site needs help. I had lunch with their leader today, and strongly advocated the use of Zope to redo their entire web site. He loved my ideas, and gave me the go ahead on the site. Now, my first question (I'm sure I'll have many) to the group is: How do I create user profiles? Each user of the system needs to have specific information associated with them including: full name, address, telephone numbers, a picture (gif or jpeg, easily uploadable by the user), their interests, a history of the events they've sponsored and/or attended, a buddy list (basically just a collection of other member ids), and so on. I have downloaded the UserDb product, and figure I might be able to extend it to support the extra columns I require. However, a big part of me wants to keep as much of this in Zope as I can. I like the idea of the objectstore, and don't necessarily like having to fudge SQL tables every time I add or remove an attribute from the profiles (not that I will be doing that, necessarily). What do those with a higher Zope Zen Rating than I suggest in this situation? I'm also going to be making an Events Calendar, which is connected up with all the User information (who's running the event, who's signed up to attend, etc.). Is all of this something that Tabula would be good for? If so, who do I have to sleep with to get it? :^) I am willing to write up a case study, testimonial, contribute any code I write back to the community, etc., whatever is requested. I just want to do a good job for these guys, making myself and Zope look good in the process. HELP! *grin* Jeff K. Hoffman From andreww@netscape.com Sat Mar 13 07:20:04 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:20:04 -0800 Subject: [Zope] extending dreamweaver into zope Message-ID: <36EA11A4.C9C0527E@netscape.com> I can see a number of things that DW will (I think) do to help out Zope - but there is one item in the way - FTP support There is no direct way for Dreamweaver to send pages back to Zope without either writing to a filesystem via a LAN or by using FTP (no webdav yet). So my question is this - when will we get ftp support in zope? (not just alpha). I am looking at the dtml spec right now and thinking about building drag-and-drop objects for DW that talk zope. One thing I need is for someone on the zope team or elsewhere to help me test these so that I get the syntax correct. Email me directly at andreww@netscape.com From andreww@netscape.com Sat Mar 13 07:21:30 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:21:30 -0800 Subject: [Zope] the HTML UI - can I help? Message-ID: <36EA11FA.E21D6A0D@netscape.com> I see a number of things that might help enhance the usability of the zope UI, how do I go about submitting those possible changes to the HTML code ? I could mock up a page with HTML and explain how it works... From rob.page@digicool.com Sat Mar 13 14:03:45 1999 From: rob.page@digicool.com (Rob Page) Date: Sat, 13 Mar 1999 09:03:45 -0500 Subject: [Zope] RE: [Zope-dev] De-Authentication / Logout Message-ID: <613145F79272D211914B0020AFF6401906919E@GANDALF> > It's always been my impression that unless Zope can be fitted with a > cookie-based-authentication system (vs. the current > basic-auth), there's > *no* way to force a "logout" because of the way the *browsers* handle > basic-auth. Recent notes about Lynx notwithstanding, I agree. It's extremely frustrating when debugging the security of an app! Zope _CAN_ use a cookie-based authentication scheme with the UserDB product. UserDB uses Database Adapter (e.g., Oracle) to connect to a store of user info (e.g., userid and password). I can imagine some motivated community member taking a look at the current incarnation of UserFolder and UserDB and cookie-ifying the UserFolder. --Rob From zope@zope.org Sat Mar 13 14:00:53 1999 From: zope@zope.org (Wade Leftwich) Date: Sat, 13 Mar 1999 09:00:53 -0500 Subject: [Zope] - XML-style DTML code In-Reply-To: <199902030028.TAA02197@albert.digicool.com> Message-ID: <199903131359.IAA06323@gem.lightlink.com> "Jeffrey P Shell" wrote, back on Feb 2: [snip] > The editing-in-HTML-editors will always be a problem with the current > syntax, in my opinion, because (real code here, and code i'm not at all > ashamed to have written): > > > > will give just about any editor a headache. Cyberstudio, at a minimum, > moves the comment tags outside of the
    When submitting the form, it displays me a new page (generated by Zope) asking me again the auteur parameter, as if the auteur variable wasn't passed to the Z SQL method :-( Someone posted a mail recently with an example use of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' text: INSERT INTO messages (auteur) ... When I try this, I get: Error, pg.error: server fatal error. Please report to your db administrator. SQL used: INSERT INTO messages (auteur) VALUES ('testing again', 'blahblahblah', 'now', 'f') Is there something specific to PostGreSQL ? (Using Zope 1.10.2, PostGreSQL 6.4.2, PyGreSQL-2.2, ZPyGreSQLDA 0.02) I looked in the Z SQL Method User's guide, but nothing is written about adding data to a DB :-( -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From A.K.Heath@shu.ac.uk Sat Mar 13 18:13:29 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Sat, 13 Mar 1999 18:13:29 GMT Subject: [Zope] object modification date - how ? Message-ID: <199903131813.SAA28032@teak.shu.ac.uk> I'm still a zope newbie Is there an easy way I can get a a modification date for an object (so I can do a "last modified on ...")? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From hannu@trust.ee Sat Mar 13 19:08:52 1999 From: hannu@trust.ee (Hannu Krosing) Date: Sat, 13 Mar 1999 21:08:52 +0200 Subject: [Zope] INSERT Syntax with Zope & ZPyGreSQLDA References: <87hfrp1js9.fsf@eurythro.savigny.stp> Message-ID: <36EAB7C4.8DD42BE@trust.ee> lstep@mail.dotcom.fr wrote: > > Hello, > > I'm trying to use PostGreSQL with Zope, but I'm having > problems using the SQL INSERT method in Z methods which > require parameters. > > For example, I make a Z SQL Method named 'foo'. > In it: > INSERT INTO messages > VALUES > (, > 'blahblahblah', 'now', 'f') > > I write the name auteur in the 'arguments' form. > > Next I create a DTML document with: > > Auteur:
    why no type=text ? > > > > When submitting the form, it displays me a new page > (generated by Zope) asking me again the auteur parameter, > as if the auteur variable wasn't passed to the Z SQL method :-( > > Someone posted a mail recently with an example use > of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' > text: INSERT INTO messages (auteur) ... > > When I try this, I get: > > Error, pg.error: server fatal error. Please report to your db administrator. A good to test your SQL is using psql. And upgrading to PyGreSQL 2.3 or later, which return proper sql messages > SQL used: > > INSERT INTO messages (auteur) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') This is definitely wrong ;( something like INSERT INTO messages (auteur,title,bookdate,any_good) VALUES ('testing again', 'blahblahblah', 'now', 'f') might have worked. You may also mean current_date or current_time instead of now or now() From eric.kidd@pobox.com Sat Mar 13 19:47:48 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Sat, 13 Mar 1999 14:47:48 -0500 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com>; from Bill Randle on Fri, Mar 12, 1999 at 06:26:42PM -0800 References: <9903121826.ZM7584@saab.coinet.com> Message-ID: <19990313144748.F30044@moebius.dartmouth.edu> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > This may be a newbie question, but I've loked thru the doc and didn't > spot any obvious way to do this, short of an External Method. I didn't find any other way, either. But here's an External Method you can use. --- begin loop_range.py --- LoopRangeError = 'LoopRangeError' # Name an exception class. loop_range_limit = 100 # Maximum allowable loop index. def loop_range(max): if max <= loop_range_limit: return range(max) else: raise LoopRangeError, max --- end --- Notice that it won't allow the "max" parameter to be bigger than 100. This prevents users from generating near-infinite amounts of HTML and freezing your server. You can edit this to any value you like, or even remove it if you trust all your DTML authors. Now, create an External method with the following properties: id: loop_range title: Loop Iteration Method method: loop_range file: loop_range To use this method in DTML, try the expr attribute of the #in construct: --- begin sample DTML ---

    Index:

    --- end --- > Is there an easy way to do this? Is there *any* way to do it? Yup. ;-) Zope has tons of power hiding under the hood, and a skilled Python programmer could make it do almost anything. Cheers, Eric From tseaver@palladion.com Sat Mar 13 19:48:14 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 13:48:14 -0600 Subject: [Zope] Cool! Attribution! References: <199903122000.MAA26389@zope.codeit.com> Message-ID: <36EAC0FE.AF740889@palladion.com> A quick plug for a "Powered by Zope" site I just saw: http://www.denarius.com/ -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From mj@antraciet.nl Sat Mar 13 06:41:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 07:41:41 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com> Message-ID: <4.1.19990313073352.00aa37b0@mail.atmm.nl> At 03:26 13-3-99 , Bill Randle wrote: >Now if, given a #var, I could get a list - e.g.: > --> list = [0, 1, 2, ... max_items] >or [1, 2, ... max_items], it doesn't make much difference. >then I could just use: > > // some stuff using > > >Is there an easy way to do this? Is there *any* way to do it? One way of doing this would be using an external method: def MyRange(iMax): return range(iMax) -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Sat Mar 13 20:06:42 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 21:06:42 +0100 Subject: [Zope] object modification date - how ? In-Reply-To: <199903131813.SAA28032@teak.shu.ac.uk> Message-ID: <4.1.19990313210503.00aaec60@mail.atmm.nl> At 19:13 13-3-99 , Andy Heath wrote: >I'm still a zope newbie > >Is there an easy way I can get a a modification date for an object >(so I can do a "last modified on ...")? > >Andy The property bobobase_modification_time gives you the last modification time. This is not in the docs, I gleaned it from Zope's source (it is used in amongst other places the document edit screen). This is a good item for the FAQ. Martijn Pieters. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Sat Mar 13 22:59:15 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 13 Mar 1999 23:59:15 +0100 Subject: [Zope] Structured text and lists Message-ID: <36EAEDC2.46997FE5@sol.cz> Can I make ordered/unordered lists using structured text, without doublespacing lines? When I write single spaced lines: - one - two - three it's not rendered as list. And when I write doublespaced lines, it's rendered as doublespaced list... -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 02:38:07 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sat, 13 Mar 1999 21:38:07 -0500 (EST) Subject: [Zope] Bug in sqlvar.py? Message-ID: Hello, everyone. I'm bustin' ass on my project for the outdoors group and ran into a problem with the #sqlvar command. At the top of the file, in the docstring, it says: For example, given the tag:: And, when I submit the query while leaving address2 blank I get: Invalid empty string value for address2 When reading the code, beginning on line 200 there is the else case which handles values of types other than int or float: else: v=str(v) if not v and t=='nb': raise ValueError, ( 'Invalid empty string value for %s' % name) v=md.getitem('sql_quote__',0)(v) #if find(v,"\'") >= 0: v=join(split(v,"\'"),"''") #v="'%s'" % v There is absolutely no check for the optional flag in this case as there are in the cases for int and float. Is this check supposed to be handled elsewhere in the code, and never make it here, or is this an oversight? I can patch it to fix the problem quite easily, but if this is not the preferred way of doing things I'd like to know (to avoid patching it every time a new Zope comes out.) I have two address lines, address1 and address2. I just want it to set address2 to null if the user does not fill it out. Is that too much to ask? :^) As I said, if I'm blatantly overlooking something, please let me know. If not, I'll be happy to submit a patch and/or report this in the collector. Thanks. Hope you all are having a good weekend! jkh From tseaver@palladion.com Sun Mar 14 04:29:45 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 22:29:45 -0600 Subject: [Zope] please interpret Message-ID: <36EB3B39.A630ED79@palladion.com> On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > >From: julian@zereau.net > > > > "TypeError: read-only buffer, class" > > > > I keep getting this error, please can someone explain what typically > > causes it? > > This is a buglet in ExternalMethod where an exception has been raised and > caught by ExternalMethod, and EM is looking at the values of the traceback > for some special conditions. It's trying to do a string.lower() call on > one of the values that in Python1.4 was always a string, but in Python1.5.x > is an instance (in Python 1.5, standard exceptions became classes). This > has been fixed and will be in the next release. Could you post the patch, please? This error message hits me about five ways from Sunday. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Sun Mar 14 04:58:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Sun, 14 Mar 1999 15:58:49 +1100 Subject: [Zope] please interpret In-Reply-To: Your message of "Sat, 13 Mar 1999 22:29:45 MDT." <36EB3B39.A630ED79@palladion.com> Message-ID: <199903140458.PAA15586@mbuna.arbhome.com.au> The following patch should do the magic thing: RCS file: ExternalMethod.py,v retrieving revision 1.1 diff ExternalMethod.py.dist ExternalMethod.py --- ExternalMethod.py.dist +++ ExternalMethod.py @@ -251,7 +251,7 @@ error_type=sys.exc_type error_value=sys.exc_value tb=sys.exc_traceback - if lower(error_type) in ('redirect',): + if lower(str(error_type)) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): It's not the way it's fixed in the new external method code, but it works for me, and should be enough to keep you going... Anthony. >>> Tres Seaver wrote > On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > > > >From: julian@zereau.net > > > > > > "TypeError: read-only buffer, class" > > > > > > I keep getting this error, please can someone explain what typically > > > causes it? > > > > This is a buglet in ExternalMethod where an exception has been raised and > > caught by ExternalMethod, and EM is looking at the values of the traceback > > for some special conditions. It's trying to do a string.lower() call on > > one of the values that in Python1.4 was always a string, but in Python1.5.x > > is an instance (in Python 1.5, standard exceptions became classes). This > > has been fixed and will be in the next release. > > Could you post the patch, please? This error message hits me about five ways > from Sunday. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) -- Anthony Baxter It's never to late to have a happy childhood. From TomJenkins@zentuit.com Sun Mar 14 05:14:03 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 00:14:03 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903140517.AAA01144@mail.digiweb.com> Hello all, First let me start by saying I've finally cleared time to play with zope. Its coming along nicely but I've hit a snag. The following snippet in a form: Staff using MySQL produces the following HTML: Staff Now unfortunately I believe the L is causing the insert to fail with an invalid integer. I specified user_id as integer unsigned zerofill auto_increment. Does anyone know why the 'L' is being return? TIA -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From mj@antraciet.nl Sun Mar 14 08:05:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sun, 14 Mar 1999 09:05:02 +0100 Subject: [Zope] MySQL & integer IDs In-Reply-To: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <4.1.19990314090101.00aaa680@mail.atmm.nl> At 06:14 14-3-99 , Tom Jenkins wrote: >Now unfortunately I believe the L is causing the insert to fail with an >invalid integer. I specified user_id as integer unsigned zerofill >auto_increment. Does anyone know why the 'L' is being return? > The L value is caused by a long integer to string conversion. You can get rid of the L by specifying a C format string, like so: Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From lstep@mail.dotcom.fr Sun Mar 14 10:17:30 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 14 Mar 1999 11:17:30 +0100 Subject: [Zope] 'Enter query parameters' In-Reply-To: Hannu Krosing's message of "Sat, 13 Mar 1999 21:08:52 +0200" References: <87hfrp1js9.fsf@eurythro.savigny.stp> <36EAB7C4.8DD42BE@trust.ee> Message-ID: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Hannu Krosing writes: > > Auteur:
    > > why no type=text ? Oops forgot it. Well it worked without it :-) > This is definitely wrong ;( > > something like > INSERT INTO messages (auteur,title,bookdate,any_good) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') Ow you're right. But this hasn't changed anything, it still ask me for the parameters after clicking on submit :-( In the HTML form, I replaced the action with '' where add_message is the Z SQL method. And it adds correctly the record to my Database, but displays 'This was not a query'. And, well, I don't think taht's the correct method to add records, by using the test method :-)) Is there anywhere an example of product adding some records to a database ? > might have worked. You may also mean current_date or current_time > instead of now or now() What's the difference between now and current_date / current_time I tried all of them, and they give exactly the same result (the good date :-) Thanks, Luc -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From anthony@interlink.com.au Sun Mar 14 12:32:36 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Sun, 14 Mar 1999 23:32:36 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) Message-ID: <199903141232.XAA17000@mbuna.arbhome.com.au> Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ I'm looking for opinions on the LDAP zope product I've been building. Right now, LDAP connections work, LDAP Methods work, but there's still a bit more to do. Right now, the following is unimplemented: In ZLDAPconn: . Anything other than simple_bind(who, passwd) for connecting to the LDAP server . meaningful doc strings In ZLDAPMethods: . Pluggable Brains . Result Caching . Limits on the number of results . Variable interpolation in the filters, and in the base DN . modify or add queries (only search is supported right now) . meaningful doc strings :) Other stuff: . UserLDAP is not finished yet (or released) - the primary issue is the storing of roles and domains. Right now this would have to be some non-standard LDAP attribute... but what should it be? It also probably needs modify and add added to ZLDAPMethods before being really useful. Things I'd like comments on: For ZLDAPconn: what other bind methods would you like to see? For ZLDAPMethods: how should add/modify/query be distinguished? Separate methods? I had planned to get variable interpolation working tonight, but decided I'd rather get an early night. Probably tomorrow evening, instead. Stuff I hope to get going in the next day or so: variable interpolation, pluggable brains. Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ It requires David Leonard's ldapmodule, from http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the ldapmodule works on other platforms (it's available in source, and also as a windows .pyd) it should work elsewhere, too. Anthony From prudek@sol.cz Sun Mar 14 14:56:37 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 15:56:37 +0100 Subject: [Zope] fsimport HowTo Message-ID: <36EBCE25.55F5743A@sol.cz> Trying to use fsimport.py module, I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /ppm/fsimport) File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/web/srvs-sol/www.sol.cz/ppm/index.htm', form: fsdir: '/web/srvs-sol/www.sol.cz/ppm/index.htm' [environ info omitted for brevity] ), {}, (None,))) TypeError: read-only buffer, class I put fsimport.py into /usr/local/zope/Extensions/ (I had to create Extensions dir), and added fsimport external method to a directory 'ppm', then I pointed my browser to http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index.htm, which probably is not the way to do it, is it? -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 15:51:48 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 10:51:48 -0500 (EST) Subject: [Zope] 'Enter query parameters' In-Reply-To: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Message-ID: On 14 Mar 1999 lstep@mail.dotcom.fr wrote: > In the HTML form, I replaced the action with > '' > > where add_message is the Z SQL method. And it adds correctly the > record to my Database, but displays 'This was not a query'. > And, well, I don't think taht's the correct method to add records, > by using the test method :-)) > > Is there anywhere an example of product adding some records to > a database ? Try something like: And then create a DTMLDocument or DTMLMethod called add_message_result like this:

    Success!

    Your message was added successfully! Thanks!

    The success message will only be shown if the query succeeds, because it is below the #call statement. Hope this helps! > Thanks, > Luc jkh From TomJenkins@zentuit.com Sun Mar 14 17:46:36 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 12:46:36 -0500 Subject: [Zope] MySQL & integer IDs In-Reply-To: <4.1.19990314090101.00aaa680@mail.atmm.nl> References: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <199903141749.MAA15778@mail.digiweb.com> > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Sun Mar 14 17:55:13 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 17:55:13 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903141755.RAA06010@cheviot.ncl.ac.uk> > I put fsimport.py into /usr/local/zope/Extensions/ (I had to create > Extensions dir), and added fsimport external method to a directory > 'ppm', then I pointed my browser to > http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index .htm, > which probably is not the way to do it, is it? > > -- > Milos Prudek The docs seem to imply that you provide fsdir with a *directory* ie fsdir=/web/srvs-sol/www.so.cz/ppm http://www.zop.org/Documentation/HowTo/FSimport for more details. tone From prudek@sol.cz Sun Mar 14 18:44:09 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 19:44:09 +0100 Subject: [Zope] fsimport HowTo References: <199903141755.RAA06010@cheviot.ncl.ac.uk> Message-ID: <36EC0379.CA7E445B@sol.cz> > The docs seem to imply that you provide fsdir with a *directory* > ie fsdir=/web/srvs-sol/www.so.cz/ppm I've tried that too. Didn't help. What could be wrong? -- Milos Prudek From ShawH@STHS.org Sun Mar 14 19:25:05 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Sun, 14 Mar 1999 13:25:05 -0600 Subject: [Zope] ZAP Message-ID: How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer. BTW, running ZopeHTTPServer multi-threaded worked well for about 15 minutes. Then suddenly certain pages wouldn't load. I stopped and restarted the server, but the pages still wouldn't load. I also noticed that if I stopped Netscape and hit reload, it would cause several new ZopeHTTPServer instances to appear, and doing so again would continue to create new instances which never seemed to dissappear. Are these locking the items they are downloading? The behavior I saw seemed consonant with it locking the item it was downloading, then failing to recognize the netscape had disconnected, and thus never removed its lock. When I restarted it single-threaded, all the pages came up without a problem. I would really like to move to Zap, but I can't afford at this point to have the URL of the page change. How can I make a Zope pcgi accessible as the root of a Zap install? Please help. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From prudek@sol.cz Sun Mar 14 19:57:08 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 20:57:08 +0100 Subject: [Zope] and it did not work, but when I use it works nicely... How do I do this with #var ? -- Milos Prudek From tony.mcdonald@ncl.ac.uk Sun Mar 14 20:11:37 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 20:11:37 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903142011.UAA19578@cheviot.ncl.ac.uk> >> The docs seem to imply that you provide fsdir with a *directory* >> ie fsdir=/web/srvs-sol/www.so.cz/ppm > > I've tried that too. Didn't help. What could be wrong? > > -- I've imported a directory using fsimport and it worked for me. I can only suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Even more clutching here - did you leave the trailing slash off the fsdir attribute? hth tone From pavlos@gaaros.msrc.sunysb.edu Sun Mar 14 20:23:25 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sun, 14 Mar 1999 15:23:25 -0500 (EST) Subject: [Zope] and it did not should do it but your second method I think is better. > work, but when I use it works nicely... How do I do > this with #var ? Pavlos From tseaver@palladion.com Sun Mar 14 20:50:29 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sun, 14 Mar 1999 14:50:29 -0600 Subject: [Zope] Structured text and lists Message-ID: <36EC2115.8511A0E2@palladion.com> Milos Prudek wrote: > Can I make ordered/unordered lists using structured text, without > doublespacing lines? When I write single spaced lines: > - one > - two > - three > it's not rendered as list. And when I write doublespaced lines, it's > rendered as doublespaced list... In lib/python/StructuredText/StructuredText.py, modify the ul() and ol() methods as follows: Change: if p: p="

    %s

    " % strip(ctag(p)) to if p: p="%s" % strip(ctag(p)) I posted a more robust diff to the zope-dev list last night, which allows replacement of the list-element format string from an ExternalMethod. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From rhww@erols.com Sun Mar 14 22:38:51 1999 From: rhww@erols.com (Robert Wentworth) Date: Sun, 14 Mar 1999 17:38:51 -0500 Subject: [Zope] Simulating static URLs, end-user session management Message-ID: <36EC3A7B.53817A8D@erols.com> Hi. I am very new to Zope, having spent the last day (with only about two hours of sleep) excitedly pouring through the documentation. I still have a lot to digest, but there are some questions I did want to ask at this stage: A) Are there reasonable ways of arranging to have the URLs for some/many Zope generated pages appear, as far as the outside world is concerned, to be URLs for static HTML pages? The issue is one of indexing by search engine robots. I anticipate building a site where most of the content will change fairly slowly, and where there would be a standard set of views of the data which would be essentially static at a logical level. I really want search engines to index those static views. (There would likely also be dynamically generated views which shouldn't be indexed.) So, I think the requirement is that there should be a way of getting to pages with a URL like: http://www.mydomain.com/here/there/everywhere.html as opposed to http://www.mydomain.com/here/there/everywhere or http://www.mydomain.com/here/there?everwhere I supect there are a number of ways of tricking Zope into accepting URLs in the first form, or perhaps into actually generating some static pages which would be served up directly by the HTTP server (though my quick check of the archives suggests this is an unresolved issue). My questions are: 1) Has anyone already done something like this? 2) What approaches could you suggest to accomplish this? 3) Is trying to arrange this likely to be a big task or a little task (as subjective as that question is)? B) On another topic entirely, I am wondering about the issue of tracking sessions of end-users. (Hmmm... maybe I should have done more searching in the archives -- this must be a common issue.) Various application servers (e.g., for Java servlets) that I've looked at provide facilities for maintaining "session" information (not in the sense of a transaction as used in Zope) about end users. Typically this would be done by setting a cookie or by incorporating a session ID into dynamically generated URLs. I haven't noticed anything about this in the Zope documentation. I'm guessing that perhaps that is because Zope is so powerful that implementing something like this yourself is regarded as trivial. But thinking about it a bit, I'm not sure what the Zope mindset would be about how to do this. Zope sends requests directly to objects. But in order to manage a session cookie (or whatnot) you need to add a certain functionality to every (or most HTTP) requests. You certainly don't want to have every object explicitly worry about this. Is there a hook that would allow all requests to pass through some sort of filter that extracts/manages session information? Or is there some other standard solution to this problem? For what it's worth, I am interested in using Zope to build my second E-commerce site. I built the first site by using Python to generate static pages from a data structure, combined with lots of JavaScript and a little Perl CGI. It worked, but I'm sure there is a better way. I was leaning towards a Java servlet plus templating package solution, until I found Zope. I've been a Python proponent for a while, but Zope is threatening to make my brain explode. Talk about paradigm shifts. C) Despite my Python and OO background, it's not easy to absorb it all at once. This does make me somewhat concerned, as my business partner, who will be a content provider, has no OO experience. I don't want to produce a system where it will be hopeless for her (possibly with help from another developer) to take over if I get hit by a bus. Thoughts...? Robert Wentworth rhww@erols.com (aka webmaster@tripplebrookfarm.com) From jeffbauer@bigfoot.com Sun Mar 14 23:03:14 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sun, 14 Mar 1999 17:03:14 -0600 Subject: [Zope] Simulating static URLs, end-user session management References: <36EC3A7B.53817A8D@erols.com> Message-ID: <36EC4032.20B3346E@rubic.com> Robert Wentworth wrote: > C) Despite my Python and OO background, > it's not easy to absorb it all at once. This does > make me somewhat concerned, as my business partner, > who will be a content provider, has no OO experience. > I don't want to produce a system where it will be > hopeless for her (possibly with help from another > developer) to take over if I get hit by a bus. > Thoughts...? Robert, I'm only going to address your last point, but it's something I feel strongly about. Let's ignore the technical issues, except to mention that only you can judge is Zope is appropriate for your situation. Fortunately, you have an excellent opportunity to discover its relative strengths and weaknesses. One of the important secondary issues (some would claim the primary) about Open Source is that it protects your business against the "What happens if Robert gets hit by a bus?" scenario. Digital Creations is in the business of providing support to organizations that use its products. Heck, in this sense it's even superior to key man insurance. Furthermore, because of DC's courageous decision to release Zope as Open Source, not only is your company protected against *your* untimely demise, but it's even secure against the day Hadar decides to transfer all the company assets into hedge funds. Best regards, Jeff Bauer Rubicon, Inc. From hadar@verticality.com Mon Mar 15 01:18:05 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sun, 14 Mar 1999 20:18:05 -0500 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC4032.20B3346E@rubic.com> Message-ID: <000101be6e81$ad7c65c0$7863efa1@hadar.bestweb.net> [excellent answer from Jeff Bauer snipped] > Furthermore, because of DC's courageous decision to > release Zope as Open Source, not only is your company > protected against *your* untimely demise, but it's even > secure against the day Hadar decides to transfer all > the company assets into hedge funds. OUCH. My plan is now unveiled to the world prematurely. That settles it. Jeff, I'm taking back your shares in the hedge fund for telling :-) From JMiller@zefer.com Mon Mar 15 04:01:30 1999 From: JMiller@zefer.com (Justin Miller) Date: Sun, 14 Mar 1999 23:01:30 -0500 Subject: [Zope] Help! How do I make the JobBoard example work? Message-ID: Hi All, As an exercise, I'm trying to get the JobBoard example code given in http://www.zope.org/Documentation/Reference/ObjectPublishingIntro to work in Zope (as opposed to Bobo/ZPublisher), and am having some difficulty. Copying the PeeWee's playhouse example in http://www.zope.org/Documentation/Reference/ExternalMethods, I placed all the JobBoard files in zope/lib/python/shared/JobBoard, made an empty __init__.py file, fixed up the dtml_loc variable, and put a JobBoard_utils.py file into zope/extensions, which reads as follows: "utility to add JobBoard objects to folders" def addJobBoard(self,id): "Add a playhouse to the current folder" if not hasattr(self,id): setattr(self,id,JobBoard("Python Jobs")) return "JobBoard added with id %s" % id else: return "id %s already in use" % id Using Zope's management GUI, I successfully added the addJobBoard function as an external method, and have successfully called it to create a JobBoard object called testJobBoard. However, when I try to view the testJobBoard object, I get an error message that reads "Sorry, the requested document does not exist." The addJobBoard function was added as an external method to the root folder, so my understanding is that the testJobBoard object should also be accessible from within the root folder (that is that its URL is "localhost:9673/testJobBoard"). What am I doing wrong here? Also, what is the proper way to debug this sort of problem? The output of the zope process merely mentions a GET request for the given URL, and the 404 response code -- no further detail is given. Thanks in advance for the help! -Justin http://www.zope.org/Documentation/Reference/ProductTutorial.tar.gz From jkhoffman@usa.net Mon Mar 15 04:30:59 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:30:59 -0500 (EST) Subject: [Zope] ZAP In-Reply-To: Message-ID: On Sun, 14 Mar 1999, Shaw, Howard wrote: > How can I configure ZAP so that all http requests go through the cgi? > Zope is the only thing running through this apache, so I don't want > everything on the site prefixed with Zope/ (or anything else, so no, I > don't just want to know how to change the prefix). This is basically > what is keeping me on ZopeHTTPServer. > > [snip] > > How can I make a Zope pcgi accessible as the root of a Zap install? > Please help. In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do. In httpd.conf, make sure you have these lines (I put them at the end): Alias / /cgi-bin/Zope.cgi # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...] You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is. I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache. Let me know if you have problems; I'll do what I can to help. > Howard C. Shaw III jkh From jkhoffman@usa.net Mon Mar 15 04:32:12 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:32:12 -0500 (EST) Subject: [Zope] and it did not > work, but when I use it works nicely... How do I do > this with #var ? I think you need . I haven't tested this, so I'm not sure it works, but I am 99% sure this is what you're going for. > Milos Prudek jkh From rhww@erols.com Mon Mar 15 05:20:02 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 00:20:02 -0500 Subject: [Zope] mailing list archive download in bulk? Message-ID: <36EC9882.79908EE8@erols.com> Is there any way of downloading large blocks of the Zope mailing list archive in bulk, rather than wading through one message at a time over the web (which is rather painful, especially since I haven't discovered how to get a listing of all the discussion threads so I can be more systematic)? From chsrinfo@guetali.fr Mon Mar 15 05:43:45 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 15 Mar 1999 09:43:45 +0400 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <00e701be6eb0$962a3300$147800a0@pc-pi0> >Are you confused by the subtleties of DTML? Want the skinny on advanced >DTML tricks and gotchas? Check out my advanced DTML HowTo: > >http://www.zope.org/Documentation/HowTo/DTML > Thanks You say "one shouldn't have to use instead of ." However, i find it useful to write: instead of: Hope that helps... Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Mon Mar 15 08:04:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:04:33 +0100 Subject: [Zope] and it did not >work, but when I use it works nicely... How do I do >this with #var ? > is the best way to go. It'll insert a IMG tag with an absolute URL, and if it knows the image width and height, these will be included in the image tag. Make sure you use the quotes! img.name means: the attribute 'name' of the object called 'img'. You can specify the image width and height by hand in the images' property screen, but if you uploaded a PNG or GIF image, Zope will deduce the width and height from the image itself. The next Zope release will also support JPEG image size detection. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:25:50 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:25:50 +0100 Subject: [Zope] . > > I haven't tested this, so I'm not sure it works, but I am 99% sure this is It doesn't work. > what you're going for. Yes, that's what I want. Maybe what I'm trying to do is against object-oriented concept? I can see that images should be kept with the DTML page that calls them. I just need images to be accessible by a group (role) of "image managers", but the code that holds it to together should be accessible to an Admin role only. -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:46:56 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:46:56 +0100 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC3A7B.53817A8D@erols.com> Message-ID: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> At 23:38 14/03/99 , Robert Wentworth wrote: >A) Are there reasonable ways of arranging to have > the URLs for some/many Zope generated pages appear, as > far as the outside world is concerned, to be URLs > for static HTML pages? > > The issue is one of indexing by search engine robots. > I anticipate building a site where most of the > content will change fairly slowly, and where there > would be a standard set of views of the data which > would be essentially static at a logical level. I > really want search engines to index those static > views. (There would likely also be dynamically > generated views which shouldn't be indexed.) > > So, I think the requirement is that there should be a > way of getting to pages with a URL like: > > http://www.mydomain.com/here/there/everywhere.html > > as opposed to > > http://www.mydomain.com/here/there/everywhere > > or > > http://www.mydomain.com/here/there?everwhere > There is little reason to avoid naming your objects with the extension built into the ID, like everywhere.html. You can then simply refer to the object using that ID, which to a not so smart indexing bot will look like an HTML file (but it should *really* look at the MIME-type...). The only problem would be referencing the object, as you have to take precautions to make sure Python doesn't try to reference the attribute named 'html' on the object 'everywhere'. So, as long as you name your DTML Documents that are to be indexed with the .html extension, everything should go fine. >B) On another topic entirely, I am wondering about the issue >of tracking sessions of end-users. (Hmmm... maybe I should >have done more searching in the archives -- this must be >a common issue.) Various application servers (e.g., for >Java servlets) that I've looked at provide facilities >for maintaining "session" information (not in the sense >of a transaction as used in Zope) about end users. Typically >this would be done by setting a cookie or by incorporating >a session ID into dynamically generated URLs. I haven't >noticed anything about this in the Zope documentation. >I'm guessing that perhaps that is because Zope is so >powerful that implementing something like this yourself >is regarded as trivial. But thinking about it a bit, >I'm not sure what the Zope mindset would be about how >to do this. Zope sends requests directly to objects. >But in order to manage a session cookie (or whatnot) >you need to add a certain functionality to every (or >most HTTP) requests. You certainly don't want to have >every object explicitly worry about this. Is there >a hook that would allow all requests to >pass through some sort of filter that extracts/manages >session information? Or is there some other standard >solution to this problem? > No, Zope has no Session tracking facilities at this moment. DC is however working on this. At the moment you will find a 'Session' object in your Zope distribution, but this is a different concept altogether, and will be renamed to 'Version' when client session objects appear. >C) Despite my Python and OO background, >it's not easy to absorb it all at once. This does >make me somewhat concerned, as my business partner, >who will be a content provider, has no OO experience. >I don't want to produce a system where it will be >hopeless for her (possibly with help from another >developer) to take over if I get hit by a bus. >Thoughts...? DC can be hired to help out... and as Zope is now Open Source, a growing number of people can help out. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:53:46 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:53:46 +0100 Subject: [Zope] should do it but your second method I think is > better. Yes, this works. Quotes helped. Now, how can I add border=0 ? -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:55:27 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:55:27 +0100 Subject: [Zope] mailing list archive download in bulk? In-Reply-To: <36EC9882.79908EE8@erols.com> Message-ID: <4.1.19990315095409.00be5640@lisp.atmm.nl> At 06:20 15/03/99 , Robert Wentworth wrote: >Is there any way of downloading large blocks of the >Zope mailing list archive in bulk, rather than >wading through one message at a time over the >web (which is rather painful, especially since >I haven't discovered how to get a listing of >all the discussion threads so I can be more >systematic)? > Download the archive at http://www.zope.org/pipermail/zope/ You can get overviews by thread, date, subject and author, and DL the whole list in Gzip'd files. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:39:19 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:39:19 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: <4.1.19990315103629.00c168a0@lisp.atmm.nl> At 06:43 15/03/99 , Service Informatique CHSR wrote: >You say "one shouldn't have to use instead of >." >However, i find it useful to write: > > > > > >instead of: > > > > > How about or So we can confuse each other even more =). -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:50:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:50:45 +0100 Subject: [Zope] should do it but your second method I think is >> better. > >Yes, this works. Quotes helped. > >Now, how can I add border=0 ? > Yep, you got use there.... calling the Image object doesn't generate extra information like border=0. DC is working on a solution to that, at least, I think they said so. For now you will have to write out the IMG tag yourself: " height="" border=0> I assumed that the img Folder object is a direct subobject of the Zope root object. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 10:18:41 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 11:18:41 +0100 Subject: [Zope] /img/name" width="" Looks terrible :-) I think I rather use for the time being. -- Milos Prudek From julian@zereau.net Mon Mar 15 12:01:09 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:01:09 -0000 (GMT) Subject: [Zope] incrementally improving a product? Message-ID: If I build a product, deploy instances of it, and continue editing and reloading the product, will its instances be improved or will they be frozen at the state they were in when created? Also, is there any problem with the instances failing to work with a newer product version? --- Julian Morrison Programmer (Zereau Ltd) From julian@zereau.net Mon Mar 15 12:16:06 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:16:06 -0000 (GMT) Subject: [Zope] . okay next qustion: I have a image under a folder called "images". should work - except that the image filename contains the "." character (eg: "foo.gif") and this gets confused with the dot notation of the object (it tries to find images/foo/gif and chokes with a traceback) So how do I get round this one? --- Julian Morrison Programmer (Zereau Ltd) From TomJenkins@zentuit.com Mon Mar 15 13:36:28 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 08:36:28 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903151339.IAA24178@mail.digiweb.com> (I'm resending this as I didn't see it appear on the list the first time) > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Mon Mar 15 13:55:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 13:55:02 +0000 Subject: [Zope] Searching a Zope site (in the traditional way) Message-ID: How do you do this?, ie to get a list of files/objects that contain the search term, laid out in a way that the external user would recognise. I don't mean the 'find' tag in the manage screens, by the way... Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 15 14:54:16 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 14:54:16 +0000 Subject: [Zope] File upload product anywhere? Message-ID: Hi all, Has anyone written a file upload 'product' that they'd like to share? My own requirements are that; the files should (optionally) go to a file system, I need to be able to change the interface for the system, the users should be authenticated from an external database, the files (if held in a file system) should retain their associations with folders (for permissions and access), and I'd like it in blueberry please. What I'm basically after is the best of both worlds - Zope permissions/acquisition etc. with the 'safety net' of a file system for large files (and possible batch uploading). My problem (or one of them) is that there's no way that I'm up to speed enough in Zope/Python to start on this...I have a system doing the file upload working well in PHP3, but that (obviously) doesn't have the permissions/acquisition power of Zope. I guess I could do redirects to my PHP3 scripts from within Zope however, but it's hardly (ahem) 'elegant'. any thoughts gratefully accepted. Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From mj@antraciet.nl Mon Mar 15 16:23:03 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 17:23:03 +0100 Subject: [Zope] Searching a Zope site (in the traditional way) In-Reply-To: Message-ID: <4.1.19990315152120.00bb8520@lisp.atmm.nl> At 14:55 15/03/99 , Tony McDonald wrote: >How do you do this?, ie to get a list of files/objects that contain >the search term, laid out in a way that the external user would >recognise. > >I don't mean the 'find' tag in the manage screens, by the way... > The find management screen does give helpful hints. If you want to implement this kind of searching, you'll have to use the same techniques. These are however largely undocumented. The file lib/python/OFS/findResult.dtml should give you a lot of hints on how to implement a search command. It comes down to calling PrincipiaFind on a Folder with the right arguments: obj, obj_ids, obj_metatypes, obj_searchterm, obj_expr, obj_mtime, obj_mspec, obj_permission, obj_roles, search_sub, REQUEST, result, pre where * obj -- base folder to start at * obj_ids -- (optional) list of object ID's to search * obj_metatypes -- (optional) list of meta types to search for (if the string 'all' is in this list, all objects, whatever their meta type will be included in the results). * obj_searchterm -- (optional) literal text to search for in the *source* of DTML Documents and DTML Methods. * obj_expr -- (optional) DTML expression (as would be used in the expr attribute of for example the var tag). If this expression returns true within the context of an object, the object is included in the search results. You could use this for testing on certain properties, like 'foo=bar'. * obj_mtime -- (optional) DateTime object or string that can be converted to a DateTime object, specifying a modification time to compare objects against. Will on default return objects that have been modified since obj_mtime. * obj_mspec -- (optional) When used with obj_mspec, and set to '<', PrincipiaFind will only return objects which have been last modified before the date and time specified by obj_mtime. * obj_permission -- (optional) To be used together with obj_roles. Check if the roles specified by obj_roles have the obj_permission permission. Only these objects are included in the results. * obj_roles -- (optional) List of roles to check for obj_permission access. See obj_permission. * search_sub -- (optional) if true, search subobjects recursively. * REQUEST -- (optional) REQUEST object, used to make sure that AUTHENTICATED_USER is available for obj_expr expressions. * result -- a list of objects to be included in the returned results. Used by the PrincipiaFind method when recursively searching subobjects. Generally of no use to us humble DTML programmers. * pre -- prefix the IDs in the returned result list with pre and a slash. So, when called with pre='foo', and bar is the only object found, PrincipiaFind will return the list of tuples: [('foo/bar', foo)]. This argument is used when recursively searching subobjects, where pre is the relative URL of the object searched. Generally of no use to us humble DTML programmers. The method returns a list of tuples, where the first element of every tuple is the relative URL of the object found (relative to the starting point), and the second element is the object itself. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 16:38:22 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:38:22 +0100 Subject: [Zope] should work - except that the image filename > contains the "." character (eg: "foo.gif") and this gets confused Object name can be different from filename. Thus you name your foo.gif file just Foo, and that's it. -- Milos Prudek From prudek@sol.cz Mon Mar 15 16:40:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:40:40 +0100 Subject: [Zope] database upload Message-ID: <36ED3808.8DDF4B8B@sol.cz> I have MySQL database, and I want to upload my gif files into it through Zope, just like when creating Image component. How can I achieve this? -- Milos Prudek From pje@telecommunity.com Mon Mar 15 16:54:10 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 15 Mar 1999 11:54:10 -0500 Subject: [Zope] should work - except that the image filename >> contains the "." character (eg: "foo.gif") and this gets confused > > >Object name can be different from filename. Thus you name your foo.gif >file just Foo, and that's it. > Or, if you absolutely must have '.' in the filename, try: From julian@zereau.net Mon Mar 15 17:22:42 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 17:22:42 -0000 (GMT) Subject: [Zope] "magic buttons" in forms Message-ID: Two questions about "magic" behavior of form submit buttons: 1)The "cancel" button system, can it be made to work with a button with another value apart from "cancel"? (such as "back" or "home") 2)The system, please can someone explain this, as it is the only way I have yet figured out to do a single form with many destination pages. Also, does this behave differently in DTML methods and DTML documents? --- Julian Morrison Programmer (Zereau Ltd) From M.Faassen@vet.uu.nl Mon Mar 15 17:26:19 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 15 Mar 1999 18:26:19 +0100 Subject: [Zope] Newbie dtml question ( very simple ) References: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Message-ID: <36ED42BB.79076C57@pop.vet.uu.nl> "Dr. Armin Tschammer" wrote: > XY.py : > > d = {} > d['x1']=1 > d['x2']=2 > X = DocumentTemplate.HTMLFile('X3.dtml') > string = X(d) Hmm. Have you tried this, instead? class Foo: pass myfoo = Foo() foo.x1 = 1 foo.x2 = 2 X = DocumentTemplate.HTMLFile('X3.dtml') output = X(foo) Regards, Martijn From amos@aracnet.com Mon Mar 15 17:32:41 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:32:41 -0800 Subject: [Zope] incrementally improving a product? In-Reply-To: Message-ID: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> At 12:01 PM 3/15/99 -0000, julian@zereau.net wrote: >If I build a product, deploy instances of it, and continue editing and >reloading the product, will its instances be improved or will they be frozen at >the state they were in when created? Zope's object database uses Python's pickle facility, so in general instances only store their own data, and use whatever version of the class is available. Classes are not stored in the database. This means that when you change your class, your instances will be updated. >Also, is there any problem with the instances failing to work with a newer >product version? Yes. And this is not a Zope-specific issue, or even a Python-specific issue. Anytime you have long-lived instances and change the class, you may run into problems. Python comes with a couple hooks to help you out. You should look into __getstate__ and __setstate__ which are documented in the Python pickle documentation. Probably the most common type of problem occurs when your new class definition assumes a new attribute which the old instances don't have. An easy way to solve this is to provide a class attribute which gives a reasonable default for this attribute. For example: class MyClassV1: 'Original class' def __init__(self): self.color='red' class MyClassV2: 'Updated class' def __init__(self): self.color='red' self.texture='bumpy' def describe(self): return 'I am %s and %s' % (self.color, self.texture) Notice that instances created with MyClassV1 will not have a 'texture' attribute, so that when the class is updated, old instances will break when you call the new 'describe' method. A simple fix is to provide a default class attribute. For example: class MyClassV2: 'Backward compatible updated class' texture='nondescript' ... Now old instances won't break in the 'describe' method. Another approach is to test for the attribute and update the instance when you're going to use it. For example: def describe(self): if self.texture=='nondescript': self.get_texture() ... If 'describe' is the only place where you use 'texture' then you wouldn't even need to provide a class attribute, and could simply test for the absence of the attribute. Finally you might include version numbers in your instances and test for these, but this seems like overkill. I would suggest sticking to default class attribute solution for most cases. Hope this helps, and good luck. -Amos From amos@aracnet.com Mon Mar 15 17:50:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:50:19 -0800 Subject: [Zope] . > >okay next qustion: I have a image under a folder called "images". > should work - except that the image filename >contains the "." character (eg: "foo.gif") and this gets confused with the dot >notation of the object (it tries to find images/foo/gif and chokes with a >traceback) In general, when you have trouble spelling an object's name in a variable expression because its name is not a legal Python name (e.g. 'sequence-item' or 'foo.gif') then you should use _[] or _.getitem However in your case you can simply get the sub-object with a plain old getattr: Another possibility is to use the with tag: Since these are so ugly, you might consider the simpler manual method of generating the img tag: or else you might consider *not* having a images directory, and keeping your images in the Folders where they're used. Then you can refer to the images directly: And because of acquisition, foo.gif is accessible to all sub-Folders of the Folder it is located in, in the same way. -Amos From doug@sonosphere.com Mon Mar 15 06:59:03 1999 From: doug@sonosphere.com (Doug Wyatt) Date: Mon, 15 Mar 1999 01:59:03 -0500 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: At 9:43 +0400 3/15/99, Service Informatique CHSR wrote: > You say "one shouldn't have to use instead of > ." > However, i find it useful to write: > > > > > > instead of: > > > > I seem to remember that this works, too: Doug -- Doug Wyatt doug@sonosphere.com Sonosphere (electric/improv music) http://www.sonosphere.com/ From prudek@sol.cz Mon Mar 15 18:49:21 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 19:49:21 +0100 Subject: [Zope] fsimport HowTo References: <199903142011.UAA19578@cheviot.ncl.ac.uk> Message-ID: <36ED5631.614CA2A6@sol.cz> > > I've tried that too. Didn't help. What could be wrong? > suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Well, since that's a symlink anyway, I tried to suck directly from /home/pes/public_html. Still nothing. I even changed that dir to be world writable. > Even more clutching here - did you leave the trailing slash off the fsdir > attribute? I tried both. I'm sure I must be crazy. I summarize what I did: 1. downloaded fsimport.py 2. mkdir /usr/local/zope/Extensions 3. chown nobody:www Extensions 4. chmod /usr/local/zope/Extensions to be rwxr-xr-x 4. copied fsimport.py to /usr/local/zope/Extensions 5. chown nobody:www fsimport.py 6. chmod fsimport.py to be rw-r--r-- 7. created External method fsimport inside of ppm 8. put "fsimport" into all 4 fields (Id, Title, Function name, Python module name) 9. http://www.sol.cz/Zope/ppm/fsimport?fsdir=/home/pes/public_html 10. error "TypeError: read-only buffer, class" I must have missed something. -- Milos Prudek From vit@lipetsk.ru Mon Mar 15 19:05:55 1999 From: vit@lipetsk.ru (Victor Gamov) Date: Mon, 15 Mar 1999 22:05:55 +0300 Subject: [Zope] Bugs in pcgi-wrapper? Message-ID: <36ED5A13.9A0210B9@lipetsk.ru> Hi! Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with Apache-1.3.4 box. After succesfully installation I try to connect to cgi-bin/Zope.cgi/manage and got "file does not exist" error message. I look in source code and found that in pcgiConnect() function only socket() & connect() are present. But where is bind()?. When I fix this problem I found new error message "unable to connect". In function pcgiStartProc I found that sigemptyset(&zmask) we use the foollowing: while (sigflag == 0) sigsuspend(&zmask); So, after first iteration we have empty signal set and kill(pid, SIGUSR1) from father will be terminate our process. If I wrong, please correct me. -- CU, Victor Gamov From rhww@erols.com Mon Mar 15 19:14:14 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 14:14:14 -0500 Subject: [Zope] Simulating static URLs, end-user session management References: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> Message-ID: <36ED5C06.F73DA0CD@erols.com> Martijn Pieters wrote: > > At 23:38 14/03/99 , Robert Wentworth wrote: > >A) Are there reasonable ways of arranging to have > > the URLs for some/many Zope generated pages appear, as > > far as the outside world is concerned, to be URLs > > for static HTML pages? ... > There is little reason to avoid naming your objects with the extension > built into the ID, like everywhere.html. You can then simply refer to the > object using that ID, which to a not so smart indexing bot will look like > an HTML file (but it should *really* look at the MIME-type...). Perhaps I'm failing to understand something. Looking at pages on zope.org and some obviously dynamic pages on other sites, they all return a MIME-type of "text/html". Which I think means that a smart indexing bot should *not* simply look at the MIME-type. As I understand it, most search engine robots try to exclude dynamic content because of the justifiable fear that once they start exploring a web of dynamic content they could get lost in an infinite or near-infinite search space. I've read that as a result of this, search engine robots do things like refuse to index any URL with "cgi-bin" in the path, or which do not end in an approved recognized file extension. Do you have a different perception of search engine robot policies/strategies? > The only > problem would be referencing the object, as you have to take precautions to > make sure Python doesn't try to reference the attribute named 'html' on the > object 'everywhere'. Guess I'm going to need to experiment. I'm a little fuzzy on how this would work (but then I'm a little fuzzy in general at this point). > So, as long as you name your DTML Documents that are to be indexed with the > .html extension, everything should go fine. > > >B) On another topic entirely, I am wondering about the issue > >of tracking sessions of end-users. ... > No, Zope has no Session tracking facilities at this moment. DC is however > working on this. At the moment you will find a 'Session' object in your > Zope distribution, but this is a different concept altogether, and will be > renamed to 'Version' when client session objects appear. Are there any projections available re the timing of this? I'm wondering about how much effort to spend on ad-hoc interrim measures. FWIW, in my mind an ideal client session scheme would allow multiple strategies. In most cases using cookies works out for the best, but I would like to be able to accommodate anti-cookie zealots as necessary. On the other hand, I don't want to clutter URLs with session-id's if I don't need to. (I suppose having authenticated users is yet another strategy, and one that Zope currently seems oriented towards. Fine if users really want or need to get into your site or need to perform authorized operations, but not so good if you're trying to entice them in.) Robert Wentworth From rhww@erols.com Mon Mar 15 21:15:27 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 16:15:27 -0500 Subject: [Zope] Newbie: trouble getting started under Windows 98 Message-ID: <36ED786F.60F36D39@erols.com> While I expect to eventually be working under Unix (once I can convince my hosting provider to install Zope), at present I'm trying to use Zope under Windows 98. The problem is: it's not working. I'm using the Zope HTTP server, and I can contact the management system just fine, a prowl around looking at everything. But if I try to add an object (whether it be a DTML Document, a Folder, or an "Item" from the sample_product package (which I installed), what happens is: I am allowed to fill out the form where you enter object creation fields (ID, title, etc.), but when I send that form the HTTP server never returns. Any clues as to how to fix this, or debug it, or get any idea as to what is happening? Robert Wentworth From prudek@sol.cz Mon Mar 15 21:22:49 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:22:49 +0100 Subject: [Zope] Zope modifies HTML order of tags? Message-ID: <36ED7A29.89A174FC@sol.cz> It seems to me that Zope is rendering my HTML tag attributs in different order than in the source. For instance I put into property named tabstart. Looking into source produced by Zope, I found
    Why is Zope doing this? Maybe there's good reason, but I'd like to know, because too smart software is sometimes more burden than a help. Also some attributes are omitted in the rendering process. Property "width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up without vspace statement. -- Milos Prudek From prudek@sol.cz Mon Mar 15 21:15:45 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:15:45 +0100 Subject: [Zope] Feature request - local file browsing Message-ID: <36ED7881.EB1C4F7B@sol.cz> Would it be possible to modify expected file type when I click on browse and want to add local image type? Browser always presents .htm extension, so that I need to change it to *. I run browser from windows, Zope itself is on linux box. -- Milos Prudek From gwachob@findlaw.com Mon Mar 15 23:20:20 1999 From: gwachob@findlaw.com (Gabe Wachob) Date: Mon, 15 Mar 1999 15:20:20 -0800 Subject: [Zope] DTML indirection question again Message-ID: <36ED95B4.4EE4B7DD@findlaw.com> OK, here's the situation. I have a "login" page that I want to list the contents of different directories depending on the value of the AUTHENTICATED_USER Each user has a folder under the folder 'user'. I would like to be able to do (simplified):
    However, I get a TypeError on the #with line (and even if I put in the AUTHENTICATED_USER.id instead of just AUTHENTICATED_USER). What am I doing wrong here? I've tried a lot of different combinations of #with and _.getitem and such.. THANKS -Gabe From andreww@netscape.com Mon Mar 15 23:31:39 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Mon, 15 Mar 1999 15:31:39 -0800 Subject: [Zope] My own zope site... Message-ID: <36ED9827.7A8EB410@netscape.com> I've started a site that will show the results of my work in getting Dreamweaver and Zope to talk to each other - and I would appreciate a link from the zope.org site if there is a section for 3rd party developer links... I will post here (at the web site) ideas for improving the UI for the HTML interface for Zope as well. http://alaji.home.mindspring.com/zopeweaver/ -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From jeffbauer@bigfoot.com Tue Mar 16 02:08:36 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 15 Mar 1999 20:08:36 -0600 Subject: [Zope] Bugs in pcgi-wrapper? References: <36ED5A13.9A0210B9@lipetsk.ru> Message-ID: <36EDBD24.AAFDE1FC@rubic.com> Victor Gamov wrote: > Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with > Apache-1.3.4 box. After succesfully installation I try to connect to > cgi-bin/Zope.cgi/manage and got "file does not exist" error message. > I look in source code and found that in pcgiConnect() function only > socket() & connect() are present. But where is bind()?. When I fix > this problem I found new error message "unable to connect". Victor, I think your problem lies elsewhere. The client does not have to bind a local address before calling connect. The connect() function automatically assigns an unused port to the socket. You will probably find the problem is much more obvious than a low-level socket bug. Check your Zope.cgi paths, permissions, and Apache configuration. Good luck. Jeff Bauer Rubicon, Inc. From rhww@erols.com Tue Mar 16 02:55:13 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 21:55:13 -0500 Subject: [Zope] Re: Newbie: trouble getting started under Windows 98 References: <36ED786F.60F36D39@erols.com> Message-ID: <36EDC811.B13562F9@erols.com> FWIW, after messing around for several hours trying to diagnose this, the problem mysteriously went away. (I uninstalled another version of Python and its extensions, reinstalled them, ran Zope inside Pdb -- and things started working. Got out of Pdb, restarted, and things continued to work. No clue as to why things were consistently hanging before.) > While I expect to eventually be working under Unix > (once I can convince my hosting provider to install Zope), > at present I'm trying to use Zope under Windows 98. > > The problem is: it's not working. > > I'm using the Zope HTTP server, and I can contact the > management system just fine, a prowl around looking > at everything. But if I try to add an object (whether > it be a DTML Document, a Folder, or an "Item" from > the sample_product package (which I installed), what > happens is: > > I am allowed to fill out the form where > you enter object creation fields (ID, title, etc.), > but when I send that form the HTTP server never > returns. > > Any clues as to how to fix this, or debug it, or get any > idea as to what is happening? From TomJenkins@zentuit.com Tue Mar 16 03:49:52 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 22:49:52 -0500 Subject: [Zope] setting variable Message-ID: <199903160352.WAA04182@mail.digiweb.com> Hello folks, I'm stuck on a problem which I hope some one could help me with. I have a database entry form where the user will enter in information for two related tables. When she submits the form, I want to first post one tables information, then call another sql method to get the id generated for that post, then take that value and add it to the REQUEST object and pass it to the second sql insert for inserting to the second table (along with some other parts of the REQUEST object from the form). I'm planning on using MySQL that has a special select: select LAST_INSERT_ID() to return the last auto-generated id value to get the id. I know you can add a variable to the REQUEST object via but how to I get the value from the sql method? The only way I know now is via #var tags but you can't nest the DTML. I hope this makes sense... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 04:17:44 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 23:17:44 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <199903160420.XAA01117@mail.digiweb.com> To followup my last post, I'm getting an exception when trying to use MySQL's "select LAST_INSERT_ID()" function: Error, exceptions.KeyError: unhandled SQL used: select LAST_INSERT_ID() Anybody have any ideas? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From chsrinfo@guetali.fr Tue Mar 16 06:09:10 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 16 Mar 1999 10:09:10 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <000701be6f75$9a8de5c0$147800a0@pc-pi0> Nobody responded. So it went to the Collector. I don't even know if this is a bug. >Also, before I submit this to the Collector, is it normal that the "use >mailhost services" >doesn't appear in the security tab of the folders? Each product has its >permissions >that are listed, but nothing with the mailhost object. >I had to change it directly in the mailhost object. >If it's normal, it means that i can't give global permission for mailhost >objects??? >What confuse me, however, is that the mailhost object claims to "acquire" >permission >settings from its parents, but nowhere in its parents i can define the >permissions. Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Tue Mar 16 09:51:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:51:11 +0100 Subject: [Zope] Feature request - local file browsing In-Reply-To: <36ED7881.EB1C4F7B@sol.cz> Message-ID: <4.1.19990316104251.00bbca50@lisp.atmm.nl> At 22:15 15/03/99 , Milos Prudek wrote: >Would it be possible to modify expected file type when I click on browse >and want to add local image type? Browser always presents .htm >extension, so that I need to change it to *. I run browser from windows, >Zope itself is on linux box. This is something Zope can´t influence, it´s part of the way your browser works. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Tue Mar 16 09:53:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:53:48 +0100 Subject: [Zope] Zope modifies HTML order of tags? In-Reply-To: <36ED7A29.89A174FC@sol.cz> Message-ID: <4.1.19990316105207.00bbe560@lisp.atmm.nl> At 22:22 15/03/99 , Milos Prudek wrote: >It seems to me that Zope is rendering my HTML tag attributs in different >order than in the source. For instance I put >
    >into property named tabstart. >Looking into source produced by Zope, I found >
    >Why is Zope doing this? Maybe there's good reason, but I'd like to know, >because too smart software is sometimes more burden than a help. > >Also some attributes are omitted in the rendering process. Property >"width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up >without vspace statement. Could you supply us with some DTML examples of this behaviour? It´s not something I´ve seen before. Is there any chance your HTML editor is doing this? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Tue Mar 16 10:36:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:36:43 +0100 Subject: [Zope] incrementally improving a product? References: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> Message-ID: <36EE343B.B2953170@pop.vet.uu.nl> Amos Latteier wrote: [snip Amos' answers] Hey, this was a very good answer, so I added this to the FAQ (new updates will be on the zdp.zope.org site later today). Thanks Amos! Regards, Martijn From M.Faassen@vet.uu.nl Tue Mar 16 10:57:38 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:57:38 +0100 Subject: [Zope] sequence of numbers References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <36EE3922.FD588AE4@pop.vet.uu.nl> Eric Kidd wrote: > > On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > > This may be a newbie question, but I've loked thru the doc and didn't > > spot any obvious way to do this, short of an External Method. > > I didn't find any other way, either. But here's an External Method you can > use. [snip external method] I'm wondering; is there a reason why 'range' isn't accessible from DTML in the '_' namespace? Is the reason as you indicated in your external method, i.e. that you don't want people to generate vast ranges from DTML? Just curious, Martijn From mj@antraciet.nl Tue Mar 16 11:58:15 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 12:58:15 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <36EE3922.FD588AE4@pop.vet.uu.nl> References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <4.1.19990316121205.00bcc2a0@lisp.atmm.nl> At 11:57 16/03/99 , Martijn Faassen wrote: >Eric Kidd wrote: >> >> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: >> > This may be a newbie question, but I've loked thru the doc and didn't >> > spot any obvious way to do this, short of an External Method. >> >> I didn't find any other way, either. But here's an External Method you can >> use. > >[snip external method] > >I'm wondering; is there a reason why 'range' isn't accessible from DTML >in the '_' namespace? Is the reason as you indicated in your external >method, i.e. that you don't want people to generate vast ranges from >DTML? > >Just curious, The reason if of course merory flooding attacks. A range that asks for a list of 3 billion items is a wee bit unpolite to the machine. A way of checking would be: RANGELIMIT = 1000 def SafeRange(iFirst, *args): if not len(args): iStart, iEnd, iStep = 0, iFirst, 1 elif len(args) == 1: iStart, iEnd, iStep = iFirst, args[0], 1 elif len(args) == 2: iStart, iEnd, iStep = iFirst, args[0], args[1] else: raise AttributeError, 'SafeRange() requires 1-3 int arguments' if iStep == 0: raise ValueError, 'zero step for SafeRange()' iLen = int((iEnd - iStart) / iStep) if iLen < 0: iLen = 0 if iLen >= RANGELIMIT: raise ValueError, 'SafeRange() too large' return range(iStart, iEnd, iStep) Maybe this should be part of the _ object. Can someone turn this into a patch and supply this to DC? I´m a bit short of time right now. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Tue Mar 16 13:07:30 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Tue, 16 Mar 1999 08:07:30 -0500 Subject: [Zope] IRC channel Message-ID: <36EE5791.1B7AD457@GestaltTechnology.com> Dear Zopists, This is another post to make you aware of a new source of information for Zope. You can access #zope on the EFNet servers. Their is an infobot on this channel that could be a great resouce, but it needs to learn a lot about zope. If you pay a visit to the channel, query the bot by typing: /msg wizkid1 help. This will provide more information on the bot. Cheers, Fredy Villa Gestalt Technology FVilla@GestaltTechnology.com From phil@media-1.ml.uwcm.ac.uk Tue Mar 16 13:22:45 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 16 Mar 1999 13:22:45 -0000 Subject: [Zope] IRC channel Message-ID: <017e01be6fb0$147c24c0$5c773fc1@media1> I for one think this is a brilliant idea! I visit the PHP3 channel on EFNET frequently, a real sense of community and friendship can be built. I really do hope this comes off, so let's make a go of this eh guys 8^) See you there. Phil ----- Original Message ----- From: Fredy Villa To: Sent: Tuesday, March 16, 1999 1:07 PM Subject: [Zope] IRC channel >Dear Zopists, > > This is another post to make you aware of a new source of >information for Zope. You can access #zope on the EFNet servers. Their >is an infobot on this channel that could be a great resouce, but it >needs to learn a lot about zope. If you pay a visit to the channel, >query the bot by typing: /msg wizkid1 help. This will provide more >information on the bot. > >Cheers, > >Fredy Villa >Gestalt Technology >FVilla@GestaltTechnology.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From tschruefer@mail.howard.k12.md.us Tue Mar 16 15:10:54 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Tue, 16 Mar 1999 10:10:54 -0500 Subject: [Zope] Newbie install Q? and the Zope web site Message-ID: <199903161508.KAA22234@mail.howard.k12.md.us> Ok, two questions 1. What happened to the Zope web site, it seems to have gone down yesterday and still is not operating ? 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), but the install instructions do not seem complete. I retrieved the INSTALL.TXT file from the doc directory and started to follow them, but their doesn't seem to be any 'access' file in this distribution. What's more some of the command line options come up as invalid, like -c,which the install program quit on saying it was a invalid option. The -c option doesn't even show up in the --help for the installer. I was hoping there would be some additional install info on the web site, but that's not working. Tom From rob.page@digicool.com Tue Mar 16 15:20:45 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:20:45 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C1@GANDALF> > To followup my last post, I'm getting an exception when > trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() Try: select LAST_INSERT_ID() as fred then grab If this works then I know what the problem is! :^) If you use the database's command line tool and run this SQL statement I bet it returns a single value (i.e., it doesn't return a table). The DA wants to munge and chew on rows in tables. If think that if you use the select LAST_INSERT_ID() as fred you'll get a one-row, one-column table -- this is what Zope wants. --Rob From kid@ans.net Tue Mar 16 15:24:32 1999 From: kid@ans.net (Kevin Dangoor) Date: Tue, 16 Mar 1999 10:24:32 -0500 Subject: [Zope] Newbie install Q? and the Zope web site In-Reply-To: <199903161508.KAA22234@mail.howard.k12.md.us>; from Thomas Schruefer on Tue, Mar 16, 1999 at 10:10:54AM -0500 References: <199903161508.KAA22234@mail.howard.k12.md.us> Message-ID: <19990316102432.D13267@throwingcopper.ans.net> On Tue, Mar 16, 1999 at 10:10:54AM -0500, Thomas Schruefer wrote: ,----- | | Ok, two questions | | 1. What happened to the Zope web site, it seems to have gone down | yesterday and still is not operating ? It works from where I'm at. You may want to try traceroute www.zope.org (or tracert www.zope.org from Windows) to see where things are getting hung up. | | 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), | but the install instructions do not seem complete. I retrieved the | INSTALL.TXT file from the doc directory and started to follow them, but | their doesn't seem to be any 'access' file in this distribution. What's | more some of the command line options come up as invalid, like -c,which | the install program quit on saying it was a invalid option. The -c | option doesn't even show up in the --help for the installer. The access file just needs one line of the format "username:password" and should be in your zope install directory. Since I was using PCGI with Zope, all I did was just untar it, make it and then copy Zope.cgi into my web area... Kevin `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From rob.page@digicool.com Tue Mar 16 15:57:04 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:57:04 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C3@GANDALF> Tom: [Reading from my support script..] This is where I say, "Hmm, I'm no expert on MySQL...." ;^) Anyone else have any ideas? This, um, worked on Sybase!? --Rob Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when > > > trying to use > > > MySQL's "select LAST_INSERT_ID()" function: > > > > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() Rob Page replied: > >Try: > > > > select LAST_INSERT_ID() as fred > > > > then grab > > > > If this works then I know what the problem is! :^) > > > > If you use the database's command line tool and run this > SQL statement I > > bet it returns a single value (i.e., it doesn't return a > table). The DA > > wants to munge and chew on rows in tables. If think that > if you use the > > select LAST_INSERT_ID() as fred you'll get a one-row, > one-column table > > -- this is what Zope wants. Then Tom wrote back: > Hi Rob, > Made the change and tested but still got the exception. > I ran it at the command line (for mysql) and it returns a > "table" with one > row and field From jbb@spyderlab.com Tue Mar 16 17:01:32 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 12:01:32 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com> Message-ID: On Mon, 15 Mar 1999, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Try: select LAST_INSERT_ID()+0 to cast it to an int... Also, check your declaration for LAST_INSERT_ID().. if the above doesn't work you'll need to either try the patch for ZMySQLDA that was posted a week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to cast it to a string and then use a nifty Python fn. to convert it to an integer number. It seems the MySQL driver has problems with some datatypes. There was a patch posted befure.. I'm curious to know if it'll fix this problem... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From M.Faassen@vet.uu.nl Tue Mar 16 17:59:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 18:59:44 +0100 Subject: [Zope] ZDP's FAQs version 0.2.2 Message-ID: <36EE9C0F.A597FA4C@pop.vet.uu.nl> Hi there, Sorry for the cross posting, but the ZDP's Zope FAQs are online with a new version at zdp.zope.org. I hope they are useful. Please continue to contribute! Regards, Martijn (one of the two :), of the Zope Documentation Project From mbernstein@profitscape.net Tue Mar 16 18:21:59 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 10:21:59 -0800 Subject: [Zope] My own zope site... References: <36ED9827.7A8EB410@netscape.com> Message-ID: <36EEA147.50458405@profitscape.net> Andrew Wooldridge wrote: > > I've started a site that will show the results of my work in getting > Dreamweaver and Zope to talk to each other - and I would appreciate a > link from the zope.org site if there is a section for 3rd party > developer links... > > http://alaji.home.mindspring.com/zopeweaver/ I've added this to the Zope category in the Open Directory Project: http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ Michael Bernstein. From Oliver Thuns" Hi! I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a very simple counter module (with PIL). How could I set the mime header to image/gif and return an image? From M.Faassen@vet.uu.nl Tue Mar 16 19:01:14 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 20:01:14 +0100 Subject: [Zope] ZPublisher: How to set the mime header? References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <36EEAA7A.8FA5DC3D@pop.vet.uu.nl> Oliver Thuns wrote: > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? This is in the Zope FAQ, actually, at http://zdp.zope.org/FAQ/external. At least I think I'd apply to ZPublisher as well? How do I return an image from an External Method? Example (for a png image): def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is: RESPONSE.setHeader('content-type','image/png') Regards, Martijn From prudek@sol.cz Tue Mar 16 19:15:57 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 16 Mar 1999 20:15:57 +0100 Subject: [Zope] Zope modifies HTML order of tags? References: <4.1.19990316105207.00bbe560@lisp.atmm.nl> Message-ID: <36EEADED.C6223063@sol.cz> > >It seems to me that Zope is rendering my HTML tag attributs in different > >order than in the source. For instance I put > Could you supply us with some DTML examples of this behaviour? It´s > something I´ve seen before. Is there any chance your HTML editor is doing this? You are right. I wanted to check the frame, which I can't do easily under Netscape, so I pushed File/Edit Frame, and apparently Netscape Composer did it, because when I do "Save frame as...", it looks O.K. Having discovered this, there is no chance I would ever use Composer. I would be happy to have Zope work as closely as possible with Dreamweaver, though. -- Milos Prudek Sonet Online s.r.o. http://www.sol.cz From andy@ictibroker.com Tue Mar 16 19:40:56 1999 From: andy@ictibroker.com (Andy Smith) Date: Tue, 16 Mar 1999 14:40:56 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com> Message-ID: <000001be6fe4$e90f1920$ce63efa1@venice> I've been using this.... (Zope example but should work with ZServer) It was fully expecting to have to mess about with headers to get browsers to recognise the gif, but broswers seem to know a gif when they get one! This example returns gifs in a browser when you do .... http://mysite/renderGif or even (I'm fully prepared to admit there may be better ways of doing it) ;)_ Cheers, Andy. def renderGif(self, size=500, counter=1): """Draw a pie chart""" im = PIL.Image.new('RGB', (size,size)) # Do GIF manipulation stuff here! outFile = cStringIO.StringIO() im.save(outFile, 'GIF') outFile.seek(0) outString = outFile.read() return outString > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Oliver Thuns > Sent: Tuesday, March 16, 1999 1:44 PM > To: zope@zope.org > Subject: [Zope] ZPublisher: How to set the mime header? > > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 16 19:49:17 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 16 Mar 1999 20:49:17 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com>; from Tom Jenkins on Mon, Mar 15, 1999 at 11:17:44PM -0500 References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <19990316204917.A659@RaVER.duck.org> On Mon, Mar 15, 1999 at 11:17:44PM -0500, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Why not use: select 'id_field_name' from 'table' where 'id_field_name' IS NULL id_field_name beeing the field with AUTO_INCREMENT set Hope this helps - Sture > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From eric.kidd@pobox.com Tue Mar 16 19:55:15 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Tue, 16 Mar 1999 14:55:15 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com>; from Oliver Thuns on Tue, Mar 16, 1999 at 07:44:18PM +0100 References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <19990316145515.A484@moebius.dartmouth.edu> On Tue, Mar 16, 1999 at 07:44:18PM +0100, Oliver Thuns wrote: > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? When using Zope to publish XML documents (using DTML Document objects) I often write: Some part of Zope tries to guess the Content-Type otherwise. A lot of this code is directly shared between Zope and Z Publisher, so you might see similar behavior. Cheers, Eric From andreww@netscape.com Tue Mar 16 20:15:47 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Tue, 16 Mar 1999 12:15:47 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <36EEBBF1.B7B05990@netscape.com> Ok, I consider myself pretty technical, but not a UNIX master, and I've used NT enough to know about services, etc. But I cannot for the life of me figure out how to get zope running as a service without manually starting it from start.bat. Could someone please post somewhere a "zope for dummies" description of getting zope running as a service on NT. Here's what I do: I downloaded zope 1.10.2 I unzipped and ran the installer. It works fine to the point where it wants me to choose between running zope alone or as a service. I've tried it "both ways" and although I can get zope running fine by manually starting it from start.bat, and I make the zope service start automatically, it will not work as a service! I dont have any other web server on this machine and dont really care which server I use. I had assumed that ZopeHTTPServer would run as the service, but it doesnt work... Is there just a minimal way to get zope going on it's own? I know the ip address etc. of my system, but that doesnt seem to be the issue. I wouldnt even mind if in the install you had an option for "install default web server" so that zope can piggy back on it. Does it have something to do with setting permissions to the var directory? All I'm basically looking for is sort of a recipe style instruction on how to get it up and running. (With no handwaving like "now configure your system to run the zope.exe". Assume I'm a total idiot... Which I'm not, but I'm still having problems. -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From M.Faassen@vet.uu.nl Tue Mar 16 20:14:04 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 21:14:04 +0100 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEBB8B.31158570@pop.vet.uu.nl> Andrew Wooldridge wrote: [snip getting Zope to run on NT] I've made Zope run on NT with Apache. > I dont have any other web server on this machine and dont really care > which server I use. I had assumed that ZopeHTTPServer would run as the > service, but it doesnt work... No, I don't think that can work. You need another webserver, like Apache (which you can download from www.apache.org, though of course it has its own configuration hassles). > Is there just a minimal way to get zope going on it's own? Hm..Perhaps ZServer, but that's still not stable. Can it run as a service in NT? Otherwise I'd recommend Apache; it can do plenty, though there is a learning curve there. Regards, Martijn From mbernstein@profitscape.net Tue Mar 16 20:42:51 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 12:42:51 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEC24B.BD57D221@profitscape.net> Andrew Wooldridge wrote: > > Ok, I consider myself pretty technical, but not a UNIX master, and I've > used NT enough to know about services, etc. But I cannot for the life > of me figure out how to get zope running as a service without manually > starting it from start.bat. Here's what I did: I downloaded zope 1.10.2 I unzipped and ran the installer. I chose to run zope alone I created a shortcut to start.bat in C:\WINNT\Profiles\All Users\Start Menu\Programs\Startup This will start Zope every time you reboot. Note that it will not get rid of the annoying MSDOS command prompt window. I hope this helps From robin@alldunn.com Tue Mar 16 21:30:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 16 Mar 1999 13:30:09 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <016701be6ff4$30e2b5e0$8725d2d1@rogue.jenkon-dev.com> I posted a message last week about running ZServer as a service. You can find the message at http://www.zope.org/pipermail/zope/1999-March/005030.html I built my Zope from source, so I don't know if this works the same as the self-installer version, but it should be pretty close. 1. Install Zope 1.10.2, choosing to run standalone. 2. Untar the ZServer distribution in the root Zope directory. 3. Test that it works by running start.py in the ZServer directory. 4. Follow the directions in the message linked-to above. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Andrew Wooldridge To: zope@zope.org Date: Tuesday, March 16, 1999 11:34 AM Subject: [Zope] Help - need a brainless guide to getting zope running >Ok, I consider myself pretty technical, but not a UNIX master, and I've >used NT enough to know about services, etc. But I cannot for the life >of me figure out how to get zope running as a service without manually >starting it from start.bat. > > >Could someone please post somewhere a "zope for dummies" description of >getting zope running as a service on NT. > >Here's what I do: > >I downloaded zope 1.10.2 >I unzipped and ran the installer. >It works fine to the point where it wants me to choose between running >zope alone or as a service. >I've tried it "both ways" and although I can get zope running fine by >manually starting it from start.bat, and >I make the zope service start automatically, it will not work as a >service! > >I dont have any other web server on this machine and dont really care >which server I use. I had assumed that ZopeHTTPServer would run as the >service, but it doesnt work... > >Is there just a minimal way to get zope going on it's own? > >I know the ip address etc. of my system, but that doesnt seem to be the >issue. > >I wouldnt even mind if in the install you had an option for "install >default web server" so that zope can piggy back on it. > >Does it have something to do with setting permissions to the var >directory? > >All I'm basically looking for is sort of a recipe style instruction on >how to get it up and running. (With no handwaving like "now configure >your system to run the zope.exe". Assume I'm a total idiot... > >Which I'm not, but I'm still having problems. > > > >-- > >------------------------------------------------------------------------- > >- Andrew Wooldridge - Opinions expressed are my own - >- andreww@netscape.com - http://people.netscape.com/andreww/ >- ICQ: 6345881 - Find It at http://dmoz.org - >------------------------------------------------------------------------- > > > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Tue Mar 16 21:52:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:52:32 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903162155.QAA08372@mail.digiweb.com> OK to follow up, if you use call mysql using the form select CONCAT(LAST_INSERT_ID()) as new_id you get back the correct value in 'last_id' now I'm still having problems with getting that value into the REQUEST object. What goes in place of the ??? (Pardon me if this has been answered already, there was some problems with me getting messages from zope list) Thanks again... > On Mon, 15 Mar 1999, Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when trying to use > > MySQL's "select LAST_INSERT_ID()" function: > > > > Error, exceptions.KeyError: unhandled > > > > SQL used: > > > > select LAST_INSERT_ID() > > > > Anybody have any ideas? > > Try: select LAST_INSERT_ID()+0 to cast it to an int... > > Also, check your declaration for LAST_INSERT_ID().. if the above doesn't > work you'll need to either try the patch for ZMySQLDA that was posted a > week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to > cast it to a string and then use a nifty Python fn. to convert it to an > integer number. > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 21:56:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:56:14 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> References: Message-ID: <199903162159.QAA12320@mail.digiweb.com> > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > Umm that should read select CONCAT(LAST_INSERT_ID()) as last_id -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From jbb@spyderlab.com Tue Mar 16 22:35:08 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:35:08 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> Message-ID: On Tue, 16 Mar 1999, Tom Jenkins wrote: > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > > now I'm still having problems with getting that value into the REQUEST > object. What goes in place of the ??? > > > (Pardon me if this has been answered already, there was some > problems with me getting messages from zope list) > Thanks again... Well, try something like:
  • The id last inserted is where lastInsert is your SQL method Note this is untested code, so caveat emptor :) Have fun, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Tue Mar 16 22:51:20 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:51:20 -0500 (EST) Subject: [Zope] #sqltags Message-ID: Hi: Are the #sqltags documented somewhere? I couldn't find them in the DTML reference manual, etc. I found some examples of their use, but nothing definative. I have no problems reading the source and documenting what I find, I just don't want to be re-inventing the wheel. Specifically I'd like to know about #sqlgroup and friends. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From amos@aracnet.com Tue Mar 16 22:51:50 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 16 Mar 1999 14:51:50 -0800 Subject: [Zope] #sqltags In-Reply-To: Message-ID: <3.0.5.32.19990316145150.011c19a0@mail.aracnet.com> At 05:51 PM 3/16/99 -0500, Jordan B. Baker wrote: >Are the #sqltags documented somewhere? I couldn't find them in the DTML >reference manual, etc. Did you notice the "Z SQL Methods User's Guide": http://www.zope.org/Documentation/Guides/ZSQL I think that this covers what you want to know. -Amos From neves@inf.puc-rio.br Tue Mar 16 22:45:29 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 16 Mar 1999 19:45:29 -0300 Subject: [Zope] setting variable References: <199903160352.WAA04182@mail.digiweb.com> Message-ID: <36EEDF09.91998D6@inf.puc-rio.br> Tom Jenkins wrote: > > Hello folks, > I'm stuck on a problem which I hope some one could help me with. I > have a database entry form where the user will enter in information for > two related tables. When she submits the form, I want to first post one > tables information, then call another sql method to get the id generated > for that post, then take that value and add it to the REQUEST object > and pass it to the second sql insert for inserting to the second table > (along with some other parts of the REQUEST object from the form). Do you really need this? You can put more than one sql commands in a sql method, you just have to put a between them. You can insert in the two tables with just one method. The last_insert_id() should be in the values field of the second insert. Take a look at the code genereated by the sql wizard in the contrib page. > > I'm planning on using MySQL that has a special select: > select LAST_INSERT_ID() > to return the last auto-generated id value to get the id. > > I know you can add a variable to the REQUEST object via > > but how to I get the value from the sql method? The only way I know > now is via #var tags but you can't nest the DTML. Take a look at the other thread. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From rhww@erols.com Tue Mar 16 23:27:35 1999 From: rhww@erols.com (Robert Wentworth) Date: Tue, 16 Mar 1999 18:27:35 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <36EEE8E7.11F8DBC@erols.com> Right now my biggest obstacle to setting up a Zope-powered site could be finding a hosting provider I have confidence in who is willing to run Zope. When I asked my first-choice provider about running Zope, they replied: > Though it's true that we can install programs that need root > instlall, it only so when the program is low CPU/mem use and > non-intrusive. Zope is neither, so to run it you would need to get > your own dedicated server through us. A dedicated server is not a viable option for this site at this point in time. So, a few questions: 1) Are the provider's fears justified? What sort of memory footprint, CPU requirements (for a site that should have fairly low traffic at first), and other impact are Zope likely to have on a hosting provider? 2) Would anyone care to let me know what their experience has been with the two hosting providers (NexusWeb and CodeIt Computing) listed as known to host Zope-based sites? (I've been sufficiently badly burned in the past by bad hosting providers that I cannot justify signing up for a provider without positive recommendations or multiple alternatives for backup.) Robert Wentworth From TomJenkins@zentuit.com Tue Mar 16 23:27:19 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 18:27:19 -0500 Subject: [Zope] setting variable In-Reply-To: <36EEDF09.91998D6@inf.puc-rio.br> Message-ID: <199903162330.SAA24924@mail.digiweb.com> > Do you really need this? You can put more than one sql commands in a sql > method, you just have to put a between them. > You can insert in the two tables with just one method. The > last_insert_id() should be in the values field of the second insert. > Take a look at the code genereated by the sql wizard in the contrib > page. Hey Paulo, thanks for that tip. I didn't know about #var sql_delimiter and the ability to put more than one sql commands in a sql method. I had wondered about it but the #var sql_delimiter was the key. With this information, no I don't need to insert into the REQUEST object. But I'm still curious . Unfortunately, putting last_insert_id() directly into the values of the second insert did not work. It works from mysql command line. INSERT INTO entry_tbl (master_id,submitted_by,staff_id,version,comment) VALUES (LAST_INSERT_ID(), , , , ) It surprised me that it didn't work as I thought it would get sent enmass to mysql for processing so I had thought that the DA wouldn't interfer with it. feeling-very-dense-ly y'rs -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From vanandel@ucar.edu Wed Mar 17 01:44:26 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Tue, 16 Mar 1999 18:44:26 -0700 Subject: [Zope] newbie - permissions on FAQ object Message-ID: <199903170144.SAA26992@stout.atd.ucar.edu> I'm trying to configure a ZOPE FAQ object on starship.python.net . This is Zope v10.10.2 with ZServer 1.0b2 . I'm baffled by the permissions scheme. I've created a FAQ under my ZOPE home: http://starship.python.net:9673/crew/vanandel I'd like selected users to add FAQ entries, but only certain trusted users to be able to create categories. Unfortunately, anyone can add a new category, which is not what I want. The Security Screen for vanandel/NumPy only enables 'view' for anonymous, but still an 'anonymous' user can enter the 'Add a category' screen, without being challenged. There are specific permissions shown for various "add-ins" like TinyTables on the Security screen, but not for the FAQ module. (I'd expect to see permissions for FAQAddCategory.) Also, when I first create a 'FAQ', I can't view it until I create a 'isCategory' property. This seems like a bug, since 'isFAQ' is already created for me. A minor question. I'd obviously like to test ZOPE with various users, to see what ZOPE allows them to do. ZOPE uses cookies to give someone permission, after they've supplied a password. Under Unix, I can manually remove a cookie by editing ~/.netscape/cookies. How do I do this under NT? Are Netscape cookies in the registry (I hope not!). Thanks much for your help. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From mike@icebox.dlogue.net Wed Mar 17 02:40:15 1999 From: mike@icebox.dlogue.net (Michel Pelletier) Date: Tue, 16 Mar 1999 20:40:15 -0600 (CST) Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: <199903141232.XAA17000@mbuna.arbhome.com.au> from "Anthony Baxter" at Mar 14, 99 11:32:36 pm Message-ID: <199903170240.UAA04469@icebox.dlogue.net> > > > Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now > available from http://www.interlink.com.au/anthony/python/ > Excellent. > I'm looking for opinions on the LDAP zope product I've been building. > We here at DC (well, I'm out of the office this week, but I'm there virtualy) have been kicking around an LDAP authentication mechanism, probably a folderoid, to go against LDAP. In fact, this was supposed to be one of my projects when I get back next week. From the details below it looks like you have thought this out well, I didn't even consider making an API of methods like XSQL methods, good idea! > Right now, LDAP connections work, LDAP Methods work, but there's still > a bit more to do. Right now, the following is unimplemented: > > In ZLDAPconn: > . Anything other than simple_bind(who, passwd) for connecting to the > LDAP server That's where we want to start... > . meaningful doc strings > > In ZLDAPMethods: > . Pluggable Brains > . Result Caching > . Limits on the number of results > . Variable interpolation in the filters, and in the base DN > . modify or add queries (only search is supported right now) > . meaningful doc strings :) Under the catagory 'result caching' you might want to consider making some kind of Connection Manager in your LDAP Connection. A model I've been kicking around is a CM class that manages Connections and uses a simple caching algoritm. Wrapping all of the API in a class will also help yu when you want to break out the LDAP stuff and stick it in shared. In this way, it becomes a sort of 'Device Driver' (to use Ken's terminology) for the entire Zope system. We're going to be doing this with the IMAP functionality that NotMail uses. I'm assuming what you call an LDAP connection is like a Database Adapter is to ZSQL methods. Maybe you might want to consider calling these LDAP Adapters. > > Other stuff: > . UserLDAP is not finished yet (or released) - the primary issue is the > storing of roles and domains. Right now this would have to be some > non-standard LDAP attribute... but what should it be? It also probably > needs modify and add added to ZLDAPMethods before being really useful. > The etcUserFolder product has a settable property to change the 'default role' that the users are given. You can check it out from the download page, it is also in cvs under Packages/Products/etcUserFolder > Things I'd like comments on: > For ZLDAPconn: > what other bind methods would you like to see? > For ZLDAPMethods: > how should add/modify/query be distinguished? Separate methods? > I'd have to look at the code, I'll get back to you. (hey paul, I need a laptop!) > I had planned to get variable interpolation working tonight, but decided I'd > rather get an early night. Probably tomorrow evening, instead. Stuff I hope to > get going in the next day or so: variable interpolation, pluggable brains. > Don't hurt yourself. It looks like you got this down pretty good, I'll proablby be looking into incorporating much of this if not all into Zope, want to be in charge of zope LDAP? We can give you an area on the site. > Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from > http://www.interlink.com.au/anthony/python/ > > It requires David Leonard's ldapmodule, from > http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ > > It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the > ldapmodule works on other platforms (it's available in source, and also as > a windows .pyd) it should work elsewhere, too. > > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Wed Mar 17 06:17:46 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 17 Mar 1999 01:17:46 -0500 (EST) Subject: [Zope] recursive document oddity Message-ID: Hey zope freaks: Okay, I am driving myself crazy, maybe I am just doing something silly (hopefully). I am trying to write this recursive SQL result DTML (basically a tree):

    Category

    I have a variable pwd that I want to pass along to recurseCategories.. I tried something like (and in quotes) pwd is used in listCategories to get a list of categories in that 'path' A couple questions: 1. Should I be using a DTML method or a DTML document for something like this? 2. As I recurse will I lose access to documents in my current folder? I got a traceback to seemed to indicate that once I was into a certain depth I couldn't access listCategories. 3. Is there a more Zope-happy way to do this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mj@antraciet.nl Wed Mar 17 07:58:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 17 Mar 1999 08:58:44 +0100 Subject: [Zope] My own zope site... In-Reply-To: <36EEA147.50458405@profitscape.net> References: <36ED9827.7A8EB410@netscape.com> Message-ID: <4.1.19990317085034.00c271d0@lisp.atmm.nl> At 19:21 16/03/99 , Michael Bernstein wrote: >I've added this to the Zope category in the Open Directory Project: > >http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ > I added the ZDP website as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Wed Mar 17 12:28:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 13:28:32 +0100 Subject: [Zope] fsimport Message-ID: <36EF9FF0.EB6B1648@sol.cz> Does fsdir parameter of fsimport specify the remote directory (where Zope is) or local directory (from where I look at Zope)? -- Milos Prudek From prudek@sol.cz Wed Mar 17 13:27:35 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 14:27:35 +0100 Subject: [Zope] fsimport References: <36EF9FF0.EB6B1648@sol.cz> <36EFA878.F90AECE6@plaza1.snu.ac.kr> Message-ID: <36EFADC7.82074370@sol.cz> > > Does fsdir parameter of fsimport specify the remote directory (where > > Zope is) or local directory (from where I look at Zope)? > > remote directory in your terminology OK, so it still does not work for me. If someone on this conference would look at my mail from Monday, I would be grateful. The idea of having to put all my images into Zope by hand makes me very sick :-) -- Milos Prudek From rocon@pivot.net Wed Mar 17 13:54:49 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 17 Mar 1999 08:54:49 -0500 Subject: [Zope] Python Anyone: Linuxworld Article Message-ID: <01b901be707d$c1b77040$0201a8c0@hawkeye.bob.oc> Check out the article in Linuxworld: This is good for ZOPE newbees who wonder what and why about Python (The underlying language of ZOPE). http://www.linuxworld.com/linuxworld/expo/lw-python.html Title: "Python, anyone? " You may have dismissed Python as just another scripting language beginning with 'P,' but more and more open source developers are finding Python has some bite Summary At first, the Python scripting language may sound like another version of Perl, but Robert Richardson highlights the differences that make it useful in its own right. (1,500 words) By Robert Richardson *--- Paul Everitt mentions Zope in the discussion forums related to this article. -bobo connor bob@rocnet.com From raver@box.dust.za.net Wed Mar 17 16:43:16 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 17 Mar 1999 17:43:16 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 References: <199903160420.XAA01117@mail.digiweb.com>; <19990316204917.A659@RaVER.duck.org> <199903161952.OAA01245@mail.digiweb.com> Message-ID: <19990317174316.A263@RaVER.duck.org> On Tue, Mar 16, 1999 at 02:49:43PM -0500, Tom Jenkins wrote: > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() > > > > > > Anybody have any ideas? > > > > Why not use: > > > > select 'id_field_name' from 'table' where 'id_field_name' IS NULL > > > > id_field_name beeing the field with AUTO_INCREMENT set > > > Hi Sture, > Unfortunately, I don't think that'll work since after the insert there will be > a value (non null) in 'id_field_name' > > Thanks for taking the time for a suggestion, I really do appreciate it. > Probly I misunderstod your problem. Anyways I want to say that my suggestion does just what 'select last_insert_id()' does. namely return the number created in an auto_increment field during your last insert Sture Lygren > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > From kid@ans.net Wed Mar 17 16:52:45 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 17 Mar 1999 11:52:45 -0500 Subject: [Zope] Eric Kidd compares Zope and Frontier Message-ID: <19990317115245.A15201@throwingcopper.ans.net> Hi, I just saw an interesting thread over at http://www.scripting.com. Here's the direct link to the article: http://discuss.userland.com/msgReader$4124 Someone wrote a comparison of Zope and Frontier. Followed up by a technology demo of getting the two to talk via XML. Interesting stuff. Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From TomJenkins@zentuit.com Wed Mar 17 16:57:26 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Wed, 17 Mar 1999 11:57:26 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <19990317174316.A263@RaVER.duck.org> References: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 Message-ID: <199903171700.MAA04810@mail.digiweb.com> > Anyways I want to say that my suggestion does just what 'select > last_insert_id()' does. namely return the number created in an > auto_increment field during your last insert > > Sture Lygren > My profound apologies. "select from where IS NULL" does indeed return the same value as last_insert_id(). My apologies again. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From andy.smith@iname.com Wed Mar 17 17:12:23 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:12:23 -0500 Subject: [Zope] (no subject) Message-ID: <000901be7099$53119140$ce63efa1@venice> Hi All, I'm just uploaded a new Product to the contrib area. It is a poll product based on Amos's example. It uses PIL to draw piecharts of the poll results. I was originally going to include a precompiled PIL with the product, but the product swelled to 500k as a result, so instead I've left pointers to where to get PIL in the product documentation. I'll send a hypertext screenshot immediately after this message so that people can decide whether or not they want to go to the effort of downloading and installing PIL. Pls note that there are some problems I'm having with getting the GIFs to update appropriately, so after banging my head against a wall for a while [in true opensource tradition ;) ] I've decided to throw it open to the floor to see if anyone can find a workaround. I've also uploaded a 'fixed' version of the Guestbook example product, which broke going from Zope1.9 -> Zope1.10. Enjoy! Andy. From andy.smith@iname.com Wed Mar 17 17:16:14 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:16:14 -0500 Subject: [Zope] Poll product example screenshot.... Message-ID: <000a01be7099$dc8f2b30$ce63efa1@venice> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here's a screenshot from the new poll product... (Figures chosen at random and don't reflect the current state of mind of any person or persons ;) ). Cheers, A.. Edit Question Object Id question1 Question Piechart Not bad 64.0 (28.32%) Good 43.0 (19.03%) Ugly 32.0 (14.16%) Been Better 87.0 (38.50%) Responses response1 response2 response3 response4 ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

    Here's a=20 screenshot from the new poll product...

    (Figures=20 chosen at random and don't reflect the current state of mind of any = person or=20 persons ;) ).

    Cheers,

    A..

     

    Edit Question Object

  • Id question1
    Question =
    Piechart
      Not= =20 bad 64.0 (28.32%)
      Goo= d 43.0 (19.03%)
      Ugl= y 32.0 (14.16%)
      Bee= n=20 Better 87.0=20 = (38.50%)
    Responses
    =20 res= ponse1=20
    =20 res= ponse2=20
    =20 res= ponse3=20
    =20 res= ponse4=20 =20 =

    ------=_NextPart_000_000B_01BE706F.F3B92330-- From andy@ictibroker.com Wed Mar 17 17:34:02 1999 From: andy@ictibroker.com (Andy Smith) Date: Wed, 17 Mar 1999 12:34:02 -0500 Subject: [Zope] FW: [Zope] Poll product example screenshot.... Message-ID: <001801be709c$59458550$ce63efa1@venice> Hmm... the screenshot didn't seem to 'travel' too well, Guess you'll just have to install PIL to see it. ;) Cheers, A. From jharris@memphis.edu Wed Mar 17 17:52:24 1999 From: jharris@memphis.edu (Jim Harris) Date: Wed, 17 Mar 1999 11:52:24 -0600 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <000701be709e$ea4cd4c0$642fe18d@jharris.coe.memphis.edu> I contacted NexusWeb yesterday and they said they would provide a setup for Zope, but no support. They were not specific as to the setup. They did mention they supported Python. I was going to write them back to see if they ran Zserver, or just provided the links to Apache. They did have msql and mysql. The minimum plan to support Zope was the 50MB/$20 a month plan. The other site was out of my price range ($50/mo). I just started studying Zope yesterday to use for a project I was planning to use Visual Basic/ADO/ASP for. I'm testing on a Win95 machine, but plan to move testing to a Linux box. I decided before signing up with a hosting server to wait for Zope 2, which I've seen a couple of references to. What's the deal on that? One place promised a better integrated web server. If Zope moves more torward being a totally self contained server, then I don't want to mess with Apache or IIS. -----Original Message----- From: Robert Wentworth To: zope@zope.org Date: Tuesday, March 16, 1999 4:25 PM Subject: [Zope] Impact of Zope on hosting provider? >Right now my biggest obstacle to setting up a Zope-powered >site could be finding a hosting provider I have confidence >in who is willing to run Zope. When I asked my first-choice >provider about running Zope, they replied: > >> Though it's true that we can install programs that need root >> instlall, it only so when the program is low CPU/mem use and >> non-intrusive. Zope is neither, so to run it you would need to get >> your own dedicated server through us. > >A dedicated server is not a viable option for this site at >this point in time. So, a few questions: > >1) Are the provider's fears justified? What sort of > memory footprint, CPU requirements (for a site that > should have fairly low traffic at first), and other > impact are Zope likely to have on a hosting provider? > >2) Would anyone care to let me know what their experience > has been with the two hosting providers (NexusWeb and > CodeIt Computing) listed as known to host Zope-based > sites? (I've been sufficiently badly burned in the past > by bad hosting providers that I cannot justify signing > up for a provider without positive recommendations or > multiple alternatives for backup.) > >Robert Wentworth > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From arankine@lucent.com Wed Mar 17 21:07:09 1999 From: arankine@lucent.com (Rankine, Alastair) Date: Thu, 18 Mar 1999 08:07:09 +1100 Subject: [Zope] Newbie questions Message-ID: Hi Zopesters, I'm trying out Zope for the purpose of getting a book catalogue on the web. So far, I'm extremely impressed with it! Of course, I have some questions. (For the record, I am running Zope 1.10.2 with Apache 1.3.something on a MkLinux DR3 box, administered with IE4 on NT). 1. When you edit a DTML document using the Zope management interface and hit the update button, Zope goes away and tries to parse it to ensure that it's consistent DTML. If this fails, you are left with no option but the browser's back button, which, under IE4 anyway, seems to discard the changes you made to the document. Is there a fix or workaround (besides ctrl-A ctrl-C before clicking the update button) for this? Us newbies write lots of bad DTML :) 2. When a folder acquires an index_html document from further up in the heirarchy, the tag refers to the title of the index_html document, rather than the folder being displayed. How do you write the index_html document to display the title of the acquired object, rather than the index_html document itself? (Hope this is clear) 3. Finally, I need some advice about how best to lay out the website. Basically I'm trying to build a site containing a book catalogue. Here's what I've got so far: + Root + Titles [folder] - index_html + OriginSpecies [folder, title: "Origin of the Species", desc: "blah", author: "CharlesDarwin", year: 1854] - cover [image] + DiamondAge [folder, title: "The Diamond Age", desc: "blab", author: "NealStephenson", year: 1995] - cover [image] ... + Authors [folder] - index_html + CharlesDarwin [folder, title: "Charles Darwin", bio: "..."] - photo [image] + NealStephenson [folder, title: "Charles Darwin", bio: "..."] - photo [image] Hope the notation is clear enough. What I want to do is "link" the titles to their authors and vice versa. So the index_html document for Authors would display the author, their picture, bio, and a list of titles by them. A similar arrangement would apply for Titles. The author property of the title (*) links the title to author, but what's the best way to link backwards? Similarly, what's the best way to display the author's information for a title? All advice appreciated! Thanks. (*) assuming only one author for now From tschruefer@mail.howard.k12.md.us Wed Mar 17 21:15:41 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 17 Mar 1999 16:15:41 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903172113.QAA02057@mail.howard.k12.md.us> Thus far my attempts to install the Zope binary release on a Linux machine have been for nothing. The Install documentation and the Install program contradict each other at almost every turn. The docs say use ./install -u but the -u switch is gives a error message, saying it is a invalid switch and not supported at all. The install --help, says nothing about a -u switch. The docs say you can specify the cgi directory, with the -c switch, but the install program says that is a unsupported feature. The -s switch in the docs says this is to provide the superuser login and password to the install routine, yet the install program say this is used to strip tables (perhaps parsing the access file), none of the docs say anything more. I have tried numerous variations, all to no avail. Perhaps the ZDP should have started at the beginning, with usable install instructions, instead of with a FAQ. I must say that the screen shots in the PDF file and those docs are quite nice, but thats about it. Reading the PDF docs, just makes me want to get in and try Zope even more. Is there anyone that could help or give me some pointers ? Tom From cimarron@taylors.org Thu Mar 18 00:35:52 1999 From: cimarron@taylors.org (cimarron@taylors.org) Date: Wed, 17 Mar 1999 16:35:52 -0800 Subject: [Zope] multiple trees Message-ID: <199903180035.QAA28795@christopherrobin.kolo.net> There seems to be a problem with DTML documents which uses more than one .. sections. I'm seeing a python error when attempting to expand any node of the second tree. I'm going to try and fix this on my own as a way to familiarize myself with Zope internals but I thought others on this list might want to be aware of the problem and/or provide information about their own experience with multiple trees. Cimarron Taylor cimarron@taylors.org From wade@okaynetwork.com Thu Mar 18 00:37:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 17 Mar 1999 19:37:33 -0500 Subject: [Zope] ZAP In-Reply-To: References: Message-ID: <199903180036.TAA03738@gem.lightlink.com> > On Sun, 14 Mar 1999, Shaw, Howard wrote: > > > How can I configure ZAP so that all http requests go through the cgi? > > Zope is the only thing running through this apache, so I don't want > > everything on the site prefixed with Zope/ (or anything else, so no, I > > don't just want to know how to change the prefix). This is basically > > what is keeping me on ZopeHTTPServer. > > > > [snip] > > > > How can I make a Zope pcgi accessible as the root of a Zap install? > > Please help. > > In looking through my Apache configuration files, I tried to piece > together what changes I made. Here's what I think you need to do. > > In httpd.conf, make sure you have these lines (I put them at the end): > > Alias / /cgi-bin/Zope.cgi > > # Zope configuration maps /Zope/ to the Zope.cgi CGI script > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > NOTE: In the RewriteRule directive above, the [e=...] stuff should go > directly after the ...Zope.cgi/$1 section, with a space separating them, > e.g. ...Zope.cgi/$1 [e=HTTP...] > > You will need to munge the path in the RewriteRule directive, where it > says /home/httpd to be wherever your document root is. > > I did this a while back, and have since switched from Apache to ZServer to > test it out, so I haven't used it lately. However, this should work, as I > never changed the config files after I stopped using Apache. > > Let me know if you have problems; I'll do what I can to help. > > > Howard C. Shaw III > > jkh > Here's a setup that works for me. ----- ServerName www.okaynetwork.com ServerAdmin wade@okaynetwork.com DocumentRoot /home/ok/htdocs ErrorLog logs/okaynetwork.com-error_log TransferLog logs/okaynetwork.com-access_log RewriteEngine On RewriteLog logs/okaynetwork-rewrite-log RewriteLogLevel 0 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule (.*) /usr/local/Zope/Zope/Zap/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http d-cgi,l] --------- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Anthony Baxter Thu Mar 18 07:29:48 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 18 Mar 1999 18:29:48 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: Your message of "Tue, 16 Mar 1999 20:40:15 MDT." <199903170240.UAA04469@icebox.dlogue.net> Message-ID: <199903180729.SAA06949@mbuna.arbhome.com.au> >>> Michel Pelletier wrote > We here at DC (well, I'm out of the office this week, but I'm there > virtualy) have been kicking around an LDAP authentication mechanism, > probably a folderoid, to go against LDAP. In fact, this was supposed to > be one of my projects when I get back next week. From the details below > it looks like you have thought this out well, I didn't even consider > making an API of methods like XSQL methods, good idea! It's on the list. I was originally going to write a simple LDAP auth object, then thought about it a bit more and realised a generic interface into LDAP would be more useful, then I can bolt the auth on top. > > In ZLDAPconn: > > . Anything other than simple_bind(who, passwd) for connecting to the > > LDAP server > That's where we want to start... The way I figure it, I'll support this first. If/when someone needs something else, I'll look at supporting that. > Under the catagory 'result caching' you might want to consider making some > kind of Connection Manager in your LDAP Connection. A model I've been > kicking around is a CM class that manages Connections and uses a simple > caching algoritm. Not quite sure what you're getting at here :) > Wrapping all of the API in a class will also help yu > when you want to break out the LDAP stuff and stick it in shared. In > this way, it becomes a sort of 'Device Driver' (to use Ken's > terminology) for the entire Zope system. Hm. The LDAP connection already is a class. It's as much a device driver as the current Database Adaptors. > We're going to be doing this > with the IMAP functionality that NotMail uses. I'm assuming what > you call an LDAP connection is like a Database Adapter is to ZSQL methods. > Maybe you might want to consider calling these LDAP Adapters. Good point. Next version, they'll be called that. (I figure I'm allowed to make changes like this between versions 0.1 and 0.2 :) > The etcUserFolder product has a settable property to change the 'default > role' that the users are given. You can check it out from the download > page, it is also in cvs under Packages/Products/etcUserFolder That and maybe allowing a mapping for any organizationalRole that the users have. More useful for the "lecturer", "student" type roles. > I'd have to look at the code, I'll get back to you. (hey paul, I need a > laptop!) Yeah, Paul, get the boy a laptop. :) > > I had planned to get variable interpolation working tonight, but decided I'd > > rather get an early night. Probably tomorrow evening, instead. Stuff I hope > > get going in the next day or so: variable interpolation, pluggable brains. > > > Don't hurt yourself. It looks like you got this down pretty good, I'll > proablby be looking into incorporating much of this if not all into Zope, I've got variable interpolation _mostly_ working. For some reason, though, it doesn't pick up all the namespaces - I'm probably just not using the document templates right. I'm going to add DTML interp. to both the filters and to the baseDN. Depends on my supply of round tuits - I might get the pluggable brains also working shortly. I kinda see how they work now. > want to be in charge of zope LDAP? We can give you an area on the site. Hm - depends if it's easier to get to than my current web site. :) Anthony -- Anthony Baxter It's never to late to have a happy childhood. From Andreas Jung Thu Mar 18 09:17:46 1999 From: Andreas Jung (Andreas Jung) Date: Thu, 18 Mar 1999 10:17:46 +0100 (MET) Subject: [Zope] Python freezes in lwp_sema_p() Message-ID: We are running Python1.5.2b2 (with thread support) , latest DCOracle, Oracle 7.3 under Solaris 2.5.1. Some of our applications hang in about 10% when they run. We trussed the binaries and discovered that they all sleep in a lwp_sema_p() call. Python/thread_cthread.h seems to mention a problem with the Solaris PThreads implementation however I can't figure out if this is the real problem. I am not sure whether it's a problem of Python, DCOracle or the Oracle libraries. Any ideas or comments ? Thanks, Andreas _\|//_ (' O-O ') ------------------------------ooO-(_)-Ooo-------------------------------------- Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH Saarbrücker Daten-Innovations-Center Gutenbergstr. 11-23, D-66103 Saarbrücken, Germany Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509 Email: ajung@sz-sb.de (PGP key available) ------------------------------------------------------------------------------- From rocon@pivot.net Thu Mar 18 13:13:25 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 18 Mar 1999 08:13:25 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <004901be7141$318eaf00$0201a8c0@hawkeye.bob.oc> Hi Thomas, >Is there anyone that could help or give me some pointers ? Yup, those switch options are confusing so I avoid them ;-) First, the most helpful tool for me in working with Linux is "git". This is a nice character based navigation and file management utility. Just type git. It came on my RH Linux and is installed automatically without your request. This program is alot like the DOS Norton Commander that I started using years ago. So you get the distribution: Zope-1_10_2-linux2-x86.tgz I use git's F6 key to rename it zope1102.tgz to ease the long typing. Move it to a newly created directory (F7) named perhaps "zope". Then in that directory, type: tar -xvzf zope1102.tgz A new directory is then created under your new zope directory named: Zope-1_10_2-linux2-x86.tgz/ Go into this directory and type ***This is were you got stuck*** ./install ***No switches!!! Then edit the access file now in this directory and change the obscure username and password to your favorites with F4 key to use "vi" Press i to insert new user/passwrd -- example: zope:gogo Press escape then :wq to save. Then ./start to start zope and maybe later if you EVER want to stop zope (who would ever WANT to stop!, ./stop. BTW, if you want to test the integrity of the downloaded zope distro, only change the t to an x as in: tar -xvzf zope1102.tgz Enjoy!!! -bobo connor From mj@antraciet.nl Thu Mar 18 13:33:05 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 18 Mar 1999 14:33:05 +0100 Subject: [Zope] I don't trust this. Message-ID: <4.1.19990318141119.00c0ad80@lisp.atmm.nl> Hello list, are you there? Sorry, but I haven't had any mail from the Zope list, Zope-Dev list and the ZDP list for over 3 and a half hours. And I don't trust such quiet.. =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tschruefer@mail.howard.k12.md.us Thu Mar 18 17:12:06 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Thu, 18 Mar 1999 12:12:06 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903181710.MAA21630@mail.howard.k12.md.us> >Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: >Hi Thomas, > >***This is were you got stuck*** > >./install > >***No switches!!! > Ok, unstuck, whoops, stuck again. I guess I have to do this in little baby steps. Some sort of initiation ritual, I think. ;-) Now I am getting the error message below even though python is clearly in the bin directory under the Zope install directory. "./install: bin/python: No such file or directory" This is the shell install script: *** #!/bin/sh # Get script dir if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` cd $PYTHONHOME else PYTHONHOME=. fi export PYTHONHOME bin/python inst/product_install.py $* *** A little different than the PERL I am used to seeing, but I've managed to make heads-and-tails of the thing. - I checked the location of python in the Zope install dir, ok. - I checked to ensure that the sh shell was in the bin/ dir, ok. Next up, re-upload the Zope file and check for a corrupted archive. Any other ideas ? From adminjim@coe.memphis.edu Thu Mar 18 19:39:36 1999 From: adminjim@coe.memphis.edu (Jim Harris) Date: Thu, 18 Mar 1999 13:39:36 -0600 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <000601be7177$11a7a940$642fe18d@jharris.coe.memphis.edu> Hope you don't mind me butting in, but if you just want to check out Zope very quickly, run the Windows version on 95/98/NT. It was nothing to install, and I was playing with Zope two minutes after downloading it. Python is also a snap to insall on Windows. -----Original Message----- From: Thomas Schruefer To: Zope Date: Thursday, March 18, 1999 10:09 AM Subject: Re: [Zope] Newbie install help needed !!!!! > > >>Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: > >>Hi Thomas, >> > >>***This is were you got stuck*** >> >>./install >> >>***No switches!!! >> > >Ok, unstuck, whoops, stuck again. > >I guess I have to do this in little baby steps. Some sort of initiation >ritual, I think. ;-) Now I am getting the error message below even >though python is clearly in the bin directory under the Zope install >directory. > >"./install: bin/python: No such file or directory" > >This is the shell install script: > > >*** >#!/bin/sh > ># Get script dir >if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then > PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` > cd $PYTHONHOME >else > PYTHONHOME=. >fi > >export PYTHONHOME >bin/python inst/product_install.py $* >*** > >A little different than the PERL I am used to seeing, but I've managed to >make heads-and-tails of the thing. > > >- I checked the location of python in the Zope install dir, ok. >- I checked to ensure that the sh shell was in the bin/ dir, ok. > > >Next up, re-upload the Zope file and check for a corrupted archive. > > >Any other ideas ? > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Christopher.Abraham@cio.treas.gov Thu Mar 18 21:22:22 1999 From: Christopher.Abraham@cio.treas.gov (Christopher.Abraham@cio.treas.gov) Date: Thu, 18 Mar 1999 16:22:22 -0500 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <85256738.007567CA.00@mail.cio.treas.gov> Hi. Here's the required History: Cold Fusion almost then found PHP3 and now ZOPE. I am running a P100 RH5.2 Apache 1.3, Kernel 2.0.36 and I am pretty sure I have Zope running: http://memes.org But neither my guru or I can get Apache to dance with Zope -- I am having all kinds of problems getting the admin page to work with me and my Login/PW is just not taking. My guru cannot even get it going and suggests using the Python server -- but I shall not be dashed -- any more info you need, I will give you a wee bit more: Want to use MySQL and will be developing a Writer's site -- for my fun and no profit, currently at: http://coelaboration.com -- I want to publish Hyperfiction and Hypertext using Zope as opposed to Perl or flatstatic... Cheers in advance... Chris From tony.mcdonald@ncl.ac.uk Thu Mar 18 22:33:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 18 Mar 1999 22:33:01 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903182236.WAA24270@cheviot.ncl.ac.uk> Hi all, I have an application that consists of 140+ XML documents, roughly 100k bytes each that I want to be able to query (using XSL pattern matching at present) and output to XML/HTML and RTF format. This will happen in real time (if at all possible). At the moment, my XML documents are held as files in a real file system (sacrilige! :). However, I'd like to get them into the database structure if at all possible, as I imagine it will make things easier in terms of searching. For example, the XML file Cell Biology is a good thing. If it weren't for Cell Biology, you wouldn't be around. This is lecture 1. This is lecture 2. A big bok Would lend itself to creation in the Zope database really easily (I think). XML elements (document, topic) and attributes such as id (used to uniquely identify an element) and title would be properties of the DTML document/method. So long as the id numbers were properly arranged, it should be *relatively* (good word that!) simple to recreate the original XML document. I assume that parsing the XML (in actual fact, the DTML doc/method would consist of *very little* XML I think, it all being taken care of in properties) to create HTML would be, again, relatively easy (my own tendency is to use the 'title' attribute as a class identifier for cascading style sheets). My question is, do people think that this idea could fly? I have spent *a long time* looking at how to get our Word (sorry for saying that!) documents into a format that means they can be easily put into a database and thereby benefit from all the good things that means. Several cul-de-sacs and wasted weekends later, it seems to me that Zope is coming out to be the closest thing to a solution for my problem... (I know from off-list discussions that there's a definite 'weirdness' about how people have been wanting/needing to implement things and then finding that (a) Zope does it already, (b) there's a product available or (c) someones working on it... !). any thoughts, as usual, greatly appreciated. tone. From jae@kavi.com Thu Mar 18 22:58:22 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 14:58:22 -0800 (PST) Subject: [Zope] ZSQL direct traveral question Message-ID: I've been messing around with using direct traveral on the ZSQL methods. I'm having a problem getting the traveral to work with anything more than one level of depth, eg: http://zope.kavi.com/mem/2/comp_admin/contacts/ Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. But it does work in this case: http://zope.kavi.com/comp_admin/contacts/mem/2/ Is this a restriction on the use of ZSQL direct traveral, or am I doing something wrong. If this is a restriction on how you can use direct traversal, I was wondering why, and if it'd be possible to 'fix' this. If so, I'm willing to do it and supply a patch, I assume this is functionality comes from Zope/lib/python/Shared/DC/ZRDB/DA.py, either in the DA.__call__ or in the Traverse object. I'll have to mess around with it a bit to figure out exactely whats going on (but I figured I'd ask about it first). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Thu Mar 18 23:21:24 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 18 Mar 1999 18:21:24 -0500 (EST) Subject: [Zope] Parsing XML into/out of the database In-Reply-To: <199903182236.WAA24270@cheviot.ncl.ac.uk> Message-ID: On Thu, 18 Mar 1999, Tony McDonald wrote: > Would lend itself to creation in the Zope database really easily (I think). > XML elements (document, topic) and attributes such as id (used to uniquely > identify an element) and title would be properties of the DTML > document/method. So long as the id numbers were properly arranged, it should > be *relatively* (good word that!) simple to recreate the original XML > document. I assume that parsing the XML (in actual fact, the DTML doc/method > would consist of *very little* XML I think, it all being taken care of in > properties) to create HTML would be, again, relatively easy (my own tendency > is to use the 'title' attribute as a class identifier for cascading style > sheets). > > My question is, do people think that this idea could fly? I have spent *a > long time* looking at how to get our Word (sorry for saying that!) documents This is more or less what I did for my original FAQ product (but on a much smaller scale). I found out XML docs map nicely onto Zope's DB structure. I think you should give it a try because really it is not much effort to implement. Since the FAQ development has moved to zdp.zope.org my site is no longer needed so I created a guest account with the following authentication info: guest bobo at URL http://www.gaaros.com:9673 You can visit it and see my approach to the problem. I should also include the code of the external method that creates the Zope objects. (I believe a couple of more zopistas asked me for source access so here is your chance.) I have backed up Zope's DB so you can mess around as much as you want. Pavlos From jkhoffman@usa.net Thu Mar 18 23:38:42 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 18:38:42 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > I've been messing around with using direct traveral on the ZSQL methods. > I'm having a problem getting the traveral to work with anything more than > one level of depth, eg: > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > But it does work in this case: > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > something wrong. Without seeing your folder hierarchy, I'm not quite sure what's going on. Frankly, my head feels like it's going to explode when I try and figure out how your second example even worked. What are comp_admin and contacts? Folders? Where do they fit in your folder hierarchy? I have an event calendar, in which I use direct traversal of a ZSQL Method to display a particular event. My hierarchy is as follows: + events [Folder] - event_details_html [DTML Method] - dbFindEventById [ZSQL Method] My dbFindEventById method takes on parameter, event_id. To use direct traversal on my dbFindEventById query, using the event_details_html file to display the details of the event with event_id of 2 requires the following URL: http://localhost/events/dbFindEventById/event_id/2/event_details_html At first, I tried: http://localhost/events/dbFindEventById/2/event_details_html which looks very close to your first example, and it did not work. Then I realized you are required to specify the name of the parameter in the URL as well, so I added event_id before the 2, and I was off to the races. I'm sure I've misunderstood your problem somewhere, and if I did, I apologize for spouting off nonsense. But, I figured this just might help, since I got tripped up when I first tried to use direct traversal, also. Better safe than sorry. :^) > John Eikenberry jkh From jae@kavi.com Thu Mar 18 23:58:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 15:58:05 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > I've been messing around with using direct traveral on the ZSQL methods. > > I'm having a problem getting the traveral to work with anything more than > > one level of depth, eg: > > > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > > But it does work in this case: > > > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > > something wrong. > > Without seeing your folder hierarchy, I'm not quite sure what's going on. > Frankly, my head feels like it's going to explode when I try and figure > out how your second example even worked. What are comp_admin and contacts? > Folders? Where do they fit in your folder hierarchy? Ok, a bit more info... mem ZSQL method (on top level - stands for member company) + comp_admin folder (company admin) + contacts folder (contact info for that company) contacts has an index_html which uses information returned from the mem query (its not how I use it, it won't even display with just #var). 'mem' takes one argument: comp_id (of which 2 is a test case) > I have an event calendar, in which I use direct traversal of a ZSQL Method > to display a particular event. My hierarchy is as follows: > > + events [Folder] > - event_details_html [DTML Method] > - dbFindEventById [ZSQL Method] > > My dbFindEventById method takes on parameter, event_id. To use direct > traversal on my dbFindEventById query, using the event_details_html file > to display the details of the event with event_id of 2 requires the > following URL: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > At first, I tried: > > http://localhost/events/dbFindEventById/2/event_details_html > > which looks very close to your first example, and it did not work. Then I > realized you are required to specify the name of the parameter in the URL > as well, so I added event_id before the 2, and I was off to the races. Actually, I've found the reverse to be true. When I try: http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ I get this error: Invalid integer value for comp_id Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 413, in publish (Info: /db/m/comp_id/2/comp_admin/contacts/) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 414, in __getitem__ (Object: CopySource) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 386, in __call__ (Object: CopySource) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File lib/python/Shared/DC/ZRDB/sqltest.py, line 192, in render (Object: comp_id) ValueError: (see above) If I use creosote.spew to output the comp_id value before calling the query (I made spew an external method on the top level, this has come in very handy), the value resolves to 'comp_id'. But when I don't use the comp_id arg (like in the original example, and spew shows the value to be 2), it works fine as long as the method using it is the next on the URL. > I'm sure I've misunderstood your problem somewhere, and if I did, I > apologize for spouting off nonsense. But, I figured this just might help, > since I got tripped up when I first tried to use direct traversal, also. > Better safe than sorry. :^) Actually you are close, but in your example you use it as I said it works. In your code app can you do something like this (fictional change of your example): http://localhost/events/dbFindEventById/ event_id/2/modify_event/edit_event_details_html (should be all one line) Make more sense now? BTW, thanks for the help. :) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Fri Mar 19 02:18:35 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 18:18:35 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > > > At first, I tried: > > > > http://localhost/events/dbFindEventById/2/event_details_html > > > > which looks very close to your first example, and it did not work. Then I > > realized you are required to specify the name of the parameter in the URL > > as well, so I added event_id before the 2, and I was off to the races. > > Actually, I've found the reverse to be true. When I try: > > http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ > > I get this error: > > Invalid integer value for comp_id > < Traceback snipped > Ok, I think I figured out why we have different (opposite) results in this. I don't think you checked the "Allow direct traversal" checkbox on the advanced management page for the ZSQL method. If I unchecked it, then I could traverse like so... http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ After checking it, I could traverse in this way... http://zope.kavi.com/mem/2/comp_admin/contacts/ Strange... :) Still doesn't address my original problem thought. I still can't get access to any of the results of the 'mem/2' query anywhere other than directly after it (on the url). Ie. http://zope.kavi.com/mem/2/comp_admin/contacts/index_html Doesn't work, but... http://zope.kavi.com/mem/2/test_html Does... I'm still digging through the ZSQL code looking for a way to fix this. I'll let everyone know once I've figured it out. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jkhoffman@usa.net Fri Mar 19 03:13:36 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:13:36 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, John Eikenberry wrote: > > [snip] > > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... Ok, here's a thought. What about trying: http://zope.kavi.com/comp_admin/contacts/mem/2/index_html Since the 'mem' ZSQL Method is in your root folder, it will be acquired by all folders below the root folder. Thus, the URL above should tell ZPublisher to go to the /comp_admin/contacts folder, then call the acquired 'mem' ZSQL method, with 2 as an argument, and using index_html to display the results. (Assuming the parameter name is not required, because you have checked 'Allow direct traversal', as you described.) I am curious to know what the 'Allow direct traversal' button does on the Advanced tab. Can anyone else here comment on that? Frankly, I didn't know it existed, as I've been able to use direct traversal just fine without it. It's curious to me that it changes the behavior of the traversal in the manner you demonstrated. I'm dying to know why. :^) > John Eikenberry jkh From jkhoffman@usa.net Fri Mar 19 03:17:47 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:17:47 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > > I'm sure I've misunderstood your problem somewhere, and if I did, I > > apologize for spouting off nonsense. But, I figured this just might help, > > since I got tripped up when I first tried to use direct traversal, also. > > Better safe than sorry. :^) > > Actually you are close, but in your example you use it as I said it works. > In your code app can you do something like this (fictional change of your > example): > > http://localhost/events/dbFindEventById/ > event_id/2/modify_event/edit_event_details_html In this case, I would probably do: http://localhost/events/modify_event/dbFindEventById/ event_id/2/edit_event_details_html (should all be one line) > Make more sense now? Yup. > BTW, thanks for the help. :) You bet. By the way, what in the world is creosote.spew? :^) > John Eikenberry jkh From TomJenkins@zentuit.com Fri Mar 19 03:19:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 22:19:32 -0500 Subject: [Zope] Tracebacks and feeling pretty dumb Message-ID: <199903190322.WAA05466@mail.digiweb.com> Hey folks, Boy I'm feeling mighty dumb, but I just now, after maybe 8 hours of zope stuff (late night after work), discovered where the tracebacks were hiding from me. I searched this list, but never actually saw where they were printed, I finally saw it in the Trinkets Tutorial which I'm sure I read earlier . So just in case someone else is out there in the same boat as I was - the tracebacks are comments in the html error page. DOH! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From kid@kendermedia.com Fri Mar 19 03:47:36 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Thu, 18 Mar 1999 19:47:36 -0800 (PST) Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <19990319034736.16171.rocketmail@send206.yahoomail.com> ---Christopher.Abraham@cio.treas.gov wrote: > http://memes.org > > But neither my guru or I can get Apache > to dance with Zope -- I am having all > kinds of problems getting the admin page > to work with me and my Login/PW is just > not taking. You'll want to check out the doc/WEBSERVER.txt file under your Zope directory. Make sure your running a recent enough version of Apache and have mod_rewrite installed. Then, you need to configure rewrite rules so that Apache will pass authentication info through to Zope. Kevin _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com From simon@joyful.com Fri Mar 19 03:55:39 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 19:55:39 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" References: <36EE5791.1B7AD457@GestaltTechnology.com> Message-ID: Fredy Villa writes: > This is another post to make you aware of a new source of > information for Zope. You can access #zope on the EFNet servers. Their thanks for the resource - I want to check it out. Maybe you could answer this for me and other irc newbies, since I cannot find an answer elsewhere: All EFNet servers I've tried require me to be running "identd". Is there one which doesn't ? It's not on my default redhat system and I won't install it if I don't have to. -Simon From TomJenkins@zentuit.com Fri Mar 19 04:01:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:01:14 -0500 Subject: [Zope] IRC channel In-Reply-To: References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" Message-ID: <199903190404.XAA15203@mail.digiweb.com> > Fredy Villa writes: > > > This is another post to make you aware of a new source of > > information for Zope. You can access #zope on the EFNet servers. Their > > thanks for the resource - I want to check it out. Maybe you could > answer this for me and other irc newbies, since I cannot find an > answer elsewhere: > > All EFNet servers I've tried require me to be running "identd". Is > there one which doesn't ? It's not on my default redhat system and I > won't install it if I don't have to. > Simon, AFAIK, all the EFNet servers require identd. If you are running ip-masq then you need midentd. You can find it at rpmfind website ( http://rpmfind.net/RPM ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From TomJenkins@zentuit.com Fri Mar 19 04:17:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:17:00 -0500 Subject: [Zope] IRC channel In-Reply-To: <199903190404.XAA15203@mail.digiweb.com> References: Message-ID: <199903190420.XAA28663@mail.digiweb.com> > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > Sorry, my mistake, there isn't an rpm for midentd... here's the url ftp://ftp.ox.compsoc.org.uk/pub/users/steve/midentd/ get the midentd-0.1.1.tar.gz file -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From Anthony Baxter Fri Mar 19 04:43:38 1999 From: Anthony Baxter (Anthony Baxter) Date: Fri, 19 Mar 1999 15:43:38 +1100 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Your message of "Thu, 18 Mar 1999 23:01:14 CDT." <199903190404.XAA15203@mail.digiweb.com> Message-ID: <199903190443.PAA11704@mbuna.arbhome.com.au> Heck, identd is a trivial enough protocol. You can always just write one in 2 lines of python which just returns "sod off" as the username. :) That EFnet require it is somewhat puzzling. Anthony > > Fredy Villa writes: > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > From simon@joyful.com Fri Mar 19 06:15:21 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 22:15:21 -0800 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Anthony Baxter's message of "Fri, 19 Mar 1999 15:43:38 +1100" References: <199903190443.PAA11704@mbuna.arbhome.com.au> Message-ID: Anthony Baxter writes: > Heck, identd is a trivial enough protocol. You can always just > write one in 2 lines of python which just returns "sod off" as the > username. :) Heh :) Thanks all, for the info. From kevin@studioinfo.com Fri Mar 19 06:36:21 1999 From: kevin@studioinfo.com (Kevin Teague) Date: Thu, 18 Mar 1999 22:36:21 -0800 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: I installed the Zope binary on a linux box, and everything went well. User authentication worked successfully with Apache using the 'REMOTE USER' environment variable. Then I tried to get ZMySQLDA to work, but I couldn't get the Zope Python install to find 'libmysqlclient'. I got a build of Python 1.5.1 to successfully import MySQL. So I decided to reinstall Zope from source, so that I could use my own Python. The source Zope built okay, but when I tried to start Zope through the web browser I got an "Internal Server Error" message from Apache, the error log said I had a "Premature end of script header". I've checked permission on the var dir and user authentication still seems to work fine. I couldn't figure out why I was getting the error, so I tried re-installing the binary distribution of Zope. No luck there either, I get the same "premature end of script header" error message. I've checked the Zope.cgi file, and it seems o.k. Does anyone have any idea why Zope.cgi is failing on me? Is there something I have to do to Apache or Zope if I've removed the Zope folder and then untarred and re-installed a new Zope? Don't know if this'll help, but this is what I get when I run Zope.cgi from the command line: Status: 500 Internal Server Error Bobo-Exception-File: lib/python/ZPublisher/Request.py Content-Type: text/html Bobo-Exception-Type: exceptions.KeyError Bobo-Exception-Value: SCRIPT_NAME Content-Length: 363 Bobo-Exception-Line: 167 exceptions.KeyError Sorry, an error occurred.

    Kevin Teague Kevin@StudioInfo.com Temporary Nelson address: #6-560 Baker street Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 From tony.mcdonald@ncl.ac.uk Fri Mar 19 06:26:32 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 19 Mar 1999 06:26:32 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903190636.GAA00186@cheviot.ncl.ac.uk> > Since the FAQ development has moved to zdp.zope.org my site is no longer > needed so I created a guest account with the following authentication > info: > Many thanks Pavlos - I saw that the Doc effort had moved to zdp.zope.org and is using structured text, and thought that it was a bit of an opportunity lost (no disrespect to the Zope Doc Effort of course) as I was amazed to see that the FAQ system you wrote was XML-based and hence easily extensible. > guest > bobo > > at URL http://www.gaaros.com:9673 > > You can visit it and see my approach to the problem. I should also include > the code of the external method that creates the Zope objects. (I believe > a couple of more zopistas asked me for source access so here is your > chance.) I have backed up Zope's DB so you can mess around as much as you > want. Thats excellent! - thanks a lot. I'll be snooping around later on once I get into work - I had looked at XMLConfig almost straight away, but had to put it to one side whilst I got to grips with Zope (and Python!) fundamentals. At least I've got somewhere to start from now... again many thanks for this, tone. From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 08:58:20 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 08:58:20 -0000 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <001f01be71e6$a359ca20$5c773fc1@media1> Also, and this is important! Don't forget to make sure that the cgi driectory holding Zope.cgi has ExecCGI turned on. As I said this is important, later versions of Apache don't turn it on by default. HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Dangoor To: ; Sent: Friday, March 19, 1999 3:47 AM Subject: Re: [Zope] Newbie: How to make Apache Play Nice... >---Christopher.Abraham@cio.treas.gov wrote: >> http://memes.org >> >> But neither my guru or I can get Apache >> to dance with Zope -- I am having all >> kinds of problems getting the admin page >> to work with me and my Login/PW is just >> not taking. > >You'll want to check out the doc/WEBSERVER.txt file under your Zope >directory. Make sure your running a recent enough version of Apache >and have mod_rewrite installed. Then, you need to configure rewrite >rules so that Apache will pass authentication info through to Zope. > >Kevin >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 09:03:47 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 09:03:47 -0000 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: <004701be71e7$661d68a0$5c773fc1@media1> The error you get when running Zope.cgi from the command line is a red herring, ignore it? It comes about because SCRIPT_NAME is set by the Web Server and as you aren't running it through such, you will get errors telling you that various ENVVARS do not exist. As to your other problem, hmm, it still sounds as if the var dir is not set correctly, maybe? HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Teague To: Sent: Friday, March 19, 1999 6:36 AM Subject: [Zope] Zope install help needed: "Premature end of script header" >I installed the Zope binary on a linux box, and everything went well. User >authentication worked successfully with Apache using the 'REMOTE USER' >environment variable. Then I tried to get ZMySQLDA to work, but I couldn't >get the Zope Python install to find 'libmysqlclient'. I got a build of >Python 1.5.1 to successfully import MySQL. > >So I decided to reinstall Zope from source, so that I could use my own >Python. The source Zope built okay, but when I tried to start Zope through >the web browser I got an "Internal Server Error" message from Apache, the >error log said I had a "Premature end of script header". I've checked >permission on the var dir and user authentication still seems to work fine. >I couldn't figure out why I was getting the error, so I tried re-installing >the binary distribution of Zope. No luck there either, I get the same >"premature end of script header" error message. I've checked the Zope.cgi >file, and it seems o.k. > >Does anyone have any idea why Zope.cgi is failing on me? Is there something >I have to do to Apache or Zope if I've removed the Zope folder and then >untarred and re-installed a new Zope? > >Don't know if this'll help, but this is what I get when I run Zope.cgi from >the command line: >Status: 500 Internal Server Error >Bobo-Exception-File: lib/python/ZPublisher/Request.py >Content-Type: text/html >Bobo-Exception-Type: exceptions.KeyError >Bobo-Exception-Value: SCRIPT_NAME >Content-Length: 363 >Bobo-Exception-Line: 167 > > > >exceptions.KeyError > > >Sorry, an error occurred.

    > > >Kevin Teague >Kevin@StudioInfo.com > >Temporary Nelson address: #6-560 Baker street >Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jaime@ml.com Fri Mar 19 14:18:57 1999 From: jaime@ml.com (Jaime A. Jofre) Date: Fri, 19 Mar 1999 14:18:57 +0000 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <36F25CD1.69125518@ml.com> Can anyone tell me how to setup up Zope using PCGI with Netscape Enterprise Server 3.51? I have read WEBSERVER.txt, but it only details Apache. Any help would be greatly appreciated. Cheers, Jaime From p.bizzarri@icube.it Fri Mar 19 15:13:06 1999 From: p.bizzarri@icube.it (Paolo Bizzarri) Date: Fri, 19 Mar 1999 16:13:06 +0100 Subject: [Zope] Access control problems. Message-ID: <36F26982.C8DBAF5@icube.it> Hi everybody, I am in a FAQish problem. I am using ZopeHTTPServer for setting up a complex intranet site. However, access control do not seem to work at all. Either I can build a public site (which is viewable by everybody), or I have to use SuperUser passwd to enter in a private site. I would like to allow user A to see folder X but not folder Y, and so on. I have created users, assigned roles, but it seems not to work. BTW, cut & paste do not seem to work at all. Any suggestions ? Thanks. -- ----------------------------------------------------------------------- | Paolo Bizzarri, I3 Icube Srl, Via Ridolfi 15, 56100 Pisa, Italy | | Email: p.bizzarri@icube.it WWW: www.icube.it | | Tel: 050 97 02 07 Fax: 050 36 31 588 | |-----------------------------------------------------------------------| | Red Hat Support Partner & Samba Consultant | ----------------------------------------------------------------------- From FVilla@GestaltTechnology.com Fri Mar 19 15:53:35 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 19 Mar 1999 10:53:35 -0500 Subject: [Zope] IRC channel References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" <199903190404.XAA15203@mail.digiweb.com> Message-ID: <36F272FE.52C87A31@GestaltTechnology.com> Simon, irc.cs.cmu.edu doesn't require it, last I checked. Fredy Villa bohemio@thetruthhurts.com Tom Jenkins wrote: > > Fredy Villa writes: > > > > > This is another post to make you aware of a new source of > > > information for Zope. You can access #zope on the EFNet servers. Their > > > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Y2K problem? The Mayans didn't have a millennium-2K problem! > Eric S. Raymond at IPC7, on learning that the Mayan calendar > takes 28 octillion years to wrap around From Brian@digicool.com Fri Mar 19 16:19:52 1999 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 19 Mar 1999 11:19:52 -0500 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <613145F79272D211914B0020AFF64019FD99@GANDALF> > Can anyone tell me how to setup up Zope using PCGI with Netscape > Enterprise Server 3.51? I have read WEBSERVER.txt, but it > only details > Apache. Any help would be greatly appreciated. > > Cheers, > > Jaime Jaime, Please see the url http://www.zope.org/Download/Prereleases/NetscapePlugin Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jamesh@altavista.net Fri Mar 19 17:11:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 09:11:12 -0800 (PST) Subject: [Zope] Security tab in home grown Product Message-ID: I'm resending this to the zope list, because I didn't get any response from the zope-dev list. Hi. I have made my first Product (a little message wall that people can post colored messages to), but I am having some trouble with the Security tab. When I press the tab, I get a Permissions screen that looks as it should, but when I click the change button (no matter what permissions I change, if any), I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /wall/manage_changePermissions) File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in manage_changePermissions (Object: RoleManager) File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, in setRoles AttributeError: manage_main I don't doubt that I am causing this, but since it isn't occuring in my code, I don't know how to go about finding the source of the problem. Thanks for any help you can give. -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From billr@coinet.com Fri Mar 19 17:31:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 19 Mar 1999 09:31:42 -0800 Subject: [Zope] frames and external method lookups Message-ID: <9903190931.ZM14151@saab.coinet.com> I have a DTML Document that references an External Method. This document is embedded inside another DTML document. If I view this document, then the page is rendered correctly. If I now take this document and reference it from a tag, Zope complains and says it can't find the external method. What's different here that causing me problems? Here's some more details, including the traceback: 1. Zope-1.10.2-linux2-x86 2. The innermost DTML docuemnt (lighttablebar) refers to the extermal method like this: 'looprange' is my external method and is located in the top level folder 'ltblSize' is a property of the document that "includes" this document. This innermost DTML docuemnt is also located in the top-level folder. 3. The next DTML document (lighttable_frame) includes the previous document with a simple #var command (in between some other html stuff): This document has a property named 'ltblSize' defined as 6. This document lives two folders down from the top-level folder I can use the View tab in the manager to see the rendition of this page and it looks just fine and there are no complaints about looprange(). 4. If I include the previous DTML document in another DTML document that is specifying some frames, e.g.: Stock Book When I use the View tab to see what this page looks like, I get the two frames, but in the lighttable_frame frame, I get an error message about looprange being undefined: ---- start of traceback message ---- The specified module, looprange, couldn't be opened. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Gamba_home/Stockbook/LightTable/lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: lighttable_frame) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 205, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_In.py, line 620, in renderwob (Object: looprange(ltblSize)) File lib/python/DocumentTemplate/DT_Util.py, line 266, in eval (Object: looprange(ltblSize)) File , line 0, in ? File lib/python/Products/ExternalMethod/ExternalMethod.py, line 233, in __call__ (Object: CopySource) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 195, in getFunction (Object: CopySource) File lib/python/App/Extensions.py, line 137, in getObject Module Error: (see above) ---- end of traceback message ---- So again, what is happening when the DTML doc is being refered to inside a frame that is different than not in a frame (and more to the point, how do I get around this apparent problem)? -Bill Randle Central Oregon Internet billr@coinet.com From jim@digicool.com Fri Mar 19 17:55:06 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 19 Mar 1999 12:55:06 -0500 Subject: [Zope] Security tab in home grown Product References: Message-ID: <36F28F7A.5B117767@digicool.com> "James A. Hillyerd" wrote: > > I'm resending this to the zope list, because I didn't get any response > from the zope-dev list. > > Hi. > > I have made my first Product (a little message wall that people can post > colored messages to), but I am having some trouble with the Security tab. > When I press the tab, I get a Permissions screen that looks as it should, > but when I click the change button (no matter what permissions I change, > if any), I get the following error: > > Sorry, an error occurred. > > Traceback (innermost last): > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in > publish_module > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in > publish > (Info: /wall/manage_changePermissions) > File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in > manage_changePermissions > (Object: RoleManager) > File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, > in setRoles > AttributeError: manage_main > > I don't doubt that I am causing this, but since it isn't occuring in my > code, I don't know how to go about finding the source of the problem. > > Thanks for any help you can give. Zope (up to 1.10.x) expects every managed object to have a manage_main method that provides the default management interface for the object. You need to rename or create an alias from your default management method to manage_main. In Zope 1.10, there will be a new inherited method, manage_workspace, which should not be overridden, that picks the first item in you manage_options as the default management interface. This gives you more flexibility in naming and will allow more dynamic view management. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jamesh@altavista.net Fri Mar 19 18:32:25 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 10:32:25 -0800 (PST) Subject: [Zope] Security tab in home grown Product In-Reply-To: <36F28F7A.5B117767@digicool.com> Message-ID: On Fri, 19 Mar 1999, Jim Fulton wrote: > > Zope (up to 1.10.x) expects every managed object to have a manage_main > method that provides the default management interface for the object. > > You need to rename or create an alias from your default management > method to manage_main. > Oh, I see. So the manage_main I see is actually being acquired from the folder my product instance is installed in? If so that would explain why adding things to it actually adds things to it's parent folder. If I write a manage_main method, will it start magically working, or do I need to add it to __init__.methods and/or one of the __ac_permissions__ tuples? > In Zope 1.10, there will be a new inherited method, manage_workspace, > which should not be overridden, that picks the first item in you > manage_options as the default management interface. This gives > you more flexibility in naming and will allow more dynamic view > management. > Sounds cool to me. =) [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From ropjes@groovy.xs4all.nl Fri Mar 19 18:52:21 1999 From: ropjes@groovy.xs4all.nl (Rop Slijkerman) Date: Fri, 19 Mar 1999 18:52:21 +0000 (GMT) Subject: [Zope] NameError: In-Reply-To: <9903190931.ZM14151@saab.coinet.com> Message-ID: In a database with personal bookmarks wich I created as a test I get the following error when trying to update a bookmark. This is new. It worked before I had to reinstall Linux from scratch, wich had ofcourse nothing to do with zope. This error is the result of calling this method:

    Your data was Updated in the Database! The SQL statement (SQL_update_bookmarks): UPDATE bookmarks SET naam=, bookmark_url= WHERE nummer= - Rop From mbernstein@profitscape.net Fri Mar 19 19:38:05 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 11:38:05 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 Message-ID: <36F2A79D.FEF0FDD@profitscape.net> I apologize if for the off-topic nature of this post, but felt it was too important to ignore. Microsoft has released IE5, which is non-compliant with many of the standards that Microsoft has helped author. As widespread compliance to standards is one of the things that will greatly enhance Zopes success in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue deserved to be aired here too. The original statement from the WSP can be found at: http://www.webstandards.org/ie5.txt Following is an email posted to another list I am on, as I think this sums up the appropriate responses rather well. Michael Bernstein -------- Original Message -------- From: "A List Apart" Subject: A List Apart - Special Announcement To: "Michael Bernstein" Greetings Webmakers. The following is a special note from our friend Glenn Davis regarding a somewhat urgent and pressing issue. I won't waste time talking about it, as the following explains it all quite well. I hope everyone finds it in them to support the cause. Thanks. -Brian M. Platz, ALA Co-Moderator ------ Greetings! Since 1993 I've done my best to show everyone the good on the web and to help anyone who wanted it gain the knowledge they needed to create that good. Today I'm asking for your help. I'm not asking not as Glenn Davis, CTO of Project Cool, and not as Glenn Davis, cofounder of The Web Standards Project. I'm asking as Glenn Davis, a man who, for the past six years has worked to make the web a better place for everyone. Recently Microsoft released their 5.0 browser and after all this time there is still not 100% support for the standards that make web development easier. Standards that Microsoft helped create. Below are three simple letters. Very to the point letters that ask one very simple question. I'm hoping that you'll pick just one of those letters and use it to ask Microsoft the very simple question within. If you would copy just one of those letters into an email and send that email to wasp@microsoft.com I would very much appreciate it. This email address is one that Microsoft set up for email about standards. I'm also asking that you pass this email along to anyone else who has ever tried to make a webpage. My sincerest thanks for the help you provide. Sincerely and simply, Glenn Davis ------------------ CSS-1 Letter-------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for CSS-1 in your Internet Explorer browser. Could you please respond with the date when I might expect this? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) DOM Letter-------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for the W3C DOM in your Internet Explorer browser. Please let me know when that will happen. A simple date will suffice for a response. If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) HTML 4.0 Letter-------------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for HTML 4.0 in your Internet Explorer browser. On what date will this event occur? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) ------------------- From ben@amvalue.com Fri Mar 19 21:22:14 1999 From: ben@amvalue.com (Benjamin Suto) Date: Fri, 19 Mar 1999 16:22:14 -0500 Subject: [Zope] Web Application Software Message-ID: <36F2C006.9D7E89C9@amvalue.com> I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben From Paul@digicool.com Fri Mar 19 21:33:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 16:33:38 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with which to attach his persona. Glenn got his start at InfiNet, our former majority owner. I remember when he shared a 10x10 office with the other Mac person there. I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, I'm asking as a humble guy that singlehandedly saved the web" part. That paragraph is so pathetic, I can't believe he actually wrote it. IMO opinion, the only cause he is advancing is himself. It's a shame, because browser vendors _do_ need to be beaten into standards compliance and away from bait-and-switch. --Paul > -----Original Message----- > From: Michael Bernstein [mailto:mbernstein@profitscape.net] > Sent: Friday, March 19, 1999 2:38 PM > To: zope@zope.org > Subject: [Zope] OT: A petition condemning non-standard > compliance in IE5 > > > I apologize if for the off-topic nature of this post, but felt it was > too important to ignore. > > Microsoft has released IE5, which is non-compliant with many of the > standards that Microsoft has helped author. As widespread > compliance to > standards is one of the things that will greatly enhance Zopes success > in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue > deserved to be aired here too. > > The original statement from the WSP can be found at: > http://www.webstandards.org/ie5.txt > > Following is an email posted to another list I am on, as I think this > sums up the appropriate responses rather well. > > Michael Bernstein > > -------- Original Message -------- > From: "A List Apart" > Subject: A List Apart - Special Announcement > To: "Michael Bernstein" > > Greetings Webmakers. > > The following is a special note from our friend Glenn Davis > regarding a > somewhat urgent and pressing issue. I won't waste time > talking about it, > as > the following explains it all quite well. I hope everyone finds it in > them > to support the cause. > > Thanks. > > -Brian M. Platz, ALA Co-Moderator > > > ------ > Greetings! > Since 1993 I've done my best to show everyone the good on > the web and > to > help anyone who wanted it gain the knowledge they needed to > create that > good. Today I'm asking for your help. I'm not asking not as Glenn > Davis, > CTO of Project Cool, and not as Glenn Davis, cofounder of The Web > Standards > Project. I'm asking as Glenn Davis, a man who, for the past six years > has > worked to make the web a better place for everyone. > Recently Microsoft released their 5.0 browser and after > all this time > there is still not 100% support for the standards that make web > development > easier. Standards that Microsoft helped create. > Below are three simple letters. Very to the point letters that ask > one > very simple question. I'm hoping that you'll pick just one of those > letters and use it to ask Microsoft the very simple question > within. If > you would copy just one of those letters into an email and send that > email > to wasp@microsoft.com I would very much appreciate it. This email > address > is one that Microsoft set up for email about standards. I'm > also asking > that you pass this email along to anyone else who has ever > tried to make > a > webpage. > My sincerest thanks for the help you provide. > > > Sincerely and simply, > Glenn Davis > > ------------------ > CSS-1 Letter-------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > CSS-1 in your Internet Explorer browser. Could you please > respond with > the > date when I might expect this? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > Sincerely, > (Your name here) > (Your company name here) > > > DOM Letter-------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > the > W3C DOM in your Internet Explorer browser. Please let me > know when that > will happen. A simple date will suffice for a response. > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > HTML 4.0 Letter-------------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > HTML > 4.0 in your Internet Explorer browser. On what date will this event > occur? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > ------------------- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Fri Mar 19 21:25:51 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Fri, 19 Mar 1999 16:25:51 -0500 Subject: [Zope] ZServer licensing Message-ID: <199903192129.QAA13415@mail.digiweb.com> Hello all, Since ZServer is based on Medusa, does a commercial enterprise have to pay the $200/computer license? Or is ZServer released under a true Open Source license (somehow)? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From mbernstein@profitscape.net Fri Mar 19 21:36:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 13:36:16 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 References: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Message-ID: <36F2C350.7DD65AF5@profitscape.net> Paul Everitt wrote: > > Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with > which to attach his persona. Glenn got his start at InfiNet, our former > majority owner. I remember when he shared a 10x10 office with the other > Mac person there. > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, > I'm asking as a humble guy that singlehandedly saved the web" part. > That paragraph is so pathetic, I can't believe he actually wrote it. Ooh, that is so harsh, dude. :^) > IMO opinion, the only cause he is advancing is himself. It's a shame, > because browser vendors _do_ need to be beaten into standards compliance > and away from bait-and-switch. Ok, but what do you think of using the three templated emails? I feel that they're rather well written, and could be effective. After all, this is about results, right? Michael Bernstein From petrilli@amber.org Fri Mar 19 21:40:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Fri, 19 Mar 1999 16:40:24 -0500 Subject: [Zope] ZServer licensing In-Reply-To: <199903192129.QAA13415@mail.digiweb.com>; from Tom Jenkins on Fri, Mar 19, 1999 at 04:25:51PM -0500 References: <199903192129.QAA13415@mail.digiweb.com> Message-ID: <19990319164024.B22929@amber.org> On Fri, Mar 19, 1999 at 04:25:51PM -0500, Tom Jenkins wrote: > Hello all, > Since ZServer is based on Medusa, does a commercial enterprise have > to pay the $200/computer license? Or is ZServer released under a true > Open Source license (somehow)? I believe the current agreement that Digital Creations has reached with Sam Rushing (the author of Medusa) allows for open-source-style distribution of ZServer so long as it's used with Zope. Paul can probably corret the exact legal situation, but basically DC bought an unlimited license to give it away ... say thank you :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From simon@joyful.com Fri Mar 19 22:07:54 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 14:07:54 -0800 Subject: [Zope] ZServer licensing In-Reply-To: Christopher Petrilli's message of "Fri, 19 Mar 1999 16:40:24 -0500" References: <199903192129.QAA13415@mail.digiweb.com> <19990319164024.B22929@amber.org> Message-ID: Christopher Petrilli writes: > probably corret the exact legal situation, but basically DC bought an > unlimited license to give it away ... say thank you :-) they *bought* it ? really ? From Paul@digicool.com Fri Mar 19 23:00:26 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:00:26 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F26@GANDALF> Michael wrote: > Paul wrote: > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. > Hyper Star, > > I'm asking as a humble guy that singlehandedly saved the web" part. > > That paragraph is so pathetic, I can't believe he actually wrote it. > > Ooh, that is so harsh, dude. :^) OK, I agree, and I ought to just focus on his words rather than on him. Public retraction on the personal stuff, BUT I absolutely stand behind taking offense at the words. If you're going to lead an offensive based on principal, make the self-aggrandizement a bit more subtle. Hmm, didn't turn out to be much of a retraction. :^) --Paul From Paul@digicool.com Fri Mar 19 23:04:45 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:04:45 -0500 Subject: [Zope] ZServer licensing Message-ID: <613145F79272D211914B0020AFF640190D9F27@GANDALF> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but basically DC > bought an > > unlimited license to give it away ... say thank you :-) > > they *bought* it ? really ? We reached a mutually agreeable arrangement whereby Medusa could become the core for our object publishing system, under the Zope license. Definately turned out to be a win-win-win (Sam, DC, and Zope). --Paul From simon@joyful.com Fri Mar 19 23:10:31 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 15:10:31 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Fri, 19 Mar 1999 10:53:35 -0500" References: <199903190404.XAA15203@mail.digiweb.com> <36F272FE.52C87A31@GestaltTechnology.com> Message-ID: Fredy Villa writes: > irc.cs.cmu.edu doesn't require it, last I checked. I get: [info] Connecting to irc.cs.cmu.edu port 6667... {irc.cs.cmu.edu} *** Looking up your hostname... {irc.cs.cmu.edu} *** Checking Ident {irc.cs.cmu.edu} *** Found your hostname [info] Not enough parameters: Not enough parameters [info] You have not registered From vanandel@ucar.edu Sat Mar 20 00:56:24 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Fri, 19 Mar 1999 17:56:24 -0700 Subject: [Zope] Status of Collector? Message-ID: <199903200056.RAA27359@stout.atd.ucar.edu> I see that the bug report and feature request lists are implemented using the "Collector". What's the status of this? 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) 2) Is it purchased from Digital Creations? Thanks much. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From jae@kavi.com Sat Mar 20 01:50:55 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 17:50:55 -0800 (PST) Subject: [Zope] ZServer licensing In-Reply-To: <19990319164024.B22929@amber.org> Message-ID: On Fri, 19 Mar 1999, Christopher Petrilli wrote: > I believe the current agreement that Digital Creations has reached with > Sam Rushing (the author of Medusa) allows for open-source-style > distribution of ZServer so long as it's used with Zope. Paul can AFAIK, ZServer was released (including Medusa) under the same license as the rest of Zope. Which means that all of it is free software, including the medusa code it contains. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Sat Mar 20 02:09:29 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 18:09:29 -0800 (PST) Subject: [Zope] #raise problem? Message-ID: I just used the #raise tag for the first time, and its not working the way I thought it was supposed to. When I raise, I get always just get... Sorry, and error occured. (plus the traceback, but that's not relevant) Where my DTML looks like this... You are not authorized to view this information. (I didn't use Unauthorized as I didn't want an a login box) The problem is that I thought that it was supposed to display... You are not authorized to view this information. NOT Sorry, and error occured. Any tips? PS. The title is set to "Permission Denied" as its supposed to. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From hadar@verticality.com Sat Mar 20 15:03:58 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:03:58 -0500 Subject: [Zope] Status of Collector? In-Reply-To: <199903200056.RAA27359@stout.atd.ucar.edu> Message-ID: <000a01be72e2$e1beb620$7863efa1@hadar.bestweb.net> Joe wrote: > I see that the bug report and feature request > lists are implemented using the "Collector". > What's the status of this? > > 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) Nope. > 2) Is it purchased from Digital Creations? Yes. At the moment, we are selling Collector. A number of copies have been sold already. There are a couple of things to note about a few of the packages that we have been selling (relatively privately lately): 1) Most have little documentation (read the source Luke :-) 2) Our license specifically reserves the right to give the software away at some future point (so you need to realize you are paying to get it now, and shouldn't be annoyed when/if others get it for free!) 3) Our license specifically prohibits redistribution, or the creation of derivative works (for distribution) 4) We permit unlimited internal use of the code, including operating public websites 5) We offer email-based support for 90 days (for 2 contacts usually) 6) The license is for 5 developers only. If you have more, you buy more copies 7) Additional support options are available for purchase. The point of the above isn't to make a lot of money. We're selling more copies than we anticipated, but hardly enough to make this our business model. The point of charging is to cover the inevitable support costs of shipping a product that has little documentation, but is more technically advanced to use than the content-oriented Zope general release. A secondary benefit is that people who purchase now are clearly motivated to use the product(s). Therefore, the support questions tend to be focused around real-world use of the products, and help us make them more robust for the inevitable Open Source release (whenever that might be). So, which products are we currently offering for sale? 1) Collector 2) Z Tables 3) Z Network Client 4) Infoseek DA In general, pricing is at $1,500 per package. The exception in the above list is Collector, which is $2,000. The reason? It makes heavy use of Z Tables, so essentially you are getting two products for the price on 1.3333 products :-). Those who wish to discuss this (either to become customers, or to tell me that we're "off base") should write to me directly, and _not_ post to the list. Hadar Pedhazur From hadar@verticality.com Sat Mar 20 15:10:21 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:10:21 -0500 Subject: [Zope] ZServer licensing In-Reply-To: Message-ID: <000b01be72e3$c60f80c0$7863efa1@hadar.bestweb.net> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but > > basically DC bought an unlimited license to give > > it away ... say thank you :-) > > they *bought* it ? really ? I know that a number of people responded to this already, including Paul. However, he didn't give as concrete response as this direct question requests. The answer is _yes_, Digital Creations most definitely paid _real money_ to Sam for the right to embed parts of Medusa in ZServer. However, the intent of the license is to allow unlimited, free, Open Source(tm) use, within the Zope environment. If you don't intend to use Zope, then you should be licensing Medusa separately from Sam Rushing. We highly recommend it (obviously), and have put our money where our mouth is. The reason that this is an important question to answer is that we are so committed to the Open Source movement, that not only do we release stuff that we wrote, but when appropriate, we will invest hard cash to further the community as well (ZServer being but one example). From tpatrick@IndigoNetworks.com Sat Mar 20 18:20:12 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Sat, 20 Mar 1999 12:20:12 -0600 Subject: [Zope] Web Application Software Message-ID: <57D47461794DD211825300A0C9D17EF906C89F@IGOPDC01> I do not know much about btrieve. If you can make btrieve a data source you are home free. All you need is the connector/drivers. http://www.zope.org/Download/Adapters Also look into: http://www.python.org/download/Contributed.html#Database Typically these modules make there way into zope as they are existing python modules. Actually I would gather that Btrieve has a c interface that would make a great product. As with all projects .... it depends. Using attributes is the key to zope. If you take advantage of its ability to store session variables Zope is far better than other solutions because you do not need a database to store info during a transaction, you can simply write it to an attribute in zope thus lowering the # database calls. I guess the implementation depends on allot of variables that were not listed in your email. 1. # of concurrent users 2. # of queries and "How databasy is the application? Big Queries? OnChange?" 3. Specifics on your data model 4. # of tasks required 5. How OO(Object Oriented) are you? It is a difficult concept to cover but developmental access to ZOPE is remote by nature. Anything you can do in Zope is accessible anywhere, by anyone else. Except for installing modules and products, you do not need machine access ---> Everything is done online and inside of Zope. It is convenient that way. Look into the bug collector for the ZOPE site. It allows many levels of access to the bug database except there is not database just Ztables. It might be just the ticket. http://www.zope.org/Collector Also take a look at the example folder here http://www.zope.org/Download/Contrib Specifically the DTML EXAMPLE FOLDER --> IT WILL GIVE YOU LOTS O' CODE and HINTS Just think in OO and Zope will work. Best of luck. Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Benjamin Suto [mailto:ben@amvalue.com] Sent: Friday, March 19, 1999 3:22 PM To: zope@zope.org Subject: [Zope] Web Application Software I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From roeder@berg.net Sat Mar 20 17:47:22 1999 From: roeder@berg.net (Maik Roeder) Date: Sat, 20 Mar 1999 18:47:22 +0100 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <99032019551700.01550@alpha> Hi all ! I am new to Zope, and I have a problem with External Methods. Everytime I change the implementation of my file in Extensions/test.py I have to reimport the External Method to see the changes. What am I doing wrong ? I just want the changes I made to the source code to be reflected when I reload a page ! I hope someone can explain what I am doing wrong here. Maik Röder Some more details: I have a folder called VMBI and an external method test in it. Everything works just fine, the index_html file has a call to the external method, which just prints "Hello World!" So the following URL http://localhost:9673/VMBI/test prints Hello World ! But when I change the original source code to print for example Hello Zope ! Then upon reloading the web page http://localhost:9673/VMBI/test there still is printed Hello World ! What's going on here ? From jae@kavi.com Sat Mar 20 22:08:52 1999 From: jae@kavi.com (John Eikenberry) Date: Sat, 20 Mar 1999 14:08:52 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <99032019551700.01550@alpha> Message-ID: On Sat, 20 Mar 1999, Maik Roeder wrote: > Everytime I change the implementation of my file in Extensions/test.py I have > to reimport the External Method to see the changes. You don't have to delete and recreate an External Method each time you change it's file. But you do have to go back to its properties page and hit the "Edit" button to reload its module (this is actually a nice feature of python, being able to reload modules at run time). > What am I doing wrong ? I just want the changes I made to the source > code to be reflected when I reload a page ! Well, it may be possible to stat the External Methods file each time its used, and reload it if its changed (you'd have to store its last modification time somewhere to compare against). This probably isn't done for performance reasons. Perhaps it could be linked to the BOBO_DEBUG_MODE environmental variable or something to address this issue. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Sat Mar 20 22:52:10 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 14:52:10 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Message-ID: Is there a similar way to reload code for a Product, or is the shutdown/restart of Zope necessary? If I do have to continue the shutdown/restart process, is there any way of tuning PCGI so that it loads up faster? Thanks. -james On Sat, 20 Mar 1999, John Eikenberry wrote: > > You don't have to delete and recreate an External Method each time you > change it's file. But you do have to go back to its properties page and > hit the "Edit" button to reload its module (this is actually a nice > feature of python, being able to reload modules at run time). [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From jamesh@altavista.net Sat Mar 20 23:52:37 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 15:52:37 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <36F42B23.39763A52@rubic.com> Message-ID: On Sat, 20 Mar 1999, Jeff Bauer wrote: > "James A. Hillyerd" wrote: > > If I do have to continue the shutdown/restart process, is > > there any way of tuning PCGI so that it loads up faster? > > In the pcgi/Util directory, you'll find a killpcgi.py > script. You could hack it to perform a restart, i.e. > launch a new pcgi process after killing the old one. > This would speed up your initial connect time and be > much faster during debugging (multiple restarts). > But wouldn't that kill the Zope process instead of having it shut itself down? How gracefully does Zope exit when receiving a SIGTERM? > Best regards, > > Jeff Bauer > Rubicon, Inc. > [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From quinn@challenge.calarts.edu Sun Mar 21 03:25:19 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Sat, 20 Mar 1999 19:25:19 -0800 Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Your message of "Sat, 20 Mar 1999 15:52:37 PST." Message-ID: <199903210325.TAA36206@challenge.calarts.edu> > On Sat, 20 Mar 1999, Jeff Bauer wrote: > > > "James A. Hillyerd" wrote: > > > If I do have to continue the shutdown/restart process, is > > > there any way of tuning PCGI so that it loads up faster? > > > > In the pcgi/Util directory, you'll find a killpcgi.py > > script. You could hack it to perform a restart, i.e. > > launch a new pcgi process after killing the old one. > > This would speed up your initial connect time and be > > much faster during debugging (multiple restarts). > > A simple way that works for me is, when debugging, have a normal cgi version postfixed with -c and use that. This brings me to another thing: the default zope distribution doesn't include ZCGI and friends, I assume because Zope users supposedly have no interest in normal cgi. I think it should be included anyway, so that Full Zope is a superset of Only ZP/ZT. That's more intuitive, and then you don't have to download both if you want to use both :) And ZCGI.py is only a small text file, after all. And perhaps zope users are interested in ZCGI after all, or does zope make assumptions about running persistently (can't see how it could, without violating http's statelessness). And as far as tuning pcgi: you could shorten pcgi_socket():delay or the 2 second sleep() at the end of pcgiStartProc(). The first one could probably be pretty safely shortened with the miniscule cost of a chance of a few extra connect() calls, but the second one should probably stay the same, although I'm not clear on its purpose (give time for the child to sort itself out?). Here's a random question: how come the win32 pcgiConnect uses CONNDELAY (defined in pcgi.h as 1), while the unix version says int delay=1; ? See, that's the problem with open source: all sorts of grubby randoms can go rooting through your code :) From jeffbauer@bigfoot.com Sun Mar 21 04:10:43 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 22:10:43 -0600 Subject: [Zope] Why do I have to reimport External Methods ? References: <199903210325.TAA36206@challenge.calarts.edu> Message-ID: <36F47143.814CF865@rubic.com> Quinn Dunkan wrote: > And as far as tuning pcgi: you could shorten pcgi_socket():delay > or the 2 second sleep() at the end of pcgiStartProc(). The first > one could probably be pretty safely shortened with the miniscule > cost of a chance of a few extra connect() calls, You may season to taste. The 2 second pause seemed safe enough on most tested systems, since we're flying blind. We've reserved an extra header byte to designate out-of-band data that could be much smarter about how to handle this, eventually. > but the second one should probably stay the same, although > I'm not clear on its purpose (give time for the child to > sort itself out?). I don't have the code here, but it's probably trying to avoid some problem that I encountered when it was missing . > Here's a random question: how come the win32 pcgiConnect uses > CONNDELAY (defined in pcgi.h as 1), while the unix version > says int delay=1; ? Probably historical flotsam. The win32 portion of pcgi is almost a completely separate product and only coexists with its Unix cousin by virtue of an overabundance of #ifdef clauses. I've mentioned this before, but it probably won't hurt to repeat. I don't think the win32 version of pcgi as the best solution for this sort of thing. It's mainly there to fill out a niche. Process launch is more expensive under Windows than Unix, so the Medusa/ZServer approach is probably more sensible in that environment, where good performance is desired. > See, that's the problem with open source: all sorts of grubby > randoms can go rooting through your code :) I don't consider that a problem. ;-) Best regards, Jeff Bauer Rubicon, Inc. From tsarna@endicor.com Sun Mar 21 21:17:56 1999 From: tsarna@endicor.com (Ty Sarna) Date: 21 Mar 1999 21:17:56 GMT Subject: [Zope] Calendar tag released Message-ID: <922051077.270607@zoo-of-death.endicor.com> People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From raver@box.dust.za.net Mon Mar 22 09:52:16 1999 From: raver@box.dust.za.net (Raver) Date: Mon, 22 Mar 1999 10:52:16 +0100 Subject: [Zope] Make site searchable Message-ID: <19990322105216.A461@box.dust.za.net> Hi! I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Help is much appreciated! Sture Lygren From wade@okaynetwork.com Mon Mar 22 13:44:22 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 08:44:22 -0500 Subject: [Zope] one 'document' in many 'folders' Message-ID: <199903221343.IAA17544@gem.lightlink.com> As a demonstration project to try and get a client to go with Zope, I'm converting a newsfeed database that I had originally built using Perl. The object of the game is to pull fresh articles from a Reuters server every two hours and put them in a bin. A human editor goes through the bin, culls and sorts the articles, edits where appropriate. One article may appear in more than one section of the site. For example, an article titled "Zope Is Cool" might appear in the Python, Web Development, and Open Source sections. Each section has its own contents page. This is where I get confused. My Perl application simply used the filesystem as a database, and generated three separate static copies of "Zope Is Cool", placing one in each of three directories: /python, /web_development, and /open_source. I suspect there are much better ways to do it in Zope, but how do I organize things? My naive idea is to make each article a Document, one of whose properties is a list (or dictionary) of categories in which it should be placed. Generating each section's contents page would then take some figuring out, and performance on doing the contents page would be a concern. If there's a better way, I'd certainly appreciate hearing about it. Signed, Confused a/k/a Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From sfranke@cdc-group.com Mon Mar 22 14:32:06 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 15:32:06 +0100 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Correct me if I'm wrong, but the only way I see to do this *inside* the Zope application is to keep all your articles inside one folder (pool) and have key documents in your tree structure which reference an article in the pool. I don't know if problems appear when you establish an acyclic directed graph structure in the object hierarchy itself (I asked the question myself months ago without an answer). I see no point why it shouldn't work, but it is not maintained by the application. An interesting fact is that your object's properties vary when accessed by different paths due to the acquisition structure. An object inside Zope's database (again, correct me, if...) doesn't know about its father. It only knows about its sons, the aq_parent path is constructed on each access. Would also like to hear more about this... Stefan > -----Ursprüngliche Nachricht----- > Von: Wade Leftwich [SMTP:wade@lightlink.com] > Gesendet am: Montag, 22. März 1999 13:44 > An: zope@zope.org > Betreff: [Zope] one 'document' in many 'folders' > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should > be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. > > Signed, > > Confused a/k/a > > > > > > Wade Leftwich > Okay Network Services, Ithaca NY > tel 607-277-1334 fax 607-272-3612 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Paul@digicool.com Mon Mar 22 14:49:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 22 Mar 1999 09:49:14 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <613145F79272D211914B0020AFF640190D9F2D@gandalf.digicool.com> Jim wrote: > I decided before signing up with a hosting server to wait for > Zope 2, which > I've seen a couple of references to. What's the deal on > that? One place > promised a better integrated web server. If Zope moves more > torward being a > totally self contained server, then I don't want to mess with > Apache or IIS. I expect ZServer, which is the better integrated package that you're talking about, to enter beta within the next three weeks. --Paul From petrilli@amber.org Mon Mar 22 14:44:11 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 09:44:11 -0500 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net>; from Raver on Mon, Mar 22, 1999 at 10:52:16AM +0100 References: <19990322105216.A461@box.dust.za.net> Message-ID: <19990322094411.A5636@amber.org> On Mon, Mar 22, 1999 at 10:52:16AM +0100, Raver wrote: > Hi! > > I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Check out the FAQ on http://zdp.zope.org it has some information on how to use the built-in searching capabilities :-) It's not perfect, and needs lots more work, but it's a start. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From kid@kendermedia.com Mon Mar 22 15:05:07 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 10:05:07 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <001b01be7475$6665dd20$7c5addc7@kid> ----- Original Message ----- From: Wade Leftwich To: Sent: Monday, March 22, 1999 8:44 AM Subject: [Zope] one 'document' in many 'folders' > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. This application sounds similar to stuff that I (and others on this list are trying to accomplish). > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? My immediate term solution is to make multiple copies of the article in the ZDB. I agree that this is suboptimal. Paul@DC has mentioned that they are working on a "Catalog" feature that they would like to integrate with Zope. This feature will be *perfect* for this application (and many others). Unfortunately, I don't think this is on the very near term radar scope. Depending on how far out Catalog is, and when I manage to finish off the basic necessities for my sites, I was thinking of delving into Zope's btree stuff and trying to put together some kind of search interface. Right now, though, I've still got a bunch of work to do before I get to that point. Kevin From wade@okaynetwork.com Mon Mar 22 15:39:05 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 10:39:05 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <199903221538.KAA22051@gem.lightlink.com> What a great mailing list! I posted my question, shovelled the driveway (Ithaca NY, 8" of heavy wet snow last night), had breakfast and an extra cup of coffee, then came back to my desk to find 2 good answers. Thanks Stefan and Kevin. Well, on the one hand I'm pleased to hear that my question wasn't trivial. But I'm disappointed to hear that my problem is difficult. I'm competing against Cold Fusion here, and the problem resolves itself pretty easily with linked tables. (At least until I actually try to write the code.) So maybe I should just co-opt the competition and use ZSQL? But the odb is so nice, I really want to make it work that way. I don't really need for the URLs to look like a directory structure: instead of /open_source/zopeiscool, it would be okay for the article URL to be /zopeiscool?section=open_source. But that still leaves the problem of generating a contents page for each section. I suppose I could have a script that periodically-or-on-demand walks through the articles and generates a fresh static contents page for each section. Seems kind of non-zopish, but that might be the best way to get decent rendering performance on the contents page anyway. (The site is very active.) >an acyclic directed graph structure in the object hierarchy itself Yow! The original question: > > -----Ursprüngliche Nachricht----- > > Von: Wade Leftwich [SMTP:wade@lightlink.com] > > Gesendet am: Montag, 22. März 1999 13:44 > > An: zope@zope.org > > Betreff: [Zope] one 'document' in many 'folders' > > > > As a demonstration project to try and get a client to go with Zope, I'm > > converting a newsfeed database that I had originally built using Perl. > > > > The object of the game is to pull fresh articles from a Reuters > > server every two hours and put them in a bin. A human editor goes > > through the bin, culls and sorts the articles, edits where > > appropriate. > > > > One article may appear in more than one section of the site. For > > example, an article titled "Zope Is Cool" might appear in the > > Python, Web Development, and Open Source sections. Each > > section has its own contents page. > > > > This is where I get confused. My Perl application simply used the > > filesystem as a database, and generated three separate static > > copies of "Zope Is Cool", placing one in each of three directories: > > /python, /web_development, and /open_source. I suspect there are much > > better ways to do it in Zope, but how do I organize things? > > > > My naive idea is to make each article a Document, one of whose > > properties is a list (or dictionary) of categories in which it should be > > placed. Generating each section's contents page would then take some > > figuring out, and performance on doing the contents page would be a > > concern. > > > > If there's a better way, I'd certainly appreciate hearing about it. > > > > Signed, > > > > Confused a/k/a > > > > > > > > > > > > Wade Leftwich > > Okay Network Services, Ithaca NY > > tel 607-277-1334 fax 607-272-3612 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Mon Mar 22 15:42:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Mon, 22 Mar 1999 10:42:22 -0500 (EST) Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221343.IAA17544@gem.lightlink.com> Message-ID: On Mon, 22 Mar 1999, Wade Leftwich wrote: > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I suggest you try out your idea first. It sounds simple and straightforward and performance won't be a problem unless you have too many entries (but I am only guessing). > placed. Generating each section's contents page would then take > some figuring out, Assuming you have a folder Entries and folders Python and Zope. An entry in the entries folder is a DTML doc with a lines property named sections containing the sections (folder names) where the given entry belongs to. In the root folder you have a DTML method like: (untested)

    contents:

    ... Do something (ie link to the entry or render the entry etc ... you can call this method from inside the index_html method in each section's folder. Pavlos From johanl@bahnhof.se Mon Mar 22 16:38:07 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 17:38:07 +0100 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <4.1.19990322173318.035daf00@mail.bahnhof.se> Pavlos wrote: >Assuming you have a folder Entries and folders Python and Zope. An entry >in the entries folder is a DTML doc with a lines property named sections >containing the sections (folder names) where the given entry belongs to. >In the root folder you have a DTML method like: (untested) This is great, I'm planning on doing exactly this myself. Roughly, if I don't want sluggish performance, what would the upper limit be in regard to number of articles? Are we talking hundreds of articles? Thousands? /J - Zope ultra-newbie ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:01:49 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:01:49 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221538.KAA22051@gem.lightlink.com> Message-ID: <001601be7485$ad4671e0$7863efa1@bestweb.net> Sorry to post a commercial plug here, but it seems in stride with my post from this weekend to another question (Collector). Basically, Z Tables would be a pretty perfect fit (IMHO). I realize that you too realize that (sort of), because you suggested going the ZSQL route. Clearly, there are similarities. But, Z Tables has already been independently benchmarked as _kicking a**_ performance-wise, and is also more closely aligned with the gestalt that you indicated you liked about the object database. Just a thought (and a few bucks, of course :-). From TomJenkins@zentuit.com Mon Mar 22 17:03:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 22 Mar 1999 12:03:00 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903221706.MAA28840@mail.digiweb.com> Hi Phil, Sorry I didn't make things clear (maybe I'll update the list?). Yes I solved my problem and feel really dumb. I didn't realize that the traceback is in the error page as a comment. Once I found that out, I saw immediately that the arguments passed in had a couple of extra fields that I didn't use (the master and detail tables share some initial fields). I took them out of the sql statement and the form, but I didn't remove them from the argument list. (Just an FYI, the system allows you to add additional detail records, the first one is autogenerated from the master) > Hi Tom, > > I have been on vacation and can't tell whether you have solved your problem. > > If you are still having problems email me. I am doing exactly what you > want to do so I will dig through my code and send you some tested examples > if you like. > > Phil. > > >To followup my last post, I'm getting an exception when trying to use > >MySQL's "select LAST_INSERT_ID()" function: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From amos@aracnet.com Mon Mar 22 17:18:12 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 22 Mar 1999 09:18:12 -0800 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net> Message-ID: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> At 10:52 AM 3/22/99 +0100, Raver wrote: >I'm working on an intranet site (using Zope). Now I need to make the site >searchable. Tried using htdig, but without luck (should it work with zopesites?). Unless you do something tricky, I doubt you will be able to get normal search engines to work with a Zope site, since I belive that most search engines want to read HTML files from the filesystem for indexing. >Now I wonder - is there a builtin feature in zope that can fix my problem, or >are there other programs like htdig that works with zope? Right now there is a simple Find mechanism, but it isn't really a robust search facility. In addition, Zope now includes low-level Python packages for indexing. So the basic tools are there, but there isn't an easy to use, out of the box search engine in Zope. We're working on a much better solution to this problem. We're calling it Zope Cataloging, and it is currently built with ZTables. I believe that like ZTables, Zope Cataloging will eventually be free, and become a core part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( -Amos From M.Faassen@vet.uu.nl Mon Mar 22 17:29:08 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 22 Mar 1999 18:29:08 +0100 Subject: [Zope] one 'document' in many 'folders' References: <001601be7485$ad4671e0$7863efa1@bestweb.net> Message-ID: <36F67DE4.4890F29@pop.vet.uu.nl> Hadar Pedhazur wrote: > > Sorry to post a commercial plug here, but it seems in stride > with my post from this weekend to another question > (Collector). As long as it's you (i.e. important cause of Zope's open sourcing) posting commercial plugs on zope@zope.org, I doubt many people would mind. :) [ZTables] Although I'm still a complete ZTables newbie, I've seen ZTables come up repeatedly when there are similar design problems. This would indeed seem to indicate ZTables are a good fit. :) Regards, Martijn From johanl@bahnhof.se Mon Mar 22 17:34:14 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 18:34:14 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <4.1.19990322182853.03607220@mail.bahnhof.se> Amos Latteier wrote: >>I'm working on an intranet site (using Zope). Now I need to make the site >>searchable. Tried using htdig, but without luck (should it work with >zopesites?). > >Unless you do something tricky, I doubt you will be able to get normal >search engines to work with a Zope site, since I belive that most search >engines want to read HTML files from the filesystem for indexing. [Apologies if this post is considered off-topic on this list] You might want to try Webinator, an outstanding search engine available at: http://www.thunderstone.com/webinator/ It's free to use for up to 10,000 documents. It works by fetching documents over HTTP (not your file system), so it should work with Zope. However, the free version requires an Internet connection to check with the license server, so it might be impractical for an intranet soluition without full Internet access. Hope That Helps, /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:46:34 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:46:34 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <36F67DE4.4890F29@pop.vet.uu.nl> Message-ID: <001e01be748b$ed844f60$7863efa1@bestweb.net> Martijn Faassen wrote: > Although I'm still a complete ZTables newbie, > I've seen ZTables come up > repeatedly when there are similar design > problems. This would indeed > seem to indicate ZTables are a good fit. :) I agree :-). Of course, this is precisely why we intend to release it (eventually) as Open Source(tm). We truly feel that the community will benefit, so we will release it. In the meantime, we're swamped, and prioritizing workload based on hard currency makes for simple decisions... From sfranke@cdc-group.com Mon Mar 22 18:19:56 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 19:19:56 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> I just thought a little more about the approach having a pool and some proxy objects that refer to the pool. I think it could be made quite neat when using just the following code for the proxies (DTML documents): So you just need to put zope_is_cool inside your pool and add DTML documents with the above code under the same id to your folder structure wherever you like. Just check it out. Two caveats: - You have to use DTML documents, not methods, otherwise id() refers to the folder's id - Make sure that zope_is_cool really exists inside your pool, or you get an infinite redirection! (zope_is_cool is not found in the pool and then sought for along the aquisiton path, which refers to zope_is_cool itself, which redirects to the pool which ...) Maybe this could be even generalized to some kind of "symbolic link" product. Ideas anyone? Stefan From kid@kendermedia.com Mon Mar 22 18:43:22 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 13:43:22 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> Message-ID: <001d01be7493$df67f820$7c5addc7@kid> ----- Original Message ----- From: Stefan Franke To: ; Sent: Monday, March 22, 1999 1:19 PM Subject: Re: [Zope] one 'document' in many 'folders' > I just thought a little more about the approach having a pool > and some proxy objects that refer to the pool. > > I think it could be made quite neat when using just the > following code for the proxies (DTML documents): > > An alternate solution could be something like for your "link" methods. I think this would take better advantage of acquisition. A document could pick up its headers and footers from the category, instead of the pool. It does seem like someone could create a "symlink" product pretty easily. Kevin From eq3pvl@eq.uc.pt Mon Mar 22 19:45:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Mon, 22 Mar 1999 19:45:09 +0000 Subject: [Zope] Trying to understand the Scheduler Message-ID: <36F69DC5.2FBB044@eq.uc.pt> Zope is great. It's so great that I guess I'm trying to use it for doing something different from what zope it's expected to do. I want to make some SQL scripts to access different databases and collect the data in a new table. That I can do with the following external method that calls see_data and put_data ZSQLMethods def get_data(self): result = self.see_data() self.put_data(value=result._data[0][1]) return None Then I wish to make this kind of data management automatic every hour. I dug in the sources and I found out the Scheduler class, which I think is what I need (is it?). But I'm having some trouble using it. This was the external method I tried (without success). def eventGetData(self): rev = RegularEvent(get_data,(),interval=60) self.schedule(rev) return(None) It seems that RegularEvent is not available. Besides, is schedule available trough acquisition in the folder? Can someone give me some light on this. I don't even know if it's possible to use the Scheduler with external methods so it would be great at least to know I'm in the right path. Thanks -- Pedro Vale Lima eq3pvl@eq.uc.pt From rocon@pivot.net Mon Mar 22 19:49:15 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 22 Mar 1999 14:49:15 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases Message-ID: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Looking for some enlightenment: I understand that Ztables was formerly Tabula an object database. If one were starting from scratch without legacy data would it make sense to use an object database instead of a relational database? If so, is ZTables/Tabula a full, robust database system that can scale up and exceed the features of Oracle or SQLxxx databases? What are the pros/cons of Object vs Relational databases. Currently it appears that Ztables/Tabula is priced at $1,500 but eventually may become open source. From recent posts on the list *"Make site searchable" *"one 'document' in many 'folders'" It seems like Ztables would be an Ideal solution to these problems. ie, rather than the kludge of multiple copies of the SAME document, ONE copy in the database. Also, searching by key or full text would be possible. But for further enlightenment, can anyone point to good examples on the web of the use of ZTables/Tabula? woops, your request to has been denied! :-) -bobo connor From jim@digicool.com Mon Mar 22 19:53:24 1999 From: jim@digicool.com (Jim Fulton) Date: Mon, 22 Mar 1999 14:53:24 -0500 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> Message-ID: <36F69FB4.5787CB99@digicool.com> Do not try to understand the scheduler. It's not really implemented nor is it useful for anything at this time. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Mon Mar 22 20:01:53 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 15:01:53 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases In-Reply-To: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Mon, Mar 22, 1999 at 02:49:15PM -0500 References: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Message-ID: <19990322150153.C5814@amber.org> On Mon, Mar 22, 1999 at 02:49:15PM -0500, Robert OConnor wrote: > Looking for some enlightenment: > > I understand that Ztables was formerly Tabula an > object database. By nature anything named "tabula" wouldn't be a pure object database :-) OODB don't have tables, tables are a relational concept, and I believe ZTables is a relational database last I checked---b ut then I've never seen it either, but the implications by Jim/Paul/et. al. are that it is something along these lines. > If one were starting from scratch without legacy data > would it make sense to use an object database instead > of a relational database? Maybe, it all depends on your data, the interdependencies, and what kind of queries you run, how ad-hoc, and what level of reporting tools you need. OODB are mature, but their supporting structure (reporting tools, modeling tools, and more importantly Zen :-) are quite lacking in my opinion). > If so, is ZTables/Tabula a full, robust database > system that can scale up and exceed the > features of Oracle or SQLxxx databases? i doubt it, but then, Oracle/et al are not necessarily the right answer for all problem sets, it's not a one hammer fits all nails solution. > What are the pros/cons of Object vs > Relational databases. Dear gods, there's thousands of papers written on this topic ;-) References are faster in OODB, ad-hoc is easier in RDB, and there are a billion other blends... it's also necessasry to understand network databases in my mind before you approach OODB. You just can't generalize to this level, it's impossible, and a "quick" overview of OODB v. Relational would require about 30 pages :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From FVilla@GestaltTechnology.com Mon Mar 22 22:25:28 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Mon, 22 Mar 1999 17:25:28 -0500 Subject: [Zope] passings vars to sql method Message-ID: <36F6C357.1F277AE3@GestaltTechnology.com> Zopists, I run into a problem. I have a DTML Methos that call an SQL Method. The SQL method, displayTasks, has two parameters, userID and statusID. The DTML method does have access to the variables userID and statusID prior to calling the sql method with a tag. The DTML method looks like this:

    List of tasks:
    >
    THE SQL methos look like this: select * from task_schedule where task_schedule.userID = AND task_schedule.statusID = -------------------------------------------------- I basically can't run the query because it cannot get a value for userID or statusID. How do I pass these vars to the sql method from a dtml method??? Thanks in advance, Fredy Villa FVilla@GestaltTechnology.com From raver@box.dust.za.net Mon Mar 22 22:30:55 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 22 Mar 1999 23:30:55 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com>; from Amos Latteier on Mon, Mar 22, 1999 at 09:18:12AM -0800 References: <19990322105216.A461@box.dust.za.net> <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> Message-ID: <19990322233055.A314@RaVER.duck.org> On Mon, Mar 22, 1999 at 09:18:12AM -0800, Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > > >Now I wonder - is there a builtin feature in zope that can fix my problem, or > >are there other programs like htdig that works with zope? > > Right now there is a simple Find mechanism, but it isn't really a robust > search facility. In addition, Zope now includes low-level Python packages > for indexing. So the basic tools are there, but there isn't an easy to use, > out of the box search engine in Zope. > > We're working on a much better solution to this problem. We're calling it > Zope Cataloging, and it is currently built with ZTables. I believe that > like ZTables, Zope Cataloging will eventually be free, and become a core > part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( > > -Amos > Sounds promising - hurry up will ya! :) > Sture From jbb@spyderlab.com Mon Mar 22 23:26:00 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 18:26:00 -0500 (EST) Subject: [Zope] passings vars to sql method In-Reply-To: <36F6C357.1F277AE3@GestaltTechnology.com> Message-ID: On Mon, 22 Mar 1999, Fredy Villa wrote: > Zopists, > > I run into a problem. I have a DTML Methos that call an SQL Method. > The SQL method, displayTasks, has two parameters, userID and statusID. > > The DTML method does have access to the variables userID and statusID > prior to calling the sql method with a tag. > > The DTML method looks like this: > > -------------------------------------------------- > I basically can't run the query because it cannot get a value for userID > or statusID. > How do I pass these vars to the sql method from a dtml method??? Freddy, did you make the variables you are passing to your SQL method parameters of the SQL method? If not they won't be looked up in the request, they will only be searched via acquisition. This is described in the Z SQL guide where it shows the order of lookup for SQL method parameters. Have fun! > Thanks in advance, > > Fredy Villa > FVilla@GestaltTechnology.com ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From vanandel@ucar.edu Tue Mar 23 01:30:13 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Mon, 22 Mar 1999 18:30:13 -0700 Subject: [Zope] sort order for tree display? Message-ID: <199903230130.SAA00571@stout.atd.ucar.edu> I'm still experimenting with ZOPE and the FAQ tool, which uses the 'tree' display widget. When I add a category or a FAQ entry, these items seem to appear in reverse order of the order I added them. The FAQ widget index_html DTML contains the line: On what basis are the categories sorted? By name of the object's folder? Is there anyway to get the entries sorted in the order they were entered? Thanks much! Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From webmaster@mtear.com Mon Mar 22 23:48:45 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:48:45 -0500 Subject: [Zope] Re: Zope digest, Vol 1 #185 - 21 msgs References: <199903222000.MAA18778@zope.codeit.com> Message-ID: <36F6D6DD.D270C58E@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From webmaster@mtear.com Mon Mar 22 23:52:03 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:52:03 -0500 Subject: [Zope] Re: Calendar tag References: <199903222000.MAA18778@zope.codeit.com> <36F6D6DD.D270C58E@mtear.com> Message-ID: <36F6D7A3.819ED7E2@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From jarvis.sd082@ex.tel.co.jp Tue Mar 23 03:44:35 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 12:44:35 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Hi all! I'm having a problem with running queries containing long numbers. I found in db.py that the data type NUMBER is converted to an integer which overflows in my case. The errors: Error, oci.error: (1455, 'ORA-01455: converting column overflows integer datatype\012') Traceback (innermost last): File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish (Info: /queries/wisdom/customer-Line/manage_test) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ (Object: CopySource) File db.py, line 198, in query File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, in fetchmany File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, in fetchone File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, in _error oci.error: (see above) I tried changing line 219 in query() in db.py: from if scale==0: type='i' to if scale==0: type='f' in order to force a float type, but this has no effect, it seems. I'm sure that I'm misunderstanding something here. Any pointers to where I can look to fix this would be greatly appreciated. TIA, John Jarvis Tokyo Electron FE, Ltd. From jbb@spyderlab.com Tue Mar 23 04:21:47 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 23:21:47 -0500 (EST) Subject: [Zope] ZOracleDA and long numbers In-Reply-To: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') Without having yet looked at the source(*) could this be an error occuring in Oracle itself? I just noticed the ORA-* which is typically an Oracle error message. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com (*) - BEWARE :) From jarvis.sd082@ex.tel.co.jp Tue Mar 23 04:49:03 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 13:49:03 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA461@telisnt1020.is.tel.co.jp> I have no problems with other applications as long as I stick with floats. Notably, Zope on Windows running through ODBC has no problems--the values are all converted to python L types. (Hey! maybe I should take a look at the ODBC code...) This is what originally led me to believe that the problem wasn't with Oracle, but within the OCI interface to Zope. I also thought that it also might have something to do with my Linux install, but SQL*Net doesn't have problems and Zope works wonderfully except for long numbers. Environment info: Zope 1.10.2 ZOracleDA 2.0.0 RedHat Linux 5.2 Oracle Net8 Client Apache > -----Original Message----- > From: Jordan B. Baker [SMTP:jbb@spyderlab.com] > Sent: Tuesday, March 23, 1999 1:22 PM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. > > ------- > Jordan B. Baker -- jbb@spyderlab.com > weaving the web @ http://www.spyderlab.com > (*) - BEWARE :) > From MHammond@skippinet.com.au Tue Mar 23 07:24:35 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 18:24:35 +1100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <004c01be74fe$35088aa0$0801a8c0@bobcat> Ive started playing with DocTemplate for a project, but I will be using it sans Zope. I hope this is still the appropriate place... I want DocTemplate to expose an object model, and it seems perfect for the task. However, Im having trouble using "." expressions. Code speaks louder than words, so my code is: ## class Spam: def eggs(self): return "Eggs" spam=Spam() from DocumentTemplate import * ss=HTML('Eggs are ') print ss(spam=spam) ss=String('Eggs are %(spam.eggs)s') print ss(spam=spam) ## What Im hoping to do should be quite obvious - I want to refer to "spam.eggs" in the DTML. With the HTML example, #var expr="spam.eggs()" is the best I can get. It seems ugly to me, and I feel there must be a better way. Using the String example, I can't make _anything_ work. Any I missing something? Is there something I can do so that String('Eggs are %(spam.eggs)s') does what I want? Please CC me - Im not on the list (but did peruse the archives before mailing...) Thanks, Mark. From raver@pc-125.andoy.vgs.no Tue Mar 23 11:25:04 1999 From: raver@pc-125.andoy.vgs.no (Sture Lygren) Date: Tue, 23 Mar 1999 12:25:04 +0100 (CET) Subject: [Zope] #tree - trouble Message-ID: Hi! How come this code (from within index_html) doesn't show files and folders within my folder? ( ) doesn't work either) This is using Zope 1.10.2 on linux (2.0.35) All I get is a blank screen - how come?? From Paul@digicool.com Tue Mar 23 11:54:23 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 06:54:23 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Mark wrote: > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) Here's an alternative that works: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) and a second choice: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) --Paul From MHammond@skippinet.com.au Tue Mar 23 12:00:11 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 23:00:11 +1100 Subject: [Zope] Questions about DocumentTemplate. In-Reply-To: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Message-ID: <005001be7524$b4a29960$0801a8c0@bobcat> > Here's an alternative that works: Thanks for the response. My problem is that I want a deep object model. I want the user to be able to say "spam.eggs" or "pantry.eggs" etc. Just using eggs wont do - I really need it qualified. The solution I came up with was: class DotWrapper: def __init__(self, ob): self._obj_ = ob def __getattr__(self, attr): bits = string.split(attr, '.') ob = getattr(self._obj_, bits[0]) for bit in bits[1:]: ob = getattr(ob, bit) return ob Then: s=Spam() print s.ss(DotWrapper(s)) does pretty-much the right thing... Thanks, Mark. From sfranke@cdc-group.com Tue Mar 23 12:40:24 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 13:40:24 +0100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <01E40461E003D21195CC0080296495D80B12E9@gates.cdc-group.com> Mark Hammond wrote: >The solution I came up with was: > > class DotWrapper: > def __init__(self, ob): > self._obj_ = ob > def __getattr__(self, attr): > bits = string.split(attr, '.') > ob = getattr(self._obj_, bits[0]) > for bit in bits[1:]: > ob = getattr(ob, bit) > return ob Small caveat: Since whitespaces could occur in an nested attrbute access ("a. b .x") , it's better to string them first. An alternative approach for DotWrapper's __getattr__ could be (not tested): def __getattr__(self, attr): bits = map (string.strip, string.split(attr, '.')) return reduce (getattr, bits, self._obj) Stefan From wade@okaynetwork.com Tue Mar 23 12:46:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Tue, 23 Mar 1999 07:46:33 -0500 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <199903231245.HAA17730@gem.lightlink.com> At Mon, 22 Mar 1999 09:18:12 -0800 Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > If your search engine works via http it should work OK with Zope. Thunderstone Webinator (thunderstone.com) does this, and there's a free version that I think will do up to 10,000 docs. (The commercial version costs $700.) There's a command-line switch that tells Webinator to go ahead & index URLs that include /cgi- bin/. -- Wade Leftwich (satisfied Thunderstone customer). Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Tue Mar 23 13:35:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 08:35:38 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <613145F79272D211914B0020AFF6401907BB91@gandalf.digicool.com> Thomas wrote: > Thus far my attempts to install the Zope binary release on a Linux > machine have been for nothing. The Install documentation and > the Install > program contradict each other at almost every turn. We'll look at overhauling the install documentation for the next release. In the meantime, could you provide more examples of how it can be improved beyond the -u confusion? --Paul From michel@digicool.com Tue Mar 23 14:17:15 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 23 Mar 1999 09:17:15 -0500 Subject: [Zope] RE: Install Zope on Web Host? Message-ID: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> > -----Original Message----- > From: Jeff Rawlins [mailto:penweb@olypen.com] > Sent: Tuesday, March 23, 1999 8:08 AM > To: support@digicool.com > Subject: Install Zope on Web Host? > > > I can't seem to find on your site whether Zope can be > installed on a web > hosting acct. or must be installed directly on your own server. > Thanks, > Jeff Rawlins > Jeff, I have cc'ed your question to the list, not to defer it, but to let you pick the brains of several people who have tried, some successful, some not, to run zope as a user in a web hosting environment. None of us here have tried it so we're not really the ones to ask. It is true there is no documentation on Zope with web hosting, perhaps your discussion will provide information for the Zope Documentation Project, AKA the Martijn Conspiracy. As I understand it, the web hosting provider you pick is key to the whole issue. If they run the kind of environment that works with Zope, great. If they don't (and most probably don't by default) you must communicate to them clearly what you want. If they are cooperative and cool, they will oblige you and join our Zope hosting family. If you can't get ahold of them and/or they don't care, your out of luck unless you go with a Zope friendly provider of which there are two to be found here.: http://www.zope.org/Community/ZHP -Michel From TomJenkins@zentuit.com Tue Mar 23 14:34:47 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 09:34:47 -0500 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <199903231437.JAA27247@mail.digiweb.com> Hey Sture, Check to see if your index_html is a DTML Document. DTML Document has its own namespace and doesn't use the folder's. If you change DTML Document to a DTML Method then you'll pick up the folder's files and folders. > Hi! > > How come this code (from within index_html) doesn't show files and folders > within my folder? > > > > > > ( ) doesn't work either) > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From kid@kendermedia.com Tue Mar 23 14:51:23 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Tue, 23 Mar 1999 09:51:23 -0500 Subject: [Zope] RE: Install Zope on Web Host? References: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> Message-ID: <002301be753c$9fd86880$7c5addc7@kid> > > -----Original Message----- > > From: Jeff Rawlins [mailto:penweb@olypen.com] > > Sent: Tuesday, March 23, 1999 8:08 AM > > To: support@digicool.com > > Subject: Install Zope on Web Host? > > > > > > I can't seem to find on your site whether Zope can be > > installed on a web > > hosting acct. or must be installed directly on your own server. > > Thanks, > > Jeff Rawlins > > My experience has been that if the hosting company is running Apache (many do) and if they have mod_rewrite installed (which is probably also pretty common), it is not *too* difficult to get Zope running in that environment. However, many hosting companies have policies against creating long running processes. Zope takes up a few MB of memory, which is considerably more than an instance of Apache... so many providers are not keen on that kind of thing. Before putting effort into trying to make Zope work in their environment, you'll probably want to ask them if they are willing to let you run a process that will hang out in memory all the time. CodeIt (one of the Zope hosting companies, http://www.codeit.com) will actually host Zope for you. You don't need to deal with building and configuring the package at all. Kevin From jim@digicool.com Tue Mar 23 15:00:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:00:23 -0500 Subject: [Zope] ZOracleDA and long numbers References: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: <36F7AC87.B2D8C96D@digicool.com> TFE MMS JARVIS JOHN wrote: > > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') > > Traceback (innermost last): > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > (Info: /queries/wisdom/customer-Line/manage_test) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > (Object: CopySource) > File db.py, line 198, in query > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, > in fetchmany > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, > in fetchone > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, > in _error > oci.error: (see above) > > I tried changing line 219 in query() in db.py: > from > if scale==0: type='i' > to > if scale==0: type='f' > > in order to force a float type, but this has no effect, it seems. This typr only affects meta-data seen by some Zope tools. > I'm sure that I'm misunderstanding something here. Nope, you aren't. > Any pointers to where I can look to fix this would be greatly > appreciated. There is a similar change that needs to be made to *work around* this problem. In DCOracle/ociCurs.py, change: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None to: elif dbtype==2: # Number if scale or 1: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None This has the undesirable effect of causing all numbers to be treated as ints. (This is what oracledb does) :( Unfortunately, you can't tell from Oracle column meta data whether values in a column will fit into Python ints. The right way to fix this is to implement Oracle's NUMBER or VARNUM C data types and convert to Python ints or longs on a case by case basis. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:01:21 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:01:21 -0500 Subject: [Zope] ZOracleDA and long numbers References: Message-ID: <36F7ACC1.3D31C5A9@digicool.com> "Jordan B. Baker" wrote: > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. Right, but in this case, it's because DCOracle bound a buffer that was too small to hold the values. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mark@interwalk.com Tue Mar 23 15:01:06 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 23 Mar 1999 07:01:06 -0800 Subject: [Zope] Re: Calendar tag Message-ID: <36F7ACB2.F29C21C4@interwalk.com> Again thanks for the Calendar tag. I just ran across a php3 application that might influence you/others. It is http://screwdriver.net/twig/ The demo show you a live application and is quite cool Mark <36f6d7a3.819ed7e-@mtear.com> wrote: Original Article: http://www.egroups.com/list/zope/?start=3428 > Ty: > > Again, the usefullness of your code is only outweighed by your > generousity. > I'm trying to get a personal schedular for my people, and I didn't want > to go outside of Zope(since they are using that for thier everyday > needs). And here you are with your Calendar tag. Thanks! > > Oh, I am reading your source to gleen how to implement the persistance > of appointments, any hints? > > Jason Spisak > webmaster@mtear.com > > > Message: 1 > From: tsarna@endicor.com (Ty Sarna) > Subject: [Zope] Calendar tag released > Date: 21 Mar 1999 21:17:56 GMT > Organization: Endicor Technologies, Inc., San Antonio, Texas > To: zope@zope.org > > People have been asking for my Calendar tag product, so I've uploaded a > beta version to the contributed software page. With the DateTime class > fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations > sometimes cause botches like repeated days). > > Have fun, and let me know what you think. When I get a chance I'll > probably add a Year mode and polish up the documentation and call it > 1.0. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Brian@digicool.com Tue Mar 23 15:15:45 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 23 Mar 1999 10:15:45 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF64019FDA8@gandalf.digicool.com> Hi Mark. I've cc'ed this to the zope list, since others may find this useful. > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) > > ss=String('Eggs are %(spam.eggs)s') > print ss(spam=spam) > ## > > What Im hoping to do should be quite obvious - I want to refer to > "spam.eggs" in the DTML. > > With the HTML example, #var expr="spam.eggs()" is the best I can > get. It seems ugly to me, and I feel there must be a better way. The is a perfectly valid way to do it. Another way would be to use the "with" tag: Neither is really "more correct" than the other, though the with construct is probably cleaner in situations where you use many services of the object: > Using the String example, I can't make _anything_ work. > > Any I missing something? Is there something I can do so that > String('Eggs are %(spam.eggs)s') does what I want? Hmm - it appears that the expr support is currently broken for the python string format syntax. We'll take a look at that. You can, however, also use the with construct here too: ss=String('eggs are %(with spam)[ %(eggs)s %(with)]') Just in case you hadn't found them already, the latest DTML manuals are on the zope site at: http://www.zope.org/Documentation/Guides/DTML. They contain some examples that try to demonstrate common DTML idioms. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mj@antraciet.nl Tue Mar 23 15:04:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 23 Mar 1999 16:04:39 +0100 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <4.1.19990323153904.00a78f00@mail.atmm.nl> At 12:25 23-3-99 , Sture Lygren wrote: >Hi! > >How come this code (from within index_html) doesn't show files and folders >within my folder? > > > > > >( ) doesn't work either) > >This is using Zope 1.10.2 on linux (2.0.35) > First, you should use branches_expr, instead of branches. And second, it depends on what type of DTML object you have this code in. Is this code in a DTML Method or a DTML Document? If it is a Document, you'll have to specify the Folder you want the tree to start at:: -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jim@digicool.com Tue Mar 23 15:08:38 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:08:38 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <36F7AE76.6431EA6E@digicool.com> Wade Leftwich wrote: > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I think that your approach would work and have the drawbacks you suggest. You could try it and see if performance is actually a problem. Here are some other ideas. First, you can put an object in many folders without creating multiple copies. You can't do this from DTML, but you *can* do it from Python, and therefore, from an external method. This may be the simplest approach. Second, you could come up with some sort of document management system, based on clever indexing machinery, like ZTables or on relational databases. As someone else mentioned, Zope cataloging with use ZTables to provide collections with advanced searching and organizaing features. This is still a work in progress, however. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:17:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:17:23 -0500 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <36F7B083.BD54E19C@digicool.com> Stefan Franke wrote: > > Correct me if I'm wrong, but the only way I see to do this *inside* > the Zope application is to keep all your articles inside one folder > (pool) and have key documents in your tree structure which > reference an article in the pool. You're wrong. ;) There are a numnber of ways to solve this. I suspect the simplest is to simply put the same object in multiple folders. (BTW, this is essentially the same thing as using Unix hard links.) > I don't know if problems appear when you establish an acyclic > directed graph structure in the object hierarchy itself (I asked > the question myself months ago without an answer). Sorry you didn't get an answer. There is no problem with creating acyclic or cyclic graph constructors in the, uh, object hierarchy, which BTW, need not be a hierarchy. :) > I see no point why it shouldn't work, but it is not maintained > by the application. > > An interesting fact is that your object's properties vary when > accessed by different paths due to the acquisition structure. > An object inside Zope's database (again, correct me, if...) > doesn't know about its father. It only knows about its sons, > the aq_parent path is constructed on each access. Yes, exactly. In fact, a better name for aq_parent might be aq_context. > Would also like to hear more about this... Like what? :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phd@sun.med.ru Tue Mar 23 15:31:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:31:22 +0300 (MSK) Subject: [Zope] Database connections Message-ID: Hello! I've finished large project using pure CGI concept (I used Neale's html.py). Now I (and my boss) are thinking of switching to Zope, or at least ZTemplates. While playing with Zope and SQL (I am using Postgres, hence ZPygres Database Adapter), I found that Zope, when loaded into memory by Zope.cgi (I am using Apache, and need to use in the future) opens a database connection for every Folder where I created Connection object. It is bad, as I have many databases, so Zope eats up memory. Another problem - what would do Zope if I restart Postgres (so all current connections break)? Would Zope reestablish connections or just report error? How could I limit number of connections Zope opens? How could I define a timeout, after which Zope close a connection if there is no activity between Zope and Postgres? and reestablish connection when application ask for SQL data? With ZTemplates and CGI all these questions has one easy (but not so nice) answer - there is no constant connection, a connection established on every CGI invocation. PS. BTW, I wrote short introduction to Zope in Russian: http://sun.med.ru/~phd/Russian/Zope/ Any Russian here to verify my understanding of Zope? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From TomJenkins@zentuit.com Tue Mar 23 15:34:50 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 10:34:50 -0500 Subject: [Zope] Database connections In-Reply-To: Message-ID: <199903231537.KAA21461@mail.digiweb.com> > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. As I understand it, you should just create one Connection object in your root folder. Then all the folders underneath the root folder have access to that same Connection object. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From Paul@digicool.com Tue Mar 23 15:48:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 10:48:49 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Oleg writes: > I've finished large project using pure CGI concept (I used Neale's > html.py). Now I (and my boss) are thinking of switching to Zope, or at > least ZTemplates. > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory > by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. Ahh, no need. Just put one Database Connection object in the top folder and all the subfolders will "acquire" it. That is, any SQL Method defined lower down can use it. > It is bad, as I have many databases, so Zope eats up > memory. Another > problem - what would do Zope if I restart Postgres (so all current > connections break)? Would Zope reestablish connections or just report > error? It should re-establish the connection. If it doesn't then there's a bug. This works fine with all the Database Adapters I've used. > How could I limit number of connections Zope opens? How could I There is one connection per Database Connection object. > define a timeout, after which Zope close a connection if there is no Hmm, this is quite a hard thing to do, unfortunately. > activity between Zope and Postgres? and reestablish connection when > application ask for SQL data? > > With ZTemplates and CGI all these questions has one easy > (but not so > nice) answer - there is no constant connection, a connection > established on > every CGI invocation. Of course this means the CPU gets a tremendous beating on every request and the response time goes down. > PS. BTW, I wrote short introduction to Zope in Russian: > http://sun.med.ru/~phd/Russian/Zope/ > Any Russian here to verify my understanding of Zope? Mind if I add a blurb to the Zope News about it? --Paul From phd@sun.med.ru Tue Mar 23 15:45:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:45:55 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > > Database Adapter), I found that Zope, when loaded into memory > > by Zope.cgi > > (I am using Apache, and need to use in the future) opens a database > > connection for every Folder where I created Connection object. > > Ahh, no need. Just put one Database Connection object in the top folder > and all the subfolders will "acquire" it. That is, any SQL Method > defined lower down can use it. There are connections to different databases. So you said "one connection to one database"? > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I'll retest, but currently, when I ask ZPygresDA to close connection, Zope reports "the site has technical difficulties" when I'm trying to access the application. > > define a timeout, after which Zope close a connection if there is no > Hmm, this is quite a hard thing to do, unfortunately. Bad news. :( > > PS. BTW, I wrote short introduction to Zope in Russian: > > http://sun.med.ru/~phd/Russian/Zope/ > > Any Russian here to verify my understanding of Zope? > > Mind if I add a blurb to the Zope News about it? It's Ok. I am not sure about correctness. And it is definetely far from complete. I'll continue working on it. > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Tue Mar 23 15:50:19 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 16:50:19 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Jim Fulton wrote: > Sorry you didn't get an answer. There is no problem with creating > acyclic or cyclic graph constructors in the, uh, object hierarchy, > which BTW, need not be a hierarchy. :) Not too long ago I experimented a little with cyclic structures inside Zope's database. One thing I noticed was, that the copy support failed with tracebacks like this: Traceback (innermost last): File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 877, in publish_module File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 176, in manage_pasteObjects (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 361, in _getCopy (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line 327, in export_file File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line 958, in exportoid ExportError: Object 184337 references itself This led me to the conclusion to better leave my hands off non-hierarchic data structures which differ from those created by the management interface itself. >> Would also like to hear more about this... > Like what? :) More or less simple answers like "this is ok and this is not", or "you can store any complex Python data structure inside the DB, but in conjunction with the management interface, you get the following drawbacks.." I'm still a quite unclear about the object management in the database itself and the management layer Zope adds. But maybe I just have to read the docs harder ;-) Stefan > From Paul@digicool.com Tue Mar 23 16:02:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 11:02:17 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Oleg wrote: > There are connections to different databases. So you said "one > connection to one database"? If you can use one connection string in Postgres to access multiple databases, then you just need one Database Connection. Otherwise, you'll need one connection per database. Note that I don't mean per table -- I don't know much about Postgres and don't know if it organizes tables into separate databases that are selected with a "use database" command. > > > It is bad, as I have many databases, so Zope eats up > > > memory. Another > > > problem - what would do Zope if I restart Postgres (so all current > > > connections break)? Would Zope reestablish connections or > just report > > > error? > > > > It should re-establish the connection. If it doesn't then there's a > > bug. This works fine with all the Database Adapters I've used. > > I'll retest, but currently, when I ask ZPygresDA to close > connection, > Zope reports "the site has technical difficulties" when I'm trying to > access the application. Right, which is the correct behavior, as you had disconnected from the database. I thought your question was about restarting _Zope_, so I had a misunderstanding. I don't know anything about the Postgres client library and whether it can reconnect to a server when the server is shutdown. This definately isn't a Zope issue though -- the client should handle it. --Paul From phd@sun.med.ru Tue Mar 23 16:07:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:07:42 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > Oleg wrote: > > There are connections to different databases. So you said "one > > connection to one database"? > > If you can use one connection string in Postgres to access multiple > databases, then you just need one Database Connection. Otherwise, No. Connection string include database name, so I need one connection for every database. > you'll need one connection per database. Note that I don't mean per > table -- I don't know much about Postgres and don't know if it organizes > tables into separate databases that are selected with a "use database" > command. Yes, I see. > > > > It is bad, as I have many databases, so Zope eats up > > > > memory. Another > > > > problem - what would do Zope if I restart Postgres (so all current > > > > connections break)? Would Zope reestablish connections or > > just report > > > > error? > > > > > > It should re-establish the connection. If it doesn't then there's a > > > bug. This works fine with all the Database Adapters I've used. > > > > I'll retest, but currently, when I ask ZPygresDA to close > > connection, > > Zope reports "the site has technical difficulties" when I'm trying to > > access the application. > > Right, which is the correct behavior, as you had disconnected from the > database. I thought your question was about restarting _Zope_, so I had > a misunderstanding. I meant 3 different situations: 1. I started Potsgres, then started Zope, then restarted Zope - Zope reestablished connections. It's Ok. 2. I started Potsgres, then started Zope, then restarted Postgres. Zope does not reestablish connections: This site is currently experiencing technical difficulties... 3. I started Potsgres, then started Zope, then went to management screen and explicitly close a connection. Zope does not reestablish connections. Situations 2 an3 could be resolved, if I go to management screes, close and reopen database connections. But it is hard to remember "always restart Zope if you restart Postgres"... > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jim@digicool.com Tue Mar 23 16:15:59 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 11:15:59 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Message-ID: <36F7BE3F.CDBF011F@digicool.com> Stefan Franke wrote: > > Jim Fulton wrote: > > Sorry you didn't get an answer. There is no problem with > creating > > acyclic or cyclic graph constructors in the, uh, object > hierarchy, > > which BTW, need not be a hierarchy. :) > > Not too long ago I experimented a little with cyclic structures > inside Zope's database. One thing I noticed was, that the copy > support failed with tracebacks like this: > > Traceback (innermost last): > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 877, in publish_module > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 590, in publish > (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 176, in manage_pasteObjects > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 361, in _getCopy > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line > 327, in export_file > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line > 958, in exportoid > ExportError: Object 184337 references itself > > This led me to the conclusion to better leave my hands > off non-hierarchic data structures which differ from those > created by the management interface itself. I'll admit that cyclic data structures are pretty rare, so handling them may not be totally correct in every case. Export of objects partcipating in cycles is potentially, uh, confusing, unless the cycles are with objects that are totally contained within the object being exported, although containment is pretty hard to check. I should probably take this error check out. > >> Would also like to hear more about this... > > Like what? :) > > More or less simple answers like "this is ok and this > is not", OK, but I need to know what "this" is. I don't think you want me to enumerate all possible "this"s. ;) > or "you can store any complex Python data > structure inside the DB, You can store any complex Python data in the DB subject to: - It must be picklable, - It must follow the persistence rules: - Root objects must be "persistent" meaning they subclass BoboPOS.Persistent (or implement an undocumented interface that BoboPOS.Persistent implements, sigh) - Subobjects of persistent objects must be "persistent" or they must be immutable, or be used immutably, as in: def add_member(self, member): members=self.members # Oops, mutated a list members.append(member) # OK, so pretend it's new and readd it self.members=members > but in conjunction with the > management interface, you get the following drawbacks.." Basically, the objects need to implement certain interfaces if they want to play in the management system. If they don't want to play, they have alot of freedom. We need to do a much better job of documenting these interfaces. > I'm still a quite unclear about the object management > in the database itself The object management at the database level tries to be as transparent as possible. The wish is that you don't have to think about it. Basically, if you follow the rules above, you should be OK. Probably the biggest pitfall in the database is the inability to get to database objects when their classes can no longer be imported, because classes or modules have been moved or deleted or because errors have been introducted into the module source. We need to figure out ways to make these problems easier to diagnose. > and the management layer Zope adds. > But maybe I just have to read the docs harder ;-) Maybe you just need to read my mind better. ;) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Tue Mar 23 16:21:22 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:21:22 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:07:42PM +0300 References: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: <19990323112122.G8268@amber.org> On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > reestablished connections. It's Ok. Ok, so we don't have a problem here :-) > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > does not reestablish connections: This site is currently experiencing > technical difficulties... I agree that if a remote cause forces a database connection to close, it should attempt to re-open it... that should be optional of-course, but should be the default. > 3. I started Potsgres, then started Zope, then went to management screen > and explicitly close a connection. Zope does not reestablish connections. Nope, you closed the connection, you have to open it. This I agree is the appropriate way to behave. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From phd@sun.med.ru Tue Mar 23 16:34:12 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:34:12 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323112122.G8268@amber.org> Message-ID: On Tue, 23 Mar 1999, Christopher Petrilli wrote: > On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > > reestablished connections. It's Ok. > > Ok, so we don't have a problem here :-) Good news! :))) > > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > > does not reestablish connections: This site is currently experiencing > > technical difficulties... > > I agree that if a remote cause forces a database connection to close, it > should attempt to re-open it... that should be optional of-course, but > should be the default. Yes, I think Zope must reopen connection. > > 3. I started Potsgres, then started Zope, then went to management screen > > and explicitly close a connection. Zope does not reestablish connections. > > Nope, you closed the connection, you have to open it. This I agree is > the appropriate way to behave. May be... Well, what about such situation: 4. I started Potsgres, then started Zope, then worked with my application and Postgres failed (postgres fails sometimes). Postgres returned an error and closed connection. Zope, I think, should reopen the connection back, but will it? > Chris > -- > | Christopher Petrilli ``Television is bubble-gum for > | petrilli@amber.org the mind.''-Frank Lloyd Wright Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From petrilli@amber.org Tue Mar 23 16:40:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:40:04 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:34:12PM +0300 References: <19990323112122.G8268@amber.org> Message-ID: <19990323114004.J8268@amber.org> On Tue, Mar 23, 1999 at 07:34:12PM +0300, Oleg Broytmann wrote: > > > > I agree that if a remote cause forces a database connection to close, it > > should attempt to re-open it... that should be optional of-course, but > > should be the default. > > Yes, I think Zope must reopen connection. Well, actually it should be the job of the DA, not Zope. It's not spelled out in a standard anywhere, which probably should be solved. More documentation probably :/ But hey, someone's gotta know what the DA is really supposed to do, other than looking at an existing one. > Well, what about such situation: > > 4. I started Potsgres, then started Zope, then worked with my application > and Postgres failed (postgres fails sometimes). Postgres returned an error > and closed connection. Zope, I think, should reopen the connection back, > but will it? Don't honestly know if it WILL, but it seems reasonable that it should be capable of trying at the very least. Again, this is the responsibility fo the DA, not Zope... that should be made clear. You're using a 3rd party DA, so you might want to talk to them about it as well. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From sfranke@cdc-group.com Tue Mar 23 17:10:39 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 18:10:39 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12ED@gates.cdc-group.com> [Pleased of having caught Jim Fulton in verbose mode 8-] > You can store any complex Python data in the DB subject to: [...] > - Subobjects of persistent objects must be "persistent" or > they must be immutable, or be used immutably, as in: So class Persistent's __setattr__ is basically also the level that transaction and undo support work on? Can I expect the undo support to work if I take care of the persistence rules, regardless of cyclic and acyclic structures? Propably about time to switch to Zope-dev... Stefan From reedstrm@rice.edu Tue Mar 23 18:05:48 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 12:05:48 -0600 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> Message-ID: <36F7D7FC.4E0D66A8@rice.edu> Jim Fulton wrote: > > Do not try to understand the scheduler. It's not really implemented > nor is it useful for anything at this time. > > Jim > Pedro - If you need to do periodic tasks, the wisdom of the list says go with a cron job script attaching to your Zopesite via the ZClient interfaces (caveat: I know nothing about this - just repeating what I've read here) Anyone know were to look for info on this elusive ZClient stuff? To quote Paul Everitt : >As mentioned later, Zope has a simple RPC mechanism -- it's called HTTP! > >ZClient is a package in Zope that automates this. It makes it >convenient to connect to Zope and communicate with it from a scripting, >non-interactive environment. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From petrilli@amber.org Tue Mar 23 18:26:46 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 13:26:46 -0500 Subject: [Zope] Trying to understand the Scheduler In-Reply-To: <36F7D7FC.4E0D66A8@rice.edu>; from Ross J. Reedstrom on Tue, Mar 23, 1999 at 12:05:48PM -0600 References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <19990323132646.N8268@amber.org> On Tue, Mar 23, 1999 at 12:05:48PM -0600, Ross J. Reedstrom wrote: > Jim Fulton wrote: > > > > Do not try to understand the scheduler. It's not really implemented > > nor is it useful for anything at this time. > > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? Read the source luke :-) Actually here's where to find the basics of what you're interested in... .../lib/python/ZPublisher/Client.py This should probably go into the FAQ in the ZDP PDQ ;-) I remember seeing a few examples of it, for the the life of me, I can't find them! Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Tue Mar 23 18:46:09 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:46:09 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <4.1.19990323153904.00a78f00@mail.atmm.nl>; from Martijn Pieters on Tue, Mar 23, 1999 at 04:04:39PM +0100 References: <4.1.19990323153904.00a78f00@mail.atmm.nl> Message-ID: <19990323194609.A251@RaVER.duck.org> On Tue, Mar 23, 1999 at 04:04:39PM +0100, Martijn Pieters wrote: > At 12:25 23-3-99 , Sture Lygren wrote: > >Hi! > > > >How come this code (from within index_html) doesn't show files and folders > >within my folder? > > > > > > > > > > > >( ) doesn't work either) > > > >This is using Zope 1.10.2 on linux (2.0.35) > > > First, you should use branches_expr, instead of branches. And second, it > depends on what type of DTML object you have this code in. Is this code in > a DTML Method or a DTML Document? If it is a Document, you'll have to > specify the Folder you want the tree to start at:: > > > > > Got it working - thanks a lot!!! > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Sture Lygren From raver@box.dust.za.net Tue Mar 23 18:48:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:48:03 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <199903231437.JAA27247@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 23, 1999 at 09:34:47AM -0500 References: <199903231437.JAA27247@mail.digiweb.com> Message-ID: <19990323194803.B251@RaVER.duck.org> On Tue, Mar 23, 1999 at 09:34:47AM -0500, Tom Jenkins wrote: > Hey Sture, > Check to see if your index_html is a DTML Document. DTML > Document has its own namespace and doesn't use the folder's. > > If you change DTML Document to a DTML Method then you'll pick up > the folder's files and folders. That did the trick - thanks! >> > Hi! > > > How come this code (from within index_html) doesn't show files and folders > > within my folder? > > > > > > > > > > > > ( ) doesn't work either) > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Can the denizens of this group enlighten me about what the > advantages of Python are, versus Perl? "python" is more likely > to pass unharmed through your spelling checker than "perl". > An unknown poster and Fredrik Lundh, 11 Sep 1998 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 23 19:01:53 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 20:01:53 +0100 Subject: [Zope] Using database-connection from external methods Message-ID: <19990323200153.C251@RaVER.duck.org> Hi! This will hopefulle be my last questions in a while... Is there some way I can reach/use ZMySQL connection method from within an external method? Rephrase - I have a connection established within Zope - I want to call an external method that handles some sql-queries - is this possible, or should I still have the external method handle it's own connection? Can external methods set/send back variables to the calling document/method? Another question while I'm at it - is the DateTime module in 1.10.2 broke in some way? (I get an error if I try to make a new property with the date type set) Help is much appreciated Sture Lygren From jim@digicool.com Tue Mar 23 19:23:07 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:23:07 -0500 Subject: [Zope] ZClient example (was Re: [Zope] Trying to understand the Scheduler) References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EA1B.E2E2CA71@digicool.com> "Ross J. Reedstrom" wrote: > (snip) > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? (snip) The next release of Zope will have a 'utilities' directory in the distribution that has a load_site.py utility that demonstrates use of ZClient (aka ZPublisher.Client). If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From eq3pvl@eq.uc.pt Tue Mar 23 19:31:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Tue, 23 Mar 1999 19:31:09 +0000 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EBFD.892835C2@eq.uc.pt> "Ross J. Reedstrom" wrote: > Pedro - > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? > After reading Jim's mail I turned myself to the cron. I had already written a simple script to http-call a DTMLDocument that calls my external method. It works, but now that you told me about ZClient I see I could have saved some time with just a single command ZClient.py [-u username:password] url [name=value ...] Thanks guys pedro --- Pedro Vale Lima eq3pvl@eq.uc.pt From jae@kavi.com Tue Mar 23 19:30:08 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:30:08 -0800 (PST) Subject: [Zope] Database connections In-Reply-To: Message-ID: On Tue, 23 Mar 1999, Oleg Broytmann wrote: > On Tue, 23 Mar 1999, Paul Everitt wrote: > > Oleg wrote: > > > There are connections to different databases. So you said "one > > > connection to one database"? > > > > If you can use one connection string in Postgres to access multiple > > databases, then you just need one Database Connection. Otherwise, > > No. Connection string include database name, so I need one connection > for every database. Connection strings for MySQL also require you to include the database, but you can still change databases at runtime via the 'use ' command. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jim@digicool.com Tue Mar 23 19:44:09 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:44:09 -0500 Subject: [Zope] Zope Database in XML Message-ID: <36F7EF09.6AD34A99@digicool.com> A side project of mine is to allow conversion to and from Zope databases (and export files) and XML. This will allow people to more easily access their data without Zope and correct problems, such as moved or renamed software modules, that prevent data from being unpicklable. I've completed a first cut at a tool for converting a Zope database to XML format. It is provided in the file 'bbb.py' in a 'utilities' directory that will be included in the distribution directory of the next Zope release. If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. To run the tool, use: python utilities/bbb.py -rxml var/Data.bbb For now, the tool provides a way to "get at" your data without Zope and get a bit more of an idea of how Zope organizes data in the database. The file uses a module 'ppml.py' (Python pickle markup language :) that must by in the same directory as bbb.py or in the Python path. ppml.py provides for conversion from Python pickles to XML. It will eventually provide conversion from XML to Python pickles. Comments from members of the XML SIG (those who happen to spend time here too) would be welcome. I haven't written a formal DTD for this XML format. I would like to use a standard Python XML pickle format, but I'm not sure if such a thing exists yet. I took the approach of conversion to and from Python pickle format for two reasons: - It allows me to do conversion to and from database format without actually creating any (application objects). This is much faster than creating actual objects and does not require that any application Python modules needed to unpickle objects be around or working. For example, this allows conversion of objects that are not unpicklable. - It means that many of the implementation details of pickling can be avoided. Of course, in combination with the Python pickle modules, pickling objects to XML is straightforward: import pickle, ppml print ppml.ToXMLloads(pickle.dumps(myobject)) Enjoy. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 19:43:42 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:43:42 -0800 (PST) Subject: [Zope] Using database-connection from external methods In-Reply-To: <19990323200153.C251@RaVER.duck.org> Message-ID: On Tue, 23 Mar 1999 raver@box.dust.za.net wrote: > Is there some way I can reach/use ZMySQL connection method from within an > external method? Rephrase - I have a connection established within Zope - I > want to call an external method that handles some sql-queries - is this > possible, or should I still have the external method handle it's own > connection? Just have your external method call ZSQLMethods. For instance, I have an external method which allows the user to upload a file to the database. The external method reads the file, parses it, and calls a ZSQLMethod to update the database. To do this, assuming your ZSQLMethod is in the acquisition heirarchy, simply call it like you would any other method. If you have a ZSQLMethod called 'insert_client', which takes the arguments 'name, company, email', just call it... self.insert_client(name=client_name,company=company_name,email=client_email) > Can external methods set/send back variables to the calling document/method? External methods can modify the current REQUEST object that the DTML uses from name resolution. If you are calling the external method from within the DTML, just use 'self.REQUEST' to access the current REQUEST object. Just create/set items on it like it was a dictionary... sekf.REQUEST['new_key'] = new_value --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:19:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:19:10 -0500 (EST) Subject: [Zope] Zope Database in XML In-Reply-To: <36F7EF09.6AD34A99@digicool.com> Message-ID: On Tue, 23 Mar 1999, Jim Fulton wrote: [Jim announcing a long awaited and exciting new product] > > The file uses a module 'ppml.py' (Python > pickle markup language :) that must by in the I could not find ppml.py in the CVS tree. Pavlos From tpatrick@IndigoNetworks.com Tue Mar 23 20:23:13 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 14:23:13 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> If you can access the database directly through this interface(xml/pickle), couldn't you *potentially* map a network drive to the interface(cifs/nfs). This could allow you to render data in and out of the database through the file system interface rather than ftp/http. Just a thought! Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:25:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:25:27 -0500 (EST) Subject: [Zope] Using database-connection from external methods In-Reply-To: Message-ID: On Tue, 23 Mar 1999, John Eikenberry wrote: > > > Can external methods set/send back variables to the calling document/method? > > External methods can modify the current REQUEST object that the DTML uses > from name resolution. If you are calling the external method from within > the DTML, just use 'self.REQUEST' to access the current REQUEST object. > Just create/set items on it like it was a dictionary... > > sekf.REQUEST['new_key'] = new_value > Alternatively your external method can return objects to the calling DTML. for an external method spammethod you could do omething like: class A: pass def spammethod(self,n): a=[] for i in range(n): tmp=A() tmp.no=i a.append(tmp) return a Then in your DTML you can do something like Pavlos From jim@digicool.com Tue Mar 23 20:29:08 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:29:08 -0500 Subject: [Zope] Zope Database in XML References: Message-ID: <36F7F994.33440542@digicool.com> Pavlos Christoforou wrote: > > On Tue, 23 Mar 1999, Jim Fulton wrote: > > [Jim announcing a long awaited and exciting new product] > > > > > The file uses a module 'ppml.py' (Python > > pickle markup language :) that must by in the > > I could not find ppml.py in the CVS tree. Ugh. I thought I had checked it in, but I handn't. I just checked it in. Try a cvs update. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 20:39:04 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:39:04 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> Message-ID: <36F7FBE8.522F2DE7@digicool.com> Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 20:50:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 12:50:07 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... > > I'm still digging through the ZSQL code looking for a way to fix this. > I'll let everyone know once I've figured it out. Ok, I figured out a way to hack around this limitation of traversing an ZSQLMethod. I whipped up a simple 'pluggable brain' for the ZSQLMethod in question... --------------------------------------------------- from Acquisition import Implicit from Record import Record class req_store_brain(Implicit): """ stores info from sql query in REQUEST """ def __init__(self): new = {} for key in self.__record_schema__.keys(): new[key] = getattr(self,key) self.aq_parent.REQUEST.other.update(new) ---------------------------------------------------- This simply sticks the results of the ZSQLMethod in the REQUEST object. Everything in the heirarchy after this has access to the queries results. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tpatrick@IndigoNetworks.com Tue Mar 23 21:13:57 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 15:13:57 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> What I am referring to is rendering objects in the ZOPE database to a file system view. The object database could be managed as a Network Drive(except that the view would be data in the ZOPE object database). You could through some translation (xml or other) render the object database to CIFS/NFS. 1. Run applications directly from the ZOPE file system. 2. Modify and Render objects through a regular file explorer or file manager potentially an external text editor or file editor(word,excel,other). 3. Objects that had no meaning to the file system view would not be rendered. Attributes to file properties. This is a feature of 8i that oracle is pushing. The rendering of a database to a user that does not realize it is a database. ie. 1. Open a spreadsheet in the Network Drive and see a current version of a file and its data. 2. Intranet is now a shared drive - depending on your privileges - you see different objects. I guess what I am asking is: Can Zope act like a CIFS/NFS file system(virtual file system) with a layer of translation for converting Zope Objects to File system objects directly (XML or other)? If I understand it, this is how the database is rendering objects to HTTP or now(Zserver)FTP. Why can't you render them as a Network file system? Any thought? -----Original Message----- From: Jim Fulton [mailto:jim@digicool.com] Sent: Tuesday, March 23, 1999 2:39 PM To: Theodore Patrick Cc: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From neves@inf.puc-rio.br Tue Mar 23 21:31:53 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 23 Mar 1999 18:31:53 -0300 Subject: [Zope] MySQL loosing connection (Was: [Zope] Database connections) References: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: <36F80849.B7ECF04E@inf.puc-rio.br> Paul Everitt wrote: > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I've just hit something similar in the mysql client. The mysql client has a time-out to close the connection with the server. I'm using it in a test environment where it isn't accessed frequently. The connection is automatically closed and I have to manually close and open the database connection. Has anyone already fixed it? Excuse me if it has already been asked in the list, but the egroups site isn't working. regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From reedstrm@rice.edu Tue Mar 23 21:57:29 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 15:57:29 -0600 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F80E49.66166207@rice.edu> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From jim@digicool.com Tue Mar 23 22:07:44 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 17:07:44 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F810B0.95EA78A6@digicool.com> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > 1. Run applications directly from the ZOPE file system. > 2. Modify and Render objects through a regular file explorer or file manager > potentially an external text editor or file editor(word,excel,other). > 3. Objects that had no meaning to the file system view would not be > rendered. Attributes to file properties. > > This is a feature of 8i that oracle is pushing. The rendering of a database > to a user that does not realize it is a database. > > ie. > 1. Open a spreadsheet in the Network Drive and see a current version of a > file and its data. > 2. Intranet is now a shared drive - depending on your privileges - you see > different objects. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > > If I understand it, this is how the database is rendering objects to HTTP or > now(Zserver)FTP. Why can't you render them as a Network file system? > > Any thought? Ah. I think that this is one of the things that WebDAV is going to accomplish. For example, IE5 can create an thing that looks like that looks like a Windows explorer on a Zope folder. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From raver@box.dust.za.net Tue Mar 23 22:32:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 23:32:13 +0100 Subject: [Zope] Using database-connection from external methods In-Reply-To: ; from John Eikenberry on Tue, Mar 23, 1999 at 11:43:42AM -0800 References: <19990323200153.C251@RaVER.duck.org> Message-ID: <19990323233213.A237@RaVER.duck.org> Got it working! Thanks all!! U have been most helpful. From tpatrick@IndigoNetworks.com Wed Mar 24 00:25:43 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 18:25:43 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8CB@IGOPDC01> Ahhhh.... Oracle's approach to this is an add-on to 8i called IFS(Internet File System). It renders a database to http(woo...woo, Zope does this in its native functionality). Although, they are working on a renderer for native file systems. This would enable object methods for making files on the fly. As Zope already accomplishes this(rendering objects), thus presenting the view of the oo database is thus a filter. HTTP,FTP,CIFS,NFS,POP,IMAP all are protocols that speak the requesting clients language. Make Zope the engine and supply a framework in Zserver to plug in the server renderer. Samba is a great example. It renders between file systems quite well, although it is rather a tough and complex animal and very specialized. Although it would work along the same lines. Actually, there is a PERL module to simulate file systems already. It could be good start. Considering that most file viewing on Windows is moving to HTML, the Network Drive is looking more and more like a simple security login with a connection that is persistent, rather than actually mapping the drive. A distributed (native-CIFS/NFS) file system would change the industry. Actually it already has (http) through a browser window. I am wondering when it will occur as seamlessly as not having to be in a browser. If an ORB existed that could render data to the requesting protocol, it would be a great product, I think ZOPE could do this through the ZServer architecture. The Server in this case is the renderer, the ORB is the fulfillment component and the OO Database is the storage mechanism. The protocol plug-in is stored in Zserver and renders the appropriate view of the data. PROTOCOL | SERVER | ORB | OO DATABASE | HTTP | ZSERVER | --- ZOPE --- | Client dependencies FTP | ZSERVER | --- ZOPE --- | Applications designed to be client/server!!! IMAP | ZSERVER | --- ZOPE --- | POP | ZSERVER | --- ZOPE --- | CIFS | ZSERVER | --- ZOPE --- | No Client dependencies - Native Applications NFS | ZSERVER | --- ZOPE --- | CLIENT/SERVER functionality yet no dependencies! OS support is the dependency! If the rendering engine were modular, ZOPE would always be first in delivering support for new protocols and client functionality(DAV Support!!!), without changing the structure of the underlying database. The data exchange between the ZSERVER AND ZOPE would have to be managed. "You wouldn't want to serve a POP client an Excel file unless it is an attachment just as you wouldn't want to render a query to a FILE SYSTEM accept ones that have been designated as OK." Get It? It would save the world a little time and effort if one system could render data to a diverse set of clients. Rather than making a new server every time a new client arrives. I could simply build a layer of translation(XML) for a client and BINGO! New client/server. At the Native OS level this has the most power. Rendering live data into an Excel file on the fly is a real world application that would be a huge hit right now. "I want this months sales report... open Sales.xls BINGO!!! The data is there." I would really like to edit html in Dreamweaver as I regularly do and have it render into Zope. If you had file system level support every known application could be stored inside of Zope or have access to the data inside of ZOPE. Here is the interesting one: If you can have direct file access you could: Open a client application out of an oo database that rendered a view of the database back at you. (Sounds awfully like an OS!!!) Just Thoughts..... Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Ross J. Reedstrom [mailto:reedstrm@rice.edu] Sent: Tuesday, March 23, 1999 3:57 PM To: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From bjs@crc.com Wed Mar 24 00:30:30 1999 From: bjs@crc.com (Bryan J. Smith) Date: Tue, 23 Mar 1999 19:30:30 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... Message-ID: <199903240030.TAA14192@mail.lsg.crc.com> [Project Idea] Looking ahead to the future of Linux ... [ I am on the Digest list, so send responses directly if you expect an immediate response. ] Although I am a new user, I am quickly growing very fond of Zope. Quite amazing, multiplatform and all. The option to use either the built-in DB or an external one, the built-in web server or an external one. My entire company is thinking of standardizing on Zope since we run Solaris, Linux and NT (along with a few, rogue *BSD variants) on our server-end. Little and big internal projects aside, I was wondering if Zope could possibly fill a gap that will come about with Linux shortly. That gap is software distribution at the enterprise server to client level. Linux (and many other OpenSource software and systems) is winning in the server arena, but the corporate desktop world is staying with NT and the consumer world is staying 95/98. While the third will take awhile, the corporate desktop is something that is attainable in the next few years (with all the Windows 2000 issues which I do not want to get into). Microsoft has SMS for NT and even Apple has a better system for MacOS X Server. What does Linux have? First off, most Linux distributions have RPM. While the format is the same, the filesystem and other distribution or installation-specific configuration may differ. Quite possibly, a Zope-based distributed management system could be built to serve this purpose. I guess my main question is if anyone else is trying to forge such a project togther. E.g., does the Caldera Open Administriative System (COAS) plan to solve such software distribution issues? If not, do any others? If not, I'd say it is a BIG DEAL to get such a project underway. And Zope may be the perfect fit for the back-end (hence, why I am posting this to this list instead of a my local LUG). Just an idea. Please feel free to pick it apart (short of calling me an idiot, well maybe you should anyway :-). I am still learning Python at this stage (big-time Perl advocate, but Python is definately better for web-apps). -- Bryan Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================== How can you say your operating system (OS) is enterprise- scalable when you run a competing operating system for your mail services (Solaris for Hotmail), sport the absolute worst uptimes for application services versus all other OSes (con- tinuous crashes under heavy loads), and have just now, finally started an 64-bit port let alone it is a completely incompa- tible fork from your existing 32-bit API? From Paul@digicool.com Wed Mar 24 02:30:37 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 21:30:37 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Bryan wrote: > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. > That gap is > software distribution at the enterprise server to client level. The field of online software distribution is certainly hot. Marimba, the original Java darling, has reinvented themselves in this field: http://www.marimba.com/products/products.htm They are playing, though, in a pretty complicated mission-critical kind of field. The requirements are pretty daunting. > Linux (and many other OpenSource software and systems) is > winning in the > server arena, but the corporate desktop world is staying with > NT and the > consumer world is staying 95/98. While the third will take > awhile, the > corporate desktop is something that is attainable in the next > few years > (with all the Windows 2000 issues which I do not want to get into). > Microsoft has SMS for NT and even Apple has a better system > for MacOS X > Server. What does Linux have? > > First off, most Linux distributions have RPM. While the > format is the same, > the filesystem and other distribution or > installation-specific configuration > may differ. Quite possibly, a Zope-based distributed > management system > could be built to serve this purpose. One thing I've seen that's pretty interesting in a low-tech kind of way is rpmfind from rufus.w3.org from a repository. > I guess my main question is if anyone else is trying to forge > such a project > togther. E.g., does the Caldera Open Administriative System > (COAS) plan to > solve such software distribution issues? If not, do any > others? If not, > I'd say it is a BIG DEAL to get such a project underway. And > Zope may be > the perfect fit for the back-end (hence, why I am posting > this to this list > instead of a my local LUG). It's certainly a big deal in that it is an enormous initiative. Take some time to jot down what you think the business goals and the requirements of such a project might be and recruit some volunteers! > Just an idea. Please feel free to pick it apart (short of > calling me an > idiot, well maybe you should anyway :-). I am still learning > Python at this > stage (big-time Perl advocate, but Python is definately better for > web-apps). Oh you certainly say all the right things. --Paul From jbb@spyderlab.com Wed Mar 24 04:14:36 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:14:36 -0500 (EST) Subject: [Zope] handling exceptions in DTML Message-ID: Beyond writing an ExternalMethod, is there a good way to catch exceptions? For example, I have a database application that looks pretty ugly if someone attempts to add a duplicate key to the database. Ideally, I'd use a tag to trap exceptions and to provide handlers for them. Anyone have any thoughts on this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Wed Mar 24 04:23:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:23:11 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: Message-ID: Hmm, I found a reference to this in the Collector as something that has been planned. Is anyone working on patches to address this in the near future? I'd be willing to take a stab at it myself if not. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From julian@zereau.net Wed Mar 24 09:01:37 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 24 Mar 1999 09:01:37 -0000 (GMT) Subject: [Zope] quoting in python Message-ID: I need to be able to use the var tag's capabilities to neatly quote URL metacharacters, but I need to do it within an expr="foo" mini python snippet. This is so that I can quote individual included variables into a query string I am building. Is there any way to do this? --- Julian Morrison Programmer (Zereau Ltd) From jarvis.sd082@ex.tel.co.jp Wed Mar 24 10:40:44 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 24 Mar 1999 19:40:44 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723FCC3CE@telisnt1020.is.tel.co.jp> Thanks for the pointer! I have to retract what I said in a previous post about not having a problem with the ZODBCDA--it has the same problem. I had made a small hack of a product for my own study that connected through ODBC and that didn't have the problem because I used Python longs. I somehow got the two confused... This works, but everything gets converted to floats like you said. In my case, this is not so much a problem because I use a lot of large numbers but doesn't seem practical for general use. I found that if, in Buffer.c, I change lines 143 and 144 to case 'd': return PyLong_FromDouble(self->val.d[ii]); I can get the same results as my product--everything is a long. Unfortunately, this causes everything to be printed with Python's 'L' appended instead of '.0'. Either can be fixed by using fmt="%.f" to all of my number fields, but that seems like a lot of extra work (maybe a quick hack to the Z Search Interface would do the trick?) Plus, what if I really have floats somewhere? Would something like: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'f') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 in ociCurs.py (lines 123-131) handle this? I haven't tested it yet on float fields. It might be better to just leave everything as floats. John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: Jim Fulton [SMTP:jim@digicool.com] > Sent: Wednesday, March 24, 1999 12:00 AM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > > > TFE MMS JARVIS JOHN wrote: > > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > > > Traceback (innermost last): > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in > publish_module > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > > (Info: /queries/wisdom/customer-Line/manage_test) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > > (Object: CopySource) > > File db.py, line 198, in query > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 317, > > in fetchmany > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 279, > > in fetchone > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 75, > > in _error > > oci.error: (see above) > > > > I tried changing line 219 in query() in db.py: > > from > > if scale==0: type='i' > > to > > if scale==0: type='f' > > > > in order to force a float type, but this has no effect, it seems. > > This typr only affects meta-data seen by some Zope tools. > > > I'm sure that I'm misunderstanding something here. > > Nope, you aren't. > > > Any pointers to where I can look to fix this would be greatly > > appreciated. > > There is a similar change that needs to be made to *work around* > this problem. In DCOracle/ociCurs.py, change: > > elif dbtype==2: # Number > if scale: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > to: > > elif dbtype==2: # Number > if scale or 1: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > This has the undesirable effect of causing all > numbers to be treated as ints. (This is what oracledb > does) :( Unfortunately, you can't tell from Oracle column > meta data whether values in a column will fit into Python ints. > > The right way to fix this is to implement Oracle's > NUMBER or VARNUM C data types and convert to Python > ints or longs on a case by case basis. > > Jim > > -- > Jim Fulton mailto:jim@digicool.com Python Powered! > Technical Director (888) 344-4332 http://www.python.org > Digital Creations http://www.digicool.com http://www.zope.org > > Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email > address may not be added to any commercial mail list with out my > permission. Violation of my privacy with advertising or SPAM will > result in a suit for a MINIMUM of $500 damages/incident, $1500 for > repeats. From Paul@digicool.com Wed Mar 24 12:31:19 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 07:31:19 -0500 Subject: [Zope] handling exceptions in DTML Message-ID: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Jordan wrote: > Is anyone working on patches to address this in the near > future? I'd be > willing to take a stab at it myself if not. Please, stab away! If you write the try DTML tag, we'll crown you Prince of Zope, or at least Most Honorable Potentate. Looks good on business cards and the girls really dig it. --Paul From M.Faassen@vet.uu.nl Wed Mar 24 15:25:48 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:25:48 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F903FC.F53C8EFB@pop.vet.uu.nl> "Bryan J. Smith" wrote: [snip] > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. That gap is > software distribution at the enterprise server to client level. I'm not sure I understand what you want here, but perhaps interesting for you is the Trove project. Perhaps it's directed more to larger scale internet based distribution, though. Another problem is that as far as I know the project isn't progressing very quickly if at all (perhaps you can help). I've even heard mention of ZTrove, which would be a Zope based Trove, if I understand well. I don't know what the status on that is. Mind, I don't know a thing about Trove, just giving pointers in the hope it's useful. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 24 15:26:47 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:26:47 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F90437.EFA9C1A5@pop.vet.uu.nl> Hi again, Whoops, forgot to mention an URL for Trove, so here it is: http://www.tuxedo.org/~esr/trove/index.html Regards, Martijn From gilles.lavaux@esrin.esa.it Wed Mar 24 15:30:52 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Wed, 24 Mar 1999 16:30:52 +0100 Subject: [Zope] Pb: REQUEST.set with formating. Message-ID: <01be760b$4d817480$fce3ccc1@asgard.esrin.esa.it> Hello I try to set a variable to the current date with some formating: This works: But how can I format the ZopeTime to get only the part I want.(month/year for exemple: fmt="%m/%Y") ?? Gilles Lavaux From michel@digicool.com Wed Mar 24 16:14:33 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 24 Mar 1999 11:14:33 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BBAB@gandalf.digicool.com> > -----Original Message----- > From: Martijn Faassen [mailto:faassen@vet.uu.nl] > Sent: Wednesday, March 24, 1999 10:26 AM > To: Bryan J. Smith > Cc: 'Zope List' > Subject: Re: [Zope] [Project Idea] Looking ahead to the > future of Linux > ... > > > "Bryan J. Smith" wrote: > [snip] > > > Little and big internal projects aside, I was wondering if > Zope could > > possibly fill a gap that will come about with Linux > shortly. That gap is > > software distribution at the enterprise server to client level. > > I'm not sure I understand what you want here, but perhaps interesting > for you is the Trove project. Perhaps it's directed more to > larger scale > internet based distribution, though. Another problem is that > as far as I > know the project isn't progressing very quickly if at all (perhaps you > can help). > > I've even heard mention of ZTrove, which would be a Zope > based Trove, if > I understand well. I don't know what the status on that is. > > Mind, I don't know a thing about Trove, just giving pointers > in the hope > it's useful. > > Regards, > > Martijn > Trove is sketches of code in Python (written by Eric Raymond) and ZTrove is vaporware, barely prototyped in bobo a few months ago when I was on the Trove list. It's unfortunate, since I felt that Trove was a great idea; the Internet hasn't reached the point of 'we need it now' in order to get some development behind it. Personally, I think Sunsite and RedHat should give us lots of money so we can write it. :) With Ken and I now in the Zope loop (Ken was one of the original Trove designers, and I was in on the GUI side of things, pushing what was at the time Bobo) we could probably bang something out sometime in the far future. We'd prefer someone in the community start it up because Paul and Rob have us booked sometime into the year 2011. -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From wade@okaynetwork.com Wed Mar 24 16:49:58 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 11:49:58 -0500 Subject: [Zope] fsimport and permissions Message-ID: <199903241649.LAA11692@emerald.lightlink.com> I just ran into some odd behavior with fsimport that may explain the problem that Milos posted last week. On my Linux box, if fsdir == '/fred/barney', then fred as well as barney must be world-readable. If not, you get the error traceback Milos reported in his March 14 posting. Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From prudek@sol.cz Wed Mar 24 17:10:29 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 24 Mar 1999 18:10:29 +0100 Subject: [Zope] Re: fsimport and permissions References: <199903241649.LAA11692@emerald.lightlink.com> Message-ID: <36F91C85.924DF20E@sol.cz> > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. Bingo!!!!!! Now, is this a correct behaviour? -- Milos Prudek From wade@okaynetwork.com Wed Mar 24 17:36:19 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 12:36:19 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241735.MAA13778@emerald.lightlink.com> > I just ran into some odd behavior with fsimport that may explain the > problem that Milos posted last week. > > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. > Oops, posted too fast. I should have said that fred must be world- executable (listable). -- Wade From aboulanger@ldeo.columbia.edu Wed Mar 24 18:14:10 1999 From: aboulanger@ldeo.columbia.edu (Albert G. Boulanger) Date: Wed, 24 Mar 1999 13:14:10 -0500 (EST) Subject: [Zope] Confera Message-ID: <199903241814.NAA13900@ox> I know Confera is unsupported. I did download it (1.2.0) a few days ago and tried to install it as a product. It is a broken product since it needs a module SearchIndex.TextIndex. Any idea on where to get this module? The Zope I am using is 1.9.0 Regards, Albert Boulanger Columbia University From eq3pvl@eq.uc.pt Wed Mar 24 18:38:39 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Wed, 24 Mar 1999 18:38:39 +0000 Subject: [Zope] Confera References: <199903241814.NAA13900@ox> Message-ID: <36F9312F.38DA362C@eq.uc.pt> "Albert G. Boulanger" wrote: > > I know Confera is unsupported. I did download it (1.2.0) a few days > ago and tried to install it as a product. It is a broken product since > it needs a module SearchIndex.TextIndex. Any idea on where to get this > module? The Zope I am using is 1.9.0 > Confera uses ZTables functions, and these were introduced in Zope 1.10 ...just download Zope 1.10.2 and Confera will work just fine. pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Wed Mar 24 18:40:51 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 24 Mar 1999 19:40:51 +0100 Subject: [Zope] Confera In-Reply-To: <199903241814.NAA13900@ox> Message-ID: <4.1.19990324194019.009bcde0@mail.atmm.nl> At 19:14 24-3-99 , Albert G. Boulanger wrote: > >I know Confera is unsupported. I did download it (1.2.0) a few days >ago and tried to install it as a product. It is a broken product since >it needs a module SearchIndex.TextIndex. Any idea on where to get this >module? The Zope I am using is 1.9.0 > Confera requires Zope 1.10.2 to run. SearchIndex is a package that is oncluded in that release. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Wed Mar 24 19:04:11 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Wed, 24 Mar 1999 14:04:11 -0500 Subject: [Zope] authentication problem Message-ID: <36F9372A.BCADD32B@GestaltTechnology.com> Zopists, I have a secure site and trying to secure a part of the site so that only those with the role of system admin coulds access. One special page has the following code the uses a 'with' tag to include a parent environment:

    Available Documents:

    The parent object has the following permission settings: Roles Acquire permission settings? Anonymous Manager Sysadmin User no View yes yes no Access Cont. info yes yes no Open close DB conn yes yes no use SQL methods the rest are set to acquire .... the role sysadmin is declared in the gestalt object.. Do you what am I doing wrong? Fredy Villa FVilla@GestaltTechnology.com From pj@sam.engr.sgi.com Wed Mar 24 19:06:00 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 11:06:00 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241906.LAA16274@sam.engr.sgi.com> |> I should have said that fred must be world-executable That's just Unix-style permissions, no? Can't expect to access "/fred/barney" if you don't have execute perms on "/fred". ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From ShawH@STHS.org Wed Mar 24 19:27:44 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:27:44 -0600 Subject: [Zope] Counters Message-ID: I remember noticing various comments on the list bemoaning the lack of some sort of counter. I also remember noticing the objections which were raised, and why counters weren't feasible. I don't remember reading these objections, which may be why when I found a need for a counter, I sat down and wrote one. I now have a working Counter product which provides a tag . It includes the ability to have multiple non-incrementing displays of a counter, and the optional ability to render the individual digits using a supplied template, thus allowing graphical counters of whatever sort you feel like using. The counter uses a long property in the containing folder, so you can manually set the counter to whatever you want. It also provides the optional capacity to have a short 'memory' of recent IP's, preventing the 'running up' of the counter by scripts or massive reloading (well, makes it more difficult anyhow). The template is supplied with variables which indicate the position of a given digit in the list (it is wierd, it works from back to front, since it uses modulus) including whether the particular digit is the first, etc. If someone will supply me with instructions on how to package the product, and how to upload it, I will be happy to make it available. Thanks are due to tsarna@endicor.com, on whose product this was based, and to Jim Fulton and Philip Aylesworth for answering my questions. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:34:10 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:34:10 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN In-Reply-To: <199903241906.LAA16274@sam.engr.sgi.com> Message-ID: <199903241933.OAA17777@emerald.lightlink.com> > |> I should have said that fred must be world-executable > > That's just Unix-style permissions, no? Can't expect to > access "/fred/barney" if you don't have execute perms on > "/fred". > Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 /fred/barney. Then anybody can get a listing of barney, but only root can see what's in fred. And if I su nobody and run python, os.listdir('/fred/barney') works but os.listdir('/fred') gets 'Permission Denied'. -- Wade From ShawH@STHS.org Wed Mar 24 19:35:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:35:08 -0600 Subject: [Zope] Counter 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_000_01BE762D.6CC78340 Content-Type: text/plain Well, I think I figured out how CalendarTag was packaged, so I packaged CounterTag the same way (I think). Its only 2.24Kb, so I am going to attach it... I hope I won't get shot. . <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE762D.6CC78340 Content-Type: application/octet-stream; name="CounterTag_tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CounterTag_tar.gz" Content-Description: CounterTag_tar H4sICAFA+TYAA3Rlc3QudGFyAO1Za2/byBXNV+lXzDooKDWyLMUv1A2DZm0X66Ldpo63/WAYxJgc SYOQHJYztKP99T13ZvjQw1p0E7QoqnESi+S9Z+7ce+6DSiofj4qlWaj86GOpkio2+uhSVbkR5dGr b7TYyeT8/JS9YrQma7/9BTs7Oz+bTN5O304Zm54cnx6/YqffyoBdq9KGl4y9KpUyu+R+6fn/6Ep3 xD+KZC5NFI2L5VftMZ1Mzk5OdsT//MzF/y3CfnyO+J+dniD+k290xp3r/zz+UZSoOIpYyIIg8IFn hs8ZhV7yVP7MjVQ5Hvb7MitUaZiXuuPz/n/b+v362rUr/9tAf10F2J3/07fHx03+nx8fn+LW+fRk us///8SalSpjVyquMpGbO5EVKTdifHUX/WRkynzG/7b/otgnU8p8Xgu6q34/TrnWnUJx0adIUxGh 350yc9G3d959d3j4Ova373k51w+Hh+/7jiD3qqASxFNm/MYsVol4aDWPYp6KPOElKdnbt7gUpWac edQxu1sIth2JxTxnj4KJLyKujEjYTJVM8HhhoRI5lwblkJmFqNEYzxMmNRTTFPLP0iyYFk+iBHSl xaxK2RMvJX9MhR47i/5eX/sjO9iBzA27nxz+7mF44W8ZRbYkUsPApUicdKG0lYUUPko6BVMzpzFi RGFDYeCGlXK+MNY+ayvdTcXMjC0MHcEKZEqb+mSaIMNw6g2dyVI3ho2mZNiUyZk7flWWIECrSTcJ nvBGTKRasInHQTkpBMzCidkAZ4nhKHgxVrnhaC6wa6ZSBGnoxL1nD9/lPBPvL5qtnnhaCTqrF6DT qhJYXLNU5fMxu06kIc+6Izp9sq0UflcbHrK0waILsMyymQWkEThtkKQUpAxG8KLg1gRRliCEZ0Dh jrVkBZ8L3CGXI+BawBnKYvA4FoWxwn+miNAH0LHet4msM2dEbIvJHUtVUfBLkaknYZEc71SZULIo JnBQGLZkCjilUydew1z8yRU9bI3Nlpbc41X3yiKV2jRepgvrXO9tWeiug7XN53UXUya5J96jGYoo E/SZUgqWcu8mi+95UQpdpYZVSMyZzEXisAbfV4aEHwG/ZI88+c7z4YMPT50vZDAbuG1BSXvpPdow A1FIaHuZQFHOlnWwJGWhTTox42QE3BV4rcA7SKOEpc0OLFgKHYAaKsBm+MwywXPNEoxC3aNi97qU bO5AEB5d5jHiSh7eukEiYEkGr2j2vBA2ut1q8yzT1MKgMDRIROyFyJlLxNIWvNqrL1gRL0T8OUKM /y0rbq//8te76+jD1dXtiiWxyihBQJQ5EhoM2MqxMbuZ+W2oKHGWcRMvyLIZxJOmLHXParm8dlbL IRKUhZPBc54kv3DivMq658Uh69hpy1O4D+hz7KsLEYMy5BTaJeNfZFZlBPAoSosFthEU1GyC4GCm ybvkSWpBGWIfC0p6qo5KsQXK7YhyydkekWssnE0a68YcjcM45pKLbK/ldYZRH7IlRW/h8PS0Puj1 F078vbDJ6Uq4eQYeVTObDWhVI8fXhSwToGQKMSutJ5A3dDrerRT2JQAWzUUuSAoWzUteLAioEyxU Vio6X4DEUpTUenPuQ4tBwLeL8WarR7v2/bu53jIPuMwMc1WLo7U6yC36pL0Lo+VUSFndZIS98mwJ jyfN9GFR0P0O3LFQWl2zPGjnk3cymzNdxuHBkfeQrg3SRxsGP8p5Mp7L2UF3AyL3rwV0zl1HPJKz GnDDRc4/lyX1EzTnf5TSGBSSxyX7QT1zkOMyRVZgwvi04M/s5ubG2+XX95zKrMrd7AQto3mZ8z+g AslYlWPUBTa49BOZe3kY9nvMdQ6ef7Yp9CeZsT+CxoAhzn9cyBSJ/WGJAekZk+TCzmCouM/CZgGa mYf4ZyU0jT+aehxnRmYCjYMwFiItaPLKeA7KjpuRs20fYVv1XRFLVfz5UtGUVHEHGrKBb0DIM1Z/ AzLQIp2NnLweXjT+MAQ7olGC2qaI7VwWern7yUMjSPrjVsB/GjvBVSkCgwhKqxYR/uWZHrgNaLMw CEY1m+ljS2e6aulMVzWdg8AfqdkjW3p/2Ku5wPw4jwZuEBq1Thqu2e9a5LqWu016VHiHYWh/r6q2 /W9du3myG6BtXesAzZMNgJ4plxcr3LWadU8IqfYP1jzgnhEUausQvMWsgiEfOL0tANNJy5Uaw1HF EQP30W46hEElaYI8XnAdfRbLAckOVw0thanKvJW9J5mWTlQvtiq4DVujGu9GPqbevCzpkKVhCozo FWGW3AcfP9xe/3j3KXggEvdg9aCRHnpX0NwTBms9P3jT4dfvnaB0kLfXf/vp+tMdIIPORBE8eKEZ K8gh/q1hOSB42qrneya8Ta17UFCwVqWGJEXNmUqCFyfN1i+4cC7reYtqyPrTG3Yvi4f6MY6L6jXw D4fsfddBkNnQv784nNbaxTiqigQdc8XIEXptA+jLYW0SNPTamaw4mTQcmWWBVHfTADKyt+r3FYfb SG134w7Ltnj0zRQbefO85oaFU2fZAb2EHXRqpptEIzc4dejm31XRPkduRiCzch2S4brAi5qTdRu6 F8zQK3kjlK2L0HfXriOH7re7NbR0zZJxVFR6MbjBhMPzWFzJ2AxyTXbA974uuHyGvjfY1eJBt1Jb hfUSYNFVMZj6KBZc636vTtgX/KAbR9hTb+TYSgi2Bxfb0egxJXtw4HDS71Fp7/ee0Tvx4pK/n9SB tl4Lqbrl7DcoUt7SPMyPULEajtPkmoPcVs+jTr1fQrvzaiy3R/GNbsIT4u+b6cvOWHECWbDaG4bd IrtZuWj71V4wWqnHww6m60k1YG0PcorYOvg13h8OfZJ30qJbpdfCTcTpv+51dk5kubHxcNhzPooi +irJfg/vgKBc+w6ZV09Tq93FtZbXK80N93TkugWwqBe8pp9Ok9qO5RoHVH5Uueii1h3LAq+3rEZq 3RsdM1oh57ltOr5t9fCD5zZt8YbXfS2kt5F5qh4pEft99z0jTZoY9hJ930wsdOj9/0/s137t137t 137t137t1369sP4F2FdJwQAoAAA= ------ =_NextPart_000_01BE762D.6CC78340-- From ShawH@STHS.org Wed Mar 24 19:38:50 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:38:50 -0600 Subject: [Zope] Counter Message-ID: With regard to the IP checking mechanism. Realize that this reduces the count for machines behind a masquerading firewall and increases the count for machines on dynamic IP dialup accounts. If anyone is interested in using this counter but wants to prevent a given IP from incrementing the counter a second time under any circumstances, it should not be too hard to modify the code to store the IPs in an SQL table as (I think) Slashdot does. I have no need for this, and don't intend to code it, but the code, being Python, is, I think, clear enough to modify. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:41:01 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:41:01 -0500 Subject: [Zope] navigate ZDB with Python Message-ID: <199903241940.OAA17995@emerald.lightlink.com> Hello, I'm trying to put together an External Method that needs to operate on several different objects within the ZDB (a/k/a ZODB, BoboPOS). How do I specify an object ID and retrieve the relevant object? sorry to be obtuse, but I can't find an example anyplace. In the onl;ine docs, this URL -- http://www.digicool.com/releases/bobo/BoboPOS3/BoboPOS3.html -- looked promising, but it comes up empty. Thanks -- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Wed Mar 24 19:53:36 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 14:53:36 -0500 Subject: [Zope] Counters Message-ID: <613145F79272D211914B0020AFF640190D9F64@gandalf.digicool.com> Howard wrote: > I remember noticing various comments on the list bemoaning the lack of > some sort of counter. I also remember noticing the objections > which were > raised, and why counters weren't feasible. I don't remember reading > these objections, which may be why when I found a need for a > counter, I > sat down and wrote one. I now have a working Counter product which > provides a tag . I'll indicate my appreciation of your contribution by, well, asking for more! :^) One of the big objections of the counter kind of object is that the object database gets bigger on every request. A good workaround for this would be to cache writes to the database. Thus, imagine a counter that: 1) Only wrote to the database after a threshold had passed. For instance, only every tenth state change or not until ten minutes had elapsed since the last write. 2) If the process was nicely shut down, the object would save itself. 3) Had knobs in the management screen that allowed adjusting the "buffered write" policy. The benefits: 1) The database wouldn't keep versioning into oblivion. 2) The application wouldn't be slowed by writes on every request. The drawbacks: 1) If the process exited not nicely, some state changes would be lost. --Paul From ShawH@STHS.org Wed Mar 24 19:48:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:48:02 -0600 Subject: [Zope] Counter Product Message-ID: The counter ought to place the properties in the Document if it is a Document and not a Method. If anyone can contribute code which will take 'md' and return x, where x is either the Document or the Folder containing a Method, I would appreciate it. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From tfraser@crieff-strathearn.freeserve.co.uk Wed Mar 24 19:49:09 1999 From: tfraser@crieff-strathearn.freeserve.co.uk (Tim Fraser) Date: Wed, 24 Mar 1999 19:49:09 +0000 Subject: [Zope] is win3.1 ok? Message-ID: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? I'm currently running Zope on Win95 desktop without problems. From joctavio@jimihendrix.net Wed Mar 24 20:00:35 1999 From: joctavio@jimihendrix.net (Ze Octavio) Date: Wed, 24 Mar 1999 17:00:35 -0300 Subject: [Zope] IRC DalNet Channel Message-ID: <36F94463.A827A58F@jimihendrix.net> Hello Zopians, Another way to get in touch with Zope questions, just go to irc.sodre.net (or another server from DalNet) in channel #zope I will be in the channel and who wants can be operator, just talk with me. Thanxs all Ze Octavio PS: Questions in spanol an portuguese are welcome too ! From ShawH@STHS.org Wed Mar 24 19:43:18 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:43:18 -0600 Subject: [Zope] Longs on the Property page Message-ID: In the stock Zope 1.10.2 distro, putting a Long in a property causes a curious error to manifest. When the property page is displayed, the long is display like 44353L. If the then change any other property and attempt to save changes, you get a traceback saying that the property for the long is invalid. You are forced to manually remove the 'L' before saving changes. May I suggest that when the properties are display, if the type is 'long' then the display code should do something like this: str(long_value)[:-1] This would remove the L before it was ever displayed.... Alternatively, something in the response code needs to be modified to accept an 'L' at the end of an integer destined for a property whose type is 'L'. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From ehmka@yahoo.com Wed Mar 24 20:09:04 1999 From: ehmka@yahoo.com (Kevin Ehmka) Date: Wed, 24 Mar 1999 12:09:04 -0800 (PST) Subject: [Zope] The best way to pack and close PickleDictionary? Message-ID: <19990324200904.8613.rocketmail@web204.mail.yahoo.com> Previously, using Bobo, I created several PickleDictionaries for use on my website. Regularly, I would pack these databases before ending the CGI call since they were altered very frequently. Now, using Zope, I find that I cannot pack them without receiving error messages telling me I'm attempting to write while the database is in read-only mode (it appears the Zope threads out the packing). I also found that Zope caches these databases and issues an error when I attempt to open them again. What is the best way to pack and close these databases? How can I query which db's have been opened? Even if I do keep a mapping of previously opened db's, how can I find out if Zope is closing them. Any help is appreciated. Thanks, Kevin _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From jbb@spyderlab.com Wed Mar 24 20:22:17 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 24 Mar 1999 15:22:17 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. Hey.. this isn't bad.. in writing even :) Okay, I have a prototype of this written.. basically you can do the following: foo bnar The exception was So, if an error occurs inside the first block, the second block is rendered with err substituted for the variable (in this case it prints exceptions.KeyError This is pretty basic stuff, so I'm looking for ideas on where to take this. Anyone have more ideas? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From petrilli@amber.org Wed Mar 24 20:28:49 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 24 Mar 1999 15:28:49 -0500 Subject: [Zope] is win3.1 ok? In-Reply-To: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk>; from Tim Fraser on Wed, Mar 24, 1999 at 07:49:09PM +0000 References: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Message-ID: <19990324152849.B11092@amber.org> On Wed, Mar 24, 1999 at 07:49:09PM +0000, Tim Fraser wrote: > Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? This is just a guess, but I doubt it. You'd probably need a DOS port of Python, which would eliminate all the networking code. This is just me, I don't have a 3.1 box, but... you're welcome to try :-) > I'm currently running Zope on Win95 desktop without problems. Goodie goodie :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Paul@digicool.com Wed Mar 24 20:55:29 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 15:55:29 -0500 Subject: [Zope] FYI: Slightly updated version of the Z ODB tech docs Message-ID: <613145F79272D211914B0020AFF640190D9F66@gandalf.digicool.com> I've gotten a lot of reports about a broken link to the ephemeral, much-referenced "BoboPOS3a1" technical docs. I promised myself I wouldn't update the link unless I updated Jim's doc to Zope-ify it. Thus: 1) The official name of the database is "ZODB", the Z Object Database. 2) The News on the site has a link to the ZODB3 Technical Documentation. This is a very well written, circa October document from Jim Fulton that describes the architecture of the next version of the database (i.e. Zope2). It's quite nice -- contains UML diagrams, API discussions, etc. 3) The broken links have been updated. --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From ShawH@STHS.org Wed Mar 24 21:42:46 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 15:42:46 -0600 Subject: [Zope] Counter Message-ID: Ok, having read the newly available ZODB manual, it seems that I should override __setstate__ and call the old __setstate__, passing it a dictionary containing only those attributes I wish to be persistent. Then I don't have to call my __setstate__... it will be called automatically by the system. This should have the effect of making any item not mentioned in my dictionary non-persistent, which will allow me to accomplish Paul's goal. Now, the BIG question... This ZODB manual is for ZODB3, which we don't yet have! So is this still the correct and workable technique for accomplishing this? Thanks again... and please everyone, don't use the old Counter product, since these tags are going to conflict horribly, and this new product should be much better for the DB, according to Paul, if I can make it work. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From lstep@mail.dotcom.fr Wed Mar 24 22:04:21 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 24 Mar 1999 23:04:21 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . In-Reply-To: Paul Everitt's message of "Tue, 23 Mar 1999 21:30:37 -0500" References: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Message-ID: <87bthilf2y.fsf@eurythro.savigny.stp> Paul Everitt writes: > One thing I've seen that's pretty interesting in a low-tech kind of way > is rpmfind from rufus.w3.org from a repository. For .deb there is the official package manager (www.debian.org), but there's a 'Debian Package Finder', which is already complete python :-) On http://badger.alaska.net/debian/finder.cgi That may be easier to convert to Zope. Luc From pj@sam.engr.sgi.com Wed Mar 24 23:50:12 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 15:50:12 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903242350.PAA02166@sam.engr.sgi.com> Wade writes: |> Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 |> /fred/barney. Then anybody can get a listing of barney, but ... Well - darn if you aren't right. Only the immediate parent directory of the item to be opened/listed matters (so far as execture permissions), not the grandparents and up. Seems strange to me -- but seems you're right. ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From neves@inf.puc-rio.br Thu Mar 25 00:38:21 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 24 Mar 1999 21:38:21 -0300 Subject: [Zope] handling exceptions in DTML References: Message-ID: <36F9857D.C40204EE@inf.puc-rio.br> "Jordan B. Baker" wrote: > > ... > > > The exception was > > > ... > > Anyone have more ideas? Maybe something like this for the version 2.3 :-) ... ... ... ... regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From ShawH@STHS.org Thu Mar 25 01:06:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 19:06:02 -0600 Subject: [Zope] New Counter Product 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_000_01BE765B.A6C63540 Content-Type: text/plain Here is the updated Counter Product. This contains two classes, one which provides a visible Counter Product which can be added as an object, and which has Security options, and a new tag which provides a means of accessing the Counter Product. Note: the tag should be able to access ANY object which possesses a getCount() and a incrementCount(md) where md==_. So an SQLCounter Product which stores its numbers in an SQL database should be able to use the same tag structure. Since it passes md into the incrementCount, the Product is free to store as much or as little of the REQUEST as it chooses. My product stores only the IP address, and only under proper conditions. The tag structure is described in the CounterTag.py source file, and examples are given. I hope this is useful to someone. <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE765B.A6C63540 Content-Type: application/octet-stream; name="Counter.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter.tar.gz" Content-Description: Counter.tar H4sIALSN+TYAA+0aS2wkR3X4StNKpEhcQarMEvUMO56PP+PETJts1uvEKJs1a28SZFmtdnd5ptj+ TLq615lEe4AbZ8SJG6cgIYTElUMuiHPuCDhzgHNO4b36dfd4/Mnau8tnSrKnu+rVq/evV/U6ZEfd yTQbJ3F3N02C3M9493aSxxlNu7VramS1t76+RmoEW2/mV72QwWB9sLze7w2WCemvrgzWa2Ttugg4 r+U881JCammSZOfBXTT+X9rCc/Tvy99bQdAJsih84jX6vd5gdfVM/S+v9te0/gervVXQ//rq6kqN 9K6RzzPb/7n+h2PQ7KZFyHBMvWBzmLEspJugcqKsYNiVXcOuAEDIoySYkqORn4RJ6jRubIvWwCEL 9TkcL1cRwLsYkKPHSRoRz89YEjuNyIu9EXW9IFDQDRJRsMbAaeze29tvyIkwK/OOQkp8GoZ84vks HjmNZRitW/VhlsIvgoyJF7IRYH37zvZ+gzxSb/v3dhubOwEwMlaAwTmAFim1IYsneUay6YTC8J33 ATj2InhmQYNw9hE8rfUqc2AVEFIdftIvQd2QRpv7KOZhF56ulVKhvcsQ+2VovT2m/kOys0tucOLF AQkY/yAHoOMpSemEehn/wfVz4uOiLpvwEjeIJ4fHKeXXw9k7eXREU5IcA3ecZAnwE1HsegoMxXl0 Bjv9tevh5q3khICLTcmYZZwcUfA9Srj3CPwHecvGlAQeuJbH6VPg7yRlGfh2NofBlUsaYrCphtTL UbpZWW7vwRt3d/YNWgg7jc0KMhF38Bnjh3wddjEEiUjWxVC2aUGIElHweQfj59DO2/9dl8Usc93O ZHqlNS7Y/8n6oG/yv/4A9//B2mB5sf8/i+a6QeK7LnGIbdtK8STzRgRVz8DnP/Jwp4ZByzpOk4js RLBhbzPYjFk0SdKs6LAs1aPQzLzueyPLgs3dc9F1udMUzvixjbHC3iB6cbst+m2ZIeDAqRxhG9zX FlCPJXBLIIasgTsfy9nz52xoWjrVgfYZk+ZOsB4Ty3Jdz3cnNI0Y50Amd13FT9MupT6c223oKfDu JmEoKGnPdNqtVlvNvz324hE1KBCDHkQ+GfddzaVvyDRKaOrOzogd2+1RmBx5ITcYHs/GuPP8X/N+ Rfe/yP8H6z11/lvpDQaDHvr/6qC/8P9n0ZSP3vI/yBln6HKW6fIp57eTOEuTUHfe296TYeBNaVg6 CLy1f/dtNL82uQuTwBa3IHYkozbZBRNmPKNxJudtJX4ewds+jSahl9HO1r77IGOhRvS9s8H2shTz FgUo3yzLDz3OtbdIHywx09mB+cxnmTT/gpq2gizx2LmfhFT8uyt8M5UwwHJnDxYN6U5Gow7+k864 IZ3QlqFIUSA7IQYgqR5RzkgYSCrOcqDpEe1YAmY/ITmnBUybTJOcxJQGmJpBXIAhDMQqT5sARQLi xIsz0SPmCVQIP4G0G9aJO0Z2InATyHUAGtb3vRgyQHjPIWFnsUBRhGZwcnk+40me+gAGylSE3k5p AOnjBnkP8jmQHTmaEkgsvRTiXAhcwSJ7Y++E7OzsVPJC8gaklQGBYT8JKM7KuJfG3us0DpifpB0f FN287YXw7ikaWlUM+xALH4o0/IcsItt5CIuBTY1ZyCbk1jSk/ARsYSzOIHeZP/ZoCDoOQ5oxCNQV VCgHL+YnVBhRNCUf5JSjhFAzKGoW0XAqMI1pODnOQ8ycYwh/ltGzeMD9CrdLHXxlLzAUO7aIzrP3 JwrCbH2O2erUgNwJkomgBvaR+sd26B3R0N6wISbDLgPcwD5gtkS9d0Qei23YAkvwe9TPQUvTOdCe sHX7sVVvyXXn7mH1pv0uoyeKKDQjwv2U0hgIMDsZJNO82MIEGbjB1M3mVcJamqYoaFdhzb5v4NDc AL0fgkXDASkEj4VXFvupIMhMaMEU5aoGKRKPqEa0BIdDiumAHgPjnGYQ9uFw4jY5DY/b4kU5tHCC bNkRfaaHHZMm9HbGHncf0mnThjAwcYWGgfcNPKAg8hCnHpQHD616EXU685ZebtXLtMmcWw6ywDF2 1hYn+dK7OQ879hTtQx0nHbu/Zrf12cuxV9ZspA/xdVgAlssC9SYQQof4VX06YDmkp+cIBUDHwaGG 0QtDZ0GEpEKBKFoAgMLRrKleW2pUE6eH9bsedx+5hQQFMWXaKl6Dxufo3cckP3eEBRXJTyHfslEJ GaNsGo3GbeznIigKdsUFAF5vnIwhrmD8zrmMzDRkEYtBg/qqA2ZXROWAoMx6JZOWKhXCLnSntWYU 1tbbwf07P3pwZ2/feSeJqSISsRShH2wAovrYS8HTIapBMPNLtEhrqajWqOp8pTnnqcyZqzBFjxxU L2co06mosg5+pRhFGcdJRpBf5U8pzfI0rqYUEKLqyhNQyzSAA0O9HkkQxx5y2Mrj0eYrfNhVjwR8 FnY+2LiomNCxyStEuQPOlYESQ3qnWw5pMFQyHB1QykYDfWV1yFsIoQIRLuZwPyxzj1guIyMlhnmQ pchRjY/S2EgUKFLNaJngaye1Ei0rNlcKrgJg4kTBga1Ubx/i4917+3fcW1tb9yFmVmFVACr5WBUA mJ/gLi7HqisVdlTppiGnpwHNUurhJjlgk8PTYMAeZC1NCdUim6TsP63TeOchP9hY6h9KO8dWDiCK x/McaKbzZl8qcq4mlyqa1NQaHzaqPW8By6oemU/HXMh5qyEXjbKYpDe0iwPgTOBD4WCATinG3CKl 9kQaC3tpCIeHTKg/45Amp2jk20kYKHvcB3v30pFIiYmNVNjkhMEkSIaPRDJsMuzS1I5eVzqYFo1m 5hJ8yFRWyhI2/XtHP6F+hhNNfFSmND/+lZ2+FJWUX6s5rStfWV6i/odh9koFwAvO/ysr62v6/L86 WOlj/W+w2luc/59Fm1//Q5U/aQFw+PLS0o1HINPSYWFpadMytcEq8ouLg7hrP62y4DMsvOkahZGP AADJnFMJMb26lKFfr7dAV8b8dOt0gnmIeQYG+IcMVHTjlgyvcSLeuux4vmxKb1cS0aUqfdcrmbML fsYoFMjTZf0Jy4LXK4xzqoNGGhrmEuIgV/GWPBVb/1s6MD0939BfOZzNc8OcNFqNp8z3llLyNTKu udCp59LF5D95uRd3kkW990rtEvkfVpKutMZF9d++zv+WB8trq2tY/xksL+o/z6S9ubP96mveS7WX ar/+ovYFtFrt008/3d3drYkHCfTy51//Sq32jVobXxD29a+98f7GX373+xdef/jJzz798c3P//bN V7/9y59/508vfrZ1/6eTTm+S/+G7//rjbz/7zWfNRt168Mnf//neC39Nf/GrF//c3uk/uDH46j8+ +lbt+8+P7UVT7RL1X1mZucIaF9V/B/11ff5bXhHf/673++sL/38W7RkUZcF+zC1OuVSK1c0NdSzE tEFf7Bx46YgfFpnDgayMeSHJ1MKioHhYzOz6qohozpn34ZWmvLgu6oh7oPmYdGmUfkj9PKOBqBVS zx/Lu1U2ktdL5ZtecfmENdUwBPgTBqkWp49oCqhzTrF4CEkQwxyEq/rhu/pdsSzRNhmknQe9pdcO WxuqCxJwoAUObEDglAYSepJwAQtQ8ChK23hyETPaBE04EwXnjKRsNM4EfYJW7A3pcSbvs5AFARAl PNOccUTpOH1F6DFLuSGs3UfC+nhNJdhXibKZKeolgB7xtcWlKukpPLfUnZtmWIuuyYWRAFpRSU2O y4JtmzJLmPion1KVmiTiCq2jb7y9PBQ0mIqYWpiLYr1eh4gKB7HjxIYl4ZlE1Is5CZLYzkT5Kdfr aKM4vQKiUNiLi/S5CwQ0w9pnTLFyRAFrWrEbvHgUaEDFBhNa0JjGRIo0FaZLg3OpuPOhh0xuCKuW GstOEuLBOY4FgJKBZbYlU2OWwvmfRkkM9AJ3opKFYvcqalGfGoxoTFN50TpKvckYEZWoF7V2cBTA RELwU7042JvABn6vrKMzx7P1LSoQkbnFCUH5cHFiuNxMpWgnTjQOPHiIxa8DaaEfuYJVHHDAGxqS bwgU0nkaRbwasmhEeOo7ja4SIdd08O4pOo/YKMAMu1FeQF2FPBFCKf1ZjPI6pRwyZyTzH/aVh4hg pz/0mP2Ko4roS37SYW73T33SITwUItBD/DSIxbknsTqk2TqrVC/hy8WfDNG2sfbAIURTXWWUcAe9 oqwk7vgLAPXUkYBVKEQGIBMv5dSF/17Em3IBbcy23dY2jI+FEdt2y6oimymvjyhsIyO3WXxhUEik NUOsDLGzE2U3zsNQ1apWl4vAOTvNjNjt6sRy8VWASklLuUI/BO+SvMErjYzMdxoIO1OQK1dWEPYA YQptnK4MqglywdMVYV3bUsVWrYgoOChL+dCUdCqfMSAiGfHdWFxIGlxtvbtDgGnLMFtiJOYOko23 3lROqZAsN2hHoagMYSrhCKSVbhnPHPlbGWmVbTUKOu4k5+PmDpbeYp9uMT9rxlxwXzKwLJ1WhYiL KkalYTfLZi+mG/hjBjlaOINArJxMmv1q9JhApmk6tGqt+nzh8rKmjCgdbY5anTDcKW7hDCBG+n6J SBCU0yscw1FfAmI7GeMX0s14szdjfEIhDsTTZkxeIf1elZnYibv9XqULq7pYFozJJplFVpDRr8pa clS1q/kWdZPPGocDfzf7p0U6I9F5kjRlf+PRMwTPE/TMdwtlOzD4ZGA5w4+ztBkm8ah5vhZbLVlw 17PPdPPTouOCKAHrupjyi+/lJYhl3SA7qgpdTvQwnZLF8HBqWfJchFshbEABPzBx9RAQlb+Pf97H wUVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEX7H2r/BpAsys8AUAAA ------ =_NextPart_000_01BE765B.A6C63540-- From jbb@spyderlab.com Thu Mar 25 05:32:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 00:32:14 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: Okay after I opened my big mouth I had to deliver. :) NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE Here's an example of what this is: This is the try block You suck There was an exception! Yay!

    It was

    It has this to say: I incorporated a suggestion that except should handle to specify the error to trap. Also, will handle any errors by default. This is packaged as a product, is this the best way to distribute this?? Grab it from: ftp://ftp.spyderlab.com:/pub/zope/Try-0.1.0.tar.gz Since I've only been programming Python on and off, hopefully I didn't make any major assumptions about doing things a certain way. Please let me know if I have. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From phil@media-1.ml.uwcm.ac.uk Thu Mar 25 09:17:40 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 25 Mar 1999 09:17:40 -0000 Subject: [Zope] IRC DalNet Channel References: <36F94463.A827A58F@jimihendrix.net> Message-ID: <002c01be76a0$54f9e220$5c773fc1@media1> There is another IRC channel on the EFNET network, #zope. It is 'protected' by an eggdrop bot so there should be little chance of the channel disappearing. It is manned, at the moment at least by, Phil Harris, Fredy Villa and others. There is also a knowledge bot, zoppy, which can answer rudimentary questions about Zope/Apache/Python. We have a small but growing community, join us. See ya there Phil phil@philh.org ----- Original Message ----- From: Ze Octavio To: Sent: Wednesday, March 24, 1999 8:00 PM Subject: [Zope] IRC DalNet Channel > Hello Zopians, > > > Another way to get in touch with Zope questions, just go to > irc.sodre.net (or another server from DalNet) in channel #zope > I will be in the channel and who wants can be operator, just talk > with me. > > Thanxs all > > Ze Octavio > > PS: Questions in spanol an portuguese are welcome too ! > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From wade@okaynetwork.com Thu Mar 25 11:14:27 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Thu, 25 Mar 1999 06:14:27 -0500 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <199903251113.GAA14712@emerald.lightlink.com> > I'm trying to put together an External Method that needs to operate > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > How do I specify an object ID and retrieve the relevant object? sorry to > be obtuse, but I can't find an example anyplace. In the online docs If I have a URL like '/manny/moe/jack', I know that from within the top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. But if the context is jack, how do I specify the top level so I can talk about manny? Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From ags@beehive.de Thu Mar 25 12:27:43 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 25 Mar 1999 13:27:43 +0100 (CET) Subject: [Zope] Problems with Computed Fields Message-ID: Hello, I want to use a computed field to convert the broken umlauts from a database. I added a computed field and tried the following expression: translate(ARTBEZ,maketrans('”„','öüä')) But when i test the expression i get the following result: Test Computed Field Expression: translate(ARTBEZ,maketrans('”„','öüä')) Computed Field Error: (, ) Does anybody have a solution for my problem? Bye, Alex From jim@digicool.com Thu Mar 25 12:38:13 1999 From: jim@digicool.com (Jim Fulton) Date: Thu, 25 Mar 1999 07:38:13 -0500 Subject: [Zope] name of top object in ZDB? References: <199903251113.GAA14712@emerald.lightlink.com> Message-ID: <36FA2E35.9695D94@digicool.com> Wade Leftwich wrote: > > > I'm trying to put together an External Method that needs to operate > > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > > > How do I specify an object ID and retrieve the relevant object? sorry to > > be obtuse, but I can't find an example anyplace. In the online > docs > > If I have a URL like '/manny/moe/jack', I know that from within the > top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > > But if the context is jack, how do I specify the top level so I can > talk about manny? The top-level object is the 'app' attribute in the Main module. Note, however, that this will change in ZODB3. import Main Main.app.manny Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mj@antraciet.nl Thu Mar 25 12:59:32 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 25 Mar 1999 13:59:32 +0100 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903251113.GAA14712@emerald.lightlink.com> References: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <4.1.19990325135759.00a974f0@lisp.atmm.nl> At 12:14 25/03/99 , Wade Leftwich wrote: >> I'm trying to put together an External Method that needs to operate >> on several different objects within the ZDB (a/k/a ZODB, BoboPOS). >> >> How do I specify an object ID and retrieve the relevant object? sorry to >> be obtuse, but I can't find an example anyplace. In the online >docs > >If I have a URL like '/manny/moe/jack', I know that from within the >top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > >But if the context is jack, how do I specify the top level so I can >talk about manny? > From an external method, self is the object the Externel Method is called from. If you have REQUEST passed in, you can access PARENTS[0], which is the top object. From there you can traverse down the hierarchy. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Thu Mar 25 13:21:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 08:21:45 -0500 Subject: [Zope] Longs on the Property page In-Reply-To: Message-ID: I vote for getting rid of the "L" everywhere. It has caused me some problems and extra fmt attributes in my DTML, too. >In the stock Zope 1.10.2 distro, putting a Long in a property causes a >curious error to manifest. When the property page is displayed, the long >is display like 44353L. If the then change any other property and >attempt to save changes, you get a traceback saying that the property >for the long is invalid. You are forced to manually remove the 'L' >before saving changes. > >May I suggest that when the properties are display, if the type is >'long' then the display code >should do something like this: >str(long_value)[:-1] > >This would remove the L before it was ever displayed.... Alternatively, >something in the response code needs to be modified to accept an 'L' at >the end of an integer destined for a property whose type is 'L'. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From Paul@digicool.com Thu Mar 25 14:05:57 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 25 Mar 1999 09:05:57 -0500 Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Jordan wrote: > Okay after I opened my big mouth I had to deliver. :) > > NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE > > Here's an example of what this is: > > > This is the try block > > You suck > > > There was an exception! Yay! >

    It was >

    It has this to say: > > > I incorporated a suggestion that except should handle to specify the error to trap. Also, will > handle any errors by default. Damn, it worked! > This is packaged as a product, is this the best way to > distribute this?? I'll get Amos to add it to the contrib area. Gotta admit, I'm *really* happy to see this. Guess I have to call you Your Most Revered Magnificenous now. Or how about just Tim? :^) --Paul From mjprobst@visi.com Thu Mar 25 14:45:23 1999 From: mjprobst@visi.com (Matthew J. Probst) Date: Thu, 25 Mar 1999 08:45:23 -0600 (CST) Subject: [Zope] Configuration of Apache-authenticated Zope on Apache 1.2.6 Message-ID: Okay, I understand that the "fall-through" authentication to Zope will not work with rewrite rules when Apache 1.2.6 is used. Unfortunately the project I'm starting is being done for a shop that refuses to upgrade to 1.2.6. I have Zope working just fine with Apache authentication; for the needs of my project, this method of authentication works just fine. However, I need to know how to properly set up Zope to run in a virtual domain "container", _and_ to only authenticate parts of the object hierarchy at one time. The idea is that we have a website docs.foobar.net that is a virtual domain on an Apache 1.2.6 server, and we need to authenticate any requests underneath docs.foobar.net/manage so that the world can see the pages but only people in our list can manage. Another simultaneous difficulty is finding the proper way to make this virtual domain automatically start in folder "docs" of Zope's object hierarchy. I've used an Alias to translate docs.foobar.net to docs.foobar.net/cgi-bin/Zope.cgi/docs , and it works fine, but I don't have proper Zen mystical knowledge of Zope to understand the _proper_ ways of doing these things, if such ways exist. I have done a scan of Email archives and most of the documentation on the Zope site, but either I'm dumb as nails or just don't know the proper magic keywords to get the information I need. Zope looks great, I've resisted learning a new language but a killer app makes it worthwhile. From michel@digicool.com Thu Mar 25 15:26:53 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 10:26:53 -0500 Subject: [Zope] Longs on the Property page Message-ID: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> > -----Original Message----- > From: Philip Aylesworth [mailto:zopelist@regalint.com] > Sent: Thursday, March 25, 1999 8:22 AM > To: Shaw, Howard > Cc: Zope List > Subject: Re: [Zope] Longs on the Property page > > > I vote for getting rid of the "L" everywhere. It has caused me some > problems and extra fmt attributes in my DTML, too. > > > >In the stock Zope 1.10.2 distro, putting a Long in a > property causes a > >curious error to manifest. When the property page is > displayed, the long > >is display like 44353L. If the then change any other property and > >attempt to save changes, you get a traceback saying that the property > >for the long is invalid. You are forced to manually remove the 'L' > >before saving changes. > > > >May I suggest that when the properties are display, if the type is > >'long' then the display code > >should do something like this: > >str(long_value)[:-1] > > > >This would remove the L before it was ever displayed.... > Alternatively, > >something in the response code needs to be modified to > accept an 'L' at > >the end of an integer destined for a property whose type is 'L'. > > > Hmm.. Could you please submit this in the Collector? http://www.zope.org/Collector -Michel > > Phil A > > ------------------------------------------ > Philip Aylesworth zopelist@regalint.com > Regal International > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Thu Mar 25 15:33:15 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 10:33:15 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Message-ID: On Thu, 25 Mar 1999, Paul Everitt wrote: > Damn, it worked! I'll take that as a compliment :) > > This is packaged as a product, is this the best way to > > distribute this?? > > I'll get Amos to add it to the contrib area. Cool.. it still needs a bit of tweaking before getting integrated. I'd like to address some of the issues Amos brought up... > Gotta admit, I'm *really* happy to see this. Guess I have to call you > Your Most Revered Magnificenous now. Or how about just Tim? :^) Umm, no. Jordan will do just fine. heh. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From zopelist@regalint.com Thu Mar 25 16:22:58 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 16:22:58 +0000 Subject: [Zope] Longs on the Property page References: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> Message-ID: <36FA62E2.55CE128F@regalint.com> > > >In the stock Zope 1.10.2 distro, putting a Long in a property causes a > > >curious error to manifest. When the property page is displayed, the long > > >is display like 44353L. > > > > I vote for getting rid of the "L" everywhere. It has caused me some > > problems and extra fmt attributes in my DTML, too. > > > > Hmm.. Could you please submit this in the Collector? > > http://www.zope.org/Collector I am not sure how to classify it. The original complaint was about the Properties page. My problem seems to be with values returned from MySQL - even regular integers get an L tacked on the end (This didn't happen with zope 1.9). So is this two seperate collector entries? Where does mine go - Zope, ZSQL Methods, or ZMySQLDA? What do others think? Has this shown up with other SQL DBMSes? One thing I just thought of: I moved my ZMySQLDA over from 1.9 to 1.10.2 without recompiling it. That is when I noticed this problem. Whould something have changed in the python header files or something that would have made it advisable to recompile ZMySQLDA? What did others do? Phil. From michel@digicool.com Thu Mar 25 17:01:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 12:01:36 -0500 Subject: [Zope] The Artist Formerly Known as NotMail Message-ID: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.com> Greetings, For those of you interested in the NotMail project we have some announcements. First, Digital Creations has officialy adopted NotMail as one of it's products. Second, in an attempt to make the products at least *sound* more mature :), we are changing the name. Third, in the last two weeks I have been working pretty hevily on NotMail and it has changed significantly. Therefore: NotMail is, for the interum, called The Artist Formerly Known as NotMail (TAFKAN). We still call it NotMail, but that's just our code word. TAFKAN was once a product, but now it's just a bunch of dtml methods. The actuall imap functionality that TAFKAN needs has been abstracted into another product called IMAPAdapter. IMAPAdapter is very early alpha software. It has several known bugs, and Linus knows how many unknown ones. Your millage may vary. It may light your computer on fire. It might delete all your mail and crash your imap server. It might send insults in your general direction. You get the point. IMAPAdapter is, in Zopespeak, a 'user database'. Other examples of user databases are User Folder, UserDb Folders, and etcUserFolders. IMAPAdapter walks, swims, and quacks (to quote Jim) like any other type of user database. The simplest example of using IMAPAdapter is: Create an empty folder without an 'acl_users' Add an IMAPAdapter (it will automagicly call itself 'acl_users'), telling it where to find it's imap server, what default roles to assign to users, and other misc stuff. Create a DTML Method called index_html containing the following DTML: > () Going to this file will prompt you for a username and password (assuming you've correctly set the permissions and roles). The username and password you enter here must be a valid IMAP login for your imap server. It is *not* necessary to add a Zope user to Zope, IMAPAdapter will try your uid:pwd pair against the IMAP server and validate/deny you based on the sucess or failure of making an IMAP connection. What you will see when you look at this DTML Method is a pretty #tree breakdown of all your imap namespaces, folders and subfolders. IMAPAdapter, like all other user databases, contains a validate() method that Zope calls to authenticate a user. This method returns an imapUser object (which inherits BasicUser, like most other Zope user objects). This user object is what AUTHENTICATED_USER refers to. imapUser exposes the imap API to the DTML programmer. The API is currently a very rough draft, and there are several functions that were in TAFKAN that are missing in IMAPAdapter (like the folder management stuff to add/edit/delete imap folders) At the moment, IMAPAdapter is pretty much read-only on your 'imap space'. Voila! IMAPAdapter is available in public CVS. Web CVS access will be here soon! (yippee!) -Michel From M.Faassen@vet.uu.nl Thu Mar 25 17:59:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 25 Mar 1999 18:59:54 +0100 Subject: [Zope] Announcing FAQ 0.2.3 Message-ID: <36FA799A.40EED15B@pop.vet.uu.nl> Hi there, Though the ZDP FAQ hasn't moved at the relentless pace it did before this week, there's still a new version of the FAQ at zdp.zope.org. It's a fairly minor change, but you might find some things that are useful to you. Of course, if you haven't seen it yet, go rush over! Happy Zoping, Martijn From brianl@real.com Thu Mar 25 19:45:09 1999 From: brianl@real.com (Brian Lenihan) Date: Thu, 25 Mar 1999 11:45:09 -0800 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.co m> Message-ID: <4.2.0.32.19990325114007.044a0e70@prognet.com> At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: >IMAPAdapter is available in public CVS. > >Web CVS access will be here soon! (yippee!) I have a Zope sandbox which I would like to use to play with new features as they become available. Unfortunately, for the past several days my sandbox server has been broken because ExtensionClass/ComputedAttribute.c is missing. Is it missing on purpose? If so, is there a way I can work around it? From jae@kavi.com Thu Mar 25 23:43:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 25 Mar 1999 15:43:05 -0800 (PST) Subject: [Zope] Anonymous after logging in? Message-ID: Hello, I'm having a strange problem with logged in users getting to anonymous areas of the site. Here's an simplified example to explain... Two directories off the / /private /public /private allows no access to "Anonymous User", requiring a login. There are no usernames in /acl_users. All the user info for logging into /private is kept in /private/acl_users. /public has no acl_users folder. If you start up netscape, you can get to /public without any problems. But once you've logged into /private, you can't get back to /public without getting an unauthorized error... You are not authorized to access this resource. Username and password are not correct. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /MCExam) File lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) Any tips about how to fix this. Note that the login info has to stay in /private/acl_users (they can't be moved to /acl_users). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From John Eikenberry Fri Mar 26 00:50:22 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 25 Mar 1999 16:50:22 -0800 (PST) Subject: [Zope] Re: Anonymous after logging in? Message-ID: > I'm having a strange problem with logged in users getting to anonymous > areas of the site. Here's an simplified example to explain... > > Two directories off the / > /private > /public > > /private allows no access to "Anonymous User", requiring a login. > > There are no usernames in /acl_users. All the user info for logging into > /private is kept in /private/acl_users. > > /public has no acl_users folder. > > If you start up netscape, you can get to /public without any problems. > But once you've logged into /private, you can't get back to /public > without getting an unauthorized error... Ok, the problem was that I had the roles defined on the top level folder and the users defined in the subfolder. By moving the roles into the subfolder, the problem went away. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From sroberts@codeit.com Fri Mar 26 02:12:56 1999 From: sroberts@codeit.com (Scott Robertson) Date: Thu, 25 Mar 1999 18:12:56 -0800 (PST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. > What crack are you smoking and do you mind shipping some to CA? --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - --------------------------------------------------- From jbb@spyderlab.com Fri Mar 26 04:59:58 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 23:59:58 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <3.0.5.32.19990325011457.01119900@mail.aracnet.com> Message-ID: On Thu, 25 Mar 1999, Amos Latteier wrote: > At 12:32 AM 3/25/99 -0500, you wrote: > >Okay after I opened my big mouth I had to deliver. :) > > Way to go! This is a great contribution, and I'd love to see it go into the > standard distribution, assuming that you're agreeable to this. Thanks. Yes, please go ahead and use this in the standard distribution with whatever changes you feel are necessary. > I like this, but how about the fact that Python errors are classes, not > strings now? This implementation does not allow things like this: > > > > > i got me a math problem > > > Because this implementation has no notion that ZeroDivisionError is a > subclass of ArithmeticError. I'm not sure how hard it would be to get this > working, but it would be a nice addition. I suspect a matter of resolving. Probably be a two step procedure, 1) try to match the error by string exactly, otherwise 2) evaluate each handler in turn and see if the exception isa class. > Another small nit is that I think that you should use 'error_message' and > 'error_type' like standard_error_message does rather than 'errmsg' and > 'errname'. I have fixed this in 0.1.1 of the Product which is now available from the same directory as the original. I've also made some other additional fixes relating to the default error handler. Here's the file: ftp://ftp.spyderlab.com/pub/zope/Try-0.1.1.tar.gz Feel free to put this up in the contributed area on zope.org ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From raver@box.dust.za.net Fri Mar 26 07:16:46 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 08:16:46 +0100 Subject: [Zope] URL and #tree trouble... Message-ID: <19990326081646.A10042@box.dust.za.net> Hi! A day or two since last question - now two new ones... Q1 My site is organized so that one folder keeps several other files and folders (containing files and folders and so on). Something like: Top [Folder] F1 [Folder] F2 [Folder] F2-file1 F2-file2 F2-folder1 [Folder] F2-folder2 [Folder] F2-folder2-file ... index_html (Top) has F2 index_html (F2) has F21 and Top Starting at URL: localhost/Top is fine and following links to F2 and from there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), but if I, when in F2, press the link to 'Top' something strange? happens: I get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing appended to the URL) What am I dooing wrong? Q2 Recently I got help on using the #tree tag, and apparantly everything worked all rigth, but ... I get the tree-view, can expand the tree pressing either foldernames or the '+' button - fine. But If I press the '+' button I'm not able top directly access the files appearing (404 error, file not found), I have to enter the folder first before I can get the file. This seems strange and I want to know if theres a solution to this. Heres my #tree href part: Help is much appreciated Sture Lygren From mj@antraciet.nl Fri Mar 26 08:38:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 09:38:11 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <19990326081646.A10042@box.dust.za.net> Message-ID: <4.1.19990326092509.00c28100@lisp.atmm.nl> At 08:16 26/03/99 , Raver wrote: >Q1 > [SNIP]... > >index_html (Top) has F2 >index_html (F2) has F21 and Top > >Starting at URL: localhost/Top is fine and following links to F2 and from >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), >but if I, when in F2, press the link to 'Top' something strange? happens: I >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing >appended to the URL) > >What am I dooing wrong? > You're URL is a relative one. The browser sees 'Top', and requests the object Top with the current Base URL, which is localhost/Top/F2/. And because of Aquisition, Top.F2.Top exists.... And so will Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. >Q2 > >Recently I got help on using the #tree tag, and apparantly everything worked >all rigth, but ... > >I get the tree-view, can expand the tree pressing either foldernames or the >'+' button - fine. But If I press the '+' button I'm not able top directly >access the files appearing (404 error, file not found), I have to enter the >folder first before I can get the file. This seems strange and I want to >know if theres a solution to this. > >Heres my #tree href part: > > > >Help is much appreciated Your URL should include the realitve path to the subfolder. the var tree-item-url gives you the URL to the current object, relative to the base object. Your code should read (untested): Or words to that effect.. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Fri Mar 26 08:38:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 26 Mar 1999 08:38:22 -0000 Subject: [Zope] The Artist Formerly Known as NotMail References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: <001801be7764$024a95f0$5c773fc1@media1> Oh good, it's not just me. I also tried the cvs version last night and was getting the same problem, Computed attribute is not an includeable library, or something along those lines 8^). Phil phil@philh.org ----- Original Message ----- From: Brian Lenihan To: Michel Pelletier Cc: Sent: Thursday, March 25, 1999 7:45 PM Subject: Re: [Zope] The Artist Formerly Known as NotMail > At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: > > > >IMAPAdapter is available in public CVS. > > > >Web CVS access will be here soon! (yippee!) > > I have a Zope sandbox which I would like to use to play with new features > as they become available. Unfortunately, for the past several days my > sandbox server has been broken because ExtensionClass/ComputedAttribute.c > is missing. > > Is it missing on purpose? If so, is there a way I can work around it? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd2@earthling.net Fri Mar 26 09:59:33 1999 From: phd2@earthling.net (Oleg Broytmann) Date: Fri, 26 Mar 1999 12:59:33 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323114004.J8268@amber.org> Message-ID: Hello. Continuing the subject... Next question. If Zope opens one connection to a database, how does Zope manage concurrency? Currently, when two CGIs run in parallel, every CGI opens its own connection to the database, lock neccessary tables, and Postgres manage concurrency very good (even detecting deadlocks). Next Postgres version (6,5) will have Multi-version Concurrency Control. But all this is for different sessions. Zope opens only one session. Is it a problem with concurrency? Oleg. ---- Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net Programmers don't die, they just GOSUB without RETURN. From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 10:08:43 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 11:08:43 +0100 Subject: [Zope] Unusual question Message-ID: <3.0.1.32.19990326110843.00908ce0@poirot> Hi, This is (I think) an unusual question on this thread, but I want to ask it. We are at the start of making an intranet, which will contain a database of procedures (how to handle some examinations etc). We want to make it able that people can query this database and get the information they want on there web-browser. A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) would be the solution to this problem. This on a RedHat Linux 5.2 system with Apache as web-server. But now we've seen Zope. I'm wondering..., can Zope do the same things as PHP3? Or is this a complete different application? How stand Zope and PHP3 next to each other? I believe PHP3 is a scripting language... I'm wondering : is Zope also only a scripting language? Or is it more? Is the scripting language (=Python?) more powerfull then Zope) Are there people, using PHP3 next to Zope? ps. Has Zope the capability to easely make these scripts? I mean not text-based , but in a certain IDE or RAD application? Please, say in some simple words what Zope is and for what it can be used... I've read the web-page. But since I'm a stupid person in this field of webservers I can't understand what they are explaining. Thanks in advance. Kind regards, Tom. From panda@skinnyhippo.com Fri Mar 26 10:55:38 1999 From: panda@skinnyhippo.com (chas) Date: Fri, 26 Mar 1999 18:55:38 +0800 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <3.0.5.32.19990326185538.0093de20@mail.skinnyhippo.com> Hi zoppelgangers, I have several applications built 100% with python CGI scripts that I'd like to run on Zope. The reason for this are : a) For the better performance (I was worried about the scalability of CGI for high-availability and knew I had to move to FastCGI or the equivalent) b) I really really like the way Zope takes care of the CGI variable handling (ie. declaring the HTML form fields as arguments in the python method). However, I don't really want to use DTML at all. The reasons is that I find it much harder to read than pure Python. This is just a personal aesthetic thing and no criticism of Zope at all (full kudos to Digicool on an excellent application). It's just coding aesthetic : I like it all kept in Python, like servlets in java (as opposed to CFML, ASP etc). So, I've put all of my CGI scripts in a newly-created extensions directory and registered them via the Zope web-manager. It was, as the documentation says, incredibly simple and it seems to work for simple methods. (I'll declare my own packages later). Now, if I just use External Methods like this (using my own ex-CGI Python scripts to query databases, IMAP etc), am I missing out on any of Zope's main benefits ? In particular, the cache management ? Would I have to turn my stuff into a Zope Product to get these benefits ? (I've not had too much joy with the Product stuff yet) chas From chsrinfo@guetali.fr Fri Mar 26 11:47:52 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 15:47:52 +0400 Subject: [Zope] external methods Message-ID: <000501be777e$83130900$147800a0@pc-pi0> Hello, I'm confused with external methods. Please help. I want an external method to access its context (for the purpose of acquisition, etc.). So I write: def myExtMethod(self): pass Within myExtMethod, I should be able to: - write self.REQUEST to access the current REQUEST object (I need to be able to modify the current REQUEST object with self.REQUEST.set(...)) - or for example self.myzsqlmethod() to call a zsql method object, right??? Let's suppose that myExtMethod is: def myExtMethod(self): l=[] for i in self.l: l.append(i+1) self.REQUEST.set('l', l) Now, how can I call this method from DTML? All don't work. I end up in a traceback. "read only class, buffer" Any hints? Jepthe CLAIN Service Informatique CHSR From mj@antraciet.nl Fri Mar 26 11:54:34 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 12:54:34 +0100 Subject: [Zope] Database connections In-Reply-To: References: <19990323114004.J8268@amber.org> Message-ID: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> At 10:59 26/03/99 , Oleg Broytmann wrote: >Hello. > > Continuing the subject... > Next question. If Zope opens one connection to a database, how does Zope >manage concurrency? > Currently, when two CGIs run in parallel, every CGI opens its own >connection to the database, lock neccessary tables, and Postgres manage >concurrency very good (even detecting deadlocks). Next Postgres version >(6,5) will have Multi-version Concurrency Control. But all this is for >different sessions. Zope opens only one session. Is it a problem with >concurrency? Zope manages concurrency by being single-threaded... so only one query at a time, on ANY connection... -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 26 10:45:17 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 10:45:17 +0000 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <001801be7764$024a95f0$5c773fc1@media1> References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: > Oh good, it's not just me. > > I also tried the cvs version last night and was getting the same problem, > Computed attribute is not an includeable library, or something along those > lines 8^). > > Phil > phil@philh.org I get, 35 % cvs -z7 -q up -P -d ? var/Data.bbb ? var/serve.log ? var/gadfly ? var/Data.bbb.trans M ZopeHTTPServer/ZopeHTTPServer.py cvs [server aborted]: cannot open directory /cvs-repository/Components/GreyThing/webdav: No such file or directory i.e. the same kind of error message....but different. tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From phd@sun.med.ru Fri Mar 26 12:01:44 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:01:44 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Zope manages concurrency by being single-threaded... so only one query at a > time, on ANY connection... What about ZServer? It will be single-threaded too? Isn't it possible to run Zope multithreaded? > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Fri Mar 26 12:06:42 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Fri, 26 Mar 1999 13:06:42 +0100 Subject: [Zope] AW: [Zope] external methods Message-ID: <01E40461E003D21195CC0080296495D80B12F7@gates.cdc-group.com> Hi Jepthe, First, if you want to acces the REQUEST object, you need to declare it as a formal parameter: def myExtMethod(self, REQUEST): ... REQUEST is then passed automatically by Zope's internal magic, which looks up formal parameter names and matches them to arguments from HTML forms, HTTP Headers, etc. The "read only class, buffer" traceback is due to a very annoying bug in ExternalMethod.py and screws up any other error messages in external methods. I can't remember exactly if it was in line 254 or 256 in ExternalMethod.py, but here's the code I use to fix it: ExternalMethod.py, from line 254 if type(error_type) is type('') and lower(error_type) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): error_message=error_value else: error_message='' With that you should get better error messages. Regards, Stefan PS: should be both OK Service Informatique CHSR wrote: > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? > > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" > > Any hints? > > Jepthe CLAIN > Service Informatique CHSR > From eq3pvl@eq.uc.pt Fri Mar 26 12:11:23 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:11:23 +0000 Subject: [Zope] Unusual question References: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: <36FB796B.DF7AD3CC@eq.uc.pt> Tom Deprez wrote: > > Please, say in some simple words what Zope is and for what it can be > used... Tom, There are probably other guys here that can give you a better comparison between zope and php3. I never used php3 but I used ASP (the microsoft stuff), which is similar (though worst than php3 :-). With Zope you get a server markup language (called DTML) which you can mix with HTML. This concept makes it even easier to program than mixing a scripting language with HTML like php3 and asp do. From what you said I guess you will just need this kind of programming... so Zope will be a better choice than php3. But with Zope you also get *the best* scripting language available: Python. You can add logic to your application by writing external methods or products. This kind of extension is much more powerful than php3, although maybe a bit more complex. Zope also has a great IDE for managing your site through the web. Although I cannot tell you which one is better, if you give Zope a run try and, ... if my instinct is correct, you will want no other thing. hope it helps, pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From tony.mcdonald@ncl.ac.uk Fri Mar 26 11:15:52 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 11:15:52 +0000 Subject: [Zope] Unusual question In-Reply-To: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: Tom, I've cc'ed to the list as this may be useful to others... > > We are at the start of making an intranet, which will contain a database of > procedures (how to handle some examinations etc). We want to make it able > that people can query this database and get the information they want on > there web-browser. ie a relatively standard web application > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can Zope do the same > things as PHP3? Or is this a complete different application? How stand Zope > and PHP3 next to each other? I've used PHP3 since it was PHP/FI and done lots of work in it. It's database integration is excellent and the ability to include PHP3 code into an HTML document and have it 'executed' is really neat (I think CGI's are ugly, whereas code in the delivered doc itself is elegant - my opinion, YMMV). I've run PHP on Solaris and Linux, and used a lot of the contributed code. Since I found out about Zope, I've desubscribed myself from the PHP lists and been focussing on Zope almost entirely. I posted a message a while ago 'Tough Questions about Zope' and got some excellent answers, for more details I'd check it out in the archives. > I believe PHP3 is a scripting language... I'm wondering : is Zope also only > a scripting language? Or is it more? Is the scripting language (=Python?) > more powerfull then Zope) PHP3 is a scripting language, and is relatively easy to get started in. I may get a 16-ton weight dropped on me (in joke) but I think that if you're used to scripting languages already, you may get your application up and running faster in PHP3, as Zope scripting ('DTML') requires a bit of a mind-flip. However, once your application gets more complex, I think you'll find that Zope will start to pull ahead of PHP3 and eventually pull very far ahead. The list of things that Zope provides 'out-of-the-box', which are very difficult to do in PHP3 is pretty long; access permissions (at varying levels) at a per-directory and per-'object' level, editing of web pages online, *undo* - yes, undo!, and versions are the things that come to mind initially. There are many others. Obviously, there are some things in PHP3 that are a bit 'unusual' in Zope too (setting variables for instance! :) The scripting language of Zope is Python - I've bought several Python books (personal rec: Internet Programming in Python by Watters, van Rossum and Ahlstrom - top geezers in the Python world) and have found it to be quite a beautiful language. You can't install Python programs 'directly' into your DTML document, but 'External Methods' seem quite easy to write. Once you become familiar with 'Products' and what *they* can do, your jaw *will* drop. > Are there people, using PHP3 next to Zope? This is a question I asked. The upshot is that it's pretty difficult to do in seemless way with current implementations of Apache (ie more or less impossible) but that a later version will do that. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? I would say, yes. I would suggest reading the FAQ, then the documentation, reading the documentation again (especially the DTML and ZSQL documents), read it once more and then if you do decide to try Zope over PHP3, have a go at your application. I think that it's highly likely that you will be able to get by with just some DTML and a database connection. I'm not knocking the documentation here - the DigiCool guys (and gals?) have relatively recently embraced the open-source concept and seem to be doing 10 things at once. > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person in this field > of webservers I can't understand what they are explaining. I don't think you're stupid at all! :) There are some new and unusual concepts in Zope that many people will not be familiar with (particularly if you're coming from a 'traditional' web-publishing environment). If it helps, I've been in contact with several other people, both here in the UK and elsewhere who are *extremely* excited about what Zope is and what it can do. > Thanks in advance. > Kind regards, Tom. You're welcome - I got a lot of help starting out, just trying to pass it along... :) tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From eq3pvl@eq.uc.pt Fri Mar 26 12:24:44 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:24:44 +0000 Subject: [Zope] external methods References: <000501be777e$83130900$147800a0@pc-pi0> Message-ID: <36FB7C8C.27BE4D44@eq.uc.pt> Service Informatique CHSR wrote: > > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? yes, I guess your are right. > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) Maybe It's self.l that causes the error. It's hard to understand what you want, but I feel it should be for i in l > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" Maybe I can help you with this. The traceback you get is probably the standard error raise in ExternalMethods. To debug external methods I use try/except/raise code blocks and when I get an exception I return it to the screen. Something like this def mymethod(self): try: mycode except: import sys return sys.exc_type, sys.exc_value return something pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Fri Mar 26 12:43:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 13:43:11 +0100 Subject: [Zope] Database connections In-Reply-To: References: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> At 13:01 26/03/99 , Oleg Broytmann wrote: >On Fri, 26 Mar 1999, Martijn Pieters wrote: >> Zope manages concurrency by being single-threaded... so only one query at a >> time, on ANY connection... > > What about ZServer? It will be single-threaded too? Isn't it possible to >run Zope multithreaded? > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because the BoboPOS (cuurent version 2) doesn't support concurrent access. The all new ZODB 3 will support this, and then Zope can (will?) become multithreaded as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Fri Mar 26 12:47:37 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:47:37 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because > the BoboPOS (cuurent version 2) doesn't support concurrent access. The all > new ZODB 3 will support this, and then Zope can (will?) become > multithreaded as well. So I have some time before I'll see problems with concurrent access to SQL server! :) > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From webman@beehive.de Fri Mar 26 13:07:14 1999 From: webman@beehive.de (WWW Admin) Date: Fri, 26 Mar 1999 14:07:14 +0100 (CET) Subject: [Zope] dtml: string to atoi? Message-ID: hi, anybody know whether i convert a string to integer (atoi) via a dtml tag? regards, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From chsrinfo@guetali.fr Fri Mar 26 13:15:53 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 17:15:53 +0400 Subject: [Zope] external methods Message-ID: <000401be778a$e630c2a0$147800a0@pc-pi0> Ok, I'm dumb. After some digging, I found that the problem lies in the expression 'self.l' 'self.' gives access to the object hierarchy, not the variables namespace. So, I solved my problem by writing 'self.REQUEST['l']' instead of 'self.l' Also, I think that this should be clearly documented. Apparently, the only way to acess variables namespaces in external methods is through self.REQUEST This confuses a 'normal' python user whose variable namespace is usually accessed through self. Can someone confirm (or infirm?) this? >Hello, > >I'm confused with external methods. Please help. > >I want an external method to access its context (for the >purpose of acquisition, etc.). So I write: > >def myExtMethod(self): > pass > >Within myExtMethod, I should be able to: >- write self.REQUEST to access the current REQUEST object (I >need to be able to modify the current REQUEST object with >self.REQUEST.set(...)) >- or for example self.myzsqlmethod() to call a zsql method object, >right??? > >Let's suppose that myExtMethod is: > >def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > >Now, how can I call this method from DTML? > > > > > >All don't work. I end up in a traceback. "read only class, buffer" > >Any hints? Regards, Jephte CLAIN, Service Informatique PS: I have been looking for an explanation of the problem for two weeks, until I wrote to the mailing list, and voila! I found the cause of the problem myself :-) One can never be better served than by oneself... From gilles.lavaux@esrin.esa.it Fri Mar 26 13:19:00 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Fri, 26 Mar 1999 14:19:00 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <01be778b$35fa2ce0$fce3ccc1@asgard.esrin.esa.it> Hello This workd for me: Another things I have already asked: how to do the same assigment on a date with a formating(to get only the year for ex.): ???????? Thanks for any help. Gilles lavaux -----Original Message----- From: WWW Admin To: zope@zope.org Date: Friday, March 26, 1999 4:15 PM Subject: [Zope] dtml: string to atoi? >hi, > >anybody know whether i convert a string to integer (atoi) via a dtml >tag? > >regards, > >webman > >--------------------------------------------------------------------------- >webman | _ >beehive GmbH | ASCII ribbon campaign ( ) >berlin, Germany | - against HTML email X >http://www.beehive.de | & vcards / \ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From hoekstra@fswrul.fsw.leidenuniv.nl Fri Mar 26 13:19:26 1999 From: hoekstra@fswrul.fsw.leidenuniv.nl (Rik Hoekstra) Date: Fri, 26 Mar 1999 14:19:26 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <000401be778b$458ed2a0$154ae584@bibf12> -----Original Message----- From: Rik Hoekstra [mailto:fghoekstra@cit10.wsd.leidenuniv.nl] Sent: vrijdag 26 maart 1999 14:17 To: WWW Admin Subject: RE: [Zope] dtml: string to atoi? > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of WWW > Admin > Sent: vrijdag 26 maart 1999 14:07 > To: zope@zope.org > Subject: [Zope] dtml: string to atoi? > > > hi, > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > try: Rik Hoekstra From WWW Admin Fri Mar 26 13:29:00 1999 From: WWW Admin (WWW Admin) Date: Fri, 26 Mar 1999 14:29:00 +0100 (CET) Subject: [Zope] 7 minute response time! thank you rik and gilles Message-ID: hi, a big thank you to gilles and rik for answering my dtml string to atoi question. never been on a mailinglist that had a 7 minute question- to-response time! cheers, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From Paul@digicool.com Fri Mar 26 13:44:12 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 26 Mar 1999 08:44:12 -0500 Subject: [Zope] external methods Message-ID: <613145F79272D211914B0020AFF6401907BBC1@gandalf.digicool.com> > After some digging, I found that the problem lies in > the expression 'self.l' > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > in external methods is through self.REQUEST > This confuses a 'normal' python user whose variable > namespace is usually accessed through self. I believe that you can just ask for it in your function signature: def my_method(self,l): return l + ' is cool!' --Paul From raver@box.dust.za.net Fri Mar 26 13:55:42 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 14:55:42 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <4.1.19990326092509.00c28100@lisp.atmm.nl>; from Martijn Pieters on Fri, Mar 26, 1999 at 09:38:11AM +0100 References: <19990326081646.A10042@box.dust.za.net> <4.1.19990326092509.00c28100@lisp.atmm.nl> Message-ID: <19990326145542.A11439@box.dust.za.net> On Fri, Mar 26, 1999 at 09:38:11AM +0100, Martijn Pieters wrote: > At 08:16 26/03/99 , Raver wrote: > >Q1 > > > [SNIP]... > > > >index_html (Top) has F2 > >index_html (F2) has F21 and Top > > > >Starting at URL: localhost/Top is fine and following links to F2 and from > >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), > >but if I, when in F2, press the link to 'Top' something strange? happens: I > >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing > >appended to the URL) > > > >What am I dooing wrong? > > > > You're URL is a relative one. The browser sees 'Top', and requests the > object Top with the current Base URL, which is localhost/Top/F2/. And > because of Aquisition, Top.F2.Top exists.... And so will > Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. > > > >Q2 > > > >Recently I got help on using the #tree tag, and apparantly everything worked > >all rigth, but ... > > > >I get the tree-view, can expand the tree pressing either foldernames or the > >'+' button - fine. But If I press the '+' button I'm not able top directly > >access the files appearing (404 error, file not found), I have to enter the > >folder first before I can get the file. This seems strange and I want to > >know if theres a solution to this. > > > >Heres my #tree href part: > > > > > > > >Help is much appreciated > > Your URL should include the realitve path to the subfolder. the var > tree-item-url gives you the URL to the current object, relative to the base > object. > > Your code should read (untested): > > > Or words to that effect.. > did the trick! Thanks! > > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From zopelist@regalint.com Fri Mar 26 14:11:38 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 26 Mar 1999 14:11:38 +0000 Subject: [Zope] dtml: string to atoi? References: Message-ID: <36FB959A.7907C2CF@regalint.com> > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > Pg 9 of DTML ref. Use something like " Phil. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 26 14:28:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 26 Mar 1999 09:28:51 -0500 (EST) Subject: [Zope] external methods In-Reply-To: <000401be778a$e630c2a0$147800a0@pc-pi0> Message-ID: On Fri, 26 Mar 1999, Service Informatique CHSR wrote: > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > Jephte In your external method l is a local variable. You can access it by simply referencing it. something like def spammethod: l=[] for i in [1,2]: l.append(i) return l Pavlos From michel@digicool.com Fri Mar 26 14:43:11 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:43:11 -0500 Subject: [Zope] Unusual question Message-ID: <613145F79272D211914B0020AFF6401907BBC2@gandalf.digicool.com> > -----Original Message----- > From: Tom Deprez [mailto:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Friday, March 26, 1999 5:09 AM > To: zope@zope.org > Subject: [Zope] Unusual question > > > Hi, > > This is (I think) an unusual question on this thread, but I > want to ask it. > > We are at the start of making an intranet, which will contain > a database of > procedures (how to handle some examinations etc). We want to > make it able > that people can query this database and get the information > they want on > there web-browser. > cool. > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux > 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can > Zope do the same > things as PHP3? It can do the same thing, and more. This isn't a hack on PHP3, but Zope has many more components and widgets out of the box. It's also object oriented, which helps when your components scales, or when you want your application to suddenly be stitched into four other application six months from now that you didn't forsee. >Or is this a complete different application? PHP has it's niche. Tony 'tone' McDonald mentioned that he thought code inside HTML is elegant, and it is, but it's even more elegent when that code is for the layout of your user interface only. Mixing application code with HTML, or worse yet, making your entire HTML document one huge script, is not so elegent. > How stand Zope > and PHP3 next to each other? > > I believe PHP3 is a scripting language... I'm wondering : is > Zope also only > a scripting language? Or is it more? Is the scripting > language (=Python?) > more powerfull then Zope) Zope is an Application written in a scripting language (Python) that is based on several components also written in Python and C. One of the components of Zope is Document Templates (DTML) which is also a scripting language. It's a bit complex, much more so than PHP's underlying system. Tony also mentioned that PHPs database itegration is excellent, and I'd like to add that Zope's is also top notch. A particular nice thing about Zope is it's database abstraction layer, what we call Database Adapters. You can write program for any SQL server and just change the DA when you change databases. Or your app could use two databases transparently; the DTML programmer wouldn't need to know which database is being queried, it would just be a case of calling the write SQL methods. This also give some compartmentalization. Your Python expert writes your external methods, your SQL expert manages DAs and writes ZSQL Methods, and your DTML/user interface expert uses all of these methods to layout the application. > > Are there people, using PHP3 next to Zope? > Comming soon. The problem is (rumor has it) that Apache sends Zopes output directly back to the browser, not giving it a change to run through any other handlers, like the PHP one. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? > There is a web based interface. The (IMO) ultimate programmer interface is emacs, which can use Zope with FTP (if your using ZServer). > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person > in this field > of webservers I can't understand what they are explaining. > Whew. Zope is a web application platform. It is a framework for writing applications over the web. It is more than this, because it supports more protocols than HTTP, but for your purposes you can call it a web app platform. Zope provides you with a standard set of services that your application can build on. Services include DTML, trasparent persistence of your data, interface to databases, a management interface for developing and managing your application, and a whole slew of out of the box objects for you to use (like documents, files, methods, DAs, mail transport, etc...) Many people have mentioned Python in responses to your question. Python is an incredible language, but I think the application you described can be done easily in Zope with no Python at all. All you need is DTML, some ZSQL Methods, and a good design and your done. -Michel > Thanks in advance. > > Kind regards, Tom. > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Fri Mar 26 14:49:47 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:49:47 -0500 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <613145F79272D211914B0020AFF6401907BBC3@gandalf.digicool.com> > -----Original Message----- > From: chas [mailto:panda@skinnyhippo.com] > Sent: Friday, March 26, 1999 5:56 AM > To: zope@zope.org > Subject: [Zope] Limitations of just using External Methods ? > > > Hi zoppelgangers, > Ha! I like this, are you by change a Peak Freak? > I have several applications built 100% with python CGI > scripts that I'd like to run on Zope. The reason for > this are : > a) For the better performance (I was worried about > the scalability of CGI for high-availability and > knew I had to move to FastCGI or the equivalent) > b) I really really like the way Zope takes care of > the CGI variable handling (ie. declaring the > HTML form fields as arguments in the python method). > > However, I don't really want to use DTML at all. > The reasons is that I find it much harder to read > than pure Python. This is just a personal aesthetic > thing and no criticism of Zope at all (full kudos to > Digicool on an excellent application). It's just > coding aesthetic : I like it all kept in Python, > like servlets in java (as opposed to CFML, ASP etc). > > So, I've put all of my CGI scripts in a newly-created > extensions directory and registered them via the > Zope web-manager. It was, as the documentation says, > incredibly simple and it seems to work for simple > methods. (I'll declare my own packages later). > > Now, if I just use External Methods like this (using my > own ex-CGI Python scripts to query databases, IMAP etc), > am I missing out on any of Zope's main benefits ? > In particular, the cache management ? > Would I have to turn my stuff into a Zope Product to > get these benefits ? (I've not had too much joy with > the Product stuff yet) > These 'benefits' you feel you might be missing out on you might not need. One of Zope's best features is the fact that you can just use the components you want. In fact, it sounds like you may just need ZPublisher by itself. If you go to our site and look at the Components section you'll see where you can download it. ZPublisher is just the ORB part of Zope, it traverses your python module and calls your methods based on the URL. Now, you can still USE Zope with these application you write. Even if you write a pure ZPublisher application, you can then plug that application right into Zope with the External Objects product available in the contributed area. -Michel > chas > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From daren@partners-dsi.com Fri Mar 26 16:22:39 1999 From: daren@partners-dsi.com (Daren Sefcik) Date: Fri, 26 Mar 1999 08:22:39 -0800 (PST) Subject: [Zope] ZMySQLDA Problem Message-ID: <199903261622.IAA23532@partners.partners-dsi.com> I am trying to use the ZMySQL component on a Solaris 251 machine, I have Pyhton 151 installed from sources and MySQL 3.22.16 from sources. Zope,Python and MySQL all work fine and the ZMySQL module compiled fine but when I try to "import" it from python I get the following error: Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umodd i3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 I also tried it from a FreeBSD machine with pretty much the same result. Any ideas.???? TIA Daren From tony.mcdonald@ncl.ac.uk Fri Mar 26 15:55:09 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 15:55:09 +0000 Subject: [Zope] Anyone using '-roman' in next-sequence tags? Message-ID: Hi all, just thought I'd check my sanity here... the way to get roman numerals showing up as the label on a batch object is : (Previous results) isn't it? - I get a NameError, with the following traceback ('sub' is nowhere in my document btw) .... cheers tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 19:03:38 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 20:03:38 +0100 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990326200338.009363e0@poirot> Hi, Thanks to all the reply I got for my question PHP3 or Zope. I'm wanting to give it a try, but .... I've RedHat 5.2 installed with running Apache I'm trying to install Zope, but am expiering some problems : I've downloaded the binary and installed it into /usr/local/dc/Zope-1.10.2 installed it with ./install -sAdmin:Admin the var directory of Zope is permissioned for nobody (done by Zope) As in the manual, Zope created access with Admin:Admin, but it says login with Zope:Admin copied the Zope.cgi to the directory /home/httpd/cgi-bin I want to use it with Apache so I had something to change in the conf file of Apache... Apache has 3 conf files. At the moment it is written in all 3 of the files (because none of them work!). This is the piece of script I've written : (from WEBSERVER.txt) #Zope configuration maps /Zopz/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] When trying to browse to http://localhost/cgi-bin/manage I get the password dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... What am I doing wrong????? -------------------------------------- Now try to use ZopeHTTPServer I can't find anywhere the file serve.sh BUT I tried to start it with start then going to webbrowser http://localhost:9673/manage I get a message of DNS problem etc... So not even a question of password... ---------------- Can somebody tell me what I've done wrong? I want to get it to work with Apache... What do I've to do? Thanks in advance, Tom. From eq3nmf@eq.uc.pt Fri Mar 26 19:31:40 1999 From: eq3nmf@eq.uc.pt (Nuno Maltez) Date: Fri, 26 Mar 1999 19:31:40 +0000 Subject: [Zope] Possible bug in Zope References: Message-ID: <36FBE09C.A209B3FE@eq.uc.pt> Hi, I noticed that if you're browsing two different Zope sites using the same Netscape, the management tree on the second one is incorrectly displayed (the COLSPAN is increased by two). Has anyone noticed this before? regards, Nuno From ShawH@STHS.org Fri Mar 26 21:10:53 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Fri, 26 Mar 1999 15:10:53 -0600 Subject: [Zope] ANNOUNCE: Counter1.0 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_000_01BE77CD.21DA8700 Content-Type: text/plain Ok, I've updated the package to remove the bug that killed it after the first shutdown/cache loss. The _v_ technique certainly served to prevent the saving of the variable, so when the system came back up, before I use the _v_ variable I was testing it to make sure it was higher than the stored value. I added a test to make certain that it exists... Is there a way to register a function (or some __func__) that gets called the the instance is reloaded? It seems fairly stable now, so I'm calling this 1.0. Please send bug reports to shawh@sths.org. BTW, has anyone actually tested this other than me? I thought from the comments I had read on the list that there were a fair number of people who were perturbed at the lack of a counter in Zope. Was I wrong? Am I flogging a dead horse here? <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE77CD.21DA8700 Content-Type: application/octet-stream; name="Counter1.0.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter1.0.tar.gz" Content-Description: Counter1.0.tar H4sIAKn4+zYAA+w8S3AbR3YNgKQIiPpYWvmzXm/a1LoAriGQ4Ae0uQRtWR+LG4vSipTtJVfBDjFN YKTBDDw9EJe2VKjEvuSwp1QOqb2lctikUqmtyjUHX1I5+55Kcsklh6QqN582773u+QHgxyQl72Y5 ssmentev33v9fv2jbW1Otnf8putM3vVcs1P35eQ1t+P4wptkx/Tw2an5+TnOOD5TPb/1C69U5ivz 87PT0zOcl2dn5iuMzx0XAXs9HekbHufMc11/L7j9vv+ePvYe419Xv6+aZsn0W/ah+yhPTVVmZ3cd /+nZ8pwa/+n5yuzULIz//OzsDONTx8jnrs8f+PgvNmFkl3KcLzaFYS4t+pZviyUYcq61YHFSVS1O EgBCbrrmDt9s1F3b9arjl2/SM46fcjiei83pJAJ4pw/q65brtbhR9y3XqY63DMdoiJphmhp6nLcE aKNZHb97Z3VtXDWEVr6xaQteF7Yt20bdchrV8Wn4ms1lF30PfiNIkxu21QCsH9y4uTbOH+u3tTt3 x5eWTWCkqQHNPQBzPPYsWk6743N/py3g842PAdgxWlC2zHEurU+hNDeVaAO9gJCy8Mv7BtQtitbS Gop5cRJKx0opjd5BiP0mtF5rivojvnyXX5bccExuWvKTDgBt7XBPtIXhy3eOn5M6dlqz2jLGDeLp QHFHyOPhbKXT2hQed7eAO8l9F/hpCax6Bgw5ndYu7JTnjoebW+42BxPb4U3Ll3xTgO0JLo3HYD/I m98U3DTAtAwpngF/257lg237AxicOaAimkv6k37Z9JYS3a3ef+/28lqIFtzO+FICGfkdLKP/UK+L k+iCyJNNoitbyoGLIi/4bTvjb+HZK/7XapZj+bVaqb1zpD72if98vlIO4n+5XMH4X5mrTJ/E/+fx 1GqmW6/VeJXn83k98Nw3GhyH3gKb/9TASA0fc7ktz23x5RYE7JsWBGOr1XY9P6rI5XSNRtPzumY0 cjkI7kYNTVdWC2SMn+XRV+QXeNB5vkj1eZUh4Ie+HOEmmG+eoJ4q4AlCDFmDrH6mWg9usxDQUkp+ KO7SaGCD3FOey9VqRr3WFl7LkhLIlLWa5qeQj6U+UuaLUBPhvevaNlFS7KnMT0wUdftrTcNpiBAF Ygg+Ip+WrNcCLushmeEgFILKUsPayhcbtrtp2DLE8LTXx+1l/wHvRzT//ex/vjw7red/lcrM3Dza /+z8/In9P49H2+jV+icdS1pocrmwqi6kvOY6vufaQeWdm6vKDbyvFCtwArfWbn+A6lfkt6ER6OJ1 8B1uo8jvggpb0heOr9pdd+udFrytiVbbNnxRur5Wu+9bdoDoh7uDrfoe5i0aUL3lcnXbkDKwFmWD MWZKy9Deqlu+Uv+ImqKGjPFYuufagn7cJtv0FAywXFqFTm2x7ItWCX8oY1xQRphXrkhToCrBByCp BtfGyC2QlON3gKbHopQjmDWXd6SIYIp8x+1wRwgTUzPwC/AJHbHO09pAEUFsG45PNdSOUCF8G9Ju 6McphbIjx80h1wFo6L9uOJABwnsHEnbLIRSRawYjV/Mz6Xa8OoDBYGpCr3nChPRxgX8E+RzIjm/u cEgsDQ/8nA1cQSerTWObLy8vJ/JC/h6klSaHz3XXFNjKl4bnGO8Kx7Tqrleqw0AXrhk2vBuahokk hjXwhY8oDf+x1eI3OzZ0BjrVtGyrza/u2EJugy40aQ5y26o3DWHDGNu28C1w1AlUKAfDkduClKi1 wz/pCIkSwpFBUVstYe8Qpqaw21sdGzNnB9xfLhxnKmC8wnAZOF9VCww51Tx55971Ew0Rhr5qGOr0 BxUJ3DZRA3Ek+1neNjaFnV/Ig0+GKAPcQBwIQ2IQO1qG5eQhBMbgV0W9A6O0MwDaIF3PP81lJ1S/ A2NYtpD/0BLbmihUIy7rnhAOEBBGMkimZRTCiAwMMNkweMWwxpppCopJ2DDuh3CoboC+boNGwwTJ BouFV8upe0RQ2GACmmhTDZEi8YiqIWJw+EkzbYotYFwKH9w+TE5qBSnsrSK9aIMmI/Cnq1QX1lhb vAC1paYha4/ETiEPbqBdoxEG3hdwgoLIbWy6Ef/4IJeNvE5pUNfTE9k4bSrnVh8tsxrqWZFm8rH3 cD5cze+gfujpZDVfnssXg7lXNT8zl0f6EF/JMkFzLVO/EUKooN+6LnBYVT4VtKEBgIqNBwFM0DFU RkQoKjSIpgUABEzNCvp1Qn8NiAs+B+/B99rjWiRBIiZOW8JqUPmqQfQJk58bpEFR8hPJN65UJGOU zfj4+DWsl+QUiV1aAMDlje0m+BX03x2pPLOwrZblwAgGSx3QOiGqKggq7C+m0mpISdjR2AWjFg5Y MQgH92785P6N1bXqiusITSRiiVw/6AB49abhgaWDVwNnVo/RorQlMbThUO09aNW9hqw6cMA0Peqj ftllMKuJocyCXWlGUcaO63PkV9uTJ/yO5yRTCnBRWW0JOMrChAlDNttSINX8ooRQ7jSW3pCLk7rI wWYh8kHgEtSglOdvcG0O2FY5SnTppcm4S4NPMcUJHEpcaaAuPhxqFYKGAN0FMgNdG77vqaHP94hC OY6DSAl0Dv3PAMDFOOBB0Wm5DoKMuaKkw1Us8JapeQ+/xiXwu897wp8nrCLm/gmgXW2ZG3mtnPkH WLx9Z+1G7er16/fAqydhtYuMeYEkAEizjXmG+pbsKdL0RLWwpegHDLvShTf5htV+0A8G7EFeVVBQ E3yJxy18oh/vIOQbC1fKD5Ql4hN3cZrHvUy8p/LNstKMgSN5JTGSAbWhlwmHdq8OcrnkpL4/KkBW ngwKqOVRoyDk7u+ie1wzCgdDiCcwKkRJv0GJNkR7G6Y3Pg2/LyGR99Bqbrq2qfVxDQzI8BqUtPM8 UpHn2xY0gnR9k9L1cA4Qa1oK+lUWG4gmYOYAfKhkW8kS0pI7mw9F3ceGoQfXqjTYQ8e9SMxvakeh 20z8IS6q/h49B9j/xTB7pA3gfdZ/Zmbm9f7vzNRsZaaM+7+V2amT9Z/n8Qze/8UhP+wG8OLrV65c fgwyjU0Wr1xZyoV7w0nk+28OY9b2rLaFn+PGa7BHFcqHAEAye+yEhbXBVlbwerwbtHHMz3aflpiH iBLCAP8wA6FqTHjg1XHpbdLaGiyb2NuRRHSgnd7jlczuG76hUmiQZ8v6IbeFj1cYe+wOh9IIYA4g Dn4Ua+l4lFjdChzTs7ON4JTL7jyPhzPNifFnzPd1PcjHyHjARZDYX9mf/MNv92MkOdnvP9JzgPwP dxKP1Md++//lIP+brkzPzc7h/l9lunyS/z2P5/3lm2+9bZxn59lf/5b9Fh7Gvvzyy7t37zIqKKDX vx5KMTbMiviCsO9m3vt44V//4Tdj7z769Z99+dM3v/73kbe+95d//to/n/nq+r0/bZem2p1//MH/ /NPff/W3XxXGs7n7v/6P//5o7N+8v/jVmX8pLpfvX66k/+vTi+xH3x7bJ49+DrD/r3bmjtDHPvZf qZTng/nf9ExlGh1CuXyy//9cnuewKQ/6E66RxbfKcXd7QU8LMW0Ils02DK8hH0SZw4baGTVs7uuO aUP5QdRysq43kcN55j14FZ6MFuNKtMo2GFOwNS5+IeodX5i0VyyMelMthVsNtXgXX+mnpT3cU7dt gN+2INWS4rHwAHVHCtw8hiTIwhxE6v3jD4N3zbJCW7Ag7dyYuvL2g4kFXQUJONACEzYgcEeYCrrt SoIFKCjS0QacuVCLIkcV9unAgc89q9H0iT6iFWttseWr1UJkgQBarvQDziSirFbLmtAty5MhYcUy ElbGRUBiXyfKYUvaLwP0iK9IS9Z8SuO5qlc0A4YD0RUkKQmgpZ10dysu2GK4zWa7dRyf2CkF7tIC ZSnYoDA6NtEQ7ojqjiUd1gj64bTDxfOOm4cuocxbwnAkN10n79P2YyfoJ1CK/h4QhcYe7XsM7MAU Pu59OwJ3DgVg9RJ6g8u6hAaGOMSEGtQUDlci9Uh1hbknFTd+YSCTC6TVasT8bZcbMI+zTEBpgWYW FVNNy4P5v2i5DtAL3NFOJordSAyLPmrSEI7w1DJ2wzPaTUQUo57OWoChACZug50GnYO+ETawe60d pQGWHaxRAxF+LZohaBuOZgwHa6kHuuq4AQ6ceFDnx4E0Gh/VQy6a4IA1jCu+wVEo4xmP/NWi1Wpw 6dWr45NahDKgQ0720blpNUzMsMfjHeilkEMhVNLvxaiWU+Ius0cyv2OnfMiD9R/06T3Fk0T0DY/0 hHsnfUd6yELBAz3Co2GW0zEU1iovTOx2VEPBx7fWfERbxJ0dCS5aBLvMCm5jKtq0ox2UCECXSgow CYXIAKRteFLU4KfRkgXVQaDM+Xwx0GEsRkqcz0/kksh6jlc0BISRRq0QnTCJJDLRQ6xysb0NVTW2 Q1c1kTxdEDnO3mbhl3wx2TC++U6gStJKrlAPzjsmb7DKUEbhOR2E7dnujO9bIewGwkSj0b/vqhuo DvtPBAQ7h3pvPBiIlrkRl/KDcMMscYwFESmPX3NoQTLEVQyiOziYonKzMUYcWUWycdVbqCYJklWA rmoUiU+YSlQJaaJa+bOq+p34MhHX1ZZZqrU7sllYxo1Npy6uW3W/4EjiPqZgvreTFCJ2qhlVil2I qz01D+G3LMjR7B4E1LPbLpST3qMNmWZYEQxtLjtYuDI+UqEoq4E6BsMJn0vRKlwIiJ6+HCMSBFWd igyjqk+C4rPdxBPyBWdpqkf5aECq4E8LDn+Dl6eSzDhVZ7I8lagKTlM4fIn3IovIKCdlrThK6tVg jXpT9ipHFf5/s9wv0h6JDpJkeKgitOgeggcJuueYSVwPQnzKsexix75XsF2nUdh7FCcm1HGGoPWu Zt4vOklEEWythik/3ZdQILncZb6s9/jjiR6mU+qogb2Ty6l5EYZCCECm3Aj96gNAFE2Tcs9/RfKA 93/qR+kD5/+V3ef/5emZmeD8/+xMGfd/K/Mn93+fz/NXK2dyvvd1hQZ4GP6Xfwc/uvBfipmMrUMh wx6lmJ1iqe4we5Rm62nWHWGPMmw9w7qjrMnYkJliaTPNFofMDBSG2OJWiq0Pse5Z+irSzBqG+gwA YHkEysNscf0U615k5ggzTzFzlG2l8T8zy7aYLq+Psu7LCgPQkmMiyz5n7PM0ND8NzXPMHGOrhTNI 83fhR2xVoefykjwVfZZDUKbIeQkKA68JyRH4ovag5QuDgCT2mbjmIy8k4IJrPvJsX7U8h7Qkr/jI 01AXW2wnevX7SgE/Uo2+qiWzUA7v+yR4y0Vl8Cb0Gl24ImJ6OM0lqgiXvkhFHPWfECcQfYRKorrQ ifcCKo8sw4/JptsSk58a7ckDOhaZglbvpBhRN5bOpbOpbPr7I68Pvz78rFX/5GEHvf91JPe/j/8v T09NTfX6/8rM3In/fx4P+v/f/DLu/3/FAv//SPn/NPr/9RQFAuX+h9D920PMHmb2iIoLp5g9CiUI DFlm56A0iuFDMGadZmKEgQe3xph1hmEAOMusc2xriEHY+IKhT//p+nnWbTEBVWkmXtBufv0C67pM QIzIsC+Agu8wCC2rBSIy5vWIcogpTF4EX6L6RbJfZd3XsAuk/I8QMVL+OiLDwHVZBa4hFYuGTAxK p9giVY4GlVlVibEIolkBgxCEHoDVwWqM4lWKymeYeZaZ55h5nm1lmPkC1UPhAjMvahhgeX2YdSeZ +R1kfH2EdeeQQvzvRWa+xMyXmXmJfTHMMDa+wwTw8koU9iDida8y87vU9jTr3mACCHiVZHOGddeY +T36dJZ115n5GpXPsXurhe+jxP4ThBNffT+5qBY9/68uqsWzB5XkDLqU1pc3RDfNKK7ThTJKTGJH e+OZ0SgUg9tmlBAlLnnJl6Bml4tkcax4OJBSjf6LY5QR9GRKsZY01GPIauxGjzwPFb0XxYhVfU+M 0j+ki3iOJov1NMvQP3kd3d8k606xJyn2FFxGmT0Bn5VGK/08xdyz4NumsQreqw5mxTPMzzBriD1h WA2GmgIPtFpIA6IV6iY6pV5AAZJ86Q6YzFBpmijUK1ZqMMIbY8Ri/NYYcYBz1AI1Dt4GIMXwebB8 LAr0fd1NMhrpTCqbupg6m6qPkKsFOT1BOc2xbgXlBC81eJ1HAWAZxPYWCgjL4GzfZg1GZfCiC+xJ Br3xQwUJ/vBHzB9hT4ZQulgDrm+RaoaDGpgHVLFgZeg1y0i+yOaKhc6fON4RsoCikyh3y0wKho5a JgwDB0LrDObT4XlEaoe7QgStT+ORCIKzaJTB99w9UOMadqlJiHpOdrEr5kON2CiNmEqo5xhZQCY1 pv9doH+BgIiw8hz9mpmLTzvwJFUdlFmN7Ys4tldZ9z3WvRYMHYUppdUSD24c4cLcisISiisai0Iq 8eHQGhz3CVcVwkwqk6qfYvgPOPwb5PAG695k3fdjCnxLG/bDUI2X0bhBY7UqggL/mGpCdQUF/mOq CdUVwvoHpK4jgT7fZk9GmJ9lD7PMzYPHWGF+Dm0AchHIQCDXeEJ50otqMvw5y6yiY4E8ZLWAmiPH USf3vfsXjnKkdyhZdUtOz+3olpz8AZQPclEu7u/RxSfux60UxgJnpjoLh+2bGlTcLgcYF33X10kI G94/IXoSFwO11RVO9bnFb2SDcWLiHR9KF3vi1Q1GsQ5VMTDNC6lzqfOpyPSqqJhrrHufdT8ktSCd gvDzkDH3IujOR/pd2SQFoI814GpkoZdUdOu/nbjSEzZ2k3fg2I7BIEdjkXYtCCeZ1IsQUCDsDim+ RzB3X2fdDdb92UC+H/Tz/Sc6KLifw0sNzRgE8ArY1SsYt3+ubfApBCCDAlOGPRxh7mkA3kTTW3Vu QdHEevjaSLGXEFQw/1Rk8NYoezjE3AsAuEWBa4id5gBG/TeoKVk8vVuacAB6SZHZfZjg5WX8lSWM yNKj6CO4GjL5TDDBuRRPZOLDmFDK01QOryWuWDhcKgwedIR77AK1p2UqW2rHoySqDSTAuxpOYagv BA7EcygVOst607p1Jr8fU6QzqRfApM6nTqfPp14Bozqfvph6LVXAYJhYOwtX/7CAf7OB2I8WyWIL dvrvMey2ENaXl8XjML0E9w8Ta2a9GXVfBhs6uN5cN25GAwSi1uAOJd3YVGBUraVmL2bSWfo3M3zr 1NjIq7lL6bGhc+fGRig9je5TQkQdhYwQDLiGjstlXY91feYzCqpkcxAqMTYOs6cQCTvaqPDrKcqV u48pOOYoOL4E79s6GmI6PYIgKhiGrq2D1H4bVy11wItPnA6b6MXtLzQZlGx0D3Nw1OtRn8Jon9Ed lpygqzhph9Km5Jqyy6gik8mkXwU7PZ9aKaBrI0Zif6dHLanH/xoPOZw7N1eJIP3XhpJm1Z8B9Eyd XobX3Y420rrzD0nZdz/WSH5LF7Hr4I8JkcTxDwUpBxz9xSCiIPpjQQRHhbjSxN3BgDX5cKyTgjyC fQdL7OgNx2Ail4VhyKVy6bK4lD7w+d8jLAHvs/5bLlfme9Z/52emKifrv8/jwfXf//1Cr/+SI7nK Yuu/tO2XxnVfOwOlIZx6b7H4yi3MiD7FlVuRwV0+3AWkJIZQJfejqAtMc+Un2MVQsFD7Ni4B6IXa RcSOC7VLiApXMDM4Q8MVYEaLsLcxu8IyzLt+glMnvZD6c1yWxTIEGQdnUVgeZRBdxChbz+IyKPnK X44kl0FPDiGfHEI+OYR8cgj55BDyySHkb+UQcjzhrqfZMMyngvXJJdwE1KsaP8vgZsRT+AlB8F2c VFksWF6/yvxhvaquVxQzGBlNXMTI6HXMa3o1BGFok0IvTV4P6ocwgP5fe+fX2zQMRXE7bdJ2pNuo YKwPAx7gadLEBPQJ8TohRNHoQ+EBaaJDojCljFXThJgiwXfjc+FzrvPHSRijRQiJWFrVJp7j63Nt xz/ftOa4ebX0sw1Cas/6pbOWwqP2lsLnVw48QChOT+ZCJHVll9cjl0SEysIlXZ5jBmahNkY0W+dg HZYPgZZbaokRLlH+qhoIY3EA9OWqcF/95v23+JoDBx4rGgBwsabveJv6pp5g64kcbADh90iiyYZA vGTjCQzqSUKMjEeMImy4P8Uqe0QpcJs/LFjmGJHsMKUQBHZLVHOBClbkWNj0nDZ7ojYs73nccqPN ADnmxi4eWhI/tQTvedE2VtKSpbSueVrpWmFz5h1iUSPc3cJnyZbCup74qiVd9ius2FfxC9IP3iN/ YWdDz7Q7Bg3Tzfrn5tZ1DFOnLTVvA45AYQ8i6/iV+twHCJ132BIr9tx5oMamISweZTDFoS//8Vq9 BAkNbEuhgYd0Y47B7GtmduARThfsrAIKGTvXSbRGKLkLzn9SAhs2SlkhjjMmnG6djwvnEt0J+nY6 E9kyr8jA7laVeJeohhSzqLK5Kkq0736yh3bX73uB7mvI3ASqbpnR2Qj9HUIfEConndEIMW1gPQS3 fQPpgZInUB/j9SEcALK/VWcxXsUxwIEjkmW4gYcxeMOUZLQGWubn6yjwXZY/nHUJmnGFplDn95mj GCcQ4PaNzO0GLvmB/idw+/iR0uP4COfEWXyO3mhAGcLpGvB1iTp00FTm/ok2DpHUFKMskqjT4Og7 z8lZavdq/S8uNituUflXi9U4ORAE2tCbRCUdHah1S5i7+pbuwROwbWE8AQ9Fm9VmPLOeMNsyenxM NirELZr2jaZYxzzpq9m2+fAJ29zYbcjnbzPah++Nalduj6KrJutcydaBZBplAQZVxN+dbKu1KwPk /GQpIQTCJhFbX4bPhQB5r0q7RTUJ0vIjSw9Ny2+Zv21PLK0k+r1kEnee2XKxfP4+odAuJX+sMDNX M1uuPA0gbG6ZuSU70lQn18yBzsMGQ2HDThiEzXAtXA3bblww5fqjiLMQPtzm1eSJheUsTAAkrtXV K97GqarTv5EuEvEUKH0W7czPliOfv3j+A7/3l/7+3+6DAeN/B/X3//2VlGCt3Z179dch1alOdarT f5R+AGnTMxgAeAAA ------ =_NextPart_000_01BE77CD.21DA8700-- From jim@digicool.com Fri Mar 26 21:36:49 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 26 Mar 1999 16:36:49 -0500 Subject: [Zope] Method icons Message-ID: <36FBFDF1.23E9F89A@digicool.com> Hi all. Here's a minor issue I'd like to get some opinions on. There are some ideas in Zope that cross object types in Zope, like folders, methods, and content. We reinforce the idea of folders by giving folders icons derived from folder icons. I'd like to do the same thing for methods. The basic idea is that there should be some basic icon that indicates that something is a method. It should be possible to decorate the icon to indicate a particular type of method, such as adding angle brackets for DTML or adding a table grid for SQL, or OO (or glasses ;) for Python. Note that one complication is that the image should fit in a 16x16 icon. I've put some ideas at: http://www.zope.org/methodIcons I'm curious what folks think of these and whether anyone has any better ideas. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phil@philh.org Sat Mar 27 00:30:03 1999 From: phil@philh.org (Phil Harris) Date: Sat, 27 Mar 1999 00:30:03 -0000 Subject: [Zope] installing Zope References: <3.0.1.32.19990326200338.009363e0@poirot> Message-ID: <001101be77e8$ffc87d80$0202a8c0@typhoon> Hi Tom, Try this:- RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Notice the underscores, where you had hyphens. HTH Phil phil@philh.org ----- Original Message ----- From: Tom Deprez To: Sent: 26 March 1999 19:03 Subject: [Zope] installing Zope > Hi, > > Thanks to all the reply I got for my question PHP3 or Zope. > > I'm wanting to give it a try, but .... > > I've RedHat 5.2 installed with running Apache > > I'm trying to install Zope, but am expiering some problems : > > I've downloaded the binary and installed it into > > /usr/local/dc/Zope-1.10.2 > > installed it with ./install -sAdmin:Admin > > the var directory of Zope is permissioned for nobody (done by Zope) > > As in the manual, Zope created access with Admin:Admin, but it says login > with Zope:Admin > > copied the Zope.cgi to the directory /home/httpd/cgi-bin > > I want to use it with Apache so I had something to change in the conf file > of Apache... Apache has 3 conf files. At the moment it is written in all 3 > of the files (because none of them work!). > > This is the piece of script I've written : (from WEBSERVER.txt) > > #Zope configuration maps /Zopz/ to the Zope.cgi CGI script > > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] > > When trying to browse to http://localhost/cgi-bin/manage I get the password > dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... > > What am I doing wrong????? > > -------------------------------------- > > Now try to use ZopeHTTPServer > > I can't find anywhere the file serve.sh > > BUT I tried to start it with start > > then going to webbrowser http://localhost:9673/manage > > I get a message of DNS problem etc... > > So not even a question of password... > > ---------------- > > > Can somebody tell me what I've done wrong? I want to get it to work with > Apache... What do I've to do? > > Thanks in advance, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd@sun.med.ru Sat Mar 27 15:44:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Sat, 27 Mar 1999 18:44:42 +0300 (MSK) Subject: [Zope] Zope info on postgresql.org Message-ID: Hello! I am creating a record on Zope on postgresql.org: http://www.postgresql.org/software/detail.cgi?oid=3440544 I need a short informative description on Zope. Something like "Zope is opensource web application platform - software complex for creating highly dynamic web-sites". What is contact e-mail? I wrote zope@zope.org. Shouldn't it be info@digicool.com? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From daren@sefcik.cc Sat Mar 27 17:49:12 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sat, 27 Mar 1999 09:49:12 -0800 (PST) Subject: [Zope] Zope+FreeBSD.??? Message-ID: Has anybody gotton Zope and FreeBSD to work..?? I cannot get it working and have read some posts to same extent, if anybody has it working could you be kind enough to share your setup details?? TIA, Daren From martin@dougiamas.com Sun Mar 28 13:59:27 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Sun, 28 Mar 1999 21:59:27 +0800 Subject: [Zope] Automatically creating instances for each user? Message-ID: <36FE35BD.AEBBC507@dougiamas.com> Hi, I'm new to Zope, but I'm eagerly learning it. I like the paradigm - it seems to fit the way I think. This is my first post here. I've hit a snag, and I'm hoping someone more experienced can point me in the best direction. I'm developing an application that needs user-modifiable pages. I already have a Zope form where the user can edit text properties of an object, and another page that displays those properties as HTML. My problem is, I want each authenticated user to be editing their own instance of this object, and I also want the URL to be the same for each user. eg fred sees http://host/mypage as fred's editable page mary sees http://host/mypage as mary's editable page What is the best approach I should take to achieve this in DTML? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent is == i see ### Centre for Educational Advancement ### Curtin University of Technology ### http://cea.curtin.edu/staff/martin From daren@sefcik.cc Sun Mar 28 17:31:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 09:31:27 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? Message-ID: What does the ZMySQLDB Database Connection String want to connect to a database?? Could someone please provide an example of what I need to use to create a Z MySQL Database Connection...suppose I have MySQL running with a database named "webdb" and user "joe" with password "password" can accsess it. I am a bit confused as to what ZMySQLDB is asking for. TIA, Daren From kristian@vilmann.com Sun Mar 28 16:59:23 1999 From: kristian@vilmann.com (Kristian Vilmann) Date: Sun, 28 Mar 1999 18:59:23 +0200 Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: (message from Daren Sefcik on Sun, 28 Mar 1999 09:31:27 -0800 (PST)) References: Message-ID: <199903281659.SAA00997@supernaut.strangeparty.dk> Daren writes: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? Yes, the documentation is a bit unclear about this. > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. > You'll need a Database Connection String like this: "webdb joe password". /kristian -- Kristian Vilmann - kristian@vilmann.com Disclaimer -- These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d ^X ^? exitX Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^vi man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d !! man help ^C ^c :e! help exit ?Quit ?q CtrlShftDel "Hey, what does Stop L1A d..." From tsarna@endicor.com Sun Mar 28 18:07:08 1999 From: tsarna@endicor.com (Ty Sarna) Date: 28 Mar 1999 18:07:08 GMT Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: Message-ID: <922644428.678749@zoo-of-death.endicor.com> In article , Daren Sefcik wrote: > What does the ZMySQLDB Database Connection String want to connect to a > database?? dbname[@hostname] [user [password]] > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. "webdb joe password" should work if the database is running on the same machine. From daren@sefcik.cc Sun Mar 28 18:18:45 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 10:18:45 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: <922644428.678749@zoo-of-death.endicor.com> Message-ID: > dbname[@hostname] [user [password]] Works like a charm!! Thanks to all who helped me with this! Daren From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 08:25:24 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 10:25:24 +0200 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990329102524.0097e170@poirot> Hi all, Well, now I don't understand it anymore.... Just back from the weekend (where on Friday I had these installation problems) Now went to the Zope directory and what did I saw? The 'Start' and 'Stop'. I wrote ./Start and then surfed to the correct address and it works! Why did'nt it worked on Friday? The whole weekend searching for a solution and then it appears it isn't needed... (almost) But, still I would like to work with Apache... Why? Because I've heard it's the best in web-servers... (I don't know it's through, but I believe it) Or is the comming ZServer better? Now, I believe I have to recompile apache again to make it ready for Zope, isn't it? I thought I only had to put it in one of the configuration files, but instead you've to write that script in the ./configure file. Kind Regards, Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:03:26 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:03:26 +0200 Subject: [Zope] external databases Message-ID: <3.0.1.32.19990329110326.009816b0@poirot> Hi again, I've a Postgress database with some data I want to use with Zope. So I've to install an external driver. Is it so that I've to recompile Zope? This means that I've to download the source and not the binaries of Zope, like I did... Isn't there a simpler way? Because when I need to recompile, I've do download also all the correct libraries of each program... sghh. Please, let there be a simpler method. Thanks in advance. Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:22:48 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:22:48 +0200 Subject: [Zope] examples Message-ID: <3.0.1.32.19990329112248.00979a00@poirot> Hi, Can you send me an url where I can see your work? So I can get the idea (especially database related) what is possible with Zope. TIA Tom. From martin@dougiamas.com Mon Mar 29 09:22:48 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Mon, 29 Mar 1999 09:22:48 +0000 Subject: [Zope] Usernames in ZopeHTTP logs Message-ID: <36FF4668.5BAA002D@dougiamas.com> I found Zope's HTTP logs at: ...zope/var/server.errors which is what I need to monitor the server, but they don't appear to be including usernames (just a '-' in that field). How can I turn logging of usernames on? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent ### Centre for Educational Advancement is == i see ### http://cea.curtin.edu/staff/martin From phd@sun.med.ru Mon Mar 29 09:27:15 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 13:27:15 +0400 (MSD) Subject: [Zope] external databases In-Reply-To: <3.0.1.32.19990329110326.009816b0@poirot> Message-ID: Hello! On Mon, 29 Mar 1999, Tom Deprez wrote: > I've a Postgress database with some data I want to use with Zope. So I've > to install an external driver. You need to install and compile ZPygres Database Adapter and add it as described in ZPygresDA docs. You don't need to recompile Zope. > Is it so that I've to recompile Zope? This means that I've to download the > source and not the binaries of Zope, like I did... Isn't there a simpler way? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Mon Mar 29 09:41:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 29 Mar 1999 11:41:44 +0200 Subject: [Zope] Automatically creating instances for each user? In-Reply-To: <36FE35BD.AEBBC507@dougiamas.com> Message-ID: <4.1.19990329113945.00c38de0@lisp.atmm.nl> At 15:59 28/03/99 , Martin Dougiamas wrote: >Hi, > >I'm new to Zope, but I'm eagerly learning it. I like the >paradigm - it seems to fit the way I think. > >This is my first post here. I've hit a snag, and I'm hoping >someone more experienced can point me in the best direction. > >I'm developing an application that needs user-modifiable pages. >I already have a Zope form where the user can edit text properties >of an object, and another page that displays those properties as HTML. > >My problem is, I want each authenticated user to be editing their >own instance of this object, and I also want the URL to be the >same for each user. > >eg fred sees http://host/mypage as fred's editable page > mary sees http://host/mypage as mary's editable page > >What is the best approach I should take to achieve this in DTML? AUTHENTICATED_USER.getUserName() returns the name of the current user. You could use this in the DTML of mypage to select the object you are working on. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Mon Mar 29 10:37:46 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 29 Mar 1999 11:37:46 +0100 Subject: [Zope] (no subject) Message-ID: <00e301be79d0$2f6a32c0$5c773fc1@media1> Hi all, I'm using Zope 1.10 with IIS 4.0 on an NT box. All is working well, I just have one small query which is slightly off topic, maybe. The URL for Zope is 'http://localhost/scripts/z.exe' and I would like it to be 'http://localhost/z/', I know that with Apache I could do a rewrite and this works great with Apache, but does anyone know how I would do something similar with IIS. TIA Phil Harris Mail Phil@philh.org IRC Efnet #Zope #PHP WWW www.philh.org From chsrinfo@guetali.fr Mon Mar 29 10:57:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 14:57:36 +0400 Subject: [Zope] external methods Message-ID: <002801be79d3$29f169a0$147800a0@pc-pi0> Hello, >> After some digging, I found that the problem lies in >> the expression 'self.l' >> >> 'self.' gives access to the object hierarchy, not the variables >> namespace. >> >> So, I solved my problem by writing 'self.REQUEST['l']' >> instead of 'self.l' >> >> Also, I think that this should be clearly documented. >> Apparently, the only way to acess variables namespaces >> in external methods is through self.REQUEST >> This confuses a 'normal' python user whose variable >> namespace is usually accessed through self. > >I believe that you can just ask for it in your function signature: > >def my_method(self,l): > return l + ' is cool!' Nope, With that definition, my_method expect to be called with the arguments set, eg to display "Zope is cool". However, I want to get the variable l from the namespace. (application variables made with REQUEST.set, Folder or document properties, etc.) The question was: is self.REQUEST the only way to access the variable namespace? And the only way to *modify* the variable namespace from external methods (with self.REQUEST.set)? By the way, I'd like to thank Stefan Franke and Pedro Vale Lima who gave me a pretty quick answer. I did find the answer before they wrote, but anyway, a thank is not that expensive :-) Also, thanks to Paul who gave me such a useless answer. :-) (just kidding) Regards, Jephte CLAIN Service Informatique CHSR From Paul@digicool.com Mon Mar 29 13:04:07 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 29 Mar 1999 08:04:07 -0500 Subject: [Zope] Zope info on postgresql.org Message-ID: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Oleg wrote: > I need a short informative description on Zope. Something > like "Zope is > opensource web application platform - software complex for > creating highly > dynamic web-sites". Thanks Oleg! Try this: "Zope is a free, Open Source(tm) application server for creating powerful, dynamic web sites such as community portals." > What is contact e-mail? I wrote zope@zope.org. Shouldn't it be > info@digicool.com? Yes, info@digicool.com. --Paul From chsrinfo@guetali.fr Mon Mar 29 13:23:48 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 17:23:48 +0400 Subject: [Zope] error in pcgi Message-ID: <003601be79e7$80d806c0$147800a0@pc-pi0> Hello, my site was working great when suddenly, I got a "Temporarily unavailable" message. The pcgi.log reads: unexpected out-of-bound data in stdin t[0]=60 several times. I suppose this means that something is writing to the stream read by pcgi. I didn't do anything other than uploading new versions of my DTML Documents to the site. (I have done this all the aternoon long). Have you already seen this behavior? Does someone have an idea of where to start to find the problem? Regards, Jephte CLAIN, Service Informatique CHSR From phd@sun.med.ru Mon Mar 29 13:11:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 17:11:55 +0400 (MSD) Subject: [Zope] Zope info on postgresql.org In-Reply-To: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Message-ID: Hi! On Mon, 29 Mar 1999, Paul Everitt wrote: > "Zope is a free, Open Source(tm) application server for creating > powerful, dynamic web sites such as community portals." > > Yes, info@digicool.com. Thanks. Updated: http://www.postgresql.org/software/tools.cgi > --Paul > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffbauer@bigfoot.com Mon Mar 29 13:58:03 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 29 Mar 1999 07:58:03 -0600 Subject: [Zope] error in pcgi Message-ID: <36FF86EB.5F5BC6FF@rubic.com> Service Informatique CHSR wrote: > my site was working great when suddenly, I got a > "Temporarily unavailable" message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is > writing to the stream read by pcgi. I didn't do anything > other than uploading new versions of my DTML Documents > to the site. (I have done this all the aternoon long). > > Have you already seen this behavior? Does someone have > an idea of where to start to find the problem? The error occurs because a value is appearing in a pcgi reserved header record, possibly because your application is sending something to stdout. I'm not sure where to tell you to start looking, but if *all* you have done is uploaded .dtml files to trigger the error, that's probably the place to start. I'm honestly confused why this should happen. Jeff Bauer Rubicon, Inc. From Brian@digicool.com Mon Mar 29 14:12:01 1999 From: Brian@digicool.com (Brian Lloyd) Date: Mon, 29 Mar 1999 09:12:01 -0500 Subject: [Zope] error in pcgi Message-ID: <613145F79272D211914B0020AFF64019FDBD@gandalf.digicool.com> > Hello, > > my site was working great when suddenly, I got a "Temporarily > unavailable" > message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is writing to the > stream read by pcgi. I didn't do anything other than > uploading new versions > of my DTML Documents to the site. (I have done this all the > aternoon long). > > Have you already seen this behavior? Does someone have an idea of > where to start to find the problem? > > Regards, > > Jephte CLAIN, > Service Informatique CHSR Usually this means that the Zope process is unable to start up for some reason (an import error, syntax error, etc.). I'm not sure how changing DTML document objects could cause this, though. You didn't happen to change any DTML that is read from the disk (e.g., HTMLFile objects used from Zope, installed products or external methods) did you? If so, there is probably a dtml syntax error that is being raised at startup time. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From chsrinfo@guetali.fr Mon Mar 29 15:31:59 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 19:31:59 +0400 Subject: [Zope] error in pcgi Message-ID: <000a01be79f9$4e7bb3e0$147800a0@pc-pi0> >> my site was working great when suddenly, I got a "Temporarily >> unavailable" >> message. >> The pcgi.log reads: >> >> unexpected out-of-bound data in stdin t[0]=60 >> >Usually this means that the Zope process is unable to start up >for some reason (an import error, syntax error, etc.). I'm not >sure how changing DTML document objects could cause this, though. >You didn't happen to change any DTML that is read from the disk >(e.g., HTMLFile objects used from Zope, installed products or >external methods) did you? If so, there is probably a dtml syntax >error that is being raised at startup time. You are positively right. I stupidly wrote notice the non-named parameter after a named parameter. I haven't tried it yet with other publishing mechanisms (ZServer, ZopeHTTPServer, which don't use PCGI), but if these servers also dies for such oddities, this might be a bug in error handling. Stay tuned for more informations. Many thanks to Brian and Jeff who took the time to respond to me. Regards, Jephte CLAIN Service Informatique CHSR From tsarna@endicor.com Mon Mar 29 16:59:39 1999 From: tsarna@endicor.com (Ty Sarna) Date: 29 Mar 1999 16:59:39 GMT Subject: [Zope] cgi_module_publish cookie prsing errors? Message-ID: <922726779.752530@zoo-of-death.endicor.com> All of my "real" sites are still running under Principia. Recently a number users of these sites have had their machines upgraded. Those now using the latest versions of IE and Netscape are unable to access the sites now unless they turn off cookies, or they get an error in cgi_module_publish to do with parsing cookies. (I'm still trying to get someone to send me the actual error text). Anyone out there using Principia still? Have you seen this? Anyone using Zope seen this? From michel@digicool.com Mon Mar 29 17:14:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 12:14:30 -0500 Subject: [Zope] Browse the Zope CVS through the web Message-ID: <613145F79272D211914B0020AFF6401907BBDA@gandalf.digicool.com> Greetings, As promised, it is possible now to browse the Zope public CVS repository through the web. If you're interested in looking at the latest Zope developments, this is a good place to start without having the check out your own copy. This site is also handy for viewing the various evolutions of Zope, and for getting pretty colored diffs between versions. If you want to know the difference between two recent versions of a certain file, cvsweb will show you in glaring full color. The web view of the Zope CVS is more fragmentary the the view you get with the 'cvs' command. If you want to check Zope out of the public cvs, it is recommended you just check out 'Zope', which is an options not shown on the web cvs. The public CVS uses its module file to stitch together the various components that can be seen on the web view into a Zope distribution. Complete instructions on how to do this can be found at: http://www.zope.org/Community/CVS_public_access The web interface can be found at: http://www.zope.org/cgi-bin/cvsweb.cgi In case you're curious, this is not a Zope module but a CGI script written in Perl. It can be found at: http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi -Michel From michel@digicool.com Mon Mar 29 20:48:08 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 15:48:08 -0500 Subject: [Zope] Test Message-ID: <613145F79272D211914B0020AFF6401907BBDB@gandalf.digicool.com> ing. From neves@inf.puc-rio.br Mon Mar 29 22:31:52 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Mon, 29 Mar 1999 19:31:52 -0300 Subject: [Zope] ZMySQLDB Connection String?? References: Message-ID: <36FFFF58.38A1239E@inf.puc-rio.br> Daren Sefcik wrote: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. The first release of Aqueduct docs had a table with examples of connections strings for some databases. This table disappeared in the latest docs. Shouldn't it be the case to take it back? -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From daren@sefcik.cc Mon Mar 29 22:58:54 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Mon, 29 Mar 1999 14:58:54 -0800 (PST) Subject: [Zope] ZMySQLDB error Message-ID: After everything compiled fine I try to import MySQL and get the following error: rdi% python Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umoddi3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 >>> Does anyone have any ideas?? MySQL works fine as well as Zope. Do I need to install the Sun ld.so patch?? TIA Daren From egibson@connect.com.au Tue Mar 30 02:35:23 1999 From: egibson@connect.com.au (Evan Gibson) Date: Tue, 30 Mar 1999 12:35:23 +1000 Subject: [Zope] cgi_module_publish cookie prsing errors? In-Reply-To: <922726779.752530@zoo-of-death.endicor.com>; from Ty Sarna on Mon, Mar 29, 1999 at 04:59:39PM +0000 References: <922726779.752530@zoo-of-death.endicor.com> Message-ID: <19990330123523.28633@connect.com.au> On Mon, Mar 29, 1999 at 04:59:39PM +0000, Ty Sarna wrote: > All of my "real" sites are still running under Principia. Recently a > number users of these sites have had their machines upgraded. Those now > using the latest versions of IE and Netscape are unable to access the > sites now unless they turn off cookies, or they get an error in > cgi_module_publish to do with parsing cookies. (I'm still trying to get > someone to send me the actual error text). > > Anyone out there using Principia still? Have you seen this? > Anyone using Zope seen this? Yes, I've seen it in Principia and Bobo for cookies in the form: .com.au TRUE / FALSE 933422008 MC1 GUID=083F5B8E21DE11D28B2C08002BB74F3F The two problems being that cookies are usually only seen by the domain that registers them, but some badly configured servers (most probably Microsoft servers by the look of the cookies) only list the last two parts of the domain name. This is fine for blah.com, but for overseas domains like blah.com.au it means the cookie is returned for ALL .com.au sites. This wouldn't be a problem, but since the cookies are returned to Principia in the form: MC1=GUID=083F5B8E21DE11D28B2C08002BB74F3F parse_cookie breaks since it looks for key value pairs WITHOUT an equals sign on either side. The extra = really confuses it. To fix it change the re in parse_cookies in cgi_module_publisher.py from: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-=\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), to: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace. From chsrinfo@guetali.fr Tue Mar 30 06:12:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 30 Mar 1999 10:12:54 +0400 Subject: [Zope] external methods Message-ID: <004c01be7a74$5ceec720$147800a0@pc-pi0> >Nope, > >With that definition, my_method expect to be called with the arguments >set, eg to display "Zope is cool". > >However, I want to get the variable l from the namespace. (application >variables made with REQUEST.set, Folder or document properties, etc.) >The question was: is self.REQUEST the only way to access the >variable namespace? And the only way to *modify* the variable namespace >from external methods (with self.REQUEST.set)? I'd like to be more precise. Suppose my_method is: def my_method(self): if self.REQUEST.has_key('my_var'): return "oh yes" return "boooo" Now, I write in DTML:


    Believe me or not, the result is: boooo boooo my_value You can now understand why I ask how to access the variable namespace from external methods. How can I test the existence of my_var, and access its value??? Keep the good work, I might ask you some of your photos for my daily worship :-) Regards, Jephte CLAIN Service Informatique From Tom.Deprez@uz.kuleuven.ac.be Tue Mar 30 10:28:25 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Tue, 30 Mar 1999 12:28:25 +0200 Subject: [Zope] Frustrating Message-ID: <3.0.1.32.19990330122825.009293a0@poirot> Hi, I'm getting really frustrating on this subject. Pff, I believe the Zope-people have made already a great effort in their documentation. So I guess my problem is my own bad english. shhg. I finally got the Postgressql adapter compiled, thanks to two great people! Thanks for this already. But now I'm confused? How to use it in Zope? When I go to the product management I see the all the installed products including : ZPyGreSQLDA (broken product APyGreSQL).... I guess here is already something wrong (broken... is not a positive word :-( ) But then, how can I work with it? How can I use it in Zope...? How can I add it to the 'Add list' . I read of a connection string... but where to place it? Sggh, I've read in the manuals, Q&A, ... but I still don't get how to use it.... Please, somebody, help...! Thanks in advance, The Idiot, Tom. From ShawH@STHS.org Tue Mar 30 13:17:28 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:17:28 -0600 Subject: [Zope] Frustrating Message-ID: First thing, if your product is broken you won't get anywhere. So, first step is to delete the broken product, and shutdown and restart your zope server. This is because Zope apparently won't replace a broken product with a working one. If it is still broken, click on it, and then on the screen that comes up, look for the 'traceback' tab on the top of the screen. Copy this traceback and mail it to the list. If your product no longer says broken, then you will be able to go to a folder above where you want to use SQL methods, and from the pull-down menu beside the add button, choose to install the SQL Adapter. I don't know for certain the format for the connection string, but if you go to /lib/python/Products/ and look in the directory for the ZPyGreSQLDA and read the top of any *.py file you see, it should say. Once you have a working adapter, you can add an SQL Method, and it will list your adapter's id on its list of db connections. From this point on the documentation in the SQL Guide should be sufficient. Good luck! Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Tom Deprez[SMTP:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Tuesday, March 30, 1999 4:28 AM > To: zope@zope.org > Subject: [Zope] Frustrating > > Hi, > > I'm getting really frustrating on this subject. Pff, I believe the > Zope-people have made already a great effort in their documentation. > So I > guess my problem is my own bad english. shhg. > > I finally got the Postgressql adapter compiled, thanks to two great > people! > Thanks for this already. > > But now I'm confused? How to use it in Zope? When I go to the product > management I see the all the installed products including : > ZPyGreSQLDA > (broken product APyGreSQL).... I guess here is already something wrong > (broken... is not a positive word :-( ) > > But then, how can I work with it? How can I use it in Zope...? How can > I > add it to the 'Add list' . I read of a connection string... but where > to > place it? > > Sggh, I've read in the manuals, Q&A, ... but I still don't get how to > use > it.... > > Please, somebody, help...! > > Thanks in advance, > > The Idiot, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From ShawH@STHS.org Tue Mar 30 13:29:30 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:29:30 -0600 Subject: [Zope] DTML Methods Message-ID: Using Netscape 3.04, I can't edit the text in DTML Methods. I get the textbox, and I can place my cursor where I choose, and scroll through it, but I can't type in it, I can't paste into it. I can copy the whole contents, make a DTML Document, paste it in, and edit there! Any idea what's going on? When I access it from Netscape 4.07 on Linux it works fine... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From mike@compar.com Tue Mar 30 16:52:31 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 30 Mar 1999 11:52:31 -0500 (EST) Subject: [Zope] E-Commerce Message-ID: If I'm really lucky, I might be getting a contract to put together a rather large site which includes selling the client's product over the web. They'll want to be doing credit card transactions. Has anyone been working on a shopping cart app for Zope, or perhaps even utilities to interact with a credit card transaction service? It's much quicker to buy than write! Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From ShawH@STHS.org Tue Mar 30 16:56:59 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 10:56:59 -0600 Subject: [Zope] RE: [Zope-dev] Object to string Message-ID: Sorry, guess I wasn't clear enough. What I am thinking should work is ... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Jason Spisak[SMTP:webmaster@mtear.com] > Sent: Tuesday, March 30, 1999 6:48 AM > To: zope-dev@zope.org > Subject: Re: [Zope-dev] Object to string > > Damn it didn't work. I if I post again on this subject I get a free > set > of steak knives. ;-) > > I tried appending PARENTS[-1]. to the counter property to tell it that > the counter property I want is a property of the root folder. But > when > I try to save the changes to the DTML, it chokes. Here's the code and > the traceback: > > > > > The counter property is type:int and set to 0. > > > > > Unpack sequence of wrong size? Hmm, any suggestions? > > All the best, > > Jason Spisak > webmaster@mtear.com > > Shaw, Howard wrote: > > > > Actually, he's talking about simple folder property manipulation > (ok, > > its not so simple), the Counter product is intended for visible > counters > > incremented by webpage access. > > > > However, if a Counter is added to the folder as 'countob', and > marked to > > NOT check ips, then it can be handled thusly... (or should be able > to, > > anyhow.) > > > > > > > > > > The parameter on the first line is normally '_', and can be passed > in if > > you like. Not passing it in when the countob is marked to check ips > will > > generate a traceback. > > > > The only real reason I can think of for using a Counter object > instead > > of the folder properties is to be able to use acquisition to make > the > > names globally unique; but the same thing can be done by prepending > > PARENTS[-1]. to Pavlos' technique. > > > > Also, if you use the counter object, you will have to set the "How > many > > hits before saving to the database?" line to 0. > > > > Pavlos' method was not recently added, but has been usable for a > > considerable period of time, and has the added advantage of not > needing > > a Product added to support it. > > > > Howard C. Shaw III > > Programmer/SysAdmin > > St. Thomas High School > > > > > ---------- > > > From: Jason Spisak[SMTP:webmaster@mtear.com] > > > Sent: Monday, March 29, 1999 6:12 PM > > > To: Pavlos Christoforou; zope-dev@zope.org > > > Subject: Re: [Zope-dev] Object to string > > > > > > Pavlos: > > > > > > I had forgotten about the recent addition of the counter object to > our > > > arsenal of Zopeist tools. Shame on me. Thanks for the heads-up! > > > > > > Jason Spisak > > > webmaster@mtear.com > > > > > > > > > > > On Mon, 29 Mar 1999, Jason Spisak wrote: > > > > > > > > > Oh, to follow up on my last post about turning an object to a > > > string > > > > > without leaving DTML, I have tried: > > > > > > > > > > > > > > > > > > > > > > > > > All help welcome! > > > > > > > > will return a string > representation > > > of > > > > the object. > > > > > > > > Alternatively you can generate unique object ids by adding a > counter > > > > property to your containing folder (or root folder) and modify > it > > > > everytime you generate a new object. For instance:: > > > > > > > > > > > > > > > > > > > > > > > > Pavlos > > > > > > -- > > > Jason Spisak > > > webmaster@mtear.com > > > > > > _______________________________________________ > > > Zope-Dev maillist - Zope-Dev@zope.org > > > http://www.zope.org/mailman/listinfo/zope-dev > > > > > > (For non-developer, user-level issues, use the companion list, > > > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > > > > > -- > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://www.zope.org/mailman/listinfo/zope-dev > > (For non-developer, user-level issues, use the companion list, > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > From amos@aracnet.com Tue Mar 30 17:28:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 30 Mar 1999 09:28:35 -0800 Subject: [Zope] external methods In-Reply-To: <004c01be7a74$5ceec720$147800a0@pc-pi0> Message-ID: <3.0.5.32.19990330092835.01192720@mail.aracnet.com> At 10:12 AM 3/30/99 +0400, Service Informatique CHSR wrote: >>Nope, >> >>With that definition, my_method expect to be called with the arguments >>set, eg to display "Zope is cool". >> >>However, I want to get the variable l from the namespace. (application >>variables made with REQUEST.set, Folder or document properties, etc.) >>The question was: is self.REQUEST the only way to access the >>variable namespace? And the only way to *modify* the variable namespace >>from external methods (with self.REQUEST.set)? Well, this is an interesting question. In my experience, seldom do people try to munge the DTML namespace from within an External Method. I guess it could be done (perhaps by passing the special underscore variable to an External Method), but I wonder if this is really the best way to solve your problem. >I'd like to be more precise. Suppose my_method is: > >def my_method(self): > if self.REQUEST.has_key('my_var'): > return "oh yes" > return "boooo" > > >Now, I write in DTML: > >

    >

    >
    > >

    > >Believe me or not, the result is: > >boooo >boooo >my_value > >You can now understand why I ask how to access the variable >namespace from external methods. How can I test the existence >of my_var, and access its value??? Well let's see what's going on here. You call my method, it acquires the REQUEST object and looks for a 'my_var', doesn't see it and returns 'boooo'. so far so good. Now you push a namespace containing only 'my_var' on to the DTML namespace stack and call the method again. Not surprisingly the method does the same thing as before, it acquires the REQUEST and finds that it does not contain 'my_var' so it prints 'boooo'. Finally you call 'my_var' which is found in the DTML namespace and 'my_value' is printed. So the lesson is: the DTML namespace is not the same thing as the REQUEST object. For more on how DTML namespace works see my advanced DTML how-to: http://www.zope.org/Documentation/HowTo/DTML My advice to you is to keep things simple. It's easy to confuse yourself with the complexities of DTML. In general, I would suggest that your External Methods take well defined arguments and return results, rather than modify the objects passed to them. Then allow the DTML to pass those arguments and munge its own namespace in response to the results of the External Method. Of course, this schema isn't always the right one. Finally I would suggest that you, don't munge the DTML namespace from within an External Method unless you have a good reason to, I think that this would make the DTML even harder to understand. Good luck. -Amos From johanl@bahnhof.se Tue Mar 30 17:53:09 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Tue, 30 Mar 1999 19:53:09 +0200 Subject: [Zope] Broken DB In-Reply-To: Message-ID: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Hi! I get this error when trying to start the server with start.bat: Traceback (innermost last): File "serve.py", line 100, in ? ZopeHTTPServer.main(args) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, in set _published_module __import__(name) # to catch problem modules right away File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in read _index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1903771 Can I recover? The db doesn't contain anything important so it's really okay to reinstall, should that be neccessary. /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From petrilli@amber.org Tue Mar 30 18:03:10 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 30 Mar 1999 13:03:10 -0500 Subject: [Zope] Broken DB In-Reply-To: <4.1.19990330194807.00dafef0@mail.bahnhof.se>; from Johan Lindstrom on Tue, Mar 30, 1999 at 07:53:09PM +0200 References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <19990330130310.C11199@amber.org> On Tue, Mar 30, 1999 at 07:53:09PM +0200, Johan Lindstrom wrote: > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > [snipped] > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. It looks like you're running an older release 1.9.x something? 1.10.x will automatically fix the database under 90% of the circumstances by simply truncating the bad record. This should fix your problem. BTW, it's always helpful to give information on what release of Zope you're using. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jim@digicool.com Tue Mar 30 18:12:20 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 30 Mar 1999 13:12:20 -0500 Subject: [Zope] Broken DB References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <37011404.36F2C5A4@digicool.com> Johan Lindstrom wrote: > > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > File "serve.py", line 100, in ? > ZopeHTTPServer.main(args) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, > in main start(module_file,host,port,threading,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, > in start set_published_module(module_file,BoboRequestHandler,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, > in set _published_module __import__(name) # to catch problem modules right away > File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? > Bobobase=OFS.Application.open_bobobase() > File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in > open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line > 159, in __init__ db=apply(DBType,(),storage_options) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in > __init__ self.open(file_name,create,revision_time,meta_index,read_only) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in > open try: self.index,self.pos=read_index( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? At a minimum, you can truncate the data file (var\Data.bbb) at the position indicated. (Let me know if you need help with this.) > The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. You could also just delete the database (var\Data.*) and a new database will be created when you restart. I'd appreciate it if you'd send me the corrupted database as a zipped or gzipped attachment in a private email. Also, what version of Zope were you running? What OS? What products (not included in the Zope distribution) did you have installed? Can you tell me anything more about what might have led up to this? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From Amos@digicool.com Tue Mar 30 18:55:50 1999 From: Amos@digicool.com (Amos Latteier) Date: Tue, 30 Mar 1999 13:55:50 -0500 Subject: [Zope] RE: DTML question Message-ID: <613145F79272D211914B0020AFF640190AD129@gandalf.digicool.com> > Sorry to bother you with these questions but I can't post to > egroups. I > tried senting messages on friday, saturday, monday and > today but none > went through. I've sent from the egroups post page, and from my > email... no luck. Please feel free to cc the list with > any answers > or pointers to answers. You can post to the list without egroups by sending mail to zope@zope.org. You can also read the archives without egroups at http://www.zope.org/pipermail/zope/. > I've been working throught the DTML manual and I've come > across a problem; > I can't get the #in tag > to do what I want with a dictionary. I'm using it from > Python for now, but > plan to use this within a Zope app soon. > > > The following DTML code exits with this error: "...line 641, > in renderwob > l-len(sequence)" > > > > I think what you want is access to the dictionary's items() right? : The mapping attribute is not relevant here. It means treat sequence-items as mappings not instances, that is to say, look up vars with __getitem__, not __getattr__. The DTML User's Guide is your friend. -Amos From rkw@dataplex.net Tue Mar 30 19:19:24 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Tue, 30 Mar 1999 13:19:24 -0600 (CST) Subject: [Zope] Namespace Confusion Message-ID: I'm trying to convert shell scripts into DTML methods. Please excuse the pseudo code. I'm using it to represent the problems that I am addressing. set basket_total=0 set taxable_total=0 foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) if (! isfood($item)) @ taxable_total = $taxable_total + price_of($item) endif @ basket_total = $basket_total + price_of($item) endfor print "Of the $basket_total total, $taxable_total is taxable" 1) Can I generate an explicit list rather than getting it with as the result of either a database query or enumeration of an object? 2) How do I generate "local" variables. I know that I could use the REQUEST variable as a global property store. However, because of nesting, global (REQUEST) variables are not desirable. I'd like to say something like the following: ... ... ... Does Zope's DTML have constructs to address either of these? From jimbag@kw.igs.net Tue Mar 30 19:27:29 1999 From: jimbag@kw.igs.net (JB) Date: Tue, 30 Mar 1999 19:27:29 +0000 Subject: [Zope] External Methods Message-ID: <370125A1.305733AC@kw.igs.net> Please excuse my lack of zoping intuition but I hoped someone could help with this problem. I read all the doc's I could find but seem to be missing something. It goes like this... I have a ZSQLMethod that returns some tuples. There is a field in the tuple which I wish to use to lookup an external file and return a jpeg, if available. I've created an external method called 'getPic' which I wish to pass the key field to locate the file with but I can't seem to get at the variable. e.g ---------- )" --> ---------- This doesn't work for reasons not obvious to me. I've tried creating a class to handle the records. No go. Basically, the External method can't get at the vars defined on each loop thru the sequence returnd from the SQLMethod. Any insight would be appreciated. thanks jb From ShawH@STHS.org Tue Mar 30 19:38:58 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:38:58 -0600 Subject: [Zope] FW: [Zope] Namespace Confusion Message-ID: Once again I forgot to cc the list. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Shaw, Howard > Sent: Tuesday, March 30, 1999 1:38 PM > To: 'rkw@dataplex.net' > Subject: RE: [Zope] Namespace Confusion > > > > > > > > > > > Howard C. Shaw III > Programmer/SysAdmin > St. Thomas High School > > > ---------- > From: Richard Wackerbarth[SMTP:rkw@dataplex.net] > Reply To: rkw@dataplex.net > Sent: Tuesday, March 30, 1999 1:19 PM > To: zope@zope.org > Subject: [Zope] Namespace Confusion > > I'm trying to convert shell scripts into DTML methods. > > Please excuse the pseudo code. I'm using it to represent the problems > that I am addressing. > > set basket_total=0 > set taxable_total=0 > foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) > if (! isfood($item)) > @ taxable_total = $taxable_total + price_of($item) > endif > @ basket_total = $basket_total + price_of($item) > endfor > print "Of the $basket_total total, $taxable_total is taxable" > > > 1) Can I generate an explicit list rather than getting it with > as the result of either a database query or enumeration of an object? > > 2) How do I generate "local" variables. > I know that I could use the REQUEST variable as a global property > store. > However, because of nesting, global (REQUEST) variables are not > desirable. > > I'd like to say something like the following: > > > > ... > > ... > > ... > > > Does Zope's DTML have constructs to address either of these? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > From ShawH@STHS.org Tue Mar 30 19:41:39 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:41:39 -0600 Subject: [Zope] External Methods Message-ID: Try > > > > > You can't nest the 's. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: JB[SMTP:jimbag@kw.igs.net] > Sent: Tuesday, March 30, 1999 1:27 PM > To: zope@zope.org > Subject: [Zope] External Methods > > Please excuse my lack of zoping intuition but I hoped someone could > help > with this problem. I read all the doc's I could find but seem to be > missing something. It goes like this... > I have a ZSQLMethod that returns some tuples. There is a field in the > tuple which I wish to use to lookup an external file and return a > jpeg, > if available. > I've created an external method called 'getPic' which I wish to pass > the > key field to locate the file with but I can't seem to get at the > variable. > e.g > ---------- > > > )" --> > > ---------- > > This doesn't work for reasons not obvious to me. > > I've tried creating a class to handle the records. No go. > Basically, the External method can't get at the vars defined on each > loop thru the sequence returnd from the SQLMethod. > > Any insight would be appreciated. > > thanks > jb > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From webmaster@mtear.com Tue Mar 30 17:29:27 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 12:29:27 -0500 Subject: [Zope] Template Printing from Zope References: <199903302000.MAA28977@zope.codeit.com> Message-ID: <370109F7.F8B0B4E7@mtear.com> I would like to trigger a DTML document to print after the user creates it. ( There are a few documents in my project that need to be snail mailed) Circumstances aside, they aren't allowed to print from Navigator, so I'd like Zope to shoot it out without the user having to have a printer configured. If a printer is configured to work with the server, can Zope send it to lpr? I have zero experience there. :-( Any suggestions? Jason Spisak webmaster@mtear.com From bkc@murkworks.com Tue Mar 30 20:27:20 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 30 Mar 1999 16:27:20 -0400 Subject: [Zope] Template Printing from Zope In-Reply-To: <370109F7.F8B0B4E7@mtear.com> Message-ID: <199903302120.QAA18499@anvil.murkworks.com> Use the win32com extensions to encapsulate the MS IE HTML control (or browser). Get the control to load the html, then control.Print() On 30 Mar 99, at 12:29, Jason Spisak wrote: Date sent: Tue, 30 Mar 1999 12:29:27 -0500 From: Jason Spisak To: zope@zope.org Subject: [Zope] Template Printing from Zope > I would like to trigger a DTML document to print after the user creates > it. ( There are a few documents in my project that need to be snail > mailed) Circumstances aside, they aren't allowed to print from > Navigator, so I'd like Zope to shoot it out without the user having to > have a printer configured. If a printer is configured to work with the > server, can Zope send it to lpr? I have zero experience there. :-( > > Any suggestions? > > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From webmaster@mtear.com Tue Mar 30 18:58:00 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 13:58:00 -0500 Subject: [Zope] Template Printing from Zope References: <199903302120.QAA18499@anvil.murkworks.com> Message-ID: <37011EB8.8031C53D@mtear.com> Brad, Thanks. Regretably, we aren't really using any Microsoft Products (Too bad, we could have got a virus yesterday :-() The clients are(and a browser on the server could be) running Netscape Comm 4.08. I'm sure there is a similar way of controlling Netscape--Any body have a guess? Jason Spisak webmaster@mtear.com Brad Clements wrote: > > Use the win32com extensions to encapsulate the MS IE HTML control > (or browser). Get the control to load the html, then control.Print() > > On 30 Mar 99, at 12:29, Jason Spisak wrote: > > Date sent: Tue, 30 Mar 1999 12:29:27 -0500 > From: Jason Spisak > To: zope@zope.org > Subject: [Zope] Template Printing from Zope > > > I would like to trigger a DTML document to print after the user creates > > it. ( There are a few documents in my project that need to be snail > > mailed) Circumstances aside, they aren't allowed to print from > > Navigator, so I'd like Zope to shoot it out without the user having to > > have a printer configured. If a printer is configured to work with the > > server, can Zope send it to lpr? I have zero experience there. :-( > > > > Any suggestions? > > > > Jason Spisak > > webmaster@mtear.com > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 -- Jason Spisak webmaster@mtear.com From Anthony Baxter Wed Mar 31 01:18:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 31 Mar 1999 11:18:36 +1000 Subject: [Zope] Frustrating In-Reply-To: Your message of "Tue, 30 Mar 1999 07:17:28 CST." Message-ID: <199903310118.LAA01565@mbuna.arbhome.com.au> >>> "Shaw, Howard" wrote > First thing, if your product is broken you won't get anywhere. So, first > step is to delete the broken product, and shutdown and restart your zope > server. This is because Zope apparently won't replace a broken product > with a working one. Yah - this _really_ needs to be emphasised in the "how to write products" docs. It drove me nuts for about 10 minutes before I realised what was happening... From mark@interwalk.com Wed Mar 31 00:48:36 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 30 Mar 1999 16:48:36 -0800 (PST) Subject: [Zope] Ideas about implementing a dynamic site? Message-ID: <19990331004836.5871.rocketmail@web129.yahoomail.com> I am thinking about implementing a dynamic site using zope and as little python as I can get away with. The site is modeled after http://c2.com/cgi/wiki?WikiWikiWeb This is a dynamic site in that all the web pages are dynamically generated and you are allowed to edit any page right from your browser (sound familiar?) and also create new pages very easily. There are many other implementation of wikiwiki (see the WikiWikiClones link). I am interested in any creative ways of dynamically generating the pages and storing the underlying date in the objectDB. Thanks! Mark === ==================================================== Mark Interrante Hewlett Packard mark@interwalk.com mark_interrante@hp.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From chsrinfo@guetali.fr Wed Mar 31 06:36:51 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Wed, 31 Mar 1999 10:36:51 +0400 Subject: [Zope] external methods Message-ID: <003c01be7b40$e0c23560$147800a0@pc-pi0> Hello, >Well, this is an interesting question. In my experience, seldom do people >try to munge the DTML namespace from within an External Method. I guess it >could be done (perhaps by passing the special underscore variable to an >External Method), but I wonder if this is really the best way to solve your >problem. Thanks for your answer. In fact, I want to write external methods to replace DTML methods which work like a charm, but are not very readable (a lot of iterative stuff, given the fact that mySQL doesn't support sub-select) and pretty slow. I have used python for several years right now, but DTML is new for me. My users can search in our news database in several ways, that are covered by different SQL queries. However, the output of all these queries are the same, so I use a single DTML method to display the result. So the name of the ZSQL Method is only known at runtime, and I use something like: to display the result. The arguments of the query are taken from the namespace. I can also write: If I want to cook some args before feeding it to the query. All these work from DTML. Now, I want to write this in an external method. def results(self): for record in getattr(self, self.REQUEST['query'])(self): pass # do watever 'query' has to be in the form REQUEST variables (that is not a problem), but I cannot be sure that any arguments that the query need are all accessible through REQUEST. >Well let's see what's going on here. You call my method, it acquires the >REQUEST object and looks for a 'my_var', doesn't see it and returns >'boooo'. so far so good. Now you push a namespace containing only 'my_var' >on to the DTML namespace stack and call the method again. Not surprisingly >the method does the same thing as before, it acquires the REQUEST and finds >that it does not contain 'my_var' so it prints 'boooo'. Finally you call >'my_var' which is found in the DTML namespace and 'my_value' is printed. I wrote this to test wether an external method has access to the entire namespace, or only to REQUEST variables. >So the lesson is: the DTML namespace is not the same thing as the REQUEST >object. So I come back with the question: is there any way to access the DTML namespace from an external method. Apparently there is not >For more on how DTML namespace works see my advanced DTML how-to: > >http://www.zope.org/Documentation/HowTo/DTML > I have already read it. By the way, let me ask you a question (again. I already asked that, but the answer was not very clear, and I finally gave up): and are the same. So instead of writing: I usually write: But almost everyone told me that also work. So I wonder: are and the same??? The DTML User's guide say that in an expression, variable are not called by default, but _['var0'] calls var0 if possible. >My advice to you is to keep things simple. It's easy to confuse yourself >with the complexities of DTML. In general, I would suggest that your >External Methods take well defined arguments and return results, rather >than modify the objects passed to them. Then allow the DTML to pass those >arguments and munge its own namespace in response to the results of the >External Method. Of course, this schema isn't always the right one. Finally >I would suggest that you, don't munge the DTML namespace from within an >External Method unless you have a good reason to, I think that this would >make the DTML even harder to understand. To keep things simple mean I have to write several times the same external method with different queries and differents arguments each time. this is not what I want. I can remember that in DTML I only need one DTML Method. I would really like to replace some of my DTML Methods with external methods. That's enough for today. Let's take some rest :-) Regards, Jephte CLAIN, Service Informatique CHSR From piers@cs.su.oz.au Wed Mar 31 07:18:14 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Wed, 31 Mar 1999 17:18:14 +1000 Subject: [Zope] multiple SUBMIT buttons for same method, with parameter Message-ID: <129.78.8.1.126.8141.922865008.414.1008> I can use the following in a DTML document to call a specific method: But what if I wanted to have lots of them? I'd like to have multiple SUBMIT buttons, all referring to the same method but diffentiated by parameter - possible? Ie: something like: passing the parameter '1' to 'mymethod', and then later and so on. Incidentally, is the ':method' trick documented? - I can't find it in the DTML guide. From Tom.Deprez@uz.kuleuven.ac.be Wed Mar 31 08:58:51 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Wed, 31 Mar 1999 10:58:51 +0200 Subject: [Zope] One week of Zope-expirience Message-ID: <3.0.1.32.19990331105851.00931700@poirot> Hi all, First of all, thanks to all with their great support and help. At the end of last week I found out about Zope. It looked really interesting, so I wanted to give it a try. Monday after several problems and with lots of help I could manage to enter Zope. Not from Apache as I would like, but from the HTTPServer. Next I wanted to attach Zope with my PostGresSQL demo database. Boy, did it gave me some problems (and all because of my lack in knowledge of Linux). But again several people helped me and today it is solved! Yep, it is done, the hard work can begin. Now, I've to convince other people that Zope is the way to follow. At first blink, Zope is a really nice and great product. I hope it will get the attention it diserves. Still, some work on the documentation, although they already did a great job! Most thingies are written down. Kind Regards, Tom. Now some questions: 1. Have you used CSS-sheets in Zope and how did you use them? Did you incorporated them into Zope or not? Have you got a little sample? From tony.mcdonald@ncl.ac.uk Wed Mar 31 09:22:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 31 Mar 1999 10:22:53 +0100 Subject: [Zope] One week of Zope-expirience In-Reply-To: <3.0.1.32.19990331105851.00931700@poirot> References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: > >Now some questions: > >1. Have you used CSS-sheets in Zope and how did you use them? Did you >incorporated them into Zope or not? Have you got a little sample? > In Zope, this is pretty easy. Create a property at your top level of type 'lines' and called 'css' (you can also create a DTML document/method if you like). Populate it with good CSS things like (this is from the Zope site itself actually). In standard_html_header you put something like <!--#var title_or_id--> and you're away... You may want to change standard_html_header so it doesn't crash if css is not present. <!--#var title_or_id--> Now where it starts to get really cool is that all your documents *below* the top level get the CSS information by acquisition, but you can change CSS information in folders by creating a new CSS property or document within that folder. Tres Neat. hth tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tim.hawes@ncmail.net Wed Mar 31 12:48:50 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 07:48:50 -0500 Subject: [Zope] URL problems. References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: <370219B2.385E84A4@ncmail.net> I just installed Zope on a Netscape Enterprise Server (3.6). I compiled and installed the nscgiauth plugin, and all seems to run OK, except for one thing: When I try to add items to the site through the manage screen, I get: Not Found The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. Please inform the site administrator of the referring page. When I open the frame into a new window, I see that the URL looks something like: http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_addDTMLDocumentForm When I edit the URL by hand to remove the "." http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocumentForm It works fine. What is going on here, and what do I need to do to change it? I plan on having other people from other departments access resourses on Zope to create their own objects, and I need this to work right out of the box. Thanks in advance for any help. Tim Hawes tim.hawes@ncmail.net From michel@digicool.com Wed Mar 31 13:53:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 08:53:22 -0500 Subject: [Zope] URL problems. Message-ID: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> > -----Original Message----- > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > Sent: Wednesday, March 31, 1999 7:49 AM > To: Zope List > Subject: [Zope] URL problems. > > > I just installed Zope on a Netscape Enterprise Server (3.6). > I compiled > and installed the nscgiauth plugin, and all seems to run OK, > except for > one thing: > First off, your the first person (I think) that has come forward with the information that they are using any version of NES higher than 2.0, which is what the nscgiauth plugin was written for. As I have heard (but don't know) there were some significant changes between the 2.0 and higher versions of the NSAPI. So, that you got it to work at all is pretty good. > When I try to add items to the site through the manage screen, I get: > > Not Found > > The requested object does not exist on this server. > The link you > followed is either outdated, > inaccurate, or the server has been instructed not to > let you have > it. Please inform the site > administrator of the referring page. > > When I open the frame into a new window, I see that the URL looks > something like: > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > DTMLDocumentForm > > When I edit the URL by hand to remove the "." > This is unreported behavior, which leads me to think that nscgiauth needs a little tweaking. As nscgiauth is unsuported you will have to experiment with this a little. >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume ntForm >It works fine. What is going on here, and what do I need to do to change >it? I plan on having other people from other departments access resourses >on Zope to create their own objects, and I need this to work right out of >the box. If your looking to showcase this and you can't spend any time working on nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, or IIS, all of which Zope runs out of the box with. -Michel >Thanks in advance for any help. >Tim Hawes >tim.hawes@ncmail.net _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From rkw@dataplex.net Wed Mar 31 16:02:47 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 31 Mar 1999 10:02:47 -0600 (CST) Subject: [Zope] Namespace Confusion In-Reply-To: Message-ID: I think that you missed my point. "I" can write python just fine. However, every time something changes, new python functions must be written. It is desirable to allow "DTML programmers" to do simple things which they can accomplish with simple local variables. What I think I should do is create a function, "LOCAL", similar to REQUEST that stores temporary variables. Unlike REQUEST, LOCAL would be bound to the namespace multiple times, each with a different context stack. The total basket will cost Or perhaps we can trick the namespace into showing basketTotal without the LOCAL.get reference. On Wed, 31 Mar 1999, Shaw, Howard wrote: > Given your needs, I suspect a simple External Method would serve > better... > > What about the local variable? > > Any ideas? From daren@sefcik.cc Wed Mar 31 18:18:39 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 10:18:39 -0800 (PST) Subject: [Zope] Zope+Virtual Domains Message-ID: Can the Zope server provide virtual domains or do I need to use Apache?? Right now I have Apache set up with 4 virtual domains and would rather just use the default Zope httpserver. Daren From tim.hawes@ncmail.net Wed Mar 31 20:58:38 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 15:58:38 -0500 Subject: [Zope] URL problems. References: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> Message-ID: <37028C7E.5B9760D7@ncmail.net> Michel Pelletier wrote: > > -----Original Message----- > > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > > Sent: Wednesday, March 31, 1999 7:49 AM > > To: Zope List > > Subject: [Zope] URL problems. > > > > > > I just installed Zope on a Netscape Enterprise Server (3.6). > > I compiled > > and installed the nscgiauth plugin, and all seems to run OK, > > except for > > one thing: > > > > First off, your the first person (I think) that has come forward with > the information that they are using any version of NES higher than 2.0, > which is what the nscgiauth plugin was written for. As I have heard > (but don't know) there were some significant changes between the 2.0 and > higher versions of the NSAPI. So, that you got it to work at all is > pretty good. > Well, the only difference that stuck out to me were the include files for NSAPI. nscgi calls for several, but in 3.x all the header files have been combined into one, "nsapi.h". I modified nscgi.c to call for this one header file and it compiled cleanly. It does its job very well, and am not all that certain that the problem I am having is related to nscgi at all. > > > When I try to add items to the site through the manage screen, I get: > > > > Not Found > > > > The requested object does not exist on this server. > > The link you > > followed is either outdated, > > inaccurate, or the server has been instructed not to > > let you have > > it. Please inform the site > > administrator of the referring page. > > > > When I open the frame into a new window, I see that the URL looks > > something like: > > > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > > DTMLDocumentForm > > > > When I edit the URL by hand to remove the "." > > > > This is unreported behavior, which leads me to think that nscgiauth > needs a little tweaking. As nscgiauth is unsuported you will have to > experiment with this a little. > > >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume > ntForm > > >It works fine. What is going on here, and what do I need to do to > change > >it? I plan on having other people from other departments access > resourses > >on Zope to create their own objects, and I need this to work right out > of > >the box. > > If your looking to showcase this and you can't spend any time working on > nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, > or IIS, all of which Zope runs out of the box with. > Well, I am a contractor and really don't have that option. I have tried to sell the idea of using Apache here, but they have already bought massively into Netscape. If I cannot get Zope to work, I may end up recommending a commercial package, at least for this case. > > -Michel > > >Thanks in advance for any help. > > >Tim Hawes > >tim.hawes@ncmail.net > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jae@kavi.com Wed Mar 31 20:57:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 31 Mar 1999 12:57:33 -0800 (PST) Subject: [Zope] Building Zope on BSDI Message-ID: Has anyone built Zope on a BSDI machine? BSDI doesn't support shared libraries, so everything has to be statically compiled into python. I just got it to build (python w_pcgi.py finished), but there doesn't seem to be a new python binary anywhere with everything compiled in. To get it to compile, I went through and deleted all the '*shared*' from the 'Setup' files. Any tips? As a side note, I was planning on using the binary porting kit to get it built, then contributing this back to the community. But the porting kit is still Zope-1.9. Is there any plans to update the porting kit. Thanks in advance for any help, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From michel@digicool.com Wed Mar 31 21:26:34 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 16:26:34 -0500 Subject: [Zope] NotMail 0.1.0 and IMAPAdapter 0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBF0@gandalf.digicool.com> Greetings, NotMail-0.1.0 and IMAPAdapter-0.1.0 have been posted to the prereleases area of the site: http://www.zope.org/Download/Prereleases/Mail These are first beta cuts. Both programs are also available in the public CVS. IMAPAdapter allows you to work with IMAP folders and messages in the context of an authenticated IMAP user. Using IMAPAdapter, it is very easy to build IMAP client functionality into your Zope site using DTML. NotMail is a simple web IMAP client that requires IMAPAdapter. Its mail purpose is to verify the operation of IMAPAdapter and to provide an example implimentation of IMAPAdapter's client functionality. NotMail is mostly DTML, and what Python there is is just specific to sending and replying to mail, all other functionality comes from IMAPAdapter. It is important to note that IMAPAdapter looks like a user folder to Zope, in Zope parlance, we call this a user database. It's not a user folder, because it doesn't not contain users. If Zope tries to validate a user against an IMAPAdapter, the IMAPAdapter will contact the IMAP server, try to make a connection with the uid:pwd that the browser supplied, returning either a user object or None, depending on the success or failure of that connection attempt. This means that using IMAPAdapter is quite simple. Here is a snip of DTML to display all an IMAP users mail folders with the #tree tag. > () The user object that IMAPAdapter returns (if the user is valid) is placed into AUTHENTICATED_USER. emapFolderTree is one method of this user object, but there are about a dozen or so more methods to do various imap related things like adding/deleting folders and listing and fetching messages. If you plan on installing and trying out NotMail and IMAPAdapter it is important to know that you can configure the roles that IMAPAdapter associates with users that it returns. The two default associated roles are 'NotMail' and 'IMAPUser'. If you want NotMail to work, you will need to add one of these roles (or any roles you care to define as IMAPAdapter's default roles) somewhere above NotMail/IMAPAdapter and then assign that role the 'View' permission for NotMail's DTML Methods. Have Fun! -Michel From petrilli@amber.org Wed Mar 31 21:17:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 31 Mar 1999 16:17:24 -0500 Subject: [Zope] Building Zope on BSDI In-Reply-To: ; from John Eikenberry on Wed, Mar 31, 1999 at 12:57:33PM -0800 References: Message-ID: <19990331161724.E13913@amber.org> On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > libraries, so everything has to be statically compiled into python. > I just got it to build (python w_pcgi.py finished), but there doesn't seem > to be a new python binary anywhere with everything compiled in. To get it > to compile, I went through and deleted all the '*shared*' from the 'Setup' > files. Any tips? Um, what VERSION of BSDI are you using? I haven't usd anything since 3.0, but I SWEAR it has standard BSD style shared libraries, same as FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it didn't.... are you sure it just didn't auto-detect the method right? Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From John Eikenberry Wed Mar 31 22:24:50 1999 From: John Eikenberry (John Eikenberry) Date: Wed, 31 Mar 1999 14:24:50 -0800 (PST) Subject: [Zope] Building Zope on BSDI In-Reply-To: <19990331161724.E13913@amber.org> Message-ID: On Wed, 31 Mar 1999, Christopher Petrilli wrote: > On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > > libraries, so everything has to be statically compiled into python. > > I just got it to build (python w_pcgi.py finished), but there doesn't seem > > to be a new python binary anywhere with everything compiled in. To get it > > to compile, I went through and deleted all the '*shared*' from the 'Setup' > > files. Any tips? > > Um, what VERSION of BSDI are you using? I haven't usd anything since > 3.0, but I SWEAR it has standard BSD style shared libraries, same as > FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it > didn't.... are you sure it just didn't auto-detect the method right? Alright, I guess I was jumping the gun a bit with my assumptions about shared library support. It does support them, just not in a format I'm used to (based on my Linux/Solaris experience). Ok, so then mabey I messed up in autodetecting as you mentioned. How would you suggest I do this? Here's a few lines of the errors it reports when trying to compile any of the shared extensions... www ~/Zope-1.10.2-src/lib/python/SearchIndex 242> make gcc -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -I/projects/_/python -c ./Splitter.c ld Splitter.o -o Splitter.so ./Splitter.c:105: Undefined symbol _PyString_AsString referenced from text segment ./Splitter.c:114: Undefined symbol _free referenced from text segment ./Splitter.c:126: Undefined symbol _PyString_Type referenced from text segment etc.... (many more Undefined symbol errors) So... any tips for compiling the Zope extensions as shared libs? I'll probably keep working on the static python solution, as I'm actually making progress on this, and I really have no idea where to start with shared libs on BSDI (no good leads on dejanews, and egroups is non-responsive as usual). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From daren@sefcik.cc Wed Mar 31 22:57:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 14:57:27 -0800 (PST) Subject: [Zope] Zope.cgi error Message-ID: I am trying to get Zope.cgi working (Apache 1.3.4) per the Zope source instructions. When I try to access http://somedomain/cgi-bin/Zope.cgi/manage I get the following error in the http-error log: httpd: [Wed Mar 31 14:52:45 1999] [error] [client 168.240.152.202] Premature end of script headers: /usr/local/www/cgi-bin/Zope.cgi Does anybody know what this means?? TIA, Daren From Brian@digicool.com Wed Mar 31 23:48:00 1999 From: Brian@digicool.com (Brian Lloyd) Date: Wed, 31 Mar 1999 18:48:00 -0500 Subject: [Zope] Building Zope on BSDI Message-ID: <613145F79272D211914B0020AFF64019FDCB@gandalf.digicool.com> > > > Has anyone built Zope on a BSDI machine? BSDI doesn't > support shared > > > libraries, so everything has to be statically compiled > into python. > > > I just got it to build (python w_pcgi.py finished), but > there doesn't seem > > > to be a new python binary anywhere with everything > compiled in. To get it > > > to compile, I went through and deleted all the '*shared*' > from the 'Setup' > > > files. Any tips? > > So... any tips for compiling the Zope extensions as shared libs? I'll > probably keep working on the static python solution, as I'm actually > making progress on this, and I really have no idea where to start with > shared libs on BSDI (no good leads on dejanews, and egroups is > non-responsive as usual). > > Thanks, > > --- > > John Eikenberry Here are some things I've found in previous struggles to get Zope compiled on bsdish systems -- I'm no guru, though, and I've seen different things work on different bsdx flavors: o you usually need to add -rdynamic to LDSHARED in your Makefiles (this should be reported & worked into python's makefiles, IMHO) o I havent been able to get threads going on many bsd flavors - so you may not be able to pass --with-thread to configure o I find that extensions will all appear to blow up with unfound symbols (such as those you reported) - you need to run make -k and ignore the errors ;) o On some systems, I had to run make -k, ignore the errors, and rename the output .o files for the extensions to .so :( o I seem to remember having to use shlicc on .so files, but I dont recall the details... Hope this helps - please post a status rpt if you get it working, so that the gory details will at least be captured. This is the sort of thing that should be in an installation FAQ somewhere. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jeffbauer@bigfoot.com Sat Mar 20 23:12:52 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 17:12:52 -0600 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <36F42B74.A082F266@rubic.com> "James A. Hillyerd" wrote: > If I do have to continue the shutdown/restart process, is > there any way of tuning PCGI so that it loads up faster? In the pcgi/Util directory, you'll find a killpcgi.py script. You could hack it to perform a restart, i.e. launch a new pcgi process after killing the old one. This would speed up your initial connect time and be much faster during debugging (multiple restarts). Best regards, Jeff Bauer Rubicon, Inc. From rob.page@digicool.com Mon Mar 1 00:21:43 1999 From: rob.page@digicool.com (Rob Page) Date: Sun, 28 Feb 1999 19:21:43 -0500 Subject: [Zope] Z SQL Methods Message-ID: <613145F79272D211914B0020AFF640190690E5@GANDALF> > Search table foo for matches with a "like" select, user > clicks on an item > and a new query is run using params from the clicked link. > The next page > would be the result of the multitable query. > > I've not a clue how I should format the sytax for first > result returned > using DTML. Before I start into it has anyone else done this yet? If I understand you correctly, you might try something like: Step1QueryForm --------------
    sqlFoo -------- SELECT record_id, first_name, last_name, fav_color_code, postal_code FROM foo WHERE memo_field LIKE Step2QueryForm -----------------

    Click on one of the results:

    --Rob Page -- Rob Page Phone: +1 540 371 6909 Digital Creations Fax: +1 540 371 1201 From garys@magna.com.au Mon Mar 1 06:04:10 1999 From: garys@magna.com.au (Gary Stephenson) Date: Mon, 01 Mar 1999 17:04:10 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> Message-ID: <36DA2DDA.138FF09A@magna.com.au> Amos Latteier wrote: > > Correct. This is what's supposed to be there. Does the FAQ Tool not work > when you install it? Are you using Zope 1.10.2? > > -Amos My Zope Zen seem to have gone negative (started at zero - and just got worse :( ) but HOW do you install it. I could find no mention of any "lever"s in the ZMG.pdf, and I have tried as many ways as I could think of to get my Zope (1.10.2 on ZAP) to read/import the FAQ product, but no cigar - not even close! Where does one put which files, and what procedure does one go through to invoke said "Lever" functionality. Sorry about this, but surely I can't be the *only* one that is totally lost. (Come to think of it, maybe I can!) -Hoping-for-a-positive-Zope-Zen-before-the-millenium-ly yours: (I just love those signoff thingies - one day I'll even think of a good one myself!) - gary From amos@aracnet.com Mon Mar 1 08:32:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 00:32:35 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <4.1.19990228202918.00aca300@mail.atmm.nl> References: <3.0.5.32.19990227203949.01188af0@mail.aracnet.com> <003d01be62ac$c17f1260$fa01a8c0@rogue.easystreet.com> Message-ID: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> At 08:33 PM 2/28/99 +0100, Martijn Pieters wrote: >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at >home, running Win98, and I checked the source of the Product >initialisation. When I twiddle with it a bit, swicth off the try/except >errorhandling, I discovered that it is the product.dat file. Here is the >traceback: ... >It looks like the Lever isn't platform independent. It certainly looks like you are having a problem, but since I developed to FAQ Tool under win32 and it works fine for me under Linux, I don't agree with you assessment of the problem. Would you please file a bug report in the collector including this traceback. This is getting deeper than I can easily troubleshoot. Thanks. -Amos From chsrinfo@guetali.fr Mon Mar 1 09:44:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 13:44:54 +0400 Subject: [Zope] acquisition from parent within standard_html_header Message-ID: <010201be63c8$48369be0$147800a0@pc-pi0> Hello, I want to *add* content to the default standard_html_header in a subfolder that we call, say, SF. The standard_html_header in SF reads: But since an object acquire from itself, this did not work (infinite traceback, obviously because the stack is filled with recursive calls) So I wrote: And it works for object accessed within SF. But when I create sub-folder *under* SF, say SSF, I end up with an error. How could i write this? Regards, Jephte CLAIN Service Informatique CHSR From mj@atmm.nl Mon Mar 1 09:47:39 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 10:47:39 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> Message-ID: <4.1.19990301104630.00a604d0@lisp.atmm.nl> At 22:34 27/02/99 , Amos Latteier wrote: >Hi Everyone: > >As part of writing an article on Zope for WebReview, I've put together an >example FAQ Tool for Zope. If you've seen Guido's FAQ Wizard then you know >what the FAQ Tool is about. I assume this means Zope will also appear in the Application Server list of WebReview? (http://appservers.webreview.com). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:06:41 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:06:41 -0000 (GMT) Subject: [Zope] hiding tracebacks, and catching exceptions In-Reply-To: <613145F79272D211914B0020AFF6401907BA8F@GANDALF> Message-ID: On 26-Feb-99 Paul Everitt wrote: > > Julian wrote: >> On 25-Feb-99 Paul Everitt wrote: >> > >> > >> > >> >

    This page referenced a bad variable.

    >> > >> >> If I want to do this at the moment, I'm going to have to use >> an "external >> method"? > > The above would require writing a DTML tag. I meant, doing the equivalent (catching exceptions) not implementing the same syntax. --- Julian Morrison Programmer (Zereau Ltd) From mj@atmm.nl Mon Mar 1 10:11:27 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:11:27 +0100 Subject: [Zope] acquisition from parent within standard_html_header In-Reply-To: <010201be63c8$48369be0$147800a0@pc-pi0> Message-ID: <4.1.19990301110950.00a5e830@lisp.atmm.nl> At 10:44 01/03/99 , Service Informatique CHSR wrote: >Hello, > >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? > I got it working using the following code: This only works when this code is in a sub-Folder, and the standard_html_header can be found in the root folder. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 10:16:18 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 10:16:18 -0000 (GMT) Subject: [Zope] External / Internal Methods In-Reply-To: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: On 26-Feb-99 Michael Bernstein wrote: > "Christopher G. Petrilli" wrote: >> >> I vaguely recall this being discussed in the past, but I can't find it >> in my archives... >> >> Has anyone tried to make a comparable thing to an "External Method" but >> that is contained in the database itself? > > I believe that this was rejected by DC because of security issues. > Letting people store and run Python code directly in the database is > essentially the same as giving someone complete access to the system. Does python have anything equivalent to Perl's taint mode? Because if it does then this could be used. That and restricting allowable APIs from internal methods - again, if this is possible. --- Julian Morrison Programmer (Zereau Ltd) From chsrinfo@guetali.fr Mon Mar 1 10:38:49 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 1 Mar 1999 14:38:49 +0400 Subject: [Zope] Re: acquisition from parent within standard_html_header Message-ID: <011f01be63cf$d2d977c0$147800a0@pc-pi0> Hello, Sorry for the waste of bandwith. I found the problem. But the story is interresting enough to be shared. See at the end of the message. >I want to *add* content to the default standard_html_header in a subfolder >that we call, say, SF. The standard_html_header in SF reads: > > > > >But since an object acquire from itself, this did not work (infinite >traceback, >obviously because the stack is filled with recursive calls) >So I wrote: > > > >And it works for object accessed within SF. But when I create sub-folder >*under* >SF, say SSF, I end up with an error. > >How could i write this? Well, I found that standard_html_header were called several times, and that's what caused the error. Let SF/standard_html_header be: --------8<-------- Hello! --------8<-------- Then, when I access http://mysite/SF, I get: --------8<-------- [pretty standard_html_header] Hello! Hello! This is the index_html document in SF. --------8<-------- Why is Hello! printed twice??? From SSF, I get Hello! printed 3 times... Regards, CLAIN Jephte Service Informatique CHSR. From chalaouxf@synbio.tpgnet.net Mon Mar 1 10:22:37 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 1 Mar 1999 11:22:37 +0100 Subject: [Zope] Find something in Zope mailing list Message-ID: <19990301104352489.AAB134@[195.10.9.163]> Hi, It becomes difficult to find something in Zope mailing list. Is there a find tool to look inside message aera? FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From mj@atmm.nl Mon Mar 1 10:43:12 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 11:43:12 +0100 Subject: [Zope] Find something in Zope mailing list In-Reply-To: <19990301104352489.AAB134@[195.10.9.163]> Message-ID: <4.1.19990301114206.00a7dd60@lisp.atmm.nl> At 11:22 01/03/99 , FR Chalaoux wrote: >Hi, > >It becomes difficult to find something in Zope mailing list. >Is there a find tool to look inside message aera? > >FR > EGroups archives the mailinglist. At http://www.egroups.com/lists/zope you can find a search interface, which quite often actually works. -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Mon Mar 1 11:49:43 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 06:49:43 -0500 Subject: [Zope] Incoming mail, scheduling Message-ID: <613145F79272D211914B0020AFF6401907BAAA@GANDALF> Eric wrote: > Hmmmm. I'd prefer it if users could add tasks without > bothering me, but not > all of them can cope with cron. What's the stuff in the > lib/python/Scheduler directory? Unfortunately the word "comatose" springs to mind. :^( We need to get our concurrency story in better shape to allow multiple things happening simultaneously. --Paul From raver@box.dust.za.net Mon Mar 1 12:22:34 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 13:22:34 +0100 Subject: [Zope] Zope and Apache - again Message-ID: <19990301132234.A682@RaVER.duck.org> Hi all! I know the question has been up to debate earlier on the list, but still... I can't get Apache to send authorization headers on to Zope - even tough I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite and to let apache authenticate /cgi-bin/Zope/). I also grabbed the latest Zap release, but that one din't work (broken?). Also had a look at the zap.conf file and tried using some in my httpd.conf file, but I still had no luck. Now - here is my current config: Linux 2.0.35 Python 1.5.1 Zope 1.10.2 Apache 1.3.4 Something there that doesn't play well together? If not - what is wrong?? Appreciate all the help I can get! Sture Lygren From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 12:28:49 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 12:28:49 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> This may sound like a bit of an obvious suggestion, but it caught me out. Check the Directory directive for /cgi-bin and make sure that the ExecCGI option is set. It should look something like this: AllowOverride none Options ExecCGi Order allow,deny Allow from all Apache 1.3.4 by default doesn't have the ExecCGI option set. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 12:22 PM Subject: [Zope] Zope and Apache - again >Hi all! > >I know the question has been up to debate earlier on the list, but still... > >I can't get Apache to send authorization headers on to Zope - even tough >I've tried to do what the doc/WEBSERVER.txt tells me to (tried both rewrite >and to let apache authenticate /cgi-bin/Zope/). I also grabbed the >latest Zap release, but that one din't work (broken?). Also had a look at >the zap.conf file and tried using some in my httpd.conf file, but I still >had no luck. > >Now - here is my current config: > >Linux 2.0.35 >Python 1.5.1 >Zope 1.10.2 >Apache 1.3.4 > >Something there that doesn't play well together? > >If not - what is wrong?? > >Appreciate all the help I can get! > >Sture Lygren > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From bkc@murkworks.com Mon Mar 1 12:21:11 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 08:21:11 -0400 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> References: <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <199903011315.IAA25687@anvil.murkworks.com> On 1 Mar 99, at 0:32, Amos Latteier wrote: > >No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this > >at home, running Win98, and I checked the source of the Product > >initialisation. When I twiddle with it a bit, swicth off the try/except > >errorhandling, I discovered that it is the product.dat file. Here is the > >traceback: > ... I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down. I'm running 1.10.2 on NT with ZServer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From mj@atmm.nl Mon Mar 1 14:08:20 1999 From: mj@atmm.nl (Martijn Pieters) Date: Mon, 01 Mar 1999 15:08:20 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <199903011315.IAA25687@anvil.murkworks.com> References: <3.0.5.32.19990301003235.01189970@mail.aracnet.com> <4.1.19990228202918.00aca300@mail.atmm.nl> Message-ID: <4.1.19990301145717.00a06d60@lisp.atmm.nl> At 13:21 01/03/99 , Brad Clements wrote: >I don't get a traceback because I didn't "fiddle", the FAQ item shows up >in the control panel, but is not in the Add drop-down. > >I'm running 1.10.2 on NT with ZServer. The 'fiddling' involves disbling the exception handling of the product initialisation. Normally, a 'Levered' product, that has been distributed, has a product.dat file. This file contains the compressed pickled reprensentation of the product, which basicly consists of other Zope objects, with a Principia Factory. When Zope can't uncompress and depickle the product.dat file, you only get to see that the Product is installed, but it doesn't contain anything (which a Levered Product actually should), and nothing else happens or can happen. If you want to know more on how to use the 'Lever', read up at http://www.zope.org/Documentation/Guides/ZMG/ZMG-HTML/ZMG.html#pgfId-986684 (Zope Manager's Guide, Creating Zoipe Products). When you disable the exception handling in initializeProduct in Product.py, and restart Zope, it will exit with the traceback I reported. I have reported this to DC with the Collector, but I used Win98. You are using WinNT, which is interesting.. Something goes wrong with decompressing the product.dat file on win32 platforms (Amos says he tested it succesfully on Linux). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From julian@zereau.net Mon Mar 1 14:14:22 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 01 Mar 1999 14:14:22 -0000 (GMT) Subject: [Zope] inclusions from external methods Message-ID: What is the equivalent of from an external method? --- Julian Morrison Programmer (Zereau Ltd) From petrilli@amber.org Mon Mar 1 14:50:12 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 09:50:12 -0500 Subject: [Zope] External / Internal Methods In-Reply-To: ; from julian@zereau.net on Mon, Mar 01, 1999 at 10:16:18AM -0000 References: <36D700F4.7A4D9CA2@profitscape.net> Message-ID: <19990301095012.53908@amber.org> On Mon, Mar 01, 1999 at 10:16:18AM -0000, julian@zereau.net wrote: > > On 26-Feb-99 Michael Bernstein wrote: > > "Christopher G. Petrilli" wrote: > >> > >> I vaguely recall this being discussed in the past, but I can't find it > >> in my archives... > >> > >> Has anyone tried to make a comparable thing to an "External Method" but > >> that is contained in the database itself? > > > > I believe that this was rejected by DC because of security issues. > > Letting people store and run Python code directly in the database is > > essentially the same as giving someone complete access to the system. > > Does python have anything equivalent to Perl's taint mode? Because if it does > then this could be used. That and restricting allowable APIs from internal > methods - again, if this is possible. > I don't want to get into a language war, but as someone who lives and breathes security, taint mode is a joke. Python's rexec module would be great (as would Bastion), but this is going to require a much higher level of ZopeZen to implement than I currently have. Yes I know my proposal was wrought with huge security problems, but regardless it is valuable to a some people in the near term (such as those of us on the STarship). BTW, requiring write access to the file system is only trivially more secure. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Mon Mar 1 15:54:04 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 16:54:04 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk>; from Phil Harris on Mon, Mar 01, 1999 at 12:28:49PM -0000 References: <006b01be63df$0f6e3450$5c773fc1@ml.uwcm.ac.uk> Message-ID: <19990301165404.A981@RaVER.duck.org> On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: > This may sound like a bit of an obvious suggestion, but it caught me out. > > Check the Directory directive for /cgi-bin and make sure that > the ExecCGI option is set. > > It should look something like this: > > > AllowOverride none > Options ExecCGi > Order allow,deny > Allow from all > > > Apache 1.3.4 by default doesn't have the ExecCGI option set. > > HTH > > Phil > ----- Original Message ----- > From: > To: > Sent: Monday, March 01, 1999 12:22 PM > Subject: [Zope] Zope and Apache - again > > Unfortunately the ExecCGI option didn't help much. Thanks anyways. I'm still stuck at the point where I get 'Authorization failed'. I've checked and double checked my Zope/access file and I use correct username and passwd. The filepermissions should also be set correct (according to the instructions given in the INSTALL.txt file). Problem is, as far as I can tell, connected to the way the rewrite module does the rewrite.... Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the authorization header actually works? If it works - is there someone that can say exactly how apache should be configured and compiled to get it working (best of all also put in a working httpd.conf also)? And again.....Appreciate all teh help I can get! From Paul@digicool.com Mon Mar 1 16:03:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 11:03:24 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> > If it works - is there someone that can say exactly how > apache should be > configured and compiled to get it working (best of all also > put in a working > httpd.conf also)? We'd prefer that you start with the Zap distribution, as it removes a whole bunch of variables. Can you tell us what was the error with using Zap? --Paul From wmlph@d033.ml.uwcm.ac.uk Mon Mar 1 16:01:14 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 1 Mar 1999 16:01:14 -0000 Subject: [Zope] Zope and Apache - again Message-ID: <00cc01be63fc$bbf4e5d0$5c773fc1@ml.uwcm.ac.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Well the WEBSERVER.txt instructions work for me. Find attached a working httpd.conf. Also attahced is a module listing from my 'httpd'. HTH Phil ----- Original Message ----- From: To: Sent: Monday, March 01, 1999 3:54 PM Subject: Re: [Zope] Zope and Apache - again >On Mon, Mar 01, 1999 at 12:28:49PM -0000, Phil Harris wrote: >> This may sound like a bit of an obvious suggestion, but it caught me out. >> >> Check the Directory directive for /cgi-bin and make sure that >> the ExecCGI option is set. >> >> It should look something like this: >> >> >> AllowOverride none >> Options ExecCGi >> Order allow,deny >> Allow from all >> >> >> Apache 1.3.4 by default doesn't have the ExecCGI option set. >> >> HTH >> >> Phil >> ----- Original Message ----- >> From: >> To: >> Sent: Monday, March 01, 1999 12:22 PM >> Subject: [Zope] Zope and Apache - again >> >> > >Unfortunately the ExecCGI option didn't help much. Thanks anyways. > >I'm still stuck at the >point where I get 'Authorization failed'. I've checked and double checked my >Zope/access file and I use correct username and passwd. The filepermissions >should also be set correct (according to the instructions given in the >INSTALL.txt file). Problem is, as far as I can tell, connected to the way >the rewrite module does the rewrite.... > >Has anyone confirmed that the way the WEBSERVER.txt file says to rewrite the >authorization header actually works? > >If it works - is there someone that can say exactly how apache should be >configured and compiled to get it working (best of all also put in a working >httpd.conf also)? > >And again.....Appreciate all teh help I can get! > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.list" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.list" Compiled-in modules:=0A= http_core.c=0A= mod_mmap_static.c=0A= mod_env.c=0A= mod_log_config.c=0A= mod_log_agent.c=0A= mod_log_referer.c=0A= mod_mime_magic.c=0A= mod_mime.c=0A= mod_negotiation.c=0A= mod_status.c=0A= mod_info.c=0A= mod_include.c=0A= mod_autoindex.c=0A= mod_dir.c=0A= mod_cgi.c=0A= mod_asis.c=0A= mod_imap.c=0A= mod_actions.c=0A= mod_speling.c=0A= mod_userdir.c=0A= mod_proxy.c=0A= mod_alias.c=0A= mod_rewrite.c=0A= mod_access.c=0A= mod_auth.c=0A= mod_auth_anon.c=0A= mod_auth_dbm.c=0A= mod_auth_db.c=0A= mod_digest.c=0A= mod_cern_meta.c=0A= mod_expires.c=0A= mod_headers.c=0A= mod_usertrack.c=0A= mod_example.c=0A= mod_unique_id.c=0A= mod_so.c=0A= mod_setenvif.c=0A= mod_php3.c=0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410 Content-Type: application/octet-stream; name="httpd.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.conf" ##=0A= ## httpd.conf -- Apache HTTP server configuration file=0A= ##=0A= =0A= #=0A= # Based upon the NCSA server configuration files originally by Rob = McCool.=0A= #=0A= # This is the main Apache server configuration file. It contains the=0A= # configuration directives that give the server its instructions.=0A= # See for detailed information about=0A= # the directives.=0A= #=0A= # Do NOT simply read the instructions in here without understanding=0A= # what they do. They're here only as hints or reminders. If you are = unsure=0A= # consult the online docs. You have been warned. =0A= #=0A= # After this file is processed, the server will look for and process=0A= # /www/conf/srm.conf and then /www/conf/access.conf=0A= # unless you have overridden these with ResourceConfig and/or=0A= # AccessConfig directives here.=0A= #=0A= # The configuration directives are grouped into three basic sections:=0A= # 1. Directives that control the operation of the Apache server process = as a=0A= # whole (the 'global environment').=0A= # 2. Directives that define the parameters of the 'main' or 'default' = server,=0A= # which responds to requests that aren't handled by a virtual host.=0A= # These directives also provide default values for the settings=0A= # of all virtual hosts.=0A= # 3. Settings for virtual hosts, which allow Web requests to be sent to=0A= # different IP addresses or hostnames and have them handled by the=0A= # same Apache server process.=0A= #=0A= # Configuration and logfile names: If the filenames you specify for many=0A= # of the server's control files begin with "/" (or "drive:/" for Win32), = the=0A= # server will use that explicit path. If the filenames do *not* begin=0A= # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"=0A= # with ServerRoot set to "/usr/local/apache" will be interpreted by the=0A= # server as "/usr/local/apache/logs/foo.log".=0A= #=0A= =0A= ### Section 1: Global Environment=0A= #=0A= # The directives in this section affect the overall operation of Apache,=0A= # such as the number of concurrent requests it can handle or where it=0A= # can find its configuration files.=0A= #=0A= =0A= #=0A= # ServerType is either inetd, or standalone. Inetd mode is only = supported on=0A= # Unix platforms.=0A= #=0A= ServerType standalone=0A= =0A= #=0A= # ServerRoot: The top of the directory tree under which the server's=0A= # configuration, error, and log files are kept.=0A= #=0A= # NOTE! If you intend to place this on an NFS (or otherwise network)=0A= # mounted filesystem then please read the LockFile documentation=0A= # (available at );=0A= # you will save yourself a lot of trouble.=0A= #=0A= # Do NOT add a slash at the end of the directory path.=0A= #=0A= ServerRoot "/www"=0A= =0A= #=0A= # The LockFile directive sets the path to the lockfile used when Apache=0A= # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or=0A= # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at=0A= # its default value. The main reason for changing it is if the logs=0A= # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL=0A= # DISK. The PID of the main server process is automatically appended to=0A= # the filename. =0A= #=0A= #LockFile /www/logs/httpd.lock=0A= =0A= #=0A= # PidFile: The file in which the server should record its process=0A= # identification number when it starts.=0A= #=0A= PidFile /www/logs/httpd.pid=0A= =0A= #=0A= # ScoreBoardFile: File used to store internal server process information.=0A= # Not all architectures require this. But if yours does (you'll know = because=0A= # this file will be created when you run Apache) then you *must* ensure = that=0A= # no two invocations of Apache share the same scoreboard file.=0A= #=0A= ScoreBoardFile /www/logs/httpd.scoreboard=0A= =0A= #=0A= # In the standard configuration, the server will process httpd.conf,=0A= # srm.conf, and access.conf in that order. The latter two files are=0A= # now distributed empty, as it is recommended that all directives=0A= # be kept in a single file for simplicity. The commented-out values=0A= # below are the built-in defaults. You can have the server ignore=0A= # these files altogether by using "/dev/null" (for Unix) or=0A= # "nul" (for Win32) for the arguments to the directives.=0A= #=0A= #ResourceConfig conf/srm.conf=0A= #AccessConfig conf/access.conf=0A= =0A= #=0A= # Timeout: The number of seconds before receives and sends time out.=0A= #=0A= Timeout 300=0A= =0A= #=0A= # KeepAlive: Whether or not to allow persistent connections (more than=0A= # one request per connection). Set to "Off" to deactivate.=0A= #=0A= KeepAlive On=0A= =0A= #=0A= # MaxKeepAliveRequests: The maximum number of requests to allow=0A= # during a persistent connection. Set to 0 to allow an unlimited amount.=0A= # We recommend you leave this number high, for maximum performance.=0A= #=0A= MaxKeepAliveRequests 100=0A= =0A= #=0A= # KeepAliveTimeout: Number of seconds to wait for the next request from = the=0A= # same client on the same connection.=0A= #=0A= KeepAliveTimeout 15=0A= =0A= #=0A= # Server-pool size regulation. Rather than making you guess how many=0A= # server processes you need, Apache dynamically adapts to the load it=0A= # sees --- that is, it tries to maintain enough server processes to=0A= # handle the current load, plus a few spare servers to handle transient=0A= # load spikes (e.g., multiple simultaneous requests from a single=0A= # Netscape browser).=0A= #=0A= # It does this by periodically checking how many servers are waiting=0A= # for a request. If there are fewer than MinSpareServers, it creates=0A= # a new spare. If there are more than MaxSpareServers, some of the=0A= # spares die off. The default values in httpd.conf-dist are probably OK=0A= # for most sites.=0A= #=0A= MinSpareServers 5=0A= MaxSpareServers 10=0A= =0A= #=0A= # Number of servers to start initially --- should be a reasonable = ballpark=0A= # figure.=0A= #=0A= StartServers 5=0A= =0A= #=0A= # Limit on total number of servers running, i.e., limit on the number=0A= # of clients who can simultaneously connect --- if this limit is ever=0A= # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.=0A= # It is intended mainly as a brake to keep a runaway server from taking=0A= # the system with it as it spirals down...=0A= #=0A= MaxClients 150=0A= =0A= #=0A= # MaxRequestsPerChild: the number of requests each child process is=0A= # allowed to process before the child dies. The child will exit so=0A= # as to avoid problems after prolonged use when Apache (and maybe the=0A= # libraries it uses) leak memory or other resources. On most systems, = this=0A= # isn't really needed, but a few (such as Solaris) do have notable leaks=0A= # in the libraries.=0A= #=0A= MaxRequestsPerChild 30=0A= =0A= #=0A= # Listen: Allows you to bind Apache to specific IP addresses and/or=0A= # ports, in addition to the default. See also the =0A= # directive.=0A= #=0A= #Listen 3000=0A= #Listen 12.34.56.78:80=0A= =0A= #=0A= # BindAddress: You can support virtual hosts with this option. This = directive=0A= # is used to tell the server which IP address to listen to. It can either=0A= # contain "*", an IP address, or a fully qualified Internet domain name.=0A= # See also the and Listen directives.=0A= #=0A= #BindAddress *=0A= =0A= #=0A= # Dynamic Shared Object (DSO) Support=0A= #=0A= # To be able to use the functionality of a module which was built as a = DSO you=0A= # have to place corresponding `LoadModule' lines at this location so the=0A= # directives contained in it are actually available _before_ they are = used.=0A= # Please read the file README.DSO in the Apache 1.3 distribution for more=0A= # details about the DSO mechanism and run `httpd -l' for the list of = already=0A= # built-in (statically linked and thus always available) modules in your = httpd=0A= # binary.=0A= #=0A= # Note: The order is which modules are loaded is important. Don't change=0A= # the order below without expert advice.=0A= #=0A= # Example:=0A= # LoadModule foo_module libexec/mod_foo.so=0A= =0A= #=0A= # ExtendedStatus controls whether Apache will generate "full" status=0A= # information (ExtendedStatus On) or just basic information = (ExtendedStatus=0A= # Off) when the "server-status" handler is called. The default is Off.=0A= #=0A= #ExtendedStatus On=0A= =0A= ### Section 2: 'Main' server configuration=0A= #=0A= # The directives in this section set up the values used by the 'main'=0A= # server, which responds to any requests that aren't handled by a=0A= # definition. These values also provide defaults for=0A= # any containers you may define later in the file.=0A= #=0A= # All of these directives may appear inside containers,=0A= # in which case these default settings will be overridden for the=0A= # virtual host being defined.=0A= #=0A= =0A= #=0A= # If your ServerType directive (set earlier in the 'Global Environment'=0A= # section) is set to "inetd", the next few directives don't have any=0A= # effect since their settings are defined by the inetd configuration.=0A= # Skip ahead to the ServerAdmin directive.=0A= #=0A= =0A= #=0A= # Port: The port to which the standalone server listens. For=0A= # ports < 1023, you will need httpd to be run as root initially.=0A= #=0A= Port 80=0A= =0A= #=0A= # If you wish httpd to run as a different user or group, you must run=0A= # httpd as root initially and it will switch. =0A= #=0A= # User/Group: The name (or #number) of the user/group to run httpd as.=0A= # . On SCO (ODT 3) use "User nouser" and "Group nogroup".=0A= # . On HPUX you may not be able to use shared memory as nobody, and the=0A= # suggested workaround is to create a user www and use that user.=0A= # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)=0A= # when the value of (unsigned)Group is above 60000; =0A= # don't use Group nogroup on these systems!=0A= #=0A= User nobody=0A= Group nogroup=0A= =0A= #=0A= # ServerAdmin: Your address, where problems with the server should be=0A= # e-mailed. This address appears on some server-generated pages, such=0A= # as error documents.=0A= #=0A= ServerAdmin root@d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # ServerName allows you to set a host name which is sent back to clients = for=0A= # your server if it's different than the one the program would get = (i.e., use=0A= # "www" instead of the host's real name).=0A= #=0A= # Note: You cannot just invent host names and hope they work. The name = you =0A= # define here must be a valid DNS name for your host. If you don't = understand=0A= # this, ask your network administrator.=0A= # If your host doesn't have a registered DNS name, enter its IP address = here.=0A= # You will have to access it by its address (e.g., http://123.45.67.89/)=0A= # anyway, and this will make redirections work in a sensible way.=0A= #=0A= ServerName d033.ml.uwcm.ac.uk=0A= =0A= #=0A= # DocumentRoot: The directory out of which you will serve your=0A= # documents. By default, all requests are taken from this directory, but=0A= # symbolic links and aliases may be used to point to other locations.=0A= #=0A= DocumentRoot "/www/htdocs"=0A= =0A= #=0A= # Each directory to which Apache has access, can be configured with = respect=0A= # to which services and features are allowed and/or disabled in that=0A= # directory (and its subdirectories). =0A= #=0A= # First, we configure the "default" to be a very restrictive set of =0A= # permissions. =0A= #=0A= =0A= Options FollowSymLinks=0A= AllowOverride None=0A= =0A= =0A= #=0A= # Note that from this point forward you must specifically allow=0A= # particular features to be enabled - so if something's not working as=0A= # you might expect, make sure that you have specifically enabled it=0A= # below.=0A= #=0A= =0A= #=0A= # This should be changed to whatever you set DocumentRoot to.=0A= #=0A= =0A= =0A= #=0A= # This may also be "None", "All", or any combination of "Indexes",=0A= # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".=0A= #=0A= # Note that "MultiViews" must be named *explicitly* --- "Options All"=0A= # doesn't give it to you.=0A= #=0A= Options Indexes FollowSymLinks=0A= =0A= #=0A= # This controls which options the .htaccess files in directories can=0A= # override. Can also be "All", or any combination of "Options", = "FileInfo", =0A= # "AuthConfig", and "Limit"=0A= #=0A= AllowOverride None=0A= =0A= #=0A= # Controls who can get stuff from this server.=0A= #=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # UserDir: The name of the directory which is appended onto a user's home=0A= # directory if a ~user request is received.=0A= #=0A= UserDir public_html=0A= =0A= #=0A= # Control access to UserDir directories. The following is an example=0A= # for a site where these directories are restricted to read-only.=0A= #=0A= #=0A= # AllowOverride FileInfo AuthConfig Limit=0A= # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec=0A= # =0A= # Order allow,deny=0A= # Allow from all=0A= # =0A= # =0A= # Order deny,allow=0A= # Deny from all=0A= # =0A= #=0A= =0A= #=0A= # DirectoryIndex: Name of the file or files to use as a pre-written HTML=0A= # directory index. Separate multiple entries with spaces.=0A= #=0A= DirectoryIndex index.html=0A= =0A= #=0A= # AccessFileName: The name of the file to look for in each directory=0A= # for access control information.=0A= #=0A= AccessFileName .htaccess=0A= =0A= #=0A= # The following lines prevent .htaccess files from being viewed by=0A= # Web clients. Since .htaccess files often contain authorization=0A= # information, access is disallowed for security reasons. Comment=0A= # these lines out if you want Web visitors to see the contents of=0A= # .htaccess files. If you change the AccessFileName directive above,=0A= # be sure to make the corresponding changes here.=0A= #=0A= =0A= Order allow,deny=0A= Deny from all=0A= =0A= =0A= #=0A= # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with = each=0A= # document that was negotiated on the basis of content. This asks proxy=0A= # servers not to cache the document. Uncommenting the following line = disables=0A= # this behavior, and proxies will be allowed to cache the documents.=0A= #=0A= #CacheNegotiatedDocs=0A= =0A= #=0A= # UseCanonicalName: (new for 1.3) With this setting turned on, whenever=0A= # Apache needs to construct a self-referencing URL (a URL that refers = back=0A= # to the server the response is coming from) it will use ServerName and=0A= # Port to form a "canonical" name. With this setting off, Apache will=0A= # use the hostname:port that the client supplied, when possible. This=0A= # also affects SERVER_NAME and SERVER_PORT in CGI scripts.=0A= #=0A= UseCanonicalName On=0A= =0A= #=0A= # TypesConfig describes where the mime.types file (or equivalent) is=0A= # to be found.=0A= #=0A= TypesConfig /www/conf/mime.types=0A= =0A= #=0A= # DefaultType is the default MIME type the server will use for a document=0A= # if it cannot otherwise determine one, such as from filename extensions.=0A= # If your server contains mostly text or HTML documents, "text/plain" is=0A= # a good value. If most of your content is binary, such as applications=0A= # or images, you may want to use "application/octet-stream" instead to=0A= # keep browsers from trying to display binary files as though they are=0A= # text.=0A= #=0A= DefaultType text/plain=0A= =0A= #=0A= # The mod_mime_magic module allows the server to use various hints from = the=0A= # contents of the file itself to determine its type. The MIMEMagicFile=0A= # directive tells the module where the hint definitions are located.=0A= # mod_mime_magic is not part of the default server (you have to add=0A= # it yourself with a LoadModule [see the DSO paragraph in the 'Global=0A= # Environment' section], or recompile the server and include = mod_mime_magic=0A= # as part of the configuration), so it's enclosed in an = container.=0A= # This means that the MIMEMagicFile directive will only be processed if = the=0A= # module is part of the server.=0A= #=0A= =0A= MIMEMagicFile /www/conf/magic=0A= =0A= =0A= #=0A= # HostnameLookups: Log the names of clients or just their IP addresses=0A= # e.g., www.apache.org (on) or 204.62.129.132 (off).=0A= # The default is off because it'd be overall better for the net if people=0A= # had to knowingly turn this feature on, since enabling it means that=0A= # each client request will result in AT LEAST one lookup request to the=0A= # nameserver.=0A= #=0A= HostnameLookups Off=0A= =0A= #=0A= # ErrorLog: The location of the error log file.=0A= # If you do not specify an ErrorLog directive within a =0A= # container, error messages relating to that virtual host will be=0A= # logged here. If you *do* define an error logfile for a =0A= # container, that host's errors will be logged there and not here.=0A= #=0A= ErrorLog /www/logs/error_log=0A= =0A= #=0A= # LogLevel: Control the number of messages logged to the error_log.=0A= # Possible values include: debug, info, notice, warn, error, crit,=0A= # alert, emerg.=0A= #=0A= LogLevel warn=0A= =0A= #=0A= # The following directives define some format nicknames for use with=0A= # a CustomLog directive (see below).=0A= #=0A= LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" = combined=0A= LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A= LogFormat "%{Referer}i -> %U" referer=0A= LogFormat "%{User-agent}i" agent=0A= =0A= #=0A= # The location and format of the access logfile (Common Logfile Format).=0A= # If you do not define any access logfiles within a =0A= # container, they will be logged here. Contrariwise, if you *do*=0A= # define per- access logfiles, transactions will be=0A= # logged therein and *not* in this file.=0A= #=0A= CustomLog /www/logs/access_log common=0A= =0A= #=0A= # If you would like to have agent and referer logfiles, uncomment the=0A= # following directives.=0A= #=0A= CustomLog /www/logs/referer_log referer=0A= CustomLog /www/logs/agent_log agent=0A= =0A= #=0A= # If you prefer a single logfile with access, agent, and referer = information=0A= # (Combined Logfile Format) you can use the following directive.=0A= #=0A= CustomLog /www/logs/access_log combined=0A= =0A= #=0A= # Optionally add a line containing the server version and virtual host=0A= # name to server-generated pages (error documents, FTP directory = listings,=0A= # mod_status and mod_info output etc., but not CGI generated documents).=0A= # Set to "EMail" to also include a mailto: link to the ServerAdmin.=0A= # Set to one of: On | Off | EMail=0A= #=0A= ServerSignature On=0A= =0A= #=0A= # Aliases: Add here as many aliases as you need (with no limit). The = format is =0A= # Alias fakename realname=0A= #=0A= # Note that if you include a trailing / on fakename then the server will=0A= # require it to be present in the URL. So "/icons" isn't aliased in this=0A= # example, only "/icons/"..=0A= #=0A= Alias /icons/ "/www/icons/"=0A= =0A= =0A= Options Indexes MultiViews=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # ScriptAlias: This controls which directories contain server scripts.=0A= # ScriptAliases are essentially the same as Aliases, except that=0A= # documents in the realname directory are treated as applications and=0A= # run by the server when requested rather than as documents sent to the = client.=0A= # The same rules about trailing "/" apply to ScriptAlias directives as to=0A= # Alias.=0A= #=0A= ScriptAlias /cgi-bin/ "/www/cgi-bin/"=0A= ScriptAlias /Zope/ "/www/cgi-bin/Zope/"=0A= =0A= #=0A= # "/www/cgi-bin" should be changed to whatever your ScriptAliased=0A= # CGI directory exists, if you have that configured.=0A= #=0A= =0A= AllowOverride none=0A= Options ExecCGI=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # Redirect allows you to tell clients about documents which used to = exist in=0A= # your server's namespace, but do not anymore. This allows you to tell = the=0A= # clients where to look for the relocated document.=0A= # Format: Redirect old-URI new-URL=0A= #=0A= =0A= #=0A= # Directives controlling the display of server-generated directory = listings.=0A= #=0A= =0A= #=0A= # FancyIndexing is whether you want fancy directory indexing or standard=0A= #=0A= IndexOptions FancyIndexing=0A= =0A= #=0A= # AddIcon* directives tell the server which icon to show for different=0A= # files or filename extensions. These are only displayed for=0A= # FancyIndexed directories.=0A= #=0A= AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A= =0A= AddIconByType (TXT,/icons/text.gif) text/*=0A= AddIconByType (IMG,/icons/image2.gif) image/*=0A= AddIconByType (SND,/icons/sound2.gif) audio/*=0A= AddIconByType (VID,/icons/movie.gif) video/*=0A= =0A= AddIcon /icons/binary.gif .bin .exe=0A= AddIcon /icons/binhex.gif .hqx=0A= AddIcon /icons/tar.gif .tar=0A= AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A= AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip=0A= AddIcon /icons/a.gif .ps .ai .eps=0A= AddIcon /icons/layout.gif .html .shtml .htm .pdf=0A= AddIcon /icons/text.gif .txt=0A= AddIcon /icons/c.gif .c=0A= AddIcon /icons/p.gif .pl .py=0A= AddIcon /icons/f.gif .for=0A= AddIcon /icons/dvi.gif .dvi=0A= AddIcon /icons/uuencoded.gif .uu=0A= AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A= AddIcon /icons/tex.gif .tex=0A= AddIcon /icons/bomb.gif core=0A= =0A= AddIcon /icons/back.gif ..=0A= AddIcon /icons/hand.right.gif README=0A= AddIcon /icons/folder.gif ^^DIRECTORY^^=0A= AddIcon /icons/blank.gif ^^BLANKICON^^=0A= =0A= #=0A= # DefaultIcon is which icon to show for files which do not have an icon=0A= # explicitly set.=0A= #=0A= DefaultIcon /icons/unknown.gif=0A= =0A= #=0A= # AddDescription allows you to place a short description after a file in=0A= # server-generated indexes. These are only displayed for FancyIndexed=0A= # directories.=0A= # Format: AddDescription "description" filename=0A= #=0A= #AddDescription "GZIP compressed document" .gz=0A= #AddDescription "tar archive" .tar=0A= #AddDescription "GZIP compressed tar archive" .tgz=0A= =0A= #=0A= # ReadmeName is the name of the README file the server will look for by=0A= # default, and append to directory listings.=0A= #=0A= # HeaderName is the name of a file which should be prepended to=0A= # directory indexes. =0A= #=0A= # The server will first look for name.html and include it if found.=0A= # If name.html doesn't exist, the server will then look for name.txt=0A= # and include it as plaintext if found.=0A= #=0A= ReadmeName README=0A= HeaderName HEADER=0A= =0A= #=0A= # IndexIgnore is a set of filenames which directory indexing should = ignore=0A= # and not include in the listing. Shell-style wildcarding is permitted.=0A= #=0A= IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t=0A= =0A= #=0A= # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) = uncompress=0A= # information on the fly. Note: Not all browsers support this.=0A= # Despite the name similarity, the following Add* directives have nothing=0A= # to do with the FancyIndexing customization directives above.=0A= #=0A= AddEncoding x-compress Z=0A= AddEncoding x-gzip gz=0A= =0A= #=0A= # AddLanguage allows you to specify the language of a document. You can=0A= # then use content negotiation to give a browser a file in a language=0A= # it can understand. Note that the suffix does not have to be the same=0A= # as the language keyword --- those with documents in Polish (whose=0A= # net-standard language code is pl) may wish to use "AddLanguage pl .po" =0A= # to avoid the ambiguity with the common suffix for perl scripts.=0A= #=0A= AddLanguage en .en=0A= AddLanguage fr .fr=0A= AddLanguage de .de=0A= AddLanguage da .da=0A= AddLanguage el .el=0A= AddLanguage it .it=0A= =0A= #=0A= # LanguagePriority allows you to give precedence to some languages=0A= # in case of a tie during content negotiation.=0A= # Just list the languages in decreasing order of preference.=0A= #=0A= LanguagePriority en fr de=0A= =0A= #=0A= # AddType allows you to tweak mime.types without actually editing it, or = to=0A= # make certain files to be certain types.=0A= #=0A= # For example, the PHP3 module (not part of the Apache distribution)=0A= # will typically use:=0A= #=0A= AddType application/x-httpd-php3 .phtml .php3=0A= AddType application/x-httpd-php3-source .phps=0A= =0A= #=0A= # AddHandler allows you to map certain file extensions to "handlers",=0A= # actions unrelated to filetype. These can be either built into the = server=0A= # or added with the Action command (see below)=0A= #=0A= # If you want to use server side includes, or CGI outside=0A= # ScriptAliased directories, uncomment the following lines.=0A= #=0A= # To use CGI scripts:=0A= #=0A= AddHandler cgi-script .cgi=0A= AddHandler cgi-script .pl=0A= =0A= #=0A= # To use server-parsed HTML files=0A= #=0A= #AddType text/html .shtml=0A= #AddHandler server-parsed .shtml=0A= =0A= #=0A= # Uncomment the following line to enable Apache's send-asis HTTP file=0A= # feature=0A= #=0A= #AddHandler send-as-is asis=0A= =0A= #=0A= # If you wish to use server-parsed imagemap files, use=0A= #=0A= #AddHandler imap-file map=0A= =0A= #=0A= # To enable type maps, you might want to use=0A= #=0A= #AddHandler type-map var=0A= =0A= #=0A= # Action lets you define media types that will execute a script whenever=0A= # a matching file is called. This eliminates the need for repeated URL=0A= # pathnames for oft-used CGI file processors.=0A= # Format: Action media/type /cgi-script/location=0A= # Format: Action handler-name /cgi-script/location=0A= #=0A= =0A= #=0A= # MetaDir: specifies the name of the directory in which Apache can find=0A= # meta information files. These files contain additional HTTP headers=0A= # to include when sending the document=0A= #=0A= #MetaDir .web=0A= =0A= #=0A= # MetaSuffix: specifies the file name suffix for the file containing the=0A= # meta information.=0A= #=0A= #MetaSuffix .meta=0A= =0A= #=0A= # Customizable error response (Apache style)=0A= # these come in three flavors=0A= #=0A= # 1) plain text=0A= #ErrorDocument 500 "The server made a boo boo.=0A= # n.b. the (") marks it as text, it does not get output=0A= #=0A= # 2) local redirects=0A= #ErrorDocument 404 /missing.html=0A= # to redirect to local URL /missing.html=0A= #ErrorDocument 404 /cgi-bin/missing_handler.pl=0A= # N.B.: You can redirect to a script or a document using = server-side-includes.=0A= #=0A= # 3) external redirects=0A= #ErrorDocument 402 http://some.other_server.com/subscription_info.html=0A= # N.B.: Many of the environment variables associated with the original=0A= # request will *not* be available to such a script.=0A= =0A= #=0A= # The following directives modify normal HTTP response behavior.=0A= # The first directive disables keepalive for Netscape 2.x and browsers = that=0A= # spoof it. There are known problems with these browser implementations.=0A= # The second directive is for Microsoft Internet Explorer 4.0b2=0A= # which has a broken HTTP/1.1 implementation and does not properly=0A= # support keepalive when it is used on 301 or 302 (redirect) responses.=0A= #=0A= BrowserMatch "Mozilla/2" nokeepalive=0A= BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0=0A= =0A= #=0A= # The following directive disables HTTP/1.1 responses to browsers which=0A= # are in violation of the HTTP/1.0 spec by not being able to grok a=0A= # basic 1.1 response.=0A= #=0A= BrowserMatch "RealPlayer 4\.0" force-response-1.0=0A= BrowserMatch "Java/1\.0" force-response-1.0=0A= BrowserMatch "JDK/1\.0" force-response-1.0=0A= =0A= #=0A= # Allow server status reports, with the URL of = http://servername/server-status=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-status=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Allow remote server configuration reports, with the URL of=0A= # http://servername/server-info (requires that mod_info.c be loaded).=0A= # Change the ".your_domain.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-info=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # There have been reports of people trying to abuse an old bug from = pre-1.1=0A= # days. This bug involved a CGI script distributed as a part of Apache.=0A= # By uncommenting these lines you can redirect these attacks to a = logging =0A= # script on phf.apache.org. Or, you can record them yourself, using the = script=0A= # support/phf_abuse_log.cgi.=0A= #=0A= #=0A= # Deny from all=0A= # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi=0A= #=0A= =0A= #=0A= # Proxy Server directives. Uncomment the following lines to=0A= # enable the proxy server:=0A= #=0A= #=0A= #ProxyRequests On=0A= #=0A= #=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .your_domain.com=0A= #=0A= =0A= #=0A= # Enable/disable the handling of HTTP/1.1 "Via:" headers.=0A= # ("Full" adds the server version; "Block" removes all outgoing Via: = headers)=0A= # Set to one of: Off | On | Full | Block=0A= #=0A= #ProxyVia On=0A= =0A= #=0A= # To enable the cache as well, edit and uncomment the following lines:=0A= # (no cacheing without CacheRoot)=0A= #=0A= #CacheRoot "/www/proxy"=0A= #CacheSize 5=0A= #CacheGcInterval 4=0A= #CacheMaxExpire 24=0A= #CacheLastModifiedFactor 0.1=0A= #CacheDefaultExpire 1=0A= #NoCache a_domain.com another_domain.edu joes.garage_sale.com=0A= =0A= #=0A= # End of proxy directives.=0A= =0A= ### Section 3: Virtual Hosts=0A= #=0A= # VirtualHost: If you want to maintain multiple domains/hostnames on your=0A= # machine you can setup VirtualHost containers for them.=0A= # Please see the documentation at = =0A= # for further details before you try to setup virtual hosts.=0A= # You may use the command line option '-S' to verify your virtual host=0A= # configuration.=0A= =0A= #=0A= # If you want to use name-based virtual hosts you need to define at=0A= # least one IP address (and port number) for them.=0A= #=0A= #NameVirtualHost 12.34.56.78:80=0A= NameVirtualHost 193.63.119.119=0A= =0A= #=0A= # VirtualHost example:=0A= # Almost any Apache directive may go into a VirtualHost container.=0A= #=0A= #=0A= # ServerAdmin webmaster@host.some_domain.com=0A= # DocumentRoot /www/docs/host.some_domain.com=0A= # ServerName host.some_domain.com=0A= # ErrorLog logs/host.some_domain.com-error_log=0A= # CustomLog logs/host.some_domain.com-access_log common=0A= #=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName d033.ml.uwcm.ac.uk=0A= ErrorLog logs/d033.ml.uwcm.ac.uk-error_log=0A= CustomLog logs/d033.ml.uwcm.ac.uk-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/z/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= ServerAdmin webmaster@d033.ml.uwcm.ac.uk=0A= ServerName z.realdns.com=0A= ErrorLog logs/z.realdns.com-error_log=0A= CustomLog logs/z.realdns.com-access_log common=0A= RewriteEngine on=0A= RewriteCond %{HTTP:Authorization} ^(.*)=0A= RewriteRule ^/(.*) /www/cgi-bin/Zope.cgi/$1 = [last,E=3DHTTP_CGI_AUTHORIZATION:%1,T=3Dapplication/x-httpd-cgi,L]=0A= =0A= =0A= CheckSpelling on=0A= =0A= ------=_NextPart_000_00C9_01BE63FC.BBD35410-- From michel@digicool.com Mon Mar 1 16:17:31 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:17:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 7:23 AM > To: zope@zope.org > Subject: [Zope] Zope and Apache - again > Now - here is my current config: > > Linux 2.0.35 > Python 1.5.1 > Zope 1.10.2 > Apache 1.3.4 > > Something there that doesn't play well together? > The only difference between your setup and the setup used to compile Zap is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there might be an incompatability with Zap on 5.1. Has anyone on the list gotten Zap working on this platform? Also, please send us the details of the error you get with Zap. When you say it's broken, how does it break? Does the starzap script fail to run? Does it say 'Apache did NOT start sucessfuly' and then spit up the last 10 lines of your error log? If so, what are those lines? -Michel > > Sture Lygren > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Wiebe Kunst" Can somebody please help me out. I've read through most of the postings to the list, but I'm still in the dark. I have defined a DTML documentproperty of type lines. Each line represents the ID of another DTML document. When using:
    I get the ID's. I tried all kinds of variations on this code (including the ones suggested by Amos) but are still unable to turn those ID's into rendered objects. Regards Wiebe Kunst From ShawH@STHS.org Mon Mar 1 16:31:06 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Mon, 1 Mar 1999 10:31:06 -0600 Subject: [Zope] ZMySQLDA installation Message-ID: You need to install python... Or adjust the Makefile.pre.in to look at Zope's internal python, instead of trying to find the external one. Actually, from a quick runthrough of the Makefile.pre.in, you should set the enviroment variable PYTHON to point to the local python binary; I mean the one internal to zope, like PYTHON=/home/zope/bin/python export PYTHON (in bash) or setenv PYTHON /home/zope/bin/python (in tcsh) ... (and no I am not quite certain on the syntax here). The 'make -f Makefile.pre.in boot' appears to call $(PYTHON) with parameters that cause it to return the proper location for the python configuration files, etc. Good luck. > ---------- > From: Timothy Grant[SMTP:tjg@avalongroup.net] > Sent: Sunday, February 28, 1999 5:39 PM > To: Zope Folk > Subject: [Zope] ZMySQLDA installation > > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: > > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it > right. > I then downloaded the ZMySQLDA from the Zope site. > > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 > > Any help would be greatly appreciated. > > -- > Stand Fast, > tjg. > =================================================== > Timothy Grant > VP Technology/CTO > Avalon Technology Group > tjg@avalongroup.net > www.avalongroup.net > (503) 246-3630 voice > (503) 246-3124 fax > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Mon Mar 1 16:57:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 11:57:55 -0500 Subject: [Zope] NotMail 0.0.5 alpha release Message-ID: <613145F79272D211914B0020AFF6401907BAB1@GANDALF> Greetings Zopesters, I have been working on a little pet Zope Product project for months now. Getting hired at digicool put the brakes on it a little but I have finally gotten the time to polish it up a bit for alpha release. Check out: http://starship.python.net:9673/crew/furtrapper/NotMail for NotMail. NotMail is a clone of 'other' popular web-mail interfaces. Please download and evaluate. But first a word of warning: NotMail is alpha. It is being released with the intention of harvesting other developers who are interesting in breaking it, fixing it, and improving it. Although it is a cool program, it is unstable (try pointing it at Exchange!) and not complete. I have tried to document it in code as much as possible, and it does contain a nice README.txt. You are expected to be able to infer the workings of NotMail by the source, or by telepathy, whatever. If NotMail makes your hard drive partition go bye-bye or makes your imap server think it's a dhcp server that's the way the cookie crumbles. Okay, now a word of license: NotMail is released under the GNU General Public License. Give yourself a piece of mind and send the Free Software Foundation a donation. You'd do it for NPR wouldn't you? Now a kind word about Digital Creations: Digicool has been kind enough to let me waste a small fraction of my time to release this today. They also let me use their computer to check my personal mail, etc. Please don't infer that because I work for Digicool that NotMail is a product of Digital Creations. Please do not submit NotMail bugs to the Collector or send reports to support@digicool.com. These things are for Zope and other Digicool products. It is ok to discuss it in the list but I'd prefer all discussion happen using the cool Confera discussion that can be found in the same place you can get NotMail. Regards, Michel From raver@box.dust.za.net Mon Mar 1 19:03:56 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:03:56 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF640190D9E1B@GANDALF>; from Paul Everitt on Mon, Mar 01, 1999 at 11:03:24AM -0500 References: <613145F79272D211914B0020AFF640190D9E1B@GANDALF> Message-ID: <19990301200356.A1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:03:24AM -0500, Paul Everitt wrote: > > > If it works - is there someone that can say exactly how > > apache should be > > configured and compiled to get it working (best of all also > > put in a working > > httpd.conf also)? > > We'd prefer that you start with the Zap distribution, as it removes a > whole bunch of variables. Can you tell us what was the error with using > Zap? > > --Paul > What I did: 1) Extract the Zap distro into my top level Zope dir. Entered the Zap dir and did ./startzap. This happened: './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' 2) I figured the httpd equivalent 'zap' was broken and replaced it with my httpd (from apache 1.3.4). Again I fired up zap with ./startzap. This happened: No complaints this time. Apache (or rather zap) fires up correctly, but when I try to reach the server with netscape or lynx (http://localhost/, (I changed port back to 80)) I get 'Document contains no data'. Same goes for trying: http://localhost/cgi-bin/Zope/manage - I get 'zero sized reply', 'The requested URL could not be retrived'. Now - seems like there are some settings missing from the zap.conf file? Or if nothings wrong - then maby give the readme-file a facelift and make it more clear to ppl like me what to do to get it running. Zope seems just too good to just let go!! Hope to get it running soon Regards Sture Lygren From michel@digicool.com Mon Mar 1 19:25:45 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:25:45 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> > -----Original Message----- > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > Sent: Monday, March 01, 1999 2:04 PM > To: zope@zope.org > Subject: Re: [Zope] Zope and Apache - again > What I did: > > 1) Extract the Zap distro into my top level Zope dir. Entered > the Zap dir and > did ./startzap. > > This happened: > > './startzap /usr/local/Zope/Zap/bin/zap: No such file or directory' > I just did a fresh install and this works for me. Can you run bin/zap by hand from the shell prompt? Have you tried downloading a fresh copy of the Zap tarball? > 2) I figured the httpd equivalent 'zap' was broken and > replaced it with my > httpd (from apache 1.3.4). Again I fired up zap with ./startzap. > > This happened: > > No complaints this time. Apache (or rather zap) fires up > correctly, but when > I try to reach the server with netscape or lynx (http://localhost/, (I > changed port back to 80)) I get 'Document contains no data'. > > Same goes for trying: http://localhost/cgi-bin/Zope/manage - > I get 'zero > sized reply', 'The requested URL could not be retrived'. > Your own httpd binary might not be compiled properly for Zope use, check out the Zap FAQ at http://www.zope.org/Community/Projects/Zap. Doh, I just noticed that this is not an obvious link from the d/l page. I will make it so. > Now - seems like there are some settings missing from the > zap.conf file? > The conf file that comes with zap is ok. We and others tested it quite a bit. > Or if nothings wrong - then maby give the readme-file a facelift and > make it more clear to ppl like me what to do to get it running. > When we figure out your problem, it will get added to the docs. > Zope seems just too good to just let go!! It is that good. > > Hope to get it running soon > > Regards Sture Lygren > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Bern.McCarty@bentley.com Mon Mar 1 19:15:17 1999 From: Bern.McCarty@bentley.com (Bern McCarty) Date: Mon, 1 Mar 1999 14:15:17 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibility? Message-ID: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect. In our case it is a given that a specialized JVM will be embedded in all of our products and more and more of our own source will be written in Java, so code which can integrate with Java easily is all the more interesting to us. We already have a product which uses traditional Python behind a web server to provide an entirely through-the-web user interface for product configuration/administration. My aim has been to replace the traditional Python with JPython since we'll have lot's of Java stuff we'll want to be using on the server going forward anyway. It looks like Zope would enable us to do what we are already doing more easily (and therefore better). So here's hoping we'll one day see Z-over-P-over-J. Yeah. I know it would have to be slower. Zope looks cool. Bern McCarty From michel@digicool.com Mon Mar 1 19:46:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 14:46:52 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF6401907BAB6@GANDALF> > -----Original Message----- > From: Bern McCarty [mailto:Bern.McCarty@bentley.com] > Sent: Monday, March 01, 1999 2:15 PM > To: zope@zope.org > Subject: [Zope] Is a JPython implemention within the realm of > possibility? > > > > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPytho > So > here's hoping we'll one day see Z-over-P-over-J. > I am not the expert about this, but: Zope is written entirely in Python, except for a few 'kernel' like components written in C. If you translate these components into Java, you might just have something there. I'm not a Java guy so I have no real idea. > Yeah. I know it would have to be slower. From what Ken was telling me JPython is actually quite well designed and speedy, even for a Java program. :) If you've commited yourself to Java then I assume you've allready resigned yourself to the performance penalty and are considering it in your engineering goals. Performance may not be your primary goal in the first place. > > Zope looks cool. Oh it is. > > Bern McCarty > -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Mon Mar 1 19:47:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 1 Mar 1999 14:47:28 -0500 Subject: [Zope] Is a JPython implemention within the realm of possibil ity? Message-ID: <613145F79272D211914B0020AFF640190D9E20@GANDALF> Bern wrote: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program > (under JPython) > in addition to operation under traditional Python. I know it > would probably > be a large undertaking and that there may well be better > places to spend > precious energy, but I thought I'd register my interest in > the prospect. This was one of the things that I hoped to see by going Open Source. So far there have been ports to operating systems that we just wouldn't have supported, which is a great to see. I'm intrigued by someone that really knows Java picking up a JZope effort. As for Digital Creations, I doubt you'll see us focus on it unless one of our consulting customers requires it. Same old story -- never enought time :^( --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From pj@sam.engr.sgi.com Mon Mar 1 19:40:14 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Mon, 1 Mar 1999 11:40:14 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903011940.LAA18485@sam.engr.sgi.com> I'm just beginning with Zope, and just beginning with a project to develop some new software product management (bug tracking and such) tools for use within Silicon Graphics (SGI). Zope appears to be an excellent fit for many of our needs. I will need to connect with an existing large Sybase database (the existing bug data). I can freely choose to use either Linux or Irix for the server side operating system. From which server O.S. would it be easiest to get Zope connected to Sybase? Something I read on www.zope.org led me to suspect that I should use Irix, so that I can use our Sybase licensed library, and that Linux wouldn't work, because of a lack of the needed library. Is that so? Any other obvious factors that I should consider in this choice? ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From raver@box.dust.za.net Mon Mar 1 19:48:46 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 20:48:46 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAAF@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 11:17:31AM -0500 References: <613145F79272D211914B0020AFF6401907BAAF@GANDALF> Message-ID: <19990301204846.B1200@RaVER.duck.org> On Mon, Mar 01, 1999 at 11:17:31AM -0500, Michel Pelletier wrote: > > > > -----Original Message----- > > From: raver@box.dust.za.net [mailto:raver@box.dust.za.net] > > Sent: Monday, March 01, 1999 7:23 AM > > To: zope@zope.org > > Subject: [Zope] Zope and Apache - again > > Now - here is my current config: > > > > Linux 2.0.35 > > Python 1.5.1 > > Zope 1.10.2 > > Apache 1.3.4 > > > > Something there that doesn't play well together? > > > > The only difference between your setup and the setup used to compile Zap > is that Zap was compiled on a RedHat 5.2 machine, with the stock 2.0.36 > kernel. Your using 2.0.35, does that imply RedHat 5.1? If so there > might be an incompatability with Zap on 5.1. Has anyone on the list > gotten Zap working on this platform? Also, please send us the details > of the error you get with Zap. When you say it's broken, how does it > break? Does the starzap script fail to run? Does it say 'Apache did > NOT start sucessfuly' and then spit up the last 10 lines of your error > log? If so, what are those lines? Hmmm - I'm a slackware guy. And no glibc guy either.... Still the zap bin starts from the prompt and when I changed some settings in zapctl then ./startzap also worked. That is the zap process shows on ps, but I'm not able to connect to the server with any browsers. Now - whats wrong? > > -Michel > > > > > Sture Lygren > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > From da@ski.org Mon Mar 1 19:47:39 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 11:47:39 -0800 (Pacific Standard Time) Subject: [Zope] Is a JPython implemention within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: > I am wondering if it is within the realm of possibility that the Zope > project might eventually support operation as a Java program (under JPython) > in addition to operation under traditional Python. I know it would probably > be a large undertaking and that there may well be better places to spend > precious energy, but I thought I'd register my interest in the prospect. My guess is that the hardest part of such an undertaking would be to convert Jim's extensions to Java/JPython. Specifically, ExtensionClasses and Acquisition are probably the hardest to do (I believe many of the others are just fast implementations of Python versions). Jim Hugunin mentioned that he had thought a bit about ExtensionClasses, but I'm not sure how far that went. The efficient POS and other extensions are also clearly a significant undertaking, but maybe not as hard to translate. However, I don't see it happening until someone has a commercial motivation to invest the large required number of hours into it. --david From amos@aracnet.com Mon Mar 1 19:53:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 01 Mar 1999 11:53:19 -0800 Subject: [Zope] Is a JPython implementation within the realm of possibility? In-Reply-To: <93C0BE6A6D6AD211BC7400A0C9D8FE87731223@exton1.bentley.com> Message-ID: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> At 02:15 PM 3/1/99 -0500, Bern McCarty wrote: > >I am wondering if it is within the realm of possibility that the Zope >project might eventually support operation as a Java program (under JPython) >in addition to operation under traditional Python. I know it would probably >be a large undertaking and that there may well be better places to spend >precious energy, but I thought I'd register my interest in the prospect. Zope relies on a lot of code in C as well as Python, so I doubt you'll see Zope on JPython anytime soon. However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'. -Amos From pje@telecommunity.com Mon Mar 1 20:15:31 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:15:31 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <199903011940.LAA18485@sam.engr.sgi.com> Message-ID: <3.0.5.32.19990301151531.01230100@telecommunity.com> At 11:40 AM 3/1/99 -0800, Paul Jackson wrote: >I'm just beginning with Zope, and just beginning with a >project to develop some new software product management >(bug tracking and such) tools for use within Silicon >Graphics (SGI). > >Zope appears to be an excellent fit for many of our >needs. > >I will need to connect with an existing large Sybase >database (the existing bug data). > >I can freely choose to use either Linux or Irix for >the server side operating system. > >>From which server O.S. would it be easiest to get Zope >connected to Sybase? Something I read on www.zope.org >led me to suspect that I should use Irix, so that I >can use our Sybase licensed library, and that Linux >wouldn't work, because of a lack of the needed library. > >Is that so? Any other obvious factors that I should >consider in this choice? FWIW, my shop is running Sybase OpenClient 11.1.1 on IRIX 6.2, 6.4, and 6.5 on a Challenge/S, O2000, and Challenge/L, respectively. I successfully installed ZSybaseDA into Zope on the Challenge/S; haven't tried on any others. Also FWIW, I have experienced nothing but problems getting PCGI to work on any of the IRIX platforms; your mileage may vary. (Coincidentally, the company I work for owns a couple hundred SGI boxes and we keep our inventory of them in a ZPublisher app... it's on mySQL, though, not Sybase. OTOH, our request tracking system is a ZPublisher-on-Sybase app.) From jeffbauer@bigfoot.com Mon Mar 1 20:29:12 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 14:29:12 -0600 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <36DAF898.14B40EF0@rubic.com> > Also FWIW, I have experienced nothing but problems > getting PCGI to work on any of the IRIX platforms; > your mileage may vary. Does this include the latest version of PCGI? FWIW, I'm willing to work with anyone getting PCGI to work on their platform of choice. Best regards, Jeff Bauer Rubicon, Inc. From Jose.Lacal@icn.siemens.com Mon Mar 1 20:39:00 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Mon, 1 Mar 1999 15:39:00 -0500 Subject: [Zope] MailHost problems. Message-ID: <85256727.00714502.00@li01.lm.ssc.siemens.com> Folks: Error message when trying to send e-mail from a Zope-generated web-form. I did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still get the following error message:

    Copyright 1999 Siemens I & CN. Maintained by Jose C. Lacal.

    Platform: Red Hat 5.1 Zope 1.10.2 Both sendmail and DNS are properly installed since I was able to send e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" I'm no Zope expert, so any suggestions appreciated. Regards. From pje@telecommunity.com Mon Mar 1 20:37:28 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 01 Mar 1999 15:37:28 -0500 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? In-Reply-To: <36DAF898.14B40EF0@rubic.com> References: <3.0.5.32.19990301151531.01230100@telecommunity.com> Message-ID: <3.0.5.32.19990301153728.01372a00@telecommunity.com> At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > >Does this include the latest version of PCGI? > >FWIW, I'm willing to work with anyone getting PCGI >to work on their platform of choice. The last version I tried was the one distributed with Zope 1.9.0 - it exhibited the same fail-on-process startup behavior as previous versions, so I went to ZServer as a stopgap until I could complete a FastCGI replacement. I'm now using FastCGI, so it's no longer an issue. From drew_csillag@geocities.com Mon Mar 1 20:43:35 1999 From: drew_csillag@geocities.com (Andrew Csillag) Date: Mon, 01 Mar 1999 15:43:35 -0500 Subject: [Zope] Is a JPython implementation within the realm ofpossibility? References: <3.0.5.32.19990301115319.0118ce30@mail.aracnet.com> Message-ID: <36DAFBF7.DE205CAB@starmedia.net> Amos Latteier wrote: > > However, ZPublisher (Zope's ORB) could be made to work with JPython without > too much trouble. In fact a while ago I tried this and succeeded, though it > was quite slow. The main issue is that ZPublisher uses 'regex' while > JPython uses 're'. Actually, some time ago I sent Jim some code that was a regex mockup implemented using re. It didn't do all of regex, but enough to make DocumentTemplate work. -- "There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence." - Jeremy S. Anderson From bkc@murkworks.com Mon Mar 1 19:51:08 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 1 Mar 1999 15:51:08 -0400 Subject: [Zope] MailHost problems. In-Reply-To: <85256727.00714502.00@li01.lm.ssc.siemens.com> Message-ID: <199903012045.PAA26056@anvil.murkworks.com> On 1 Mar 99, at 15:39, Jose.Lacal@icn.siemens.com wrote: > Error message when trying to send e-mail from a Zope-generated web-form. I > did RTFM at http://www.zope.org/Documentation/HowTo/MailForm and I still > get the following error message: > > > >
    >

    Copyright 1999 Siemens I & CN. Maintained by > Jose C. Lacal. HREF="http://www.linux.org"> >

    > > > > > Platform: > > Red Hat 5.1 > Zope 1.10.2 > > Both sendmail and DNS are properly installed since I was able to send > e-mail using "sendmail -v jose.lacal@icn.siemens.com < letter" > > > I'm no Zope expert, so any suggestions appreciated. > > Regards. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From raver@box.dust.za.net Mon Mar 1 21:22:52 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 1 Mar 1999 22:22:52 +0100 Subject: [Zope] Zope and Apache - again In-Reply-To: <613145F79272D211914B0020AFF6401907BAB4@GANDALF>; from Michel Pelletier on Mon, Mar 01, 1999 at 02:25:45PM -0500 References: <613145F79272D211914B0020AFF6401907BAB4@GANDALF> Message-ID: <19990301222252.A9776@RaVER.duck.org> I give up! From rocon@pivot.net Mon Mar 1 22:04:51 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 1 Mar 1999 17:04:51 -0500 Subject: [Zope] The Zope Starship (for Python PSA) Message-ID: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> I Followed the URL backward from: Michel Pelletier's "You've Not Mail !!!" Page, http://starship.python.net:9673/crew/furtrapper/NotMail Hey, this is neat, starship.python.net must be running ZOPE because the port is "9673" !!! therefore going to: http://starship.python.net:9673 "Welcome to Zope at the Starship Python!" So, to join the crew of the Starship and get your own ZOPE pages on the internet requires PSA membership. One can join now and pay for a half year $50/yr or $25 for half. Membership wouldn't be effective until April 1st (a Foolish day!) So, Zope is cool and so is Python. I am considering joining PSA on the strength of Zope and Elegance of Python but I'm concerned that Python doesn't seem to have much "MindShare" like Java or Perl. Ok so our local Borders has only one book on Python: "Programming Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. The shelves are full of books on Java and there are quite a few Perl books. What is the BIG PICTURE here? Is Python so good that lot of programming tomes are unnecessary? Why is there so little press on Python and so much for the less Elegant and slower Java? Is Python a "secret weapon"? If so, the secret should get out to the world so Python gets more mind share and doesn't develop cobwebs. ***So, where are the rabid Python fans?*** Yes, a bunch of them are on the ZOPE list. Great answers to these questions will only help ZOPE! -bobo connor From quinn@challenge.calarts.edu Mon Mar 1 22:17:08 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Mon, 01 Mar 1999 14:17:08 -0800 Subject: [Zope] Connecting Zope to Sybase: Linux or Irix ? Message-ID: <199903012217.OAA20295@challenge.calarts.edu> philip wrote: > At 02:29 PM 3/1/99 -0600, Jeff Bauer wrote: > > > >Does this include the latest version of PCGI? > > > >FWIW, I'm willing to work with anyone getting PCGI > >to work on their platform of choice. > > The last version I tried was the one distributed with Zope 1.9.0 - it > exhibited the same fail-on-process startup behavior as previous versions, > so I went to ZServer as a stopgap until I could complete a FastCGI > replacement. I'm now using FastCGI, so it's no longer an issue. I'm using pcgi from 1.9.0 (README says it's 2.0a4) under Irix 5.3 (yes, I know, I keep bugging the sysadmin to upgrade :) ). Occaisionally, pcgi fails to start up, logging "Interrupted system call (116) unable to connect, fd=4". I also had the same problem when using FastCGI w/ threads: the application would hang and I'd get an "interrupted system call" in the log after a while. I have never experienced either of these problems under linux, so might this be an Irix problem? I remember that Philip also suspected an Irix "sockets-and-threads-don't-mix" problem, which appears to be what I have experienced as well. Philip, is theaded FastCGI still broken on Irix? From jeffbauer@bigfoot.com Mon Mar 1 22:34:44 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 16:34:44 -0600 Subject: [Zope] The Zope Starship (for Python PSA) References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <36DB1604.AB0002A2@rubic.com> Robert OConnor wrote: > What is the BIG PICTURE here? Is Python so good > that lot of programming tomes are unnecessary? As a language qua language, Python is so good in design and implementation that it has few dark mysteries that require a lot of documentation to explain. The existing Python books are quite good, with at least 4 more in the works. More Python books are necessary to explain things like Win32/COM programming, for instance, than the language itself. Perl has lots of books, because for the past 2 years, almost anything that offered to make Perl programming easy was given shelf space. Java has lots of books because almost everything in Java has to be written in Java, and the Java libraries have been a moving target for so long. More important than the number of books (how many Perl books do you really need, after the Camel?) is the level of support/platforms in the Python community, which is quite high. It will probably never attain the proportion of mindshare that Perl or Java has, but is has critical mass, and a lot of compentent people who contribute code. Too many companies now rely upon Python as their core development language for it to go away anytime soon. More importantly: You'll spend more time learning about the eccentricities of whatever your environment demands, be it Unix, Windows, web servers, CE devices, COM, Tk, etc. than learning the language itself. This is Python's great (and under-reported) strength. Best regards, Jeff Bauer Rubicon, Inc. From tjg@avalongroup.net Mon Mar 1 22:28:08 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Mon, 01 Mar 1999 14:28:08 -0800 Subject: [Zope] ZMySQLDA installation Message-ID: <36DB1478.E2D7915E@avalongroup.net> Hi all, This is probably more of a newbie Linux question than a newbie Zope question, but I'm going to ask it here anyway: I would like to connect Zope to a database, so I have setup both PostgreSQL and MySQL. My reading tells me that MySQL is probably the better choice as a web backend (Any comments from those of you more knowledgable than I would be appreciated!) So I downloaded the MySQL source, compiled, installed and tested it. It looks like I did it right. I then downloaded the ZMySQLDA from the Zope site. I have followed the directions--I think, but get the following error when trying to do the initial make: [tjg@puddleglum src]$ make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho n/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python /Products/ZMySQLDA/src' make: *** [boot] Error 2 Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From da@ski.org Mon Mar 1 22:41:17 1999 From: da@ski.org (David Ascher) Date: Mon, 1 Mar 1999 14:41:17 -0800 (Pacific Standard Time) Subject: [Zope] The Zope Starship (for Python PSA) In-Reply-To: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: > Ok so our local Borders has only one book on Python: "Programming > Python" by Mark Lutz (Pub: O'Reilly) A great book that is dated 1996. > The shelves are full of books on Java and there are quite a few Perl > books. FYI: I know of at least 5 other Python-related book projects in various stages of development. One of those should be hitting those same shelves in April sometime (http://www.oreilly.com/catalog/lpython/). It even mentions Zope in a couple of places. [Disclosure: I'm a coauthor of said book] > What is the BIG PICTURE here? Is Python so good that lot of > programming tomes are unnecessary? Python is certainly easier to learn than some other languages. > Why is there so little press on Python and so much for the less > Elegant and slower Java? Mostly, because Java is backed by a multibillion dollar company with lots of $$'s for public relations. --david ObZope: I'm having a hard time with the 'access' file -- it looks as if my Zope installation (w/ ZServer) only accesses the first entry in the file. What am I missing? From garys@magna.com.au Mon Mar 1 22:51:00 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 09:51:00 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> Message-ID: <36DB19D4.77F33EA7@magna.com.au> Amos Latteier wrote: > At 05:04 PM 3/1/99 +1100, you wrote: > >Amos Latteier wrote: > > > >> > >> Correct. This is what's supposed to be there. Does the FAQ Tool not work > >> when you install it? Are you using Zope 1.10.2? > >> > >> -Amos > > > >My Zope Zen seem to have gone negative (started at zero - and just got worse > >:( ) but HOW do you install it. > > I hate to tell you to RTFM, but did you try the "Installation Instructions" > on the page where you downloaded it? > A perfectly reasonable suggestion - and one that I have made many times myself! I did, in fact, RTFM - but the FM makes absolutely zero mention of anything "leverish", to adopt a seemingly Zopish mode of Englishish. ;-) I followed your link given in another message, and realised that what I had been reading about in terms of Product Distributions was (I think) what you refer to as the "Lever". IAC, I followed the instructions given, and when it didn't work I went back, and worked my way through the Product Tutorial exercise - excellent! The POLL product works fine! But the levered faq product .DAT file apparently failed to unpickle - as described by others in this thread. My product management screen shows the FAQ product as installed, but the actual product directory still has just the three files from the tarball. In my case, however, it is on a Linux ZAP system - so the problem is not confined to Win32 as others have conjectured. Hope this helps, and apologies for the lack of specifics in my previous post. Can we please have the term "lever" clarified and documented a little better. -my-FAQ-product-having-FA-Q's-in-it-ly yours gary From mvoltchenko@platinum.com Mon Mar 1 23:04:28 1999 From: mvoltchenko@platinum.com (mvoltchenko@platinum.com) Date: Mon, 1 Mar 1999 17:04:28 -0600 Subject: [Zope] Z Oracle Database Connection doesn't show up. Message-ID: <86256727.007E80F3.00@platinum.com> I have compiled and installed Python 1.5.1, Zope 1.10.2 - all works fine. I downloded and installed ZOracle DA, following all the steps in the README file. However, I can't get Z Oracle Database Connection to show up in the list of available item types in Zope mangement interface. Any suggestions would be greatly appreciated. Marina Voltchenko. From jeffbauer@bigfoot.com Mon Mar 1 23:08:33 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 01 Mar 1999 17:08:33 -0600 Subject: [Zope] ZMySQLDA installation References: <36DB1478.E2D7915E@avalongroup.net> Message-ID: <36DB1DF1.C2EB63BD@rubic.com> Timothy Grant wrote: > I would like to connect Zope to a database, so I have > setup both PostgreSQL and MySQL. My reading tells me that > MySQL is probably the better choice as a web backend (Any > comments from those of you more knowledgable than I would > be appreciated!) My experience was MySQL had better support for large streams of text data and blobs than PostgreSQL. However, MySQL also lacks support for transactions. This probably contributes to its speed, which in turn makes it popular for web apps. Best regards, Jeff Bauer Rubicon, Inc. From petrilli@amber.org Mon Mar 1 23:09:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Mon, 1 Mar 1999 18:09:07 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: ; from David Ascher on Mon, Mar 01, 1999 at 02:41:17PM -0800 References: <017d01be642f$8c556600$0201a8c0@hawkeye.bob.oc> Message-ID: <19990301180907.03092@amber.org> On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > Zope installation (w/ ZServer) only accesses the first entry in the file. > What am I missing? > THis is completely correct. The access file is ONLY for the global-overall-uberuser :-) Everything else should be defined in the database itself :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From garys@magna.com.au Mon Mar 1 23:53:07 1999 From: garys@magna.com.au (Gary Stephenson) Date: Tue, 02 Mar 1999 10:53:07 +1100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <36DB2863.DF5662BF@magna.com.au> Amos Latteier wrote: > > > But the levered faq product .DAT file apparently failed to > >unpickle - as described by others in this thread. > > Can you tell me why you believe this to be the case? > I assumed that the .DAT file contained all the component DTML and PY scripts etc and that these would be expanded into the Product's home directory somehow. Is this not the case? Is the .DAT distribution a way of distributing the objects without the source ? (more Cathedral than Bazaar) > > >My product management screen > >shows the FAQ product as installed, but the actual product directory still > has > >just the three files from the tarball. > > This is normal. That's what's supposed to be there. > > Does the FAQ item show up in the product add list? No - but it does show up in the installed products control panel. > If not, then you have a > problem. If you have this problem, then please send to me, not the zope > list, information about your platform, and the version of Zope you have > installed. As stated before, Zope 1.10.2 running on ZAP-Linux. many tias, gary From Anthony Baxter Mon Mar 1 23:56:39 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 10:56:39 +1100 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) In-Reply-To: Your message of "Mon, 01 Mar 1999 18:09:07 CDT." <19990301180907.03092@amber.org> Message-ID: <199903012356.KAA01601@mbuna.arbhome.com.au> > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > ObZope: I'm having a hard time with the 'access' file -- it looks as if my > > Zope installation (w/ ZServer) only accesses the first entry in the file. > > What am I missing? > > > > THis is completely correct. The access file is ONLY for the > global-overall-uberuser :-) Everything else should be defined in the > database itself :-) Note that you could, pretty easily, write a new UserFolder type object which worked off an access file. Could be useful for people who are generating the access file from an /etc/passwd file, or whatever. Anthony From michel@digicool.com Tue Mar 2 00:14:54 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 1 Mar 1999 19:14:54 -0500 Subject: [Zope] Access File (was: The Zope Starship (for Python PSA)) Message-ID: <613145F79272D211914B0020AFF6401907BAB8@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Monday, March 01, 1999 6:57 PM > To: Christopher G. Petrilli > Cc: zope@zope.org > Subject: Re: [Zope] Access File (was: The Zope Starship (for Python > PSA)) > > > > On Mon, Mar 01, 1999 at 02:41:17PM -0800, David Ascher wrote: > > > > > > ObZope: I'm having a hard time with the 'access' file -- > it looks as if my > > > Zope installation (w/ ZServer) only accesses the first > entry in the file. > > > What am I missing? > > > > > > > THis is completely correct. The access file is ONLY for the > > global-overall-uberuser :-) Everything else should be > defined in the > > database itself :-) > > Note that you could, pretty easily, write a new UserFolder type object > which worked off an access file. Could be useful for people > who are generating > the access file from an /etc/passwd file, or whatever. > You could also skip the generation step and write a UserFolder which works off of /etc/passwd. In fact, NotMail could use this as a helper too. Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From DAve@mail.netraven.com Tue Mar 2 04:36:23 1999 From: DAve@mail.netraven.com (Dave G) Date: Mon, 1 Mar 1999 20:36:23 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: Has anyone else experienced a problem getting Explorer to connect with Zserver? I have no problem with any version of Navigator but MSIE 3.01 and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an "error with Explorer's internet extensions has failed". Very baffling, I can connect just fine via telnet using the following requests, ZServer (medusa) returns a proper html page. Requests sent: GET / HTTP/1.0 Connection: Keep-Alive Host: www.fishwrapper.com Accept: image/gif, image/jpeg, */* GET / HTTP/1.0 accept: image/gif, image/jpeg, */* GET / HTTP/1.1 accept: image/gif, image/jpeg, */* response recieved: Status: 200 OK Content-Length: 1307 Content-Type: text/html blah, blah, blah..... (note the difference in the sent host and recieved host, the host arg in the start script sets the host for the ftp server, not the webserver...) I can see nothing in the responses that would cause MSIE to fail, note this has been tested from four different PC's on three different ip's, including a local connection from my Lan. Strangly enough I did a stream capture and hit my server and the startship server (also running ZServer) and the two responses differ even though the requests were from the same browser on the same connection. request for http://www.fishwrapper.com/ followed by my servers response : Send 357 bytes on stream 4. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Pragma: no-cache <00000067< Host: www.fishwrapper.com <00000082< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000BF< image/png, */* <000000CF< Accept-Encoding: gzip <000000E6< Accept-Language: en <000000FB< Accept-Charset: iso-8859-1,*,utf-8 <0000011F< Cookie: sql_pref__rows="10"; sql_pref__cols="65"; dtpref_cols="9 <0000015F< 5" <00000163< Receive 1364 bytes on stream 4. >00000000> Status: 200 OK >0000000F> Content-Length: 1303 >00000024> Content-Type: text/html >0000003C> >0000003D> blah, blah, blah..... request for http://starship.python.net/ followed by starship's response : Send 276 bytes on stream 1. <00000000< GET / HTTP/1.0 <00000010< Connection: Keep-Alive <00000028< User-Agent: Mozilla/4.5 (Macintosh; I; PPC) <00000055< Host: starship.python.net:9673 <00000075< Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, <000000B2< image/png, */* <000000C2< Accept-Encoding: gzip <000000D9< Accept-Language: en <000000EE< Accept-Charset: iso-8859-1,*,utf-8 <00000112< Receive 1254 bytes on stream 1. >00000000> HTTP/1.0 200 OK >00000011> Server: Medusa/1.4 >00000025> Content-Length: 1112 >0000003B> Content-Type: text/html >00000054> Connection: close >00000067> Date: Tue, 02 Mar 1999 02:24:00 GMT >0000008C> >0000008E> >00000095> blah, blah, blah..... Do starships ZServer and mine differ? My http_server.py script carries RC_ID of: "v 1.4 1999/01/18 22:44:49 amos" I downloaded a fresh copy of ZServer when I grabbed the newest copy of Zope. Any clues? I've been documenting and testing everything I could think of, I'd report a bug but it seems MSIE works with the Starship server, so I think it's not a bug so much as something wrong on my end? Slackware V 3.6 Zope v 1.10.2 ZServer 1.0a2 DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From tseaver@palladion.com Tue Mar 2 06:05:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 00:05:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <36DB2602.1DB0C1E8@palladion.com> <19990301202550.44519@amber.org> <36DB5BB7.A6DA0185@palladion.com> <19990301223719.63315@amber.org> <36DB5E48.6FE6AED4@lyra.org> <19990301225006.05483@amber.org> Message-ID: <36DB7F96.41DA505B@palladion.com> Christopher G. Petrilli wrote: > > On Mon, Mar 01, 1999 at 07:43:04PM -0800, Greg Stein wrote: > > Christopher G. Petrilli wrote: > > > On Mon, Mar 01, 1999 at 09:32:07PM -0600, Tres Seaver wrote: > > > > As one who comes down firmly on the "weenie" side of the great "content manager" > > > > vs. "web weenie" divide, I am naturally inclined to code up Zopoids as > > > > ExternalMethods. The docs say to put them under the $ZOPEROOT/lib/python, but > > > > that seems icky for a "shared" Zope like the one on starship. > > > Well, right now that's the only way it's supported... it's not really > > > inteded for an ISP situation with hundereds of "untrusted" users, which > > > is kinda how we're using it right now. FOr now, unfortunately, I'm > > > makign the executive decision that ExternalMethods are verbotten until > > > we can figure out a way to isolate them from one-anohter. If someone > > > wants to develop a derived ExternalMethod that uses rexec or some such > > > to control it's access to the database, that'd be great. > > > > > > > Whither should such gems be placed? > > > > > > Well, unfortunatly all of them would run wit the permissions of "root" > > > as far as I understand it... someone else correct me, but this is how it > > > was explained to me... basically they'd be able to do anything. > > > > Can't you run Zope as another user? That could eliminate a number of > > issues. > > I'm sorry, I wasn't clear ;-) What I meant was that the method has > unlimited abilities to peruse the object database... it doesn't have any > abilities outside it that aren't avilable to the zope process itself > (which in this case runs as uid 'zope'). > > The concern is taht it would be able to circumvent other user's security > since it wouldn't be enforced against the ExternalMethod. I understand the security problems inherent in ExternalMethods; unfortunately, without them, Zope is merely an "also-ran" in the web applicaton race, from my perspective. DTML in isolation is not an "ASP-killer." I'm CC'ing the Zope list, in hopes that someone there can either allay or slay our fears. It seems to me that the security problem is that ExternalMethods can get access to "sibling objects" of the object on which they are invoked, right? I mean, if we could make the siblings inaccessible, and acquired properties read-only, then we should be ok, no? Ugh, I don't grok acquisition well enough to tackle that myself, I fear. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Tue Mar 2 06:47:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 17:47:36 +1100 Subject: [Zope] terminating DTML parsing... Message-ID: <199903020647.RAA07473@mbuna.arbhome.com.au> from inside DTML, is there a way to say "don't process any further DTML, just return this to the user"? What I'm looking at is a small DTML snippet that gets included at the top of a number of pages, and looks for a particular variable to be set. If it's not set, it should just display a small "please enter a widget name" form which submits back to the same page, and not display the rest of the page at all. will just doing a RESPONSE.redirect() automatically do this? Anthony From piers@cs.su.oz.au Tue Mar 2 06:54:28 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Tue, 02 Mar 1999 17:54:28 +1100 Subject: [Zope] Help with editing Product dtml files Message-ID: <129.78.8.1.126.8280.920360936.257.8891> I'm making a Zope "Product" for managing and creating student surveys (which I hope to contribute via zope.org) but I'm having trouble with a couple of techniques: 1. How does one enable a dtml file that is instantiated as in my_dtml = HTMLFile('my', globals()) available for editing in the products' management screen? There's probably more to this - as at the moment the management screen goes straight to the "index_html" form as with the "Poll" Product. 2. What's the approved way to catch database errors in methods? I'm creating tables on the fly, and need to check if the table exists before trying to create it. (I'd use a "tables" method if all the database interfaces supported it. I'd also use a try/except but the database objects have different names for their exceptions.) From jarvis.sd082@ex.tel.co.jp Tue Mar 2 09:40:22 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 18:40:22 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Hi All! First off, I'd like to thank Digital Creations for an excellent (and really fun) product. I'm building a prototype web site interface for a database where I work using Zope 1.10.2 and the ZOracleDA product and have a some questions. 1. When trying to do a join (a lazy query, I know) like: select a.*, b.* from tablea a, tableb b where a.b_id=a.id Both tables have an ID column so Zope raises a 'ValueError' exception with the message 'Duplicate column name, ID'. I wonder if instead of raising an exception something like the following could be done? A diff of Shared/DC/ZRDB/Results.py: 120,131c120 < #raise ValueError, 'Duplicate column name, %s' % name < < #instead of error, append an extension to < #create a unique name < tempname=name < nameext=1 < while schema.has_key(name): < name=tempname+'_'+str(nameext) < nameext=nameext+1 < < #update with newly created name < item['name']=name --- > raise ValueError, 'Duplicate column name, %s' % name I tested this some and it seems to work. Are there any problems that could be caused by doing this? 2. I'll post the other questions separately because they are unrelated. TIA!, John Jarvis Tokyo Electron, FE Ltd. From mj@antracietm.nl Tue Mar 2 09:49:28 1999 From: mj@antracietm.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 10:49:28 +0100 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. In-Reply-To: <36DB2863.DF5662BF@magna.com.au> References: <3.0.5.32.19990227133410.0118c640@mail.aracnet.com> <3.0.5.32.19990227203545.01183660@mail.aracnet.com> <3.0.5.32.19990301003338.01185ec0@mail.aracnet.com> <3.0.5.32.19990301151157.01197880@mail.aracnet.com> Message-ID: <4.1.19990302103050.00a84500@lisp.atmm.nl> At 00:53 02/03/99 , Gary Stephenson wrote: >I assumed that the .DAT file contained all the component DTML and PY scripts >etc >and that these would be expanded into the Product's home directory somehow. Is >this not the case? Is the .DAT distribution a way of distributing the objects >without the source ? (more Cathedral than Bazaar) The .DAT file only contains information to be added to the Object Database. It won't be expanded into files onto your harddisk. Zope stores all instances of classes in it's object databse, via a process called 'pickling'. This, in simple terms, means that all data stored in an object is turned into one stream of data that can be stored in a file. As a 'Levered' product contains nothing but instances of classes, not the classes themselves, it suffices to distribute only the compressed pickled contents of the product. The source for the used classes you allready have (at least with the FAQ you do, it uses only DTML Methods and Folders), and the DTML scripts can be viewed in Zope, so you do get all the source. The objects that make up the product should normally be automaticly decompressed and imported into Zope, but the decrompressing seems to be failing. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jarvis.sd082@ex.tel.co.jp Tue Mar 2 10:09:28 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 2 Mar 1999 19:09:28 +0900 Subject: [Zope] DTML #var null= problem/patch Message-ID: <8174B1EE3D2CD21180960000F8056723CFB32E@telisnt1020.is.tel.co.jp> Thank you for pointing out how to fix this. At first, the patch didn't work with ZSQLMethods until I made a small change: 271a272,274 > #richard jone's null patch --- slightly modified by jj > elif have_arg('null') and not val: > val = args['null'] val wasn't set to None and so the null attribute never got used. Since None is false, the above should be OK. (It seems to work for me, anyway :^) John Jarvis Tokyo Electron, FE Ltd. > -----Original Message----- > From: richard.jones@fulcrum.com.au [SMTP:richard.jones@fulcrum.com.au] > Sent: Monday, March 01, 1999 8:31 AM > To: Philip Aylesworth > Cc: zope@zope.org > Subject: Re: [Zope] DTML #var null= problem/patch > > > [Philip Aylesworth] > > Does your patch mean that I don't need a fmt= atribute? > > Yes. > > > > Are you using 1.9 or 1.10? > > Does 1.10 do the same thing? > > My patch was against 1.10 > > > > Should you send this to the collector? From the documentation I expected > it > > to work without the fmt= atribute, therefore, it could be considered a > bug, > > right? > > Yep, I've submitted a report to the Collector. > > > Richard > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From akhavr@compchem.kiev.ua Tue Mar 2 11:05:39 1999 From: akhavr@compchem.kiev.ua (Andrey V Khavryutchenko) Date: 02 Mar 1999 13:05:39 +0200 Subject: [Zope] Bobo distribution Message-ID: Hi! I'm looking for Bobo (not Zope) distribution tarball. Looks like it is taken from the web away. I need to create very simple application. Zope is an overkill for it. Anyone? -- SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr Shick's Law: There is no problem a good miracle can't solve. From sfranke@cdc-group.com Tue Mar 2 11:27:41 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 12:27:41 +0100 Subject: [Zope] Bobo distribution Message-ID: <01E40461E003D21195CC0080296495D80B12B1@gates.cdc-group.com> Bobo is now called "ZPublisher". You dan download it separately on http://www.zope.org/Download/ZPublisher Stefan Andrey V Khavryutchenko wote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it > is > taken from the web away. > > I need to create very simple application. Zope is an overkill for it. > > Anyone? > > -- > SY, Andrey V Khavryutchenko http://www.kbi.kiev.ua/~akhavr > > Shick's Law: > There is no problem a good miracle can't solve. > From ajung@sz-sb.de Tue Mar 2 11:58:47 1999 From: ajung@sz-sb.de (Andreas Jung) Date: Tue, 2 Mar 1999 12:58:47 +0100 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <19990302125847.A22379@sz-sb.de> Reply-To: Hello, we want to use the DCOracle module for Python inside a commercial production process in our house. We don't sell a product with DCOracle nor we redistribute DCOracle in any form. Is the use of DCOracle for this purposes free ? Thanks Andreas From Paul@digicool.com Tue Mar 2 12:17:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:17:14 -0500 Subject: [Zope] terminating DTML parsing... Message-ID: <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Anthony wrote: > from inside DTML, is there a way to say "don't process any > further DTML, > just return this to the user"? Umm, ?? --Paul From Paul@digicool.com Tue Mar 2 12:19:01 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 07:19:01 -0500 Subject: [Zope] DCOracle free for use for internal purposes ? Message-ID: <613145F79272D211914B0020AFF640190D9E2C@GANDALF> Andreas writes: > we want to use the DCOracle module for Python inside a commercial > production > process in our house. We don't sell a product with DCOracle > nor we redistribute DCOracle in any form. Is the use of DCOracle > for this purposes free ? Yes, DCOracle is free and Open Source. --Paul From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From JPGlutting@cspt.es Tue Mar 2 13:23:41 1999 From: JPGlutting@cspt.es (JP Glutting) Date: Tue, 2 Mar 1999 13:23:41 MET-1MEST Subject: [Zope] AUTHENTICATED_USER Message-ID: <153C1D93564@sahara.cspt.es> Does anyone have any more information on AUTHENTICATED_USER? We saw a while back that it has properties (AUTHENTICATED_USER.has_role(['Manager', 'Editor'])). I would like to be able to get the user name, and use that to index simple files for users. Is there something like AUTHENTICATED_USER['UserName']?? This is essentially the information that is returned if you try . However, if you try something like , it does not work. The only way I have been able to use this information so far is to put in a form, and pass it in a REQUEST to another page. But I want to be able to get this information directly. I have even tried REQUEST.set('myUser', AUTHENTICATED_USER) inthe header, but this has the same problem (unsurprisingly) as AUTHENTICATED_USER itself. Any hints? Thanks, JP From julian@zereau.net Tue Mar 2 13:06:21 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 13:06:21 -0000 (GMT) Subject: [Zope] calling a function with arguments? Message-ID: I want to call a function I have made, with arguments. 1) is there any way to call it direct, complete with module name? It would mean getting Zope to import that module. 2) I know I can put it in an external metod and use but it needs arguments, so I'll need to set and re-set the same DTML-namespace variable throughout the document, in which case, how do I alter/set DTML varibles from within DTML? --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 13:58:23 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 08:58:23 -0500 Subject: [Zope] AUTHENTICATED_USER Message-ID: <613145F79272D211914B0020AFF64019FD7A@GANDALF> > Does anyone have any more information on AUTHENTICATED_USER? > We saw a while > back that it has properties (AUTHENTICATED_USER.has_role(['Manager', > 'Editor'])). I would like to be able to get the user name, > and use that to > index simple files for users. Is there something like > AUTHENTICATED_USER['UserName']?? This is essentially the > information that is > returned if you try . However, > if you try > something like , it does not > work. AUTHENTICATED_USER itself is an object -- the reason gives you the user name is that it effectively does an str() on the user object. To work with the user name directly, you can use the getUserName() method of the user object: Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 13:49:14 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 08:49:14 -0500 (EST) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On Tue, 2 Mar 1999 julian@zereau.net wrote: > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same DTML-namespace > variable throughout the document, in which case, how do I alter/set DTML > varibles from within DTML? > I am not sure I understand your problem. Default arguments can be given in the definition of the function. If you need to pass a variable in an external method you can just do Additionally the self argument in the external method definition is replaced by the object (or containing folder) that calls the method so you have access to the namespace of the object through self. Pavlos From sfranke@cdc-group.com Tue Mar 2 14:05:25 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 2 Mar 1999 15:05:25 +0100 Subject: [Zope] calling a function with arguments? Message-ID: <01E40461E003D21195CC0080296495D80B12B2@gates.cdc-group.com> julian@zereau.net wrote: > I want to call a function I have made, with arguments. > > 1) is there any way to call it direct, complete with module name? It > would mean > getting Zope to import that module. > Where is your function located? Is it an external method? In this case imports in the method's file work fine, but only inside Zope's search path (practically, the installation path and lib subdirectory). A good place to put your modules and packages is the lib//shared/ dir. > > 2) I know I can put it in an external metod and use but it > needs arguments, so I'll need to set and re-set the same > DTML-namespace > variable throughout the document, in which case, how do I alter/set > DTML > varibles from within DTML? > try (the quotation marks are important) Stefan From Anthony Baxter Tue Mar 2 12:15:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Tue, 02 Mar 1999 23:15:49 +1100 Subject: [Zope] terminating DTML parsing... In-Reply-To: Your message of "Tue, 02 Mar 1999 07:17:14 CDT." <613145F79272D211914B0020AFF640190D9E2B@GANDALF> Message-ID: <199903021215.XAA07807@mbuna.arbhome.com.au> > Anthony wrote: > > from inside DTML, is there a way to say "don't process any > > further DTML, > > just return this to the user"? > > Umm, ?? That works fine if it's all one big DTML method. But what if you have a series of pages which each have at the top. inside check_widget_settings I want to be able to say "if this, then enough. don't return back to the enclosing objects, just send what you have now." kinda like a DTML exception :) Anthony From julian@zereau.net Tue Mar 2 14:12:48 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 14:12:48 -0000 (GMT) Subject: [Zope] calling a function with arguments? In-Reply-To: Message-ID: On 02-Mar-99 Pavlos Christoforou wrote: > Thanks, this is exactly what I was looking for. --- Julian Morrison Programmer (Zereau Ltd) From mj@antraciet.nl Tue Mar 2 14:34:37 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 15:34:37 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <153C1D93564@sahara.cspt.es> Message-ID: <4.1.19990302144353.00ba8560@lisp.atmm.nl> At 14:23 02/03/99 , JP Glutting wrote: >Does anyone have any more information on AUTHENTICATED_USER? We saw a while >back that it has properties (AUTHENTICATED_USER.has_role(['Manager', >'Editor'])). I would like to be able to get the user name, and use that to >index simple files for users. Is there something like >AUTHENTICATED_USER['UserName']?? This is essentially the information that is >returned if you try . However, if you try >something like , it does not >work. > Use More hints linke this can be found in the User.py file in your lib/python/AccessControl directory. The following functions could be usefull: getUserName(self): Return the username of a user getRoles(self): Return the list of roles assigned to a user. getDomains(self): Return the list of domain restrictions for a user allowed(self, parent, roles=None): Check wether the user has access to parent hasRole(self, parent, roles=None): Check wether the user has the specified roles has_role(self, roles): Check wether the user has the specified roles allowed & hasRole are one and the same. When called with parent=None, it just returns wether the user has the named roles. has_role also checks for roles, but doesn't automatically include the Anonymous role. So, hasRole(None, 'Anonymous') always returns true, but has_role('Anonymous') returns false for every user that has been authenticated. Note that AUTHENTICATED_USER is always defined, also for anonymous access. Here is a little example of what you could do with these functions: Display user info You are the user named .

    You have the following roles:

  • You have no roles defined.

    You are allowed to log in from the following domains:

  • You can log in from any domain.

    You have the 'Manager' role.
    You have the 'Anonymous' role. You are therefore an anonymous user.
    You have the 'nonexistent' role.
    The last call to has_role is to show that the user defined in the 'access' file in the root folder of your Zope installation, has ALL roles, including non-existent ones. And even more interesting, the call to getRoles() will get you 'manage', a misspelled version of the 'Manager' role. This is probably the only way to reliably recognize the superuser. -- M.J. Pieters, Web Developer | Antraciethttp://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Brian@digicool.com Tue Mar 2 15:08:47 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 10:08:47 -0500 Subject: [Zope] Re: [Crew] External Methods? Message-ID: <613145F79272D211914B0020AFF64019FD7B@GANDALF> > I understand the security problems inherent in > ExternalMethods; unfortunately, > without them, Zope is merely an "also-ran" in the web > applicaton race, from my > perspective. DTML in isolation is not an "ASP-killer." > > I'm CC'ing the Zope list, in hopes that someone there can > either allay or slay > our fears. > > It seems to me that the security problem is that > ExternalMethods can get access > to "sibling objects" of the object on which they are invoked, > right? I mean, if > we could make the siblings inaccessible, and acquired > properties read-only, then > we should be ok, no? Ugh, I don't grok acquisition well > enough to tackle that > myself, I fear. Well, it's actually deeper than that. You are correct in saying that DTML alone is not an ASP-killer. Consider the similarities between Zope and, for example, ASP/COM (though the same holds true for practically any other system as well): ASP lets you use the services provided by (COM) objects, which may be provided by the server or provided independently. I'm sure that MS tries to make the server-provided objects fairly safe, but there is _nothing_ stopping a programmer from writing and installing a COM object with an evil() method that wipes out your C: drive, except the fact that presumably the sysadmin exercises some control over making these independent services available. The same holds true for Zope (and any other app server out there). Like ASP/COM, External Methods give you the ability to provide more powerful services for use by your application. It also gives you exactly the same problems (though I'm sure that evil() method could be developed in a quarter of the time in Python :) Basically, with power comes responsibility, and I can't really imagine any system that could _safely_ allow possibly-untrusted people to write (basically) arbitrary code. It's not even really a matter of what services are or are not available to those people. I'm sure that many, many hours and much brain-power went into the design of Java's security mechanisms. Even so, if I were a web site manager I still couldn't let untrusted users write their own arbitrary java code to run in my web or app server. Even after I had figured out a way to wall off every service I could think of that could possibly be harmful, the user could still probably just do the Java equivalent of: while 1: pass Zope DTML goes to a good deal of trouble to minimize these problems in DTML itself, and we would certainly consider any concrete ideas on how to make External Methods safer. Can you give me some examples of other app servers that you feel deal with safety of external services in a better way? I'd be happy to do some looking into how others are dealing with this. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From michel@digicool.com Tue Mar 2 15:18:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:18:30 -0500 Subject: [Zope] Help with editing Product dtml files Message-ID: <613145F79272D211914B0020AFF6401907BABA@GANDALF> > -----Original Message----- > From: Piers Lauder [mailto:piers@cs.su.oz.au] > Sent: Tuesday, March 02, 1999 1:54 AM > To: Zope Mailinglist > Subject: [Zope] Help with editing Product dtml files > > > I'm making a Zope "Product" for managing and creating student surveys > (which I hope to contribute via zope.org) but I'm having > trouble with a > couple of techniques: > > 1. How does one enable a dtml file that is instantiated as in > my_dtml = HTMLFile('my', globals()) > available for editing in the products' management screen? > Make your Product a Folderoid (zopespeak for a Folder Object) that contains it's own user interface which the manager can edit. Your __init__ function initially loads the documents off disk into the Folder. Confera and NotMail both do this (Confera does it a little smarter). > There's probably more to this - as at the moment the management > screen goes straight to the "index_html" form as with the "Poll" > Product. > > 2. What's the approved way to catch database errors in methods? > I'll let someone who has more experience with those areas answer this one. :) > I'm creating tables on the fly, and need to check if the table > exists before trying to create it. (I'd use a "tables" method if > all the database interfaces supported it. I'd also use > a try/except > but the database objects have different names for their > exceptions.) > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From julian@zereau.net Tue Mar 2 15:17:00 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 15:17:00 -0000 (GMT) Subject: [Zope] Re: [Crew] External Methods? In-Reply-To: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: On 02-Mar-99 Brian Lloyd wrote: > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. There absolutely does need to be an "unprotected mode" available though - the system designers might *need* it to do scary destructive things like deleting files. Zope should not get in the way. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 15:34:35 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 10:34:35 -0500 (EST) Subject: [Zope] Zope needs a FAQ. Message-ID: Zopistas Seems that the activity on the Zope list has exploded. A lot of the questions I read in the posts have been raised many times in the past. I believe a FAQ on the Zope site is neccessary. Do the folks at digital creations have time to set it up? Pavlos From michel@digicool.com Tue Mar 2 15:54:18 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 2 Mar 1999 10:54:18 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BABB@GANDALF> > -----Original Message----- > From: Martijn Pieters [mailto:mj@antraciet.nl] > Sent: Tuesday, March 02, 1999 9:35 AM > To: JP Glutting; zope@zope.org > Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. > > This is an excellent post. I want to add that _getPassword() is a handy function also if you want to use your Zope user to authenticate into an external system, like POP3 or IMAP. -Michel > Use > > More hints linke this can be found in the User.py file in your > lib/python/AccessControl directory. > > The following functions could be usefull: > > getUserName(self): Return the username of a user > getRoles(self): Return the list of roles assigned to a user. > getDomains(self): Return the list of domain restrictions for a user > allowed(self, parent, roles=None): Check wether the user has > access to parent > hasRole(self, parent, roles=None): Check wether the user has > the specified > roles > has_role(self, roles): Check wether the user has the specified roles > > allowed & hasRole are one and the same. When called with > parent=None, it > just returns wether the user has the named roles. has_role > also checks for > roles, but doesn't automatically include the Anonymous role. So, > hasRole(None, 'Anonymous') always returns true, but > has_role('Anonymous') > returns false for every user that has been authenticated. > > Note that AUTHENTICATED_USER is always defined, also for > anonymous access. > > Here is a little example of what you could do with these functions: > > Display user info > You are the user named .

    > > > You have the following roles: > > >

  • > > > You have no roles defined. > >

    > > > You are allowed to log in from the following domains: > > >

  • > > > You can log in from any domain. > >

    > > > You have the 'Manager' role.
    > > > > You have the 'Anonymous' role. You are therefore an anonymous > user.
    > > > > You have the 'nonexistent' role.
    > > > > The last call to has_role is to show that the user defined in > the 'access' > file in the root folder of your Zope installation, has ALL > roles, including > non-existent ones. And even more interesting, the call to > getRoles() will > get you 'manage', a misspelled version of the 'Manager' role. This is > probably the only way to reliably recognize the superuser. > > > -- > M.J. Pieters, Web Developer > | Antraciethttp://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From bkc@murkworks.com Tue Mar 2 14:42:43 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 10:42:43 -0400 Subject: [Zope] ZServer and MSIE (long & detailed) In-Reply-To: Message-ID: <199903021536.KAA27681@anvil.murkworks.com> On 1 Mar 99, at 20:36, Dave G wrote: > Has anyone else experienced a problem getting Explorer to connect with > Zserver? I have no problem with any version of Navigator but MSIE 3.01 > and 4.0 and 4.5 for both Mac and Windows throw up an error box claiming an > "error with Explorer's internet extensions has failed". Edit Zserver/medusa/http_server.py around line 55, change to: use_chunked = 0 Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From Armin.Tschammer@oi42.kwu.siemens.de Tue Mar 2 15:53:07 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Tue, 02 Mar 1999 16:53:07 +0100 Subject: [Zope] ZPublisher or Bobo and stdout Message-ID: <36DC0962.7996940D@oi42.kwu.siemens.de> Hi, The followowing problem seems very fundamental to me. I already did a post to this group to this topic and I got the following answer: On Wed, 13 Jan 1999, Dr. Armin Tschammer wrote: > I publish the following Modul with Bobo: > Very simple: > > hello.py: > > import sys, os, time > import DocumentTemplate > > lib=sys.path[0] > sys.path.append(os.path.join(lib,'DT')) > > def hello(): > "Display a greeting" > # print "rrr" > X3 = DocumentTemplate.HTMLFile(lib+'/hello.dtml') > return X3() > Now, when I make the commentated line print "rrr" active, I get > Internal Server Error The "print" goes directly to the webserver, which confused it: it expects HTTP headers like "HTTP/1.0 200 Okay". The "return" sends your data to *Zope*, which then does the header stuff for you. Same with cookies, content-type, etc. Summary: dont use 'print', or redirect stdout to a log file. Now the problem is deeper, what shall I do when I am import C++ Modules in Python ( extending Python), and that modules are writing to the stdout via "cout" or "printf", I have no influence to that. If I change the stdout via "freopen( "file, "wr", stdout )" or stuff like that, I have no chance to switch back to the *real* stdout ( look at the c-faq of comp.lang.c ), and I *have to* switch back because of the cgi-mechnism, which uses ZPublisher. The only the chance to handle stuff like that is to work with two processes in the Zopemechanism. A Zopeserver which tells the Zope Client to start a pythonfunction. Now all stdout happens on the client and the server listen for a string on a socket ( or something similar ). Now when the server gets the string it does all necessary wrapping ( content-type and so on ), and send it to the Xserver via its stdout. Or is there a less complicate solution ? Thanks in advance Armin From Paul@digicool.com Tue Mar 2 16:04:31 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 11:04:31 -0500 Subject: [Zope] Zope and Apache - again Message-ID: <613145F79272D211914B0020AFF640190D9E37@GANDALF> raver wrote: > I give up! That's unfortunate, but we understand. Getting *anything* to work with Apache's mod_rewrite module is quite a chore. It doesn't help that distributions like RedHat 5.2 ship it in a broken way, then people blame us for it, then we track down a problem that is completely outside Zope. Did you follow the recommendations to start with the built-in webserver before trying integrate with Apache? If so, did that work? --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From mj@antraciet.nl Tue Mar 2 16:04:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 02 Mar 1999 17:04:41 +0100 Subject: [Zope] Zope needs a FAQ. In-Reply-To: Message-ID: <4.1.19990302165933.00bd1160@lisp.atmm.nl> At 16:34 02/03/99 , Pavlos Christoforou wrote: >Zopistas > >Seems that the activity on the Zope list has exploded. A lot of the >questions I read in the posts have been raised many times in the past. I >believe a FAQ on the Zope site is neccessary. > >Do the folks at digital creations have time to set it up? > >Pavlos > I believe this is allready under construction: http://www.zope.org/Community/Services By far from incomplete, but it is the right direction. I think Amos' FAQ tool should be utilized there somewhere, and maybe some people from this list willing to help out DC should fill it in, because it looks like Ken Manheimer (who has been charged with community communications) allready seems overloaded. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From bkc@murkworks.com Tue Mar 2 15:05:41 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 2 Mar 1999 11:05:41 -0400 Subject: [Zope] Request.py and duplicate column names In-Reply-To: <8174B1EE3D2CD21180960000F8056723CFB321@telisnt1020.is.tel.co.jp> Message-ID: <199903021559.KAA27718@anvil.murkworks.com> On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > 1. When trying to do a join (a lazy query, I know) like: > > select a.*, b.* > from tablea a, tableb b > where a.b_id=a.id What about select * from tablea a, tableb b where a.b_id=a.id Wouldn't this give you vars called a.id and b.id? Hmmm... I bet Zope won't like that. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From julian@zereau.net Tue Mar 2 16:19:38 1999 From: julian@zereau.net (julian@zereau.net) Date: Tue, 02 Mar 1999 16:19:38 -0000 (GMT) Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: On 02-Mar-99 Michel Pelletier wrote: > > This is an excellent post. I want to add that _getPassword() is a handy > function also if you want to use your Zope user to authenticate into an > external system, like POP3 or IMAP. It occurs to me that a DTML document could contain this in a transparent sendmail form, assuming there is already a handy Mailhost set up, to capture and mail off the password of anyone browsing the page... --- Julian Morrison Programmer (Zereau Ltd) From Brian@digicool.com Tue Mar 2 16:34:26 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 2 Mar 1999 11:34:26 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF64019FD7C@GANDALF> > > This is an excellent post. I want to add that > _getPassword() is a handy > > function also if you want to use your Zope user to > authenticate into an > > external system, like POP3 or IMAP. > > It occurs to me that a DTML document could contain this in a > transparent > sendmail form, assuming there is already a handy Mailhost set > up, to capture > and mail off the password of anyone browsing the page... Not really -- you can't access _getPassword() from DTML. You would have to write an external method to do that (which implies that you have access to the filesystem, and could get the passwords anyway if you wanted them that bad...) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From zopelist@regalint.com Tue Mar 2 16:37:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 11:37:27 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: While we are on the subject of AUTHENTICATED_USER, I would like my users to be able to "logout" so that they then become anonymous again. Any ideas? I have seen this on Dejanews. It would be useful so that authorized users don't leave themselves logged in if they don't quit Netscape. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From chris.hunter@humancode.com Tue Mar 2 16:45:56 1999 From: chris.hunter@humancode.com (Chris Hunter) Date: Tue, 02 Mar 1999 10:45:56 -0600 Subject: [Zope] Request.py and duplicate column names References: <199903021559.KAA27718@anvil.murkworks.com> Message-ID: <36DC15C4.5527844D@humancode.com> Brad Clements wrote: > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > 1. When trying to do a join (a lazy query, I know) like: > > > > select a.*, b.* > > from tablea a, tableb b > > where a.b_id=a.id Is there any chance that you're trying to do something like: select * from a, b where a.b_id = b.id ^ Note that I'm joining a field in a to a field in b here (not 2 fields in a) Hope this helps. --chris From M.Faassen@vet.uu.nl Tue Mar 2 16:45:22 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:45:22 +0100 Subject: [Zope] Zope needs a FAQ. References: <4.1.19990302165933.00bd1160@lisp.atmm.nl> Message-ID: <36DC15A2.39FC35C6@pop.vet.uu.nl> Martijn Pieters wrote: > > At 16:34 02/03/99 , Pavlos Christoforou wrote: > > >Seems that the activity on the Zope list has exploded. A lot of the > >questions I read in the posts have been raised many times in the past. I > >believe a FAQ on the Zope site is neccessary. [snip] > I believe this is allready under construction: > http://www.zope.org/Community/Services > > By far from incomplete, but it is the right direction. I think Amos' FAQ tool > should be utilized there somewhere, and maybe some people from this list > willing to help out DC should fill it in, because it looks like Ken Manheimer > (who has been charged with community communications) allready seems overloaded. More generally speaking, we should be organizing the Zope documentation project. There was word of it before, but haven't heard much on it recently. In fact, the messages that I can find in my mailbox on it is people saying we should start such a project :). I'd obviously be very useful. As an example: I myself have sent some (obscure) questions to the list the week before last, and have only managed to receive an answer that confused me more (I welcomed the answer though, of course!). I sent more questions and observations last week, but haven't received answers yet (perhaps it's because I'm doing something fundamentally wrong with Zope but I'd like to hear it if that's so). Of course I'd like to see my questions answered. A FAQ would help filter out all the less obscure questions so that my obscure questions might get answers. :) So, the Zope Communication Project (hereby started if it doesn't exist yet, this is open source after all :) should make its first priority to create a fairly exhaustive FAQ. I currently have some time to invest in the ZDP (he said, tempting fate; work's slow right now, but this can change quickly). Anyway, I'll help. If only with the *questions* side of the FAQ, perhaps, but I can help. :) Initial Plan of Action for the ZDP: - Produce a fairly exhaustive FAQ, mining the mailing list for good questions and answers. - Organize the ZDP itself. :) Regards, Martijn From Dave.Goodrich@Premera.com Tue Mar 2 16:51:53 1999 From: Dave.Goodrich@Premera.com (Dave Goodrich) Date: Tue, 2 Mar 1999 08:51:53 -0800 Subject: [Zope] ZServer and MSIE (long & detailed) Message-ID: <1DBBCA4F9A86D21196BB0008C7A48FD6041A2A@MLTRD31> (Dummy Dummy Dummy......) I should have known that, it was a stumbling block with Mac cgi's, but I never noticed it when I checked http_server.py. I imagine that will fix it. It's the little stuff that gets ya, thanks. DAve. > -----Original Message----- > From: Brad Clements [mailto:bkc@murkworks.com] > Sent: Tuesday, March 02, 1999 6:43 AM > To: Dave G; zope@zope.org > Subject: Re: [Zope] ZServer and MSIE (long & detailed) > > > On 1 Mar 99, at 20:36, Dave G wrote: > > > Has anyone else experienced a problem getting Explorer to > connect with > > Zserver? I have no problem with any version of Navigator > but MSIE 3.01 > > and 4.0 and 4.5 for both Mac and Windows throw up an error > box claiming an > > "error with Explorer's internet extensions has failed". > > > Edit Zserver/medusa/http_server.py > > around line 55, change to: > > use_chunked = 0 > > > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 > From M.Faassen@vet.uu.nl Tue Mar 2 16:54:16 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 02 Mar 1999 17:54:16 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Hi there, Hereby I announce in absolute adhoc anarchistic fashion the Zope Documentation Project. The Zope Documentation Project aims to generate documention on anything Zope. The Zope Documentation Project needs people who wants to help. It needs these people to get organized. To get focused, I propose the ZDP's initial project is to provide FAQs on various Zope topics. We can mine the mailing list for good questions and answers. The ZDP asks everybody to contribute. Right now we need everything. :) We need questions and answers, and we need to categorize these in separate FAQ sections. We need Zope webspace somewhere to put up the FAQ, I assume using the FAQ product. We need to develop the FAQ product further, if necessary. We need whatever you can think of. The prime mean of communications for the ZDP is the Zope mailing list, until further notice. I suggest that to keep the mailing list somewhat organized we prepend our mailing list subjects with '[ZDP]'. If somebody has a better way, we'll do it a better way. Note that while I'm sending out this message, I'm not anything official. I'm just attempting to get the ball rolling. *nudges the ball* Regards, Martijn From wmlph@d033.ml.uwcm.ac.uk Tue Mar 2 17:01:20 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 2 Mar 1999 17:01:20 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Yay, Martin. Cheers from all involved. Phil ----- Original Message ----- From: Martijn Faassen To: Sent: Tuesday, March 02, 1999 4:54 PM Subject: [Zope] [ZDP] Announcing the Zope Documentation Project >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > >The Zope Documentation Project needs people who wants to help. It needs >these people to get organized. > >To get focused, I propose the ZDP's initial project is to provide FAQs >on various Zope topics. We can mine the mailing list for good questions >and answers. > >The ZDP asks everybody to contribute. Right now we need everything. :) >We need questions and answers, and we need to categorize these in >separate FAQ sections. We need Zope webspace somewhere to put up the >FAQ, I assume using the FAQ product. We need to develop the FAQ product >further, if necessary. We need whatever you can think of. > >The prime mean of communications for the ZDP is the Zope mailing list, >until further notice. I suggest that to keep the mailing list somewhat >organized we prepend our mailing list subjects with '[ZDP]'. If somebody >has a better way, we'll do it a better way. > >Note that while I'm sending out this message, I'm not anything official. >I'm just attempting to get the ball rolling. > >*nudges the ball* > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From robin@alldunn.com Tue Mar 2 17:14:51 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 09:14:51 -0800 Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app. Message-ID: <008601be64d0$33854620$8725d2d1@rogue.jenkon-dev.com> > >The objects that make up the product should normally be automaticly >decompressed and imported into Zope, but the decrompressing seems to be >failing. > Could it be a 1.5.1 vs 1.5.2b2 thing? I have 1.5.1 and it failed for me. Is the zlib.pyd in 1.5.2 based on a newer version of the zlib library that may not be forward compatible? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From oyvindmo@pvv.ntnu.no Tue Mar 2 18:14:07 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:14:07 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) Message-ID: Trying to get started with Zope on a FreeBSD machine. I did the following: * Downloaded source distribution of Zope-1.10.2 * Extracted it * cd into directory and ran 'python wo_pcgi.py' (no error messages) * ./start I then get the following in var/serve.log (slightly edited for slightly more readability): Traceback (innermost last): File "serve.py", line 90, in ? ZopeHTTPServer.main(sys.argv[1:]+[os.path.join(os.getcwd(),'lib','python','Main.py')]) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/ZopeHTTPServer/ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/Main.py", line 90, in ? from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/__init__.py", line 99, in ? import SingleThreadedTransaction, Persistence, PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SingleThreadedTransaction.py", line 110, in ? from PickleDictionary import PickleDictionary File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/PickleDictionary.py", line 91, in ? import marshal,time,Persistence,SimpleDB, PickleJar File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", line 104, in ? from cPickle import Pickler, Unpickler ImportError: /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I don't have any experience with Zope or even Python, but am I right in guessing that this looks like a problem with the python binary and not with Zope? Any ideas to precisely what the problem might be? python is v1.5.1. C compiler used is gcc 2.7.2.x. -- Øyvind Møll oyvindmo@pvv.ntnu.no From raver@box.dust.za.net Tue Mar 2 18:29:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 2 Mar 1999 19:29:03 +0100 Subject: [Zope] Zope and Apache - MADE IT! In-Reply-To: <613145F79272D211914B0020AFF640190D9E37@GANDALF>; from Paul Everitt on Tue, Mar 02, 1999 at 11:04:31AM -0500 References: <613145F79272D211914B0020AFF640190D9E37@GANDALF> Message-ID: <19990302192903.A5042@RaVER.duck.org> On Tue, Mar 02, 1999 at 11:04:31AM -0500, Paul Everitt wrote: > > raver wrote: > > I give up! > > That's unfortunate, but we understand. Getting *anything* to work with > Apache's mod_rewrite module is quite a chore. It doesn't help that > distributions like RedHat 5.2 ship it in a broken way, then people blame > us for it, then we track down a problem that is completely outside Zope. > > Did you follow the recommendations to start with the built-in webserver > before trying integrate with Apache? If so, did that work? > > --Paul > > Paul Everitt Digital Creations > paul@digicool.com 540.371.6909 > I finally got it working - just couldn't get it off my mind. Was kinda mindblowing the whole thing but finally - YES I MADE IT! :) What I did was to jump off the mod_rewrite thing and try let apache handle the authentication all together. At first I didn't know of the htpasswd binary (stupid as I am) so things didn't work at first. Then htpasswd lit my eyes - did the 'htpasswd -c' thing and ended up with a working AuthUserFile. Now the trick was to configure the damned thing in httpd.conf - this worked out ok: """ ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" AllowOverride None Options FollowSymLinks ExecCGI Order allow, deny Allow from all AddHandler cgi-script .cgi AuthType Basic AuthName Zope-in AuthUserFile /usr/local/apache/conf/zope_auth require valid-user # 'zope_auth' created with htpasswd -c /usr/local/apache/conf/zope_auth \ 'username' """ Actually - just like the manual tells me to. I did some wrong links and generally fucked things up. Thanks for keeping me going at least (that goes to all U ppl answering me) - sorry for taking up your time. Sture Lygren Sture Lygren From zopelist@regalint.com Tue Mar 2 18:25:51 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 2 Mar 1999 13:25:51 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: Excellent! Maybe one of the Web Hosts who offer Zope hosting would be interested in the excellent public relations derived from hosting the ZDP. Phil. ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Tue Mar 2 18:34:14 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 13:34:14 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: ; from Philip Aylesworth on Tue, Mar 02, 1999 at 01:25:51PM -0500 References: Message-ID: <19990302133414.09101@amber.org> On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > Excellent! > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > the excellent public relations derived from hosting the ZDP. > If not, I can probably provide resources (within reason :-) for this. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From oyvindmo@pvv.ntnu.no Tue Mar 2 18:44:16 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 02 Mar 1999 19:44:16 +0100 Subject: [Zope] trouble running zope-1.10.2 (freebsd, python 1.5.1) In-Reply-To: References: Message-ID: * Oyvind Moll | | Trying to get started with Zope on a FreeBSD machine. [snip] | I then get the following in var/serve.log (slightly edited for | slightly more readability): [snip] | | File "/usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/BoboPOS/SimpleDB.py", | line 104, in ? | from cPickle import Pickler, Unpickler | ImportError: | /usr/home/taiga/oyvindmo/work/Zope-1.10.2-src/lib/python/cPickle.so: Undefined symbol "PyExc_IOError" I discovered that my python binary was compiled without thread support. I think this is the case for many FreeBSD machines which haven't been updated recently-ish; maybe the ZDPers could mention this in a FAQ or something. Could the build script(s) check for proper thread support upon building? -- Øyvind Møll oyvindmo@pvv.ntnu.no From rob.page@digicool.com Tue Mar 2 18:58:27 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 2 Mar 1999 13:58:27 -0500 Subject: [Zope] RFQ: Upgd Netscape 2.x auth patch to Netscape 3.5.x Message-ID: <613145F79272D211914B0020AFF64019069109@GANDALF> Hello everyone: Some of you may know that many moons ago we (Brian) developed a plug-in for Netscape Enterprise Server (ES) 2.x (and FastTrack -- based on the same libraries) that addressed Netscape's nasty habit of removing authenticated_user information from the environment before calling CGI apps. Obviously, this has a deleterious effect on interesting zope applications. Fortunately (?), we are up to our armpits in projects and initiatives. As a result, we need someone to do a bit of work to upgrade the plug-in from ES 2.x to ES 3.5.x. I can provide the following files from our 2.x incarnation: o plug-in source code o obj.conf o magnus.conf The source code is only 153 lines of generously formatted C (w/lots of defs) so I'm hopeful that this isn't a HUGE task. I'm interested in hearing quotes from people in the community that have experience with the NSAPI and would, for a reasonable fee, develop, compile (Solaris 2.6 and NT4) and test an upgraded plug-in. The work would be contributed back under the ZPL. Naturally, I'd also entertain offers from people to do this for free! :^) --Rob P.S. - I KNOW there are some NSAPI wizards out there so don't be shy! -- Rob Page V: 540 371 6909 Digital Creations http://www.digicool.com From jae@kavi.com Tue Mar 2 19:41:57 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:41:57 -0800 (PST) Subject: [Zope] ZPublisher or Bobo and stdout In-Reply-To: <36DC0962.7996940D@oi42.kwu.siemens.de> Message-ID: On Tue, 2 Mar 1999, Dr. Armin Tschammer wrote: > Or is there a less complicate solution ? How about Mr. Creosote. This is a wonderful little utility from Jeff Bauer. It basically an example implementation of socket datagrams... ie. it lets you print out via a socket to a little server program. Its great for debugging Zope/Bobo apps. Here's Mr. Creosote's web page for more info... http://starship.python.net/crew/jbauer/creosote/index.html --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tseaver@palladion.com Tue Mar 2 19:43:10 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 13:43:10 -0600 Subject: [Zope] Re: [Crew] External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> Message-ID: <36DC3F4E.C7D86C0E@palladion.com> Brian Lloyd wrote: > > > > > > It seems to me that the security problem is that > > ExternalMethods can get access > > to "sibling objects" of the object on which they are invoked, > > right? I mean, if > > we could make the siblings inaccessible, and acquired > > properties read-only, then > > we should be ok, no? Ugh, I don't grok acquisition well > > enough to tackle that > > myself, I fear. > > Well, it's actually deeper than that. You are correct in saying > that DTML alone is not an ASP-killer. Consider the similarities > between Zope and, for example, ASP/COM (though the same holds true > for practically any other system as well): Please don't ge me wrong: I _like_ ExternalMethod / Product as a way to extend Zope. My comment is in the context of not (currently) being able to add ExternalMethods to my Zope demesne on starship, given the (quite legitimate) security concerns of the Zopemeister. > > ASP lets you use the services provided by (COM) objects, which may > be provided by the server or provided independently. I'm sure that > MS tries to make the server-provided objects fairly safe, but there > is _nothing_ stopping a programmer from writing and installing a COM > object with an evil() method that wipes out your C: drive, except the > fact that presumably the sysadmin exercises some control over making > these independent services available. I looked at the ExternalMethod source last night a bit: the actual method execution is done via an apply() call, after loading and compiling the code for the function. We might be able to come up with an alternate product which used a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python code stored in the Zbase itself. The particulars of my case are that the control structures of DTML are not quite powerful enough to accomplish my task; of course, strengthening them, even in a "sandbox" model, still leaves open the possibility for buggy/malicious code to do ugly things (like your example below). > > The same holds true for Zope (and any other app server out there). > Like ASP/COM, External Methods give you the ability to provide more > powerful services for use by your application. It also gives you > exactly the same problems (though I'm sure that evil() method could > be developed in a quarter of the time in Python :) > > Basically, with power comes responsibility, and I can't really imagine > any system that could _safely_ allow possibly-untrusted people to write > (basically) arbitrary code. It's not even really a matter of what services > are or are not available to those people. I'm sure that many, many hours > and much brain-power went into the design of Java's security mechanisms. > Even so, if I were a web site manager I still couldn't let untrusted > users write their own arbitrary java code to run in my web or app > server. > > Even after I had figured out a way to wall off every service I could > think of that could possibly be harmful, the user could still probably just do > the Java equivalent of: > > while 1: > pass > > Zope DTML goes to a good deal of trouble to minimize these problems > in DTML itself, and we would certainly consider any concrete ideas > on how to make External Methods safer. Can you give me some examples > of other app servers that you feel deal with safety of external > services in a better way? I'd be happy to do some looking into how > others are dealing with this. Any Turing machine can do "while 1: pass", so no sufficiently general syntax is "safe" from this attack. Actually, the possibility which seemed most interesting was Doug Wyatt's suggestion of "federating" a set of independent Zbases under one (at least apparently one) server. Then any damage my ExternalMethod did would be to the Zbase would be on my own head, at least. If that server were actually a process running as me, then standard system security procedures should probably be fine. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jae@kavi.com Tue Mar 2 19:50:50 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 2 Mar 1999 11:50:50 -0800 (PST) Subject: [Zope] ZMySQLDA installation In-Reply-To: <36DB1478.E2D7915E@avalongroup.net> Message-ID: On Mon, 1 Mar 1999, Timothy Grant wrote: > Hi all, > > This is probably more of a newbie Linux question than a newbie Zope > question, but I'm going to ask it here anyway: Which distribution are you using? > I would like to connect Zope to a database, so I have setup both > PostgreSQL and MySQL. My reading tells me that MySQL is probably the > better choice as a web backend (Any comments from those of you more > knowledgable than I would be appreciated!) So I downloaded the MySQL > source, compiled, installed and tested it. It looks like I did it right. > I then downloaded the ZMySQLDA from the Zope site. You might want to consider switching to one of the official binary kits available from MySQL's homepage. MySQL is notoriously picky about how it is compiled. > I have followed the directions--I think, but get the following error > when trying to do the initial make: > > [tjg@puddleglum src]$ make -f Makefile.pre.in boot > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`python -c "import sys; print sys.version[:3]"`; \ > installdir=`python -c "import sys; print sys.prefix"`; \ > exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ > make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > make[1]: Entering directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho > n/Products/ZMySQLDA/src' > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. > make[1]: Leaving directory > `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/python > /Products/ZMySQLDA/src' > make: *** [boot] Error 2 Looks like you didn't install the development libraries for python (python-devel or python-dev). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From petrilli@amber.org Tue Mar 2 19:56:03 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Tue, 2 Mar 1999 14:56:03 -0500 Subject: [Zope] Re: External Methods? In-Reply-To: <36DC3F4E.C7D86C0E@palladion.com>; from Tres Seaver on Tue, Mar 02, 1999 at 01:43:10PM -0600 References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> Message-ID: <19990302145603.03234@amber.org> On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > I looked at the ExternalMethod source last night a bit: the actual method > execution is done via an apply() call, after loading and compiling the code for > the function. We might be able to come up with an alternate product which used > a carefully tuned rexec() (Bastion? I plead ignorance), operating on Python > code stored in the Zbase itself. This was an idea I'd proffered, but honestly haven't looked at enough yet to know whether it would work... it SHOULD work, but it might require some modifications to the aquisition code, but I've not looked neough yet. > The particulars of my case are that the control structures of DTML are not quite > powerful enough to accomplish my task; of course, strengthening them, even in a > "sandbox" model, still leaves open the possibility for buggy/malicious code to > do ugly things (like your example below). Well, it might help if you offered what control strucuture you need, we might be able to come up wit han interim solution. > Actually, the possibility which seemed most interesting was Doug Wyatt's > suggestion of "federating" a set of independent Zbases under one (at least > apparently one) server. Then any damage my ExternalMethod did would be to the > Zbase would be on my own head, at least. If that server were actually a process > running as me, then standard system security procedures should probably be fine. > TO me this is just a hack to get around it near term, and doesn't fix the problem. Also if you have 100 users, do you have 100 instances of zope running under 1 ZServer? That sounds like a true administrative nightmare... And substantial overkill. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rwolff@noao.edu Tue Mar 2 20:12:36 1999 From: rwolff@noao.edu (Richard Wolff) Date: Tue, 2 Mar 1999 13:12:36 -0700 Subject: [Zope] FTop level name Message-ID: <199903022012.NAA27462@daikon.tuc.noao.edu> This feels so dumb but: How do I change the manage page so it says, for example, "Plutonia" next to the top folder, instead of "Zope"? From tseaver@palladion.com Tue Mar 2 20:16:27 1999 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 02 Mar 1999 14:16:27 -0600 Subject: [Zope] Re: [Crew] Re: External Methods? References: <613145F79272D211914B0020AFF64019FD7B@GANDALF> <36DC3F4E.C7D86C0E@palladion.com> <19990302145603.03234@amber.org> Message-ID: <36DC471B.686654F9@palladion.com> Christopher G. Petrilli wrote: > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > The particulars of my case are that the control structures of DTML are not quite > > powerful enough to accomplish my task; of course, strengthening them, even in a > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > do ugly things (like your example below). > > Well, it might help if you offered what control strucuture you need, we > might be able to come up wit han interim solution. Ok, the "teeth-cutting" example I am trying to implement generates math-facts problems for my five year old. In Python, two trivial functions: I _think_ this one is easy in DTML: def problem( max_term, operators ) : """ Generate a single math-fact problem whose terms are within range( max_term + 1 ), using one of the supplied operators. """ lhs = random.randrange( max_term + 1 ) rhs = random.randrange( max_term + 1 ) operation = operators[ random.randrange( len( operators ) ) ] return ( lhs, operation, rhs ) But not this one: def gen_problem( max_term, operators ) : """ Generate a math-fact problem whose terms and results are all within range( max_term ), using the supplied operators. """ while 1 : # Arbitrary looping! (could benefit from # the dreaded assignment-in-conditional :) probStr = "%d %s %d" % problem( max_term, operators ) result = eval( probStr ) if 0 <= result and result <= max_term : return probStr And of course, the DTML syntax for something like this is going to be ugly. > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > suggestion of "federating" a set of independent Zbases under one (at least > > apparently one) server. Then any damage my ExternalMethod did would be to the > > Zbase would be on my own head, at least. If that server were actually a process > > running as me, then standard system security procedures should probably be fine. > > > > TO me this is just a hack to get around it near term, and doesn't fix > the problem. Also if you have 100 users, do you have 100 instances of > zope running under 1 ZServer? That sounds like a true administrative > nightmare... And substantial overkill. One instance per "sandbox", not one per user (although on starship this is a distinction without a difference). The "content manager only" applications will do fine in a single Zope instance, as now. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Jose.Lacal@icn.siemens.com Tue Mar 2 21:02:05 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 2 Mar 1999 16:02:05 -0500 Subject: [Zope] Zope 1.10.2 dies every so often. Message-ID: <85256728.007360D6.00@li01.lm.ssc.siemens.com> Folks: My installation of Zope 1.10.2 dies every so often, from once a week to twice a day (like today). I am running Red Hat 5.0 on a 486 / 32 Mb RAM. I upgraded from Zope 1.9.0 to 1.10.2 /var/server.errors says: WARNING: Python C API version mismatch for module _pg: This Python has API version 1007, module _pg has version 1006. brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:46] "GET /documents/portable.pdf HTTP/1.1" 200 - Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:47] "GET /documents/portable.pdf HTTP/1.1" 200 -Traceback (innermost last): File "ZopeHTTPServer/ZopeHTTPServer.py", line 388, in handle_request self.process_request(request, client_address) File "lib/python1.5/SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "lib/python1.5/SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "lib/python1.5/SocketServer.py", line 362, in __init__ self.handle() File "lib/python1.5/BaseHTTPServer.py", line 258, in handle method() File "ZopeHTTPServer/ZopeHTTPServer.py", line 292, in do_GET self.publish_module() File "ZopeHTTPServer/ZopeHTTPServer.py", line 305, in publish_module publish_module( File "lib/python/ZPublisher/Publish.py", line 893, in publish_module if response: stdout.write(response) File "ZopeHTTPServer/ZopeHTTPServer.py", line 240, in write self.handler.wfile.write(self.data[:start]+ IOError: (32, 'Broken pipe')brfw1ext.fl.icn.siemens.com - - [02/Mar/1999 16:36:54] "GET /documents/portable.pdf HTTP/1.1" 200 - Obviously I have something wrong here. Any ideas? TIA. From pavlos@gaaros.msrc.sunysb.edu Tue Mar 2 21:00:18 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 2 Mar 1999 16:00:18 -0500 (EST) Subject: [Zope] Re: [Crew] Re: External Methods? In-Reply-To: <36DC471B.686654F9@palladion.com> Message-ID: In my experience many situations where external methods are needed do not require access to the Zope data tree, like the math test example you presented. One approach is to use a second server that does XML-RPC (Fredrik Lundh has already written a client and a simple server) and set an account/folder where everybody can upload their scripts and access them through XML-RPC calls from their Zope environment. I suppose we can write a product that provides the client site of the XML-RPC based on Fredrik's implementation. As for the server site Jim once mentioned that the support should go in ZPublisher but initially a simple server based on python standard libraries will be adequate. Or use the newly released asyncore libs though I suspect a multithreading server will be better in this situation. If however one requires access to the 'self' argument of an external method such an approach will not be adequate. Usually though one can collect the relevant parameters by using DTML calls and send them to the XML-RPC server for processing. Pavlos On Tue, 2 Mar 1999, Tres Seaver wrote: > Christopher G. Petrilli wrote: > > > > On Tue, Mar 02, 1999 at 01:43:10PM -0600, Tres Seaver wrote: > > > > > The particulars of my case are that the control structures of DTML are not quite > > > powerful enough to accomplish my task; of course, strengthening them, even in a > > > "sandbox" model, still leaves open the possibility for buggy/malicious code to > > > do ugly things (like your example below). > > > > Well, it might help if you offered what control strucuture you need, we > > might be able to come up wit han interim solution. > > Ok, the "teeth-cutting" example I am trying to implement generates math-facts > problems for my five year old. In Python, two trivial functions: > > > I _think_ this one is easy in DTML: > > def problem( max_term, operators ) : > """ Generate a single math-fact problem whose terms are within > range( max_term + 1 ), using one of the supplied operators. > """ > lhs = random.randrange( max_term + 1 ) > rhs = random.randrange( max_term + 1 ) > operation = operators[ random.randrange( len( operators ) ) ] > return ( lhs, operation, rhs ) > > But not this one: > > def gen_problem( max_term, operators ) : > """ Generate a math-fact problem whose terms and results are all within > range( max_term ), using the supplied operators. > """ > > while 1 : # Arbitrary looping! (could benefit from > # the dreaded assignment-in-conditional :) > > probStr = "%d %s %d" % problem( max_term, operators ) > result = eval( probStr ) > > if 0 <= result and result <= max_term : > return probStr > > And of course, the DTML syntax for something like this is going to be ugly. > > > > > > Actually, the possibility which seemed most interesting was Doug Wyatt's > > > suggestion of "federating" a set of independent Zbases under one (at least > > > apparently one) server. Then any damage my ExternalMethod did would be to the > > > Zbase would be on my own head, at least. If that server were actually a process > > > running as me, then standard system security procedures should probably be fine. > > > > > > > TO me this is just a hack to get around it near term, and doesn't fix > > the problem. Also if you have 100 users, do you have 100 instances of > > zope running under 1 ZServer? That sounds like a true administrative > > nightmare... And substantial overkill. > > One instance per "sandbox", not one per user (although on starship this is a > distinction without a difference). The "content manager only" applications will > do fine in a single Zope instance, as now. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From aaron@cs.rutgers.edu Tue Mar 2 21:10:50 1999 From: aaron@cs.rutgers.edu (Aaron Watters) Date: Tue, 2 Mar 1999 16:10:50 -0500 (EST) Subject: [Zope] Re: [Crew] Re: [Zope] Re: [Crew] Re: External Methods? Message-ID: <199903022110.QAA22581@athos.rutgers.edu> Suggestion: for python-python data transfer and storage XML-RPC is overkill. Python already has marshal which will be a lot faster and I think do the same thing. Also, if you haven't, please have a look at what I did using gadfly and cgi. I know it's more conventional and hence boring, but nevertheless... http://starship.skyport.net/crew/aaron_watters/kwParsing/chatcgi.cgi (source included). -- Aaron Watters From robin@alldunn.com Tue Mar 2 21:25:20 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 2 Mar 1999 13:25:20 -0800 Subject: [Zope] Setting properties based on security Message-ID: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> I have a folder with various boolean properties associated with it which are accessed by the dtml docs as flags for enabling or disabling content. Turn off the flag and a chunk of the page goes away when it is next viewed. This works great, but I would like to associate that behaviour with the security attributes. In other words, when somebody in the Anonymous role is viewing objects in the folder the properties should be unset, but when users in the manager (or some other specific role) view the pages then the properties should be set and those parts of the pages are activated. How can this be done? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From klm@digicool.com Tue Mar 2 20:14:58 1999 From: klm@digicool.com (Ken Manheimer) Date: Tue, 2 Mar 1999 15:14:58 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF640190BED65@GANDALF> Martijn Faassen wrote: > Hereby I announce in absolute adhoc anarchistic fashion the Zope > Documentation Project. The Zope Documentation Project aims to generate > documention on anything Zope. Thank you, Martijn, you've made my day! This is extremely cool. As you might expect, here at digicool we're yearning to produce more and better documentation, and, as with other things, we want to have more time and energy to do it than we do. This kind of effort from you, and from anyone else who can help, is *severely* appreciated. I know i'll be participating - question is, besides scraping together the time we can, how else can digicool help? Some thoughts, below... > The Zope Documentation Project needs people who wants to help. It needs > these people to get organized. > > To get focused, I propose the ZDP's initial project is to provide FAQs > on various Zope topics. We can mine the mailing list for good questions > and answers. > > The ZDP asks everybody to contribute. Right now we need everything. :) > We need questions and answers, and we need to categorize these in > separate FAQ sections. We need Zope webspace somewhere to put up the > FAQ, I assume using the FAQ product. We need to develop the FAQ product > further, if necessary. We need whatever you can think of. > > The prime mean of communications for the ZDP is the Zope mailing list, > until further notice. I suggest that to keep the mailing list somewhat > organized we prepend our mailing list subjects with '[ZDP]'. If somebody > has a better way, we'll do it a better way. Some thoughts: - We would be happy to provide a mailing list or two for you all - If it makes sense (logistically, for us as well as for you), we could host the FAQ stuff or whatever on zope.org. This we'll have to discuss - both what all might want, and what we can safely and effectively do... (I've been thinking about requirements for a collaborative FAQ mechanism, which can be tricky if you want it to be available for contribution to the community in general, yet still remain organized enough for people to find what they're seeking. An interesting problem...) > > Note that while I'm sending out this message, I'm not anything official. > I'm just attempting to get the ball rolling. > > *nudges the ball* Yay! Ken klm@digicool.com From Paul@digicool.com Tue Mar 2 20:29:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 2 Mar 1999 15:29:56 -0500 Subject: [Zope] Anyone want to give a talk about Zope at WWW8? Message-ID: <613145F79272D211914B0020AFF640190D9E4A@GANDALF> David wrote: > http://www.utoronto.ca/ian/WWW8/sessions.html > > See session 6, run by our friend Cameron Laird. Actually I emailed a talk proposal for the last one (Brian Behlendorf's Open Source one). --Paul From Anthony Baxter Tue Mar 2 22:20:50 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 09:20:50 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Tue, 02 Mar 1999 15:34:37 BST." <4.1.19990302144353.00ba8560@lisp.atmm.nl> Message-ID: <199903022220.JAA08390@mbuna.arbhome.com.au> Note that this snippet: > > You have the following roles: > > >

  • > > > You have no roles defined. > can also be written: You have the following roles:
  • You have no roles defined. That is, #in can have an #else clause, which is called when the sequence is zero length. I find this easier to read (particularly when the expression to generate the sequence is large.) Anthony Anthony From DAve@mail.netraven.com Wed Mar 3 00:33:07 1999 From: DAve@mail.netraven.com (Dave G) Date: Tue, 2 Mar 1999 16:33:07 -0800 Subject: [Zope] ZServer and MSIE Message-ID: For those interested changing the "chunks=1" to "chunks=0" in http_server.py did in fact fix the incompatibility with MSIE and ZServer. Zope's, I don't consider this a bug with ZServer but with MSIE as this also plauged me using Frontier cgi's many times, the fix was the same. So I'm not creating a bug report unless you want this documented. DAve. >I too have noticed this on occasion. I believe that the problem has to do >with ZServer's attempt at chunking responses. > >The next version of ZServer will significantly alter the way ZServer >handles HTTP response munging issues like this, and hopefully will fix this >problem. > >Thanks for the bug report. > >-Amos > >P.S. Until then Brad Clements's advice to change use_chunked=1 to >use_chunked=0 in medusa/http_server.py may help. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From jarvis.sd082@ex.tel.co.jp Wed Mar 3 00:53:43 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 3 Mar 1999 09:53:43 +0900 Subject: [Zope] Request.py and duplicate column names Message-ID: <8174B1EE3D2CD21180960000F8056723CFB385@telisnt1020.is.tel.co.jp> Oops! The a.b_id=a.id was a typo in my mail. Sorry about that. I did mean a.b_id=b.id. I also tried out Brad Clements' suggestion (thanks, I would have never thought to write it that way!) but it raises the same exception. It works fine with the patch, though. Thank you for your responses! John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: chris.hunter@humancode.com [SMTP:chris.hunter@humancode.com] > Sent: Wednesday, March 03, 1999 1:46 AM > To: bkc@murkworks.com > Cc: TFE MMS JARVIS JOHN; zope@zope.org > Subject: Re: [Zope] Request.py and duplicate column names > > > > Brad Clements wrote: > > > > On 2 Mar 99, at 18:40, TFE MMS JARVIS JOHN wrote: > > > > > 1. When trying to do a join (a lazy query, I know) like: > > > > > > select a.*, b.* > > > from tablea a, tableb b > > > where a.b_id=a.id > > Is there any chance that you're trying to do something > like: > > select * > from a, b > where a.b_id = b.id > ^ > Note that I'm joining a field in a to a field > in b here (not 2 fields in a) > > Hope this helps. > > --chris > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope From Anthony Baxter Wed Mar 3 01:38:28 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 12:38:28 +1100 Subject: [Zope] Zope 1.10.2 dies every so often. In-Reply-To: Your message of "Tue, 02 Mar 1999 16:02:05 CDT." <85256728.007360D6.00@li01.lm.ssc.siemens.com> Message-ID: <199903030138.MAA08759@mbuna.arbhome.com.au> > WARNING: Python C API version mismatch for module _pg: This Python has API > version 1007, module _pg has version 1006. Hm - this indicates you've upgraded your Python since the module _pg was compiled (postgres?) It's not the cause of the following error, but it is something you might want to fix, anyway. The error looks to be caused by ZopeHTTPServer not handling a client aborting the connection. Looking into the code, at around line 240 of ZopeHTTPServer/ZopeHTTPServer.py, the write() method of ResponseWriter should probably trap IOError and ignore it. Something like wrapping the two calls to write() in the write method like try: write.... except IOError: pass would be a blunt fix to it. I don't think DC want to continue to support ZopeHTTPServer, tho. You might want to try to upgrade to ZServer, instead. Anthony From luke@geeklife.com Wed Mar 3 04:10:04 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 2 Mar 1999 20:10:04 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903030410.UAA00469@hipmail2.gohip.com> I'm *really* newbie. I have table with data like this: field1 field2 ------ ------ red 3/1/99 blue 3/1/99 green 3/1/99 brown 3/2/99 yellow 3/2/99 I'd like to render this in DTML from the data: Monday, March 1 red blue green Tuesday, March 2 brown yellow How do I do that? Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From mj@antraciet.nl Wed Mar 3 07:52:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 08:52:48 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303085121.00bb78a0@lisp.atmm.nl> At 17:19 02/03/99 , julian@zereau.net wrote: >On 02-Mar-99 Michel Pelletier wrote: >> >> This is an excellent post. I want to add that _getPassword() is a handy >> function also if you want to use your Zope user to authenticate into an >> external system, like POP3 or IMAP. > >It occurs to me that a DTML document could contain this in a transparent >sendmail form, assuming there is already a handy Mailhost set up, to capture >and mail off the password of anyone browsing the page... > No, because from DTML you can't call methods starting with an underscore. This was actually the reason I didn't include this in my overview. You can still use it in en external method, I know. But then again, I can do a heck of a lot more bad things in external methods. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:06:38 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:06:38 +0100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: References: <613145F79272D211914B0020AFF6401907BABB@GANDALF> Message-ID: <4.1.19990303090101.00bb6180@lisp.atmm.nl> At 17:37 02/03/99 , you wrote: >While we are on the subject of AUTHENTICATED_USER, I would like my users to >be able to "logout" so that they then become anonymous again. > >Any ideas? > >I have seen this on Dejanews. It would be useful so that authorized users >don't leave themselves logged in if they don't quit Netscape. > >Phil. > This is very hard to do from the serverside. I can force a new login, but I cannot stop a browser from authenticating itself at every request, therefore effectivly becoming anonymous. Problem is more that HTTP is stateless, a user is not 'still logged in', but it autenticates itself at every request. Only when the server says that the authentication is incorrect, does the browser ask for the username and password. What you could do, is write your own UserFolder/User combo, that stores a last-access time on the User object, and checks for this every time a user is authenticated. If the difference is greater than, say 15 minutes, you force a reauthentication by raising a permission denied. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 08:11:28 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:11:28 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DC17B8.7F5CFF6A@pop.vet.uu.nl> Message-ID: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> At 17:54 02/03/99 , Martijn Faassen wrote: >Hi there, > >Hereby I announce in absolute adhoc anarchistic fashion the Zope >Documentation Project. The Zope Documentation Project aims to generate >documention on anything Zope. > I know it is against netiquette to send *me too!* messages, but I'm doing it anyway... Just to show support, count me in. I allready started rewriting the AUTHENTICATED _USER doc and the tree tag info. The-other-Dutchman-named-Martijn-i-ly yours, Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Anthony Baxter Wed Mar 3 08:20:53 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 03 Mar 1999 19:20:53 +1100 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. In-Reply-To: Your message of "Wed, 03 Mar 1999 09:06:38 BST." <4.1.19990303090101.00bb6180@lisp.atmm.nl> Message-ID: <199903030820.TAA10202@mbuna.arbhome.com.au> > What you could do, is write your own UserFolder/User combo, that stores a > last-access time on the User object, and checks for this every time a user is > authenticated. If the difference is greater than, say 15 minutes, you force a > reauthentication by raising a permission denied. I tried playing with this once upon a time, but I found that the stupid browser still cached the original result and would continue to use it after the failed login/relogin combination. Most frustrating. Anthony From jay@tomigaya.shibuya.tokyo.jp Thu Mar 4 17:31:28 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Thu, 04 Mar 1999 17:31:28 Subject: [Zope] need help with IIS/ODBC Message-ID: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> As a novice (who's loving Zope!) I'm having a terrible time trying to get Zope1.10.2 on NT with IIS to connect to MS SQL with a Z ODBC connection. Previously I had no problem getting Zope 1.9/ZopeHTTPServer to connect to MS SQL via Z ODBC. Recently I upgraded to 1.10.2 without a hitch, and was able to run it with IIS 4.0 after putting the (PCGI executable?) MYZOPE.exe in /InetPub/scripts/ and turning off in IIS both Basic Authentication and NT Challenge/Response as I read here in the list. My problem now is that when I try to open my db connection (exactly the same connection that was working with 1.9 & ZopeHTTPServer) I get the following error from IIS: >HTTP Error 400 >400 Bad Request >Due to malformed syntax, the request could not be understood by >the server. The client should not repeat the request without modifications. In trying to figure out what's going on I've noticed a couple things. First, and I think most illustrative, if I try to add a new Z ODBC connection, none of my ODBC sources are showing up in the available list (except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 Zope with ZopeHTTPServer all my ODBC connections show up just fine. Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by side with the functioning 1.9/ZopeHTTPServer, I printed our the environment variables of both and noticed some differences - USERPROFILE's are Default User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least USERDOMAIN in the 1.10.2/IIS environ, with no luck. I've read all the posts from the list that I could find dealing with IIS and ODBC, but couldn't find anything with info on this type of trouble. Have I made a boneheaded mistake and started to look in the wrong places for the fix? Any help/info/pointers would be hugely appreciated as I continue to bang my head on my keyboard hoping that I'll soon clear this hurdle and get back to having fun with Zope! Thanks! Jay From mj@antraciet.nl Wed Mar 3 08:35:46 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 09:35:46 +0100 Subject: [Zope] Setting properties based on security In-Reply-To: <016401be64f3$2e5b79d0$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990303092944.00bb3220@lisp.atmm.nl> At 22:25 02/03/99 , Robin Dunn wrote: >I have a folder with various boolean properties associated with it which are >accessed by the dtml docs as flags for enabling or disabling content. Turn >off the flag and a chunk of the page goes away when it is next viewed. This >works great, but I would like to associate that behaviour with the security >attributes. In other words, when somebody in the Anonymous role is viewing >objects in the folder the properties should be unset, but when users in the >manager (or some other specific role) view the pages then the properties >should be set and those parts of the pages are activated. > >How can this be done? > You could, using AUTHENTICATED_USER.has_role() and manage_changeProperties(). I think it will be better if you completely skip the property setting though.. You could just show content using Content _only_ for the Anonymous user Content for users with the Manager role. This way you don't accidently let any properties float around, causing content to be shown to the wrong people. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 3 09:05:35 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:05:35 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903030410.UAA00469@hipmail2.gohip.com> Message-ID: <4.1.19990303094004.00bba4e0@lisp.atmm.nl> At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: > >field1 field2 >------ ------ >red 3/1/99 >blue 3/1/99 >green 3/1/99 >brown 3/2/99 >yellow 3/2/99 > >I'd like to render this in DTML from the data: > >Monday, March 1 > red > blue > green >Tuesday, March 2 > brown > yellow > >How do I do that? > You can use the #in tag's grouping features for this. If you use GROUP BY in your SELECT statement, or use the appropriate sorting, you can use the following DTML code to get the desired output, assuming the column names are the same as in your example: ,
    Sorry, no colors in your query. The variables first-xxx and last-xxx are set whenever the field with name xxx starts/ends in a sequence. For more information on this, read the Zope DTML User's Guide (http://www.zope.org/Documentation/Guides/DTML -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From cg@acriter.com Wed Mar 3 08:58:29 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 09:58:29 +0100 Subject: [Zope] ZPublisher and creating children Message-ID: <36DCF9B5.97A62E66@acriter.com> Hi, I'm using ZPublisher+DocumentTemplate+BoboPOS in a cgi environment, because that's all I need (and can use on my ISP's box). In the couple of things I've developed so far, a pattern has emerged that disturbs me: if you have a container object, when adding a child, the whole add thing is done in the parent. IIIRC, I fetched this design from the (Bobo) Trinkets example when I started: class Container.... add = HTMLFile(....) def do_add(self, childattrone, childattrtwo, childattrthree): d = self._items d[childattrone] = Child(childattrone, childattrtwo, childattrthree) self._items = d class Child... def __init__(self, childattrone, childattrtwo, childattrthree): .... edit = HTMLFile(....) def do_edit(self, childattrone, childattrtwo, childattrthree): .... The Container, IMHO, "knows" too much about the Child in this case, and it's hard to modify the attribute set of the Child class. Am I doing something wrong? Is there a design pattern here I'm not aware of? Regards, Cees From mj@antraciet.nl Wed Mar 3 09:24:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 10:24:44 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990303102401.00bb1310@lisp.atmm.nl> At 18:31 04/03/99 , Jay Ashton wrote: >My problem now is that when I try to open my db connection (exactly the >same connection that was working with 1.9 & ZopeHTTPServer) I get the >following error from IIS: > >>HTTP Error 400 >>400 Bad Request >>Due to malformed syntax, the request could not be understood by >>the server. The client should not repeat the request without modifications. I have exactly the same problem with an Access database, same error. I'll file a bug report. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Wed Mar 3 10:10:24 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:10:24 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <023001be64ce$4bb27620$5c773fc1@ml.uwcm.ac.uk> Message-ID: <36DD0A90.1FC53ED0@pop.vet.uu.nl> Phil Harris wrote: > > Cheers from all involved. Thanks! This implies you're involved in the ZDP as of now, right? :) Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:12:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:12:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <19990302133414.09101@amber.org> Message-ID: <36DD0B22.7681AC07@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Tue, Mar 02, 1999 at 01:25:51PM -0500, Philip Aylesworth wrote: > > Excellent! > > > > Maybe one of the Web Hosts who offer Zope hosting would be interested in > > the excellent public relations derived from hosting the ZDP. > > > > If not, I can probably provide resources (within reason :-) for this. These are good ideas (and thanks Chris for the offer!), but Ken Manheimer later on in the list is offering space on www.zope.org, and that would of course be perfect. Thanks again though! Martijn From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 10:13:32 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 10:13:32 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <00ab01be655e$7e558e60$5c773fc1@ml.uwcm.ac.uk> If ther's anything I can do, let me know. Ain't collaboration wonderful? Phil ----- Original Message ----- From: Martijn Faassen Cc: Sent: Wednesday, March 03, 1999 10:10 AM Subject: Re: [Zope] [ZDP] Announcing the Zope Documentation Project >Phil Harris wrote: >> >> Cheers from all involved. > >Thanks! This implies you're involved in the ZDP as of now, right? :) > >Regards, > >Martijn > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > From andreas@mtg.co.at Wed Mar 3 10:35:57 1999 From: andreas@mtg.co.at (Andreas Kostyrka) Date: Wed, 3 Mar 1999 11:35:57 +0100 (CET) Subject: [Zope] Bobo distribution In-Reply-To: Message-ID: On 2 Mar 1999, Andrey V Khavryutchenko wrote: > Hi! > > I'm looking for Bobo (not Zope) distribution tarball. Looks like it is > taken from the web away. ftp://heaven.oeh.univie.ac.at/pub/mirrors/bobo-mirror/bobo/ Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98. From M.Faassen@vet.uu.nl Wed Mar 3 10:52:32 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:52:32 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF640190BED65@GANDALF> Message-ID: <36DD1470.531A427@pop.vet.uu.nl> Ken Manheimer wrote: > > Martijn Faassen wrote: > > > Hereby I announce in absolute adhoc anarchistic fashion the Zope > > Documentation Project. The Zope Documentation Project aims to generate > > documention on anything Zope. > > Thank you, Martijn, you've made my day! This is extremely cool. I'm glad I made someone's day. :) > As you might expect, here at digicool we're yearning to produce more and > better documentation, and, as with other things, we want to have more > time and energy to do it than we do. It was getting obvious that this was so. You guys all did a great job, and still are doing a great job, but the volume of questions and documention requests has exploded in the mean time. Which is great, in fact, of course, as it shows people are interested. [snip] > Some thoughts: > > - We would be happy to provide a mailing list or two for you all This would be great! We probably don't want to be spread out too much so one mailing list would be best (zdp@zope.org?). I also intend to make regular announcements of ZDP's progress (and some advertising to get people more involved in the project) on the main Zope list (or future multiple main Zope lists :). Right now though to keep the ball rolling I'll be using the normal list to send out messages. > - If it makes sense (logistically, for us as well as for you), we could > host the FAQ stuff or whatever on zope.org. This we'll have to discuss - > both what all might want, and what we can safely and effectively do... Zope.org would I think be the ZDP's favorite place to be hosted on, so that'd be very nice. Your thoughts on how we could best arrange this (who gets manage access to the place, if we develop in a branch we export to you, or develop in there directly, or use FTP, or possibly something else, etc) are welcome. > (I've been thinking about requirements for a collaborative FAQ > mechanism, which can be tricky if you want it to be available for > contribution to the community in general, yet still remain organized > enough for people to find what they're seeking. An interesting > problem...) Independently (for local purposes) I've been thinking about making a FAQ wizard product myself, but I got stranded somewhere in the beginning (my laments I posted some time ago to the list :). But at least I've given some thought to the design. Now Amos made one, and we can build on that. The use of the tree tag is nice, but probably a simple list is more useful in some cases (one can do a text search in it, for instance). From my cursory glance at the management screens of the example, it seems that it's not hard to produce that. What would also be nice is some way to simply generate plain ascii text versions of the FAQ as well, along with possibly some other versions. We could also think about generating DocBook SGML (which then can be converted in a lot of different formats with for instance the Linux SGMLtools 2.0). I haven't given too much thought to collaboration mechanisms. It would be useful to have the ability to easily move questions around in the list from one section to the other. My plan is to early on just get any question/answer pairs we can come up with (from mining the mailing list, documentation, and whatever people contribute). Later on we can then organize these in categories, once the pattern becomes clear (likely we'd have a DMTL section, for instance, and an installation section). If there's flexibility in moving questions around the FAQ might be developed more quickly. People could contribute question/answer pairs (or just questions) in some 'contribution area' and the managers of the list can then edit these and move them to the right sections of the list after doing so. The contribution area should still be visible for everybody, so that even the raw entries can be useful. I'm brainstorming right now, so here's another idea: if someone sees a question in the 'contributed' area that he knows the answer to, that person should be able to write in an answer. Even with the already edited questions in the main list it would be useful if people could leave comments ("I tried this but it didn't work for such and such reason. But if I did this and that, I got it working."). The editors can then later review all that's added and integrate it into the main text. Right now I intend to just assemble a big raw plaintext file (structured text!), though; anyone can work with these. It's good to keep the process moving. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 3 10:55:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 11:55:50 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <4.1.19990303090832.00ba14b0@lisp.atmm.nl> Message-ID: <36DD1536.1ADF8CD4@pop.vet.uu.nl> Martijn Pieters wrote: > > At 17:54 02/03/99 , Martijn Faassen wrote: > >Hi there, > > > >Hereby I announce in absolute adhoc anarchistic fashion the Zope > >Documentation Project. The Zope Documentation Project aims to generate > >documention on anything Zope. > > > > I know it is against netiquette to send *me too!* messages, but I'm doing it > anyway... As long as the *me too!* message doesn't include the entire previous message body it's not against my personal netiquette. :) > Just to show support, count me in. I allready started rewriting the > AUTHENTICATED _USER doc and the tree tag info. Shows of support are *great* netiquette. :) Thanks! Regards, Martijn From Oliver Thuns Wed Mar 3 11:24:46 1999 From: Oliver Thuns (Oliver Thuns) Date: Wed, 03 Mar 1999 12:24:46 +0100 Subject: [Zope] ZServer (FTP): socket.error: host not found Message-ID: <199903031225.EAA23367@zope.codeit.com> >It works for me. Check to be certain that your DNS has a PTR record for >your host. Winsock is SUPPOSED to support this for "localhost" even >without DNS, but if you're multi-homed that may be a problem. I have no DNS, it's a local system only. I'm using Windows 95 and this doesn't work. But it should no problem to "fix" the ftp_server. The IP_ADDRESS could set in start.py and this address is used by the http_server module, but not by the ftp_server module. >> If I start ZServer under Windows I get the following error ind the >> ftp_server module. This can be easily fixed by changing line 57 and >> inserting the IP, but this is not very nice. Could you fix this? >> >> Traceback (innermost last): >> File "start.py", line 20, in ? >> import ZServerFTP >> File "ZServerFTP.py", line 158, in ? >> from medusa.ftp_server import ftp_channel, ftp_server >> File "medusa\ftp_server.py", line 57, in ? >> IP_ADDRESS = socket.gethostbyname (socket.gethostname()) >> socket.error: host not found From julian@zereau.net Wed Mar 3 13:01:30 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 13:01:30 -0000 (GMT) Subject: [Zope] count of items in group? Message-ID: Using the "in" tag's grouping capability, is there any way to get the count of items in that group? I need this so I can have a table with one row per item and a cell rowspanned for all the group's items (eg: related products and their picture). --- Julian Morrison Programmer (Zereau Ltd) From sfranke@cdc-group.com Wed Mar 3 13:01:07 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Wed, 3 Mar 1999 14:01:07 +0100 Subject: [Zope] Strange problem calling a base classes method Message-ID: <01E40461E003D21195CC0080296495D80B12B3@gates.cdc-group.com> While debugging a Product that inherits from OFS.Folder stumbled across the following problem (copied from the debugger command line stopped inside one of my Product's methods): >>> self.__class__.__bases__[0].__bases__[3].__bases__[1] >>> isinstance (self, OFS.CopySupport.CopySource) 0 >>> (self.__class__.__bases__[0].__bases__[3].__bases__[1] is OFS.CopySupport.CopySource) 1 The first line says self is an instance of OFS.CopySupport.CopySource, the second says it's not. The class objects are identical. My problem is that I'm not able to override one of OFS.CopySupport.CopySource's methods and to call the base classes method from inside. At that point I get a TypeError: unbound method must be called with class instance 1st argument which usually occurs when calling an unbound method with an instance of the wrong class. I'm clueless.. Stefan From mj@antraciet.nl Wed Mar 3 13:37:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 14:37:04 +0100 Subject: [Zope] count of items in group? In-Reply-To: Message-ID: <4.1.19990303142401.00b9a7f0@lisp.atmm.nl> At 14:01 03/03/99 , julian@zereau.net wrote: >Using the "in" tag's grouping capability, is there any way to get the count of >items in that group? I need this so I can have a table with one row per item >and a cell rowspanned for all the group's items (eg: related products and their >picture). > No, there isn't. You will have to use the SQL statement, to add a calculated value column to it's output. You should be able to use COUNT to achieve this. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From Paul@digicool.com Wed Mar 3 13:54:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:47 -0500 Subject: [Zope] ZPublisher and creating children Message-ID: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Cees wrote: > The Container, IMHO, "knows" too much about the Child in this > case, and > it's hard to modify the attribute set of the Child class. Am I doing > something wrong? Is there a design pattern here I'm not aware of? Actually this example shows the beauty of Zope/Bobo programming -- the code looks completely like normal Python code, no CGI hackery involved. Anyway, this is really a Python question, IMO. You don't the arguments to the Child's constructor to be hardwired in the Parent, right? You could take a route where pass a dictionary, e.g. REQUEST, into the Child's constructor and let it figure out for itself what it needs. This feels less OO and doesn't let Zope/Bobo help you with type conversions and raising exceptions for missing arguments. --Paul From Paul@digicool.com Wed Mar 3 13:54:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:49 -0500 Subject: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAC0@GANDALF> Martijn wrote: > I have exactly the same problem with an Access database, same > error. I'll file > a bug report. Good timing. We are planning a Collector Day At The Beach pizza party on Friday. We'll gather everybody together for a couple of hours, discuss a bunch of submitted issues, and try to clear them out. I'll articulate a policy on support within a week. We still haven't emerged from our network hell -- our dedicated line hasn't been installed yet -- but things are slowing getting under control. I want to double the number of people working here within two months. If anybody wants a job at Zope HQ, email me! --Paul From Paul@digicool.com Wed Mar 3 13:54:50 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 3 Mar 1999 08:54:50 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Phil wrote: > If ther's anything I can do, let me know. > > Ain't collaboration wonderful? Count me in as well. I'm meeting with some folks today to get a Zope training course scheduled. I'll create the preliminary docs which they will improve and use for the course. Thus I'll have some some material for a (perhaps four day) training course to contribute. BTW, is there any interest here in a Zope training course? --Paul From wmlph@d033.ml.uwcm.ac.uk Wed Mar 3 13:48:56 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 3 Mar 1999 13:48:56 -0000 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> You thinking of running one in UK 8^) ----- Original Message ----- From: Paul Everitt To: Phil Harris Cc: Sent: Wednesday, March 03, 1999 1:54 PM Subject: RE: [Zope] [ZDP] Announcing the Zope Documentation Project > >Phil wrote: >> If ther's anything I can do, let me know. >> >> Ain't collaboration wonderful? > >Count me in as well. I'm meeting with some folks today to get a Zope >training course scheduled. I'll create the preliminary docs which they >will improve and use for the course. Thus I'll have some some material >for a (perhaps four day) training course to contribute. > >BTW, is there any interest here in a Zope training course? > >--Paul From M.Faassen@vet.uu.nl Wed Mar 3 13:57:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 03 Mar 1999 14:57:43 +0100 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Hi everybody, Here is a start. I just randomly browsed the mailing list and created a completely uncategorized set of questions and answers for the FAQ. I even snuck in a question of myself, see if you can answer it. :) If you see a problem with some of these questions or answers, send a followup with suggested corrections to the list and I'll include them in the FAQ. If you have more question/answer pairs, go ahead and followup too. I prefer these things to appear in the list (in a thread, and marked by [ZDP]) for now, as this might stop people from writing the same FAQs twice. I hope in a while we'll get somekind of collaborative FAQ environment going that makes all this easier. I'd prefer additions to the FAQ in StructuredText for now. See what follows for an example of the format I have in mind. If you think another format works better feel free to convert. (yes, that's the theme of open source; if you want something done differently, feel free to do the work to change it :). Here's what I have so far, enjoy! * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use: <!--#var "external_method_name(arguments)"--> to call any External Method in the folder (or acquired by the folder). The more explicit alternative is: <!--#var expr="external_method_name(arguments)"--> The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). From cg@acriter.com Wed Mar 3 14:09:59 1999 From: cg@acriter.com (Cees de Groot) Date: Wed, 03 Mar 1999 15:09:59 +0100 Subject: [Zope] ZPublisher and creating children References: <613145F79272D211914B0020AFF6401907BABF@GANDALF> Message-ID: <36DD42B7.7C838624@acriter.com> Paul Everitt wrote: > Cees wrote: > > The Container, IMHO, "knows" too much about the Child in this > > case, and > > it's hard to modify the attribute set of the Child class. Am I doing > > something wrong? Is there a design pattern here I'm not aware of? > > Actually this example shows the beauty of Zope/Bobo programming -- the > code looks completely like normal Python code, no CGI hackery involved. > > Anyway, this is really a Python question, IMO. You don't the arguments > to the Child's constructor to be hardwired in the Parent, right? Well, the underlying issue is the stateless-ness of the whole thing. In normal python, you'd create an empty child, call the child's editing form so the user can enter initial data, and only after the user's commit add the child to the container: def addChild(self): newChild = Child() if newChild.editForm() == true: container.append(newChild) in short. I've attempted this in the ZPublisher environment, but to no avail - either it didn't work at all or it got very messy (with the Child needing to know about the Parent, etcetera). I must say, I was under a bit of time pressure last night when looking for alternatives (wanted to have a beta release on my website before breakfast), I haven't got around playing with hidden form variables etcetera yet - that could work. Just hoped somebody on the list here would have a canned answer - I'm a lazy guy ;-) From tony.mcdonald@ncl.ac.uk Wed Mar 3 14:41:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 3 Mar 1999 14:41:53 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: Hi all, This is quite a long email where I ask a lot of questions about Zope, but I hope you'll be lenient with me as I think I have a few hard decisions to make! Some background: I'm one of the web developers here, with a remit to implement a curriculum database that can; (a) support the Medical Faculty here (b) get rolled out to three other Medical-related sites, each with their own 'look and feel' (c) possibly implement a University-wide curriculum database. The curriculum database is essentially delivering online study guides (over 100 for each Faculty) whose source is originally from very well marked up Word Documents. In addition, we include multiple choice questions, file upload of lecture notes etc. and some 'active' web pages showing dynamical processes in medicine etc. The curriculum database needs to be searchable across its entire breadth (although initially restricted to the one site), so that students and faculty can find occurences of, say, 'lung cancer' in lecture resources - this is to plan for curriculum management, so that we can find out if we're pushing subjects too much (or indeed, whether we're pushing a subject at all!). We have other applications (nearly all of which are written in Perl/PHP3) and want to seemlessly integrate them into the curriculum database. Currently we do all our development work on Unix, using Apache virtual web servers, MySQL as our database engine and Perl running as a CGI for most of our applications. My input has been to introduce PHP-3 (an Apache module with a bulit-in XML parser) and some XML knowledge to the group. I've been looking at a scenario where our study guides are converted in XML using Omnimark and held as static XML documents in a database. They are then rendered into HTML/RTF and put into static web directories. The student can run a program that extracts elements from selected XML documents and creates a customised set of HTML pages or RTF document that is built for them 'on the fly'. My manager was a bit worried about all these static pages lying about and to be honest so am I, but extracting the relevant XML from a database to render into individual HTML pages seems a massive drain on the system. I found out about Zope Monday morning, dl'ed it, installed it, got one or two things working... and have been worried sick ever since. My problem? is that I can see how Zope can do so much for us, but it seems to need a hell of a gut-wrench to do so. There also doesn't seem to be an easy 'half-way' house to move to Zope. I've read a lot of the documentation, and am doing so constantly, but the wisdom of the list would be very helpful indeed. The questions: a) Is there a way for us to 'dump' the non-dynamic parts of a Zope database into static HTML pages. This would act as a way to say to the team "look, we have a parachute!". b) Can I integrate with the Perl/PHP3 programs that we have (the Perl programs are mainly .cgi, but the PHP3 programs are server-side scripted, and as such are embedded into the HTML itself). This is so that I can c) Is there any way of using the XML documents that I'm creating into the database and parsing them to produce either HTML or RTF output? d) I know that this a terrible question to ask... but is Zope likely to 'remain' open-source (we're worried about getting stuck with a proprietary system)?. e) Can I 'point' an Apache virtual server to run a Zope cgi (ie dropping the :port requirment). f) I'd like to have the option to have user authentication information coming from a database - is this possible? g) We have something like 200 main level directories holding the study guides, each with up to 200 files in them - is that pushing the Zope database too far? h) We also need resources such as QuickTime movies, images PowerPoint slides etc. to be uploaded - would they sit in the database or can they be held somewhere else (and what happens about file name conflicts)? i) Does Zope have the equivalent of 'server logs', which we use for research. j) Is it possible to have a 'pointer' at a location in the Zope database that will point to a 'real, honest to goodness' HTML file on the server (ie something like a redirect..oops I think I may have answered my own question) and lastly k) What kind of loads have people put Zope under (10,000 +hits a day, 100k?). We have one application which has 170 Medical Students sitting in front of screens and clicking a button at the same time (they're selecting their final year options) which then starts 170 CGI-based Perl processes off interrogating and updating the database. This really grinds the system down... I hope that I haven't bored everyone to tears here - it's just that Zope seems to do an awful lot of what I need, and I'd really like to know what I'm letting myself in for if I start using it for everything I do.... many many thanks, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From michel@digicool.com Wed Mar 3 14:39:57 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 09:39:57 -0500 Subject: [Zope] AUTHENTICATED_USER, and what you can do with it. Message-ID: <613145F79272D211914B0020AFF6401907BAC2@GANDALF> > -----Original Message----- > From: Anthony Baxter [mailto:anthony@interlink.com.au] > Sent: Wednesday, March 03, 1999 3:21 AM > To: Martijn Pieters > Cc: zope@zope.org > Subject: Re: [Zope] AUTHENTICATED_USER, and what you can do with it. > > > > > What you could do, is write your own UserFolder/User combo, > that stores a > > last-access time on the User object, and checks for this > every time a user is > > authenticated. If the difference is greater than, say 15 > minutes, you force a > > reauthentication by raising a permission denied. > > I tried playing with this once upon a time, but I found that > the stupid > browser still cached the original result and would continue > to use it after > the failed login/relogin combination. Most frustrating. > Cookies or passing around secret messages would be the way to avoid this, don't use Basic authentication at all. The UserDB product shows off a User Folder than uses cookies, and possibly today I am releasing a User Folder product that authenticates off of a flat file, like /etc/passwd for alpha testing which also uses either Basic or Cookie auth. If you use Cookie auth you are presented with a login/logout screen to set/clear the cookie. -Michel > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From luke@geeklife.com Wed Mar 3 15:17:35 1999 From: luke@geeklife.com (Luke Duff) Date: Wed, 3 Mar 1999 07:17:35 -0800 Subject: [Zope] Date Manipulation Message-ID: <199903031517.HAA31270@hipmail1.gohip.com> Thanks for the help, but... My problem is a little bit harder than that. The data in field2 is date *and* time. So like this: field1 field2 ------ --------------- red 3/1/99 10:00 AM blue 3/1/99 11:00 AM green 3/1/99 03:00 PM brown 3/2/99 10:00 AM yellow 3/2/99 04:30 PM I've seen in the guide where you can format a data field when outputting, but how do actually extract the day-of-the-month number and put it in a temp variable. The pseudo-code I've used before to do this before is: tempday = 0 for each record if tempday<>dayofmonth(datefield) then print out a header print out other fields tempday = dayofmonth(datefield) next I'm just having a little trouble translating that into DTML. Creating a simple temporary variable seems overly complicated. Luke ============================================================ Martijn Pieters wrote: At 05:10 03/03/99 , Luke Duff wrote: >I'm *really* newbie. I have table with data like this: >> >>>field1 field2 >>>>------ ------ >>>>>red 3/1/99 >>>>>>blue 3/1/99 >>>>>>>green 3/1/99 >>>>>>>>brown 3/2/99 >>>>>>>>>yellow 3/2/99 >>>>>>>>>> >>>>>>>>>>>I'd like to render this in DTML from the data: >>>>>>>>>>>> >>>>>>>>>>>>>Monday, March 1 >>>>>>>>>>>>>> red >>>>>>>>>>>>>>> blue >>>>>>>>>>>>>>>> green >>>>>>>>>>>>>>>>>Tuesday, March 2 >>>>>>>>>>>>>>>>>> brown >>>>>>>>>>>>>>>>>>> yellow >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>How do I do that? >>>>>>>>>>>>>>>>>>>>>> You can use the #in tag's grouping features for this. ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From michel@digicool.com Wed Mar 3 15:17:04 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 10:17:04 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Wednesday, March 03, 1999 9:42 AM > To: zope@zope.org > Subject: [Zope] Some tough questions about zope... (long) > > > Hi all, > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! > > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. > > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > If you continue to use it you will get the Zope Zen. :) > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". This begs the question we've asked around here so many times, 'What is data?' Everything in Zope is Dynamic, in my thoughs, 'non-dynamic' is a Document with not DTML in it. But there is no way for Zope to sniff a document and see if it contains dynamic structures or not. Perhaps what could be done is to write a simple MyDocument that you stipulate in policy never to have dynamic stuff in it, and then write a crawler scripts that sucks out all such documents into a local file structure. There maybe easier solutions. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can ...do what? ;) Zope can call your cgi scripts just like they are, as URLs. They would, of course, have to be external to Zope and if you have a bunch of little ones you may find it better (and a damn sight easier) to rewrite them as Python in Zope as external methods. (DTML is also a rather powerful language for being so simple). Just leave your PHP stuff in your documents; Zope will parse out the DTML and return it to the server, which will parse out the PHP stuff and return it to the browser. In fact, you can probably make DTML and PHP work together nicely and simplify much of your PHP code. In the quickie case you don't need to change your PHP. > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? Zope doesn't contain an XML parser. You would need to do this with an external package. > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. Yes. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yes. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Yes. There is an unsupported open source User Folder Product called UserDB, where you tell it how to query your DB and it uses that for authentication. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Not at all. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? ooo. Someone has yet to write an ExternalFile product (though I suspect it would be fairly simple) to add objects to the db that refer to files outside the db. For now you can upload them as File objects to be contained entirely in the db. The same rules that apply to file name conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't have the same object id in the same folder. (With a minor non-exception of aquisition, all lower folders can see the contents of higher folders, but if you place an object in a lower folder with the same id as an object in a higher folder the lower object will override the higher object. Get that?) > i) Does Zope have the equivalent of 'server logs', which we > use for research. Since Zope is served through a web server you can continue to use the server logs. In other words, No. ;) Object by Object logging is something we've discussed, but would require *a lot* of thought and work. > j) Is it possible to have a 'pointer' at a location in the Zope > database that will point to a 'real, honest to goodness' HTML file on > the server (ie something like a redirect..oops I think I may have > answered my own question) If that file is being served up by Apache then you can just use it's URL as a 'pointer'. > and lastly > k) What kind of loads have people put Zope under (10,000 +hits a day, > 100k?). We have one application which has 170 Medical Students > sitting in front of screens and clicking a button at the same time > (they're selecting their final year options) which then starts 170 > CGI-based Perl processes off interrogating and updating the database. > This really grinds the system down... Ah yes, the inevitable benchmarking question. There are lots of issues here, memory footprint vs processor speed vs concurrent access...etc. The quick word is, Zope is fast and it will get much faster. Zope is currently not concurrent but will be in 2.0. Zope+Apache is a bit slow due to the pcgi bottleneck and is much improved by using ZServer. As it stands now, ZServer is something like twice to 10 times faster than Zope+Apache. Medusa (the web core of ZServer) serializes the requests into Zope at the moment, but when 2.0 comes out it will be the fastest web application platform on earth. Don't quote me. > > I hope that I haven't bored everyone to tears here - it's just that > Zope seems to do an awful lot of what I need, and I'd really like to > know what I'm letting myself in for if I start using it for > everything I do.... No problemo. > > many many thanks, > tone. -Michel > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mj@antraciet.nl Wed Mar 3 15:16:17 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:16:17 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Message-ID: <4.1.19990303155923.00b8acb0@lisp.atmm.nl> Let me try to answer (some) of your questions: >The questions: >a) Is there a way for us to 'dump' the non-dynamic parts of a Zope >database into static HTML pages. This would act as a way to say to >the team "look, we have a parachute!". I will be looking into this, as soon as I have the time. The answer for now is: probably, because everyone wants to download a local copy of part of any website at some point. There are tools out there to do this, I haven't looked for them yet. >b) Can I integrate with the Perl/PHP3 programs that we have (the Perl >programs are mainly .cgi, but the PHP3 programs are server-side >scripted, and as such are embedded into the HTML itself). This is so >that I can Just run Zope via Apache (see below). >c) Is there any way of using the XML documents that I'm creating into >the database and parsing them to produce either HTML or RTF output? Python is very capable of parsing XML. You will have to write an External Method to handle this, though. An example of XML parsing can be found at http://www.zope.org/Download/Contrib/XMLConfig.tar.gz. This Zope Product parses a static XML file for use in Zope. >d) I know that this a terrible question to ask... but is Zope likely >to 'remain' open-source (we're worried about getting stuck with a >proprietary system)?. I certainly do hope so. I intent to use it en expand on it heavily anyway, and sodo others. These extensions will generally be Open Source themselves, making it hard for Digital Creations to pull Zope out of the Open Source domain. >e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >dropping the :port requirment). Yes. The doc/WEBSERVER.txt will start you on this. Be warned though, there are some problems with Apache and Zope integration, for reasons that others are better equiped to explain. >f) I'd like to have the option to have user authentication >information coming from a database - is this possible? Yes, you can find the UserDB Product at http://www.zope.org/Download/Prereleases/UserDB/UserDb-1.2.0-nonbin.tar.gz. >g) We have something like 200 main level directories holding the >study guides, each with up to 200 files in them - is that pushing the >Zope database too far? Nah, Zope has handled much more than that allready. Ask Paul =). >h) We also need resources such as QuickTime movies, images PowerPoint >slides etc. to be uploaded - would they sit in the database or can >they be held somewhere else (and what happens about file name >conflicts)? Zope can store any filetype you want it to. Filename conflicts are handled the same way a filesystem handles them: In the same Folder, you cannot have two objects with the same name at once. But because it is a hierachical system, you can use the same name in two different folders. >i) Does Zope have the equivalent of 'server logs', which we use for research. ZopeHTTPServer's output is it's serverlog. You can start it up with STDOUT redirected into a file. When you use Apache as your webserver, all requests will be logged through Apache itself. >j) Is it possible to have a 'pointer' at a location in the Zope >database that will point to a 'real, honest to goodness' HTML file on >the server (ie something like a redirect..oops I think I may have >answered my own question) You said it yourself =). >and lastly >k) What kind of loads have people put Zope under (10,000 +hits a day, >100k?). We have one application which has 170 Medical Students >sitting in front of screens and clicking a button at the same time >(they're selecting their final year options) which then starts 170 >CGI-based Perl processes off interrogating and updating the database. >This really grinds the system down... Zope will be much much faster. I can't give you any direct numbers, maybe someone else on this list can. You basicly don't have the overhead of starting a fullblown new process for every request, and Zope pools Database connectiosn for you, so you don't have the initial connection overhead either. And, your code isn't compiled everytime, like with Perl. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 3 15:25:47 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 10:25:47 -0500 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: ; from Tony McDonald on Wed, Mar 03, 1999 at 02:41:53PM +0000 References: Message-ID: <19990303102547.A6002@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 02:41:53PM +0000, Tony McDonald wrote: ,----- | Hi all, | This is quite a long email where I ask a lot of questions about Zope, | but I hope you'll be lenient with me as I think I have a few hard | decisions to make! I know the feeling. I was choosing between ColdFusion and Zope for developing my new application and had some similar questions. Ultimately, I chose Zope. [nice application description deleted] | a) Is there a way for us to 'dump' the non-dynamic parts of a Zope | database into static HTML pages. This would act as a way to say to | the team "look, we have a parachute!". Right now, there isn't. This question has come up repeatedly on the list, to the point where DC is getting sick of hearing it and thinking of actually implementing something :) They have said it would be pretty easy, and I believe it. I think the basic idea is to write a method that will go through the Folders and use the DocumentTemplate code to render out the pages. | b) Can I integrate with the Perl/PHP3 programs that we have (the Perl | programs are mainly .cgi, but the PHP3 programs are server-side | scripted, and as such are embedded into the HTML itself). This is so | that I can If you're using Zope with Apache, you use mod_rewrite to get the authentication headers passed to Zope. You can also use mod_rewrite to decide how URLs map to content on your server. For example, you can have all of the content on your site go through your Zope.cgi, but /cgi-bin/* can go directly to your CGI or PHP files. You can access MySQL from Zope, PHP and Perl, so they can all use the same data source for the databases. | c) Is there any way of using the XML documents that I'm creating into | the database and parsing them to produce either HTML or RTF output? I'll leave this one to people more knowledgeable about XML. | d) I know that this a terrible question to ask... but is Zope likely | to 'remain' open-source (we're worried about getting stuck with a | proprietary system)?. I think it would be tough for DC to try to take it back at this point :) Even if DC did decide to not release any more updates to Zope, the community would probably continue working from the 1.10.2 code. Anyhow, DC had sound business reasons to release Zope as Open Source. Over time, they will likely get a lot of benefits by having done so and by encouraging outsiders (like us) to work with and improve Zope. | e) Can I 'point' an Apache virtual server to run a Zope cgi (ie | dropping the :port requirment). Yes. This uses a technique called Persistent CGI. It works quite well. There is also a hope that there will be better integration with Apache in the future. Also, as ZServer stabilizes, you may find good reason to migrate from Apache to it. | f) I'd like to have the option to have user authentication | information coming from a database - is this possible? There is an unsupported bit of code called UserDB which is designed for this. | g) We have something like 200 main level directories holding the | study guides, each with up to 200 files in them - is that pushing the | Zope database too far? Though I have no first hand experience with a Zope DB this large, the DC guys have said that they've worked with some very large DBs. | h) We also need resources such as QuickTime movies, images PowerPoint | slides etc. to be uploaded - would they sit in the database or can | they be held somewhere else (and what happens about file name | conflicts)? You could put them in either place. There would probably be some advantages to putting them in the database. For example, your standard Zope security rules will apply to the downloading and updating of the files. | i) Does Zope have the equivalent of 'server logs', which we use for research. I don't know about ZServer, but if you use Apache as your web server you will be able to use your standard server logs. | j) Is it possible to have a 'pointer' at a location in the Zope | database that will point to a 'real, honest to goodness' HTML file on | the server (ie something like a redirect..oops I think I may have | answered my own question) Yes, you can do a redirect. | and lastly | k) What kind of loads have people put Zope under (10,000 +hits a day, | 100k?). We have one application which has 170 Medical Students | sitting in front of screens and clicking a button at the same time | (they're selecting their final year options) which then starts 170 | CGI-based Perl processes off interrogating and updating the database. | This really grinds the system down... I've heard it said that Zope should be able to handle 500k hits or more on reasonable hardware. Of course, this depends on exactly what the server has to go through for each of those hits, etc. DC is also working on concurrency for Zope 2.0. This will probably enable you to handle a whole bunch of requests. `----- Good luck! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From mj@antraciet.nl Wed Mar 3 15:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:47:52 +0100 Subject: [Zope] Date Manipulation In-Reply-To: <199903031517.HAA31270@hipmail1.gohip.com> Message-ID: <4.1.19990303163641.00a17d40@lisp.atmm.nl> At 16:17 03/03/99 , Luke Duff wrote: >Thanks for the help, but... > >My problem is a little bit harder than that. The data in field2 is date *and* >time. So like this: > >field1 field2 >------ --------------- >red 3/1/99 10:00 AM >blue 3/1/99 11:00 AM >green 3/1/99 03:00 PM >brown 3/2/99 10:00 AM >yellow 3/2/99 04:30 PM > >I've seen in the guide where you can format a data field when outputting, but >how do actually extract the day-of-the-month number and put it in a temp >variable. The pseudo-code I've used before to do this before is: > >tempday = 0 >for each record > if tempday<>dayofmonth(datefield) then > print out a header > print out other fields > tempday = dayofmonth(datefield) >next > You'll have to use SQL function for this. In MySQL you could do the following: SELECT field1, DATE_FORMAT(field2, "W, M d") as datefield FROM MyDB. Put this in a Z SQL Method, and then the following DTML will get you your results: ,
    Sorry, no colors in your query. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 15:57:23 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 10:57:23 -0500 (EST) Subject: [Zope] ZPublisher and creating children In-Reply-To: <36DD42B7.7C838624@acriter.com> Message-ID: On Wed, 3 Mar 1999, Cees de Groot wrote: > etcetera yet - that could work. Just hoped somebody on the list here would > have a canned answer - I'm a lazy guy ;-) > Everybody on this list is lazy ;-) This is my approach: First define a Webobject class that every object needs to inherit. The simplest could be just: class WebObject: def __init__(self,name): '''__init__(self,name) ''' self.name=string.replace(name,' ','_') def _set_root(self,root_obj,parent_path): '''_set_root(self,root_obj,parent_path) sets the root object and relative path. Note: one will never need to pass parent_path directly. I also need to have a reference to the root object so I can do stuff remotely similar to acquisition''' self.root=root_obj self.rel_path=parent_path+self.name+os.sep class Container(WebObject): def __init__(self,name): WebObject.__init__(self,name) ##Holds contents self._d={} def __getitem__(self, key): return self._d[key] def items(self): return self._d.items() def _do_add(self,object): '''_do_add(self,object) Adds object in container. Object MUST have inherited the WebObject class.''' name=object.name if hasattr(self,name) or self._d.has_key(name): raise ValueError,'Object with same name exists in WebFolder' d=self._d object._set_root(self.root,self.rel_path) d[name]=object self._d=d So you can create any object that has inherited the WebObject class independently and add it to the container instance. Pavlos From mj@antraciet.nl Wed Mar 3 15:58:14 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 03 Mar 1999 16:58:14 +0100 Subject: [Zope] [ZDP] Tree FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <4.1.19990303153836.00a64c50@lisp.atmm.nl> My two cents on the tree tag: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: <!--#tree branches_expr="objectValues(['Folder'])"--> <A HREF="<!--#var URL1-->/<!--#var id-->"> <!--#var title_or_id--> </A> <!--#/tree--> * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: <A HREF="<!--#var URL0-->?expand_all=1"> Expand all</A>| <A HREF="<!--#var URL0-->?collapse_all=1"> Collapse all</A> <!--#tree--><!--#var id--><!--#/tree--> * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: <!--#tree single--><!--#var id--><!--#/tree--> More cents will follow. Martijn -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Wed Mar 3 16:44:20 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:44:20 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: >Here is a start. Great start! Could I suggest that there be FAQs for different catagories? My list would include: DTML external methods Win32 (maybe there are specific issues, if so I don't want to read about them :) SQL methods patches/hacks to Zope I am sure that I can find lots of work for you! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From zopelist@regalint.com Wed Mar 3 16:45:32 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 11:45:32 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <018801be657c$955183d0$5c773fc1@ml.uwcm.ac.uk> Message-ID: >You thinking of running one in UK 8^) Maybe Michigan/Ontario area? Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rkw@dataplex.net Wed Mar 3 16:47:07 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 3 Mar 1999 10:47:07 -0600 (CST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: This sounds like something we need. I know that I could use it. If folks will critique this design, I'll implement it. - - Proposed Access Method - - It is desired to be able to have "non DTML" files incorporated in a Zope URL system. These files might be static GIF files, quicktime movies, or just plain old HTML. Obviously, they might be "included" in a DTML page by simply referencing them directly by their URL. However, I can see cases where one would like the access to be under the control of the Zope system. For example, access controls might apply. I believe that we can achieve this by having an object which represents an ExternalFS mount point. In general, we map a URL onto a node of the FS. It would be directly analogous to a symbolic link (ln -s). The Zope mount point would enforce permissions just as if the file were loaded into the Zope DB. Objects can be "imported" without having them take up space in the database. Their creation and maintanence can be handled outside the Zope system. They are rendered by "cat"ing their contents. By permitting substitutions in the link, we can create effective reformatting of the visible FS. As an example, I am monitoring customer traffic. "mrtg" automatically generates graphs for each customer. In Zope, I could create customized displays by importing these files. By using the ExFS, I can update the graphics without affecting Zope. Further, assuming /mygraphs/today/customer1.gif /mygraphs/today/customer2.gif /mygraphs/yesterday/customer1.gif /mygraphs/yesterday/customer2.gif we can map them onto somewhere/KustomerA/graphs/today somewhere/KustomerA/graphs/yesterday by substituting a property of the Kustomer - - - Thoughts and/or suggestions? Richard On Wed, 3 Mar 1999, Michel Pelletier wrote: > ooo. Someone has yet to write an ExternalFile product (though I suspect > it would be fairly simple) to add objects to the db that refer to files > outside the db. For now you can upload them as File objects to be > contained entirely in the db. The same rules that apply to file name > conflicts in, say, a UNIX filesystem, apply to the Zope db. You can't > have the same object id in the same folder. (With a minor non-exception > of aquisition, all lower folders can see the contents of higher folders, > but if you place an object in a lower folder with the same id as an > object in a higher folder the lower object will override the higher > object. Get that?) From mbernstein@profitscape.net Wed Mar 3 17:00:13 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:00:13 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAC1@GANDALF> Message-ID: <36DD6A9D.557592FB@profitscape.net> Paul Everitt wrote: > BTW, is there any interest here in a Zope training course? Yes, at least theoretically. What would be covered and is this an online or offline course? Michael Bernstein. From bkc@murkworks.com Wed Mar 3 16:17:07 1999 From: bkc@murkworks.com (Brad Clements) Date: Wed, 3 Mar 1999 12:17:07 -0400 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903031711.MAA29620@anvil.murkworks.com> On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. Time to move this to zope-dev? anyway, I think this sounds like a good idea. It harkens back to an inquiry I made about byte-serving PDF files. I don't want to dump my pdf's into the database. If you can implement this, I think I could implement byte-serving. Although byte-serve could be handled at the ZServer level, I think for large external files it'd be more effective at the "cat" level -B Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From kid@ans.net Wed Mar 3 17:26:15 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 3 Mar 1999 12:26:15 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: <19990303122615.A6474@throwingcopper.ans.net> On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: ,----- | >Here is a start. | | Great start! | | Could I suggest that there be FAQs for different catagories? This is a good idea. I can see this FAQ growing very, very quickly. So, I would suggest that we start thinking about a hierarchy already... a couple suggestions below: | | My list would include: | Installation * building * win32 * freeBSD * etc. * server configuration * zap * apache * ZServer | DTML | external methods | Win32 (maybe there are specific issues, if so I don't want to read about | them :) I'm not sure if there will be many platform specific issues after installation... | SQL methods | patches/hacks to Zope | | I am sure that I can find lots of work for you! | | Phil A | | ------------------------------------------ | Philip Aylesworth zopelist@regalint.com | Regal International | | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From julian@zereau.net Wed Mar 3 17:31:31 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:31:31 -0000 (GMT) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903031711.MAA29620@anvil.murkworks.com> Message-ID: On 03-Mar-99 Brad Clements wrote: > On 3 Mar 99, at 10:47, Richard Wackerbarth wrote: > > >> This sounds like something we need. >> I know that I could use it. >> If folks will critique this design, I'll implement it. > > > Time to move this to zope-dev? > > anyway, I think this sounds like a good idea. It harkens back to an > inquiry I made about byte-serving PDF files. I don't want to dump my > pdf's into the database. > > If you can implement this, I think I could implement byte-serving. > > Although byte-serve could be handled at the ZServer level, I think for > large external files it'd be more effective at the "cat" level How safe would it be, to allow any random user to use the add menu to create arbitrary symlinks into the native file system tree? --- Julian Morrison Programmer (Zereau Ltd) From mbernstein@profitscape.net Wed Mar 3 17:32:20 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Wed, 03 Mar 1999 09:32:20 -0800 Subject: [Zope] count of items in group? References: Message-ID: <36DD7224.67AED2C5@profitscape.net> julian@zereau.net wrote: > > Using the "in" tag's grouping capability, is there any way to get the count of > items in that group? I need this so I can have a table with one row per item > and a cell rowspanned for all the group's items (eg: related products and their > picture). Rather than using rowspan, use nested tables. I haven't done this in Zope yet, but it was always my solution of choice in ColdFusion. It also makes it easier to debug your layout in a WYSIWYG editor. It does, of course, bloat your HTML a bit. Michael Bernstein. From julian@zereau.net Wed Mar 3 17:34:16 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 03 Mar 1999 17:34:16 -0000 (GMT) Subject: [Zope] count of items in group? In-Reply-To: <36DD7224.67AED2C5@profitscape.net> Message-ID: On 03-Mar-99 Michael Bernstein wrote: > julian@zereau.net wrote: >> >> Using the "in" tag's grouping capability, is there any way to get the count >> of >> items in that group? I need this so I can have a table with one row per item >> and a cell rowspanned for all the group's items (eg: related products and >> their >> picture). > > Rather than using rowspan, use nested tables. I haven't done this in > Zope yet, but it was always my solution of choice in ColdFusion. It also > makes it easier to debug your layout in a WYSIWYG editor. It does, of > course, bloat your HTML a bit. It will work, and I'm going to have to in the short term, but I really would like the multiple columns for each item to line up down the page, without ugly fixed-width hacks. --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Wed Mar 3 17:40:19 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Wed, 3 Mar 1999 12:40:19 -0500 (EST) Subject: [Zope] Crossposting Message-ID: Is it possible to have a filter on the mailing lists that will drop any posts on the main zope site that appear to be cross-posted on the zope-dev site? Pavlos From zopelist@regalint.com Wed Mar 3 18:00:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 13:00:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <19990303122615.A6474@throwingcopper.ans.net> References: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 11:44:20AM -0500 <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Maybe by splitting up the FAQs we could split up the work, too! Have a different person/group resposible for each FAQ. Of course there would be nothing stopping some energetic type being involved with all of them :) Also, I think that HOWTOs of the Linux type would be a great idea. They have a person/group responsible for each HOWTO to keep it up to date and add/edit things as needed. I am just commenting from the sidelines. Right now I barely have time to scan through the zope-list! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From petrilli@amber.org Wed Mar 3 18:53:55 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 13:53:55 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: ; from Philip Aylesworth on Wed, Mar 03, 1999 at 01:00:03PM -0500 References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <19990303135355.47418@amber.org> On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > Maybe by splitting up the FAQs we could split up the work, too! Have a > different person/group resposible for each FAQ. Well, I think it'd be nice if there was someone "responsible" for each major section, this would keep everyone from getting swamped. > Of course there would be nothing stopping some energetic type being > involved with all of them :) :-) I for one have no problem causing trouble in everyone's life! > Also, I think that HOWTOs of the Linux type would be a great idea. They > have a person/group responsible for each HOWTO to keep it up to date and > add/edit things as needed. You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and I'm sure Guido/Fred wouldn't mind us using this. It works real well, and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets you do the "bigger" stuff in a nice pretty way. What would also be nice is a list of "bigger" issues that people would liek to see explained more... something that's more than a single question. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From rocon@pivot.net Wed Mar 3 20:28:27 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 3 Mar 1999 15:28:27 -0500 Subject: [Zope] [ZDP] Assorted FAQs Message-ID: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Christopher G. Petrilli wrote:... >You can find a "howto" LaTeX stylesheet in the >Python CVS checkout, and I'm sure Guido/Fred >wouldn't mind us using this. It works real well, >and can target HTML, ASCII (I think), >Postscript, PDF, etc... this lets >you do the "bigger" stuff in a nice pretty way. Ok, I found: http://www.python.org/doc/howto/writing.html the link on that page: you can grab [Fred Drake's documentation distribution], and use... Is broken with a "Error 404: File Not Found" Searching for "LaTeX CVS" didn't quite get it can you please provide the links? Not only will this be good for the DOC project but also for general use in targeting HTML PDF etc....etc... TIA -bobo connor From michel@digicool.com Wed Mar 3 20:48:32 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 15:48:32 -0500 Subject: [Zope] etcUserFolder Product Message-ID: <613145F79272D211914B0020AFF6401907BACC@GANDALF> Greetings, (This is crossposted because it is a product anouncement, and contains interesting developer pointers) I've have massaged the source code for UserDb and created a new user folder products called etcUserFolder. This products authenticates off of a flat file of usernames:cryptedpasswords. If there is anything trailing the crypted password it is ignored, so any /etc/passwd file will work. It is generaly not recommended, however, to use your /etc/passwd file for security reasons. This is an unsuported product and has been written because it was asked for a few times, and I felt the community could use another good example of writing user folders. It also shows off cookie authentication which Brian perfected with UserDb. Here is the documentation: etcUserFolder requires a directory called 'etcUsers' in which to place your file containing the uid:pwd pairs. This directory may be an INSTANCE_HOME (typicaly your top level Zope dir), SOFTWARE_HOME (typicaly 'lib/python') or in the etcUserFolder directory. Jim wrote a nifty function called getPath that sniffs all of these places for a directory and file of your choosing. This function is included in etcUserFolder and will be included as a standard function of the next release. Other Product authors may find it interesting. Since the flat file is meant to be b/w compatable with /etc/passwd and htpasswd style files, there is no Role associated with the users it authenticates. You can specify a default role which is, by default, 'etcUser'. I have not done extensive testing of this, therefore it is a pre-release. Please send bug-reports and hopefully a patch to me (michel@digicool.com) http://www.zope.org/Download/Prereleases/etcUserFolder/etcUserFolder.tar .gz -Michel From phila@regalint.com Wed Mar 3 20:44:25 1999 From: phila@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 15:44:25 -0500 Subject: [Zope] DTML Method vs Document Message-ID: I just upgraded to 1.10.2 and I noticed that when creating a new document I have a choice of DTML document and DTML method. This seems useful. I noticed that all my DTML documents and DTML methods have the icon for a DTML method. Everything seems to work. What is the difference between a DTML document and a DTML method? Seems to me a method should not be surfable but they are. Is it possible to change my documents to DTML documents? Even just for housekeeping. One other unrelated question: What is a Principia Draft? ------------------------------------------------------------------- Philip Aylesworth Information Systems Manager phila@regalint.com PGP public key: http://www.regalint.com/PGPkeys/phila.html From petrilli@amber.org Wed Mar 3 21:05:07 1999 From: petrilli@amber.org (Christopher G. Petrilli) Date: Wed, 3 Mar 1999 16:05:07 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Wed, Mar 03, 1999 at 03:28:27PM -0500 References: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: <19990303160507.37050@amber.org> On Wed, Mar 03, 1999 at 03:28:27PM -0500, Robert OConnor wrote: >[Robert mentions problems with the links on the web site] I just had a quick exchange with Fred Drake (who handles most of the documentation duties for the Python organization), and he is aware of this problem, and has forwarded the issue to AMK who is responsible for teh HOWTO stuff. IN the mean time, he suggests grabbing the latex documentation whihc will have it all in it. If this is too painful, I can post a snapshot of the pieces taht are needed from the current CVS repository. The URL for the LaTeX documentation is: http://www.python.org/ftp/python/doc/latex-1.5.2b2.tgz Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jae@kavi.com Wed Mar 3 21:04:07 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:04:07 -0800 (PST) Subject: [Zope] [ZDP] Announcing the Zope Documentation Project In-Reply-To: <36DD1470.531A427@pop.vet.uu.nl> Message-ID: On Wed, 3 Mar 1999, Martijn Faassen wrote: > What would also be nice is some way to simply generate plain ascii text > versions of the FAQ as well, along with possibly some other versions. We > could also think about generating DocBook SGML (which then can be > converted in a lot of different formats with for instance the Linux > SGMLtools 2.0). I would love to see this feature (generating DocBook SGML). I thought about something like this myself (for my howto), but I just don't have the time at the moment. I could probably find enough time to help out a little though. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Wed Mar 3 21:10:03 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Wed, 3 Mar 1999 16:10:03 -0500 Subject: [Zope] [ZDP] Assorted FAQs In-Reply-To: <004701be65b4$6ae0f940$0201a8c0@hawkeye.bob.oc> Message-ID: >Is broken with a "Error 404: File Not Found" >Searching for "LaTeX CVS" didn't quite get it >can you please provide the links? Try ftp://ftp.python.org/pub/python/doc/latex-1.5.2b2.tgz Thanks, Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tjg@avalongroup.net Wed Mar 3 21:06:43 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Wed, 03 Mar 1999 13:06:43 -0800 Subject: [Zope] ZMySQLDA Message-ID: <36DDA463.683D9460@avalongroup.net> Hi, I'm playing with Zope, and have been trying to get Zope to talk to MySQL using the MySQLDA. I'm running RedHat 5.2 Since there were caveats about having MySQL development enabled, and such, I downloaded the source distribution for MySQL and made it. It appears to be working very nicely. When I follow the procedures outlined in the README, the following happens: I run make -f Makefile.pre.in boot and everything works correctly. I then run make and get the following error. gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c ./MySQLmodule.c: In function `pythonify_row': ./MySQLmodule.c:238: warning: assignment from incompatible pointer type gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql -lmysqlclien t -lm -o MySQLmodule.so ld: cannot open -lmysqlclient: No such file or directory make: *** [MySQLmodule.so] Error 1 I did a locate on mysqlclient, and coudln't find the file. though I did find some called libmysqlclient. So I changed the both Setup and Setup.in to reflect that other name. however, I still get the above error. Any help would be greatly appreciated. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From jae@kavi.com Wed Mar 3 21:48:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 13:48:33 -0800 (PST) Subject: [Zope] ZMySQLDA In-Reply-To: <36DDA463.683D9460@avalongroup.net> Message-ID: On Wed, 3 Mar 1999, Timothy Grant wrote: > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. Your problem wasn't with the library, -lmysqlclient refers to libmysqlclient (think of the -l as short for lib). The problem probably was that libmysqlclient wasn't on the path gcc searched for libraries. This is controled by the -L argument (-L is library paths). So... here's what to do: 1. Get everything cleaned up (ie. back in the condition after first untarring ZMySQL). 2. Edit Setup.in, add -L to the end of the last line. 3. Proceed as usual (make -f Makefile.pre.in boot; make) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From ron@rotflol.cx Wed Mar 3 21:57:31 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 22:57:31 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: Your message of "Wed, 03 Mar 1999 10:17:04 EST." <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: <199903032157.WAA00348@heaven.rotflol.cx> > > > > -----Original Message----- > > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > > Sent: Wednesday, March 03, 1999 9:42 AM > > To: zope@zope.org > > Subject: [Zope] Some tough questions about zope... (long) > > > > > > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > > programs are mainly .cgi, but the PHP3 programs are server-side > > scripted, and as such are embedded into the HTML itself). This is so > > that I can > > ...do what? ;) Zope can call your cgi scripts just like they are, as > URLs. They would, of course, have to be external to Zope and if you > have a bunch of little ones you may find it better (and a damn sight > easier) to rewrite them as Python in Zope as external methods. (DTML is > also a rather powerful language for being so simple). Just leave your > PHP stuff in your documents; Zope will parse out the DTML and return it > to the server, which will parse out the PHP stuff and return it to the > browser. In fact, you can probably make DTML and PHP work together > nicely and simplify much of your PHP code. In the quickie case you > don't need to change your PHP. If this would work (having Apache parse the PHP code in the pages returned by Zope), you would save me a lot of painfull converting working PHP code (mainly database related) and I would gradually convert from PHP/Apache to Zope/Python/Apache. Pleaz tell me how this neat trick is done... (maybe some fiddling with the headers???) Hint: Creating a DTML Document/method with the following contents doesn't fool Apache in rendering PHP!

    Give me the (PHP) money...

    Read the phpinfo between the lines... NOT!!

    -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From raver@box.dust.za.net Wed Mar 3 22:02:07 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 3 Mar 1999 23:02:07 +0100 Subject: [Zope] Data from forms into a database - how? Message-ID: <19990303230207.A1292@RaVER.duck.org> Hello! Don't laugh at me - this is probably a very simple thing to do, but as I'm new to zope and can't find description of how this is accomplished I seek your help. I get data out of my database (MySQL) by querying, but how can I have data collected by forms showeled into the database? Appreciate any help I can get! Sture Lygren From michel@digicool.com Wed Mar 3 22:24:41 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 17:24:41 -0500 Subject: [Zope] DTML Method vs Document [ZDP?] Message-ID: <613145F79272D211914B0020AFF6401907BACD@GANDALF> > -----Original Message----- > From: Philip Aylesworth [mailto:phila@regalint.com] > Sent: Wednesday, March 03, 1999 3:44 PM > To: Zope List > Subject: [Zope] DTML Method vs Document > > > I just upgraded to 1.10.2 and I noticed that when creating a > new document I > have a choice of DTML document and DTML method. This seems useful. I > noticed that all my DTML documents and DTML methods have the > icon for a > DTML method. Everything seems to work. > > What is the difference between a DTML document and a DTML > method? Seems to > me a method should not be surfable but they are. > This is my take on the situation. As far as I can tell this is pretty deep voodoo. A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called foo, and it contained a DTML Method called bar, then bar is a method of foo. foo doesn't contain the object bar, it has the method bar bound to it. What this means is that from bar's point of view, 'self' is a Folder object, and any properties it sees are properties of foo, not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of DTMLDocument.DTMLDocument. They can manage their own Properties (because they inherit PropertyManager.PropertyManager). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question 'Am I showing some other objects content through me?' is Yes. DTML Documents should be used when the answer to the question 'Am I the content I want to display?' is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. (BTW Martijn, perhaps the above should go in the FAQs) If this isn't clear to you don't worry, it isn't even really clear to me. There is no way, but there really should be a way to convert between the two because the roles for a DTML widget may change from Method to Document as your system evolves. This will probably be a feature in the next release. (This is the answer to the question 'Can I convert between DTML Meths and DTML Docs?' for the FAQs) > Is it possible to change my documents to DTML documents? Even just for > housekeeping. > See directly above. > One other unrelated question: What is a Principia Draft? > Ugh..good question... I need to find that one out myself. > > > ------------------------------------------------------------------- > Philip Aylesworth Information Systems Manager > phila@regalint.com > PGP public key: http://www.regalint.com/PGPkeys/phila.html > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From mjd@networklogic.com Wed Mar 3 22:23:44 1999 From: mjd@networklogic.com (Maurice Davis) Date: Wed, 03 Mar 1999 14:23:44 -0800 Subject: [Zope] Version 0.3 of ZPyGreSQLDA Message-ID: <36DDB670.4B15C6A4@networklogic.com> Version 0.3 of ZPyGreSQLDA has been posted to the Contrib area of the Zope site. This version upgrades to PyGreSQL 2.3 and compiles under Zope-1.10.2. It now closes the backend connection to postgres when the database connection is shut down from Zope. Maury From ron@rotflol.cx Wed Mar 3 22:42:30 1999 From: ron@rotflol.cx (Ronald Offerman) Date: Wed, 03 Mar 1999 23:42:30 +0100 Subject: [Zope] ZMySQLDA In-Reply-To: Your message of "Wed, 03 Mar 1999 13:06:43 PST." <36DDA463.683D9460@avalongroup.net> Message-ID: <199903032242.XAA02180@heaven.rotflol.cx> > Hi, > > I'm playing with Zope, and have been trying to get Zope to talk to MySQL > using the MySQLDA. > > I'm running RedHat 5.2 > > Since there were caveats about having MySQL development enabled, and > such, I downloaded the source distribution for MySQL and made it. It > appears to be working very nicely. > > When I follow the procedures outlined in the README, the following > happens: > > I run make -f Makefile.pre.in boot and everything works correctly. > > I then run make and get the following error. > gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 > -DHAVE_CONFIG > _H -I/usr/local/mysql/include -I/usr/include/mysql -c ./MySQLmodule.c > ./MySQLmodule.c: In function `pythonify_row': > ./MySQLmodule.c:238: warning: assignment from incompatible pointer type > gcc -shared MySQLmodule.o -L/usr/local/mysql/lib -L/usr/lib/mysql > -lmysqlclien > t -lm -o MySQLmodule.so > ld: cannot open -lmysqlclient: No such file or directory > make: *** [MySQLmodule.so] Error 1 > > I did a locate on mysqlclient, and coudln't find the file. though I did > find some called libmysqlclient. So I changed the both Setup and > Setup.in to reflect that other name. however, I still get the above > error. > > Any help would be greatly appreciated. You almost made it ;=) The -lmysqlclient does refer to the libmysqlclient you found, but you should only modify the path pointing to it. This is done in the Setp[.in] just before the -lmysqlclient; modify the '-L/', if have this set to -L/usr/local/lib/mysql. [ZDP] Maybe this is something for the FAQ? -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From jae@kavi.com Wed Mar 3 23:03:12 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 3 Mar 1999 15:03:12 -0800 (PST) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <199903032157.WAA00348@heaven.rotflol.cx> Message-ID: On Wed, 3 Mar 1999, Ronald Offerman wrote: > > also a rather powerful language for being so simple). Just leave your > > PHP stuff in your documents; Zope will parse out the DTML and return it > > to the server, which will parse out the PHP stuff and return it to the > > browser. In fact, you can probably make DTML and PHP work together > > nicely and simplify much of your PHP code. In the quickie case you > > don't need to change your PHP. > > If this would work (having Apache parse the PHP code in the pages > returned by Zope), you would save me a lot of painfull converting > working PHP code (mainly database related) and I would gradually convert > from PHP/Apache to Zope/Python/Apache. This can't be done currently. I researched this a while back, trying to get server side includes to work. There's actually an entry in the Apache FAQ about it: """ 9.How can I have my script output parsed? So you want to include SSI directives in the output from your CGI script, but can't figure out how to do it? The short answer is "you can't." This is potentially a security liability and, more importantly, it can not be cleanly implemented under the current server API. The best workaround is for your script itself to do what the SSIs would be doing. After all, it's generating the rest of the content. This is a feature The Apache Group hopes to add in the next major release after 1.3. """ Though this is about SSI, it basically means (I believe) that apache can't take back the output of a CGI for additional module handling. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From neves@inf.puc-rio.br Wed Mar 3 23:22:43 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 03 Mar 1999 20:22:43 -0300 Subject: [Zope] Data from forms into a database - how? References: <19990303230207.A1292@RaVER.duck.org> Message-ID: <36DDC443.EF76DAE0@inf.puc-rio.br> raver@box.dust.za.net wrote: > > Hello! > > Don't laugh at me - this is probably a very simple thing to do, but > as I'm new to zope and can't find description of how this is accomplished > I seek your help. I get data out of my database (MySQL) by querying, but > how can I have data collected by forms showeled into the database? > > Appreciate any help I can get! > Hi Sture, try to use the P MySQL Input wizard in the contrib download area. It will automatically create a insert sql method and a form for you. So you can just follow the pattern. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From michel@digicool.com Wed Mar 3 23:42:05 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 3 Mar 1999 18:42:05 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BACF@GANDALF> > -----Original Message----- > From: John Eikenberry [mailto:jae@kavi.com] > Sent: Wednesday, March 03, 1999 6:03 PM > To: Ronald Offerman > Cc: Michel Pelletier; Tony McDonald; zope@zope.org; > ron@heaven.rotflol.cx > Subject: Re: [Zope] Some tough questions about zope... (long) > > > On Wed, 3 Mar 1999, Ronald Offerman wrote: > > > > also a rather powerful language for being so simple). > Just leave your > > > PHP stuff in your documents; Zope will parse out the DTML > and return it > > > to the server, which will parse out the PHP stuff and > return it to the > > > browser. In fact, you can probably make DTML and PHP > work together > > > nicely and simplify much of your PHP code. In the > quickie case you > > > don't need to change your PHP. > > > > If this would work (having Apache parse the PHP code in the pages > > returned by Zope), you would save me a lot of painfull converting > > working PHP code (mainly database related) and I would > gradually convert > > from PHP/Apache to Zope/Python/Apache. > > This can't be done currently. I researched this a while back, > trying to > get server side includes to work. There's actually an entry > in the Apache > FAQ about it: > > """ > 9.How can I have my script output parsed? > > So you want to include SSI directives in the output from your CGI > script, but can't figure out how to do it? The short > answer is "you > can't." This is potentially a security liability and, more > importantly, it can not be cleanly implemented under the current > server API. The best workaround is for your script > itself to do what > the SSIs would be doing. After all, it's generating the > rest of the > content. > > This is a feature The Apache Group hopes to add in the next major > release after 1.3. > """ > > Though this is about SSI, it basically means (I believe) that > apache can't > take back the output of a CGI for additional module handling. > > --- Well paint me blue and call me a liar. At least it's planned. Michel > > John Eikenberry > [jae@kavi.com - http://taos.kavi.com/~jae/] > ______________________________________________________________ > "A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From reedstrm@rice.edu Thu Mar 4 00:02:51 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Wed, 03 Mar 1999 18:02:51 -0600 Subject: [Zope] Indirect variable references References: <3.0.5.32.19990204010511.01588de0@mail.aracnet.com> Message-ID: <36DDCDAB.E2D20FD@rice.edu> Amos Latteier wrote: I'm piggy backing this on Amos's post from a while ago, because that is where I finally found my answer. I could have sworn I had seen (and used!) a DTML code fragment that displayed the form variables sent to it, with there values. Obviously, this involves indirection. After hunting through my (extensive) zope-list archive, I couldn't find it, so I started over, with the help of Amos's text and wrote one. I often need little tools like this to debug between my forms and sql actions, so I can see what's really going on! I call it 'show_vars' The only tricky thing in it is that sequence-item is an invalid variable name, so I need to wrap it in _[''] which leads to the double wrap when dereferencing to get the value. Anyway, hope someone else finds it useful!
    Form VariableValue
    Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From oyvindmo@pvv.ntnu.no Thu Mar 4 00:18:41 1999 From: oyvindmo@pvv.ntnu.no (Oyvind Moll) Date: 04 Mar 1999 01:18:41 +0100 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: Message-ID: * John Eikenberry | | On Wed, 3 Mar 1999, Ronald Offerman wrote: | | > > also a rather powerful language for being so simple). Just leave your | > > PHP stuff in your documents; Zope will parse out the DTML and return it | > > to the server, which will parse out the PHP stuff and return it to the | > > browser. In fact, you can probably make DTML and PHP work together | > > nicely and simplify much of your PHP code. In the quickie case you | > > don't need to change your PHP. | > | > If this would work (having Apache parse the PHP code in the pages | > returned by Zope), you would save me a lot of painfull converting | > working PHP code (mainly database related) and I would gradually convert | > from PHP/Apache to Zope/Python/Apache. | | This can't be done currently. I researched this a while back, trying to | get server side includes to work. [...] | Though this is about SSI, it basically means (I believe) that apache can't | take back the output of a CGI for additional module handling. I haven't tried it, but it could possibly be done by running two Apaches: one which stands "in front of" the other. The front-side Apache would rewrite every access into a PHP wrapper-script which include()s a corresponding URL from the back-side Apache where the Zope things would be done. On the other hand, I really should be asleep now so all this _may_ be utter nonsense, but I do think it's possible. It may even be possible with a single Apache, but that's more hairy than I dare think about right now. Good night. (Btw, my suggested hack isn't in total disagreement with the quoted FAQ entry, because my hack surely won't work with SSI. PHP3 isn't an official Apache module, so they don't neccessarily mention things like this in their FAQ.) -- Øyvind Møll oyvindmo@pvv.ntnu.no From Anthony Baxter Thu Mar 4 00:24:34 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 04 Mar 1999 11:24:34 +1100 Subject: [Zope] debugging ZServer FTP sessions. Message-ID: <199903040024.LAA11235@mbuna.arbhome.com.au> I'm attempting to use ZServer's ftp daemon to upload a number of images into my database, however no matter what I try I always get back ftp> put sidebar.gif local: sidebar.gif remote: sidebar.gif 200 PORT command successful. 150 Opening Binary connection for sidebar.gif 550 Error creating file. 189 bytes sent in 0.00139 secs (1.3e+02 Kbytes/sec) ftp> I've tried this with an image that doesn't exist, as well as for one that already exists. Is it just a matter of "it doesn't work for images" or what? Also, where does ZServer send errors from ftp sessions? It looks to me like it's just silently eating them. :( Anthony From rushing@nightmare.com Thu Mar 4 01:03:59 1999 From: rushing@nightmare.com (rushing@nightmare.com) Date: Wed, 3 Mar 1999 17:03:59 -0800 (PST) Subject: [Zope] ZServerFTP In-Reply-To: <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> References: <008401be622b$0a80edd0$fa01a8c0@rogue.easystreet.com> <3.0.5.32.19990227133210.00fc9ec0@mail.aracnet.com> Message-ID: <14045.55810.997842.777915@gnome.nightmare.com> Amos Latteier writes: > At 12:27 AM 2/27/99 -0800, you wrote: > >HomeSite's FTP mode is apparently trying to use the FTP commands "MODE S" > >and "STRU F" to which ZServer is responding with a "500 '%s': command not > >understood." % command and then HomeSite bails out and never fetches any > >directory listings or anything. > > > >Is there any intent to support these commands? It sure would be nice. > > Right now we are trying not to add a lot of FTP commands to ZServer that > Medusa's FTP server doesn't already support, and it seems that Medusa > doesn't support these right now. > > I'll look into these commands and if they are easy to implement and make > sense for Zope, I'll try. Of course, patches are always welcome. In all the world you might find 4 machines still plugged in that support 'record' or 'page' structure. The default is 'file', which is what that command is trying to do. Add these two methods to ftp_server.py::ftp_channel def cmd_stru (self, line): 'obsolete - set file transfer structure' if line[1] in 'fF': # f == 'file' self.respond ('200 STRU F Ok') else: self.respond ('504 Unimplemented STRU type') def cmd_mode (self, line): 'obsolete - set file transfer mode' if line[1] in 'sS': # f == 'file' self.respond ('200 MODE S Ok') else: self.respond ('502 Unimplemented MODE type') And that should do the trick. [these changes have just been checked into my CVS repository, too] -Sam From mj@antraciet.nl Thu Mar 4 09:06:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:06:39 +0100 Subject: [Zope] DTML Method vs Document In-Reply-To: Message-ID: <4.1.19990304090459.00bef1b0@lisp.atmm.nl> At 21:44 03/03/99 , Philip Aylesworth wrote: >What is the difference between a DTML document and a DTML method? Seems to >me a method should not be surfable but they are. > >Is it possible to change my documents to DTML documents? Even just for >housekeeping. Micheal answered these perfectly. >One other unrelated question: What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. This has allready been reported as a bug to the Collector by me. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder. I think that Folder objects _used_ to call title_and_id on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using it's id and title separetly. Principia Drafts made use of the call to title_and_id to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's users__draft__.manage_main method, and reach the Session controls by calling its manage_approve__draft__ method. The URLS are: http://yoursever.com/Zope/Draft/users__draft__/manage_main and http://yoursever.com/Zope/Draft/manage_approve__draft__ Martijn Ps. Martijn, I am CCing to you for use in the FAQ. I know it still needs editing.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 4 09:19:50 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:19:50 +0300 (MSK) Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: <613145F79272D211914B0020AFF6401907BACF@GANDALF> Message-ID: Hi! On Wed, 3 Mar 1999, Michel Pelletier wrote: > > Though this is about SSI, it basically means (I believe) that > > apache can't > > take back the output of a CGI for additional module handling. > > > > --- > > Well paint me blue and call me a liar. At least it's planned. It will be implemented with Layered (stacked) handlers. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phd@sun.med.ru Thu Mar 4 09:29:41 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 4 Mar 1999 12:29:41 +0300 (MSK) Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) In-Reply-To: <36DD3FD7.F71EAE80@pop.vet.uu.nl> Message-ID: Hello! I am new to Zope, and i want to clarify some problems. On Wed, 3 Mar 1999, Martijn Faassen wrote: > * How do I call an external method from DTML? As far as I understand there are DTML objects (templates), Products and External methods. There is no such thing as "Internal" methods (objects, that live in Zope's object database). Are these 3 the only 3 kinds of executable (callable) things? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Thu Mar 4 09:30:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:30:45 +0100 Subject: [Zope] [ZDP] Showing form data Message-ID: <4.1.19990304101312.00b9b100@lisp.atmm.nl> * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Thu Mar 4 09:32:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 10:32:44 +0100 Subject: [Zope] [ZDP] Showing form data (take two) In-Reply-To: <4.1.19990304101312.00b9b100@lisp.atmm.nl> Message-ID: <4.1.19990304103150.00b90ef0@lisp.atmm.nl> Take two, now with escaped HTML.... * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: <!--#in "REQUEST.form.items()" sort--> <!--#var sequence-key-->: <!--#var sequence-item--><BR> <!--#/in--> Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Thu Mar 4 09:40:40 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:40:40 +0100 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: Message-ID: <36DE5518.109B83A2@pop.vet.uu.nl> John Eikenberry wrote: > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > > What would also be nice is some way to simply generate plain ascii text > > versions of the FAQ as well, along with possibly some other versions. We > > could also think about generating DocBook SGML (which then can be > > converted in a lot of different formats with for instance the Linux > > SGMLtools 2.0). > > I would love to see this feature (generating DocBook SGML). I thought > about something like this myself (for my howto), but I just don't have the > time at the moment. I could probably find enough time to help out a little > though. I'm randomly assuming here you know more about DocBook SGML than I do, so here I'm involuntarily inofficially but you can back out of it immediately appointing you the ZDP DocBook SGML expert. :) I think perhaps the first thing you could do is get together with people in the Latex thread for docs; they seem to have come up with it independently. I know even less Latex than SGML and SGML seems a closer fit with the XML-ish direction the web's taking, so my question would be to point out the advantages of SGML to everybody. Regards and thanks in advance, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 09:45:31 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 10:45:31 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> Message-ID: <36DE563B.C19C92A5@pop.vet.uu.nl> Kevin Dangoor wrote: > On Wed, Mar 03, 1999 at 11:44:20AM -0500, Philip Aylesworth wrote: > > Here is a start. > > > > Great start! > > > > Could I suggest that there be FAQs for different catagories? > This is a good idea. I can see this FAQ growing very, very quickly. > So, I would suggest that we start thinking about a hierarchy > already... [snip proposed hierarchies] Yup, splitting up the FAQ into different categories appears to be pretty needed, so this is a good idea. My idea is to 'involunteer' you category maker guys to take the assembled FAQ that I'll produce hopefully today (in a few hours), and put each question in the category you feel it belongs to. This way I have to do less work and thinking. :) Realizes-he-is-talking-to-two-people-so-you-can-always-say-I-thought-the-other-guy-would-do-itly yours, (wow, a long one :) Martijn From Armin.Tschammer@oi42.kwu.siemens.de Thu Mar 4 09:49:39 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Thu, 04 Mar 1999 10:49:39 +0100 Subject: [Zope] Bobo or ZPublisher and stdout ( Solution: Client/Server) Message-ID: <36DE5733.60F87988@oi42.kwu.siemens.de> Hi, I already sent some postings to this topic, but I would like to discuss the following problem again and how it could be solved. Imagine there is a big C++/Python project. The application is mainly prgrammed in C/C++ und one supports a scritpting interface to that application via the SWIG mechanism - the target language is Python. During the developping process many stuff is written to the stdout - during initialization ( before the main-function ), during execution ( in the main-function ), and in the destructors of the static instances ( after the main-function ). Now we want to do some web-stuff via ZPublisher, we define a function which return a html string, which is calculated through calling functions from our scritpting interface of our application, that means beside my correct calculated string there is many stuff sent to stdout, that confuses the Xserver and I get an error. Ok, you would say switch the stdout to a file via calling c-funcions like dup() or dup2( ) and encapsulate this in a function (wrapped via SWIG), which is called in the function which I call from the URL in the browser. Less cryptic: xy.py: start(): "XXXXXXX" #Now all stdout goes in a file stdout2file( "log.txt") .... HTMLstring = .... # sitches the stdout back ( REVerse ) # The way is free for CGI REVstdout2file() return HTMLstring the URL: http://myserver:3333/yyy/cgi-bin/xy/start BUT with this method I have no chance to chatch stuff which is written to the stdout in the destrutors of the static instances, because we already have switched back to the "usual" stdout (for a correctly working cgi-mechnism). The some problem one have with things which are written to the stdout during the initialisation of the static instances. ( Imagine python itself is compiled against a library which writes some stuff to stdout during initialization). I see only one solution: If there is a ZPublisher Server process which says to a client process do everything and give me a calculated string via sockets or something like that, I have not to take care about stuff which is written to the stdout at the client process. Or are there better solutions ? Thanks in advance, Armin From M.Faassen@vet.uu.nl Thu Mar 4 10:02:39 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 11:02:39 +0100 Subject: [Zope] [ZDP] Assorted FAQs References: ; <36DD3FD7.F71EAE80@pop.vet.uu.nl> <19990303122615.A6474@throwingcopper.ans.net> <19990303135355.47418@amber.org> Message-ID: <36DE5A3F.39DA2C28@pop.vet.uu.nl> "Christopher G. Petrilli" wrote: > > On Wed, Mar 03, 1999 at 01:00:03PM -0500, Philip Aylesworth wrote: > > Maybe by splitting up the FAQs we could split up the work, too! Have a > > different person/group resposible for each FAQ. > > Well, I think it'd be nice if there was someone "responsible" for each > major section, this would keep everyone from getting swamped. Yes, this would be a good idea. My first priority however is to get as much of a FAQ as possible out there. Organization we'll do at the same time. Otherwise we run the risk getting bogged down in organizing who does what. That said, volunteers who want to manage specific sections of the FAQ are very welcome to step forward. Procedure is as follows: you get to name your topic; the first person who names a particular topic and produces a FAQ for it (assembling it from the FAQ we have now, and hopefully adding more of his or her own to it) will be manager for that section, unless that person doesn't want to, of course. :) I suggest to mail this list instead of me personally, so that other people can respond friday and during the weekend, when I won't be around to check the mail. We're working on getting a zdp@zope.org mailing list too, but I can't say yet when that'll be ready. [snip] ] > > Also, I think that HOWTOs of the Linux type would be a great idea. They > > have a person/group responsible for each HOWTO to keep it up to date and > > add/edit things as needed. Aren't there some HOWTOs out there already on the Zope site? (there are FAQs too but that doesn't stop us of course). HOWTOs and FAQs of course have some overlap; we'll just see how it evolves. > You can find a "howto" LaTeX stylesheet in the Python CVS checkout, and > I'm sure Guido/Fred wouldn't mind us using this. It works real well, > and can target HTML, ASCII (I think), Postscript, PDF, etc... this lets > you do the "bigger" stuff in a nice pretty way. Earlier I suggested using SGML Docbook for this purpose; I've appointed John Eikenberry (without any feedback from him :) as our official SGML docbook expert. One advantage of Docbook SGML is that it's the new Linux standard for writing documentation. > What would also be nice is a list of "bigger" issues that people would > liek to see explained more... something that's more than a single > question. I think essentially a HOWTO is a particular frequently asked question with a very long answer. :) Regards, Martijn From Rheal.Dugas@CAN.XEROX.com Thu Mar 4 13:02:53 1999 From: Rheal.Dugas@CAN.XEROX.com (Dugas, Rheal) Date: Thu, 4 Mar 1999 08:02:53 -0500 Subject: [Zope] Query Message-ID: HI all I am a color specialist with Xerox. What i am doing with Zope is setting up a Knowedge database for my fellow color specialist. I am having a bit of a problem setting up a search query. Following is what i have know, Could somebody tell me how i could improve on this query. SELECT * FROM problems WHERE problems_rip_model LIKE OR problems.prob_descript LIKE '%%' OR problems.prob_solution LIKE '%%' Is this the proper code or is there a better way of doing it? Thank You Rheal J. Dugas 1-800-939-3769 ext 1074 From Paul@digicool.com Thu Mar 4 13:34:24 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:24 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Philip wrote: > Maybe Michigan/Ontario area? Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) No, right now we're considering partnering with a technology training company in Washington DC. --Paul From Paul@digicool.com Thu Mar 4 13:34:25 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 4 Mar 1999 08:34:25 -0500 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project Message-ID: <613145F79272D211914B0020AFF6401907BAD2@GANDALF> Michael wrote: > Yes, at least theoretically. What would be covered and is > this an online > or offline course? My rough sketch right now is a four-day course: Day One -- Zope for Content Managers Day Two -- Zope Programming Using Zope Day Three -- Zope Programming Using Python Day Four -- Relational Databases and Zope -- Zope for System Administrators It would be a professionally produced and delivered "in the classroom" class, a la Learning Tree. That is, I won't be doing it. :^) Instead, I'll produce a poor version of the whole thing and give it to them, including the first customer that will send maybe 7 people. My poor version would probably become an online version. Just my thoughts currently. --Paul From rocon@pivot.net Thu Mar 4 13:37:40 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 4 Mar 1999 08:37:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Hi Martijn, >I suggest to mail this list instead of me personally, so that other >people can respond friday and during the weekend, when I won't be around >to check the mail. We're working on getting a zdp@zope.org mailing list >too, but I can't say yet when that'll be ready. This ZDP list appears to be ready now although only Ken [List admin] is signed up. I added my name using: http://www.zope.org/mailman/listinfo/zdp The list of ZDP collaborators (subscribers) is at: http://www.zope.org/mailman/roster/zdp -bobo connor bob@rocnet.com From M.Faassen@vet.uu.nl Thu Mar 4 13:43:49 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 14:43:49 +0100 Subject: [Zope] [ZDP] List appears ready References: <005d01be6644$30051000$0201a8c0@hawkeye.bob.oc> Message-ID: <36DE8E15.A3901B2A@pop.vet.uu.nl> Robert OConnor wrote: > > Hi Martijn, > > >I suggest to mail this list instead of me personally, so that other > >people can respond friday and during the weekend, when I won't be around > >to check the mail. We're working on getting a zdp@zope.org mailing list > >too, but I can't say yet when that'll be ready. > > This ZDP list appears to be ready now although only Ken [List admin] > is signed up. I know, Ken sent me a mail. :) I still need to subscribe to it. > I added my name using: > > http://www.zope.org/mailman/listinfo/zdp > > The list of ZDP collaborators (subscribers) is at: > > http://www.zope.org/mailman/roster/zdp I guess this counts as an announcement. Ken asked me to do it, but I just mailed him I'd rather he did it (as he knows more about these things than I do, and I won't be available to deal with problems until monday, after today, thursday). But, now you did, so that's fine too. :) Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 4 14:16:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:16:50 +0100 Subject: [Zope] ZDP's Ad-hoc Zope FAQ version 0.1 Message-ID: <36DE95D2.A35366C2@pop.vet.uu.nl> Hi everybody, Here is the new ad-hoc FAQ. I'll start versioning it as of now; this is version 0.1. How we'll do the actual versioning we'll still have to decide on, but at least we have a way to refer to this one now. Regards, Martijn ---- Note on the use of the Zope mailing lists: The Zope Documentation Project is getting its own mailing list (zdp@zope.org). In an attempt to gain publicity and support among the Zope community, I'll post this development FAQ to the main Zope list as well, however. Feel free to respond to it on either list for now, but you are encouraged to join the ZDP mailing list and to send new FAQ suggestions there. You can subscribe to the ZDP mailing list by using the page: http://www.zope.org/mailman/listinfo/zdp Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured, unrelated questions are mixed haphazardly. If you feel the calling to categorize the FAQ or to maintain the questions for a particular topic, feel free to mail your changes to the list, and thanks in advance! Note on the code examples and StructuredText: I've reconsidered and used normal '<' and '>' characters in sample DTML, for the reason that at least the FAQ is readable as text then. If you try to feed this FAQ through:: there will be an error message in Zope, however. For some reason Zope seems to try to interprete even StructuredText that uses & escape codes. Until this issue is resolved it is not possible to render this document into HTML. In my uninformed opinion, StructuredText code examples shouldn't be interpreted by Zope as actual DTML. There may be some rather subtle technical difficulties involved however. Any input on this is very welcome. Until the matter is resolved, the FAQ document will use StructuredText in the plaintext readable way. Thanks to Martijn Pieters in being so considerate to supply HTML escaped DTML examples; it's unfortunate his efforts weren't useful this time. Note on my availability: Martijn Faassen (me!), ad-hoc FAQ maintainer of the ZDP's Zope FAQ is generally not available to read or respond to email on friday, saturday and sunday. It is suggested ZDP related communication goes through the ZDP mailing list at zdp@zope.org anyway, and is not sent directly Martijn. This way anyone who wants to do something for the ZDP (such as editing and extending the FAQ) does not have to wait for Martijn to read his mail, having all relevant information available on the list. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * Why does StructuredText have trouble rendering the '#var' tags in the FAQ? Why do you use the HTML & escape codes in the FAQ when they don't work well either? I suspect there is some interaction between StructuredText and DTML that causes '#var' tags to be interpreted even when in a StructuredText code block (indicated by '::' or single quotes). I don't know any workaround right now, so I leave in ugly escape codes to encourage suggestions. :) * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them)::
    * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just call the items() method of the dictionary, and the #in tag will provide a sequence-key and sequence-item variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() for all REQUEST variables, including CGI Environment variables. * What is a Principia Draft? It is a special use of the session object, but it appears to be partially broken. When you create a Principia Draft, it asks you to specify an orginal object, from the same Folder you are creating the Draft in. This will be your 'draft', on which you can make changes invisible to the outside world. The draft contains an invisible Session object that is immediatly started and joined, and an invisible UserFolder to facilitate extra users (for example, customers that want to be able to view your work on it as well, but have no access to it otherwise). The Principia Draft suffers two problems however. The first is really a Session object bug, in that security for Session objects is broken. The second problem is that the Userfolder and Session controls are inaccessible via the management screens. The latter problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Session controls. As this now doesn't happen anymore, you will have to do this yourself. As long as you have access to Session objects, you can change users on a Principia Draft object by calling it's 'users__draft__.manage_main' method, and reach the Session controls by calling its 'manage_approve__draft__' method. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ From M.Faassen@vet.uu.nl Thu Mar 4 14:51:55 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 04 Mar 1999 15:51:55 +0100 Subject: [Zope] non-External methods (was -- Re: [Zope] [ZDP] Assorted FAQs) References: Message-ID: <36DE9E0A.393AD83B@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > I am new to Zope, and i want to clarify some problems. > > On Wed, 3 Mar 1999, Martijn Faassen wrote: > > * How do I call an external method from DTML? > > As far as I understand there are DTML objects (templates), Products and > External methods. There is no such thing as "Internal" methods (objects, > that live in Zope's object database). Are these 3 the only 3 kinds of > executable (callable) things? Hm, DTML methods can be called as well, naturally, that's why they're called methods. They're called through URL. The DTML method then is executed. This means executing any DTML in it and returning the resulting HTML to the caller. One way of 'calling' a DTML method is by using it in a form action, like this:
    (or method="GET", of course) This does go through the browser, but it feels like you're calling 'your_dtml_method' when the user presses the submit button. This is another way of 'calling' a DTML method: I'm sure there are more ways, and I'm a bit vague about this, so I'll leave it up to other people to turn this into a nice FAQ. :) Regards, Martijn From zopelist@regalint.com Thu Mar 4 14:50:57 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 4 Mar 1999 09:50:57 -0500 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br> References: <19990303230207.A1292@RaVER.duck.org> Message-ID: >raver@box.dust.za.net wrote: >> >> Hello! >> >> Don't laugh at me - this is probably a very simple thing to do, but >> as I'm new to zope and can't find description of how this is accomplished >> I seek your help. I get data out of my database (MySQL) by querying, but >> how can I have data collected by forms showeled into the database? >> >> Appreciate any help I can get! >> > >Hi Sture, >try to use the P MySQL Input wizard in the contrib download area. It >will automatically create a insert sql method and a form for you. So you >can just follow the pattern. So that is what the MySQL Input wizard does. I've been meaning to look at it. Instead of saving time by using it, I did it manually. It is not that hard but you have to understand what is happening. 1. HTML form (eg. form_html) collects data and sends it to a DTML document (eg input_html) (that is the only tricky concept). For example: (That :int tag does error checking. It is optional. They are documented in the Z SQL Database Methods User's Guide) 2. The receiving doc (input_html) calls an SQL method (eg input_sql) with an in tag. If you do a select after your INSERT or UPDATE you can use it between the in tags, otherwise you can just display a message or do a redirect after it. 3. Your SQL method (input_sql) would be something like: INSERT INTO database (num) VALUES ( ) SELECT num, etc You don't need to do a select but if you do don't forget the between any SQL statements. Have fun! Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From mj@antraciet.nl Thu Mar 4 15:18:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 04 Mar 1999 16:18:02 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> Message-ID: <4.1.19990304161646.00bdb160@lisp.atmm.nl> At 15:50 04/03/99 , Philip Aylesworth wrote: >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with >an in tag. > > > > >If you do a select after your INSERT or UPDATE you can use it between the >in tags, otherwise you can just display a message or do a redirect after it. If you don't do anything with the returned data, a #call will suffice: -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From arw@ifu.net Thu Mar 4 15:31:37 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 10:31:37 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <36DEA759.4FCDB933@ifu.net> Hi. I've been getting a lot of confusing complaints about gadfly that turn out to be Zope bugs. Just for the record. ZGadflyDA doesn't support more than one db, gadfly does. ZGadflyDA doesn't support newlines in string literals, gadfly does. ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x faster. ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 (October 1998) where a lot of other bugs are fixed.... I'm sure these will be fixed soon, in fact I'd offer a patch if I could figure out how the thing works, but until then, Yours truly, -- Aaron Watters http;//www.chordate.com From michel@digicool.com Thu Mar 4 15:44:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 4 Mar 1999 10:44:22 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAD9@GANDALF> > -----Original Message----- > From: Aaron Watters [mailto:arw@ifu.net] > Sent: Thursday, March 04, 1999 10:32 AM > To: zope@zope.org; crew@server.python.net; jeffbauer@bigfoot.com > Subject: [Zope] zope ZGadfly DA buggy > > > Hi. I've been getting a lot of confusing complaints about gadfly > that turn out to be Zope bugs. Just for the record. > > ZGadflyDA doesn't support more than one db, gadfly does. > ZGadflyDA doesn't support newlines in string literals, gadfly does. > ZGadflyDA doesn't include kjbucketsmodule which makes gadfly run 10x > faster. > ZGadflyDA packages gadfly beta 0.2, whereas the current release is 1.0 > (October 1998) where a lot of other bugs are fixed.... > > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, > Yours truly, > -- Aaron Watters http;//www.chordate.com > > Aaron, could you please submit a collector bug with the above information? We will make sure the next release takes a stab at these (at the least use the latest version!) -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From klm@digicool.com Thu Mar 4 16:51:40 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 11:51:40 -0500 Subject: [Zope] [ZDP] List appears ready Message-ID: <613145F79272D211914B0020AFF640190BED77@GANDALF> Martijn Faassen wrote: > > Robert OConnor wrote: > > This ZDP list appears to be ready now although only Ken [List admin] > > is signed up. > > I know, Ken sent me a mail. :) I still need to subscribe to it. > [...] > I guess this counts as an announcement. Ken asked me to do it, but I > just mailed him I'd rather he did it (as he knows more about these > things than I do, and I won't be available to deal with problems until > monday, after today, thursday). > > But, now you did, so that's fine too. :) Umm - i know it's redundant at this point, but for completeness sake - the Zope Documentation Project mailing list is open and ready for business. Thanks again to martijn for instigating this effort - have at it! Ken Manheimer klm@digicool.com From klm@digicool.com Thu Mar 4 17:10:38 1999 From: klm@digicool.com (Ken Manheimer) Date: Thu, 4 Mar 1999 12:10:38 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <613145F79272D211914B0020AFF640190BED78@GANDALF> Martijn Pieters wrote: > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. As a new zope user, and also according to my general documentation sensibilities, i suspect it would be very valuable to have a catalogue of the various special variables (like sequence-key and sequence-item) and the various entities (REQUEST.cookies, ...) available to the DTML programmer. There may already be some sort of catalogues around - in which case pointers to those kinds of resources would be very nice to have... Ken From the perspective of a new user of zope, as well as from the perspective of completeness, one thing i think would be From amos@aracnet.com Thu Mar 4 17:11:05 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 04 Mar 1999 09:11:05 -0800 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> At 05:31 PM 3/4/99, Jay Ashton wrote: >In trying to figure out what's going on I've noticed a couple things. >First, and I think most illustrative, if I try to add a new Z ODBC >connection, none of my ODBC sources are showing up in the available list >(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >Zope with ZopeHTTPServer all my ODBC connections show up just fine. > >Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >variables of both and noticed some differences - USERPROFILE's are Default >User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >USERDOMAIN in the 1.10.2/IIS environ, with no luck. I think at least this part of your problem may be due to the fact that Zope is running as a different user under IIS than it is under ZopeHTTPServer. My guess is that it can't see your datasources since they weren't created as 'System' datasources. Check under the windows ODBC control panel and make sure your DSNs appear under 'system dsn', not 'user dsn'. -Amos From jeffrey@Digicool.com Thu Mar 4 17:20:13 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 04 Mar 1999 12:20:13 -0500 Subject: [Zope] [ZDP] Showing form data Message-ID: <199903041720.JAA27601@zope.codeit.com> >From: Martijn Pieters >To: Zope Mailinglist >Subject: [Zope] [ZDP] Showing form data >Date: Thu, Mar 4, 1999, 4:30 AM > > * How can I show all form data/cookies/REQUEST vars without knowing their > names? > > By using the #in tag, you can easily all show all data in any dictionary > object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just > call the items() method of the dictionary, and the #in tag will provide > a sequence-key and sequence-item variable for every item in the > dictionary. > > Show showing all form data can be done like this:: > > > :
    > > > Use REQUEST.cookies.items() for all your cookies, and REQUEST.items() > for all REQUEST variables, including CGI Environment variables. The most supremely easy way is::
    :) .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Thu Mar 4 17:32:36 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 04 Mar 1999 09:32:36 -0800 Subject: [Zope] [ZDP] Announcing the Zope Documentation Project References: <613145F79272D211914B0020AFF6401907BAD1@GANDALF> Message-ID: <36DEC3B4.D6B3C99@profitscape.net> Paul Everitt wrote: > Ahh, we'll just have to rent a bus and go on a nationwide tour. :^) ROAD TRIP! From tjg@avalongroup.net Thu Mar 4 19:40:55 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 11:40:55 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DEE1C7.39E6E77F@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax From skip@mojam.com (Skip Montanaro) Thu Mar 4 20:21:31 1999 From: skip@mojam.com (Skip Montanaro) (skip@mojam.com (Skip Montanaro)) Date: Thu, 4 Mar 1999 15:21:31 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/site-packages? Message-ID: <199903042021.PAA00587@dolphin.calendar.com> Can the contents of Zope's lib/python directory safely be copied to the site-packages directory of the Python install directory? Thx, Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@mojam.com | Musi-Cal: http://www.musi-cal.com/ 518-372-5583 From arw@ifu.net Thu Mar 4 20:39:29 1999 From: arw@ifu.net (Aaron Watters) Date: Thu, 04 Mar 1999 15:39:29 -0500 Subject: [Zope] gadfly bug in charstring literal recognition [fixable] References: <199903041633.IAA26276@zope.codeit.com> <36DEBB14.8C3AF1FD@digicool.com> <36DEC913.36F30F17@ifu.net> <36DED050.A1C0ED43@digicool.com> <36DEDF94.6B3CD6FF@ifu.net> Message-ID: <36DEEF81.ACFD17AC@ifu.net> Oops. One "zope bug" I complained of was mine. If it had been reported to the gadfly-rdbms list it would have been fixed back when. viz: Aaron Watters wrote: > [copied to gadfly-rdbms list] > > Jim Fulton wrote: > >...most RDBMSs (as in all but gadfly) > > > accept: > > > > cursor.execute(""" > > select name > > from table > > where descr = 'this > > doesn''t work for two reasons' > > """) > > > > Are you saying that the SQL spec disallows newlines in > > quoted strings? > > I actually was unaware of that. I'll look to my docus. In the > mean time if you want it, in sqlgen.py change the charstre to > > charstre = "'[^']*'" > > ===interactively > >>> c.execute(""" > select 'this > doesn''t work for two reasons' > from dual""") > >>> print c.pp() > > ========================================================= > this > doesn't work for two reasons > ===end ... > -- Aaron Watters > > ps: and thanks. post script: The current usage of gadfly in Zope makes gadfly do lots of parsing as in insert into table(a,b,c) values (1,2,3) insert into table(a,b,c) values (6,2,3) insert into table(a,b,c) values (1,7,3) insert into table(a,b,c) values (1,2,8) The "right" way to do this would be to take advantage of gadfly's dynamic parameter/multiinsert feature executing insert into table(a,b,c) values (?,?,?) ONCE with dynamic parameters list [(1,2,3), (6,2,3), (1,7,3), (1,2,8)] which would run much faster than thrashing the parser with the individual inserts above (with kjbuckets present). In general dynamic parameters on repeated statements reduce parsing and binding overhead (even for other types of statements). However, I understand this may be hard to implement as it would require special features for the gadfly "adapter" not of value for the other adapters. Oh well. Anyway, in future please post/forward/crosspost any gadfly related issues to the gadfly list. I just discovered a pile of complaints on the zope list this morning and I found it distressing. I don't normally read the zope list. -- Aaron Watters http://www.chordate.com From robin@alldunn.com Thu Mar 4 21:24:49 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 13:24:49 -0800 Subject: [Zope] evaluating attribute values Message-ID: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> How can I evaluate a #var equivallent for setting a tag attribute value? For example, Zope doesn't like this: --> or this: (it tries to use smtpHost as the host name, instead of its value) Help! -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. From jae@kavi.com Thu Mar 4 22:05:21 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 14:05:21 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > For example, Zope doesn't like this: > > --> > > or this: > > > > (it tries to use smtpHost as the host name, instead of its value) Try: or this: --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jody@ldeo.columbia.edu Thu Mar 4 22:12:16 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Thu, 4 Mar 1999 17:12:16 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903042212.RAA16927@hog> I have a long running process that will be started by Zope. This process has a CORBA interface that is implemented using ILU. I would like to be able to asynchronously have this process generate data for Zope. My basic questions are: o Can I have an ILU mainloop inside of Zope? (I really don't care if I have to hack Zope or if I can use an external method.) o Should I fork/exec the long running process and give the process a URL that indicates where the data should be written? (I can use pickles or sql.) o How do I tell Zope that new data is avaliable if the process is external to Zope? Jody Winston From John Eikenberry Thu Mar 4 22:26:18 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 14:26:18 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: Ok, what's the trick to getting special characters to be converted to their escape codes (eg. " to "). This is particularly important for forms in which the user may enter these types of character. For instance, if I create a property on a folder that is a string, and if the string I enter has quotes around it... it doesn't show in the interface the next time I go to edit the properties. For example, in MCExam, the 2nd sample question has this as an answer "bar, spam". If I go to the folder's properties to change it, it doesn't show up. In the source it looks like: Obviously, if I then save changes, the value is gone altogether. Is there a way of automatically converting quotes and other special characters to their escape codes (like the sqlquote method)? Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From robin@alldunn.com Thu Mar 4 22:37:05 1999 From: robin@alldunn.com (Robin Dunn) Date: Thu, 4 Mar 1999 14:37:05 -0800 Subject: [Zope] evaluating attribute values Message-ID: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Sorry, your ideas don't work either. This time I get a NameError for mhost in the following code in SendMailtag.py. mhost is never being created. if self.mailhost: mhost=md[self.mailhost] elif self.smtphost: mhost=MailBase() mhost._init(localHost=gethostname(), smtpHost=self.smtphost, smtpPort=self.port) mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, self.subject) -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: John Eikenberry To: Robin Dunn Cc: zope Date: Thursday, March 04, 1999 1:17 PM Subject: Re: [Zope] evaluating attribute values >On Thu, 4 Mar 1999, Robin Dunn wrote: > >> For example, Zope doesn't like this: >> >> --> >> >> or this: >> >> >> >> (it tries to use smtpHost as the host name, instead of its value) > >Try: > > > >or this: > > > >--- > >John Eikenberry >[jae@kavi.com - http://taos.kavi.com/~jae/] >______________________________________________________________ >"A society that will trade a little liberty for a little order > will deserve neither and lose both." > --B. Franklin > > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 4 22:42:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 17:42:51 -0500 (EST) Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <199903042212.RAA16927@hog> Message-ID: Are you the wonderful folk that manage the atmospheric database at LDEO?? If so thanks a lot. I use it all the time for my work! On Thu, 4 Mar 1999, Jody Winston wrote: > I have a long running process that will be started by Zope. This > process has a CORBA interface that is implemented using ILU. I would > like to be able to asynchronously have this process generate data for > Zope. I do not know much about CORBA but you might find it helpful to check the ZClient library that comes with Zope. You can use ZClient to script Zope actions. In other words you can have your CORBA proccess running independently of Zope and whenever there are available data you can call Zope using ZClient and update whatever you need to. Pavlos From reedstrm@wallace.ece.rice.edu Thu Mar 4 23:08:29 1999 From: reedstrm@wallace.ece.rice.edu (Ross J. Reedstrom) Date: Thu, 4 Mar 1999 17:08:29 -0600 (CST) Subject: [Zope] special characters In-Reply-To: from John Eikenberry at "Mar 4, 99 02:26:18 pm" Message-ID: > it looks like: > > value=""bar, spam""> > > Obviously, if I then save changes, the value is gone altogether. > > Is there a way of automatically converting quotes and other special > characters to their escape codes (like the sqlquote method)? Grovelling through the source I find something called html_quote in lib/python/DocumentTemplate/DT_Util.py, so I tried: Which seems to so the right thing in the generated source. I'm not sure how to get at the equivalent method call, though. Does that help? (p.s. there's url_quote, as well) -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From raver@box.dust.za.net Thu Mar 4 23:16:22 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:16:22 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <36DDC443.EF76DAE0@inf.puc-rio.br>; from Paulo Eduardo Neves on Wed, Mar 03, 1999 at 08:22:43PM -0300 References: <19990303230207.A1292@RaVER.duck.org> <36DDC443.EF76DAE0@inf.puc-rio.br> Message-ID: <19990305001622.A479@RaVER.duck.org> On Wed, Mar 03, 1999 at 08:22:43PM -0300, Paulo Eduardo Neves wrote: > raver@box.dust.za.net wrote: > > > > Hello! > > > > Don't laugh at me - this is probably a very simple thing to do, but > > as I'm new to zope and can't find description of how this is accomplished > > I seek your help. I get data out of my database (MySQL) by querying, but > > how can I have data collected by forms showeled into the database? > > > > Appreciate any help I can get! > > > > Hi Sture, > try to use the P MySQL Input wizard in the contrib download area. It > will automatically create a insert sql method and a form for you. So you > can just follow the pattern. > Actually just after I sent the mail initially I spottet the Input Wizard at the zope site. It works just great. Thanks! > []s > -- > Paulo Eduardo Neves > PUC-Rio de Janeiro > Pager: Central: 292-4499 cod. 213 99 64 > ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html > From John Eikenberry Thu Mar 4 23:12:12 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 4 Mar 1999 15:12:12 -0800 (PST) Subject: [Zope] evaluating attribute values In-Reply-To: <013901be668f$89496e40$8725d2d1@rogue.jenkon-dev.com> Message-ID: On Thu, 4 Mar 1999, Robin Dunn wrote: > Sorry, your ideas don't work either. > > This time I get a NameError for mhost in the following code in > SendMailtag.py. mhost is never being created. > > > if self.mailhost: > mhost=md[self.mailhost] > elif self.smtphost: > mhost=MailBase() > mhost._init(localHost=gethostname(), smtpHost=self.smtphost, > smtpPort=self.port) > > mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, > self.subject) I think we're trying to assign a string where a mailhost object is needed. I'm not sure how to get around this, without an external method. Though with an external method, it'd be pretty simple: (warning: untested) def get_mailhost(self,property_name): """ gets the mailhost """ mailhost_id = getattr(self,property_name) return getattr(self,mailhost_id) Or something like this... [shrug] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From raver@box.dust.za.net Thu Mar 4 23:26:06 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Fri, 5 Mar 1999 00:26:06 +0100 Subject: [Zope] Data from forms into a database - how? In-Reply-To: <4.1.19990304161646.00bdb160@lisp.atmm.nl>; from Martijn Pieters on Thu, Mar 04, 1999 at 04:18:02PM +0100 References: <36DDC443.EF76DAE0@inf.puc-rio.br> <19990303230207.A1292@RaVER.duck.org> <4.1.19990304161646.00bdb160@lisp.atmm.nl> Message-ID: <19990305002606.B479@RaVER.duck.org> On Thu, Mar 04, 1999 at 04:18:02PM +0100, Martijn Pieters wrote: > At 15:50 04/03/99 , Philip Aylesworth wrote: > >2. The receiving doc (input_html) calls an SQL method (eg input_sql) with > >an in tag. > > > > > > > > > >If you do a select after your INSERT or UPDATE you can use it between the > >in tags, otherwise you can just display a message or do a redirect after it. > > If you don't do anything with the returned data, a #call will suffice: > > > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > Both answers are much appreciated. Things start to clear up, but ... As far as I understand zope it should also be possible to have forms send data directly to external methods. How do I go abouth to make the argument list in a python function so that it receives more than one 'form variable'. 1 is simple, but my form consists of 5. I get an error constructing the python function to take 5 arguments. How is the 5 'variables' sent to the method? How do I get hold of the values each store? Lotsa questions - probly me doing things the wrong way but - I'm learning:) Sture Lygren From jae@kavi.com Thu Mar 4 23:24:08 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 4 Mar 1999 15:24:08 -0800 (PST) Subject: [Zope] special characters In-Reply-To: Message-ID: On Thu, 4 Mar 1999, Ross J. Reedstrom wrote: > Grovelling through the source I find something called html_quote in > lib/python/DocumentTemplate/DT_Util.py, so I tried: > > > > Which seems to so the right thing in the generated source. I'm not sure > how to get at the equivalent method call, though. > > Does that help? Yes. This is just what I was looking for. This leads to a followup question/request for the group. 'manage_addProperty' calls various converters from ZPublisher.Converters to format the properties values. Shouldn't html_quote be used when formatting strings and text? This would be trivial to change. Would this cause some problem I don't realize? If not, I'd like to add this to the Collector for the next version. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From da@ski.org Fri Mar 5 00:55:11 1999 From: da@ski.org (David Ascher) Date: Thu, 4 Mar 1999 16:55:11 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem Message-ID: I have a standard_html_header/footer pair which works much like that on zope.org. The header inserts a in the left column. The sidebar DTML method is:

    (show links to sub-folders which don't have the 'hidden' property set). The above works fine in the toplevel folder. In the subfolder, however, nothing shows up, even though there are two folders which do qualify. I'd tried originally to have it be a DTML Document and change the expr to _.objectValues(['Folder']), but that doesn't work at all. What am I missing? --david From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 01:32:06 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 4 Mar 1999 20:32:06 -0500 (EST) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: On Thu, 4 Mar 1999, David Ascher wrote: > > > >

    > > > Check if your DTML properly closes all tags. I had something similar happening to me in a complicated DTML, when some condition failed to add a tag. BTW you can use ... Pavlos From jay@tomigaya.shibuya.tokyo.jp Fri Mar 5 17:47:53 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Fri, 05 Mar 1999 12:47:53 -0500 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> References: <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> At 09:11 AM 3/4/99 -0800, you wrote: >At 05:31 PM 3/4/99, Jay Ashton wrote: > >>In trying to figure out what's going on I've noticed a couple things. >>First, and I think most illustrative, if I try to add a new Z ODBC >>connection, none of my ODBC sources are showing up in the available list >>(except the default 'LocalServer, SQL Server') - whereas if I run my 1.9 >>Zope with ZopeHTTPServer all my ODBC connections show up just fine. >> >>Also, running my new 1.10.2 Zope/IIS with the faulty db connection side by >>side with the functioning 1.9/ZopeHTTPServer, I printed our the environment >>variables of both and noticed some differences - USERPROFILE's are Default >>User vs. Administrator, and the 1.9/ZopeHTTPServer contains variables not >>contained in the 1.10.2/IIS environ: HOMEPATH, TEMP, USERNAME, HOMEDRIVE, >>USERDOMAIN, PROMPT, LOGONSERVER, TMP. I attempted to set at least >>USERDOMAIN in the 1.10.2/IIS environ, with no luck. > >I think at least this part of your problem may be due to the fact that Zope >is running as a different user under IIS than it is under ZopeHTTPServer. >My guess is that it can't see your datasources since they weren't created >as 'System' datasources. Check under the windows ODBC control panel and >make sure your DSNs appear under 'system dsn', not 'user dsn'. > >-Amos Yes! This was exactly what was causing the error. I added a new 'System DSN' which then showed up under IIS, and now I've got a shiny new and perfectly functional Z ODBC Database Connection. Much thanks! - Jay PS - Don't know if this info is helpful, but I noticed that (after I set up a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my IIS/1.10.2 environ was flawed for whatever reason I would receive the cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick poking around I noticed that even after selecting a valid dsn, flaws such as trying to add a connection with an ID already in use, or entering an invalid connection string would give this 400 error - whereas in my ZopeHTTPServer/1.9 environ I would receive relevant and helpful error messages in such situations... Wish I knew more about how to help fix... From tjg@avalongroup.net Fri Mar 5 04:05:33 1999 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 04 Mar 1999 20:05:33 -0800 Subject: [Zope] ZMySQLDA References: Message-ID: <36DF580D.8D43DD51@avalongroup.net> John Eikenberry wrote: > 1. Get everything cleaned up (ie. back in the condition after first > untarring ZMySQL). > 2. Edit Setup.in, add -L to the end of the > last line. > 3. Proceed as usual (make -f Makefile.pre.in boot; make) Thanks to both John and Ronald for their kind assitance. I have made it past my original error and got everything compiled correctly. However, my general Newbieness is still coming back and biting me on the you-know-what. The instructions state that I should start python, and then Import the MySQL module to make sure it works. When I do, I get yet another error. Traceback (innermost last): File "", line 1, in ? ImportError: libmysqlclient.so.6: cannot open shared object file: No such file or directory The file does exist, so I am once again stumped. Thank you for your continued assitance. -- Stand Fast, tjg. =================================================== Timothy Grant VP Technology/CTO Avalon Technology Group tjg@avalongroup.net www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 07:40:21 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 02:40:21 -0500 (EST) Subject: [Zope] An interim solution for the FAQ Message-ID: Zopistas Until the SGML experts develop the FAQ format here is an interim solution: I have set up a Zope FAQ site at: http://www.gaaros.com:9673/FAQ

    FAQ Related
    How can one contribute to the FAQ?
    FAQ Related
    How can one contribute to the FAQ? Answer One Answer Two Tag case is not important. and are all equivalent as long as starting and ending tags match. If you want to include DTML or HTML in your answers or questions you need to include the ugly CDATA directive. If there is an error in the formating of your entry the parsing will fail and your entry will not be uploaded, but the entry will be logged. Structured Text is not supported because of the problems that Martijn Faassen discussed on the Zope List. If the section or question already exist in the FAQ then the entries will be appended to the already existing ones, otherwise the new categories will be created.]]>
    How can I download the whole FAQ? The whole FAQ can be exported by clicking on the "Export FAQ" in the navigation margin.
    DTML Scripting
    How do I pass a non-form variable to the next requested URL? ">]]> If everything works ok this e-mail will make the first entry to the FAQ! Pavlos From wmlph@d033.ml.uwcm.ac.uk Fri Mar 5 09:24:36 1999 From: wmlph@d033.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 5 Mar 1999 09:24:36 -0000 Subject: [Zope] ZMySQLDA Message-ID: <004d01be66e9$fd393330$5c773fc1@ml.uwcm.ac.uk> Where exactly is the file? find out by doing a locate 'libmysqlclient'. Let's assume that it is in /usr/local/mysql/lib. The easiest way to accomplish what you want is this. 1. cd /etc 2. vi ld.so.conf 3. Goto the end of the file and add a line that says '/usr/local/mysql/lib' replace this with the exact location of you libmysqlient.so.6 4. save the file 5. run 'ldconfig' 6. run 'sync' twice, this just makes sure all changes are written to the disk. This adds the mysql lib directory to the lib search path. HTH Phil ----- Original Message ----- From: Timothy Grant To: Zope Folk Sent: Friday, March 05, 1999 4:05 AM Subject: Re: [Zope] ZMySQLDA >John Eikenberry wrote: > >> 1. Get everything cleaned up (ie. back in the condition after first >> untarring ZMySQL). >> 2. Edit Setup.in, add -L to the end of the >> last line. >> 3. Proceed as usual (make -f Makefile.pre.in boot; make) > >Thanks to both John and Ronald for their kind assitance. I have made it >past >my original error and got everything compiled correctly. However, my >general >Newbieness is still coming back and biting me on the you-know-what. > >The instructions state that I should start python, and then Import the >MySQL >module to make sure it works. When I do, I get yet another error. > >Traceback (innermost last): > File "", line 1, in ? >ImportError: libmysqlclient.so.6: cannot open shared object file: No >such >file or directory > >The file does exist, so I am once again stumped. > >Thank you for your continued assitance. > > >-- >Stand Fast, > tjg. >=================================================== >Timothy Grant >VP Technology/CTO >Avalon Technology Group >tjg@avalongroup.net >www.avalongroup.net >(503) 246-3630 voice >(503) 246-3124 fax > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope From mj@antraciet.nl Fri Mar 5 09:54:01 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 10:54:01 +0100 Subject: [Zope] evaluating attribute values In-Reply-To: <011301be6685$71fbe650$8725d2d1@rogue.jenkon-dev.com> Message-ID: <4.1.19990305105227.00a69140@lisp.atmm.nl> At 22:24 04/03/99 , Robin Dunn wrote: >How can I evaluate a #var equivallent for setting a tag attribute value? > >For example, Zope doesn't like this: > > --> > >or this: > > > >(it tries to use smtpHost as the host name, instead of its value) > > >Help! > Why not use a MailHost Object? On that object you can then set the appropriate SMTP Host, even from DTML code.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:16:30 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:16:30 +0100 Subject: [Zope] special characters In-Reply-To: References: Message-ID: <4.1.19990305105646.00a90870@lisp.atmm.nl> At 00:24 05/03/99 , John Eikenberry wrote: >'manage_addProperty' calls various converters from ZPublisher.Converters >to format the properties values. Shouldn't html_quote be used when >formatting strings and text? This would be trivial to change. Would this >cause some problem I don't realize? If not, I'd like to add this to the >Collector for the next version. > Yes, because you sometimes (most of the time, really), want to have the raw input from the user. If you then use this raw input in HTML again, only *then* should you quote out any HTML. Besides, what if I want the data to be URL quoted? Or SQL quoted? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:18:50 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:18:50 +0100 Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: Message-ID: <4.1.19990305111759.00a68e60@lisp.atmm.nl> At 01:55 05/03/99 , David Ascher wrote: > > > >

    > > > >(show links to sub-folders which don't have the 'hidden' property set). > >The above works fine in the toplevel folder. In the subfolder, however, >nothing shows up, even though there are two folders which do qualify. > >I'd tried originally to have it be a DTML Document and change the expr to >_.objectValues(['Folder']), but that doesn't work at all. > >What am I missing? > Just a quick shot: Could it be that the value 'hidden' is aquired from somewhere else? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Fri Mar 5 10:38:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:38:33 +0100 Subject: [Zope] need help with IIS/ODBC In-Reply-To: <3.0.6.32.19990305124753.008f9d00@hito.eccosys.com> References: <3.0.5.32.19990304091105.01148d90@mail.aracnet.com> <3.0.6.32.19990304173128.008fc510@hito.eccosys.com> Message-ID: <4.1.19990305111949.00be5e30@lisp.atmm.nl> At 18:47 05/03/99 , Jay Ashton wrote: >PS - Don't know if this info is helpful, but I noticed that (after I set up >a valid System DSN) when my attempt to add a new Z ODBC DB Connection in my >IIS/1.10.2 environ was flawed for whatever reason I would receive the >cryptic 'HTTP Error 400 - Bad Request' from IIS. After some very quick >poking around I noticed that even after selecting a valid dsn, flaws such >as trying to add a connection with an ID already in use, or entering an >invalid connection string would give this 400 error - whereas in my >ZopeHTTPServer/1.9 environ I would receive relevant and helpful error >messages in such situations... Wish I knew more about how to help fix... > I did notice today that IIS 4.0 seems to be the cullprit. Whenever Zope returns a 400 error (like 'sorry, an error occured') IIS mangles that into the 400 Bad Request error. This means the traceback is also gone. *grmbl*. Just try and add a Principia Draft and not specify an ID, and compare this to the message returned when using ZopeHTTPServer. I think I'll switch to ZServer. Maybe this should go into the FAQ... I'll cc to ZDP BTW, I hereby retract the bug I reported to the Zope Collector regarding ZODBC connections being broken. I forgot to fill in the ID :|. IIS mangles the returned errormessage. What is the procedure for retracting bug reports? mail support@digicool.com? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 10:46:40 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 05:46:40 -0500 (EST) Subject: [Zope] Plenty of problems. Please Help Message-ID: Zopistas I have encountered problems mainly associated with ZServer and ZAP: I am using Zope-1.9.0 and the preconfigured Apache server to run my Zope site. Last night (a couple of hours ago!) I installed ZServer. It wouldn't run and I had to add the following to start.py to fix it: import sys,os sys.path.insert(0,os.path.join('..','lib','python')) Later on upon entering the management screens I noticed that the id of the top level folder dissappeared which caused the paths to my objects to change. With ZAP (the preconfigured apache) I would visit: http://www.gaaros.com:8080/Gaaros/ to get to the top level directory but with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of links that people have on my site. Switching back to ZAP I got the following error: Temporarily Unavailable

    The resource you requested is temporarily unavailable - please try again later. (102) failure during connect Seems like ZServer changed my root id from "Gaaros" to nothing. I called PickleDictionary on Data.bbb directly from python but I could not even see the subobjects. BTW can the Zope Data.bbb be accessed directly from PickleDictionary?? Also trying to shut ZServer from the control-panel results in a core dump. Ok enough for now, its very late and I cannot think anymore. If anybody has any clues about the root object id problem please let me know. Thanks Pavlos From mj@antraciet.nl Fri Mar 5 10:51:53 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 05 Mar 1999 11:51:53 +0100 Subject: [Zope] An interim solution for the FAQ In-Reply-To: Message-ID: <4.1.19990305115013.00a11100@lisp.atmm.nl> >To contribute to the FAQ you just have to send e-mail to me or to the >Zope list and include the word FAQ somewhere in the subject. >In the body of your e-mail message you should include (somewhere) an >XMLish faq entry as below: Hmmm.. could we change this the ZDP list? After all, that's what it is there for.. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 11:03:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 06:03:52 -0500 (EST) Subject: [Zope] An interim solution for the FAQ In-Reply-To: <4.1.19990305115013.00a11100@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > > Hmmm.. could we change this the ZDP list? After all, that's what it is > there for.. > No problem. Basically I filter all emails arriving in my personal account that contain FAQ in the Subject: field. As I am subscribed to all the Zope lists it doesn't really matter where you send it to. Pavlos From Paul@digicool.com Fri Mar 5 13:21:22 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:22 -0500 Subject: [Zope] RE: [ZDP] Re: [Zope] need help with IIS/ODBC Message-ID: <613145F79272D211914B0020AFF6401907BAE3@GANDALF> Martijn wrote: > What is the procedure for retracting bug reports? mail > support@digicool.com? That's a good solution for now. --Paul From Paul@digicool.com Fri Mar 5 13:21:27 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:27 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> Jody wrote: > My basic questions are: > o Can I have an ILU mainloop inside of Zope? (I really don't > care if I have to hack Zope or if I can use an external > method.) This is a poor answer (as most here know I don't have the mental horsepower to provide good responses :^), but...our _intention_ over time is to have "ZServer" allow objects to be published via PCGI, FastCGI, HTTP, FTP, and CORBA simultaneously. Ideally we'd get some kind of Python implementation into the Medusa handler layer. Obviously this approach has some serious drawbacks... Anyway, I realize that I'm not providing much of an answer, so sorry :^( --Paul From Paul@digicool.com Fri Mar 5 13:21:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:28 -0500 Subject: [Zope] zope ZGadfly DA buggy Message-ID: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Aaron wrote: > I'm sure these will be fixed soon, in fact I'd offer a patch > if I could > figure out how the thing works, but until then, Right, understood. We had to spend a lot of time figuring out Gadfly in order to host it inside Zope. Thus we labeled it "Demo". I imagine that it is best for everybody if we take Gadfly out of the base Zope and make it an external, no-warranty package like the MySQL support. --Paul From Paul@digicool.com Fri Mar 5 13:21:33 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 08:21:33 -0500 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <613145F79272D211914B0020AFF6401907BAE9@GANDALF> Tony wrote: > This is quite a long email where I ask a lot of questions about Zope, > but I hope you'll be lenient with me as I think I have a few hard > decisions to make! I appreciate your patience and taking the time to submit well-thought questions. > Some background: > I'm one of the web developers here, with a remit to implement a > curriculum database that can; > (a) support the Medical Faculty here > (b) get rolled out to three other Medical-related sites, each with > their own 'look and feel' > (c) possibly implement a University-wide curriculum database. Sounds fantastic! > The curriculum database is essentially delivering online study guides > (over 100 for each Faculty) whose source is originally from very well > marked up Word Documents. In addition, we include multiple choice This is really weird, it just reminded me of a (rather pathetic) dream I had last night. I dreamt that someone created a Python module that would read Word files. My DreamTV must be picking up the wrong channel. > questions, file upload of lecture notes etc. and some 'active' web > pages showing dynamical processes in medicine etc. The curriculum > database needs to be searchable across its entire breadth (although > initially restricted to the one site), so that students and faculty > can find occurences of, say, 'lung cancer' in lecture resources - > this is to plan for curriculum management, so that we can find out if > we're pushing subjects too much (or indeed, whether we're pushing a > subject at all!). We have other applications (nearly all of which are > written in Perl/PHP3) and want to seemlessly integrate them into the > curriculum database. > > Currently we do all our development work on Unix, using Apache > virtual web servers, MySQL as our database engine and Perl running as > a CGI for most of our applications. My input has been to introduce > PHP-3 (an Apache module with a bulit-in XML parser) and some XML > knowledge to the group. I've been looking at a scenario where our > study guides are converted in XML using Omnimark and held as static > XML documents in a database. They are then rendered into HTML/RTF and > put into static web directories. The student can run a program that > extracts elements from selected XML documents and creates a > customised set of HTML pages or RTF document that is built for them > 'on the fly'. My manager was a bit worried about all these static > pages lying about and to be honest so am I, but extracting the > relevant XML from a database to render into individual HTML pages > seems a massive drain on the system. I've been awfully interested in XML in the last few days. Can you describe what user-visible benefits PHP delivers due to its integrated XML parser? Additionally, we are working on Zope searching for a consulting project right now. Actually it is Zope Cataloging. It's still a consulting-only option, but plans are that eventually it will go "below the line". > I found out about Zope Monday morning, dl'ed it, installed it, got > one or two things working... and have been worried sick ever since. Ahhh, you too, eh? Did you have the dream about the chimp and the External Method where...oh, nevermind. :^) > My problem? is that I can see how Zope can do so much for us, but it > seems to need a hell of a gut-wrench to do so. I *think* I have some good news to report on this, but before I squawk, could you detail this gut-wrench a bit more? > There also doesn't seem to be an easy 'half-way' house to > move to Zope. > I've read a lot of the documentation, and am doing so constantly, but > the wisdom of the list would be very helpful indeed. > > The questions: > a) Is there a way for us to 'dump' the non-dynamic parts of a Zope > database into static HTML pages. This would act as a way to say to > the team "look, we have a parachute!". There have been a lot of suggestions on this one. Here's another one: a command-line program that takes everything out, such as the wget program. > b) Can I integrate with the Perl/PHP3 programs that we have (the Perl > programs are mainly .cgi, but the PHP3 programs are server-side > scripted, and as such are embedded into the HTML itself). This is so > that I can > c) Is there any way of using the XML documents that I'm creating into > the database and parsing them to produce either HTML or RTF output? I'd like to have this as well. I've been doing a lot of thinking about this lately. It is a bit more complicated than expected, though... > d) I know that this a terrible question to ask... but is Zope likely > to 'remain' open-source (we're worried about getting stuck with a > proprietary system)?. This is the main reason I replied. Having Zope as a free and Open Source(tm) platform is the heart of our business plan. A closed Zope would basically mean we start over completely as a different company. Thus, closing Zope is roughly equivalent to closing our company. With _that_ said, we still need to provide some assurances that we won't legislate the connection between Zope and DC. First, we are trying to keep some arm's length distance between zope.org and Digital Creations. We hope to formalize the way the community participates in the platform. We expect to make it lucrative for other businesses to participate. At the same time, we intend to pursue commercial opportunities atop the platform for vertical applications. Ultimately this is the same question put to Netscape regarding Mozilla during the AOL talks. The answer is simple: "The genie is out of the bottle." Since it is open sourced, Digital Creations must *earn* its stewardship of Zope. If we don't we'll become less relevant. Earning the community's enthusiasm is pretty simple, I think. Unfortunately we aren't doing a good job right now, though we are trying damn hard. But we'll keep trying... In the meantime, I'm absolutely ecstatic to see folks in the community step forward over the last month and lead the way. > e) Can I 'point' an Apache virtual server to run a Zope cgi (ie > dropping the :port requirment). Yep, the zope.org machine has five virtual hosts. > f) I'd like to have the option to have user authentication > information coming from a database - is this possible? Previously answered. > g) We have something like 200 main level directories holding the > study guides, each with up to 200 files in them - is that pushing the > Zope database too far? Ditto. > h) We also need resources such as QuickTime movies, images PowerPoint > slides etc. to be uploaded - would they sit in the database or can > they be held somewhere else (and what happens about file name > conflicts)? We put them in the database. The 3 Mb Zope binaries are served out of the database, the PDF files are served out of the database. This works so well I don't even think about it any more. --Paul From arw@ifu.net Fri Mar 5 13:42:59 1999 From: arw@ifu.net (Aaron Watters) Date: Fri, 05 Mar 1999 08:42:59 -0500 Subject: [Zope] zope ZGadfly DA buggy References: <613145F79272D211914B0020AFF6401907BAE7@GANDALF> Message-ID: <36DFDF63.6CB8C32F@ifu.net> Paul Everitt wrote: > Aaron wrote: > > I'm sure these will be fixed soon, in fact I'd offer a patch > > if I could > > figure out how the thing works, but until then, > > Right, understood. We had to spend a lot of time figuring out Gadfly in > order to host it inside Zope. Thus we labeled it "Demo". hmmm. That's interesting because it works just like oracle or it should,unless there are more bugs you haven't passed on to me. Let me know what caused the problems. Basically any non-conformance with the db-api is a bug. Please report it to the gadfly-rdbms list. > I imagine that it is best for everybody if we take Gadfly out of the > base Zope and make it an external, no-warranty package like the MySQL > support. Yes, this is fine. BTW, it might be hard for your existing customers to upgrade to Gadfly 1.0 since I think the db file formats are different (that's why it was called beta, so I could change things like that). I remain, Yours Truly, Aaron Watters From michel@digicool.com Fri Mar 5 14:48:24 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 09:48:24 -0500 Subject: [Zope] Plenty of problems. Please Help Message-ID: <613145F79272D211914B0020AFF6401907BAEB@GANDALF> 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_01BE6717.3B426460 Content-Type: text/plain > -----Original Message----- > From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu] > Sent: Friday, March 05, 1999 5:47 AM > To: zope@zope.org > Subject: [Zope] Plenty of problems. Please Help > > > Zopistas > > I have encountered problems mainly associated with ZServer and ZAP: > > I am using Zope-1.9.0 and the preconfigured Apache server to > run my Zope > site. Last night (a couple of hours ago!) I installed > ZServer. It wouldn't > run and I had to add the following to start.py to fix it: > I would suggest, first off, to use 1.10.2. ZServer is being developed against 1.10.2, and the latest Zap was tested and confirmed to work with it. > import sys,os > sys.path.insert(0,os.path.join('..','lib','python')) > Yes, there were discussions on this in the list about this problem. Someone needs to go back, rassle up the discussion and submit it to the ZDP. Looks like you found the fix. > Later on upon entering the management screens I noticed that > the id of the > top level folder dissappeared which caused the paths to my objects to > change. With ZAP (the preconfigured apache) I would visit: > http://www.gaaros.com:8080/Gaaros/ to get to the top level > directory but > with ZServer is: http://www.gaaros.com:8080/ which spoils all kind of > links that people have on my site. Hm. Is your Zap .pcgi file named Garros or does your RewriteRule look for Garros and then call PCGI? If so that is why you need to use Garros to reach the server. ZServer can server right out of Zope and doesn't have this problem. Your description makes this sould like it is a production site, I would not suggest running ZServer on a production machine as it is alpha and still buggy. > > Switching back to ZAP I got the following error: > > Temporarily Unavailable >

    > The resource you requested is temporarily unavailable - > please try again > later. > > > > (102) failure during connect > > > > Seems like ZServer changed my root id from "Gaaros" to nothing. This error comes from PCGI. It can't find your .cgi file so Zope isn't even being launched. Did your zap.conf file change (specificly the RewriteRule)? > I called PickleDictionary on Data.bbb directly from python > but I could not > even see the subobjects. BTW can the Zope Data.bbb be > accessed directly > from PickleDictionary?? > You can open a Data.bbb file into a PickleDictionary, but you won't see anything useful unless you really know what your doing. The Database itself is not a Pickle, it is a database of Pickles. I have attached a small 5K script that will be released with 1.10.3 which paruses the database and generates reports. In the future we are intending it to translate the entire database into XML for transport. (Note, we do not intend to use XML as the db format) > Also trying to shut ZServer from the control-panel results in > a core dump. > I suspect this is because you are using 1.9.0 > Ok enough for now, its very late and I cannot think anymore. > > If anybody has any clues about the root object id problem > please let me > know. > > Thanks > > Pavlos > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > ------ =_NextPart_000_01BE6717.3B426460 Content-Type: application/octet-stream; name="bbb.py" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bbb.py" """Read and (re-)format BoboPOS 2 database files=0A= """=0A= =0A= import struct, string, sys, time=0A= =0A= file__version__=3D3.0=0A= packed_version=3D'SDBMV'+struct.pack(">f",file__version__)=0A= =0A= def error(message, fatal=3D0, exc=3D0):=0A= if exc:=0A= sys.stderr.write('%s: %s' % (sys.exc_info()[0], = sys.exc_info()[1]))=0A= sys.stderr.write("\n%s\n" % message)=0A= if fatal: sys.exit(fatal)=0A= =0A= def _read_and_report(file, rpt=3DNone, fromEnd=3D0, both=3D0, = n=3D99999999, show=3D0):=0A= """\=0A= Read a file's index up to the given time.=0A= """=0A= =0A= file.flush()=0A= seek=3Dfile.seek=0A= read=3Dfile.read=0A= unpack=3Dstruct.unpack=0A= split=3Dstring.split=0A= join=3Dstring.join=0A= find=3Dstring.find=0A= seek(0,2)=0A= file_size=3Dfile.tell()=0A= gmtime=3Dtime.gmtime=0A= =0A= if fromEnd: pos=3Dfile_size=0A= else: pos=3Dnewpos=3Dlen(packed_version)=0A= =0A= tlast=3D0=0A= err=3D0=0A= while 1:=0A= if fromEnd:=0A= seek(pos-4)=0A= l=3Dunpack(">i", read(4))[0]=0A= if l=3D=3D0:=0A= b=3Dpos=0A= p=3Dpos-4=0A= while l=3D=3D0:=0A= p=3Dp-4=0A= seek(p)=0A= l=3Dunpack(">i", read(4))[0]=0A= =0A= pos=3Dp+4=0A= error("nulls skipped from %s to %s" % (pos,b)) =0A= p=3Dpos-l=0A= if p < 0:=0A= error('Corrupted data before %s' % pos)=0A= if show > 0:=0A= p=3Dpos-show=0A= if p < 0: p=3D0=0A= seek(p)=0A= p=3Dread(pos-p)=0A= else:=0A= p=3D''=0A= error(p,1)=0A= pos=3Dp=0A= else:=0A= pos=3Dnewpos=0A= =0A= seek(pos)=0A= h=3Dread(24) # 24=3Dheader_size=0A= if not h: break=0A= if len(h) !=3D 24: break=0A= oid,prev,start,tlen,plen=3Dunpack(">iidii",h)=0A= if (prev < 0 or prev >=3D pos or start < tlast=0A= or plen > tlen or plen < 0 or oid < -999):=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= =0A= newpos=3Dpos+tlen=0A= if newpos > file_size:=0A= error('Truncated data record at %s' % pos)=0A= if show > 0: error(read(show))=0A= err=3D1=0A= break=0A= =0A= seek(newpos-4)=0A= if read(4) !=3D h[16:20]:=0A= __traceback_info__=3Dpos, oid,prev,start,tlen,plen=0A= error('Corrupted data record at %s' % pos)=0A= if show > 0:=0A= seek(pos+24)=0A= error(read(show))=0A= err=3D1=0A= break=0A= =0A= tlast=3Dstart-100=0A= =0A= if rpt is None: continue=0A= n=3Dn-1=0A= if n < 1: break=0A= =0A= seek(pos+24)=0A= p=3Dread(plen)=0A= t=3Dsplit(read(tlen-plen-28),'\t')=0A= tname, user =3D (t+[''])[:2]=0A= t=3Djoin(t[2:],'\t')=0A= start,f=3Ddivmod(start,1)=0A= y,m,d,h,mn,s=3Dgmtime(start)[:6]=0A= s=3Ds+f=0A= start=3D"%.4d-%.2d-%.2d %.2d:%.2d:%.3f" % (y,m,d,h,mn,s)=0A= rpt(pos, oid,start,tname,user,t,p)=0A= =0A= if err and both and not fromEnd:=0A= _read_and_report(file, rpt, 1, 0, n, show)=0A= =0A= =0A= =0A= def none(*ignored): pass=0A= def positions(pos, *ignored): sys.stdout.write("%s\n" % pos)=0A= def tab_delimited(*args):=0A= sys.stdout.write("%s\n" % string.join(args[:-1],'\t'))=0A= =0A= =0A= reports=3D{=0A= 'none': none,=0A= 'positions': positions,=0A= 'tab_delimited': tab_delimited,=0A= }=0A= =0A= if __name__=3D=3D'__main__':=0A= import getopt=0A= =0A= usage=3D"""Usage: %s [options] filename=0A= =0A= where filename is the name of the database file.=0A= =0A= options:=0A= =0A= -r report=0A= =0A= Specify an output report.=0A= =0A= The valid reports are:=0A= %s=0A= =0A= -e=0A= =0A= Read the file from back to front=0A= =0A= -l n=0A= =0A= Show only n records=0A= =0A= -b=0A= =0A= If an error is encountered while reading from front,=0A= ret reading from the back.=0A= =0A= -s n=0A= =0A= If a corrupted data record is found, show the first n=0A= bytes of the corrupted record.=0A= =0A= """ % (sys.argv[0], string.join(reports.keys(), ',\n\t\t'))=0A= =0A= try:=0A= opts, args =3D getopt.getopt(sys.argv[1:],'r:ebl:s:')=0A= filename,=3Dargs=0A= except: error(usage,1,1)=0A= =0A= rpt=3Dnone=0A= fromEnd=3D0=0A= both=3D0=0A= n=3D99999999=0A= show=3D0=0A= for o, v in opts:=0A= o=3Do[1:]=0A= if o=3D=3D'r':=0A= try: rpt=3Dreports[v]=0A= except: error('Invalid report: %s' % v, 1)=0A= elif o=3D=3D'l':=0A= try: n=3Dstring.atoi(v)=0A= except: error('The number of records, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D's':=0A= try: show=3Dstring.atoi(v)=0A= except: error('The number of bytes, %s, shuld ne an = integer'=0A= % v, 1)=0A= elif o=3D=3D'e':=0A= fromEnd=3D1=0A= elif o=3D=3D'b':=0A= both=3D1=0A= else:=0A= error('Unrecognized option: -%s' % o, 1)=0A= =0A= try: file=3Dopen(filename)=0A= except: error('Coud not open %s' % filename,1,1)=0A= =0A= _read_and_report(file, rpt, fromEnd, both, n, show)=0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= ------ =_NextPart_000_01BE6717.3B426460-- From jody@ldeo.columbia.edu Fri Mar 5 15:18:45 1999 From: jody@ldeo.columbia.edu (Jody Winston) Date: Fri, 5 Mar 1999 10:18:45 -0500 Subject: [Zope] Using Zope with CORBA (new user question) In-Reply-To: <613145F79272D211914B0020AFF6401907BAE6@GANDALF> (message from Paul Everitt on Fri, 5 Mar 1999 08:21:27 -0500) Message-ID: <199903051518.KAA01296@hog> >>>>> "Paul" == Paul Everitt writes: Paul> Jody wrote: >> My basic questions are: >> o Can I have an ILU mainloop inside of Zope? (I really don't >> care if I have to hack Zope or if I can use an external >> method.) Paul> This is a poor answer (as most here know I don't have the Paul> mental horsepower to provide good responses :^), but...our Paul> _intention_ over time is to have "ZServer" allow objects to Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA Paul> simultaneously. Paul> Ideally we'd get some kind of Python implementation into the Paul> Medusa handler layer. Obviously this approach has some Paul> serious drawbacks... Paul> Anyway, I realize that I'm not providing much of an answer, Paul> so sorry :^( Would it be worthwhile to start looking at and hacking ZServer? Jody From michel@digicool.com Fri Mar 5 15:35:50 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 10:35:50 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <613145F79272D211914B0020AFF6401907BAEE@GANDALF> > -----Original Message----- > From: Jody Winston [mailto:jody@ldeo.columbia.edu] > Sent: Friday, March 05, 1999 10:19 AM > To: Paul@digicool.com > Cc: zope@zope.org > Subject: RE: [Zope] Using Zope with CORBA (new user question) > > > >>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? > It's allways worth while! :) I think the point paul was trying to push is that we are interesting in publishing our objects over various transport protocols. If you want to look in this direction, probably the best idea would be to write a Medusa handler. Check out Sam's site at: http://www.nightmare.com/medusa There currently exists an ftp and http medusa handler for Zope, which you can look at in the latest ZServer alpha release availabe at zope.org. I'm not sure is there is a Medusa CORBA handler or not, I suspect not, but maybe there's some type of CORBA out there written in Python? -Michel > Jody > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jeffrey@Digicool.com Fri Mar 5 16:02:55 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 05 Mar 1999 11:02:55 -0500 Subject: [Zope] Using Zope with CORBA (new user question) Message-ID: <199903051602.IAA27197@zope.codeit.com> >>>>>> "Paul" == Paul Everitt writes: > > Paul> Jody wrote: > >> My basic questions are: > >> o Can I have an ILU mainloop inside of Zope? (I really don't > >> care if I have to hack Zope or if I can use an external > >> method.) > > Paul> This is a poor answer (as most here know I don't have the > Paul> mental horsepower to provide good responses :^), but...our > Paul> _intention_ over time is to have "ZServer" allow objects to > Paul> be published via PCGI, FastCGI, HTTP, FTP, and CORBA > Paul> simultaneously. > > Paul> Ideally we'd get some kind of Python implementation into the > Paul> Medusa handler layer. Obviously this approach has some > Paul> serious drawbacks... > > Paul> Anyway, I realize that I'm not providing much of an answer, > Paul> so sorry :^( > > Would it be worthwhile to start looking at and hacking ZServer? Yes. ZServer really restores Zope's original intent from the Bobo days: publishing objects through a variety of protocols. I think ILU support was once attempted back in those days. However, a Bobo app at that time could only have one publishing mechanism (ie, CGI, PCGI, FastCGI, ILU, etc...). ZServer allows for multiple publishing mechanisms in the same application, allowing access to the objects through the web, through FTP, or through any other protocol developed for ZServer/Medusa. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From rocon@pivot.net Fri Mar 5 16:57:34 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 11:57:34 -0500 Subject: [Zope] Documents for web and paper Message-ID: <012c01be6729$74f6bd40$0201a8c0@hawkeye.bob.oc> I'm looking for the best way to store and retrieve documents with these requirements: SPECS *Easy storage and retrieval on the web *Pretty printing on paper *Easy simple collaboration (no checkout) *One BASE format for both web and paper *Base format *could be* edited with Word or WP *Preserve text markup: bullets, bolds, underlines, tables, graphics, links...etc. *Search by keyword *Search by full text ******* I look forward to comments and Ideas on implementing this in ZOPE Perhaps some of this has been solved already and I don't know it. EXAMPLE: Say you have a small book/article that is fully contained in a WORD or WP file. It has chapters and sections: Chap1 Plants Section1: Trees Section2: Flowers Section3: Vegetables Section4: Fruits Chap2 Animals Section1: Dogs Section2: Cats Section3: Fish Section4: Humans Ok, as a paper document in the word processor it is laid out *nice* with a new page for each chapter, section, and subheadings for groups of paragraphs in each section. It prints *nice* and can even have a table of contents and index. For the web, the whole book could be one LONNNG web page. Ugly and it doesn't work well. Ideally on the web each chapter and section would be navigable with a left hand frame like table a la http://www.zope.org. Then sections can be placed on separate pages on the right. This means that the one source document becomes multiple html "files" on the web site. *Tree Navigation Ok, for tree navigation like http://localhost:9673/QuickStart Each Chapter and Section becomes a folder and the text from each section is contained in the same named: "dtContent" as in ...9673/QuickStart/Outline/Applications/External/dtContent While the tree is nice, and separate html "files" make the website better, *REVISIONS with TWO OUTPUTS How do you do: Make revisions to the source document in word/WP and have it FLOW automatically to html format or tree format for the web? *Perhaps* XML could come to the rescue as holy grail to help solve this problem??? I understand the idea of mark up but how does it solve the problem of two outputs? Can you have a template that automatically chops up the SOURCE into the appropriate folders/files etc and feeds it to ZOPE? Can this or another template reformat for pretty printing including page numbers that are updated based on the planned printing? Maybe I need to reconsider how documents are stored as source, i.e. not Word. And if not, what tool or mechanism would be best? Maybe the NATIVE source could flow to Word/WP or via a template making for pretty printing. Maybe for simple stuff, the source could be simple text entered on a webpage or sent by e-mail with *simple* markup and parsed automatically? *KEYWORD SEARCH Ok, on the web (and Zope), the benefit is it's searchability: Do we "hide" keywords in the source somehow and in addition use Chapter and Section titles as Keywords? Search for: "dogs" gives a result of Chapter 2 Section 1 in the example as one entry. Additional entries might be lessor cross references such as a keyword "dog" in the Section 4 humans as "man's best friend". *FULL TEXT SEARCH Ok so we search for the word "Daisy" and this word is found in the text in sections: Flowers, Dogs (as a pet name) and Humans (as a proper name). The result is then three line entries that take you to the words. *Zope IDEAS for this? I assume that it would be best to store the documents and source in the ZOPE database rather than an external datasource. Thanks for any input on this -bobo connor bob@rocnet.com From da@ski.org Fri Mar 5 18:02:28 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:02:28 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem In-Reply-To: <4.1.19990305111759.00a68e60@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 01:55 05/03/99 , David Ascher wrote: > > > > > > > >

    > > > > > > > >(show links to sub-folders which don't have the 'hidden' property set). > > > >The above works fine in the toplevel folder. In the subfolder, however, > >nothing shows up, even though there are two folders which do qualify. > > > >I'd tried originally to have it be a DTML Document and change the expr to > >_.objectValues(['Folder']), but that doesn't work at all. > > > >What am I missing? > > Just a quick shot: Could it be that the value 'hidden' is aquired from > somewhere else? Nah -- getting rid of the hidden test doesn't change a thing. Sorry I confused the issue with that. I think my problem has to do with my lack of understanding of the interactions between acquitision, DTML Methods, DTML docs and namespaces. I just noticed that the standard html headers and footers are methods. That means, if I understand the earlier email, that the default namespace in them is that of the thing they are contained in. So, in my case, the top-level Folder. Now, in the sub-folder, the standard html headers and footers are acquired from the toplevel folder. The standard header does a #var sidebar, which also lives in the toplevel folder, and that gets included fine. Within that sidebar, I'm not sure what the default namespace is -- my fuzzy understanding makes me think that it should be either: a) the / Folder (the 'physical' container for the DTMLMethods) b) the sub Folder (the container for the thing which did the aqcuisition, namely the index_html DTML Document. Problem is, neither of these makes sense given what I'm seeing. If it was a), I'd expect the 'objectValues()' call to return the same list of the subfolders of the toplevel folder every time. If it was b), I'd expect the thing to work and give me the subfolders of the subfolder. Let me try to summarize the hierarchy: / - index_html (#var standard_html_header...#var standard_html_footer) - standard_html_header (#var sidebar) - standard_html_footer - sidebar SubFolder1/ SubFolder2/ - index_html (#var standard_html_header... #var standard_html_footer) - SubSubFolder1 - SubSubFolder2 The top sidebar shows SubFolder1 and SubFolder2, the /SubFolder2 sidebar doesn't show a thing. --david PS: Thanks to pavlos for pointing out the #unless tag. PS: For some reason the title of the root folder is "Zope" in the properties tag but doesn't show up in the tree or in the pathlinks. Anyone have a suggestion? From mbernstein@profitscape.net Fri Mar 5 18:10:27 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 10:10:27 -0800 Subject: [Zope] Simple DTML Method/Acquisition problem References: Message-ID: <36E01E13.6F8A4FB4@profitscape.net> David Ascher wrote: > > I have a standard_html_header/footer pair which works much like that on > zope.org. > > The header inserts a in the left column. The > sidebar DTML method is: > > > > >

    > > > > (show links to sub-folders which don't have the 'hidden' property set). > > The above works fine in the toplevel folder. In the subfolder, however, > nothing shows up, even though there are two folders which do qualify. Try: This will call the method using the root folders' namespace, thereby showing all qualifiying subfolders regardless of where the method is called from. You might have to modify your method to construct absolute URL's. Michael Bernstein. From da@ski.org Fri Mar 5 18:52:10 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 10:52:10 -0800 (Pacific Standard Time) Subject: [Zope] Simple DTML Method/Acquisition problem + bug report In-Reply-To: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: On Fri, 5 Mar 1999, Michael Bernstein wrote: > Try: > > This will call the method using the root folders' namespace, thereby > showing all qualifiying subfolders regardless of where the method is > called from. You might have to modify your method to construct absolute > URL's. Thanks! What I actually wanted was sidebar(PARENTS[0], REQUEST), but you pointed me in the direction I needed. Now I have to understand it, but that's much easier with working code. This also led me to find a bug. I was wondering why the REQUEST parameter was needed, so I tried to remove it. The next time I loaded a page calling this code, the ZServer process died with the Win32 equivalent of a segfault. Is it just me? I don't dare try it on another Zope server =). [Zope 1.10.2, latest ZServer, win32, NT4SP3] --david From jae@kavi.com Fri Mar 5 18:52:13 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 5 Mar 1999 10:52:13 -0800 (PST) Subject: [Zope] special characters In-Reply-To: <4.1.19990305105646.00a90870@lisp.atmm.nl> Message-ID: On Fri, 5 Mar 1999, Martijn Pieters wrote: > At 00:24 05/03/99 , John Eikenberry wrote: > >'manage_addProperty' calls various converters from ZPublisher.Converters > >to format the properties values. Shouldn't html_quote be used when > >formatting strings and text? This would be trivial to change. Would this > >cause some problem I don't realize? If not, I'd like to add this to the > >Collector for the next version. > > > > Yes, because you sometimes (most of the time, really), want to have the raw > input from the user. If you then use this raw input in HTML again, only > *then* should you quote out any HTML. Besides, what if I want the data to > be URL quoted? Or SQL quoted? Yeah, I already figured out that the problem was actually in the OFS/properties.dtml file (I moved over to the zope-dev list, as I realized this thread really belongs there). In properties.dtml the 'string' type is listed twice: "> "> 'string' needs to be removed from that first list. I'll be submitting this to the Collector. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From prudek@sol.cz Fri Mar 5 19:14:01 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 05 Mar 1999 20:14:01 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <36E01E13.6F8A4FB4@profitscape.net> Message-ID: <36E02CF9.F79E416F@sol.cz> I'm new to Zope. I'm very excited about it's potential, but my first impression is that I will need to master Python in order to use it. I believe Python is an excellent language, but I do not have the time to learn it. Several questions about this: - Can I achieve anything useful in Zope without touching Python? I can learn DTML, of course. - if so, what I can and what I cannot do without Python? - could I, for instance, do something like slashdot.org without Python? - is there a plan to give Zope features (or ready-made modules/factories) that would completely eliminate the need to work with Python (for certain tasks that can be automated or turned into templates)? -- Milos Prudek From jbb@spyderlab.com Fri Mar 5 19:45:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 14:45:11 -0500 (EST) Subject: [Zope] bug with SQL methods? Message-ID: Hi, I'm re-posting to this list because it probably is more suited here... thanks in advance, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com ---------- Forwarded message ---------- Date: Fri, 5 Mar 1999 12:11:02 -0500 (EST) From: Jordan B. Baker To: zope-dev@zope.org Subject: [Zope-dev] SQL methods q: Hi guys: I'm trying to write a SQL method though, and its giving me an error when I try to test it.. Error, exceptions.TypeError: keyword parameter redefined SQL used: Could not render the query template! The query I was using: SELECT searches.engineID as engine, queries.param as query, MAX(searches.timestamp) AS time, searches.position AS position, MIN(lastsearch.timestamp) AS lastupdate, lastsearch.position AS lastsearch, searches.URL as URL, 'NA' as change, engines.graphic as engine_gfx FROM searches LEFT JOIN searches as lastsearch USING (queryID,engineID), engines, queries WHERE lastsearch.timestamp BETWEEN AND AND searches.timestamp BETWEEN AND AND queries.clientID = AND queries.queryID = searches.queryID AND engines.engineID = searches.engineID AND searches.timestamp != lastsearch.timestamp GROUP BY searches.engineID, searches.queryID ORDER BY searches.engineID ASC, searches.queryID ASC, searches.timestamp ASC, lastsearch.timestamp DESC ; Any ideas what I could be doing wrong? BTW, Zope is great! I've been kinda messing around with it for a while, also checking out PHP3 and other UNIX-based scripting languages and I've very impressed. As soon as I figure out what is causing this I plan to write something 'cool' with Zope :) TIA, -jordan. _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev From rocon@pivot.net Fri Mar 5 20:49:30 1999 From: rocon@pivot.net (Robert OConnor) Date: Fri, 5 Mar 1999 15:49:30 -0500 Subject: [Zope] XML discussions Message-ID: <00be01be6749$aeea0b40$0201a8c0@hawkeye.bob.oc> Hi Paul and Zopesters, Paul writes in the thread: [Zope] Some tough questions about zope... >I've been awfully interested in XML in >the last few days. Can you describe what >user-visible benefits PHP delivers due to its integrated >XML parser? I found a great description about XML in: "20 Questions on XML" http://builder.com/Authoring/Xml20/index.html On Paul's Zope roadmap: (Jan 18th) http://www.zope.org/Information/Roadmap "(2) XML. Zope is a great fit for XML, even better with the machinery from Tabula going in. We also see XML becoming the basis for other initiatives, such as WebDAV and RDF. However, we just can't squeeze out the time to dive in deep. Rather, we'd love to see more community progress like that which popped up this weekend." I did a search for postings that had "XML" in the subject and found 55 messages in ~6 threads between Jan 8th and Feb 2nd Other messages have "XML" in the body. Hopefully we can get some OUTLINE of how ZOPE and XML can work together. --- A framework for further discussions. -bobo connor bob@rocnet.com From michel@digicool.com Fri Mar 5 21:07:09 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:07:09 -0500 Subject: [Zope] Python neccessary to work with Zope? Message-ID: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Friday, March 05, 1999 2:14 PM > To: zope@zope.org > Subject: [Zope] Python neccessary to work with Zope? > > > I'm new to Zope. I'm very excited about it's potential, but my first > impression is that I will need to master Python in order to use it. I > believe Python is an excellent language, but I do not have the time to > learn it. Several questions about this: > You do not need to know a single line of Python to use Zope. But learning Python is a pleasure, not a chore. > - Can I achieve anything useful in Zope without touching Python? I can > learn DTML, of course. > You can do just about anything with DTML. In fact, most 'Products' (read that, 'Zope Extnesions') are mostly DTML. If your not writing a Product then you can stay entirely in the domain of DTML. DTML does use a small bit of Python in itself, these are called expressions. For example, if you had an integer called num you could use: to 'render' it in your web page. To get num + 1 you would use: The contents of "" is a python expression. But it's not a python program. If we didn't use Python we'd of had to have come up with some other language like way of doing this that you'd have had to learn anyway. > - if so, what I can and what I cannot do without Python? > Python is used for the following: To write Products. This is hard core development. To write External Methods, which are used to hook special or wierd/pre-existing python functions into Zope. This is rarely necesary. > - could I, for instance, do something like slashdot.org > without Python? > Yes. There may be a 1% slice of something like slashdot needing a bit of Python. But remember, slashdot is a huge application written entirely in Perl. > - is there a plan to give Zope features (or ready-made > modules/factories) that would completely eliminate the need > to work with > Python (for certain tasks that can be automated or turned into > templates)? > Yep. These are called Zope Classes. They are still in-house here at Digital Creations because we are still debugging/figuring them out. A Zope Class lets your create your own objects that can be added into Zope without writing Python code. > > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From michel@digicool.com Fri Mar 5 21:10:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 5 Mar 1999 16:10:36 -0500 Subject: [Zope] Simple DTML Method/Acquisition problem + bug report Message-ID: <613145F79272D211914B0020AFF6401907BAF0@GANDALF> > -----Original Message----- > From: David Ascher [mailto:da@ski.org] > Sent: Friday, March 05, 1999 1:52 PM > To: Michael Bernstein > Cc: The Zope Group > Subject: Re: [Zope] Simple DTML Method/Acquisition problem + > bug report > > > On Fri, 5 Mar 1999, Michael Bernstein wrote: > > > Try: > > > > This will call the method using the root folders' namespace, thereby > > showing all qualifiying subfolders regardless of where the method is > > called from. You might have to modify your method to > construct absolute > > URL's. > > Thanks! What I actually wanted was sidebar(PARENTS[0], > REQUEST), but you > pointed me in the direction I needed. Now I have to > understand it, but > that's much easier with working code. > > This also led me to find a bug. I was wondering why the > REQUEST parameter > was needed, so I tried to remove it. The next time I loaded a page > calling this code, the ZServer process died with the Win32 > equivalent of a > segfault. Is it just me? I don't dare try it on another > Zope server =). > [Zope 1.10.2, latest ZServer, win32, NT4SP3] > Could you submit this bug report to the Collector? http://www.zope.org/Collector Thanks, -Michel > --david > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From jbb@spyderlab.com Fri Mar 5 21:19:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:19:14 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: More information on my front.. I've been fiddling around a bit trying to find out what is going wrong.. I'm using ZServer/Zope 1.10.2 with ZMySQLDA that I just downloaded 2 days ago. The traceback is as follows: line 384 of DA.py -- __call__ reads: query=apply(self.template, (p,), argdata) I added a bit of debugging code and was able to a take a look at some of the data being passed around: argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', 'pstart': '1', 'sql_quote__': } This is starting to confuse me because simple queries work fine within Zope, its only the query that I posted in my previous message that seems to be fowling things up. I'll keep slagging away until either I figure it out or someone tells me its not something I've done and that I should submit it to the Collector :) -jordan. From Paul@digicool.com Fri Mar 5 21:28:56 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 5 Mar 1999 16:28:56 -0500 Subject: [Zope] Can Zope*src/lib/python be copied to .../python1.5/sit e-packages? Message-ID: <613145F79272D211914B0020AFF640190D9E61@GANDALF> Skip writes: > Can the contents of Zope's lib/python directory safely be > copied to the > site-packages directory of the Python install directory? I asked Jim, who replied: "As far as I know, they can. Note, however, that it will be important for INSTANCE_HOME to be defined." --Paul From Tony.McDonald@newcastle.ac.uk Fri Mar 5 21:37:08 1999 From: Tony.McDonald@newcastle.ac.uk (Tony.McDonald@newcastle.ac.uk) Date: Fri, 5 Mar 1999 21:37:08 +0000 (GMT) Subject: [Zope] DatabaseError: Corrupted data record... Message-ID: <199903052137.VAA24776@finan.ncl.ac.uk> Hi all, Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... "...there is one small problem!" (MPaTHG) My database has got nuked. I don't know how it happened, but this is the tail of my serve.errors file File "lib/python/OFS/Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "lib/python/BoboPOS/PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "lib/python/BoboPOS/SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "lib/python/BoboPOS/SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "lib/python/BoboPOS/SimpleDB.py", line 1365, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1087646 Trying to 'start' the server again just results in the serve.errors file being touched. As you'll know from my 'Touch Questions' post, I'm a novice in Zope (but I've bought the Lutz 'Programming Python' book, have two more on order and have been reading and rereading the docs all week...so I'm learning fast), but this has me stumped. I haven't got too far into my Zope 'career' yet, so I won't be devastated if I have to replace the database from scratch (how do you do that by the way?), but I'm sorta worried about the way that all my work seems inaccessible to me now. any and all help would be ... appreciated. tone. From jbb@spyderlab.com Fri Mar 5 21:45:56 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 16:45:56 -0500 (EST) Subject: [Zope] bug with SQL methods? (addtl info) In-Reply-To: Message-ID: Continuing this great tradition of responding to my own posts :) On Fri, 5 Mar 1999, Jordan B. Baker wrote: > argdata was {'sql_delimiter': '\000', 'client': '1', 'pend': '1', > 'pstart': '1', 'sql_quote__': } > This is starting to confuse me because simple queries work fine within > Zope, its only the query that I posted in my previous message that seems > to be fowling things up. Okay, now it makes sense. Is 'client' a reserved variable? If so, perhaps a warning would be nice if you attempt to use a reserved variable as an argument to a SQL method. Argh.. so I got that fixed and now I am getting another traceback when testing the SQL method! I can't believe it :) Here it is: Error, exceptions.KeyError: unhandled -jordan. From da@ski.org Fri Mar 5 21:45:06 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 13:45:06 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables Message-ID: I need to detect not only whether a list is empty (that's easy with the #if tag for example), but also whether all of the elements in the list have a property. In Python, one could do this with something like: empty = 1 for element in theList: if not element.hidden: empty = 0 print element if theList and not empty: print "no non-hidden elements" What's the equivalent DTML? Can one create a variable in DTML? Can anyone tell I miss my Python when writing DTML? =) From tismer@appliedbiometrics.com Fri Mar 5 22:05:10 1999 From: tismer@appliedbiometrics.com (Christian Tismer) Date: Fri, 05 Mar 1999 23:05:10 +0100 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> Message-ID: <36E05516.FBCEC2BE@appliedbiometrics.com> Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. Oh my :-) ... > DatabaseError: Corrupted data record at 1087646 I didn't try such a thing before. But because the Zope database is always only appended to (if I'm understanding right), you might try to truncate the file upto that offset and see if it is working again? (please keep a backup :-) ciao - chris -- Christian Tismer :^) Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home From da@ski.org Fri Mar 5 22:10:22 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 14:10:22 -0800 (Pacific Standard Time) Subject: [Zope] DTML Method truth value Message-ID: The following method tests false (correctly): But if I change it to: then it tests true (note that nothing happens in the #in block). Is this correct behavior or one for the Collector? --david From rwolff@noao.edu Fri Mar 5 22:11:30 1999 From: rwolff@noao.edu (Richard Wolff) Date: Fri, 5 Mar 1999 15:11:30 -0700 Subject: [Zope] Authentication and Zope.cgi Message-ID: <199903052211.PAA16445@daikon.tuc.noao.edu> I'm in need of a bit of clarification about how Zope starts up and when it decides to do its authentication and why. I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request mymachine/Zope/manage I do indeed get the normal management screen. I haven't been asked in some time for a password, which suprises me; the 'access' file exists and (but?) hasn't changed since installation. I'd really like the root folder to say something other than Zope, so I added to Apache a second rewrite rule that substitues 'mpg' for Zope in the two places (restarted Apache), and copied Zope.cgi in cgi-bin to mpg.cgi . These two cgi files are identical so they point to the same /var directory. If I try mymachine/mpg/manage , I get an authorization failed box, and upon clicking 'retry', I get the usual authentication box with the correct 'access' user entered. I type in the correct password and the system fails again ("You are not authorized to use this system. Username and password are not correct"). So, I'm very curious as to what's going on ... and I wouldn't mind learning how to change the top of the root name as well. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 5 22:21:54 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 5 Mar 1999 17:21:54 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > What's the equivalent DTML? Can one create a variable in DTML? ... > > Can anyone tell I miss my Python when writing DTML? =) > I try hard to do everything in DTML but ... python is such a breeze. OTH if you have most of your code written in DTML it is so easy to create similar products and move them around. Pavlos From jim@digicool.com Fri Mar 5 22:31:11 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:31:11 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: Message-ID: <36E05B2F.97F986C2@digicool.com> Tony.McDonald@newcastle.ac.uk, Tony.McDonald@newcastle.ac.uk wrote: > > Hi all, > Firstly, I'd like to thank everyone for the detailed replies I got to my 'Tough Questions' post. > I'll reply individually to you all and try to answer some of the questions that *I* got asked, but as 'they' say... > > "...there is one small problem!" (MPaTHG) > > My database has got nuked. What version of Zope are you using? What OS? Were you using NFS? MySQL? Please send *in private mail* me a gzipped tar file (or Zip file) containing the Data.* files from your var directory. Any other thoughts you might have regarding events leading up to this would be helpful. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Fri Mar 5 22:33:07 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 05 Mar 1999 17:33:07 -0500 Subject: [Zope] DatabaseError: Corrupted data record... References: <199903052137.VAA24776@finan.ncl.ac.uk> <36E05516.FBCEC2BE@appliedbiometrics.com> Message-ID: <36E05BA3.D5125CF@digicool.com> Christian Tismer wrote: > > Tony.McDonald@newcastle.ac.uk wrote: > > > > > DatabaseError: Corrupted data record at 1087646 > > I didn't try such a thing before. But because the Zope > database is always only appended to (if I'm understanding right), > you might try to truncate the file upto that offset and see > if it is working again? (please keep a backup :-) Good point. I should have mentioned that as a quick recovery, especially if the location is near the end of the file. But please send me the file before you truncate it. :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From da@ski.org Sat Mar 6 00:35:44 1999 From: da@ski.org (David Ascher) Date: Fri, 5 Mar 1999 16:35:44 -0800 (Pacific Standard Time) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > On Fri, 5 Mar 1999, David Ascher wrote: > > > What's the equivalent DTML? Can one create a variable in DTML? > > > ... > Hmm. I want to create a variable whose value is given by another value. Doing: )"--> doesn't make it through the parser. I've tried adding various quotes to no effect. I think I'm going to work on understanding ExternalMethods -- this syntax is not made for me. =) --david From jbb@spyderlab.com Sat Mar 6 00:58:51 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 5 Mar 1999 19:58:51 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Fri, 5 Mar 1999, Jordan B. Baker wrote: > Error, exceptions.KeyError: unhandled > > Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? Well, I was looking at the code for the MySQLmodule and it appears that it has problems handling some fields. This appears to be a limitation of the MySQLmodule. It currently does not handle the LONGLONG datatype longer timestamps use. At least I assume its the LONGLONG that is messing it up. I haven't looked into that much detail to be honest. I'm not quite sure if this is something that should be included in the FAQ, or considered a known bug, or submitted to the Collector? Thanks, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mbernstein@profitscape.net Sat Mar 6 01:37:26 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 05 Mar 1999 17:37:26 -0800 Subject: [Zope] Webreview Article Message-ID: <36E086D6.B90F1AEF@profitscape.net> Well, it's the end of the day, and no-one else has posted this, so... http://webreview.com/wr/pub/1999/03/05/feature/index2.html This is a link to Amos' Article on Zope in Webreview. Way to go, Amos! BTW, what have the server logs been telling you guys about people visiting zope.org recently? Has traffic been going up? Michael Bernstein. From kslee@plaza1.snu.ac.kr Sat Mar 6 01:57:52 1999 From: kslee@plaza1.snu.ac.kr (LEE, Kwan Soo) Date: Sat, 06 Mar 1999 10:57:52 +0900 Subject: [Zope] Authentication and Zope.cgi References: <199903052211.PAA16445@daikon.tuc.noao.edu> Message-ID: <36E08B9F.1B56136@plaza1.snu.ac.kr> Richard Wolff wrote: > I'm in need of a bit of clarification about how Zope starts up and when > it decides to do its authentication and why. Me, too ;-) > I'm running 1.10.2, solaris 2.6, apache, pcgi, netscape 4.07. When I request > mymachine/Zope/manage I do indeed get the normal management screen. > I haven't been asked in some time for a password, which suprises me; > the 'access' file exists and (but?) hasn't changed since installation. This surprises me, since as far as I can see, one is always asked for password accessing /Zope/manage. Does netscape 4.07 automatically go through authenticate procedure? > I'd really like the root folder to say something other than Zope, so > I added to Apache a second rewrite rule that substitues 'mpg' for Zope > in the two places (restarted Apache), and copied Zope.cgi in cgi-bin > to mpg.cgi . These two cgi files are identical so they point to the > same /var directory. > > If I try mymachine/mpg/manage , I get an authorization failed box, > and upon clicking 'retry', I get the usual authentication box with > the correct 'access' user entered. I type in the correct password and > the system fails again ("You are not authorized to use this system. > Username and password are not correct"). There are at least two possibility. 1) Misconfigured rewrite rule. 2) mpg.cgi is not altered suitably. (oh, 1+2 gives the 3rd possibility). I was in a similar situation a few days ago. Now one of apache virtual host on my linux box has 1) ordinary apache site tree, 2) experimental(read 'for play') Zope site under hostname/Zope/ (through Zope.cgi) 3) public Zope site under hostname/public/ (through public.cgi) If this is similar enough to what you want achieve and you are desperate enough, just mail me your rewrite rule and Zope.cgi & mpg.cgi with sensitive parts altered suitably. But be aware that I am new to rewrite rules and pcgi world(hence if you are desperate enough). > So, I'm very curious as to what's going on ... and I wouldn't mind > learning how to change the top of the root name as well. This is easy. Just edit BOBO_REALM (NAME?) in your *.cgi file. LEE Kwan Soo. ps. my Zope's have their own var/Data.bbb but you want your Zope to point to the same var/Data.bbb. Oh this seems far beyond the capacity of mortal being. If you really want need this setting, I guess, the easist way to achieve it is getting Zopal blessings from DC(i.e. make a consulting contract with DC). From chadm@sgi.com Fri Mar 5 23:32:04 1999 From: chadm@sgi.com (Chad McDaniel) Date: 05 Mar 1999 15:32:04 -0800 Subject: [Zope] underscores in Z SQL Method Message-ID: Hello all, I recently discovered Zope and am diving right in. I have a Z SQL Method with the following Query Template: --- select * from rw_ProjectData where _id = --- when I test it, I get the following: --- Sorry, an error occurred. Traceback (innermost last): File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /test/viewSRR/manage_test) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/Shared/DC/ZRDB/DA.py, line 302, in manage_test (Object: CopySource) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_In.py, line 599, in renderwb (Object: viewSRR) File /usr/people/chadm/work/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_Var.py, line 237, in render (Object: _id) KeyError: _id --- I'm guessing that the parsing of the tokens picks up on underscore ('_') even outside of the DTML tags. Does anyone have a solution or workaround? thanks -- -chad From tony.mcdonald@ncl.ac.uk Sat Mar 6 08:23:25 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sat, 06 Mar 1999 08:23:25 +0000 Subject: [Zope] Some tough questions about zope... (long) Message-ID: <199903060823.IAA17941@cheviot.ncl.ac.uk> Again, another lengthy one, with some details of word conversions and XML musings. Fingers over 'd' key... >> Some background: >> I'm one of the web developers here, with a remit to implement a >> curriculum database that can; >> (a) support the Medical Faculty here >> (b) get rolled out to three other Medical-related sites, each with >> their own 'look and feel' >> (c) possibly implement a University-wide curriculum database> >Sounds fantastic! > Absolutely. One of the reasons I applied for the job is that the potential for it is so great! >> The curriculum database is essentially delivering online study guides >> (over 100 for each Faculty) whose source is originally from very well >> marked up Word Documents. In addition, we include multiple choice > >This is really weird, it just reminded me of a (rather pathetic) dream I >had last night. I dreamt that someone created a Python module that >would read Word files. > Ouch!, what we do is save the word docs as RTF. A free program (written in Omnimark) called RTF2XML then trundles through it and creates well-formed and valid XML. I then pass it through another Omnimark program that I wrote that turns it into XML that is more suited to what we want. >I've been awfully interested in XML in the last few days. Can you >describe what user-visible benefits PHP delivers due to its integrated >XML parser? > Background:... PHP is a (non OO) server-level scripting language, usually delivered as an Apache module, that has it's roots in C, but with some of the arcane bits removed. It's database integration is very good. The authors have recently built the (almost XML-industry standard) parser Expat into it. ... From my point of view, having the XML parser in PHP meant that (a) I didn't need to call Perl CGIs (with all that overhead), (b) I'd understand the code a bit (I *cannot* do Perl!), (c) there might be a performance boost from having the parser in the Apache Module and (d) I'd be able to map XML elements such as ... into HTML

    ...
    tags or RTF control codes (all of which would be read from a user-defined database) - thus leading to the 'Holy Grail' (ouch!) of being able to render the documents into whatever form the end-user wanted. As well as that, using XML means that I can select all .. tags that match a certain criteria (eg, all first-year study guides that mention cell biology) from *all* our study guides and create a 'composite' document that would be passed through the XML 'converter' to get custom HTML and RTF docs. Of course, once I 'got into' XML I found out that just having the Expat parser around didn't necessarily mean I was going to get all that for free...ie how 'do' you 'search' an XML document to get those matched tags (and possibly their children). Enter XQL and it's friends, DOM and XSL. XQL (Perl module based on a W3C recommendation) works, but it's slow. In short, I was at an impasse. The level of work needed to incorporate XQL into PHP (as a CGI) or (gulp) rewriting it as PHP was just too much. I installed the XML-Config product for Zope and my appetite was whetted. I read about the XML-sig and downloaded the XML-0.5 toolkit from python.org. I tried one or two examples out ... and my jaw literally fell open. By the time I'd looked in the 'dom' directory I was almost gibbering. This was something I felt I might be able to understand (and definitely use). Ooops...I'll shut up as I'm waay of topic. >Additionally, we are working on Zope searching for a consulting project >right now. Actually it is Zope Cataloging. It's still a >consulting-only option, but plans are that eventually it will go "below >the line". That would be most welcome! > >> I found out about Zope Monday morning, dl'ed it, installed it, got >> one or two things working... and have been worried sick ever since. > >Ahhh, you too, eh? Did you have the dream about the chimp and the >External Method where...oh, nevermind. :^) No, but I've spent the last week muttering 'ok, I can use UserDB to authenticate against our StaffDB and allow per-user access to the file upload area', 'yeah, should be able to rewrite my PHP Multi-Choice Question engine in this DTML gubbins', 'ok, I'll pull in the Perl script that does xxx by using a redirect' and the like ... which is probably more scary! > >> My problem? is that I can see how Zope can do so much for us, but it >> seems to need a hell of a gut-wrench to do so. > >I *think* I have some good news to report on this, but before I squawk, >could you detail this gut-wrench a bit more? > Simply this: Zope seems to do just about everything I need (which is basically to provide a *framework* for the Electronic Curriculum - others will fill in *and manage* the content). I can then concentrate on providing features that people need and 'rolling them out' to the users of the systems, confident that they will integrate into the whole system. I think it's a paradigm-shifty thing more than anything else. Everyone in our group *knows* that an .htaccess file allows access to the files in that directory. They all have at least a basic grasp of CGI programming and all recognize the mapping between files in a unix file structure and their representations as web pages. People using Zope will have to break that habit of logging in to change a file ('cos it ain't there!). (for the time being, I've desubscribed from the PHP-lists to give me more room to think!...) >> c) Is there any way of using the XML documents that I'm creating into >> the database and parsing them to produce either HTML or RTF output? > >I'd like to have this as well. I've been doing a lot of thinking about >this lately. It is a bit more complicated than expected, though... This would be extremely useful to have. > >> d) I know that this a terrible question to ask... but is Zope likely >> to 'remain' open-source (we're worried about getting stuck with a >> proprietary system)?. > >This is the main reason I replied. > >Having Zope as a free and Open Source(tm) platform is the heart of our >business plan. A closed Zope would basically mean we start over >completely as a different company. Thus, closing Zope is roughly >equivalent to closing our company. > phew! well I suppose that answers *that* question! > >Earning the community's enthusiasm is pretty simple, I think. >Unfortunately we aren't doing a good job right now, though we are trying >damn hard. But we'll keep trying... > Seems to this newbie that you're doing a pretty *good* job! >> e) Can I 'point' an Apache virtual server to run a Zope cgi (ie >> dropping the :port requirment). > >Yep, the zope.org machine has five virtual hosts. great. > >> h) We also need resources such as QuickTime movies, images PowerPoint >> slides etc. to be uploaded - would they sit in the database or can >> they be held somewhere else (and what happens about file name >> conflicts)? > >We put them in the database. The 3 Mb Zope binaries are served out of >the database, the PDF files are served out of the database. This works >so well I don't even think about it any more. > great again. Thanks for the reply Paul, (and thanks to the others that replied too - I'm not able to reply in person yet...) Cheers, tone. From jay@tomigaya.shibuya.tokyo.jp Sat Mar 6 23:07:33 1999 From: jay@tomigaya.shibuya.tokyo.jp (Jay Ashton) Date: Sat, 06 Mar 1999 18:07:33 -0500 Subject: [Zope] Subfolder Access? Message-ID: <3.0.6.32.19990306180733.009318b0@hito.eccosys.com> I think there must be an easy way around a little trouble I'm having, but it's had me stumped for a few days and I can't find any mention in the list/docs. From a dhtml method I want to access a subfolder's sql methods, which is easy enough using . The problem is, because of the amount of methods involved and in order to keep things flexible I want to add the to a standard_header, and the to a standard_footer. Of course, Zope nixes this. So I was hoping there was an end-run around this dilemna - some other way to give access to subfolders. I've tried including the opening and closing WITH's in the same document surrounded by IF's with no luck, and have been wondering if there's a way to set a folder property to accomplish this... - Jay From prudek@sol.cz Sat Mar 6 09:30:44 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 06 Mar 1999 10:30:44 +0100 Subject: [Zope] Python neccessary to work with Zope? References: <613145F79272D211914B0020AFF6401907BAEF@GANDALF> Message-ID: <36E0F5C4.4979DF71@sol.cz> Michel Pelletier wrote: > > Subject: [Zope] Python neccessary to work with Zope? > You do not need to know a single line of Python to use Zope. But > learning Python is a pleasure, not a chore. Thanks a lot for your answers, now I will have a deeper look into Zope. -- Milos Prudek From pavlos@gaaros.msrc.sunysb.edu Sat Mar 6 20:03:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sat, 6 Mar 1999 15:03:10 -0500 (EST) Subject: [Zope] [DTML] creating variables In-Reply-To: Message-ID: On Fri, 5 Mar 1999, David Ascher wrote: > > )"--> > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. You cannot nest DTML but you can use _[] to access the namespace. For instance you could do: Have a nice weekend Pavlos From tseaver@palladion.com Sat Mar 6 21:40:16 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 06 Mar 1999 15:40:16 -0600 Subject: [Zope] [DTML] creating variables References: <199903062000.MAA29011@zope.codeit.com> Message-ID: <36E1A0C0.55D44B20@palladion.com> David Ascher wrote: > Subject: > > On Fri, 5 Mar 1999, Pavlos Christoforou wrote: > > > On Fri, 5 Mar 1999, David Ascher wrote: > > > > > What's the equivalent DTML? Can one create a variable in DTML? > > > > > > ... > > > > Hmm. I want to create a variable whose value is given by another value. > Doing: > > )"--> > > > > doesn't make it through the parser. > > I've tried adding various quotes to no effect. > > I think I'm going to work on understanding ExternalMethods -- this syntax > is not made for me. =) I too miss Python when working in DTML. But in this case, I think that the following will help: -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From raver@box.dust.za.net Sun Mar 7 12:02:36 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Sun, 7 Mar 1999 13:02:36 +0100 Subject: [Zope] Creating Zope a zope application Message-ID: <19990307130236.A532@RaVER.duck.org> Hi! I'm reading 'A technical introduction to object publishing with Zope'. The doc says 'Creating a Zope application is simply a matter of creating a regular Python module containing the objects to be published, and placing this module along with some Zope-provided support files in the appropriate place on a web server' The doc continues to say that the zope documentation covers this prosess, but I'm not able to find it. So my question is - what are those zope-provided support files, and where am I supposed to place those file along with the python module that I've created? Sture Lygren From Paul@digicool.com Sun Mar 7 15:32:32 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 10:32:32 -0500 Subject: [Zope] [DTML] creating variables Message-ID: <613145F79272D211914B0020AFF6401907BB06@GANDALF> Tres wrote: > I too miss Python when working in DTML. But in this case, I I also wish Python could get into DTML. I look at some of the DTML that gets written and think "Ugh, that's pretty awful." Still, I don't yet see an alternative. --Paul From edcjones@erols.com Sat Mar 6 11:05:18 1999 From: edcjones@erols.com (Edward C. Jones) Date: Sat, 06 Mar 1999 06:05:18 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <36E10BEE.17A0A5DB@erols.com> Are there any Zope users in the Washington, DC area? From michel@digicool.com Sun Mar 7 18:08:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 13:08:36 -0500 Subject: [Zope] Washington, DC area Zope users? Message-ID: <613145F79272D211914B0020AFF6401907BB08@GANDALF> > -----Original Message----- > From: Edward C. Jones [mailto:edcjones@erols.com] > Sent: Saturday, March 06, 1999 6:05 AM > To: zope@zope.org > Subject: [Zope] Washington, DC area Zope users? > > > Are there any Zope users in the Washington, DC area? > > Digital Creations (the mecca of Zope users) is in Fredricksburg, VA. About 50 miles south of DC. -Michel > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > From Paul@digicool.com Sun Mar 7 19:44:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Sun, 7 Mar 1999 14:44:17 -0500 Subject: [Zope] Creating Zope a zope application Message-ID: <613145F79272D211914B0020AFF6401907BB0C@GANDALF> Sture wrote: > The doc says 'Creating a Zope application is simply a matter > of creating a > regular Python module containing the objects to be published, > and placing > this module along with some Zope-provided support files in > the appropriate > place on a web server' > > The doc continues to say that the zope documentation covers > this prosess, > but I'm not able to find it. So my question is - what are those > zope-provided support files, and where am I supposed to place > those file > along with the python module that I've created? Docs are still pretty light, but take a look at the Product Tutorial at: http://www.zope.org/Documentation/Reference/API --Paul From tony.mcdonald@ncl.ac.uk Sun Mar 7 20:25:00 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 07 Mar 1999 20:25:00 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <199903072025.UAA09186@cheviot.ncl.ac.uk> Hi, I've read on the zope-dev list that Zope is not multi-threaded. Does this have any ominous implications for server performance? I believe it means problems for people writing products, but does it give problems for folk using Zope in an 'install products and use them' scenario? many thanks for any thoughts, tone. From michel@digicool.com Sun Mar 7 21:00:48 1999 From: michel@digicool.com (Michel Pelletier) Date: Sun, 7 Mar 1999 16:00:48 -0500 Subject: [Zope] Zope not multi-threaded - is this a problem? Message-ID: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> > -----Original Message----- > From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] > Sent: Sunday, March 07, 1999 3:25 PM > To: zope@zope.org > Subject: [Zope] Zope not multi-threaded - is this a problem? > > > Hi, > I've read on the zope-dev list that Zope is not multi-threaded. > > Does this have any ominous implications for server > performance? I believe it > means problems for people writing products, but does it give > problems for > folk using Zope in an 'install products and use them' scenario? > We can discuss this now, but in a short while it won't really matter. Zope as we know it now is not 'multi-threaded'. The real issue concerning Zope is one of concurrency, since the 'threading' of requests is ussualy created by the web server (Apache using multi-processes or Medusa (ZServer's) use of select(), neither of which use actual 'threads'). There are two areas that we are working on to make zope concurrent. The Database: There is a new version of BoboPOS, called BoboPOS3. It is currently alpha. BoboPOS3 supports concurrent processes opening, reading and writing the Object Database. 'Concurrifying' Zope: Concurrent programs have to be careful about some issues. In particular, the use of global data. These can sneak in on you in wierd ways. For example, in the regex python module (yes, regex has been depreciated for re, but for now regex is faster) certain uses of compiled reg expressions don't work when two 'threads' enter the same expression. Also, there is an issue about passing mutable objects as default arguments to methods. To be truely thread safe, default arguements need to be immutable, or mutable arguments can only be used in immutable ways. These are, as you said, developer issues. Product developers have to be careful not to block Zope for long periods of time. People in the 'install and use them' scenario should not use these types of Products unless they are sure the block times are low, and product developers should be very, very careful about moving their software out into the world if the product blocks. It should be made clear to the user that this software could stop up the whole works. Why is won't matter soon is because we are working on making Zope fully concurrent. -Michel > many thanks for any thoughts, > tone. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From DAve@mail.netraven.com Mon Mar 8 05:14:32 1999 From: DAve@mail.netraven.com (Dave G) Date: Sun, 7 Mar 1999 21:14:32 -0800 Subject: [Zope] Q for the group Message-ID: Advice needed, opinions wanted. I have a situation where there is a group of users with both a private space and a public space. The users homepage is considered private with the public space where all anonymous viewable docs are held. I have two thoughts on how to do this, Zope is capable of either method, I'm curious which method everyone else thinks best, and why. First method; community folder (contents public viewable by permission) user_folder (contents not public viewable by permission) users manage page (not public viewable by aquisition) users public folder (public viewable by permission) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by aquisition) Second method; community folder (contents public viewable by permission) user_folder (contents public viewable by aquisition) users manage page (not public viewable by permission) users public folder (public viewable by aquisition) public_html (public viewable by aquisition) public2_html (public viewable by aquisition) users private folder (not public viewable by permission) Both have advantages and disadvantages, either way I end up with on - off, off - on, in the permissions hirearchy. Anyone have a good argument for either method? DAve. "On the Plains of Hesitation bleach the bones of countless millions who, at the Dawn of Victory, sat down to wait, and waiting -- died" From chsrinfo@guetali.fr Mon Mar 8 05:27:14 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 8 Mar 1999 09:27:14 +0400 Subject: [Zope] top level acl_users Folder Message-ID: <002e01be6924$55424c60$147800a0@pc-pi0> Hello, Is it possible to change (I mean: to delete) the top level UserFolder and use something else, say, a UserDb folder? Also, I made a french version of Confera. If someone is insterested, drop me a note. Regards, Jephte CLAIN From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:04:28 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:04:28 +0000 Subject: [Zope] Why doesn't this loop over files? Message-ID: Hi, I've d/led the ZopeDemos folder, installed it and started learning more about Zope, but there's something happening that I'm not sure about. The 'looping' example doesn't seem to iterate correctly over new additions to the folder. The DTML is here:

    Objects of type

    IdTitle
    If I create a new DTML method or document in the folder 'subFolder', it isn't recognised. I've even copy/pasted the documents that do work into the subFolder with no joy. Curiously, new folders *are* recognised. My Question is: What's preventing Zope from reading *all* the Documents in the subFolder? This would be the core of my first real application in Zope (a resource upload/download facility for staff here) so any advice would be appreciated. thanks tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:08:31 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:08:31 +0000 Subject: [Zope] Zope not multi-threaded - is this a problem? In-Reply-To: <613145F79272D211914B0020AFF6401907BB0E@GANDALF> Message-ID: > We can discuss this now, but in a short while it won't really matter. > Zope as we know it now is not 'multi-threaded'. The real issue > concerning Zope is one of concurrency, since the 'threading' of requests > is ussualy created by the web server (Apache using multi-processes or > Medusa (ZServer's) use of select(), neither of which use actual > 'threads'). There are two areas that we are working on to make zope > concurrent. Thanks for the informative answer Michel. Look forward to seeing the all-new singing and dancing server! ta tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 8 10:31:59 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 8 Mar 1999 10:31:59 +0000 Subject: [Zope] Some tough questions about zope... (long) In-Reply-To: References: <613145F79272D211914B0020AFF6401907BAC7@GANDALF> Message-ID: Hi Richard, > This sounds like something we need. > I know that I could use it. > If folks will critique this design, I'll implement it. I don't know if my critiques will be all that useful (being a Zope newbie), but hopefully this will help a bit. > - - Proposed Access Method - - > It is desired to be able to have "non DTML" files incorporated > in a Zope URL system. These files might be static GIF files, > quicktime movies, or just plain old HTML. Yes. > Obviously, they might be "included" in a DTML page by simply > referencing them directly by their URL. However, I can see cases > where one would like the access to be under the control of the Zope > system. Definitely. We have dozens and dozens (eventually hundreds) of files (QT movies, PowerPoints, Word Docs and the like - the mean size is about 600k-1Meg, but we have quite a few monsters at 6-7 Megs). > For example, access controls might apply. I think that this is 'a good thing'. > > The Zope mount point would enforce permissions just as if the > file were loaded into the Zope DB. > > Objects can be "imported" without having them take up space > in the database. Their creation and maintanence can be handled > outside the Zope system. This would be excellent news for us. > They are rendered by "cat"ing their contents. Does this ensure that MIME types are kept with the document, so that 'clicking' on its link will ensure that the correct helper application is invoked? Cheers, Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From M.Faassen@vet.uu.nl Mon Mar 8 10:54:50 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 08 Mar 1999 11:54:50 +0100 Subject: [Zope] Ad-hoc Zope FAQ version 0.1.1 Message-ID: <36E3AC7A.3C93D5F4@pop.vet.uu.nl> Ad-hoc Zope FAQ version 0.1.1 Note on the use of the Zope mailing lists: The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Please join and help us document Zope! Note on the categorizing of this FAQ: This FAQ is a FAQ in progress. It is uncompletely unstructured; unrelated questions are mixed haphazardly. If you feel the calling to help categorize the FAQ into sections, or if you'd like to maintain a particular FAQ section, please mail to the ZDP list. Thank you in advance! Note on the use of StructuredText: See the (currently) first FAQ entry for information on how to render this FAQ into HTML using Zope. For more information on StructuredText see:: http://www.zope.org/Documentation/Reference/StructuredText but this link is currently not completely up to date; see the comments in 'lib\python\StructuredText\StructuredText.py' for the current documentation. * How do I render the Structured Text FAQ into HTML cleanly? (in Zope) When including Structured Text (STX) from a DTML Method into another Document with the 'fmt="structured-text"' attribute, it will be quoted twice. This is because the '__str__' method of the 'DocumentTemplate.HTML' class automatically quotes its HTML when called. You can work around this by calling the STX document's 'read_raw()' method to get the unquoted version. This way we can use unquoted Structured Text examples in our FAQ:: Note that if the STX comes from a property the 'read_raw()' workaround is not needed. * How do I return an image from an External Method? Example (for a png image):: def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is:: RESPONSE.setHeader('content-type','image/png') * How can an External Method refer to the objects in the Zope app? Use an External Method that gets passed 'self'. 'self' is your hook into Zope world. From 'self' you should be able to get anywhere you'd like to go. 'self' is the folder in which the external method is called. External Methods are methods of Folders. Since External Methods are acquired, self is not always the same Folder in which the method is defined--it may be a child Folder. * Is there any way for External Methods to access files on the filesystem of the server? An External Method can access anything on the server computer that the Zope process has access to. Therefore, an External Method can do just about anything a Python program can do. This is both a power and a liability. * Can I restrict what an External Method can do? Is there somekind of sandbox environment for External Methods? Right now there is no sandbox execution environment for External Methods. An External Method has access to everything that the Zope process has access to. This is one of the reasons why External Methods are required to be defined in the Extensions directory--it's easier to keep an eye on them there. * How do I call an external method from DTML? Use:: to call any External Method in the folder (or acquired by the folder). The more explicit alternative is:: The rule is that anything between double quotes in the first argument of the #var tag is interpreted as an expression attribute; a first argument without quotes is interpreted as a name attribute. * In a DTML expression, how do I access variable names with a '-' in them? (such as 'sequence-item') Any variable name (including those with '-') can be accessed in the '_' namespace. This contains a dictionary of all variables in the default namespace. To access 'sequence-item' you therefore use:: _['sequence-item'] Another possibly is to use '_.getitem()', like this:: _.getitem('sequence-item') The difference is that the first renders 'sequence-item' through DTML, whereas 'getitem()' does not; it returns the raw value of 'sequence-item'. * How do you safely do a backup of the Zope database? ('data.bbb' in the 'var' directory) In Zope 1.10 and later, you can simply back up the data.bbb. Because of the way the file written (all write operations are appends), it is highly unlikely for a backup file created directly to have a problem. If the database is being written while the file is being copied, then the Zope may discard the last transaction when reading the copy, if the last record is incomplete. Alternatively, you could export the entire site and backup the export file. This won't be a full backup however, as it won't contain old revisions of objects. Yet another alternative is to (mis)use the Pack operation (in the Zope Control Panel, database management). Pack will create a Data.bbb.old backup copy of your file before packing (for safety), which you could then back up. To exploit this side effect you could do a pack that says something ridiculous (like pack anything older than thousand days). * How do I pass a non-form variable to the next requested URL? Use Hidden fields within the form:: * How do I define a variable for use in a document Set it in REQUEST:: * How do I tell the tree tag to show only Folders? By using the objectValues function in the branches_expr attribute of the tree tag. The objectValues function of a folder returns all objects contained by that folder. You can however, specify a list of object metatypes that it should return. objectValues(['DTML Document']) will only return all DTML Document objects in a Folder. Other metatypes you could select on are: Folder, DTML Method, File, Image, Mail Host, User Folder and Session. This is not a complete list, as Products can and will define their own metatypes. If you want to show more types, just add them to the list, like objValues(['Image', 'File']). Example of a Folder tree (with links to them):: * How can I collapse or expand a tree using a URL? The tree tag will show a tree fully expanded when the 'expand_all' variable is present in its namespace. So when a URL, showing a tree, is called with ?expand_all=1, the tree tag will expand all it's branches. Collapsing can be achieved with collapse_all. The following example shows a tree with collapse and expand 'buttons':: Expand all| Collapse all * How can I limit a tree to showing only *one* branch at a time? Use the 'single' attribute for your tree, like in:: * What is the difference between a DTML Method and a DTML Document? A DTML Method is what used to be just a Document in pre 1.10 releases. DTML Methods are not objects, they are methods. If you have a folder called 'foo', and it contained a DTML Method called 'bar', then 'bar' is a method of 'foo'. 'foo' doesn't contain the object 'bar', it has the method 'bar' bound to it. What this means is that from 'bar''s point of view, 'self' is a Folder object, and any properties it sees are properties of 'foo', not itself. DTML Documents are Zope Objects. Their idea of 'self' is themselves. They are contained in folders, but are not methods bound to that folder, they are instances of 'DTMLDocument.DTMLDocument'. They can manage their own Properties (because they inherit 'PropertyManager.PropertyManager'). Both DTML Documents and DTML Methods can hold DTML and content. The difference is subtle. DTML Methods would be used when the answer to the question "Am I showing some other objects content through me?" is Yes. DTML Documents should be used when the answer to the question "Am I the content I want to display?" is Yes. DTML Methods have the advantage that they don't have any properties, and their perspective of aquisition is from their containing folders point of view. DTML Documents have properties which may interfere with aquisition you'd want to do, and aquisition is from their own point of view, which may not be what you want. * How can I show all form data/cookies/REQUEST vars without knowing their names? By using the #in tag, you can easily all show all data in any dictionary object, like 'REQUEST.form', 'REQUEST.cookies' and even 'REQUEST' itself. Just call the 'items()' method of the dictionary, and the #in tag will provide a 'sequence-key' and 'sequence-item' variable for every item in the dictionary. Show showing all form data can be done like this:: :
    Use 'REQUEST.cookies.items()' for all your cookies, and 'REQUEST.items()' for all 'REQUEST' variables, including CGI Environment variables. If you don't mind the format, you could use '
    ' as a shortcut. * What is a Principia Draft? A Principia Draft is a special copy of any Zope object that is invisible to visitors of your site. You can make changes to this copy, and grant access to outsiders to view your changes (or work along with you). When all changes are done, you can approve all the changes, or discard them. Approving will make the changes permanent and visible to your audience. However, currently Drafts can appear to be broken. To add a draft, choose Principia Draft from the popup menu and click 'Add'. Next, you will have to supply an ID for the Draft, and specify on what base object you are going to work. Clicking 'Add' in this screen will create the Draft for you. Next, you will have to specify who will have access to the Draft. Here the problem starts, because of the way Drafts are managed. First, a Draft doesn't acquire any users from its parent, so you will have to add anyone who has to have access explicitly, even if they have already been access to a parent Folder. But the biggest problem is that you can't reach the UserFolder and Approval screens via the management screens. This will make a Draft a bit harder to use, but it still is workable. This second problem is caused by convention changes in the Folder object (or the ObjectManager class really, used by Folder). I think that Folder objects *used* to call 'title_and_id' on a object when displaying it in it's management screen, but the current release of Zope constructs the id and title of an object by using its id and title separately. Principia Drafts made use of the call to 'title_and_id' to insert links to its UserFolder and Approval management screens. As this now doesn't happen anymore, you will have to type in the URLs to the screens yourself. You can reach the screens calling the Draft object's 'users__draft__.manage_main' and 'manage_approve__draft__' methods. The URLS are:: http://yoursever.com/Zope/Draft/users__draft__/manage_main and:: http://yoursever.com/Zope/Draft/manage_approve__draft__ So, the next step is typing in the URL to the Draft's UserFolder management screen, and adding all users that should have access to the Draft. These users can now edit and view all changes made to this Draft. When done, you go to the 'manage_approve__draft__' management screen, and approve, or discard the changes. * How does my Folder Product load default documents? Create a list of tuples containing filenames (without '.dtml') and title pairs:: self.defaultDocs = [ ('index', 'NotMail'), ('address', 'Address Book'), ('attach', 'Attach a File'), ('composer', 'Compose a Message'), ('contact', 'Contact Developers'), ('search', 'Search Your Mailboxes'), ('results', 'Your Search Results'), ('folder', 'Mailbox'), ('message', 'Message'), ('help', 'Help'), ('lookup', 'Lookup Users'), ('standard_footer', 'Standard HTML Footer'), ('standard_header', 'Standard HTML Header'), ('noto', 'Message must have at least one recipient.'), ('reminders', 'Your Reminders'), ('save', 'Save Message'), ('logout', 'You have been logged out'), ('GPL', 'The GNU General Public License'), ('sentmail', 'Mail was sent')] # Then iterate over them and create each one for id,title in self.defaultDocs: try: self.defaultDocFile(id, title, id) except: pass # defaultDocFile is a handy little function: def defaultDocFile(self, id, title, file): f=open('%s/Products/NotMail/%s.dtml' % (SOFTWARE_HOME, file)) file=f.read() f.close() self.manage_addDocument(id, title, file) When you are debugging your DTML, it's a pain to keep deleting and creating new instances of your object in order to load the new dtml files off of the disk. This function comes in handy:: def refresh_docs(self, REQUEST): """ refresh documents from disk (for debug purposes) """ for id,title in self.defaultDocs: try: self._delObject(id) except: pass try: self.defaultDocFile(id, title, id) except: pass return self.manage_main(self, REQUEST) Then, assuming your object has an attribute 'debug' you can define some DTML like so in your manage_main screen::

    Refresh Documents from disk

    * How do I add management tabs to my folder sub-class? If you subclass 'OFS.Folder.Folder' to build a folderish object, you may want to keep around the old Folder management tabs, but add some of your own as well. This can be done by mucking with the Folder class 'manage_options' attribute. One problem is that you might want your own custom 'manage_main' but the FolderClass uses 'manage_main' for displaying the contents of the folder. Here is what I did for my EMarket product. By examining Folder's manage_options:: for option in Folder.manage_options: print option We get the following output:: {'label': 'Contents', 'target': 'manage_main', 'action': 'manage_main'} {'label': 'Properties', 'target': 'manage_main', 'action': 'manage_propertiesForm'} {'label': 'Import/Export', 'target': 'manage_main', 'action': 'manage_importExportForm'} {'label': 'Security', 'target': 'manage_main', 'action': 'manage_access'} {'label': 'Undo', 'target': 'manage_main', 'action': 'manage_UndoForm'} {'label': 'Find', 'target': 'manage_main', 'action': 'manage_findFrame'} Notice that the "Contents" tab calls Folder's manage_main attribute. Just rename that in your sub-class with something like:: manage_contents=OFS.Folder.Folder.manage_main and assign that to a different tab. Here is the beginning of the MarketItem class from the EMarket product:: class MarketItem(OFS.Folder.Folder): """A MarketItem """ # Specify a name for the item type: meta_type='MarketItem' # Specify a relative URL for the icon used to display icons: icon='misc_/EMarket/marketItem' # rename Folder's manage_main to manage_contents manage_contents=OFS.Folder.Folder.manage_main manage_main=HTMLFile('marketItemEdit', globals()) manage_image=HTMLFile('marketItemImage', globals()) # Specify definitions for tabs: manage_options=[ {'label':'Attributes', 'action':'manage_main'}, {'label':'ImageUpload','action':'manage_image'}, {'label':'View', 'action':''}, ] # add in the options from the Folder class.... change # the 'action' for Contents to 'manage_contents' for item in OFS.Folder.Folder.manage_options: if item['label'] == 'Contents': # be sure to use a *copy* manage_options.append(item.copy()) manage_options[-1]['action'] = 'manage_contents' else: manage_options.append(item) From doussot@gifrance.com Mon Mar 8 10:56:19 1999 From: doussot@gifrance.com (doussot@gifrance.com) Date: Mon, 8 Mar 1999 11:56:19 +0100 (CET) Subject: [Zope] Netscape server. Message-ID: Hello, In Zope documentation I found this: > Netscape Servers > > * Like Apache, Netscape does not pass HTTP Authorization information to > CGI scripts. We have a plugin at our website that addresses this. > http://www.digicool.com I found a link on Digicool Web site (Free Stuff / nscgi) but it is broken :( Does anyone know where I can find this plugin ? Thanks. (Please CC me your answers, I'm not suscribed to the list) --- Yann Doussot Grey Interactive - France - http://www.gifrance.com/ Cell: +33 6 12 71 70 03 Work: + 33 1 46 84 85 00 From Lutz.Ehrlich@EMBL-Heidelberg.de Mon Mar 8 13:27:33 1999 From: Lutz.Ehrlich@EMBL-Heidelberg.de (Lutz.Ehrlich@EMBL-Heidelberg.de) Date: Mon, 8 Mar 1999 14:27:33 +0100 ('MET) Subject: [Zope] '~' in StructuredText links? Message-ID: <14051.53317.19816.135841@cuckoo.EMBL-Heidelberg.DE> Hi Zopists, using StructuredText ($Id: StructuredText.py,v 1.11 1999/02/08 18:13:12 klm Exp $) for content generation, I find that I can't include tilde (~) characters in hyperlinks, i.e. a string like "brabbel":http://www.embl-heidelberg.de/~ehrlich. is not mapped to

    brabbel.

    but output as literal

    "brabbel":http://www.embl-heidelberg.de/~ehrlich

    . I tried to fix StructuredText,StructuredText.__init__ by inserting '~' into the gsub statements. No success whatsoever... As I couldn't find this entry neither in the Collector nor in the archive, I wonder whether somebody has a patch sitting somewhere? Cheers, Lutz Ps: Congratulations to the people at Digicool. Keep up the great work! ______________________________________________________________________ Lutz Ehrlich web : http://www.embl-heidelberg.de/~ehrlich email: lutz.ehrlich@embl-heidelberg.de European Molecular Biology Laboratory phone: +49-6221-387-140 Meyerhofstr. 1 fax : +49-6221-387-517 D-69012 Heidelberg, Germany From zopelist@regalint.com Mon Mar 8 13:32:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 08:32:45 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I just ran into this error. When I did a SELECT * on joined tables it would give the error but if I named the fields I needed it worked. I played with it a little and got the error again when I named a field that ended in _num in the SELECT. I have four such INT fields that I don't need, they are used by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). As you can see my SELECT list is long and it would have been nice to just use a * since I need almost all the fields. Everything works fine in MySQL client but from Zope I can produce that error. Maybe there is some conflict with the *_num names. What are your field names? SELECT sonum,cust_name,cust_n,description,kickoff,delivery, comment,partnum,pm_n,pm_initials,cad_n,cad_initials, md_n,md_initials,mm_n,mm_initials,division,custdate,RD, manmeet,steel,exp_del FROM jobinfo LEFT JOIN customer ON cust_n=cust_num LEFT JOIN pm ON pm_n=pm_num LEFT JOIN cad ON cad_n=cad_num LEFT JOIN md ON md_n=md_num LEFT JOIN mm ON mm_n=mm_num WHERE AND active='1' ORDER BY sonum DESC >On Fri, 5 Mar 1999, Jordan B. Baker wrote: > >Why does my ZMySQLDA Z SQL Method die with a KeyError: unhandled message? > >Well, I was looking at the code for the MySQLmodule and it appears that it >has problems handling some fields. > >This appears to be a limitation of the MySQLmodule. It currently does not >handle the LONGLONG datatype longer timestamps use. > >At least I assume its the LONGLONG that is messing it up. I haven't >looked into that much detail to be honest. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From jbb@spyderlab.com Mon Mar 8 16:12:06 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 11:12:06 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Philip Aylesworth wrote: > I just ran into this error. When I did a SELECT * on joined tables it would > give the error but if I named the fields I needed it worked. I played with > it a little and got the error again when I named a field that ended in _num > in the SELECT. I have four such INT fields that I don't need, they are used > by the JOIN, and have _n counterparts in the JOINed tables (see SQL below). > As you can see my SELECT list is long and it would have been nice to just > use a * since I need almost all the fields. > > Everything works fine in MySQL client but from Zope I can produce that error. > > Maybe there is some conflict with the *_num names. What are your field names? I was able to find a work around. The problem was the handling of the TIMESTAMP datatype by the MySQLmodule. It doesn't know how to handle a long timestamp unfortunately, so you'll want to retrieve it as a UNIX timestamp or as a formatted date using one of MySQL's many date functions. The other thing is that I doubt it handles double long integers since AFAIK Python doesn't handle these without an extension module. If your query is returning any of these you'll most likely get this response from Zope... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mike@compar.com Mon Mar 8 16:33:34 1999 From: mike@compar.com (Mike Pelletier) Date: Mon, 8 Mar 1999 11:33:34 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Jordan B. Baker wrote: > The other thing is that I doubt it handles double long integers since > AFAIK Python doesn't handle these without an extension module. It sure does: Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> long("99999999999999999") 99999999999999999L >>> 9999999999999L ** 2 99999999999980000000000001L Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can make numbers as large as you have memory for. Or is this not what you mean? Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From jbb@spyderlab.com Mon Mar 8 17:56:59 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 8 Mar 1999 12:56:59 -0500 (EST) Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: Message-ID: On Mon, 8 Mar 1999, Mike Pelletier wrote: > On Mon, 8 Mar 1999, Jordan B. Baker wrote: > > > The other thing is that I doubt it handles double long integers since > > AFAIK Python doesn't handle these without an extension module. > > It sure does: > > Python 1.5.2b1 (#2, Jan 18 1999, 11:01:20) [GCC 2.7.2.1] on freebsd3 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> long("99999999999999999") > 99999999999999999L > >>> 9999999999999L ** 2 > 99999999999980000000000001L > > Spiffy, eh? I'm pretty sure it's arbritrary-precision, which means you can > make numbers as large as you have memory for. Or is this not what you > mean? Hey, I'm glad you proved me wrong :) It looks like there is a limitation in the MySQLmodule when handling MySQL's LONGLONG datatypes that could probably be corrected. I may take a look at this later, but I am thinking I may just store UNIX timestamps in my database since this is more portable across databases anyways. But anyway, this may be a FAQ item as I'm sure other people may run into it. -jbb. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From chalaouxf@synbio.tpgnet.net Mon Mar 8 17:43:22 1999 From: chalaouxf@synbio.tpgnet.net (FR Chalaoux) Date: Mon, 8 Mar 1999 18:43:22 +0100 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: References: Message-ID: <19990308180532781.AAA136@[195.10.9.163]> Hi All, I fetched FAQ tool from "http://www.zope.org/WebReview/" but the archive contain only : * __init__.py *version.txt *Product.dat No, FAQ.py file. Strange no. Thus, this is maybe why I cant view Faq in the list of objet in Zope!! FR François-Régis Chalaoux Bioinformatics Group Synthélabo Biomoléculaire 67080 Strasbourg Cedex FRANCE Tél : 03 88 60 87 14 Fax : 03 88 45 90 70 From zopelist@regalint.com Mon Mar 8 18:30:31 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Mon, 8 Mar 1999 13:30:31 -0500 Subject: [Zope] Getting an L on integers eg. 53L Message-ID: Here is a strange one -- I am getting an L on the end of integer numbers from MySQL. (They are INT not BIGINT!) It didn't happen in 1.9, and it doesn't happen with methods that I created in 1.9 and moved to 1.10.2 (I think). In I have to use fmt='%d' to get rid of it. I also had a problem when I tried to use one in a redirect: produces: http://server/dir/file_html?num=53L which causes an error. I got around that by adding an int function: Has anybody else experienced this problem? Having to add all this extra code is driving me crazy! Phil A Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From amos@aracnet.com Mon Mar 8 18:57:54 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 10:57:54 -0800 Subject: [Zope] FAQ Tool - WebReview In-Reply-To: <19990308180532781.AAA136@[195.10.9.163]> References: Message-ID: <3.0.5.32.19990308105754.01145910@mail.aracnet.com> At 06:43 PM 3/8/99 +0100, FR Chalaoux wrote: >I fetched FAQ tool from "http://www.zope.org/WebReview/" but the >archive contain only : > >* __init__.py > >*version.txt > >*Product.dat > > >No, FAQ.py file. Strange no. While this may seem strange, this is in fact the normal contents of a Product distribution file for a "levered product". When you build a product through the web inside the control panel, these are the normal files Zope creates inside the product distribution. >Thus, this is maybe why I cant view >Faq in the list of objet in Zope!! Unfortunately this is not the case. The reason you can't use the FAQ is that there is a bug in Zope which keeps some people from being able to use levered distributions. As discussed on the list, it appears to be related to zlib compression. We are aware of the problem and are working to solve it. Thanks for your patience. -Amos P.S. If you're curious about a bug, you can try searching the Collector. http://www.zope.org/Collector In this case a search under "lever" or "faq" would turn up the existing bug report for this problem. From prudek@sol.cz Mon Mar 8 20:48:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 08 Mar 1999 21:48:32 +0100 Subject: [Zope] python binary not found by bash Message-ID: <36E437A0.4788EA32@sol.cz> When I try to install binary distribution of zope (on Linux), I run the install script and end up with: bash: ./python: No such file or firectory even though python binary is there, with correct rights. Does it mean that the binary lacks some libraries? If so, can I find which ones? -- Milos Prudek From bjs@crc.com Mon Mar 8 21:52:50 1999 From: bjs@crc.com (Bryan J. Smith) Date: Mon, 8 Mar 1999 16:52:50 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <199903082152.QAA14654@mail.lsg.crc.com> New subscriber: Zope on Linux/Alpha? I understand the Zope is developed on Linux/Intel and is supported on many other systems. Linux/Alpha was not one listed on the FAQ. Anyone know if it is possible to compile it on Linux/Alpha? Anyone got a precompiled binary for Linux/Alpha? Thanx ... -- Bryan P.S. If not, what are the issues? I may be interested in resolving them. ************************************************************ Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================ Some say the U.S. is run by special interest, including me. I say, cut the middle man out and save the tax payers money. In keeping with the Bill Of Rights, the ACLU would be 1st in charge, the NRA 2nd, etc... -- Just my $0.02 ************************************************************ From michel@digicool.com Mon Mar 8 22:19:17 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 8 Mar 1999 17:19:17 -0500 Subject: [Zope] New subscriber: Zope on Linux/Alpha? Message-ID: <613145F79272D211914B0020AFF6401907BB18@GANDALF> > -----Original Message----- > From: Bryan J. Smith [mailto:bjs@crc.com] > Sent: Monday, March 08, 1999 4:53 PM > To: 'Zope List' > Subject: [Zope] New subscriber: Zope on Linux/Alpha? > > > New subscriber: Zope on Linux/Alpha? > > I understand the Zope is developed on Linux/Intel and is > supported on many > other systems. Linux/Alpha was not one listed on the FAQ. > Anyone know if > it is possible to compile it on Linux/Alpha? Anyone got a precompiled > binary for Linux/Alpha? > > Thanx ... > > -- Bryan > > P.S. If not, what are the issues? I may be interested in > resolving them. > No real issues, just d/l the source release and try compiling Zope. I'd recommend having Python 1.5.1. To build the source release to use the built in simple web server, try: '/usr/local/bin/python1.5.1 wo_pcgi.py' to use with Apache (Note, d/l Zap and look at it's .conf file) '/usr/local/bin/python1.5.1 w_pcgi.py' Change the command line to reflect your python binary. Check out, I think, INSTALL.txt in the doc directory. All the C is ANSI, and python is python (grin) so you shouldn't have a problem. -Michel > ************************************************************ > Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com > Software Engineer http://www.SmithConcepts.com/legal.html > ============================================================ > Some say the U.S. is run by special interest, including me. > I say, cut the middle man out and save the tax payers money. > In keeping with the Bill Of Rights, the ACLU would be 1st in > charge, the NRA 2nd, etc... -- Just my $0.02 > ************************************************************ > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From amos@aracnet.com Tue Mar 9 00:40:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 08 Mar 1999 16:40:35 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Hi Guys: I think I've nailed the problem that was keeping people from using the FAQ Tool and levered products in general under windows. I'd love some confirmation that this does or does not solve people's problems. The fix is to open the product.dat file in 'rb' mode. To do this, change line 420 of lib/python/App/Product.py to: f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') Again, let me know if this doesn't work for you. -Amos P.S. Here's a little FAQ to tide you over until you're happily building your own ;-) Q. What's the FAQ Tool any way? A. Find out for yourself at: http://www.zope.org/WebReview/ Q. What's a levered product? A. A Product created through the web by building it inside the Control Panel. See the Zope Manager's Guide for more information. From robin@alldunn.com Tue Mar 9 01:16:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Mon, 8 Mar 1999 17:16:09 -0800 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) Message-ID: <011401be69ca$6c2d9730$fa01a8c0@rogue> Yep. Didn't work for me before (even for Levered Products I made myself) but now it does. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Amos Latteier To: zope@zope.org Date: Monday, March 08, 1999 4:11 PM Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) >Hi Guys: > >I think I've nailed the problem that was keeping people from using the FAQ >Tool and levered products in general under windows. > >I'd love some confirmation that this does or does not solve people's problems. > >The fix is to open the product.dat file in 'rb' mode. To do this, change >line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' shshsh') > >Again, let me know if this doesn't work for you. > >-Amos > >P.S. Here's a little FAQ to tide you over until you're happily building >your own ;-) > >Q. What's the FAQ Tool any way? >A. Find out for yourself at: http://www.zope.org/WebReview/ > >Q. What's a levered product? >A. A Product created through the web by building it inside the Control >Panel. See the Zope Manager's Guide for more information. > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From bkc@murkworks.com Tue Mar 9 00:21:51 1999 From: bkc@murkworks.com (Brad Clements) Date: Mon, 8 Mar 1999 20:21:51 -0400 Subject: [Zope] FIX: Levered Products on win32 (FAQ Tool) In-Reply-To: <3.0.5.32.19990308164035.011451b0@mail.aracnet.com> Message-ID: <199903090115.UAA08625@anvil.murkworks.com> On 8 Mar 99, at 16:40, Amos Latteier wrote: > The fix is to open the product.dat file in 'rb' mode. To do this, change > line 420 of lib/python/App/Product.py to: > > f=CompressedInputFile(open(home+'/product.dat','rb'),name+' > shshsh') > > Again, let me know if this doesn't work for you. This fix works for me (lline 407 in my Product.py) HOWEVER ... you must delete the FAQ product from the control panel, then restart ZServer for this fix to take effect. Apparently the old FAQ in bobo inhibits re-reading of the product.dat file. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From butchland@yahoo.com Tue Mar 9 02:23:55 1999 From: butchland@yahoo.com (Butch Landingin) Date: Mon, 8 Mar 1999 18:23:55 -0800 (PST) Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <19990309022355.23900.rocketmail@send205.yahoomail.com> In a previous posting, Tony McDonald wrote: >Hi, >I've d/led the ZopeDemos folder, installed it and started learning >more about Zope, but there's something happening that I'm not sure >about. > >The 'looping' example doesn't seem to iterate correctly over new >additions to the folder. The DTML is here: <... additional text deleted ...> There's a bug in the code, something I noticed when I was playing with the examples too. this is the fixed version: 001 002 003 004

    Objects of type

    005 006 007 008 009 010 011
    IdTitle
    012 013 014 About the bug and the fix: the bug was due to the statement looping over the current folder, not the subFolder which it should be. By moving the "with" statement to enclose it (see line 002), the statement VS. where column_name = Is the only advantage of using the first (sqltest) the type checking? I can't find any other obvious advantages. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tony.mcdonald@ncl.ac.uk Tue Mar 9 09:46:27 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 09:46:27 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <19990309022355.23900.rocketmail@send205.yahoomail.com> Message-ID: > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 Butch, Thanks for the reply - but this doesn't work completely either. I can add folders and delete them and the changes made show up in the listing, but adding documents (both documents and methods) has no effect. If I delete the *original* documents created by the installation, they show up as being gone, but even a copy-paste of the original documents doesn't get any new documents/methods etc. to show up. Am I doing a dumb newbie thing here? (I *do* have a folder called 'subFolder' btw). many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From dick.wall@mediamail.telinet.com Tue Mar 9 13:47:08 1999 From: dick.wall@mediamail.telinet.com (Dick Wall) Date: Tue, 09 Mar 1999 08:47:08 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <19990309084120.83ca0fd9.in@mediamail.telinet.com> Hi all, I have been using python for years, and zope for a few months now (lovely), ZServer for weeks, but Windows NT? Not long enough to understand the differences between services and ordinary process (give me a break, I am heavily from a Un*x background) :-). I know when I installed the binary version of Zope on the windows machine here it gave me a service in the services list which I can activate on startup. However, I am betting that this runs the ZopeHTTPServer, not the ZServer which I got as a separate download. I have everything working just lovely with the ZServer now, but it needs to be run as an NT service (and respond to start and stop signals, etc) at which point I freely admit my own inadequacies in this area. Now my question. How can I do what I need to do. Is it simply a case of redirecting a python 'shell' file used by the service to the start.py in the ZServer module, or is there more to it? If it is this simple, which python 'shell' file do I use? If it is not this simple, can someone send me basic instructions on how to do it (why is NT like this - give me an rc.local file any day - I know where I stand with that stuff). Thanks in advance. Dick From michel@digicool.com Tue Mar 9 15:00:46 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:00:46 -0500 Subject: [Zope] Re: Why doesn't this loop over files? Message-ID: <613145F79272D211914B0020AFF6401907BB25@GANDALF> > -----Original Message----- > From: Butch Landingin [mailto:butchland@yahoo.com] > Sent: Monday, March 08, 1999 9:24 PM > To: tony.mcdonald@ncl.ac.uk > Cc: Zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > In a previous posting, Tony McDonald wrote: > > >Hi, > >I've d/led the ZopeDemos folder, installed it and started learning > >more about Zope, but there's something happening that I'm not sure > >about. > > > >The 'looping' example doesn't seem to iterate correctly over new > >additions to the folder. The DTML is here: > <... additional text deleted ...> > > There's a bug in the code, something I noticed when I was playing > with the examples too. this is the fixed version: > > 001 > 002 > 003 > 004

    Objects of type

    > 005 > 006 > 007 > 008 > 009 > 010 > 011
    IdTitle
    > 012 > 013 > 014 > > About the bug and the fix: > the bug was due to the statement > looping over the current folder, not the subFolder which it should be. > By moving the "with" statement to enclose it (see line 002), the > statement

    Objects of type

    IdTitle
    > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony > McDonald > Sent: Tuesday, March 09, 1999 4:46 AM > To: Butch Landingin > Cc: zope@zope.org > Subject: [Zope] Re: Why doesn't this loop over files? > > > > > > There's a bug in the code, something I noticed when I was playing > > with the examples too. this is the fixed version: > > > > 001 > > 002 > > 003 > > 004

    Objects of type

    > > 005 > > 006 > > 007 > > 008 > > 009 > > 010 > > 011
    IdTitle
    > > 012 > > 013 > > 014 > > Butch, > Thanks for the reply - but this doesn't work completely either. I can > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. > > Am I doing a dumb newbie thing here? (I *do* have a folder called > 'subFolder' btw). > > many thanks > tone > ------ > Dr Tony McDonald, FMCC, Networked Learning Environments Project > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Tue Mar 9 15:03:55 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 10:03:55 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF6401907BB27@GANDALF> > -----Original Message----- > From: Dick Wall [mailto:dick.wall@mediamail.telinet.com] > Sent: Tuesday, March 09, 1999 8:47 AM > To: zope@zope.org > Subject: [Zope] ZServer as a windows NT service? > > > Hi all, > > > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). > Ahmen brother! Can I get a witness! -Michel > Thanks in advance. > > Dick > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From zopelist@regalint.com Tue Mar 9 15:01:52 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 10:01:52 -0500 Subject: [Zope] sqltest vx. var Message-ID: >Something I'm just curious about... > >where > >VS. > >where column_name = > >Is the only advantage of using the first (sqltest) the type checking? I >can't find any other obvious advantages. > I haven't played with it too much but I think that Zope handles undefined variables properly if you do the sqltest. ie. where and will work if name2 is not defined. It also handles the quoting and SQL syntax (such as doubling single quotes). Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From tony.mcdonald@ncl.ac.uk Tue Mar 9 15:04:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Tue, 9 Mar 1999 15:04:02 +0000 Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: <000401be6a3c$38a6cc70$ce63efa1@venice> References: Message-ID: > > Tony's problem was that Zope was correctly respecting the meta_type of the > 'old' Document objects included with the demo, but any new documents added > afresh were being created with the 'DTML Document' or 'DTML Method' > meta-types, which were falling through the objectValues 'sieve'. > Andy, Thank you *very* much for this - I thought I was losing my marbles over it! (Now all I need is links to External Files and I'm away! :) Thanks again, tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From pavlos@gaaros.msrc.sunysb.edu Tue Mar 9 15:06:13 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 10:06:13 -0500 (EST) Subject: [Zope] Re: Why doesn't this loop over files? In-Reply-To: Message-ID: On Tue, 9 Mar 1999, Tony McDonald wrote: > add folders and delete them and the changes made show up in the > listing, but adding documents (both documents and methods) has no > effect. If I delete the *original* documents created by the > installation, they show up as being gone, but even a copy-paste of > the original documents doesn't get any new documents/methods etc. to > show up. My guess is that you created your original database in Zope-1.9 and then moved everything into Zope-1.10. If that is the case then you need to replace with or something to that effect. Pavlos From Paul@digicool.com Tue Mar 9 15:21:40 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 9 Mar 1999 10:21:40 -0500 Subject: [Zope] ZServer as a windows NT service? Message-ID: <613145F79272D211914B0020AFF640190D9E77@GANDALF> Dick wrote: > startup. However, I am betting that this runs the > ZopeHTTPServer, not the Not quite. ZopeHTTPServer is a console app just like ZServer. The service is a PCGI-like thing that runs Zope as a service, listening for named pipe connections from something that is run as a CGI by the web server. > ZServer which I got as a separate download. I have everything > working just > lovely with the ZServer now, but it needs to be run as an NT > service (and > respond to start and stop signals, etc) at which point I > freely admit my > own inadequacies in this area. ZServer is still at alpha 2 so it's premature to focus on things like how it is packaged. I *think* we have all the issues figured out and the next release, perhaps this month, will be a beta1. Until we get into beta, we'll have to hope that someone in the community packages it up as a service. > Now my question. How can I do what I need to do. Is it simply > a case of > redirecting a python 'shell' file used by the service to the > start.py in > the ZServer module, or is there more to it? If it is this > simple, which > python 'shell' file do I use? If it is not this simple, can > someone send me > basic instructions on how to do it (why is NT like this - give me an > rc.local file any day - I know where I stand with that stuff). One issue off the top of my head is integration with the NT Event Log. --Paul From rob.page@digicool.com Tue Mar 9 16:05:08 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:05:08 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069142@GANDALF> > >Something I'm just curious about... > > > >where > > > >VS. > > > >where column_name = > > > >Is the only advantage of using the first (sqltest) the type > checking? I > >can't find any other obvious advantages. > > > > I haven't played with it too much but I think that Zope > handles undefined > variables properly if you do the sqltest. > > ie. > > where > and > > will work if name2 is not defined. > > It also handles the quoting and SQL syntax (such as doubling > single quotes). Absolutely... we ran into some situations where the SQL was so dynamic potential security problems arose. sqltest and sqlvar are designed to reduce that exposure. Additionally, we've found a very common rhythm where a search UI might expose all of a large percentage of the available data elements in the RDBMS. Using sqltest lets the user not specify one or more parameters without a lot of messy stuff in the SQL Method. --Rob From zopelist@regalint.com Tue Mar 9 16:06:27 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 11:06:27 -0500 Subject: [Zope] sqltest vx. var In-Reply-To: Message-ID: >>Something I'm just curious about... >> >>where >> >>VS. >> >>where column_name = >> >>Is the only advantage of using the first (sqltest) the type checking? I >>can't find any other obvious advantages. >> > >I haven't played with it too much but I think that Zope handles undefined >variables properly if you do the sqltest. > >ie. > >where >and > >will work if name2 is not defined. > >It also handles the quoting and SQL syntax (such as doubling single quotes). > I'll correct myself here. I was thinking of the tag. I don't know what does that or won't do... Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From rob.page@digicool.com Tue Mar 9 16:23:11 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 9 Mar 1999 11:23:11 -0500 Subject: [Zope] sqltest vx. var Message-ID: <613145F79272D211914B0020AFF64019069145@GANDALF> > I'll correct myself here. I was thinking of the > tag. I > don't know what does that or > won't do... I meant to bring this up in my earlier post -- this tag too, is used to simplify what could be a terribly complicated SQL Method given an indeterminate number and list of search criteria. With this tag you can permit an arbitrary arguments to be supplied connected with your predetermined ANDs and ORs This one tag has, in the past, reduced may SQL Methods into one -- natural maintenance savings. --Rob From jeffrey@Digicool.com Tue Mar 9 16:27:49 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 09 Mar 1999 11:27:49 -0500 Subject: [Zope] sqltest vx. var Message-ID: <199903091627.IAA32000@zope.codeit.com> >From: Philip Aylesworth > I'll correct myself here. I was thinking of the tag. I > don't know what does that or > won't do... A _very very_ nice feature of #sqltest is the 'multiple' feature. For example: SELECT * FROM inbox WHERE If doc_status is passed in as a single value, like "foo", the SQL statement will be rendered as:: SELECT * FROM inbox WHERE doc_status='foo' BUT!!! (this is where it gets good), if doc_status is passed in as a list/sequence, like ["foo", "bar", "drop", "ship"], it will be rendered as:: SELECT * FROM inbox WHERE doc_status in ('foo','bar,'drop','ship') This is an _extremely_ handy feature of #sqltest. Prior to #sqltest, doing the above might be like: SELECT * FROM inbox WHERE doc_status in ( '' , ) (#else used to be used where #unless is used today). The above code also always required doc_status to be passed in as a sequence. #sqltest is smart enough (I believe - i've never been bitten by this) to detect the difference between strings and lists. I've used #sqltest with multiple many times with Acquisition where a folder property would define part of a SQL statement. That property in some cases would be a single value, in other places it would be a tokens or lines property. So, in otherwords, you get the type checking, the multiple, the optional, etc... with #sqltest that you don't get otherwise. About the only problem is that #sqltest currently doesn't do not-equals or "not in (...)". .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From A.K.Heath@shu.ac.uk Tue Mar 9 17:05:39 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Tue, 9 Mar 1999 17:05:39 GMT Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <199903091705.RAA07667@teak.shu.ac.uk> I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? Andy btw: Zope looks really good to me (when I can get over these glitches). --------------------------- Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () From zopelist@regalint.com Tue Mar 9 17:15:29 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Tue, 9 Mar 1999 12:15:29 -0500 Subject: [Zope] Why ZMySQLDA dies with KeyError: unhandled... In-Reply-To: References: Message-ID: I found that this problem came up when I used MEDIUMINT in MySQL. I changed my database to INT and it worked fine. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From michel@digicool.com Tue Mar 9 17:29:26 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 9 Mar 1999 12:29:26 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB2E@GANDALF> > -----Original Message----- > From: Andy Heath [mailto:A.K.Heath@shu.ac.uk] > Sent: Tuesday, March 09, 1999 12:06 PM > To: zope@zope.org > Subject: [Zope] tree doesn't work 4me linux amd win32 > > > I'm a zope newbie. > > I just installed on a windows 95 box and on a linux 2.0.something > but I can't get anything with tree working (other stuff seems ok). > > Hadars' second sample app doesn't work for me (the tree part > produces no output). > > Even the minimal > > > > > doesn't produce output (tried this with the second Habar example after > creating the "sub-folders"). > > I get the same behaviour on windows as linux. > > I must be doing something wrong. Clues please ? > I bet your using a DTML Document. Try using a DTML Method. The reason why the tree tag renders nothing for the DTML Document is because DTML Documents are not containers of other objects, they are objects to hold DTML content. DTML Methods are (and this is the suble thing) *methods* of the Folder object that contains them. They are not 'objects' in the same sense of the term used for DTML Documents (I can hear Jim saying now "*everything's* an object"). Because Folder objects *are* containers, the #tree tag used in a Folder's DTML Method will render the contents of that Folder. Hadar's example is a little outdated, it is based on 1.9, in which DTML Documents didn't exist, and all Documents were DTML methods. -Michel > Andy > btw: Zope looks really good to me (when I can get over these > glitches). > > --------------------------- > Andy Heath, Senior Lecturer a.k.heath@shu.ac.uk o > Sheffield Hallam University. Phone: +44 114 2534904 /\ > Sheffield, England Fax: +44 114 2533161 () () > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From robin@alldunn.com Tue Mar 9 17:31:35 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 9 Mar 1999 09:31:35 -0800 Subject: [Zope] ZServer as a windows NT service? Message-ID: <006501be6a52$b0bbe900$fa01a8c0@rogue> I currently have ZServer running as a service on two machines using the srvany.exe tool from the NT resource kit or from MSDN. Essentially srvany is the actual service and then you tell it via registry settings what other program you want to run. It works good enough for me for the time being. The only problem is that the service stop message does a hard kill on the ZServer process so any last second updates to the Zope DB might be fragmented if it wasn't finished writing, but with the way the DB works at least the DB will still be usable. I am out of the office right now so I can't provide step by step instructions right now. There is a .doc file that comes with srvany.exe that I followed. I specified that Python was the executeable to be run by srvany, the ZServer directory is to be the CWD, and that the command-line should be start.py. Worked first try. Of course the right thing to do would be to integrate native service capabilities into ZServer itself via the win32api packages. That way ZServer could shhutdown gracefully and could send meaningful things to the event log. But srvany is good enough for alpha level, non-production servers. And I havn't had any problems to speak of dealing with running it as a service. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Dick Wall To: zope@zope.org Date: Tuesday, March 09, 1999 5:09 AM Subject: [Zope] ZServer as a windows NT service? >Hi all, > >I have been using python for years, and zope for a few months now (lovely), >ZServer for weeks, but Windows NT? Not long enough to understand the >differences between services and ordinary process (give me a break, I am >heavily from a Un*x background) :-). > >I know when I installed the binary version of Zope on the windows machine >here it gave me a service in the services list which I can activate on >startup. However, I am betting that this runs the ZopeHTTPServer, not the >ZServer which I got as a separate download. I have everything working just >lovely with the ZServer now, but it needs to be run as an NT service (and >respond to start and stop signals, etc) at which point I freely admit my >own inadequacies in this area. > >Now my question. How can I do what I need to do. Is it simply a case of >redirecting a python 'shell' file used by the service to the start.py in >the ZServer module, or is there more to it? If it is this simple, which >python 'shell' file do I use? If it is not this simple, can someone send me >basic instructions on how to do it (why is NT like this - give me an >rc.local file any day - I know where I stand with that stuff). > >Thanks in advance. > >Dick > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From William_Whitehead@byu.edu Tue Mar 9 17:34:19 1999 From: William_Whitehead@byu.edu (William Whitehead) Date: Tue, 09 Mar 1999 10:34:19 -0700 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <3.0.5.32.19990309103419.00a35920@email.byu.edu> I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I was able to compile and add the ZPyGreSQL Product to my Zope installation. I want to create a Database connection. When I go to create a new one, it asks for the Id, Title, and Database Connection String. What do I put into the Database Connection String? I tried the database I want to use, but it gives Invalid connection String: baseball Is it a rights issue with PostgreSQL or something else? What is it expecting the database connection string field anyway? Thanks for your help! Bill - ====================================================================== William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | Library Information Systems | Email: | 2840 HBLL | mailto:william_whitehead@byu.edu | Provo, UT 84602 | Home Page | | http://www.lib.byu.edu/~wbw | ====================================================================== From ShawH@STHS.org Tue Mar 9 18:24:12 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 9 Mar 1999 12:24:12 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: I have a nifty system whereby each individual I add to a database automatically gets a personal directory and password. One of my users has come to me with a problem. He can add images to his directory, but cannot subsequently edit the image (i.e. open the image's manage screen) as it complains about lack of permissions. The security role he has contains all the image related options I see. He can delete it, btw. This is not an immediate issue, but I do wonder why the permissions don't seem to be working in a sensible manner. Why should he be able to add images, but not manage them? Are there extra 'image manage' permissions? If so, where do I find them? From M.Faassen@vet.uu.nl Tue Mar 9 18:33:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 09 Mar 1999 19:33:44 +0100 Subject: [Zope] FAQ 0.2 - About this FAQ Message-ID: <36E56988.CEF76199@pop.vet.uu.nl> Zope FAQ 0.2 - About this FAQ and the Zope Documention Project * What is this FAQ? This FAQ is a project of the Zope Documentation Project, and aims to answer any (or at least lost) questions you might have about Zope and how to use it. * What is the Zope Documentation Project? The Zope Documentation Project (ZDP) is a community project of Zope users that aims to create documentation for Zope. The first goal of the ZDP is the creation and maintenance of an extensive Zope FAQ, later on other documentation will follow. We welcome everybody to contribute; for instance by sending in questions and answers for the FAQ. * Where is the rest of this FAQ? The Zope FAQ has been split into separate sections. If you are reading this on the ZDP mailing list, you should see the other documents posted as well. If you are reading this on zope@zope.org or zope-dev@zope.org, you will only see this message. The Zope FAQ is under development. It is probably already useful, but because I don't want to spam everybody you will have to look at the ZDP list to see the rest of the FAQ. Everyone is very welcome to join the ZDP list. You can also wait until the ZDP has its web infrastructure going and the FAQ is published on the web. This will hopefully be very soon; we're working on it. * How do I contribute? The Zope Documentation Project has its own mailing list (zdp@zope.org). You are encouraged to use this list for all ZDP related communications. Please do not send your messages (such as FAQ contributions) to Martijn Faassen (the current FAQ maintainer) if your message can be sent to the mailing list instead. * How do I join the ZDP mailing list? You can subscribe to the ZDP mailing list by using the page:: http://www.zope.org/mailman/listinfo/zdp Thanks in advance for your contributions! * Are there other Zope-related FAQs? Yes, there is the "Zope Questions and Answers" at:: http://www.zope.org/Information/QA/ This is maintained by Digital Creations; currently it is the best place to look if you are brand new to Zope. That said, Paul Everitt of Digital Creations has kindly contributed the Zope Questions and Answers to the ZDP (or vice versa; the ZDP is contributing to the Q&A). The ZDP plans to merge the two FAQs shortly. * What is Structured Text and what does it have to do with this FAQ? The FAQ is (currently) written in Structured Text, so you may very well reading the FAQ in Structured Text format (the double colons and the indented paragraph structure give it away). If you are just reading this FAQ you shouldn't worry about it. If you plan to contribute to the ZDP we'd prefer it if your contributions were written in Structured Text, however. For more information see the Structured Text section of this FAQ. * What are these FIXME comments I see scattered through the FAQ? If you are reading the ZDP mailing list or its archives, then it is the FAQ's editor (or possibly a contributor) who is not entirely sure about some details on Zope, and is asking people on the list to help figure it out. If you are reading this FAQ somewhere else, then oops, they don't belong there. Please send a message to the zdp@zope.org list telling us about it, and thanks! * What other sections does this FAQ have? We currently have sections on: o DTML o Zope Administration o Structured Text o External Methods o Builtin Products o Product Development From Jose.Lacal@icn.siemens.com Tue Mar 9 19:27:23 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 14:27:23 -0500 Subject: [Zope] Zope for CD Index? Message-ID: <8525672F.006A78AE.00@li01.lm.ssc.siemens.com> Folks: http://www.freeamp.org/cdindex I don't know if anybody in the community would like to approach these folks and show them how Zope can make their project so much easier to manage / control. "The CD Index project (this is a temporary name -- we should find a better name soon) is designed to replace the badly designed and even worse administered CDDB project." Just a PR hint. Regards. - - - - - I do NOT speak for Siemens. - - - - - "Everything we lack, we make-up in denial." Jose C. Lacal, Senior Engineer, Data Services Siemens I & CN - Boca Raton, FL USA jose.lacal@icn.siemens.com +01 (561) 955-3081 From Brian@digicool.com Tue Mar 9 19:44:10 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 9 Mar 1999 14:44:10 -0500 Subject: [Zope] Images and Zope1.10.2 Message-ID: <613145F79272D211914B0020AFF64019FD80@GANDALF> > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mike@compar.com Tue Mar 9 19:37:04 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 9 Mar 1999 14:37:04 -0500 (EST) Subject: [Zope] ZPyGreSQL Database Connection Problem In-Reply-To: <3.0.5.32.19990309103419.00a35920@email.byu.edu> Message-ID: From lib/python/Products/ZPyGreSQLDA/README.txt: The connection string in Zope should be: baseball@localhost:5432 your_user_name Mike. On Tue, 9 Mar 1999, William Whitehead wrote: > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > was able to compile and add the ZPyGreSQL Product to my Zope installation. > I want to create a Database connection. When I go to create a new one, it > asks for the Id, Title, and Database Connection String. What do I put into > the Database Connection String? I tried the database I want to use, but it > gives > > Invalid connection String: baseball > > Is it a rights issue with PostgreSQL or something else? What is it > expecting the database connection string field anyway? Thanks for your help! > > Bill > > > - > ====================================================================== > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > Library Information Systems | Email: | > 2840 HBLL | mailto:william_whitehead@byu.edu | > Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | > ====================================================================== > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From prudek@sol.cz Tue Mar 9 20:33:13 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 09 Mar 1999 21:33:13 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E58589.2A99E93C@sol.cz> I have a problem with authorization under Apache 1.3.3 I can go to introductory screen but I can't get to ./manage screen. I get Athorization failed, and when I pres cancel I get the traceback below. I have put the lines (with modification reflecting my placement of Zope.cgi) from doc/WEBSERVER.txt at the top of my srm.conf file. I wasn't sure where to put it, since according to Apache documentation the directive is not inherited. Later I copied those lines to Virtual WWW section of www.sol.cz but to no avail. What does the line "Zope configuration maps /Zope/ to the Zope.cgi cgi script" mean? I thought that all I need to do is put Zope.cgi in my cgi-bin, put the above lines into srm.conf, and restart Apache... You can try it on http://www.sol.cz/cgi-bin/Zope.cgi. name is superuser, password is 123 # This is the traceback: You are not authorized to access this resource. No Authorization header found. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /manage) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) -- Milos Prudek From rocon@pivot.net Tue Mar 9 20:44:23 1999 From: rocon@pivot.net (Robert OConnor) Date: Tue, 9 Mar 1999 15:44:23 -0500 Subject: [Zope] Root Folders and Names {Manager's Guide Update} Message-ID: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> * How do I "name" the *blank* root folder? This is the same folder that is named "Plutonia" in the Zope manager's guide. Maybe the root folder has no name so that if I go to http://www.bob.com/ the "Folder at / " will present index_html to requesting browsers. If I did name it "plutonia" would it be accessible both as http://www.bob.com/ and as http://www.bob.com/plutonia ? So maybe I don't need to "name" this root folder. If so, then the Zope manager's guide needs to be clearer. In the fourth paragraph on page 12 it says: "...presuming that your ZOPE is installed at http://your.place.com/Objects and it's management screen is at http://your.place.com/Objects/manage" This does not follow through the document. There is no folder named "Objects" Maybe the document should say: http://plutonia.com/ and it's management screen is at http://plutonia.com/manage" And to manage one of the three departments used in the examples, say for example "News" then: http://plutonia.com/news/manage" Other notes on this issue: Timothy J. Grant asked: "...My problem is that my Root folder in Zope has no name, and it appears that FSIMPORT requires a folder name for it to work." No response was found to this post on the ZOPE list. -bobo connor From luke@geeklife.com Tue Mar 9 21:02:05 1999 From: luke@geeklife.com (Luke Duff) Date: Tue, 9 Mar 1999 13:02:05 -0800 Subject: [Zope] NT Server Question Message-ID: <199903092102.NAA24259@hipmail1.gohip.com> I've gotten Zope up and running on my IIS/NT server. Right now I can access it through www.myserver.com/cgi-bin/zope.exe. Is there any tricky way to get it to run as www.myserver.com/zope? including www.myserver.com/zope/folder/object? Can you do that with Apache on NT? I would use ZServer but I need to also be able to run Perl CGI scripts. Luke Duff ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com From amos@aracnet.com Tue Mar 9 21:53:22 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 13:53:22 -0800 Subject: [Zope] Root Folders and Names {Manager's Guide Update} In-Reply-To: <02c001be6a6d$a24716e0$0201a8c0@hawkeye.bob.oc> Message-ID: <3.0.5.32.19990309135322.010e9d40@mail.aracnet.com> At 03:44 PM 3/9/99 -0500, Robert OConnor wrote: >* How do I "name" the *blank* root folder? Right now you can't. And you don't need to. The "name" of the root folder is simply the SCRIPT_NAME your webserver uses to access Zope. By default in ZServer and ZopeHTTPServer this is an empty string, since they both normally server one published module, though they both can server multiple published modules. So, you can give your root folder a title, but you can't use Zope to change how your web server calls Zope. Do this with your webserver. In the case of ZServer, check out the zope_handler.py, it has options to set the SCRIPT_NAME. ZopeHTTPServer also has options to set the SCRIPT_NAME with command line arguments. >So maybe I don't need to "name" this root >folder. Right. >If so, then the Zope manager's guide needs >to be clearer. Perhaps the docs should be updated. The manager's guide probably assumes that you're using PCGI, but it shouldn't make this assumption. Hope this helps. -Amos From jeffbauer@bigfoot.com Tue Mar 9 23:05:02 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Tue, 09 Mar 1999 17:05:02 -0600 Subject: [Zope] NT Server Question References: <199903092102.NAA24259@hipmail1.gohip.com> Message-ID: <36E5A91E.B5E9D9FE@rubic.com> Luke Duff wrote: > I've gotten Zope up and running on my IIS/NT server. > Can you do that with Apache on NT? Yes, documented here: http://starship.python.net/crew/jbauer/apachenotes/ Best regards, Jeff Bauer Rubicon, Inc. From jae@kavi.com Wed Mar 10 00:56:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 9 Mar 1999 16:56:07 -0800 (PST) Subject: [Zope] ZSQL methods in parent subfolder Message-ID: Is this behaviour a bug? I have all my ZSQL methods collected together in a folder. If I call these from a sibling folder[1] without any arguments, ie. I get the below error, if I call them with specific arguments, ie. I get no errors. (comp_id was in REQUEST in both cases). [1] by sibling folder I mean something like the following arrangement... /sql/company (where the sql method is stored) /lists/company_list (where the call is made) Here's the error: Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /filter/contacts/index_html) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: index_html) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: index_html) File lib/python/DocumentTemplate/DT_In.py, line 656, in renderwob (Object: sql.companies) File lib/python/Shared/DC/ZRDB/DA.py, line 420, in __getitem__ (Object: CopySource) File lib/python/Shared/DC/ZRDB/Aqueduct.py, line 332, in __getitem__ KeyError: (see above) Looking into it, line 332 in Aqueduct.py is a simple key lookup... def __getitem__(self, key): return self._data[key] It would seem that an argument is getting passed in by default when the sql in put in a parent's subfolder. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Wed Mar 10 01:09:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Tue, 9 Mar 1999 17:09:12 -0800 (PST) Subject: [Zope] Q: Setting/Creating variables Message-ID: I have been playing around with Zope/ZPublisher/DocumentTemplate and have been extremely pleased with the ease of development, as well as the power of the Python language. Sometimes I have found myself wanting to save the results of an expression in my DTML code, for use later in the same page (or even an embedded DTML object). The only thing I have used that is similar to DTML is ColdFusion, which has a CFSET tag, ie: or In reading the docs, it looked like I might be able to do something along the lines of but this didn't seem to work, and it's not very elegant either. Am I missing something? None of the howtos or tutorials seem to cover this. A / would be really spiffy. =) Please make sure you CC me if you respond to this message, as I had to unsubscribe due to the overwhelming amount of traffic. Thanks! -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From webmaster@mtear.com Wed Mar 10 01:16:29 1999 From: webmaster@mtear.com (webmaster@mtear.com) Date: Tue, 9 Mar 1999 17:16:29 -0800 Subject: [Zope] tree doesn't work 4me linux amd win32 In-Reply-To: <199903092000.MAA08338@zope.codeit.com> Message-ID: Andy wrote> Subject: [Zope] tree doesn't work 4me linux amd win32 I'm a zope newbie. I just installed on a windows 95 box and on a linux 2.0.something but I can't get anything with tree working (other stuff seems ok). Hadars' second sample app doesn't work for me (the tree part produces no output). Even the minimal doesn't produce output (tried this with the second Habar example after creating the "sub-folders"). I get the same behaviour on windows as linux. I must be doing something wrong. Clues please ? I had the same problem, but only with Zope 1.10.2. I noticed that DTML documents (the default to be created) won't work with the tree tag. If you create a DTML Method (like the old DTML from Zope 1.9) then they work as expected. I don't have a clue as to why this works like this. Maybe its the proerties of the DTML Documents that are acting folderish and tree doesn't know what to do? Hope that helps, Jason Spisak webmaster@mtear.com Jason Spisak Webamster Masterson, Tate & Associates 6151 West Century Boulevard #928 Los Angeles, CA 90045 http://www.mtear.com From TomJenkins@zentuit.com Wed Mar 10 01:17:48 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 9 Mar 1999 20:17:48 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <199903100120.UAA13261@mail.digiweb.com> Hello folks, Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does Medusa/ZopeHTTPServer support SSL? Thanks! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From luciano@magnet.com.br Wed Mar 10 01:52:31 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Tue, 09 Mar 1999 22:52:31 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: Message-ID: <4.1.19990309224955.009de8f0@10.0.0.1> We have been unable to access properties of the new DTML Document objects in the same way we used to access properties of Folders. I don't know whether we are doing something wrong or we found an inconsistency in the new 1.10 Zope API. Here is a very simplified test case illustrating the issue. I have a folder with these contents: folder1 [Folder] - broken_html [DTML Document] - index_html [DTML Document] - sub-document (The Grand Sub-Document) [DTML Document] - sub-folder (The Grand Sub-Folder) [Folder] The source of index_html (which works) is:

    Title of sub-item:

    Author of sub-item:

    This works as expected. The properties title and author of the sub-folder are retrieved. The source of broken_html is exactly the same, except for the sub-document reference:

    Title of sub-item:

    Author of sub-item:

    Viewing this document-method I get a "Zope Unavailable" message with this traceback: So, how do I access properties of sub-documents from a sub-document in the same folder? []s Luciano Ramalho -- Not all who wander are lost. [J.R.R.Tolkien] From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 02:13:50 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 21:13:50 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: On Tue, 9 Mar 1999, Luciano Ramalho wrote: > folder1 [Folder] > - broken_html [DTML Document] > - index_html [DTML Document] > - sub-document (The Grand Sub-Document) [DTML Document] > - sub-folder (The Grand Sub-Folder) [Folder] > > So, how do I access properties of sub-documents from a sub-document in the > same folder? > One way is to use DTML Methods instead of DTML Documents. For more info visit: http://www.gaaros.com:9673/FAQ/ The issue you raise is currently the first entry in the FAQ Pavlos From petrilli@amber.org Wed Mar 10 02:35:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 9 Mar 1999 21:35:04 -0500 Subject: [Zope] ZopeHTTPserver In-Reply-To: <199903100120.UAA13261@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 09, 1999 at 08:17:48PM -0500 References: <199903100120.UAA13261@mail.digiweb.com> Message-ID: <19990309213504.C26240@amber.org> On Tue, Mar 09, 1999 at 08:17:48PM -0500, Tom Jenkins wrote: > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? Nope, ZHS (for short) is derived from the example CGIHTTPServer.py that ships with Python---it's heavily modified though. ZServer is what is derived from Medusa and is currently in alpha (though pretty stable for me). As for SSL, not currently, and I'm not sure what's going to happen with this. You can use Apache+SSL right now for this. I've had some thoughts about it, but I'm not sure how SSL will impact an async-socket based system... the setup of new SSL connections is kind of heavy. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Jose.Lacal@icn.siemens.com Wed Mar 10 03:02:14 1999 From: Jose.Lacal@icn.siemens.com (Jose.Lacal@icn.siemens.com) Date: Tue, 9 Mar 1999 22:02:14 -0500 Subject: [Zope] Mailhost problems. Message-ID: <85256730.00104603.00@li01.lm.ssc.siemens.com> Folks: I am still stuck with a sendmail / Mailhost problem. Everything works fine except mailing from a DTML document via sendmail. I am using: Red Hat 5.2 Zope 1.10.2 - I created a username of "zope_u" and a group "zope" - I did run the installation script with a command line like: ./install -sAdmin:MyPassword -u zope_u -g zope - I created the Feedback and SendFeedback forms as per the manuals. - I added the user "zope_u" to the mail group. - I modified user zope_u's .bash_profile file to include the path to sendmail in /usr/sbin - If I log-in to the Linux server as zope_u, I _am_ able to call sendmail and to send mail outside of the server. Anything else I missed, folks? Regards. From luciano@magnet.com.br Wed Mar 10 03:19:24 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 00:19:24 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990309224955.009de8f0@10.0.0.1> Message-ID: <4.1.19990310001056.0127a5c0@10.0.0.1> At 21:13 09/03/99 -0500, Pavlos Christoforou wrote: >On Tue, 9 Mar 1999, Luciano Ramalho wrote: >> So, how do I access properties of sub-documents from >> a sub-document in the same folder? >> >One way is to use DTML Methods instead of DTML Documents. I understand the difference between DTML Methods and DTML Documents. The very reason I chose to do it with DTML Documents was to be able to store some special fields, such as 'author' in my example, along with the document. I cannot do that with DTML Methods, as they do not have properties. In Zope 1.0.9 I used folders but I was running into problems with relative links. It seemed natural to switch from my previous folders to the new DTML Documents. I still do not know to reference the properties of a DTML Document 'A' from within a document or method 'B' in located in the same folder as 'A'. Thanks for any help. []s Luciano From pavlos@gaaros.msrc.sunysb.edu Wed Mar 10 03:31:59 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 9 Mar 1999 22:31:59 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: On Wed, 10 Mar 1999, Luciano Ramalho wrote: > > The very reason I chose to do it with DTML Documents was to be able to > store some special fields, such as 'author' in my example, along with the > document. I cannot do that with DTML Methods, as they do not have properties. > > In Zope 1.0.9 I used folders but I was running into problems with relative > links. It seemed natural to switch from my previous folders to the new DTML > Documents. You are right. I was using folders too for the same reason. > > I still do not know to reference the properties of a DTML Document 'A' from > within a document or method 'B' in located in the same folder as 'A'. You can use the PARENTS variable. so if you have a folder which contains two DTML Documents A and B then you can access B's properties from A by: PARENTS[1] will return the folder or containing object one level up and PARENTS[-1] will return the top most Folder. Pavlos From luciano@magnet.com.br Wed Mar 10 04:45:22 1999 From: luciano@magnet.com.br (Luciano Ramalho) Date: Wed, 10 Mar 1999 01:45:22 -0300 Subject: [Zope] Access to DTML Document properties In-Reply-To: References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <4.1.19990310013702.0129a4d0@10.0.0.1> At 22:31 09/03/99 -0500, Pavlos Christoforou wrote: >You can use the PARENTS variable. > >so if you have a folder which contains two DTML Documents A and B then >you can access B's properties from A by: > >PARENTS[1] will return the folder or containing object one level up and >PARENTS[-1] will return the top most Folder. Thanks for your help, Pavlos. I found another way. Instead of writing: I wrote this, and it worked fine: I found a way, but I don't understand why the first syntax worked fine with Folders and fails with DTML Documents. If anyone would like to clarify the semantic difference between _['sub-document'] and _.getitem('sub-document'), I would be even happier. By the way, Pavlo's site http://www.gaaros.com:9673/ is useful! []s Luciano From amos@aracnet.com Wed Mar 10 06:00:04 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 09 Mar 1999 22:00:04 -0800 Subject: [Zope] Access to DTML Document properties In-Reply-To: <4.1.19990310013702.0129a4d0@10.0.0.1> References: <4.1.19990310001056.0127a5c0@10.0.0.1> Message-ID: <3.0.5.32.19990309220004.01152aa0@mail.aracnet.com> At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > > >I wrote this, and it worked fine: > > > >I found a way, but I don't understand why the first syntax worked fine with >Folders and fails with DTML Documents. If anyone would like to clarify the >semantic difference between _['sub-document'] and >_.getitem('sub-document'), I would be even happier. The answer is in both the ZDP's FAQ and the DTML Manager's Guide. _['foo'] "renders" foo according to DTML rules. This process mostly consists of calling DTML and other callable objects. _.getitem('foo') simply returns foo as found in the DTML namespace. The reason you were having problems is that _['sub-document'] renders the document to a string. Naturally strings don't have properties. Hence the error you got from Zope, "'string' object has no attribute 'title'". Make sense? -Amos From mwm@phone.net Wed Mar 10 07:58:25 1999 From: mwm@phone.net (Mike Meyer) Date: Tue, 9 Mar 1999 23:58:25 -0800 (PST) Subject: [Zope] Another "no such file" failure... Message-ID: I'm trying to get zope working to study it, but keep stumbling over the "(102) failure during connect" error - with the "No such file or directory" addendum. The underlying OS is FreeBSD 3.1. I want to run it on an Apache web server (at least for now), with the server doing the authentication. That all appears to be working properly - after all, I'm getting errors from pcgi, now, right? The var directory is writable by nobody. In fact, the entire source tree is owned by nobody, which is the user that the Apache httpd is running as. However, I get log file entries from pcgi, even after deleting the pcgi.log file. I initially tried copying the Zope.cgi file to cgi-bin, but noticed that some (unspecified) setting in Zope.cgi might need to change because of that, so I added a second scriptalias to the Apache httpd.conf pointing at the source directory, set the protections on it, and tried to load . No change - the log file records the same error message. The pcgifile.py test reports error attempting: 'from cgi_module_publisher import publish_module' This doesn't appear to exist in the distribution - and I recalled something about that being a holdover from bobo, so I removed that test from the script, and ran it again. The modified version runs cleans. Was I wrong about cgi_module_publisher? Should it be finding that? If not, then what's the next thing to look at? FWIW, here's the entry from httpd.conf section for Zope: SriptAlias /Zope-bin/ "/home/mwm/external-src/Zope-1.10.2-src/" AllowOverride None Options None FollowSymLinks Auth_PGhost sql Auth_PGport 5432 Auth_PGdatabase web Auth_PGpwd_table users Auth_PGuid_field name Auth_PGpwd_field password Auth_PG_encrypted off AuthName "Zope" AuthType basic require valid-user And here's Zope.cgi: #!/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/home/mwm/external-src/Zope-1.10.2-src/lib/python/Main.py PCGI_PUBLISHER=/home/mwm/external-src/Zope-1.10.2-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_SOCKET_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.soc PCGI_PID_FILE=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.pid PCGI_ERROR_LOG=/home/mwm/external-src/Zope-1.10.2-src/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/home/mwm/external-src/Zope-1.10.2-src Thanx, Message-ID: Hi! On Tue, 9 Mar 1999, Mike Pelletier wrote: > The connection string in Zope should be: > baseball@localhost:5432 your_user_name You don't need hostname and port part, so the connection string can be just "baseball user_name". (BTW, without host:port, libpq will connect to postgres using UNIX sockets, not TCP/IP. I think it is much better - for speed and security) > Mike. > > On Tue, 9 Mar 1999, William Whitehead wrote: > > > I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I > > was able to compile and add the ZPyGreSQL Product to my Zope installation. > > I want to create a Database connection. When I go to create a new one, it > > asks for the Id, Title, and Database Connection String. What do I put into > > the Database Connection String? I tried the database I want to use, but it > > gives > > > > Invalid connection String: baseball > > > > Is it a rights issue with PostgreSQL or something else? What is it > > expecting the database connection string field anyway? Thanks for your help! > > > > Bill > > > > > > - > > ====================================================================== > > William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | > > Library Information Systems | Email: | > > 2840 HBLL | mailto:william_whitehead@byu.edu | > > Provo, UT 84602 | Home Page | > > | http://www.lib.byu.edu/~wbw | > > ====================================================================== > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > > > -- > --- | Mike Pelletier Work: 519-746-1607 > /opeware! | Software Developer Home: 519-725-7710 > --- | mike@zopeware.com Fax: 519-746-7566 > http://www.zopeware.com | Zopeware is not endorsed by Digital Creations > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From prudek@sol.cz Wed Mar 10 08:46:10 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 09:46:10 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E63152.C315225C@sol.cz> Hi, I cannot go to management screen of Zope, probably due to some problem with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care to look at it. Thanks! -- Milos Prudek From anthony@interlink.com.au Wed Mar 10 09:07:59 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Wed, 10 Mar 1999 20:07:59 +1100 Subject: [Zope] streaming data through zope from an external method. Message-ID: <199903100907.UAA01717@mbuna.arbhome.com.au> I've got an external method that is generating a (possibly quite large) audio file and sending it back. Right now, I'm generating this in memory in a big string, then returning it to zope. I'd _like_ to be able to just have the external method send the data straight through (maybe in chunks) without having to read it all into memory. Is this possible with zope at all? Anthony From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 09:28:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 09:28:19 -0000 Subject: [Zope] ZPyGreSQL Database Connection Problem Message-ID: <000901be6ad8$55ac54b0$5c773fc1@media1> Try something like: dbname@machinename user password the password is optional HTH Phil ----- Original Message ----- From: William Whitehead To: Sent: Tuesday, March 09, 1999 5:34 PM Subject: [Zope] ZPyGreSQL Database Connection Problem >I just installed the updated version of PostgreSQL 6.4.2 on Linux 2.2.2. I >was able to compile and add the ZPyGreSQL Product to my Zope installation. >I want to create a Database connection. When I go to create a new one, it >asks for the Id, Title, and Database Connection String. What do I put into >the Database Connection String? I tried the database I want to use, but it >gives > >Invalid connection String: baseball > >Is it a rights issue with PostgreSQL or something else? What is it >expecting the database connection string field anyway? Thanks for your help! > >Bill > > >- >====================================================================== >William (Bill) Whitehead | Ph:(801)378-3266 Fax:(801)378-6708 | >Library Information Systems | Email: | >2840 HBLL | mailto:william_whitehead@byu.edu | >Provo, UT 84602 | Home Page | > | http://www.lib.byu.edu/~wbw | >====================================================================== > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From mj@antraciet.nl Wed Mar 10 09:30:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:30:41 +0100 Subject: [Zope] ZSQL methods in parent subfolder In-Reply-To: Message-ID: <4.1.19990310102902.00be2630@lisp.atmm.nl> At 01:56 10/03/99 , John Eikenberry wrote: >Is this behaviour a bug? > >I have all my ZSQL methods collected together in a folder. If I call these >from a sibling folder[1] without any arguments, ie. > > > >I get the below error, if I call them with specific arguments, ie. > > > >I get no errors. (comp_id was in REQUEST in both cases). Because you are calling "sql.company" (in quotes), it is assumed to be an expression, and your expression is referencing an attribute, not a method. Try using the following: "sql.company()", or sql.company (without quotes). Note: I didn't test either method. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Wed Mar 10 09:37:57 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 10:37:57 +0100 Subject: [Zope] Mailhost problems. In-Reply-To: <85256730.00104603.00@li01.lm.ssc.siemens.com> Message-ID: <4.1.19990310103401.00bd6560@lisp.atmm.nl> At 04:02 10/03/99 , Jose.Lacal@icn.siemens.com wrote: > > >Folks: > >I am still stuck with a sendmail / Mailhost problem. Everything works fine >except mailing from a DTML document via sendmail. > > > [SNIP] > >I am using: >Red Hat 5.2 >Zope 1.10.2 > >- I created a username of "zope_u" and a group "zope" > >- I did run the installation script with a command line like: > ./install -sAdmin:MyPassword -u zope_u -g zope > >- I created the Feedback and SendFeedback forms as per the manuals. > >- I added the user "zope_u" to the mail group. > >- I modified user zope_u's .bash_profile file to include the path to >sendmail in /usr/sbin > >- If I log-in to the Linux server as zope_u, I _am_ able to call sendmail >and to send mail outside of the server. > >Anything else I missed, folks? MailHost doesn't use sendmail, but rather opens a socket to the specified sendmail host and uses the SMTP protocol to send the messages. This is somehow prohibited. It looks like there is maybe no SMTP server listening on the specified address and port, or your machine is not allowed to connect. You could try and do a manual telnet to the address and port from the zope_u account and see what happens. Make sure you also go through the motions, like HELO , and such. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Wed Mar 10 10:00:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 10 Mar 1999 10:00:01 +0000 Subject: [Zope] sqltest vx. var In-Reply-To: <199903091627.IAA32000@zope.codeit.com> Message-ID: > > So, in otherwords, you get the type checking, the multiple, the optional, > etc... with #sqltest that you don't get otherwise. About the only problem > is that #sqltest currently doesn't do not-equals or "not in (...)". > .jPS | jeffrey@digicool.com Can #sqltest handle the 'wildcard' situation in MySQL (and probably other DBMSs too) select * from tbl where tbl_val like '%nib%' is a different SQL query from select * from tbl where tbl_val = 'niblet' my attempt... select * from tbl where ta Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Paul@digicool.com Wed Mar 10 11:30:28 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 10 Mar 1999 06:30:28 -0500 Subject: [Zope] streaming data through zope from an external method. Message-ID: <613145F79272D211914B0020AFF6401907BB34@GANDALF> Anthony wrote: > I've got an external method that is generating a (possibly > quite large) > audio file and sending it back. Right now, I'm generating > this in memory > in a big string, then returning it to zope. I'd _like_ to be > able to just > have the external method send the data straight through > (maybe in chunks) > without having to read it all into memory. Is this possible with zope > at all? I think the first problem will be finding a publisher that streams. PCGI buffers all I/O, perhaps FastCGI doesn't. Even if you didn't, sending it through Zope in chunks would avoid getting Zope's memory footprint up there. One way would be to have the ExternalMethod return a sequence, then do something like: Of course the above might be completely wrong, but you get the drift :^) --Paul From ShawH@STHS.org Wed Mar 10 12:40:43 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 06:40:43 -0600 Subject: [Zope] Images and Zope1.10.2 Message-ID: It does ! That's why I can't figure out what's wrong. I made certain he had every permission that seemed image related, and he still can't access it. ---------- From: Brian Lloyd [SMTP:Brian@digicool.com] Sent: Tuesday, March 09, 1999 1:44 PM To: 'Shaw, Howard'; 'Zope@zope.org' Subject: RE: [Zope] Images and Zope1.10.2 > I have a nifty system whereby each individual I add to a database > automatically gets a personal directory and password. One of my users > has come to me with a problem. He can add images to his directory, but > cannot subsequently edit the image (i.e. open the image's > manage screen) > as it complains about lack of permissions. The security role he has > contains all the image related options I see. He can delete it, btw. > This is not an immediate issue, but I do wonder why the permissions > don't seem to be working in a sensible manner. Why should he > be able to > add images, but not manage them? Are there extra 'image manage' > permissions? If so, where do I find them? > Make sure the user's role has the "Change Images and Files" permission... Hope this helps! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:29:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:29:07 -0000 Subject: [Zope] Image button values Message-ID: <008501be6b02$5b05b580$5c773fc1@media1> This is a multi-part message in MIME format. ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I'm using some image buttons and am having trouble getting the return = values for them. I have a button called answerbtn and the return values would be = 'answerbtn.x' and 'answerbtn.y', I need to check one of these values to = check whether this button was pressed. I have tried _['answerbtn.x'] but I get a traceback from Zope. Any Ideas? TIA Phil phil@media-1.ml.uwcm.ac.uk ------=_NextPart_000_0082_01BE6B02.5AE423C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all,
     
    I'm using some image buttons and am = having trouble=20 getting the return values for them.
     
    I have a button called answerbtn and = the return=20 values would be 'answerbtn.x' and 'answerbtn.y', I need to check one of = these=20 values to check whether this button was pressed.
     
    I have tried _['answerbtn.x'] but I get = a traceback=20 from Zope.
     
    Any Ideas?
     
    TIA
     
    Phil
    phil@media-1.ml.uwcm.ac.uk=
     
    ------=_NextPart_000_0082_01BE6B02.5AE423C0-- From jeffbauer@bigfoot.com Wed Mar 10 14:43:58 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Wed, 10 Mar 1999 08:43:58 -0600 Subject: [Zope] Another "no such file" failure... Message-ID: <36E6852E.1C76031D@rubic.com> Mike Meyer wrote: > I'm trying to get zope working to study it, but keep stumbling over > the "(102) failure during connect" error - with the "No such file or > directory" addendum. > > The underlying OS is FreeBSD 3.1. I want to run it on an Apache web > server (at least for now), with the server doing the > authentication. That all appears to be working properly - after all, > I'm getting errors from pcgi, now, right? Correct. > The pcgifile.py test reports > > error attempting: 'from cgi_module_publisher import publish_module' > > This doesn't appear to exist in the distribution - and I recalled > something about that being a holdover from bobo, so I removed that > test from the script, and ran it again. The modified version runs > cleans. > > Was I wrong about cgi_module_publisher? Should it be finding that? If > not, then what's the next thing to look at? Yes, it's a holdover from Bobo days (which some people are still using for existing apps) but you can ignore that particular error. Contact me offline and we'll try to get this resolved. Best regards, Jeff Bauer Rubicon, Inc. From mj@antraciet.nl Wed Mar 10 14:47:52 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 15:47:52 +0100 Subject: [Zope] Image button values In-Reply-To: <008501be6b02$5b05b580$5c773fc1@media1> Message-ID: <4.1.19990310154506.00bb7140@lisp.atmm.nl> At 15:29 10/03/99 , you wrote: >Hi all, >I'm using some image buttons and am having trouble getting the return values >for them. >I have a button called answerbtn and the return values would be 'answerbtn.x' >and 'answerbtn.y', I need to check one of these values to check whether this >button was pressed. >I have tried _['answerbtn.x'] but I get a traceback from Zope. >Any Ideas? Try::
    or::
  • : No form items To generate an overview of all form variables your DTML has access to. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 14:53:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 14:53:22 -0000 Subject: [Zope] Image button values Message-ID: <009101be6b05$be7e0150$5c773fc1@media1> Thanks for the suggestion Martijn but I've already tried that and it does indeed show variables of the form 'answerbtn.x'. But when I try to access them using one of: or or I get a traceback error, so I am none the wiser 8^( Thanks anyway Any other ideas? Phil phil@media-1.ml.uwcm.ac.uk ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 2:47 PM Subject: Re: [Zope] Image button values >At 15:29 10/03/99 , you wrote: >>Hi all, > >>I'm using some image buttons and am having trouble getting the return values >>for them. > >>I have a button called answerbtn and the return values would be 'answerbtn.x' >>and 'answerbtn.y', I need to check one of these values to check whether this >>button was pressed. > >>I have tried _['answerbtn.x'] but I get a traceback from Zope. > >>Any Ideas? > >Try:: > >
    > >or:: > > >
  • : > > No form items > > >To generate an overview of all form variables your DTML has access to. > > > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From michel@digicool.com Wed Mar 10 15:03:52 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:03:52 -0500 Subject: [Zope] tree doesn't work 4me linux amd win32 Message-ID: <613145F79272D211914B0020AFF6401907BB38@GANDALF> > > > I had the same problem, but only with Zope 1.10.2. I noticed > that DTML > documents (the default to be created) won't work with the > tree tag. If you > create a DTML Method (like the old DTML from Zope 1.9) then > they work as > expected. I don't have a clue as to why this works like > this. Maybe its > the proerties of the DTML Documents that are acting folderish and tree > doesn't know what to do? Read my reply to the orginal message in this thread as to why the tree tag doesn't work as you expect in DTML Documents. -Michel > > Hope that helps, > > Jason Spisak > webmaster@mtear.com > > Jason Spisak > Webamster > Masterson, Tate & Associates > 6151 West Century Boulevard #928 > Los Angeles, CA 90045 > http://www.mtear.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Wed Mar 10 15:06:19 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:06:19 -0500 Subject: [Zope] ZopeHTTPserver Message-ID: <613145F79272D211914B0020AFF6401907BB39@GANDALF> > -----Original Message----- > From: Tom Jenkins [mailto:TomJenkins@zentuit.com] > Sent: Tuesday, March 09, 1999 8:18 PM > To: zope@zope.org > Subject: [Zope] ZopeHTTPserver > > > Hello folks, > Correct me if I'm wrong, but ZopeHTTPServer is Medusa, correct? Does > Medusa/ZopeHTTPServer support SSL? > Thanks! Nope. ZopeHTTPServer is not Medusa, it is based on the HTTPServer that comes with Python. Medusa is it's own product, that we have integrated parts of into ZServer (which uses the core of Medusa to drive it's network end). http://www.nightmare.com/medusa/ For medusa info. http://www.zope.org/ for info on ZServer. Once ZServer is stable (it is alpha at the moment) use of ZopeHTTPServer will be depreciated (but not forgotten). -Michel > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > I suggested holding a "Python Object Oriented Programming Seminar", > but the acronym was unpopular. Joseph Strout, 28 Feb 1997 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 15:01:59 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 16:01:59 +0100 Subject: [Zope] Image button values In-Reply-To: <009101be6b05$be7e0150$5c773fc1@media1> Message-ID: <4.1.19990310160031.00bd7a60@lisp.atmm.nl> At 15:53 10/03/99 , Phil Harris wrote: >Thanks for the suggestion Martijn but I've already tried that and it does >indeed show variables of the form 'answerbtn.x'. But when I try to access >them using one of: > > or > or > > >I get a traceback error, so I am none the wiser 8^( > >Thanks anyway > >Any other ideas? > Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:15:54 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:15:54 -0000 Subject: [Zope] Image button values Message-ID: <00a801be6b08$e43dfa50$5c773fc1@media1> Well I'll give it another go then 8^) Thanks Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:21:19 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:21:19 -0000 Subject: [Zope] Image button values Message-ID: <00ae01be6b09$a5d91e60$5c773fc1@media1> Martijn, I tried it again, and it worked! It was my fault it didnt work in the first place 8^( Sorry for wasting your time Phil ----- Original Message ----- From: Martijn Pieters To: Phil Harris ; Sent: Wednesday, March 10, 1999 3:01 PM Subject: Re: [Zope] Image button values >At 15:53 10/03/99 , Phil Harris wrote: >>Thanks for the suggestion Martijn but I've already tried that and it does >>indeed show variables of the form 'answerbtn.x'. But when I try to access >>them using one of: >> >> or >> or >> >> >>I get a traceback error, so I am none the wiser 8^( >> >>Thanks anyway >> >>Any other ideas? >> > >Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... > >-- >M.J. Pieters, Web Developer >| Antraciet http://www.antraciet.nl >| Tel: +31-35-6254545 Fax: +31-35-6254555 >| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >------------------------------------------ From tschruefer@mail.howard.k12.md.us Wed Mar 10 15:27:35 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 10 Mar 1999 10:27:35 -0500 Subject: [Zope] New subscriber: Installing Zope Message-ID: <199903101525.KAA25149@mail.howard.k12.md.us> Having seen Zope recommended on Usenet last week, I decided to check it out, Monday I found the Webreview article in the email box. I have been reading as much as I can find, but one question is always on my mind, when ever I find one of these wonderful, does it all systems. Can I install it ? Not, is it to complicated to install, but do I need root access to the machine to install this application. This question and the answer have killed many a promising application (DB & BBS). So, the question is, can Zope be installed in a typical Telnet account ? The install docs mention, you have to be root user, to install some components, does this mean what I fear it means ? (machine admin, ie. super user) Tom From webmaster@mtear.com Wed Mar 10 12:43:59 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:43:59 -0500 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] Message-ID: <36E6690F.3F29A15@mtear.com> This is a multi-part message in MIME format. --------------FC234E87DDED8B9F783D1ACF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------FC234E87DDED8B9F783D1ACF Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E66801.26F0DC53@mtear.com> Date: Wed, 10 Mar 1999 07:39:29 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Michel Pelletier Subject: Re: [Zope-dev] The Spanish Aquisition References: <613145F79272D211914B0020AFF6401907BB37@GANDALF> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michel Pelletier wrote: > > > -----Original Message----- > > From: Jason Spisak [mailto:webmaster@mtear.com] > > Sent: Tuesday, March 09, 1999 4:57 PM > > To: zope-dev@zope.org > > Subject: [Zope-dev] The Spanish Aquisition > > > > > > Zopistas, > > > > I am trying to reference a property of a Folder that is in a totally > > spearate hirearchy of Zope. When inserted below the folder > > Iwish to grab > > the property of it works fine, but when moves elsewhere it dies. > > > > > > > > > > > > Hmm.. I'm not sure I understand the problem you want to solve, but have > you tried: > > Yes. I am trying to reference a folder that is not in the same path. And I tried your next suggestion a long time ago, with no luck. , and get an error with traceback: ) > > If the folder is one of your ancestors (ie above you and in your path) > you can just reference it's attributes like they were your own. If the > folder you are targeting is above you but not in your path (ie not an > ancestor) but is a child of one of your ancestors, you must first aquire > the folder, and then reference it's property, like this: > > > > The rule is: > If a folder is an ancestor of yours, you can just say > If a folder is a child of one of your ancestors, but not one of your > ancestors (like a cousin), you can say , because you must first aquire the folder. > This doesn't work. My paths are like, /staff/candidates/candidate1, and staff/companies/company1/job1/submission1/MyDocument. I am trying to reference a property of the candidate1 folder in the MyDocument document. Thanks for your time Michel. Jason Spisak webmaster@mtear.com --------------FC234E87DDED8B9F783D1ACF-- From webmaster@mtear.com Wed Mar 10 12:44:21 1999 From: webmaster@mtear.com (Jason Spisak) Date: Wed, 10 Mar 1999 07:44:21 -0500 Subject: [Zope] [Fwd: [Zope-dev] Vairable Query of TinyTables] Message-ID: <36E66925.458D5754@mtear.com> This is a multi-part message in MIME format. --------------AAF88E2DDEBDA15484C1770F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------AAF88E2DDEBDA15484C1770F Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <36E6652E.220B4EF3@mtear.com> Date: Wed, 10 Mar 1999 07:27:26 -0500 From: Jason Spisak X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Martijn Pieters Subject: Re: [Zope-dev] Vairable Query of TinyTables References: <4.1.19990310100907.00bd7100@lisp.atmm.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Worked like a charm! I am obviously new to objects. ;-) Thanks. Jason Spisak webmaster@mtear.com >Martijn Pieters wrote: > > At 22:59 09/03/99 , Jason Spisak wrote: > >By variable query I mean for example: > > > > > > > > > >
    > > > > > > > >Believe it or not, it doesn't choke, it just gives me nothing. > > TinyTables act like dictionary objects I think, and are keyed on strings. > AUTHENTICATED_USER is not a string, but an object, so you'll have to > convert it. Try calling AUTHENTICATED_USER.getUserName() instead. > > -- > M.J. Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ --------------AAF88E2DDEBDA15484C1770F-- From phil@media-1.ml.uwcm.ac.uk Wed Mar 10 15:40:28 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Wed, 10 Mar 1999 15:40:28 -0000 Subject: [Zope] Image button values Message-ID: <00c201be6b0c$52a8b400$5c773fc1@media1> Hmm, More on the image button saga. It seem's that does indeed work, but doesn't, and neither does the getitem way. Seems weird to me, any ideas? TIA Phil ----- Original Message ----- From: Phil Harris To: ; Martijn Pieters Sent: Wednesday, March 10, 1999 3:21 PM Subject: Re: [Zope] Image button values >Martijn, > >I tried it again, and it worked! > >It was my fault it didnt work in the first place 8^( > >Sorry for wasting your time > >Phil >----- Original Message ----- >From: Martijn Pieters >To: Phil Harris ; >Sent: Wednesday, March 10, 1999 3:01 PM >Subject: Re: [Zope] Image button values > > >>At 15:53 10/03/99 , Phil Harris wrote: >>>Thanks for the suggestion Martijn but I've already tried that and it does >>>indeed show variables of the form 'answerbtn.x'. But when I try to access >>>them using one of: >>> >>> or >>> or >>> >>> >>>I get a traceback error, so I am none the wiser 8^( >>> >>>Thanks anyway >>> >>>Any other ideas? >>> >> >>Hmm.. I just tested this, but I had no problem accessing on Zope 1.10.2.... >> >>-- >>M.J. Pieters, Web Developer >>| Antraciet http://www.antraciet.nl >>| Tel: +31-35-6254545 Fax: +31-35-6254555 >>| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj >>| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 >>------------------------------------------ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From petrilli@amber.org Wed Mar 10 15:50:27 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 10 Mar 1999 10:50:27 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310105027.C28029@amber.org> On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: > > Can I install it ? Not, is it to complicated to install, but do I need > root access to the machine to install this application. This question > and the answer have killed many a promising application (DB & BBS). You should be able to install a binary package as a typical user on a UNIX machine. If your machine already has Python 1.5.1 or higher installed (don't they all?!?!?! :-) then you can just install the basic source distribution of Zope and do the: $ python wo_pcgi.py Thing :-) You can then use the ZopeHTTPServer on a untrusted port (over 1000) and off you go :-) If you want to use Apache+PCGI you probably will need administrator support, and if yo uwant to be on a port under 1000 you'll need it. > The install docs mention, you have to be root user, to install some > components, does this mean what I fear it means ? (machine admin, ie. > super user) You should be able to get a feel for it without being root. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From michel@digicool.com Wed Mar 10 15:58:12 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 10 Mar 1999 10:58:12 -0500 Subject: [Zope] Apache Authorization Message-ID: <613145F79272D211914B0020AFF6401907BB3B@GANDALF> > -----Original Message----- > From: Milos Prudek [mailto:prudek@sol.cz] > Sent: Wednesday, March 10, 1999 3:46 AM > To: zope@zope.org > Subject: [Zope] Apache Authorization > > > Hi, > > I cannot go to management screen of Zope, probably due to some problem > with Apache. http://www.sol.cz/cgi-bin/Zope.cgi, if someone would care > to look at it. Thanks! > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf file will probably have something your not including in your apache. also, do an 'httpd -l' and make sure you have mod_rewrite compiled and/or dynamicly loaded in. http://www.zope.org/Community/Projects/Zap -Michel > -- > Milos Prudek > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From mj@antraciet.nl Wed Mar 10 16:06:04 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 10 Mar 1999 17:06:04 +0100 Subject: [Zope] [Fwd: [Zope-dev] The Spanish Aquisition] In-Reply-To: <36E6690F.3F29A15@mtear.com> Message-ID: <4.1.19990310170353.00bd7f00@lisp.atmm.nl> At 13:43 10/03/99 , Jason Spisak wrote: >This doesn't work. My paths are like, /staff/candidates/candidate1, and >staff/companies/company1/job1/submission1/MyDocument. I am trying to >reference a property of the candidate1 folder in the MyDocument >document. > will work. candidates is the object that is the common ancestor, and from there you can reference objects down that path. You will have to place the expression into quotes, however. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From kid@ans.net Wed Mar 10 16:14:13 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 10 Mar 1999 11:14:13 -0500 Subject: [Zope] New subscriber: Installing Zope In-Reply-To: <199903101525.KAA25149@mail.howard.k12.md.us>; from Thomas Schruefer on Wed, Mar 10, 1999 at 10:27:35AM -0500 References: <199903101525.KAA25149@mail.howard.k12.md.us> Message-ID: <19990310111413.E5210@throwingcopper.ans.net> You can indeed install it. I had originally had a standard telnet sort of account on a FreeBSD machine. You can basically get a full-featured Zope if your web provider runs apache with mod_rewrite. (If they don't have mod_rewrite, authentication is a little bit more of a headache.) The thing to beware of is that PCGI starts a long running process and many hosting companies will not be pleased about this. Kevin On Wed, Mar 10, 1999 at 10:27:35AM -0500, Thomas Schruefer wrote: ,----- | | Having seen Zope recommended on Usenet last week, I decided to check it | out, Monday I found the Webreview article in the email box. I have been | reading as much as I can find, but one question is always on my mind, | when ever I find one of these wonderful, does it all systems. | | Can I install it ? Not, is it to complicated to install, but do I need | root access to the machine to install this application. This question | and the answer have killed many a promising application (DB & BBS). | | So, the question is, can Zope be installed in a typical Telnet account ? | | The install docs mention, you have to be root user, to install some | components, does this mean what I fear it means ? (machine admin, ie. | super user) | | | Tom | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From david.a.wagle@healthpartners.com Wed Mar 10 16:56:41 1999 From: david.a.wagle@healthpartners.com (David Wagle) Date: Wed, 10 Mar 1999 10:56:41 -0600 (CST) Subject: [Zope] help on ZMySQL Message-ID: <14054.42057.794893.98199@plato.healthpartners.com> Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- From M.Faassen@vet.uu.nl Wed Mar 10 17:08:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 10 Mar 1999 18:08:28 +0100 Subject: [Zope] title and id properties in DTML methods Message-ID: <36E6A70C.687B26BA@pop.vet.uu.nl> Hi everybody, I'm probably completely confused, but if I understood it right, DTML Methods in Zope 1.10 are the same as Documents in Zope 1.9. I may remember wrongly, but wasn't it so that in 1.9 documents rendered the title and id of the actual document, and not that of the containing folder? In 1.10 in DTML methods, they appear to render the containing folder, instead. The only way I can access title of a DTML method in 1.10, is by referring to it specifically, i.e. . It works as expected with DTML Documents. Is this as it should be? Am I correct about the 1.9 behavior? If so, then DTML Methods don't seem to be exactly equivalent to 1.9 Documents, and this should probably be in the FAQ. :) Regards, Martijn From ShawH@STHS.org Wed Mar 10 19:45:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 10 Mar 1999 13:45:08 -0600 Subject: [Zope] help on ZMySQL Message-ID: Do it without the ';'. When it says 'that was not a query' it simply means that there was no returned results for it to display. If you check the database, the values should have been successfully inserted. ---------- From: David Wagle [SMTP:david.a.wagle@healthpartners.com] Sent: Wednesday, March 10, 1999 10:57 AM To: zope@zope.org Subject: [Zope] help on ZMySQL Zope 1.10.2 I have a ZSQL method for inserting data into the database. The database connection is active. the permissions are correct. the method is defined roughly as: insert into tblname (col1, col3, col4, col5) values (col1val, "value taht is constant", col4val, col5val); when I try and test it, Zope tells me that there is a parse error near ';'. I remove teh ';' and Zope tells me that "This was not a query." I'm missing something, and I'm hoping it's not my mind . . . any help? (oh, nad yes, the query works just fine when entered by hand in a mysql or xmysql connection) --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head --------------------------------------------- _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jeffrey@Digicool.com Wed Mar 10 21:56:35 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Wed, 10 Mar 1999 16:56:35 -0500 Subject: [Zope] help on ZMySQL Message-ID: <199903102156.NAA17945@zope.codeit.com> >From: David Wagle > I have a ZSQL method for inserting data into the database. > The database connection is active. > the permissions are correct. > the method is defined roughly as: > > insert into tblname (col1, col3, col4, col5) values > (col1val, "value taht is constant", col4val, col5val); > > when I try and test it, Zope tells me that there > is a parse error near ';'. If you're doing just a single query, you don't need the ';' (or its equivilent). If you're doing multiple queries, use to seperate them. The DA will seperate the queries using this. This is equivilent to what command line or other SQL tools often do with the ';' character. > I remove teh ';' and Zope tells me that > "This was not a query." Nothing is being returned is what this means (or more basically, it wasn't a SELECT based query). .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From prudek@sol.cz Wed Mar 10 22:41:42 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 10 Mar 1999 23:41:42 +0100 Subject: [Zope] Apache Authorization Message-ID: <36E6F526.D5A29939@sol.cz> > Try Zap, the precompiled apache for Zope (Linux only). The zap.conf > file will probably have something your not including in your apache. I can't use another apache just for Zope. I looked into zap.conf and incorporated some changes into my httpd.conf. No way. Since the log file of RewriteLog remains empty, I believe no rewriting takes place, actually. I have about 30 virtual servers on that httpd, maybe there lies the problem? Also this is Apache 1.3.3, do I need Apache 1.3.4? -- Milos Prudek From sfl@beehive.de Thu Mar 11 11:02:28 1999 From: sfl@beehive.de (Sebastian Luehnsdorf) Date: Thu, 11 Mar 1999 12:02:28 +0100 (CET) Subject: [Zope] Apache Authorization In-Reply-To: <36E6F526.D5A29939@sol.cz> Message-ID: On Wed, 10 Mar 1999, Milos Prudek wrote: > Since the log file of RewriteLog remains empty, I believe no rewriting > takes place, actually. I have about 30 virtual servers on that httpd, > maybe there lies the problem? Also this is Apache 1.3.3, do I need > Apache 1.3.4? > hi! No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI option? And did you remember to turn the RewriteEngine on? ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99 From ags@beehive.de Thu Mar 11 12:29:27 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 11 Mar 1999 13:29:27 +0100 (CET) Subject: [Zope] Converting Whitespaces Message-ID: Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex From prudek@sol.cz Thu Mar 11 13:16:25 1999 From: prudek@sol.cz (Milos Prudek) Date: Thu, 11 Mar 1999 14:16:25 +0100 (MET) Subject: [Zope] Apache Authorization In-Reply-To: Message-ID: Yes I turned rewite engine on, but maybe not in the right place. I wrote it into global config. I believe do not need to use ExecCGI, since I use ScriptAlias. And Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope introductory. I'm desperate.... ------------ Milos Prudek On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI > option? And did you remember to turn the RewriteEngine on? From ShawH@STHS.org Thu Mar 11 13:32:47 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Thu, 11 Mar 1999 07:32:47 -0600 Subject: [Zope] FW: [Zope] Converting Whitespaces Message-ID: Once again I forgot to cc the list. Sorry. ---------- From: Shaw, Howard Sent: Thursday, March 11, 1999 7:32 AM To: 'Alexander Schad' Subject: RE: [Zope] Converting Whitespaces Something in an external method similar to this should do the job. from string import split, join def stringtounderscore(str): return join(split(str," "),"_"); which is then called from your page as Alternatively, if this is something you only need occasionally, you can code it directly in DTML... Both of these are untested, but I have tested the join/split command in python directly: >>> join(split("this is a test string"," "),"_") 'this_is_a_test_string' >>> ---------- From: Alexander Schad [SMTP:ags@beehive.de] Sent: Thursday, March 11, 1999 6:29 AM To: zope@zope.org Subject: [Zope] Converting Whitespaces Hi ! I know there is a way to convert underscores to spaces (spacify) but i need it the other way around is. There a function to convert spaces to underscores and if not how can i do it elseway? Any help would be appreciated! Ciao, Alex _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" OK - I think I get it, but how do I "convert" a string to a reference to an object, so that I can call properties associated with the object (DTML document). This should be possible, isn't it??? Best regards Wiebe Kunst >At 01:45 AM 3/10/99 -0300, Luciano Ramalho wrote: > >> >> >>I wrote this, and it worked fine: >> >> >> >>I found a way, but I don't understand why the first syntax worked fine with >>Folders and fails with DTML Documents. If anyone would like to clarify the >>semantic difference between _['sub-document'] and >>_.getitem('sub-document'), I would be even happier. > >The answer is in both the ZDP's FAQ and the DTML Manager's Guide. > >_['foo'] "renders" foo according to DTML rules. This process mostly >consists of calling DTML and other callable objects. > >_.getitem('foo') simply returns foo as found in the DTML namespace. > >The reason you were having problems is that _['sub-document'] renders the >document to a string. Naturally strings don't have properties. Hence the >error you got from Zope, "'string' object has no attribute 'title'". > >Make sense? > >-Amos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:14:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:14:27 -0500 (EST) Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Alexander Schad wrote: > I know there is a way to convert underscores to spaces (spacify) but i > need it the other way around is. There a function to convert spaces to > underscores and if not how can i do it elseway? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 14:26:11 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 09:26:11 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <000001be6bc9$789ff520$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > OK - I think I get it, but how do I "convert" a string to a reference to an > object, so that I can call properties associated with the object (DTML > document). This should be possible, isn't it??? > >_.getitem('foo') simply returns foo as found in the DTML namespace. > > Wiebe You can use something like: (Is 0 the default?) _.getitem('foo',0) returns a reference to the object with id foo. Pavlos From phd@sun.med.ru Thu Mar 11 14:28:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 17:28:58 +0300 (MSK) Subject: [Zope] non-External Methods Message-ID: Hello! In ExternalMethods.html I found: "ernal Methods operate just like normal methods". But what are "normal" methods? The only thing I know is DTML Scripts. Are there other? Could I put Python code into Object Database? Should I? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From phil@media-1.ml.uwcm.ac.uk Thu Mar 11 14:50:07 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 11 Mar 1999 14:50:07 -0000 Subject: [Zope] Apache Authorization Message-ID: <006e01be6bce$749a5920$5c773fc1@media1> Turn on ExecCGI, you do need it ! ----- Original Message ----- From: Milos Prudek To: Sebastian Luehnsdorf Cc: Sent: Thursday, March 11, 1999 1:16 PM Subject: Re: [Zope] Apache Authorization >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > >------------ >Milos Prudek > >On Thu, 11 Mar 1999, Sebastian Luehnsdorf wrote: > >> No. Zope works fine with Apache 1.3.3. Did you remember to set the ExecCGI >> option? And did you remember to turn the RewriteEngine on? > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Wiebe Kunst" Thanks for a very fast reply, however it doesn't work. I'm still getting: Error value: 'string' object has no attribute 'title'. This is what I'm trying to do: A DTML document (index_html) has a property art1 which has an ID for another DTML document as value (type: string). In index_html I use: which renders the article. I can of course use in the actual article, but I rather don't. So I'm still banging my head in the wall after hours of trying to accomplish this. Can it be a bug with DTML documents?? Best regards Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> OK - I think I get it, but how do I "convert" a string to a reference to an >> object, so that I can call properties associated with the object (DTML >> document). This should be possible, isn't it??? > >> >_.getitem('foo') simply returns foo as found in the DTML namespace. >> > > >Wiebe > >You can use something like: > > (Is 0 the default?) > >_.getitem('foo',0) returns a reference to the object with id foo. > >Pavlos > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From M.Faassen@vet.uu.nl Thu Mar 11 15:00:45 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:00:45 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hello! > > In ExternalMethods.html I found: "ernal Methods operate just like normal > methods". But what are "normal" methods? The only thing I know is DTML > Scripts. Are there other? Could I put Python code into Object Database? > Should I? I think that DTML Methods (or Documents?) are meant. They are like methods to the folder objects that Zope publishes. Look at: http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I want your subfolder 'bar' (this could be seen as using a method on foo to request 'bar'), and then I want to view 'doc' (which is, let's say, a DTML method) in bar. 'doc' in that case is a method of the bar object, which, when called, returns HTML code (to the browser). An *external* method is a method which comes from outside the Zope object database (though it's loaded into it, and behaves just like a normal internal method). If all this talk turns out to be correct (somebody tell me or send corrections), then I can turn this into a FAQ entry. If anybody else feels like writing this up in a nice way for the FAQ (Oleg?) that'd even be better. Just send your contributions to the ZDP list. Regards, Martijn From phd@sun.med.ru Thu Mar 11 15:08:45 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:08:45 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DA9D.A8F818C2@pop.vet.uu.nl> Message-ID: Hi! That is, there are DTML Scripts and External Methods. Python code is used in External Methods and Products, but never goes into Object Database. On Thu, 11 Mar 1999, Martijn Faassen wrote: > > In ExternalMethods.html I found: "ernal Methods operate just like normal > > methods". But what are "normal" methods? The only thing I know is DTML > > Scripts. Are there other? Could I put Python code into Object Database? > > Should I? > > I think that DTML Methods (or Documents?) are meant. They are like > methods to the folder objects that Zope publishes. Look at: > http://localhost/Zope/foo/bar/doc as asking Zope 'okay, folder 'foo', I > want your subfolder 'bar' (this could be seen as using a method on foo > to request 'bar'), and then I want to view 'doc' (which is, let's say, a > DTML method) in bar. 'doc' in that case is a method of the bar object, > which, when called, returns HTML code (to the browser). > > An *external* method is a method which comes from outside the Zope > object database (though it's loaded into it, and behaves just like a > normal internal method). > > If all this talk turns out to be correct (somebody tell me or send > corrections), then I can turn this into a FAQ entry. If anybody else > feels like writing this up in a nice way for the FAQ (Oleg?) that'd even > be better. Just send your contributions to the ZDP list. > > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From M.Faassen@vet.uu.nl Thu Mar 11 15:14:57 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:14:57 +0100 Subject: [Zope] non-External Methods References: Message-ID: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Oleg Broytmann wrote: > > Hi! > > That is, there are DTML Scripts and External Methods. Python code is > used in External Methods and Products, but never goes into Object Database. I think it's true Product python code doesn't go into the Object Database, but I'm unclear about what happens with External Method python code. You need press the 'edit' button for an external method in Zope each time you changed something in it and want it updated. This would imply Python code can indeed be part of the Object database, right? Regards, Martijn From M.Faassen@vet.uu.nl Thu Mar 11 15:17:28 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 16:17:28 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> Message-ID: <36E7DE88.344745B3@pop.vet.uu.nl> Phil Harris wrote: > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a FAQ on this one? (I think I heard the Digicool folks are working on some FAQ document on Apache with Zope too, what's the status on this?). Regards, Martijn From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:28:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:28:52 -0500 (EST) Subject: [Zope] Access to DTML Document properties In-Reply-To: <001b01be6bd0$2188dde0$107b47c1@thinkpad> Message-ID: On Thu, 11 Mar 1999, Wiebe Kunst wrote: > A DTML document (index_html) has a property art1 which has an ID for another > DTML document as value (type: string). In index_html I use: which renders the article. I can of course use I haven't tried it myself but is this what you tried? Pavlos From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 15:40:07 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 10:40:07 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Actually not. For security reasons the code of an External method does not reside in the Object Database but in the filesystem. When you press the 'edit' button the code is read and evaluated and it is the evaluated code that is stored in the Object Database. There was a thread about whether the source code should be included in the Object Database but I think thge Digital Creators were not convinced. Pavlos From phd@sun.med.ru Thu Mar 11 15:41:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:41:22 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> Message-ID: On Thu, 11 Mar 1999, Martijn Faassen wrote: > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? May be... Thanks for replaying. > Regards, > > Martijn Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From raver@box.dust.za.net Thu Mar 11 15:51:26 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 16:51:26 +0100 Subject: [Zope] Passing forms data to external python methods Message-ID: <19990311165126.A577@RaVER.duck.org> --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=arg-mail Hi! I have a form here wich should submit 5 values on to an external python method (as 5 arguments to a function). Now - one value from form to function is no problem - more then one is. Questions arise.... How are more than 1 value submitted from a form? How can I get those values passed onto an external method, and have the values assigned to the functions argument? Help is much appreciated! Sture --ZPt4rx8FFjLCG7dd-- From mj@antraciet.nl Thu Mar 11 15:52:20 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 11 Mar 1999 16:52:20 +0100 Subject: [Zope] non-External Methods In-Reply-To: <36E7DDF1.FBC181BF@pop.vet.uu.nl> References: Message-ID: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> At 16:14 11/03/99 , Martijn Faassen wrote: >Oleg Broytmann wrote: >> >> Hi! >> >> That is, there are DTML Scripts and External Methods. Python code is >> used in External Methods and Products, but never goes into Object Database. > >I think it's true Product python code doesn't go into the Object >Database, but I'm unclear about what happens with External Method python >code. You need press the 'edit' button for an external method in Zope >each time you changed something in it and want it updated. This would >imply Python code can indeed be part of the Object database, right? > No, it forces Python to recompile the code. The code itself is NOT stored int the object database. Only instance data is stored in the object database, no code is. Zope classes are said to change all this, aren't they, DC? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Thu Mar 11 15:52:40 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 18:52:40 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > > imply Python code can indeed be part of the Object database, right? > > Actually not. For security reasons the code of an External method does > not reside in the Object Database but in the filesystem. When you press > the 'edit' button the code is read and evaluated and it is the evaluated What is "evaluated"? Compiled? > code that is stored in the Object Database. There was a thread about > whether the source code should be included in the Object Database but I I watched the thread and did understand the security implications. > think thge Digital Creators were not convinced. > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffrey@Digicool.com Thu Mar 11 15:57:47 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 10:57:47 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111557.HAA09410@zope.codeit.com> >From: Martijn Faassen > I think it's true Product python code doesn't go into the Object > Database, but I'm unclear about what happens with External Method python > code. You need press the 'edit' button for an external method in Zope > each time you changed something in it and want it updated. This would > imply Python code can indeed be part of the Object database, right? Pressing the 'edit' button "reloads" that particular External Method code into the system. It's not stored in the database at all - the External Method object you add/edit through the Zope management screens is primarily a pointer/wrapper to a method in a module in the Extensions directory. The Edit button in essence acts similar to the reload(module) function in Python. Basically, Zope (and Python) don't have a way of knowing the code in a module has changed unless it's explicitly reloaded, which is a good thing. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From pavlos@gaaros.msrc.sunysb.edu Thu Mar 11 16:07:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 11 Mar 1999 11:07:22 -0500 (EST) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Oleg Broytmann wrote: > > What is "evaluated"? Compiled? > > > code that is stored in the Object Database. There was a thread about > > whether the source code should be included in the Object Database but I > > I watched the thread and did understand the security implications. > Well this is how I understood the process. Basically the code is read and exec-ed and the the func_code func_code.co_varnames are extracted. Then they apply all the clever tricks to turn the function into a valid Zope method, by (I assume) creating a Zope method and replacing its func_code and the associated func_defaults and arguments with the ones extracted from the external function. The relevant code can be found in Zope/lib/python/App/Extensions.py and Zope/lib/python/Products/ExternalMethod/ExternalMethod.py Pavlos From phd@sun.med.ru Thu Mar 11 16:11:58 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Thu, 11 Mar 1999 19:11:58 +0300 (MSK) Subject: [Zope] non-External Methods In-Reply-To: Message-ID: Hi! Thank you! On Thu, 11 Mar 1999, Pavlos Christoforou wrote: > Well this is how I understood the process. > > Basically the code is read and exec-ed and the the func_code > func_code.co_varnames are extracted. Then they apply all the clever tricks > to turn the function into a valid Zope method, by (I assume) creating a > Zope method and replacing its func_code and the associated func_defaults > and arguments with the ones extracted from the external function. > > The relevant code can be found in > Zope/lib/python/App/Extensions.py and > Zope/lib/python/Products/ExternalMethod/ExternalMethod.py > > > Pavlos Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Wiebe Kunst" Yes I did, but... I finally found out by trying: This works like a dream. Thanks a lot again. Wiebe Kunst >On Thu, 11 Mar 1999, Wiebe Kunst wrote: > >> A DTML document (index_html) has a property art1 which has an ID for another >> DTML document as value (type: string). In index_html I use: which renders the article. I can of course use > >I haven't tried it myself but is this what you tried? > > > >Pavlos > > From jeffrey@Digicool.com Thu Mar 11 17:09:23 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:09:23 -0500 Subject: [Zope] pretty printable pages at zope.org Message-ID: <199903111709.JAA12826@zope.codeit.com> We now have sortof-pretty printable pages at Zope.org :). At the bottom of every page with the standard header/footer is a link "Printable Page" which links to the same page being viewed, but passes a value to standard_html_header/footer that is used to _not_ render the surround Zope layout (sidebar, navigation bar). For example, http://www.zope.org/Information/Zen/HTMLMethods?pp=1 .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From jeffrey@Digicool.com Thu Mar 11 17:27:07 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Thu, 11 Mar 1999 12:27:07 -0500 Subject: [Zope] non-External Methods Message-ID: <199903111726.JAA13377@zope.codeit.com> >From: "Shaw, Howard" > Does this mean that when Zope is stopped and restarted, it is as if > every External Method has its 'edit' button repushed? If I change code > in an External Method, but don't manually reload it, it will be reloaded > the next time the Zope process restarts? This seems to conflict with > Christoforou's description... Perhaps DC can clarify? External Methods are (to the best of my knowledge) evaluated and their compiled code is kept in process memory (effectively cached) the first time the object (the External Method object pointing to a particular module/method) is activated. It is removed from process memory when the object is de-activated. This is kindof a tricky process and may be effectively cleaned up in the near future so I won't go into too many details here. An important thing to keep in mind is (again, this may change soon) that the compiled code is kept locally in each External Method Object. If you have two EM's in Zope pointing to the same code, you have to use the "Edit" button on _both_ External Method objects to effectively reload it. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From raver@box.dust.za.net Thu Mar 11 17:44:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Thu, 11 Mar 1999 18:44:13 +0100 Subject: [Zope] Letting everyone view contents of a newly built site Message-ID: <19990311184413.A1175@RaVER.duck.org> Hi! Just made a small test-site, and followed the Zope magager guide to how to let anyone view my newly made site, but thisg doesn't work. The doc say that by default everyone should have access to view the contents of a site made by zope, but here the authorization/authentication dialogue pops up whenever someone try to access the site. Cancelling username/passwd just ends in failure. Why ? I'm using apache as webserver for zope and has made it so that apache handles the authentication bit, but still - shouldn't it let 'anonymous' trough? I've had a look at the security settings for both folders and files and they all let 'anonymous view'. Whats wrong? Sture From M.Faassen@vet.uu.nl Thu Mar 11 17:53:41 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 18:53:41 +0100 Subject: [Zope] non-External Methods References: <4.1.19990311165048.00ba07e0@lisp.atmm.nl> Message-ID: <36E80325.B637033F@pop.vet.uu.nl> Martijn Pieters wrote: > Martijn Faassen wrote: > > You need press the 'edit' button for an external method in Zope > > each time you changed something in it and want it updated. This would > > imply Python code can indeed be part of the Object database, right? > > No, it forces Python to recompile the code. The code itself is NOT stored > int the object database. Only instance data is stored in the object > database, no code is. Zope classes are said to change all this, aren't > they, DC? Aah, of course, I see. Thanks! Martijn From M.Faassen@vet.uu.nl Thu Mar 11 18:09:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:09:54 +0100 Subject: [Zope] non-External Methods References: <199903111726.JAA13377@zope.codeit.com> Message-ID: <36E806F2.F20A4457@pop.vet.uu.nl> Jeffrey P Shell wrote: [enlightnening discussion on External Methods snipped] Thanks everybody, I added this to the FAQ. Regards, Martijn From kid@ans.net Thu Mar 11 18:49:39 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 13:49:39 -0500 Subject: [Zope] Letting everyone view contents of a newly built site In-Reply-To: <19990311184413.A1175@RaVER.duck.org>; from raver@box.dust.za.net on Thu, Mar 11, 1999 at 06:44:13PM +0100 References: <19990311184413.A1175@RaVER.duck.org> Message-ID: <19990311134939.A7002@throwingcopper.ans.net> Hello! On Thu, Mar 11, 1999 at 06:44:13PM +0100, raver@box.dust.za.net wrote: ,----- | Hi! | | Just made a small test-site, and followed the Zope magager guide to how to | let anyone view my newly made site, but thisg doesn't work. The doc say that | by default everyone should have access to view the contents of a site made | by zope, but here the authorization/authentication dialogue pops up whenever | someone try to access the site. Cancelling username/passwd just ends in | failure. Why ? I'm using apache as webserver for zope and has made it so that | apache handles the authentication bit, but still - shouldn't it let | 'anonymous' trough? I've had a look at the security settings for both | folders and files and they all let 'anonymous view'. Whats wrong? When you say that you made it so that Apache handles the authentication, I take that to mean you have created a .htaccess file? If that is the case, Apache will always prompt for the password and check it against your password file. If you use mod_rewrite to let Zope handle authentication, you will not see the password prompt for resources that are available to anonymous users. Kevin | | Sture | | | _______________________________________________ | Zope maillist - Zope@zope.org | http://www.zope.org/mailman/listinfo/zope | | (For developer-specific issues, use the companion list, | zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From M.Faassen@vet.uu.nl Thu Mar 11 18:55:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 19:55:54 +0100 Subject: [Zope] Zope FAQ 0.2.1 and zdp.zope.org Message-ID: <36E811BA.23802256@pop.vet.uu.nl> Zopists, Zope-hackers, Zopineers and Zopistas, The ZDP is pleased to announce the creation of the zdp.zope.org website. Thanks to Brian Brown of BW Group for generously providing Zope space for the ZDP! Also thank you to the wonderful people at Digital Creations for their support. So go ahead and visit us at: http://zdp.zope.org Please note that zdp.zope.org is very much a work in progress, and so is the Zope FAQ (currently at revision 0.2.1). Still, we've come a long way in barely two weeks time! The FAQ appears to be already useful to some people, which is very good to know. The ZDP and the Zope FAQ eagerly await your contributions, by the way. So run and join the ZDP mailing list! My apologies to the people who may have heard this before. :) Regards, Martijn From da@ski.org Thu Mar 11 19:55:43 1999 From: da@ski.org (David Ascher) Date: Thu, 11 Mar 1999 11:55:43 -0800 (Pacific Standard Time) Subject: [Zope] Guestbook Message-ID: The guestbook product is broken in 1.10.2. I've 'fixed' it by removing both references to OFS.DocumentHandler (import and class inheritance). Now it's not broken, but it doesn't seem to work! Anytime I enter any data, it says 'data entered' but nothing ever shows up in the data view. Has anyone fixed this? BTW, I couldn't find an author name listed anywhere. --david From amos@aracnet.com Thu Mar 11 20:37:49 1999 From: amos@aracnet.com (Amos Latteier) Date: Thu, 11 Mar 1999 12:37:49 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Hello Zopesters: Are you confused by the subtleties of DTML? Want the skinny on advanced DTML tricks and gotchas? Check out my advanced DTML HowTo: http://www.zope.org/Documentation/HowTo/DTML This document explains in detail the concepts behind advanced DTML tricks like indirect variable lookup, setting variables, calling sub-templates with different client objects, etc. Its main emphasis is on understanding how DTML uses a namespace stack to manage variable lookups. Enjoy and send me your feedback. -Amos P.S. Probably at least some of this material will be incorporated into the DTML User's Guide in the future. From M.Faassen@vet.uu.nl Thu Mar 11 21:12:13 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 11 Mar 1999 22:12:13 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E831AD.FF7FE4F4@pop.vet.uu.nl> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Thanks! Although by now I knew most of what was mentioned (though it sure was nice seeing it all together in one place) this will be invaluable for people who want to get up to speed with DTML. Martijn From mbernstein@profitscape.net Thu Mar 11 21:28:31 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Thu, 11 Mar 1999 13:28:31 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo References: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: <36E8357F.3DE329F@profitscape.net> Amos Latteier wrote: > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML Excelent! This is so much clearer than isolated answers to 'how-do-I' questions. This gives me the context I've been missing! Thanks! Michael Bernstein. From crowland@psionic.com Thu Mar 11 22:23:29 1999 From: crowland@psionic.com (Craig H. Rowland) Date: Thu, 11 Mar 1999 16:23:29 -0600 (EST) Subject: [Zope] Newbie questions. Message-ID: Hello, I've looked through all the docs, FAQs and threads of the Zope list for some of these answers and haven't found a clear method described. I'll apologize now if the questions seem obvious, but I'm new to deploying Zope on a web server and need some initial Zope setup guidance. Question 1: Under Zope, what is the proper way to configure the website so users can simply go to http://www.example.com instead of: http://www.example.com/example http://www.example.com:9673/ etc. My understanding is that the mod_rewrite rules will have to come into effect here. Will I also need to do a re-direct of some type? I need some way to direct all URL requests so they are re-written to point to the correct Zope folder. The ideal for me is to have a series of folders in Zope that contain separate websites. The sites can be virtual hosted as needed (although right now I'm only running one site). I can't find a clear description of how to make this happen. Also I don't want to run a separate Zope process and proxy people to the port. I want to have everything running on port 80. I'll have to agree with other posters that a tutorial on the design of the actual Zope site with Zope would be very helpful as they are using a layout of html and hierarchy that is very similar to what I'm pursuing. In fact if someone could provide me with a description of the config they're using it would be a huge help. Question 2: Under .DTML construction of links is it generally considered "better" Zope practice to reference the entire URL or the Zope object hierarchy directly? Question 3: I don't want tracebacks to appear under any circumstances to the end users. I haven't tried anything to counter this yet, but wanted to know what some others have done. Would an approach to this be a try/except positioned in the standard_html_header and footer files? Ideally I would like to catch all exceptions and have it automatically mail the exceptions to the webmaster instead of showing the user (In fact I think this would be a good feature for the product). Question 4: Has anyone pursued a security audit of the Zope code? I've been considering doing this (not that I don't trust the Zope developers, it's just that I don't trust anyone) and would like to work with others if possible. Several of the sites I admin get hacked on very frequently and I'm a little nervous about replacing static web pages with no CGI running anywhere with the exact opposite end of the spectrum with Zope. :) I'm also going to prepare a document describing how to run Zope in a chroot() environment under UNIX to increase security. I'll let the list know when it is complete. Thank you for any responses, -- Craig From gdeering@csu.edu.au Thu Mar 11 23:50:02 1999 From: gdeering@csu.edu.au (Geoff Deering) Date: Fri, 12 Mar 1999 09:50:02 +1000 Subject: [Zope] Zope Benchmarks and Performance testing Message-ID: <000201be6c19$e16afd20$cd86a689@gdeering.mur.csu.edu.au> I'm new to this list. It seems to me that the www.zope.org is rather slow this week. Documents are taking far too long to be parsed. Pings seem reasonable, so I am expecting that the server may be receiving a lot of requests and being overloaded (maybe from the Web Review article). So I am just wondering what the specs of the system that the www.zope.org ISP is using. Also wondering about stress tests and benchmarks for the Zope system. (It must also depend on backend systems etc) Geoff Deering Web Programmer Charles Sturt University From kid@ans.net Thu Mar 11 23:31:54 1999 From: kid@ans.net (Kevin Dangoor) Date: Thu, 11 Mar 1999 18:31:54 -0500 Subject: [Zope] Problem setting security on a DTML Method Message-ID: <19990311183154.A7550@throwingcopper.ans.net> Hi, Using Zope 1.10.2 on Win95, I was trying to set permissions on a DTML Method. I was trying to set everything except "View" to the Acquired permissions. View was turned on only for "Manager" and "Editor". When I click the change button after setting things as I just described, I get the following Traceback: Traceback (innermost last): File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 877, in publish_module File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /beta/incoming/edit/manage_changePermissions) File C:\Program Files\WebSite\lib\python\AccessControl\Role.py, line 194, in manage_changePermissions (Object: edit) File C:\Program Files\WebSite\lib\python\AccessControl\Permission.py, line 166, in setRoles AttributeError: manage_addProperty If I'm not doing something foolish here, I'll submit this to the Collector. Thanks! Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From jae@kavi.com Fri Mar 12 00:02:23 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 11 Mar 1999 16:02:23 -0800 (PST) Subject: [Zope] Newbie questions. In-Reply-To: Message-ID: On Thu, 11 Mar 1999, Craig H. Rowland wrote: > Question 1: > > Under Zope, what is the proper way to configure the website so users can > simply go to http://www.example.com instead of: > > http://www.example.com/example > http://www.example.com:9673/ > etc. Use Apache's VirtualHost ability... Look here for more info: http://www.apache.org/docs/vhosts/ An example: # in httpd.conf # your ip NameVirtualHost 192.123.44.3 # your standard host.domain (this must come first) ServerName your.standard.name DocumentRoot /home/httpd/html # one or more extra virtual hosts ServerName your.zope.name DocumentRoot /home/httpd/html RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From andreww@netscape.com Fri Mar 12 00:35:21 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Thu, 11 Mar 1999 16:35:21 -0800 Subject: [Zope] Lots of questions: Message-ID: <36E86145.7BF0385B@netscape.com> 1) How do I get Zope to run as a service on my NT box so I dont have to stay logged in for it to run? 2) When I upgrad Zope will I have to re-build all of my applications? 3) Is there an IRC channel for ZOPE? IF not I would like to offer the idea of creating one on say the mozilla or slashdot servers 4) Is there anyone interested in working with me on a Zope/Dreamweaver cross-communication project? -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From andy@ictibroker.com Fri Mar 12 01:10:32 1999 From: andy@ictibroker.com (Andy Smith) Date: Thu, 11 Mar 1999 20:10:32 -0500 Subject: [Zope] Guestbook In-Reply-To: Message-ID: <000001be6c25$2026dc40$0363efa1@atlantis.nyr.cable.rcn.com> > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of David > Ascher > Sent: Thursday, March 11, 1999 2:56 PM > To: The Zope Group > Subject: [Zope] Guestbook > > > The guestbook product is broken in 1.10.2. I've 'fixed' it by removing > both references to OFS.DocumentHandler (import and class inheritance). > Now it's not broken, but it doesn't seem to work! Anytime I enter any > data, it says 'data entered' but nothing ever shows up in the data view. > Has anyone fixed this? > > BTW, I couldn't find an author name listed anywhere. > I'm the guilty party (!) I found this problem before but so far haven't found the fix.... here's what I originally posted to the list. I'd like to get this sorted out as I'm also working on a Souped (Zoped?) up version of Amos's poll product, which produces pie-chart gifs in response to the poll results, but it also broke in much the same manner going from 1.9 to 1.10. So any help on this matter would be much appreciated! Cheers, Andy. ============================================================== -----Original Message----- From: Andy Smith [mailto:andy.smith@iname.com] Sent: Friday, February 19, 1999 2:29 PM To: Phil Harris; zope@zope.org Subject: RE: [Zope] Guestbook Product I get the same thing :( Hmm.. looks like DocumentHandler no longer exists. I've taken out DocumentHandler from the Guestbook, to mimick the change that has been made to 'Folder' going from 1.9->1.10. When doing the guestbook, I kept making sideways glances to Folder.py to see how it was done ;) The book no longer crashes but I'm getting some other wierdness. The guestbook is a folderish product which contains two documents that the user can add to change the appearance of the guestbook. They're added by the following lines in the 'add' method ... # Add a Document used to view previous entries fileName = os.path.join(prefix,'index.dtml') index2 = open(fileName,'r').read() i = DTMLMethod(index2,__name__='index_html') print "i is %s" % i.meta_type i.title='Change me to determine how entries are viewed' self._setObject('index_html',i) print "ObjectItems is %s" % list(self.objectItems()) The added objects no longer seem to be showing up in objectItems(). The debug statement, when run on 1.9 prints out the newly added object in the call to 'objectItems()', while on 1.10 it returns an empty list. Is this a side-effect of the removal of DocumentHandler? I thought that _setObject was being inherited from ObjectManager, so wouldn't be affected by the removal of DocumentHandler. Cheers, Andy. > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil > Harris > Sent: Friday, February 19, 1999 8:46 AM > To: zope@zope.org > Subject: [Zope] Guestbook Product > > > Has anyone else noticed that the GuestBook Product no longer > works in 1.10? > > Is it just me or what? > > I get a traceback of > > Traceback (innermost last): > File "/usr/local/Zope-1.10.0pr1-src/lib/python/OFS/Application.py", line > 393, in import_products > product=__import__(pname, global_dict, global_dict, silly) > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/__init__.py", > line 7, in ? > import GuestBook > File > "/usr/local/Zope-1.10.0pr1-src/lib/python/Products/GuestBook/Guest > Book.py", > line 7, in ? > from OFS.Document import DocumentHandler, Document > ImportError: cannot import name DocumentHandler > > Any Ideas? > > Phil > From wolf@searchbutton.com Fri Mar 12 04:16:44 1999 From: wolf@searchbutton.com (Wolf Logan) Date: Thu, 11 Mar 1999 20:16:44 -0800 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <810F7CEE7B5FD211B68A00400541C762071804@orion.searchbutton.com> i was reading and enjoying the guide when i came across this line: "at different points while rending a DTML document..." i know at times *i've* wanted to rend a DTML document, but i didn't realize that zope did it too. :) > -----Original Message----- > From: Amos Latteier [SMTP:amos@aracnet.com] > Sent: Thursday, March 11, 1999 12:38 PM > > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: > > http://www.zope.org/Documentation/HowTo/DTML > From chsrinfo@guetali.fr Fri Mar 12 05:36:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 09:36:36 +0400 Subject: [Zope] Apache Authorization Message-ID: <009401be6c51$67cea7e0$147800a0@pc-pi0> >Yes I turned rewite engine on, but maybe not in the right place. I wrote >it into global config. > >I believe do not need to use ExecCGI, since I use ScriptAlias. And >Zope.cgi gets executed, I otherwise wouldn't be able to get to Zope >introductory. > >I'm desperate.... > Well, under RedHat 5.2, mod_rewrite is a DSO, and is activated in the *middle* of the httpd.conf. I had the same problem. The rewrite rules put a the top of the file have no effect because they occur *before* mod_rewrite is activated. I had to put the rewrite rules a the end of the file. I works now. I don't know if this will solve your problem, but, just in case... Regards, Jephte CLAIN Service Informatique CHSR From chsrinfo@guetali.fr Fri Mar 12 07:55:17 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 12 Mar 1999 11:55:17 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <00a401be6c5d$caec6180$147800a0@pc-pi0> Hello, Correct me if i'm wrong: one has got to have "access content informations" permission to be able to write: right? I've been bitten with that, and once i gave "access content informations" to the Anonymous User, my problem went away. Also, before I submit this to the Collector, is it normal that the "use mailhost services" doesn't appear in the security tab of the folders? Each product has its permissions that are listed, but nothing with the mailhost object. I had to change it directly in the mailhost object. If it's normal, it means that i can't give global permission for mailhost objects??? What confuse me, however, is that the mailhost object claims to "acquire" permission settings from its parents, but nowhere in its parents i can define the permissions. Regards, Jephte CLAIN Service Informatique CHSR From jim.bickford@flinders.edu.au Fri Mar 12 08:52:47 1999 From: jim.bickford@flinders.edu.au (Jim Bickford) Date: Fri, 12 Mar 1999 18:22:47 +0930 Subject: [Zope] Fsimport problems Message-ID: <36E8D5DF.CD3009CB@flinders.edu.au> Hi... I'm having no luck importing an existing file tree using fsimport with Zope-1.10.2 with pcgi Apache... it seemed to work well under 1.9 ... but then I was also using ZopeHttpServer Could that be the problem or something I have done.. Thanks guys for a great system... Cheers JimB This is the dump: Sorry, an error occurred. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Bio/fsimport) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/home/jimb/AAA-work/bio.www/body', form: fsdir: '/home/jimb/AAA-work/bio.www/body' environ: DOCUMENT_ROOT: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs' HTTP_ACCEPT_ENCODING: 'gzip' SCRIPT_FILENAME: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' PCGI_NAME: 'Main' PCGI_MODULE_PATH: '/usr/local/Zope-1.10.2-linux2-x86/lib/python/Main.py' SERVER_PORT: '9673' PATH_TRANSLATED: '/usr/local/Zope-1.10.2-linux2-x86/Zap/htdocs/Bio/fsimport' REMOTE_ADDR: '129.96.230.155' SCRIPT_NAME: '/Zope' PCGI_EXE: '/usr/local/Zope-1.10.2-linux2-x86/bin/python' HTTP_ACCEPT_LANGUAGE: 'en,de,af' PCGI_PUBLISHER: '/usr/local/Zope-1.10.2-linux2-x86/pcgi/pcgi_publisher.py' GATEWAY_INTERFACE: 'CGI/1.1' SERVER_NAME: 'daphne.bio.flinders.edu.au' HTTP_CONNECTION: 'Keep-Alive' HTTP_USER_AGENT: 'Mozilla/4.5 [en] (WinNT; I)' HTTP_ACCEPT_CHARSET: 'iso-8859-1,*,utf-8' HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*' REQUEST_URI: '/Zope/Bio/fsimport?fsdir=/home/jimb/AAA-work/bio.www/body' PCGI_INFO_FILE: '/usr/local/Zope-1.10.2-linux2-x86/Zap/../Zope.cgi' HTTP_COOKIE: 'tree-s="eJyLjjaMjQUABOIBog"; dtpref_rows="55"; dtpref_cols="100"' PATH: '/sbin:/usr/sbin:/bin:/usr/bin' QUERY_STRING: 'fsdir=/home/jimb/AAA-work/bio.www/body' SERVER_PROTOCOL: 'HTTP/1.0' HTTP_HOST: 'daphne.bio.flinders.edu.au:9673' SCRIPT_URL: '/Zope/Bio/fsimport' REMOTE_PORT: '1931' PCGI_PID_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.pid' SERVER_SIGNATURE: '' SCRIPT_URI: 'http://daphne.bio.flinders.edu.au:9673/Zope/Bio/fsimport' PCGI_SOCKET_FILE: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.soc' SERVER_ADMIN: '[no address given]' SERVER_SOFTWARE: 'Apache/1.3.4 (Unix)' PYTHONHOME: '/usr/local/Zope-1.10.2-linux2-x86' PCGI_DISPLAY_ERRORS: '1' PATH_INFO: '/Bio/fsimport' BOBO_REALM: 'Zope' BOBO_DEBUG_MODE: '1' HTTP_PRAGMA: 'no-cache' REQUEST_METHOD: 'GET' PCGI_ERROR_LOG: '/usr/local/Zope-1.10.2-linux2-x86/var/pcgi.log' ), {}, (None,))) TypeError: read-only buffer, class -- --------------------------------------------------------------------- Jim.Bickford@flinders.edu.au Biological Sci Flinders University 61 8 8201 3179(v) 61 8 8201 3015(f) South Australia 5042 --------------------------------------------------------------------- From tallard@sagem.fr Fri Mar 12 08:58:21 1999 From: tallard@sagem.fr (Stephane Tallard) Date: Fri, 12 Mar 1999 09:58:21 +0100 Subject: [Zope] PSFS or DTML Message-ID: <36E8D72D.D17C66B8@sagem.fr> Il s'agit d'un message multivolet au format MIME. --------------46BAC34F26042FC3E496775C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all , We try to use DocumentTemplate not for HTML dynamic generation but for C++ generation. For convenience, and because we are familiar with Python we intend to use the Alternate Python String Format Syntax. The generation code is beautiful compared to our previous output.write("blah blah.... ") instructions. Reading the docs, looking at the Zope site, this behaviour doesn't seem to be shared by a lot of zope users. Moreover the Alternate Python String Format Syntax is poorly documented, and DTML features seems to be usable but the way they can be used seem very strange. Basically our needs are to use conditional structures, iterative structures and to call methods. The last point seems to be the hardest one. The following code shows a way to call python methods in python strings but 3 persons during half a day have been necessary to find it out. I suppose you can imagine my questions : Is there a natural and convenient way to find out PSFS expressions going from their DTML equivalent ? Is there a complete documentation on PSFS syntax ? Are the features of DTML and PSFS identical ? And the most important : Do you encourage us to keep on using PSFS instead of DTML ? Thank for your help Stephane my code ================================= import DocumentTemplate ########################################## class attr: def __init__(self,att): self.att = att def get_att(self): return self.att def get_num(self): return len(self.att) ########################################## l__list = [attr('aa'),attr('bb'),attr('cc')] l_str = DocumentTemplate.String(""" %(l_item fmt=get_att)s %(l_item fmt=get_num)3d %(in l_list)[ POUETPOUET %(sequence-var-get_att)s %(in)] """) dict = {'l_item':l__list[1], 'l_list':l__list} print l_str(None,dict) --------------46BAC34F26042FC3E496775C Content-Type: text/x-vcard; charset=us-ascii; name="tallard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Stephane Tallard Content-Disposition: attachment; filename="tallard.vcf" begin:vcard n:;Stephane Tallard x-mozilla-html:FALSE org:Softeam version:2.1 email;internet:tallard@urd24.sagem.fr x-mozilla-cpt:;0 tel;work:01 34 30 57 89 fn:Stephane Tallard end:vcard --------------46BAC34F26042FC3E496775C-- From tony.mcdonald@ncl.ac.uk Fri Mar 12 08:45:21 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 08:45:21 +0000 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <3.0.5.32.19990311123749.01171210@mail.aracnet.com> Message-ID: > Hello Zopesters: > > Are you confused by the subtleties of DTML? Want the skinny on advanced > DTML tricks and gotchas? Check out my advanced DTML HowTo: One more voice shouting "thanks!". Just what I needed, this misty Friday morning. tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Armin.Tschammer@oi42.kwu.siemens.de Fri Mar 12 09:13:11 1999 From: Armin.Tschammer@oi42.kwu.siemens.de (Dr. Armin Tschammer) Date: Fri, 12 Mar 1999 10:13:11 +0100 Subject: [Zope] Newbie dtml question ( very simple ) Message-ID: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Hi, I would like to do things like that: XY.py : d = {} d['x1']=1 d['x2']=2 X = DocumentTemplate.HTMLFile('X3.dtml') string = X(d) WRONG: X3.dtml : Some Stuff More Stuff Other Stuff How does the right X3.dtml file look like ? Thanks, Armin From prudek@sol.cz Fri Mar 12 09:14:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Fri, 12 Mar 1999 10:14:40 +0100 Subject: [Zope] Apache Authorization References: <006e01be6bce$749a5920$5c773fc1@media1> <36E7DE88.344745B3@pop.vet.uu.nl> Message-ID: <36E8DB00.F257932A@sol.cz> > > Turn on ExecCGI, you do need it ! > I can confirm this; this one bit me too, I recall. Can anyone write up a > FAQ on this one? (I think I heard the Digicool folks are working on some Well you were both right. I have turned on ExecCGI for my standard cgi-bin directory, where I placed a copy of Zope.cgi. It is NOT neccessary to add statement for /usr/local/zope/ (I thought it was neccessary... so I'm writing it here for the upcoming FAQ). Also I thought that I should use http://www.domain.com/cgi-bin/Zope.cgi address, which brings the introductory screen (that fooled me) but does not allow authorization. The correct address is of course http://www.domain.com/Zope, since that's what the rewrite rule is about. Thanks to all who helped me! -- Milos Prudek From ron@rotflol.cx Fri Mar 12 11:19:24 1999 From: ron@rotflol.cx (ron@rotflol.cx) Date: Fri, 12 Mar 1999 12:19:24 +0100 Subject: [Zope] Tree Tag & SQL Message-ID: <199903121119.MAA31716@heaven.rotflol.cx> I am trying to implemented a directory service using the tree tag where the info from several tables of a database. A simplified outline: +Locations +Offices +People +Phones Tel Fax +Addresses Problem: how to have the tree tag use a different SQL method for each level WITHOUT resorting to external methods, because the directory should be maintainable by mere mortals, not Python or SQL gods. -- <- Ronald Offerman | ron@offerman.cx <- Root Powered Carrot Munchers Ltd. Inc. SA AG BV "This is Linux Country. On a quiet night, you can hear Windows NT reboot!" "Daddy, why do those people have to use Microsoft Windows?" "Don't stare, son; it's not polite." "M$ Windows NT, an accident waiting to happen" "What goes up, must come down. Ask any system administrator." ".sig too big? Flame me, I'm cold!" From Paul@digicool.com Fri Mar 12 12:18:46 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 07:18:46 -0500 Subject: [Zope] Tree Tag & SQL Message-ID: <613145F79272D211914B0020AFF6401907BB49@GANDALF> Ron wrote: > Problem: how to have the tree tag use a different SQL method > for each level > WITHOUT resorting to external methods, because the directory > should be > maintainable by mere mortals, not Python or SQL gods. Hi Ron. Just a guess, but how about having the tree tag pass in the the current level as an argument to the same SQL method, then have the SQL method adapt itself based on the argument? Remember that an SQL method can embed logic and act like an object using DTML. For instance: select ... select ... etc. --Paul From phd@sun.med.ru Fri Mar 12 12:09:21 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 12 Mar 1999 15:09:21 +0300 (MSK) Subject: [Zope] Zope.cgi -> mod_zope Message-ID: Hello! Is there any plan to make complex "Apache + Zope" even more efficient by making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From Paul@digicool.com Fri Mar 12 13:30:47 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 12 Mar 1999 08:30:47 -0500 Subject: [Zope] Lots of questions: Message-ID: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Andrew "Zopeweaver" Wooldridge wrote: > 1) How do I get Zope to run as a service on my NT box so I > dont have to > stay logged in for it to run? The installer for the Zope NT binary asks you if you want to run as a service -- in fact, that's the default. Take a look at the file "doc/INSTALL.txt", under Installation on Windows, for more information. > 2) When I upgrad Zope will I have to re-build all of my applications? Unless we do something wrong, nope. > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > idea of creating one on say the mozilla or slashdot servers I'm not sure if the Zope universe is big enough yet for that. I rememer Guido doing this for Python about a year ago and nobody showed up. :^) Perhaps if there were coordinated events? > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > cross-communication project? I think the answer will certainly be yes. Go to: http://www.egroups.com/list/zope/ and do a search for Dreamweaver. There are about 18 hits. --Paul From mj@antraciet.nl Fri Mar 12 13:58:00 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 12 Mar 1999 14:58:00 +0100 Subject: [Zope] Zope.cgi -> mod_zope Message-ID: <4.1.19990312145716.00bf3210@lisp.atmm.nl> Whoops, here is a copy for the list as well... (I forgot to 'reply-all', *smirk*) At 13:09 12/03/99 , you wrote: >Hello! > > Is there any plan to make complex "Apache + Zope" even more efficient by >making Zope.cgi a module (mod_zope, let's name it, or mod_pcgi)? > I do hope there is. If implemented like the Apache JServ module (http://java.apache.org/) it should solve a lot of problems for everyone, adding performance to boot. JServ is in effect a separate process (like Zope) that receives it's request via the Apache server, with the help of a module, that translates the requests into socket calls. If someone modifies the module that comes with JServ to call the Zope process instead of the JServ process..... -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 12 14:00:07 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 12 Mar 1999 14:00:07 +0000 Subject: [Zope] Getting slashdot to work... Message-ID: HI all, In my quest to figure out how Zope works, I'm starting with ExtrenalMethods. I've moved slashdot.py into Extensions and set up an external method (id: get_headlines, funstion name: get_headlines, python module: slashdot). My 'calling' DTML is a method (slashdot_headlines) with the following;

    trying 'view' on this method gives the following; ... I *did* have a problem with using a proxy, but got around that by adding this line to slashdot.py (just before the urllib.urlopen() call). urllib.URLopener(proxies={'http': 'http://cache-box.you.domain:your_port'}) What am I doing wrong? many thanks tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From jeffbauer@bigfoot.com Fri Mar 12 13:57:26 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Fri, 12 Mar 1999 07:57:26 -0600 Subject: [Zope] Zope.cgi -> mod_zope References: Message-ID: <36E91D46.9DE0A239@rubic.com> Oleg Broytmann wrote: > Is there any plan to make complex "Apache + Zope" even > more efficient by making Zope.cgi a module (mod_zope, > let's name it, or mod_pcgi)? A mod_pcgi Apache module has been discussed. It would certainly be more efficient. One of the issues would be whether pcgi should get out of the process launch business, which would simplify a mod_pcgi and make it easier to debug. -Jeff Bauer From A.K.Heath@shu.ac.uk Fri Mar 12 14:41:16 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Fri, 12 Mar 1999 14:41:16 GMT Subject: [Zope] Create zope property from external method? Message-ID: <199903121441.OAA24954@teak.shu.ac.uk> I'm a zope newbie I have an external method in which I want to check whether a property within zope exists and if it doesn't exist to create it. How can I do this ? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From andreww@netscape.com Fri Mar 12 15:52:12 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 07:52:12 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9382C.DD2C695E@netscape.com> Paul Everitt wrote: > Andrew "Zopeweaver" Wooldridge wrote: > > 1) How do I get Zope to run as a service on my NT box so I > > dont have to > > stay logged in for it to run? > > The installer for the Zope NT binary asks you if you want to run as a > service -- in fact, that's the default. Take a look at the file > "doc/INSTALL.txt", under Installation on Windows, for more information. Ok, I'll check that out. My experience has been than I run it with start.bat and when I close that ms-dos window zope stops. > > > > 2) When I upgrad Zope will I have to re-build all of my applications? > > Unless we do something wrong, nope. > > > 3) Is there an IRC channel for ZOPE? IF not I would like to offer the > > idea of creating one on say the mozilla or slashdot servers > > I'm not sure if the Zope universe is big enough yet for that. I rememer > Guido doing this for Python about a year ago and nobody showed up. :^) > > Perhaps if there were coordinated events? > I think that now that zope is "out there " and is open source that you will find more people. Perhaps a news.zope.org newsgroup would be cool as well. From julian@zereau.net Fri Mar 12 16:41:40 1999 From: julian@zereau.net (julian@zereau.net) Date: Fri, 12 Mar 1999 16:41:40 -0000 (GMT) Subject: [Zope] please interpret Message-ID: "TypeError: read-only buffer, class" I keep getting this error, please can someone explain what typically causes it? --- Julian Morrison Programmer (Zereau Ltd) From pavlos@gaaros.msrc.sunysb.edu Fri Mar 12 16:56:52 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 12 Mar 1999 11:56:52 -0500 (EST) Subject: [Zope] Create zope property from external method? In-Reply-To: <199903121441.OAA24954@teak.shu.ac.uk> Message-ID: On Fri, 12 Mar 1999, Andy Heath wrote: > I'm a zope newbie > > I have an external method in which I want to check whether a > property within zope exists and if it doesn't exist to create it. > > How can I do this ? > > Andy If your external method is called from DTML document 'foo' then something like this should do it (untested): def mymethod(self): if not self.hasProperty('myproperty'): self.manage_addProperty('myproperty','hello','string') BTW you can achieve the same effect from DTML Pavlos From jeffrey@Digicool.com Fri Mar 12 18:03:08 1999 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Fri, 12 Mar 1999 13:03:08 -0500 Subject: [Zope] please interpret Message-ID: <199903121802.KAA23415@zope.codeit.com> >From: julian@zereau.net > > "TypeError: read-only buffer, class" > > I keep getting this error, please can someone explain what typically causes > it? This is a buglet in ExternalMethod where an exception has been raised and caught by ExternalMethod, and EM is looking at the values of the traceback for some special conditions. It's trying to do a string.lower() call on one of the values that in Python1.4 was always a string, but in Python1.5.x is an instance (in Python 1.5, standard exceptions became classes). This has been fixed and will be in the next release. .jPS | jeffrey@digicool.com zope, through the web. www.zope.org From mbernstein@profitscape.net Fri Mar 12 19:56:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 11:56:16 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> <36E9382C.DD2C695E@netscape.com> Message-ID: <36E97160.E76D75F0@profitscape.net> Andrew Wooldridge wrote: > > I think that now that zope is "out there " and is open source that you will > find more people. > Perhaps a news.zope.org newsgroup would be cool as well. Welcome to the list Andrew! I'm glad you found my suggestions interesting enough to check Zope out. Regarding my last email, did you figure out how to do PUT and GET from DW yet? And do you know if Macromedia is going to add WebDAV support to DW? In case you missed it, I'd like to point you towards the Advanced DTML Howto: http://www.zope.org/Documentation/HowTo/DTML as that has more thorough information than the DTML guide I showed you before. I would also be interested in a newsgroup, as I am currently filtering the email into a folder and sorting it by thread, but a newsgroup would let me see the the same threaded view from home, as well. This would also have the effect of letting new users see the context of the current posts. Michael Bernstein. From FVilla@GestaltTechnology.com Fri Mar 12 20:45:52 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 12 Mar 1999 15:45:52 -0500 Subject: [Zope] IRC channel Message-ID: <36E97D00.26FB26F9@GestaltTechnology.com> Gentlemen, I am very pleased with Zope and in an effort to support it, I will create a channel called #zope under the EFnet. I am still learning about ZOpe, but I will try to help all I can. Also, I will be placing an infobot to provide lots of information on Zope. Drop by and pay a visit to #zope if you have some time... Cheers, Fredy Villa Gestalt Technology, LLC Fvilla@GestaltTechnology.com From jae@kavi.com Fri Mar 12 21:08:18 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 12 Mar 1999 13:08:18 -0800 (PST) Subject: [Zope] Access Control Advice Message-ID: Hello all, I am working on a Zope app, and would like to see if anyone has any tips for how I should handle access control in this situation... The site is a corporate organization site. It has many corporate members, each has an admin which has control over a subset of information kept in a relational database. I want to have just one role (comp_admin) for this. But each company can only have access to their company info. Thus I need to check that the admin belongs to that company. (there are also regular users who also have to login. they can view, but not modify) The users, passwords and roles are kept in the database too (UserDB). Each company has a unique id, and this is the primary keys in the DB. Each user is associated to the company using this id (a field in their table). Make sense? My current idea is: 1. Have a general main page which both users and admins login to. If they use the admin login, get their company id (comp_id) and create a link to the admin section using the magic of direct traversal (this way they can bookmark the admin page). Eg. admin section ('comp' is the zsql method, 1 is the comp_id, admin is the folder) Thus the comp_id of the company will be available, and I could: A. I could then (mabey?) use the comp_id in the UserDB query (in the admin folder) to only retrieve those people belonging to that company. OR (if I can't get to the comp_id from the UserDB query). B. I could then compare to the person's comp_id to the company's comp_id in each of the effect pages via a new standard_header. Thoughts? Better ways to do this? --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From zopelist@regalint.com Fri Mar 12 21:30:22 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 12 Mar 1999 16:30:22 -0500 Subject: [Zope] Converting Whitespaces In-Reply-To: Message-ID: >I know there is a way to convert underscores to spaces (spacify) but i >need it the other way around is. There a function to convert spaces to >underscores and if not how can i do it elseway? I haven't tryed this but on pg 10 of DTML Users Guide check out: maketrans(FROM,TO) and translate(S,TABLE[, DELS]) it seems to do character for character translations. Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From kent@goathill.org Fri Mar 12 22:04:17 1999 From: kent@goathill.org (Kent Polk) Date: 12 Mar 1999 22:04:17 GMT Subject: [Zope] Tree Tag & SQL In-Reply-To: <199903121119.MAA31716@heaven.rotflol.cx> Message-ID: <921276256.763497@zoo-of-death.endicor.com> On 12 Mar 1999 05:55:00 -0600, ron@rotflol.cx wrote: >I am trying to implemented a directory service using the tree tag where the >info from several tables of a database. > >A simplified outline: > >+Locations > +Offices > +People > +Phones > Tel > Fax > +Addresses > >Problem: how to have the tree tag use a different SQL method for each level >WITHOUT resorting to external methods, because the directory should be >maintainable by mere mortals, not Python or SQL gods. Brian built a pretty cool way to hook SQL entries to particular folder trees for the PDMS. Each folder has a uniqueid which is stored in a sql table, along with the folder parent heirarchy, when an item is added to the SQL database. This allows each folder to easily identify which SQL entries belong directly to it and which SQL entries belong as children. This allows one to easily do things such as count the number of SQL items which are identified with a folder tree using SQL query syntax. Brian also provided dtml methods to move folders and their relationships around in the Zope heirarchy quite nicely. The mechanism holds quite a few SQL items in it and there has never been a need for a Python or SQL god to do any maintenance on the system at that level. However, it does use both SQL and External Methods. So, don't believe that just because something requires a fairly deep level of competence to create that it requires that same level of competence to maintain (me for example :^). That's simply one mark of a decent implementation. Kent From mbernstein@profitscape.net Sat Mar 13 00:12:28 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 12 Mar 1999 16:12:28 -0800 Subject: [Zope] Lots of questions: References: <613145F79272D211914B0020AFF640190D9ECF@GANDALF> Message-ID: <36E9AD6C.D3E15A56@profitscape.net> Paul Everitt wrote: > > Andrew "Zopeweaver" Wooldridge wrote: > > 4) Is there anyone interested in working with me on a Zope/Dreamweaver > > cross-communication project? > > I think the answer will certainly be yes. Go to: > > http://www.egroups.com/list/zope/ > > and do a search for Dreamweaver. There are about 18 hits. I've been unable to log in to the egroups archive all day. Is there something wrong with their server? Michael Bernstein. From billr@coinet.com Sat Mar 13 02:26:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 12 Mar 1999 18:26:42 -0800 Subject: [Zope] sequence of numbers Message-ID: <9903121826.ZM7584@saab.coinet.com> This may be a newbie question, but I've loked thru the doc and didn't spot any obvious way to do this, short of an External Method. What I want to do is given a limit number, iterate over a sequence of DTML commands. This would be an obvious use for #in (which I'm using elsewhere for other things) except I don't have a sequence - just the number of items in the sequence, as it were. In psuedo-code, what I'm after is something like this: for (i=0; i < ; i++) { // some DTML/HTML code using "i" } Now if, given a #var, I could get a list - e.g.: --> list = [0, 1, 2, ... max_items] or [1, 2, ... max_items], it doesn't make much difference. then I could just use: // some stuff using Is there an easy way to do this? Is there *any* way to do it? -Bill Randle Central Oregon Internet billr@coinet.com From jkhoffman@usa.net Sat Mar 13 04:18:55 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Fri, 12 Mar 1999 23:18:55 -0500 (EST) Subject: [Zope] User Profiles? Message-ID: I am working on a web site for a local outdoors group. They have about 1,000 members and are growing fast, but their web site needs help. I had lunch with their leader today, and strongly advocated the use of Zope to redo their entire web site. He loved my ideas, and gave me the go ahead on the site. Now, my first question (I'm sure I'll have many) to the group is: How do I create user profiles? Each user of the system needs to have specific information associated with them including: full name, address, telephone numbers, a picture (gif or jpeg, easily uploadable by the user), their interests, a history of the events they've sponsored and/or attended, a buddy list (basically just a collection of other member ids), and so on. I have downloaded the UserDb product, and figure I might be able to extend it to support the extra columns I require. However, a big part of me wants to keep as much of this in Zope as I can. I like the idea of the objectstore, and don't necessarily like having to fudge SQL tables every time I add or remove an attribute from the profiles (not that I will be doing that, necessarily). What do those with a higher Zope Zen Rating than I suggest in this situation? I'm also going to be making an Events Calendar, which is connected up with all the User information (who's running the event, who's signed up to attend, etc.). Is all of this something that Tabula would be good for? If so, who do I have to sleep with to get it? :^) I am willing to write up a case study, testimonial, contribute any code I write back to the community, etc., whatever is requested. I just want to do a good job for these guys, making myself and Zope look good in the process. HELP! *grin* Jeff K. Hoffman From andreww@netscape.com Sat Mar 13 07:20:04 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:20:04 -0800 Subject: [Zope] extending dreamweaver into zope Message-ID: <36EA11A4.C9C0527E@netscape.com> I can see a number of things that DW will (I think) do to help out Zope - but there is one item in the way - FTP support There is no direct way for Dreamweaver to send pages back to Zope without either writing to a filesystem via a LAN or by using FTP (no webdav yet). So my question is this - when will we get ftp support in zope? (not just alpha). I am looking at the dtml spec right now and thinking about building drag-and-drop objects for DW that talk zope. One thing I need is for someone on the zope team or elsewhere to help me test these so that I get the syntax correct. Email me directly at andreww@netscape.com From andreww@netscape.com Sat Mar 13 07:21:30 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Fri, 12 Mar 1999 23:21:30 -0800 Subject: [Zope] the HTML UI - can I help? Message-ID: <36EA11FA.E21D6A0D@netscape.com> I see a number of things that might help enhance the usability of the zope UI, how do I go about submitting those possible changes to the HTML code ? I could mock up a page with HTML and explain how it works... From rob.page@digicool.com Sat Mar 13 14:03:45 1999 From: rob.page@digicool.com (Rob Page) Date: Sat, 13 Mar 1999 09:03:45 -0500 Subject: [Zope] RE: [Zope-dev] De-Authentication / Logout Message-ID: <613145F79272D211914B0020AFF6401906919E@GANDALF> > It's always been my impression that unless Zope can be fitted with a > cookie-based-authentication system (vs. the current > basic-auth), there's > *no* way to force a "logout" because of the way the *browsers* handle > basic-auth. Recent notes about Lynx notwithstanding, I agree. It's extremely frustrating when debugging the security of an app! Zope _CAN_ use a cookie-based authentication scheme with the UserDB product. UserDB uses Database Adapter (e.g., Oracle) to connect to a store of user info (e.g., userid and password). I can imagine some motivated community member taking a look at the current incarnation of UserFolder and UserDB and cookie-ifying the UserFolder. --Rob From zope@zope.org Sat Mar 13 14:00:53 1999 From: zope@zope.org (Wade Leftwich) Date: Sat, 13 Mar 1999 09:00:53 -0500 Subject: [Zope] - XML-style DTML code In-Reply-To: <199902030028.TAA02197@albert.digicool.com> Message-ID: <199903131359.IAA06323@gem.lightlink.com> "Jeffrey P Shell" wrote, back on Feb 2: [snip] > The editing-in-HTML-editors will always be a problem with the current > syntax, in my opinion, because (real code here, and code i'm not at all > ashamed to have written): > > > > will give just about any editor a headache. Cyberstudio, at a minimum, > moves the comment tags outside of the
    When submitting the form, it displays me a new page (generated by Zope) asking me again the auteur parameter, as if the auteur variable wasn't passed to the Z SQL method :-( Someone posted a mail recently with an example use of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' text: INSERT INTO messages (auteur) ... When I try this, I get: Error, pg.error: server fatal error. Please report to your db administrator. SQL used: INSERT INTO messages (auteur) VALUES ('testing again', 'blahblahblah', 'now', 'f') Is there something specific to PostGreSQL ? (Using Zope 1.10.2, PostGreSQL 6.4.2, PyGreSQL-2.2, ZPyGreSQLDA 0.02) I looked in the Z SQL Method User's guide, but nothing is written about adding data to a DB :-( -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From A.K.Heath@shu.ac.uk Sat Mar 13 18:13:29 1999 From: A.K.Heath@shu.ac.uk (Andy Heath) Date: Sat, 13 Mar 1999 18:13:29 GMT Subject: [Zope] object modification date - how ? Message-ID: <199903131813.SAA28032@teak.shu.ac.uk> I'm still a zope newbie Is there an easy way I can get a a modification date for an object (so I can do a "last modified on ...")? Andy -------------------------------------------------------------- Andy Heath, Senior Lecturer email: a.k.heath@shu.ac.uk o Sheffield Hallam University. Phone: +44 114 2534904 /\ Sheffield, England Fax: +44 114 2533161 () () -------------------------------------------------------------- From hannu@trust.ee Sat Mar 13 19:08:52 1999 From: hannu@trust.ee (Hannu Krosing) Date: Sat, 13 Mar 1999 21:08:52 +0200 Subject: [Zope] INSERT Syntax with Zope & ZPyGreSQLDA References: <87hfrp1js9.fsf@eurythro.savigny.stp> Message-ID: <36EAB7C4.8DD42BE@trust.ee> lstep@mail.dotcom.fr wrote: > > Hello, > > I'm trying to use PostGreSQL with Zope, but I'm having > problems using the SQL INSERT method in Z methods which > require parameters. > > For example, I make a Z SQL Method named 'foo'. > In it: > INSERT INTO messages > VALUES > (, > 'blahblahblah', 'now', 'f') > > I write the name auteur in the 'arguments' form. > > Next I create a DTML document with: > > Auteur:
    why no type=text ? > > > > When submitting the form, it displays me a new page > (generated by Zope) asking me again the auteur parameter, > as if the auteur variable wasn't passed to the Z SQL method :-( > > Someone posted a mail recently with an example use > of INSERT, where he put '(auteur)' after the 'INSERT INTO messages' > text: INSERT INTO messages (auteur) ... > > When I try this, I get: > > Error, pg.error: server fatal error. Please report to your db administrator. A good to test your SQL is using psql. And upgrading to PyGreSQL 2.3 or later, which return proper sql messages > SQL used: > > INSERT INTO messages (auteur) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') This is definitely wrong ;( something like INSERT INTO messages (auteur,title,bookdate,any_good) VALUES ('testing again', 'blahblahblah', 'now', 'f') might have worked. You may also mean current_date or current_time instead of now or now() From eric.kidd@pobox.com Sat Mar 13 19:47:48 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Sat, 13 Mar 1999 14:47:48 -0500 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com>; from Bill Randle on Fri, Mar 12, 1999 at 06:26:42PM -0800 References: <9903121826.ZM7584@saab.coinet.com> Message-ID: <19990313144748.F30044@moebius.dartmouth.edu> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > This may be a newbie question, but I've loked thru the doc and didn't > spot any obvious way to do this, short of an External Method. I didn't find any other way, either. But here's an External Method you can use. --- begin loop_range.py --- LoopRangeError = 'LoopRangeError' # Name an exception class. loop_range_limit = 100 # Maximum allowable loop index. def loop_range(max): if max <= loop_range_limit: return range(max) else: raise LoopRangeError, max --- end --- Notice that it won't allow the "max" parameter to be bigger than 100. This prevents users from generating near-infinite amounts of HTML and freezing your server. You can edit this to any value you like, or even remove it if you trust all your DTML authors. Now, create an External method with the following properties: id: loop_range title: Loop Iteration Method method: loop_range file: loop_range To use this method in DTML, try the expr attribute of the #in construct: --- begin sample DTML ---

    Index:

    --- end --- > Is there an easy way to do this? Is there *any* way to do it? Yup. ;-) Zope has tons of power hiding under the hood, and a skilled Python programmer could make it do almost anything. Cheers, Eric From tseaver@palladion.com Sat Mar 13 19:48:14 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 13:48:14 -0600 Subject: [Zope] Cool! Attribution! References: <199903122000.MAA26389@zope.codeit.com> Message-ID: <36EAC0FE.AF740889@palladion.com> A quick plug for a "Powered by Zope" site I just saw: http://www.denarius.com/ -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From mj@antraciet.nl Sat Mar 13 06:41:41 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 07:41:41 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <9903121826.ZM7584@saab.coinet.com> Message-ID: <4.1.19990313073352.00aa37b0@mail.atmm.nl> At 03:26 13-3-99 , Bill Randle wrote: >Now if, given a #var, I could get a list - e.g.: > --> list = [0, 1, 2, ... max_items] >or [1, 2, ... max_items], it doesn't make much difference. >then I could just use: > > // some stuff using > > >Is there an easy way to do this? Is there *any* way to do it? One way of doing this would be using an external method: def MyRange(iMax): return range(iMax) -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Sat Mar 13 20:06:42 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sat, 13 Mar 1999 21:06:42 +0100 Subject: [Zope] object modification date - how ? In-Reply-To: <199903131813.SAA28032@teak.shu.ac.uk> Message-ID: <4.1.19990313210503.00aaec60@mail.atmm.nl> At 19:13 13-3-99 , Andy Heath wrote: >I'm still a zope newbie > >Is there an easy way I can get a a modification date for an object >(so I can do a "last modified on ...")? > >Andy The property bobobase_modification_time gives you the last modification time. This is not in the docs, I gleaned it from Zope's source (it is used in amongst other places the document edit screen). This is a good item for the FAQ. Martijn Pieters. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Sat Mar 13 22:59:15 1999 From: prudek@sol.cz (Milos Prudek) Date: Sat, 13 Mar 1999 23:59:15 +0100 Subject: [Zope] Structured text and lists Message-ID: <36EAEDC2.46997FE5@sol.cz> Can I make ordered/unordered lists using structured text, without doublespacing lines? When I write single spaced lines: - one - two - three it's not rendered as list. And when I write doublespaced lines, it's rendered as doublespaced list... -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 02:38:07 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sat, 13 Mar 1999 21:38:07 -0500 (EST) Subject: [Zope] Bug in sqlvar.py? Message-ID: Hello, everyone. I'm bustin' ass on my project for the outdoors group and ran into a problem with the #sqlvar command. At the top of the file, in the docstring, it says: For example, given the tag:: And, when I submit the query while leaving address2 blank I get: Invalid empty string value for address2 When reading the code, beginning on line 200 there is the else case which handles values of types other than int or float: else: v=str(v) if not v and t=='nb': raise ValueError, ( 'Invalid empty string value for %s' % name) v=md.getitem('sql_quote__',0)(v) #if find(v,"\'") >= 0: v=join(split(v,"\'"),"''") #v="'%s'" % v There is absolutely no check for the optional flag in this case as there are in the cases for int and float. Is this check supposed to be handled elsewhere in the code, and never make it here, or is this an oversight? I can patch it to fix the problem quite easily, but if this is not the preferred way of doing things I'd like to know (to avoid patching it every time a new Zope comes out.) I have two address lines, address1 and address2. I just want it to set address2 to null if the user does not fill it out. Is that too much to ask? :^) As I said, if I'm blatantly overlooking something, please let me know. If not, I'll be happy to submit a patch and/or report this in the collector. Thanks. Hope you all are having a good weekend! jkh From tseaver@palladion.com Sun Mar 14 04:29:45 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sat, 13 Mar 1999 22:29:45 -0600 Subject: [Zope] please interpret Message-ID: <36EB3B39.A630ED79@palladion.com> On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > >From: julian@zereau.net > > > > "TypeError: read-only buffer, class" > > > > I keep getting this error, please can someone explain what typically > > causes it? > > This is a buglet in ExternalMethod where an exception has been raised and > caught by ExternalMethod, and EM is looking at the values of the traceback > for some special conditions. It's trying to do a string.lower() call on > one of the values that in Python1.4 was always a string, but in Python1.5.x > is an instance (in Python 1.5, standard exceptions became classes). This > has been fixed and will be in the next release. Could you post the patch, please? This error message hits me about five ways from Sunday. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From Anthony Baxter Sun Mar 14 04:58:49 1999 From: Anthony Baxter (Anthony Baxter) Date: Sun, 14 Mar 1999 15:58:49 +1100 Subject: [Zope] please interpret In-Reply-To: Your message of "Sat, 13 Mar 1999 22:29:45 MDT." <36EB3B39.A630ED79@palladion.com> Message-ID: <199903140458.PAA15586@mbuna.arbhome.com.au> The following patch should do the magic thing: RCS file: ExternalMethod.py,v retrieving revision 1.1 diff ExternalMethod.py.dist ExternalMethod.py --- ExternalMethod.py.dist +++ ExternalMethod.py @@ -251,7 +251,7 @@ error_type=sys.exc_type error_value=sys.exc_value tb=sys.exc_traceback - if lower(error_type) in ('redirect',): + if lower(str(error_type)) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): It's not the way it's fixed in the new external method code, but it works for me, and should be enough to keep you going... Anthony. >>> Tres Seaver wrote > On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote: > > > >From: julian@zereau.net > > > > > > "TypeError: read-only buffer, class" > > > > > > I keep getting this error, please can someone explain what typically > > > causes it? > > > > This is a buglet in ExternalMethod where an exception has been raised and > > caught by ExternalMethod, and EM is looking at the values of the traceback > > for some special conditions. It's trying to do a string.lower() call on > > one of the values that in Python1.4 was always a string, but in Python1.5.x > > is an instance (in Python 1.5, standard exceptions became classes). This > > has been fixed and will be in the next release. > > Could you post the patch, please? This error message hits me about five ways > from Sunday. > > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) -- Anthony Baxter It's never to late to have a happy childhood. From TomJenkins@zentuit.com Sun Mar 14 05:14:03 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 00:14:03 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903140517.AAA01144@mail.digiweb.com> Hello all, First let me start by saying I've finally cleared time to play with zope. Its coming along nicely but I've hit a snag. The following snippet in a form: Staff using MySQL produces the following HTML: Staff Now unfortunately I believe the L is causing the insert to fail with an invalid integer. I specified user_id as integer unsigned zerofill auto_increment. Does anyone know why the 'L' is being return? TIA -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From mj@antraciet.nl Sun Mar 14 08:05:02 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Sun, 14 Mar 1999 09:05:02 +0100 Subject: [Zope] MySQL & integer IDs In-Reply-To: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <4.1.19990314090101.00aaa680@mail.atmm.nl> At 06:14 14-3-99 , Tom Jenkins wrote: >Now unfortunately I believe the L is causing the insert to fail with an >invalid integer. I specified user_id as integer unsigned zerofill >auto_increment. Does anyone know why the 'L' is being return? > The L value is caused by a long integer to string conversion. You can get rid of the L by specifying a C format string, like so: Martijn Pieters -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From lstep@mail.dotcom.fr Sun Mar 14 10:17:30 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 14 Mar 1999 11:17:30 +0100 Subject: [Zope] 'Enter query parameters' In-Reply-To: Hannu Krosing's message of "Sat, 13 Mar 1999 21:08:52 +0200" References: <87hfrp1js9.fsf@eurythro.savigny.stp> <36EAB7C4.8DD42BE@trust.ee> Message-ID: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Hannu Krosing writes: > > Auteur:
    > > why no type=text ? Oops forgot it. Well it worked without it :-) > This is definitely wrong ;( > > something like > INSERT INTO messages (auteur,title,bookdate,any_good) > VALUES > ('testing again', > 'blahblahblah', 'now', 'f') Ow you're right. But this hasn't changed anything, it still ask me for the parameters after clicking on submit :-( In the HTML form, I replaced the action with '' where add_message is the Z SQL method. And it adds correctly the record to my Database, but displays 'This was not a query'. And, well, I don't think taht's the correct method to add records, by using the test method :-)) Is there anywhere an example of product adding some records to a database ? > might have worked. You may also mean current_date or current_time > instead of now or now() What's the difference between now and current_date / current_time I tried all of them, and they give exactly the same result (the good date :-) Thanks, Luc -- Luc Stepniewski http://www.planete.net/~rstep/pubkey.txt KeyID: 1024D/76A31F52 GnuPG: 819D 1F8E 7BE2 B80C AA2C 0473 CCED 48B6 76A3 1F52 From anthony@interlink.com.au Sun Mar 14 12:32:36 1999 From: anthony@interlink.com.au (Anthony Baxter) Date: Sun, 14 Mar 1999 23:32:36 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) Message-ID: <199903141232.XAA17000@mbuna.arbhome.com.au> Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ I'm looking for opinions on the LDAP zope product I've been building. Right now, LDAP connections work, LDAP Methods work, but there's still a bit more to do. Right now, the following is unimplemented: In ZLDAPconn: . Anything other than simple_bind(who, passwd) for connecting to the LDAP server . meaningful doc strings In ZLDAPMethods: . Pluggable Brains . Result Caching . Limits on the number of results . Variable interpolation in the filters, and in the base DN . modify or add queries (only search is supported right now) . meaningful doc strings :) Other stuff: . UserLDAP is not finished yet (or released) - the primary issue is the storing of roles and domains. Right now this would have to be some non-standard LDAP attribute... but what should it be? It also probably needs modify and add added to ZLDAPMethods before being really useful. Things I'd like comments on: For ZLDAPconn: what other bind methods would you like to see? For ZLDAPMethods: how should add/modify/query be distinguished? Separate methods? I had planned to get variable interpolation working tonight, but decided I'd rather get an early night. Probably tomorrow evening, instead. Stuff I hope to get going in the next day or so: variable interpolation, pluggable brains. Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from http://www.interlink.com.au/anthony/python/ It requires David Leonard's ldapmodule, from http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the ldapmodule works on other platforms (it's available in source, and also as a windows .pyd) it should work elsewhere, too. Anthony From prudek@sol.cz Sun Mar 14 14:56:37 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 15:56:37 +0100 Subject: [Zope] fsimport HowTo Message-ID: <36EBCE25.55F5743A@sol.cz> Trying to use fsimport.py module, I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /ppm/fsimport) File /usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 254, in __call__ (Object: CopySource) (Info: ((, '/web/srvs-sol/www.sol.cz/ppm/index.htm', form: fsdir: '/web/srvs-sol/www.sol.cz/ppm/index.htm' [environ info omitted for brevity] ), {}, (None,))) TypeError: read-only buffer, class I put fsimport.py into /usr/local/zope/Extensions/ (I had to create Extensions dir), and added fsimport external method to a directory 'ppm', then I pointed my browser to http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index.htm, which probably is not the way to do it, is it? -- Milos Prudek From jkhoffman@usa.net Sun Mar 14 15:51:48 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 10:51:48 -0500 (EST) Subject: [Zope] 'Enter query parameters' In-Reply-To: <87iuc474ud.fsf_-_@eurythro.savigny.stp> Message-ID: On 14 Mar 1999 lstep@mail.dotcom.fr wrote: > In the HTML form, I replaced the action with > '' > > where add_message is the Z SQL method. And it adds correctly the > record to my Database, but displays 'This was not a query'. > And, well, I don't think taht's the correct method to add records, > by using the test method :-)) > > Is there anywhere an example of product adding some records to > a database ? Try something like: And then create a DTMLDocument or DTMLMethod called add_message_result like this:

    Success!

    Your message was added successfully! Thanks!

    The success message will only be shown if the query succeeds, because it is below the #call statement. Hope this helps! > Thanks, > Luc jkh From TomJenkins@zentuit.com Sun Mar 14 17:46:36 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Sun, 14 Mar 1999 12:46:36 -0500 Subject: [Zope] MySQL & integer IDs In-Reply-To: <4.1.19990314090101.00aaa680@mail.atmm.nl> References: <199903140517.AAA01144@mail.digiweb.com> Message-ID: <199903141749.MAA15778@mail.digiweb.com> > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Sun Mar 14 17:55:13 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 17:55:13 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903141755.RAA06010@cheviot.ncl.ac.uk> > I put fsimport.py into /usr/local/zope/Extensions/ (I had to create > Extensions dir), and added fsimport external method to a directory > 'ppm', then I pointed my browser to > http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index .htm, > which probably is not the way to do it, is it? > > -- > Milos Prudek The docs seem to imply that you provide fsdir with a *directory* ie fsdir=/web/srvs-sol/www.so.cz/ppm http://www.zop.org/Documentation/HowTo/FSimport for more details. tone From prudek@sol.cz Sun Mar 14 18:44:09 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 19:44:09 +0100 Subject: [Zope] fsimport HowTo References: <199903141755.RAA06010@cheviot.ncl.ac.uk> Message-ID: <36EC0379.CA7E445B@sol.cz> > The docs seem to imply that you provide fsdir with a *directory* > ie fsdir=/web/srvs-sol/www.so.cz/ppm I've tried that too. Didn't help. What could be wrong? -- Milos Prudek From ShawH@STHS.org Sun Mar 14 19:25:05 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Sun, 14 Mar 1999 13:25:05 -0600 Subject: [Zope] ZAP Message-ID: How can I configure ZAP so that all http requests go through the cgi? Zope is the only thing running through this apache, so I don't want everything on the site prefixed with Zope/ (or anything else, so no, I don't just want to know how to change the prefix). This is basically what is keeping me on ZopeHTTPServer. BTW, running ZopeHTTPServer multi-threaded worked well for about 15 minutes. Then suddenly certain pages wouldn't load. I stopped and restarted the server, but the pages still wouldn't load. I also noticed that if I stopped Netscape and hit reload, it would cause several new ZopeHTTPServer instances to appear, and doing so again would continue to create new instances which never seemed to dissappear. Are these locking the items they are downloading? The behavior I saw seemed consonant with it locking the item it was downloading, then failing to recognize the netscape had disconnected, and thus never removed its lock. When I restarted it single-threaded, all the pages came up without a problem. I would really like to move to Zap, but I can't afford at this point to have the URL of the page change. How can I make a Zope pcgi accessible as the root of a Zap install? Please help. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From prudek@sol.cz Sun Mar 14 19:57:08 1999 From: prudek@sol.cz (Milos Prudek) Date: Sun, 14 Mar 1999 20:57:08 +0100 Subject: [Zope] and it did not work, but when I use it works nicely... How do I do this with #var ? -- Milos Prudek From tony.mcdonald@ncl.ac.uk Sun Mar 14 20:11:37 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Sun, 14 Mar 1999 20:11:37 +0000 Subject: [Zope] fsimport HowTo Message-ID: <199903142011.UAA19578@cheviot.ncl.ac.uk> >> The docs seem to imply that you provide fsdir with a *directory* >> ie fsdir=/web/srvs-sol/www.so.cz/ppm > > I've tried that too. Didn't help. What could be wrong? > > -- I've imported a directory using fsimport and it worked for me. I can only suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Even more clutching here - did you leave the trailing slash off the fsdir attribute? hth tone From pavlos@gaaros.msrc.sunysb.edu Sun Mar 14 20:23:25 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Sun, 14 Mar 1999 15:23:25 -0500 (EST) Subject: [Zope] and it did not should do it but your second method I think is better. > work, but when I use it works nicely... How do I do > this with #var ? Pavlos From tseaver@palladion.com Sun Mar 14 20:50:29 1999 From: tseaver@palladion.com (Tres Seaver) Date: Sun, 14 Mar 1999 14:50:29 -0600 Subject: [Zope] Structured text and lists Message-ID: <36EC2115.8511A0E2@palladion.com> Milos Prudek wrote: > Can I make ordered/unordered lists using structured text, without > doublespacing lines? When I write single spaced lines: > - one > - two > - three > it's not rendered as list. And when I write doublespaced lines, it's > rendered as doublespaced list... In lib/python/StructuredText/StructuredText.py, modify the ul() and ol() methods as follows: Change: if p: p="

    %s

    " % strip(ctag(p)) to if p: p="%s" % strip(ctag(p)) I posted a more robust diff to the zope-dev list last night, which allows replacement of the list-element format string from an ExternalMethod. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From rhww@erols.com Sun Mar 14 22:38:51 1999 From: rhww@erols.com (Robert Wentworth) Date: Sun, 14 Mar 1999 17:38:51 -0500 Subject: [Zope] Simulating static URLs, end-user session management Message-ID: <36EC3A7B.53817A8D@erols.com> Hi. I am very new to Zope, having spent the last day (with only about two hours of sleep) excitedly pouring through the documentation. I still have a lot to digest, but there are some questions I did want to ask at this stage: A) Are there reasonable ways of arranging to have the URLs for some/many Zope generated pages appear, as far as the outside world is concerned, to be URLs for static HTML pages? The issue is one of indexing by search engine robots. I anticipate building a site where most of the content will change fairly slowly, and where there would be a standard set of views of the data which would be essentially static at a logical level. I really want search engines to index those static views. (There would likely also be dynamically generated views which shouldn't be indexed.) So, I think the requirement is that there should be a way of getting to pages with a URL like: http://www.mydomain.com/here/there/everywhere.html as opposed to http://www.mydomain.com/here/there/everywhere or http://www.mydomain.com/here/there?everwhere I supect there are a number of ways of tricking Zope into accepting URLs in the first form, or perhaps into actually generating some static pages which would be served up directly by the HTTP server (though my quick check of the archives suggests this is an unresolved issue). My questions are: 1) Has anyone already done something like this? 2) What approaches could you suggest to accomplish this? 3) Is trying to arrange this likely to be a big task or a little task (as subjective as that question is)? B) On another topic entirely, I am wondering about the issue of tracking sessions of end-users. (Hmmm... maybe I should have done more searching in the archives -- this must be a common issue.) Various application servers (e.g., for Java servlets) that I've looked at provide facilities for maintaining "session" information (not in the sense of a transaction as used in Zope) about end users. Typically this would be done by setting a cookie or by incorporating a session ID into dynamically generated URLs. I haven't noticed anything about this in the Zope documentation. I'm guessing that perhaps that is because Zope is so powerful that implementing something like this yourself is regarded as trivial. But thinking about it a bit, I'm not sure what the Zope mindset would be about how to do this. Zope sends requests directly to objects. But in order to manage a session cookie (or whatnot) you need to add a certain functionality to every (or most HTTP) requests. You certainly don't want to have every object explicitly worry about this. Is there a hook that would allow all requests to pass through some sort of filter that extracts/manages session information? Or is there some other standard solution to this problem? For what it's worth, I am interested in using Zope to build my second E-commerce site. I built the first site by using Python to generate static pages from a data structure, combined with lots of JavaScript and a little Perl CGI. It worked, but I'm sure there is a better way. I was leaning towards a Java servlet plus templating package solution, until I found Zope. I've been a Python proponent for a while, but Zope is threatening to make my brain explode. Talk about paradigm shifts. C) Despite my Python and OO background, it's not easy to absorb it all at once. This does make me somewhat concerned, as my business partner, who will be a content provider, has no OO experience. I don't want to produce a system where it will be hopeless for her (possibly with help from another developer) to take over if I get hit by a bus. Thoughts...? Robert Wentworth rhww@erols.com (aka webmaster@tripplebrookfarm.com) From jeffbauer@bigfoot.com Sun Mar 14 23:03:14 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sun, 14 Mar 1999 17:03:14 -0600 Subject: [Zope] Simulating static URLs, end-user session management References: <36EC3A7B.53817A8D@erols.com> Message-ID: <36EC4032.20B3346E@rubic.com> Robert Wentworth wrote: > C) Despite my Python and OO background, > it's not easy to absorb it all at once. This does > make me somewhat concerned, as my business partner, > who will be a content provider, has no OO experience. > I don't want to produce a system where it will be > hopeless for her (possibly with help from another > developer) to take over if I get hit by a bus. > Thoughts...? Robert, I'm only going to address your last point, but it's something I feel strongly about. Let's ignore the technical issues, except to mention that only you can judge is Zope is appropriate for your situation. Fortunately, you have an excellent opportunity to discover its relative strengths and weaknesses. One of the important secondary issues (some would claim the primary) about Open Source is that it protects your business against the "What happens if Robert gets hit by a bus?" scenario. Digital Creations is in the business of providing support to organizations that use its products. Heck, in this sense it's even superior to key man insurance. Furthermore, because of DC's courageous decision to release Zope as Open Source, not only is your company protected against *your* untimely demise, but it's even secure against the day Hadar decides to transfer all the company assets into hedge funds. Best regards, Jeff Bauer Rubicon, Inc. From hadar@verticality.com Mon Mar 15 01:18:05 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sun, 14 Mar 1999 20:18:05 -0500 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC4032.20B3346E@rubic.com> Message-ID: <000101be6e81$ad7c65c0$7863efa1@hadar.bestweb.net> [excellent answer from Jeff Bauer snipped] > Furthermore, because of DC's courageous decision to > release Zope as Open Source, not only is your company > protected against *your* untimely demise, but it's even > secure against the day Hadar decides to transfer all > the company assets into hedge funds. OUCH. My plan is now unveiled to the world prematurely. That settles it. Jeff, I'm taking back your shares in the hedge fund for telling :-) From JMiller@zefer.com Mon Mar 15 04:01:30 1999 From: JMiller@zefer.com (Justin Miller) Date: Sun, 14 Mar 1999 23:01:30 -0500 Subject: [Zope] Help! How do I make the JobBoard example work? Message-ID: Hi All, As an exercise, I'm trying to get the JobBoard example code given in http://www.zope.org/Documentation/Reference/ObjectPublishingIntro to work in Zope (as opposed to Bobo/ZPublisher), and am having some difficulty. Copying the PeeWee's playhouse example in http://www.zope.org/Documentation/Reference/ExternalMethods, I placed all the JobBoard files in zope/lib/python/shared/JobBoard, made an empty __init__.py file, fixed up the dtml_loc variable, and put a JobBoard_utils.py file into zope/extensions, which reads as follows: "utility to add JobBoard objects to folders" def addJobBoard(self,id): "Add a playhouse to the current folder" if not hasattr(self,id): setattr(self,id,JobBoard("Python Jobs")) return "JobBoard added with id %s" % id else: return "id %s already in use" % id Using Zope's management GUI, I successfully added the addJobBoard function as an external method, and have successfully called it to create a JobBoard object called testJobBoard. However, when I try to view the testJobBoard object, I get an error message that reads "Sorry, the requested document does not exist." The addJobBoard function was added as an external method to the root folder, so my understanding is that the testJobBoard object should also be accessible from within the root folder (that is that its URL is "localhost:9673/testJobBoard"). What am I doing wrong here? Also, what is the proper way to debug this sort of problem? The output of the zope process merely mentions a GET request for the given URL, and the 404 response code -- no further detail is given. Thanks in advance for the help! -Justin http://www.zope.org/Documentation/Reference/ProductTutorial.tar.gz From jkhoffman@usa.net Mon Mar 15 04:30:59 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:30:59 -0500 (EST) Subject: [Zope] ZAP In-Reply-To: Message-ID: On Sun, 14 Mar 1999, Shaw, Howard wrote: > How can I configure ZAP so that all http requests go through the cgi? > Zope is the only thing running through this apache, so I don't want > everything on the site prefixed with Zope/ (or anything else, so no, I > don't just want to know how to change the prefix). This is basically > what is keeping me on ZopeHTTPServer. > > [snip] > > How can I make a Zope pcgi accessible as the root of a Zap install? > Please help. In looking through my Apache configuration files, I tried to piece together what changes I made. Here's what I think you need to do. In httpd.conf, make sure you have these lines (I put them at the end): Alias / /cgi-bin/Zope.cgi # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] NOTE: In the RewriteRule directive above, the [e=...] stuff should go directly after the ...Zope.cgi/$1 section, with a space separating them, e.g. ...Zope.cgi/$1 [e=HTTP...] You will need to munge the path in the RewriteRule directive, where it says /home/httpd to be wherever your document root is. I did this a while back, and have since switched from Apache to ZServer to test it out, so I haven't used it lately. However, this should work, as I never changed the config files after I stopped using Apache. Let me know if you have problems; I'll do what I can to help. > Howard C. Shaw III jkh From jkhoffman@usa.net Mon Mar 15 04:32:12 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Sun, 14 Mar 1999 23:32:12 -0500 (EST) Subject: [Zope] and it did not > work, but when I use it works nicely... How do I do > this with #var ? I think you need . I haven't tested this, so I'm not sure it works, but I am 99% sure this is what you're going for. > Milos Prudek jkh From rhww@erols.com Mon Mar 15 05:20:02 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 00:20:02 -0500 Subject: [Zope] mailing list archive download in bulk? Message-ID: <36EC9882.79908EE8@erols.com> Is there any way of downloading large blocks of the Zope mailing list archive in bulk, rather than wading through one message at a time over the web (which is rather painful, especially since I haven't discovered how to get a listing of all the discussion threads so I can be more systematic)? From chsrinfo@guetali.fr Mon Mar 15 05:43:45 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 15 Mar 1999 09:43:45 +0400 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo Message-ID: <00e701be6eb0$962a3300$147800a0@pc-pi0> >Are you confused by the subtleties of DTML? Want the skinny on advanced >DTML tricks and gotchas? Check out my advanced DTML HowTo: > >http://www.zope.org/Documentation/HowTo/DTML > Thanks You say "one shouldn't have to use instead of ." However, i find it useful to write: instead of: Hope that helps... Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Mon Mar 15 08:04:33 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:04:33 +0100 Subject: [Zope] and it did not >work, but when I use it works nicely... How do I do >this with #var ? > is the best way to go. It'll insert a IMG tag with an absolute URL, and if it knows the image width and height, these will be included in the image tag. Make sure you use the quotes! img.name means: the attribute 'name' of the object called 'img'. You can specify the image width and height by hand in the images' property screen, but if you uploaded a PNG or GIF image, Zope will deduce the width and height from the image itself. The next Zope release will also support JPEG image size detection. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:25:50 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:25:50 +0100 Subject: [Zope] . > > I haven't tested this, so I'm not sure it works, but I am 99% sure this is It doesn't work. > what you're going for. Yes, that's what I want. Maybe what I'm trying to do is against object-oriented concept? I can see that images should be kept with the DTML page that calls them. I just need images to be accessible by a group (role) of "image managers", but the code that holds it to together should be accessible to an Admin role only. -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:46:56 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:46:56 +0100 Subject: [Zope] Simulating static URLs, end-user session management In-Reply-To: <36EC3A7B.53817A8D@erols.com> Message-ID: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> At 23:38 14/03/99 , Robert Wentworth wrote: >A) Are there reasonable ways of arranging to have > the URLs for some/many Zope generated pages appear, as > far as the outside world is concerned, to be URLs > for static HTML pages? > > The issue is one of indexing by search engine robots. > I anticipate building a site where most of the > content will change fairly slowly, and where there > would be a standard set of views of the data which > would be essentially static at a logical level. I > really want search engines to index those static > views. (There would likely also be dynamically > generated views which shouldn't be indexed.) > > So, I think the requirement is that there should be a > way of getting to pages with a URL like: > > http://www.mydomain.com/here/there/everywhere.html > > as opposed to > > http://www.mydomain.com/here/there/everywhere > > or > > http://www.mydomain.com/here/there?everwhere > There is little reason to avoid naming your objects with the extension built into the ID, like everywhere.html. You can then simply refer to the object using that ID, which to a not so smart indexing bot will look like an HTML file (but it should *really* look at the MIME-type...). The only problem would be referencing the object, as you have to take precautions to make sure Python doesn't try to reference the attribute named 'html' on the object 'everywhere'. So, as long as you name your DTML Documents that are to be indexed with the .html extension, everything should go fine. >B) On another topic entirely, I am wondering about the issue >of tracking sessions of end-users. (Hmmm... maybe I should >have done more searching in the archives -- this must be >a common issue.) Various application servers (e.g., for >Java servlets) that I've looked at provide facilities >for maintaining "session" information (not in the sense >of a transaction as used in Zope) about end users. Typically >this would be done by setting a cookie or by incorporating >a session ID into dynamically generated URLs. I haven't >noticed anything about this in the Zope documentation. >I'm guessing that perhaps that is because Zope is so >powerful that implementing something like this yourself >is regarded as trivial. But thinking about it a bit, >I'm not sure what the Zope mindset would be about how >to do this. Zope sends requests directly to objects. >But in order to manage a session cookie (or whatnot) >you need to add a certain functionality to every (or >most HTTP) requests. You certainly don't want to have >every object explicitly worry about this. Is there >a hook that would allow all requests to >pass through some sort of filter that extracts/manages >session information? Or is there some other standard >solution to this problem? > No, Zope has no Session tracking facilities at this moment. DC is however working on this. At the moment you will find a 'Session' object in your Zope distribution, but this is a different concept altogether, and will be renamed to 'Version' when client session objects appear. >C) Despite my Python and OO background, >it's not easy to absorb it all at once. This does >make me somewhat concerned, as my business partner, >who will be a content provider, has no OO experience. >I don't want to produce a system where it will be >hopeless for her (possibly with help from another >developer) to take over if I get hit by a bus. >Thoughts...? DC can be hired to help out... and as Zope is now Open Source, a growing number of people can help out. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 08:53:46 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 09:53:46 +0100 Subject: [Zope] should do it but your second method I think is > better. Yes, this works. Quotes helped. Now, how can I add border=0 ? -- Milos Prudek From mj@antraciet.nl Mon Mar 15 08:55:27 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 09:55:27 +0100 Subject: [Zope] mailing list archive download in bulk? In-Reply-To: <36EC9882.79908EE8@erols.com> Message-ID: <4.1.19990315095409.00be5640@lisp.atmm.nl> At 06:20 15/03/99 , Robert Wentworth wrote: >Is there any way of downloading large blocks of the >Zope mailing list archive in bulk, rather than >wading through one message at a time over the >web (which is rather painful, especially since >I haven't discovered how to get a listing of >all the discussion threads so I can be more >systematic)? > Download the archive at http://www.zope.org/pipermail/zope/ You can get overviews by thread, date, subject and author, and DL the whole list in Gzip'd files. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:39:19 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:39:19 +0100 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: <4.1.19990315103629.00c168a0@lisp.atmm.nl> At 06:43 15/03/99 , Service Informatique CHSR wrote: >You say "one shouldn't have to use instead of >." >However, i find it useful to write: > > > > > >instead of: > > > > > How about or So we can confuse each other even more =). -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Mon Mar 15 09:50:45 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 10:50:45 +0100 Subject: [Zope] should do it but your second method I think is >> better. > >Yes, this works. Quotes helped. > >Now, how can I add border=0 ? > Yep, you got use there.... calling the Image object doesn't generate extra information like border=0. DC is working on a solution to that, at least, I think they said so. For now you will have to write out the IMG tag yourself: " height="" border=0> I assumed that the img Folder object is a direct subobject of the Zope root object. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 10:18:41 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 11:18:41 +0100 Subject: [Zope] /img/name" width="" Looks terrible :-) I think I rather use for the time being. -- Milos Prudek From julian@zereau.net Mon Mar 15 12:01:09 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:01:09 -0000 (GMT) Subject: [Zope] incrementally improving a product? Message-ID: If I build a product, deploy instances of it, and continue editing and reloading the product, will its instances be improved or will they be frozen at the state they were in when created? Also, is there any problem with the instances failing to work with a newer product version? --- Julian Morrison Programmer (Zereau Ltd) From julian@zereau.net Mon Mar 15 12:16:06 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 12:16:06 -0000 (GMT) Subject: [Zope] . okay next qustion: I have a image under a folder called "images". should work - except that the image filename contains the "." character (eg: "foo.gif") and this gets confused with the dot notation of the object (it tries to find images/foo/gif and chokes with a traceback) So how do I get round this one? --- Julian Morrison Programmer (Zereau Ltd) From TomJenkins@zentuit.com Mon Mar 15 13:36:28 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 08:36:28 -0500 Subject: [Zope] MySQL & integer IDs Message-ID: <199903151339.IAA24178@mail.digiweb.com> (I'm resending this as I didn't see it appear on the list the first time) > At 06:14 14-3-99 , Tom Jenkins wrote: > >Now unfortunately I believe the L is causing the insert to fail with an > >invalid integer. I specified user_id as integer unsigned zerofill > >auto_increment. Does anyone know why the 'L' is being return? > > > > The L value is caused by a long integer to string conversion. You can get > rid of the L by specifying a C format string, like so: > > > thanks guys that was exactly the problem and the above fixed it. I didn't know about the fmt capability. Anthony: works too. Thanks again, -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From tony.mcdonald@ncl.ac.uk Mon Mar 15 13:55:02 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 13:55:02 +0000 Subject: [Zope] Searching a Zope site (in the traditional way) Message-ID: How do you do this?, ie to get a list of files/objects that contain the search term, laid out in a way that the external user would recognise. I don't mean the 'find' tag in the manage screens, by the way... Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tony.mcdonald@ncl.ac.uk Mon Mar 15 14:54:16 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 15 Mar 1999 14:54:16 +0000 Subject: [Zope] File upload product anywhere? Message-ID: Hi all, Has anyone written a file upload 'product' that they'd like to share? My own requirements are that; the files should (optionally) go to a file system, I need to be able to change the interface for the system, the users should be authenticated from an external database, the files (if held in a file system) should retain their associations with folders (for permissions and access), and I'd like it in blueberry please. What I'm basically after is the best of both worlds - Zope permissions/acquisition etc. with the 'safety net' of a file system for large files (and possible batch uploading). My problem (or one of them) is that there's no way that I'm up to speed enough in Zope/Python to start on this...I have a system doing the file upload working well in PHP3, but that (obviously) doesn't have the permissions/acquisition power of Zope. I guess I could do redirects to my PHP3 scripts from within Zope however, but it's hardly (ahem) 'elegant'. any thoughts gratefully accepted. Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From mj@antraciet.nl Mon Mar 15 16:23:03 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 15 Mar 1999 17:23:03 +0100 Subject: [Zope] Searching a Zope site (in the traditional way) In-Reply-To: Message-ID: <4.1.19990315152120.00bb8520@lisp.atmm.nl> At 14:55 15/03/99 , Tony McDonald wrote: >How do you do this?, ie to get a list of files/objects that contain >the search term, laid out in a way that the external user would >recognise. > >I don't mean the 'find' tag in the manage screens, by the way... > The find management screen does give helpful hints. If you want to implement this kind of searching, you'll have to use the same techniques. These are however largely undocumented. The file lib/python/OFS/findResult.dtml should give you a lot of hints on how to implement a search command. It comes down to calling PrincipiaFind on a Folder with the right arguments: obj, obj_ids, obj_metatypes, obj_searchterm, obj_expr, obj_mtime, obj_mspec, obj_permission, obj_roles, search_sub, REQUEST, result, pre where * obj -- base folder to start at * obj_ids -- (optional) list of object ID's to search * obj_metatypes -- (optional) list of meta types to search for (if the string 'all' is in this list, all objects, whatever their meta type will be included in the results). * obj_searchterm -- (optional) literal text to search for in the *source* of DTML Documents and DTML Methods. * obj_expr -- (optional) DTML expression (as would be used in the expr attribute of for example the var tag). If this expression returns true within the context of an object, the object is included in the search results. You could use this for testing on certain properties, like 'foo=bar'. * obj_mtime -- (optional) DateTime object or string that can be converted to a DateTime object, specifying a modification time to compare objects against. Will on default return objects that have been modified since obj_mtime. * obj_mspec -- (optional) When used with obj_mspec, and set to '<', PrincipiaFind will only return objects which have been last modified before the date and time specified by obj_mtime. * obj_permission -- (optional) To be used together with obj_roles. Check if the roles specified by obj_roles have the obj_permission permission. Only these objects are included in the results. * obj_roles -- (optional) List of roles to check for obj_permission access. See obj_permission. * search_sub -- (optional) if true, search subobjects recursively. * REQUEST -- (optional) REQUEST object, used to make sure that AUTHENTICATED_USER is available for obj_expr expressions. * result -- a list of objects to be included in the returned results. Used by the PrincipiaFind method when recursively searching subobjects. Generally of no use to us humble DTML programmers. * pre -- prefix the IDs in the returned result list with pre and a slash. So, when called with pre='foo', and bar is the only object found, PrincipiaFind will return the list of tuples: [('foo/bar', foo)]. This argument is used when recursively searching subobjects, where pre is the relative URL of the object searched. Generally of no use to us humble DTML programmers. The method returns a list of tuples, where the first element of every tuple is the relative URL of the object found (relative to the starting point), and the second element is the object itself. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Mon Mar 15 16:38:22 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:38:22 +0100 Subject: [Zope] should work - except that the image filename > contains the "." character (eg: "foo.gif") and this gets confused Object name can be different from filename. Thus you name your foo.gif file just Foo, and that's it. -- Milos Prudek From prudek@sol.cz Mon Mar 15 16:40:40 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 17:40:40 +0100 Subject: [Zope] database upload Message-ID: <36ED3808.8DDF4B8B@sol.cz> I have MySQL database, and I want to upload my gif files into it through Zope, just like when creating Image component. How can I achieve this? -- Milos Prudek From pje@telecommunity.com Mon Mar 15 16:54:10 1999 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 15 Mar 1999 11:54:10 -0500 Subject: [Zope] should work - except that the image filename >> contains the "." character (eg: "foo.gif") and this gets confused > > >Object name can be different from filename. Thus you name your foo.gif >file just Foo, and that's it. > Or, if you absolutely must have '.' in the filename, try: From julian@zereau.net Mon Mar 15 17:22:42 1999 From: julian@zereau.net (julian@zereau.net) Date: Mon, 15 Mar 1999 17:22:42 -0000 (GMT) Subject: [Zope] "magic buttons" in forms Message-ID: Two questions about "magic" behavior of form submit buttons: 1)The "cancel" button system, can it be made to work with a button with another value apart from "cancel"? (such as "back" or "home") 2)The system, please can someone explain this, as it is the only way I have yet figured out to do a single form with many destination pages. Also, does this behave differently in DTML methods and DTML documents? --- Julian Morrison Programmer (Zereau Ltd) From M.Faassen@vet.uu.nl Mon Mar 15 17:26:19 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 15 Mar 1999 18:26:19 +0100 Subject: [Zope] Newbie dtml question ( very simple ) References: <36E8DAA7.4D10D682@oi42.kwu.siemens.de> Message-ID: <36ED42BB.79076C57@pop.vet.uu.nl> "Dr. Armin Tschammer" wrote: > XY.py : > > d = {} > d['x1']=1 > d['x2']=2 > X = DocumentTemplate.HTMLFile('X3.dtml') > string = X(d) Hmm. Have you tried this, instead? class Foo: pass myfoo = Foo() foo.x1 = 1 foo.x2 = 2 X = DocumentTemplate.HTMLFile('X3.dtml') output = X(foo) Regards, Martijn From amos@aracnet.com Mon Mar 15 17:32:41 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:32:41 -0800 Subject: [Zope] incrementally improving a product? In-Reply-To: Message-ID: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> At 12:01 PM 3/15/99 -0000, julian@zereau.net wrote: >If I build a product, deploy instances of it, and continue editing and >reloading the product, will its instances be improved or will they be frozen at >the state they were in when created? Zope's object database uses Python's pickle facility, so in general instances only store their own data, and use whatever version of the class is available. Classes are not stored in the database. This means that when you change your class, your instances will be updated. >Also, is there any problem with the instances failing to work with a newer >product version? Yes. And this is not a Zope-specific issue, or even a Python-specific issue. Anytime you have long-lived instances and change the class, you may run into problems. Python comes with a couple hooks to help you out. You should look into __getstate__ and __setstate__ which are documented in the Python pickle documentation. Probably the most common type of problem occurs when your new class definition assumes a new attribute which the old instances don't have. An easy way to solve this is to provide a class attribute which gives a reasonable default for this attribute. For example: class MyClassV1: 'Original class' def __init__(self): self.color='red' class MyClassV2: 'Updated class' def __init__(self): self.color='red' self.texture='bumpy' def describe(self): return 'I am %s and %s' % (self.color, self.texture) Notice that instances created with MyClassV1 will not have a 'texture' attribute, so that when the class is updated, old instances will break when you call the new 'describe' method. A simple fix is to provide a default class attribute. For example: class MyClassV2: 'Backward compatible updated class' texture='nondescript' ... Now old instances won't break in the 'describe' method. Another approach is to test for the attribute and update the instance when you're going to use it. For example: def describe(self): if self.texture=='nondescript': self.get_texture() ... If 'describe' is the only place where you use 'texture' then you wouldn't even need to provide a class attribute, and could simply test for the absence of the attribute. Finally you might include version numbers in your instances and test for these, but this seems like overkill. I would suggest sticking to default class attribute solution for most cases. Hope this helps, and good luck. -Amos From amos@aracnet.com Mon Mar 15 17:50:19 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 15 Mar 1999 09:50:19 -0800 Subject: [Zope] . > >okay next qustion: I have a image under a folder called "images". > should work - except that the image filename >contains the "." character (eg: "foo.gif") and this gets confused with the dot >notation of the object (it tries to find images/foo/gif and chokes with a >traceback) In general, when you have trouble spelling an object's name in a variable expression because its name is not a legal Python name (e.g. 'sequence-item' or 'foo.gif') then you should use _[] or _.getitem However in your case you can simply get the sub-object with a plain old getattr: Another possibility is to use the with tag: Since these are so ugly, you might consider the simpler manual method of generating the img tag: or else you might consider *not* having a images directory, and keeping your images in the Folders where they're used. Then you can refer to the images directly: And because of acquisition, foo.gif is accessible to all sub-Folders of the Folder it is located in, in the same way. -Amos From doug@sonosphere.com Mon Mar 15 06:59:03 1999 From: doug@sonosphere.com (Doug Wyatt) Date: Mon, 15 Mar 1999 01:59:03 -0500 Subject: [Zope] ANNOUNCE: Advanced DTML HowTo In-Reply-To: <00e701be6eb0$962a3300$147800a0@pc-pi0> Message-ID: At 9:43 +0400 3/15/99, Service Informatique CHSR wrote: > You say "one shouldn't have to use instead of > ." > However, i find it useful to write: > > > > > > instead of: > > > > I seem to remember that this works, too: Doug -- Doug Wyatt doug@sonosphere.com Sonosphere (electric/improv music) http://www.sonosphere.com/ From prudek@sol.cz Mon Mar 15 18:49:21 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 19:49:21 +0100 Subject: [Zope] fsimport HowTo References: <199903142011.UAA19578@cheviot.ncl.ac.uk> Message-ID: <36ED5631.614CA2A6@sol.cz> > > I've tried that too. Didn't help. What could be wrong? > suggest (clutching at straws here) that having '.' in the fsdir attribute might be throwing it? Well, since that's a symlink anyway, I tried to suck directly from /home/pes/public_html. Still nothing. I even changed that dir to be world writable. > Even more clutching here - did you leave the trailing slash off the fsdir > attribute? I tried both. I'm sure I must be crazy. I summarize what I did: 1. downloaded fsimport.py 2. mkdir /usr/local/zope/Extensions 3. chown nobody:www Extensions 4. chmod /usr/local/zope/Extensions to be rwxr-xr-x 4. copied fsimport.py to /usr/local/zope/Extensions 5. chown nobody:www fsimport.py 6. chmod fsimport.py to be rw-r--r-- 7. created External method fsimport inside of ppm 8. put "fsimport" into all 4 fields (Id, Title, Function name, Python module name) 9. http://www.sol.cz/Zope/ppm/fsimport?fsdir=/home/pes/public_html 10. error "TypeError: read-only buffer, class" I must have missed something. -- Milos Prudek From vit@lipetsk.ru Mon Mar 15 19:05:55 1999 From: vit@lipetsk.ru (Victor Gamov) Date: Mon, 15 Mar 1999 22:05:55 +0300 Subject: [Zope] Bugs in pcgi-wrapper? Message-ID: <36ED5A13.9A0210B9@lipetsk.ru> Hi! Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with Apache-1.3.4 box. After succesfully installation I try to connect to cgi-bin/Zope.cgi/manage and got "file does not exist" error message. I look in source code and found that in pcgiConnect() function only socket() & connect() are present. But where is bind()?. When I fix this problem I found new error message "unable to connect". In function pcgiStartProc I found that sigemptyset(&zmask) we use the foollowing: while (sigflag == 0) sigsuspend(&zmask); So, after first iteration we have empty signal set and kill(pid, SIGUSR1) from father will be terminate our process. If I wrong, please correct me. -- CU, Victor Gamov From rhww@erols.com Mon Mar 15 19:14:14 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 14:14:14 -0500 Subject: [Zope] Simulating static URLs, end-user session management References: <4.1.19990315091542.00bee9c0@lisp.atmm.nl> Message-ID: <36ED5C06.F73DA0CD@erols.com> Martijn Pieters wrote: > > At 23:38 14/03/99 , Robert Wentworth wrote: > >A) Are there reasonable ways of arranging to have > > the URLs for some/many Zope generated pages appear, as > > far as the outside world is concerned, to be URLs > > for static HTML pages? ... > There is little reason to avoid naming your objects with the extension > built into the ID, like everywhere.html. You can then simply refer to the > object using that ID, which to a not so smart indexing bot will look like > an HTML file (but it should *really* look at the MIME-type...). Perhaps I'm failing to understand something. Looking at pages on zope.org and some obviously dynamic pages on other sites, they all return a MIME-type of "text/html". Which I think means that a smart indexing bot should *not* simply look at the MIME-type. As I understand it, most search engine robots try to exclude dynamic content because of the justifiable fear that once they start exploring a web of dynamic content they could get lost in an infinite or near-infinite search space. I've read that as a result of this, search engine robots do things like refuse to index any URL with "cgi-bin" in the path, or which do not end in an approved recognized file extension. Do you have a different perception of search engine robot policies/strategies? > The only > problem would be referencing the object, as you have to take precautions to > make sure Python doesn't try to reference the attribute named 'html' on the > object 'everywhere'. Guess I'm going to need to experiment. I'm a little fuzzy on how this would work (but then I'm a little fuzzy in general at this point). > So, as long as you name your DTML Documents that are to be indexed with the > .html extension, everything should go fine. > > >B) On another topic entirely, I am wondering about the issue > >of tracking sessions of end-users. ... > No, Zope has no Session tracking facilities at this moment. DC is however > working on this. At the moment you will find a 'Session' object in your > Zope distribution, but this is a different concept altogether, and will be > renamed to 'Version' when client session objects appear. Are there any projections available re the timing of this? I'm wondering about how much effort to spend on ad-hoc interrim measures. FWIW, in my mind an ideal client session scheme would allow multiple strategies. In most cases using cookies works out for the best, but I would like to be able to accommodate anti-cookie zealots as necessary. On the other hand, I don't want to clutter URLs with session-id's if I don't need to. (I suppose having authenticated users is yet another strategy, and one that Zope currently seems oriented towards. Fine if users really want or need to get into your site or need to perform authorized operations, but not so good if you're trying to entice them in.) Robert Wentworth From rhww@erols.com Mon Mar 15 21:15:27 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 16:15:27 -0500 Subject: [Zope] Newbie: trouble getting started under Windows 98 Message-ID: <36ED786F.60F36D39@erols.com> While I expect to eventually be working under Unix (once I can convince my hosting provider to install Zope), at present I'm trying to use Zope under Windows 98. The problem is: it's not working. I'm using the Zope HTTP server, and I can contact the management system just fine, a prowl around looking at everything. But if I try to add an object (whether it be a DTML Document, a Folder, or an "Item" from the sample_product package (which I installed), what happens is: I am allowed to fill out the form where you enter object creation fields (ID, title, etc.), but when I send that form the HTTP server never returns. Any clues as to how to fix this, or debug it, or get any idea as to what is happening? Robert Wentworth From prudek@sol.cz Mon Mar 15 21:22:49 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:22:49 +0100 Subject: [Zope] Zope modifies HTML order of tags? Message-ID: <36ED7A29.89A174FC@sol.cz> It seems to me that Zope is rendering my HTML tag attributs in different order than in the source. For instance I put into property named tabstart. Looking into source produced by Zope, I found
    Why is Zope doing this? Maybe there's good reason, but I'd like to know, because too smart software is sometimes more burden than a help. Also some attributes are omitted in the rendering process. Property "width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up without vspace statement. -- Milos Prudek From prudek@sol.cz Mon Mar 15 21:15:45 1999 From: prudek@sol.cz (Milos Prudek) Date: Mon, 15 Mar 1999 22:15:45 +0100 Subject: [Zope] Feature request - local file browsing Message-ID: <36ED7881.EB1C4F7B@sol.cz> Would it be possible to modify expected file type when I click on browse and want to add local image type? Browser always presents .htm extension, so that I need to change it to *. I run browser from windows, Zope itself is on linux box. -- Milos Prudek From gwachob@findlaw.com Mon Mar 15 23:20:20 1999 From: gwachob@findlaw.com (Gabe Wachob) Date: Mon, 15 Mar 1999 15:20:20 -0800 Subject: [Zope] DTML indirection question again Message-ID: <36ED95B4.4EE4B7DD@findlaw.com> OK, here's the situation. I have a "login" page that I want to list the contents of different directories depending on the value of the AUTHENTICATED_USER Each user has a folder under the folder 'user'. I would like to be able to do (simplified):
    However, I get a TypeError on the #with line (and even if I put in the AUTHENTICATED_USER.id instead of just AUTHENTICATED_USER). What am I doing wrong here? I've tried a lot of different combinations of #with and _.getitem and such.. THANKS -Gabe From andreww@netscape.com Mon Mar 15 23:31:39 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Mon, 15 Mar 1999 15:31:39 -0800 Subject: [Zope] My own zope site... Message-ID: <36ED9827.7A8EB410@netscape.com> I've started a site that will show the results of my work in getting Dreamweaver and Zope to talk to each other - and I would appreciate a link from the zope.org site if there is a section for 3rd party developer links... I will post here (at the web site) ideas for improving the UI for the HTML interface for Zope as well. http://alaji.home.mindspring.com/zopeweaver/ -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From jeffbauer@bigfoot.com Tue Mar 16 02:08:36 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 15 Mar 1999 20:08:36 -0600 Subject: [Zope] Bugs in pcgi-wrapper? References: <36ED5A13.9A0210B9@lipetsk.ru> Message-ID: <36EDBD24.AAFDE1FC@rubic.com> Victor Gamov wrote: > Today I tryed to install Zope-1.10.2 on my FreeBSD-3.1 with > Apache-1.3.4 box. After succesfully installation I try to connect to > cgi-bin/Zope.cgi/manage and got "file does not exist" error message. > I look in source code and found that in pcgiConnect() function only > socket() & connect() are present. But where is bind()?. When I fix > this problem I found new error message "unable to connect". Victor, I think your problem lies elsewhere. The client does not have to bind a local address before calling connect. The connect() function automatically assigns an unused port to the socket. You will probably find the problem is much more obvious than a low-level socket bug. Check your Zope.cgi paths, permissions, and Apache configuration. Good luck. Jeff Bauer Rubicon, Inc. From rhww@erols.com Tue Mar 16 02:55:13 1999 From: rhww@erols.com (Robert Wentworth) Date: Mon, 15 Mar 1999 21:55:13 -0500 Subject: [Zope] Re: Newbie: trouble getting started under Windows 98 References: <36ED786F.60F36D39@erols.com> Message-ID: <36EDC811.B13562F9@erols.com> FWIW, after messing around for several hours trying to diagnose this, the problem mysteriously went away. (I uninstalled another version of Python and its extensions, reinstalled them, ran Zope inside Pdb -- and things started working. Got out of Pdb, restarted, and things continued to work. No clue as to why things were consistently hanging before.) > While I expect to eventually be working under Unix > (once I can convince my hosting provider to install Zope), > at present I'm trying to use Zope under Windows 98. > > The problem is: it's not working. > > I'm using the Zope HTTP server, and I can contact the > management system just fine, a prowl around looking > at everything. But if I try to add an object (whether > it be a DTML Document, a Folder, or an "Item" from > the sample_product package (which I installed), what > happens is: > > I am allowed to fill out the form where > you enter object creation fields (ID, title, etc.), > but when I send that form the HTTP server never > returns. > > Any clues as to how to fix this, or debug it, or get any > idea as to what is happening? From TomJenkins@zentuit.com Tue Mar 16 03:49:52 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 22:49:52 -0500 Subject: [Zope] setting variable Message-ID: <199903160352.WAA04182@mail.digiweb.com> Hello folks, I'm stuck on a problem which I hope some one could help me with. I have a database entry form where the user will enter in information for two related tables. When she submits the form, I want to first post one tables information, then call another sql method to get the id generated for that post, then take that value and add it to the REQUEST object and pass it to the second sql insert for inserting to the second table (along with some other parts of the REQUEST object from the form). I'm planning on using MySQL that has a special select: select LAST_INSERT_ID() to return the last auto-generated id value to get the id. I know you can add a variable to the REQUEST object via but how to I get the value from the sql method? The only way I know now is via #var tags but you can't nest the DTML. I hope this makes sense... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 04:17:44 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 15 Mar 1999 23:17:44 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <199903160420.XAA01117@mail.digiweb.com> To followup my last post, I'm getting an exception when trying to use MySQL's "select LAST_INSERT_ID()" function: Error, exceptions.KeyError: unhandled SQL used: select LAST_INSERT_ID() Anybody have any ideas? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From chsrinfo@guetali.fr Tue Mar 16 06:09:10 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 16 Mar 1999 10:09:10 +0400 Subject: [Zope] access content informations & use mailhost services properties Message-ID: <000701be6f75$9a8de5c0$147800a0@pc-pi0> Nobody responded. So it went to the Collector. I don't even know if this is a bug. >Also, before I submit this to the Collector, is it normal that the "use >mailhost services" >doesn't appear in the security tab of the folders? Each product has its >permissions >that are listed, but nothing with the mailhost object. >I had to change it directly in the mailhost object. >If it's normal, it means that i can't give global permission for mailhost >objects??? >What confuse me, however, is that the mailhost object claims to "acquire" >permission >settings from its parents, but nowhere in its parents i can define the >permissions. Regards, Jephte CLAIN Service Informatique CHSR From mj@antraciet.nl Tue Mar 16 09:51:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:51:11 +0100 Subject: [Zope] Feature request - local file browsing In-Reply-To: <36ED7881.EB1C4F7B@sol.cz> Message-ID: <4.1.19990316104251.00bbca50@lisp.atmm.nl> At 22:15 15/03/99 , Milos Prudek wrote: >Would it be possible to modify expected file type when I click on browse >and want to add local image type? Browser always presents .htm >extension, so that I need to change it to *. I run browser from windows, >Zope itself is on linux box. This is something Zope can´t influence, it´s part of the way your browser works. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From mj@antraciet.nl Tue Mar 16 09:53:48 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 10:53:48 +0100 Subject: [Zope] Zope modifies HTML order of tags? In-Reply-To: <36ED7A29.89A174FC@sol.cz> Message-ID: <4.1.19990316105207.00bbe560@lisp.atmm.nl> At 22:22 15/03/99 , Milos Prudek wrote: >It seems to me that Zope is rendering my HTML tag attributs in different >order than in the source. For instance I put >
    >into property named tabstart. >Looking into source produced by Zope, I found >
    >Why is Zope doing this? Maybe there's good reason, but I'd like to know, >because too smart software is sometimes more burden than a help. > >Also some attributes are omitted in the rendering process. Property >"width=106 height=106 border=0 align=right hspace=10 vspace=0" ended up >without vspace statement. Could you supply us with some DTML examples of this behaviour? It´s not something I´ve seen before. Is there any chance your HTML editor is doing this? -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From M.Faassen@vet.uu.nl Tue Mar 16 10:36:43 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:36:43 +0100 Subject: [Zope] incrementally improving a product? References: <3.0.5.32.19990315093241.0116a860@mail.aracnet.com> Message-ID: <36EE343B.B2953170@pop.vet.uu.nl> Amos Latteier wrote: [snip Amos' answers] Hey, this was a very good answer, so I added this to the FAQ (new updates will be on the zdp.zope.org site later today). Thanks Amos! Regards, Martijn From M.Faassen@vet.uu.nl Tue Mar 16 10:57:38 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 11:57:38 +0100 Subject: [Zope] sequence of numbers References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <36EE3922.FD588AE4@pop.vet.uu.nl> Eric Kidd wrote: > > On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: > > This may be a newbie question, but I've loked thru the doc and didn't > > spot any obvious way to do this, short of an External Method. > > I didn't find any other way, either. But here's an External Method you can > use. [snip external method] I'm wondering; is there a reason why 'range' isn't accessible from DTML in the '_' namespace? Is the reason as you indicated in your external method, i.e. that you don't want people to generate vast ranges from DTML? Just curious, Martijn From mj@antraciet.nl Tue Mar 16 11:58:15 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 16 Mar 1999 12:58:15 +0100 Subject: [Zope] sequence of numbers In-Reply-To: <36EE3922.FD588AE4@pop.vet.uu.nl> References: <9903121826.ZM7584@saab.coinet.com> <19990313144748.F30044@moebius.dartmouth.edu> Message-ID: <4.1.19990316121205.00bcc2a0@lisp.atmm.nl> At 11:57 16/03/99 , Martijn Faassen wrote: >Eric Kidd wrote: >> >> On Fri, Mar 12, 1999 at 06:26:42PM -0800, Bill Randle wrote: >> > This may be a newbie question, but I've loked thru the doc and didn't >> > spot any obvious way to do this, short of an External Method. >> >> I didn't find any other way, either. But here's an External Method you can >> use. > >[snip external method] > >I'm wondering; is there a reason why 'range' isn't accessible from DTML >in the '_' namespace? Is the reason as you indicated in your external >method, i.e. that you don't want people to generate vast ranges from >DTML? > >Just curious, The reason if of course merory flooding attacks. A range that asks for a list of 3 billion items is a wee bit unpolite to the machine. A way of checking would be: RANGELIMIT = 1000 def SafeRange(iFirst, *args): if not len(args): iStart, iEnd, iStep = 0, iFirst, 1 elif len(args) == 1: iStart, iEnd, iStep = iFirst, args[0], 1 elif len(args) == 2: iStart, iEnd, iStep = iFirst, args[0], args[1] else: raise AttributeError, 'SafeRange() requires 1-3 int arguments' if iStep == 0: raise ValueError, 'zero step for SafeRange()' iLen = int((iEnd - iStart) / iStep) if iLen < 0: iLen = 0 if iLen >= RANGELIMIT: raise ValueError, 'SafeRange() too large' return range(iStart, iEnd, iStep) Maybe this should be part of the _ object. Can someone turn this into a patch and supply this to DC? I´m a bit short of time right now. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Tue Mar 16 13:07:30 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Tue, 16 Mar 1999 08:07:30 -0500 Subject: [Zope] IRC channel Message-ID: <36EE5791.1B7AD457@GestaltTechnology.com> Dear Zopists, This is another post to make you aware of a new source of information for Zope. You can access #zope on the EFNet servers. Their is an infobot on this channel that could be a great resouce, but it needs to learn a lot about zope. If you pay a visit to the channel, query the bot by typing: /msg wizkid1 help. This will provide more information on the bot. Cheers, Fredy Villa Gestalt Technology FVilla@GestaltTechnology.com From phil@media-1.ml.uwcm.ac.uk Tue Mar 16 13:22:45 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Tue, 16 Mar 1999 13:22:45 -0000 Subject: [Zope] IRC channel Message-ID: <017e01be6fb0$147c24c0$5c773fc1@media1> I for one think this is a brilliant idea! I visit the PHP3 channel on EFNET frequently, a real sense of community and friendship can be built. I really do hope this comes off, so let's make a go of this eh guys 8^) See you there. Phil ----- Original Message ----- From: Fredy Villa To: Sent: Tuesday, March 16, 1999 1:07 PM Subject: [Zope] IRC channel >Dear Zopists, > > This is another post to make you aware of a new source of >information for Zope. You can access #zope on the EFNet servers. Their >is an infobot on this channel that could be a great resouce, but it >needs to learn a lot about zope. If you pay a visit to the channel, >query the bot by typing: /msg wizkid1 help. This will provide more >information on the bot. > >Cheers, > >Fredy Villa >Gestalt Technology >FVilla@GestaltTechnology.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From tschruefer@mail.howard.k12.md.us Tue Mar 16 15:10:54 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Tue, 16 Mar 1999 10:10:54 -0500 Subject: [Zope] Newbie install Q? and the Zope web site Message-ID: <199903161508.KAA22234@mail.howard.k12.md.us> Ok, two questions 1. What happened to the Zope web site, it seems to have gone down yesterday and still is not operating ? 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), but the install instructions do not seem complete. I retrieved the INSTALL.TXT file from the doc directory and started to follow them, but their doesn't seem to be any 'access' file in this distribution. What's more some of the command line options come up as invalid, like -c,which the install program quit on saying it was a invalid option. The -c option doesn't even show up in the --help for the installer. I was hoping there would be some additional install info on the web site, but that's not working. Tom From rob.page@digicool.com Tue Mar 16 15:20:45 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:20:45 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C1@GANDALF> > To followup my last post, I'm getting an exception when > trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() Try: select LAST_INSERT_ID() as fred then grab If this works then I know what the problem is! :^) If you use the database's command line tool and run this SQL statement I bet it returns a single value (i.e., it doesn't return a table). The DA wants to munge and chew on rows in tables. If think that if you use the select LAST_INSERT_ID() as fred you'll get a one-row, one-column table -- this is what Zope wants. --Rob From kid@ans.net Tue Mar 16 15:24:32 1999 From: kid@ans.net (Kevin Dangoor) Date: Tue, 16 Mar 1999 10:24:32 -0500 Subject: [Zope] Newbie install Q? and the Zope web site In-Reply-To: <199903161508.KAA22234@mail.howard.k12.md.us>; from Thomas Schruefer on Tue, Mar 16, 1999 at 10:10:54AM -0500 References: <199903161508.KAA22234@mail.howard.k12.md.us> Message-ID: <19990316102432.D13267@throwingcopper.ans.net> On Tue, Mar 16, 1999 at 10:10:54AM -0500, Thomas Schruefer wrote: ,----- | | Ok, two questions | | 1. What happened to the Zope web site, it seems to have gone down | yesterday and still is not operating ? It works from where I'm at. You may want to try traceroute www.zope.org (or tracert www.zope.org from Windows) to see where things are getting hung up. | | 2. I have downloaded ungziped and untared (Zope-1.10.2-linux2-x86.tgz), | but the install instructions do not seem complete. I retrieved the | INSTALL.TXT file from the doc directory and started to follow them, but | their doesn't seem to be any 'access' file in this distribution. What's | more some of the command line options come up as invalid, like -c,which | the install program quit on saying it was a invalid option. The -c | option doesn't even show up in the --help for the installer. The access file just needs one line of the format "username:password" and should be in your zope install directory. Since I was using PCGI with Zope, all I did was just untar it, make it and then copy Zope.cgi into my web area... Kevin `----- -- Kevin Dangoor kid@ans.net / 734-214-7349 From rob.page@digicool.com Tue Mar 16 15:57:04 1999 From: rob.page@digicool.com (Rob Page) Date: Tue, 16 Mar 1999 10:57:04 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... Message-ID: <613145F79272D211914B0020AFF640190691C3@GANDALF> Tom: [Reading from my support script..] This is where I say, "Hmm, I'm no expert on MySQL...." ;^) Anyone else have any ideas? This, um, worked on Sybase!? --Rob Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when > > > trying to use > > > MySQL's "select LAST_INSERT_ID()" function: > > > > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() Rob Page replied: > >Try: > > > > select LAST_INSERT_ID() as fred > > > > then grab > > > > If this works then I know what the problem is! :^) > > > > If you use the database's command line tool and run this > SQL statement I > > bet it returns a single value (i.e., it doesn't return a > table). The DA > > wants to munge and chew on rows in tables. If think that > if you use the > > select LAST_INSERT_ID() as fred you'll get a one-row, > one-column table > > -- this is what Zope wants. Then Tom wrote back: > Hi Rob, > Made the change and tested but still got the exception. > I ran it at the command line (for mysql) and it returns a > "table" with one > row and field From jbb@spyderlab.com Tue Mar 16 17:01:32 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 12:01:32 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com> Message-ID: On Mon, 15 Mar 1999, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Try: select LAST_INSERT_ID()+0 to cast it to an int... Also, check your declaration for LAST_INSERT_ID().. if the above doesn't work you'll need to either try the patch for ZMySQLDA that was posted a week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to cast it to a string and then use a nifty Python fn. to convert it to an integer number. It seems the MySQL driver has problems with some datatypes. There was a patch posted befure.. I'm curious to know if it'll fix this problem... ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From M.Faassen@vet.uu.nl Tue Mar 16 17:59:44 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 18:59:44 +0100 Subject: [Zope] ZDP's FAQs version 0.2.2 Message-ID: <36EE9C0F.A597FA4C@pop.vet.uu.nl> Hi there, Sorry for the cross posting, but the ZDP's Zope FAQs are online with a new version at zdp.zope.org. I hope they are useful. Please continue to contribute! Regards, Martijn (one of the two :), of the Zope Documentation Project From mbernstein@profitscape.net Tue Mar 16 18:21:59 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 10:21:59 -0800 Subject: [Zope] My own zope site... References: <36ED9827.7A8EB410@netscape.com> Message-ID: <36EEA147.50458405@profitscape.net> Andrew Wooldridge wrote: > > I've started a site that will show the results of my work in getting > Dreamweaver and Zope to talk to each other - and I would appreciate a > link from the zope.org site if there is a section for 3rd party > developer links... > > http://alaji.home.mindspring.com/zopeweaver/ I've added this to the Zope category in the Open Directory Project: http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ Michael Bernstein. From Oliver Thuns" Hi! I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a very simple counter module (with PIL). How could I set the mime header to image/gif and return an image? From M.Faassen@vet.uu.nl Tue Mar 16 19:01:14 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 20:01:14 +0100 Subject: [Zope] ZPublisher: How to set the mime header? References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <36EEAA7A.8FA5DC3D@pop.vet.uu.nl> Oliver Thuns wrote: > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? This is in the Zope FAQ, actually, at http://zdp.zope.org/FAQ/external. At least I think I'd apply to ZPublisher as well? How do I return an image from an External Method? Example (for a png image): def foo(self, RESPONSE): # set the header RESPONSE['content-type'] = 'image/png' # return the actual image data return mkimage() Another way to set the header information is: RESPONSE.setHeader('content-type','image/png') Regards, Martijn From prudek@sol.cz Tue Mar 16 19:15:57 1999 From: prudek@sol.cz (Milos Prudek) Date: Tue, 16 Mar 1999 20:15:57 +0100 Subject: [Zope] Zope modifies HTML order of tags? References: <4.1.19990316105207.00bbe560@lisp.atmm.nl> Message-ID: <36EEADED.C6223063@sol.cz> > >It seems to me that Zope is rendering my HTML tag attributs in different > >order than in the source. For instance I put > Could you supply us with some DTML examples of this behaviour? It´s > something I´ve seen before. Is there any chance your HTML editor is doing this? You are right. I wanted to check the frame, which I can't do easily under Netscape, so I pushed File/Edit Frame, and apparently Netscape Composer did it, because when I do "Save frame as...", it looks O.K. Having discovered this, there is no chance I would ever use Composer. I would be happy to have Zope work as closely as possible with Dreamweaver, though. -- Milos Prudek Sonet Online s.r.o. http://www.sol.cz From andy@ictibroker.com Tue Mar 16 19:40:56 1999 From: andy@ictibroker.com (Andy Smith) Date: Tue, 16 Mar 1999 14:40:56 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com> Message-ID: <000001be6fe4$e90f1920$ce63efa1@venice> I've been using this.... (Zope example but should work with ZServer) It was fully expecting to have to mess about with headers to get browsers to recognise the gif, but broswers seem to know a gif when they get one! This example returns gifs in a browser when you do .... http://mysite/renderGif or even (I'm fully prepared to admit there may be better ways of doing it) ;)_ Cheers, Andy. def renderGif(self, size=500, counter=1): """Draw a pie chart""" im = PIL.Image.new('RGB', (size,size)) # Do GIF manipulation stuff here! outFile = cStringIO.StringIO() im.save(outFile, 'GIF') outFile.seek(0) outString = outFile.read() return outString > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Oliver Thuns > Sent: Tuesday, March 16, 1999 1:44 PM > To: zope@zope.org > Subject: [Zope] ZPublisher: How to set the mime header? > > > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 16 19:49:17 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 16 Mar 1999 20:49:17 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903160420.XAA01117@mail.digiweb.com>; from Tom Jenkins on Mon, Mar 15, 1999 at 11:17:44PM -0500 References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <19990316204917.A659@RaVER.duck.org> On Mon, Mar 15, 1999 at 11:17:44PM -0500, Tom Jenkins wrote: > To followup my last post, I'm getting an exception when trying to use > MySQL's "select LAST_INSERT_ID()" function: > > Error, exceptions.KeyError: unhandled > > SQL used: > > select LAST_INSERT_ID() > > Anybody have any ideas? Why not use: select 'id_field_name' from 'table' where 'id_field_name' IS NULL id_field_name beeing the field with AUTO_INCREMENT set Hope this helps - Sture > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From eric.kidd@pobox.com Tue Mar 16 19:55:15 1999 From: eric.kidd@pobox.com (Eric Kidd) Date: Tue, 16 Mar 1999 14:55:15 -0500 Subject: [Zope] ZPublisher: How to set the mime header? In-Reply-To: <199903161846.KAA02506@zope.codeit.com>; from Oliver Thuns on Tue, Mar 16, 1999 at 07:44:18PM +0100 References: <199903161846.KAA02506@zope.codeit.com> Message-ID: <19990316145515.A484@moebius.dartmouth.edu> On Tue, Mar 16, 1999 at 07:44:18PM +0100, Oliver Thuns wrote: > Hi! > > I'm not using zope, but I'm using ZPublisher and ZServer. I'm coding a > very simple counter module (with PIL). How could I set the mime header > to image/gif and return an image? When using Zope to publish XML documents (using DTML Document objects) I often write: Some part of Zope tries to guess the Content-Type otherwise. A lot of this code is directly shared between Zope and Z Publisher, so you might see similar behavior. Cheers, Eric From andreww@netscape.com Tue Mar 16 20:15:47 1999 From: andreww@netscape.com (Andrew Wooldridge) Date: Tue, 16 Mar 1999 12:15:47 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <36EEBBF1.B7B05990@netscape.com> Ok, I consider myself pretty technical, but not a UNIX master, and I've used NT enough to know about services, etc. But I cannot for the life of me figure out how to get zope running as a service without manually starting it from start.bat. Could someone please post somewhere a "zope for dummies" description of getting zope running as a service on NT. Here's what I do: I downloaded zope 1.10.2 I unzipped and ran the installer. It works fine to the point where it wants me to choose between running zope alone or as a service. I've tried it "both ways" and although I can get zope running fine by manually starting it from start.bat, and I make the zope service start automatically, it will not work as a service! I dont have any other web server on this machine and dont really care which server I use. I had assumed that ZopeHTTPServer would run as the service, but it doesnt work... Is there just a minimal way to get zope going on it's own? I know the ip address etc. of my system, but that doesnt seem to be the issue. I wouldnt even mind if in the install you had an option for "install default web server" so that zope can piggy back on it. Does it have something to do with setting permissions to the var directory? All I'm basically looking for is sort of a recipe style instruction on how to get it up and running. (With no handwaving like "now configure your system to run the zope.exe". Assume I'm a total idiot... Which I'm not, but I'm still having problems. -- ------------------------------------------------------------------------- - Andrew Wooldridge - Opinions expressed are my own - - andreww@netscape.com - http://people.netscape.com/andreww/ - ICQ: 6345881 - Find It at http://dmoz.org - ------------------------------------------------------------------------- From M.Faassen@vet.uu.nl Tue Mar 16 20:14:04 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Tue, 16 Mar 1999 21:14:04 +0100 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEBB8B.31158570@pop.vet.uu.nl> Andrew Wooldridge wrote: [snip getting Zope to run on NT] I've made Zope run on NT with Apache. > I dont have any other web server on this machine and dont really care > which server I use. I had assumed that ZopeHTTPServer would run as the > service, but it doesnt work... No, I don't think that can work. You need another webserver, like Apache (which you can download from www.apache.org, though of course it has its own configuration hassles). > Is there just a minimal way to get zope going on it's own? Hm..Perhaps ZServer, but that's still not stable. Can it run as a service in NT? Otherwise I'd recommend Apache; it can do plenty, though there is a learning curve there. Regards, Martijn From mbernstein@profitscape.net Tue Mar 16 20:42:51 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Tue, 16 Mar 1999 12:42:51 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running References: <36EEBBF1.B7B05990@netscape.com> Message-ID: <36EEC24B.BD57D221@profitscape.net> Andrew Wooldridge wrote: > > Ok, I consider myself pretty technical, but not a UNIX master, and I've > used NT enough to know about services, etc. But I cannot for the life > of me figure out how to get zope running as a service without manually > starting it from start.bat. Here's what I did: I downloaded zope 1.10.2 I unzipped and ran the installer. I chose to run zope alone I created a shortcut to start.bat in C:\WINNT\Profiles\All Users\Start Menu\Programs\Startup This will start Zope every time you reboot. Note that it will not get rid of the annoying MSDOS command prompt window. I hope this helps From robin@alldunn.com Tue Mar 16 21:30:09 1999 From: robin@alldunn.com (Robin Dunn) Date: Tue, 16 Mar 1999 13:30:09 -0800 Subject: [Zope] Help - need a brainless guide to getting zope running Message-ID: <016701be6ff4$30e2b5e0$8725d2d1@rogue.jenkon-dev.com> I posted a message last week about running ZServer as a service. You can find the message at http://www.zope.org/pipermail/zope/1999-March/005030.html I built my Zope from source, so I don't know if this works the same as the self-installer version, but it should be pretty close. 1. Install Zope 1.10.2, choosing to run standalone. 2. Untar the ZServer distribution in the root Zope directory. 3. Test that it works by running start.py in the ZServer directory. 4. Follow the directions in the message linked-to above. -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Andrew Wooldridge To: zope@zope.org Date: Tuesday, March 16, 1999 11:34 AM Subject: [Zope] Help - need a brainless guide to getting zope running >Ok, I consider myself pretty technical, but not a UNIX master, and I've >used NT enough to know about services, etc. But I cannot for the life >of me figure out how to get zope running as a service without manually >starting it from start.bat. > > >Could someone please post somewhere a "zope for dummies" description of >getting zope running as a service on NT. > >Here's what I do: > >I downloaded zope 1.10.2 >I unzipped and ran the installer. >It works fine to the point where it wants me to choose between running >zope alone or as a service. >I've tried it "both ways" and although I can get zope running fine by >manually starting it from start.bat, and >I make the zope service start automatically, it will not work as a >service! > >I dont have any other web server on this machine and dont really care >which server I use. I had assumed that ZopeHTTPServer would run as the >service, but it doesnt work... > >Is there just a minimal way to get zope going on it's own? > >I know the ip address etc. of my system, but that doesnt seem to be the >issue. > >I wouldnt even mind if in the install you had an option for "install >default web server" so that zope can piggy back on it. > >Does it have something to do with setting permissions to the var >directory? > >All I'm basically looking for is sort of a recipe style instruction on >how to get it up and running. (With no handwaving like "now configure >your system to run the zope.exe". Assume I'm a total idiot... > >Which I'm not, but I'm still having problems. > > > >-- > >------------------------------------------------------------------------- > >- Andrew Wooldridge - Opinions expressed are my own - >- andreww@netscape.com - http://people.netscape.com/andreww/ >- ICQ: 6345881 - Find It at http://dmoz.org - >------------------------------------------------------------------------- > > > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Tue Mar 16 21:52:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:52:32 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903162155.QAA08372@mail.digiweb.com> OK to follow up, if you use call mysql using the form select CONCAT(LAST_INSERT_ID()) as new_id you get back the correct value in 'last_id' now I'm still having problems with getting that value into the REQUEST object. What goes in place of the ??? (Pardon me if this has been answered already, there was some problems with me getting messages from zope list) Thanks again... > On Mon, 15 Mar 1999, Tom Jenkins wrote: > > > To followup my last post, I'm getting an exception when trying to use > > MySQL's "select LAST_INSERT_ID()" function: > > > > Error, exceptions.KeyError: unhandled > > > > SQL used: > > > > select LAST_INSERT_ID() > > > > Anybody have any ideas? > > Try: select LAST_INSERT_ID()+0 to cast it to an int... > > Also, check your declaration for LAST_INSERT_ID().. if the above doesn't > work you'll need to either try the patch for ZMySQLDA that was posted a > week or so ago, or do something like: SELECT CONCAT(LAST_INSERT_ID()) to > cast it to a string and then use a nifty Python fn. to convert it to an > integer number. > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From TomJenkins@zentuit.com Tue Mar 16 21:56:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 16:56:14 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> References: Message-ID: <199903162159.QAA12320@mail.digiweb.com> > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > Umm that should read select CONCAT(LAST_INSERT_ID()) as last_id -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From jbb@spyderlab.com Tue Mar 16 22:35:08 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:35:08 -0500 (EST) Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903162155.QAA08372@mail.digiweb.com> Message-ID: On Tue, 16 Mar 1999, Tom Jenkins wrote: > OK to follow up, if you use call mysql using the form > select CONCAT(LAST_INSERT_ID()) as new_id > you get back the correct value in 'last_id' > > now I'm still having problems with getting that value into the REQUEST > object. What goes in place of the ??? > > > (Pardon me if this has been answered already, there was some > problems with me getting messages from zope list) > Thanks again... Well, try something like:
  • The id last inserted is where lastInsert is your SQL method Note this is untested code, so caveat emptor :) Have fun, ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Tue Mar 16 22:51:20 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 16 Mar 1999 17:51:20 -0500 (EST) Subject: [Zope] #sqltags Message-ID: Hi: Are the #sqltags documented somewhere? I couldn't find them in the DTML reference manual, etc. I found some examples of their use, but nothing definative. I have no problems reading the source and documenting what I find, I just don't want to be re-inventing the wheel. Specifically I'd like to know about #sqlgroup and friends. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From amos@aracnet.com Tue Mar 16 22:51:50 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 16 Mar 1999 14:51:50 -0800 Subject: [Zope] #sqltags In-Reply-To: Message-ID: <3.0.5.32.19990316145150.011c19a0@mail.aracnet.com> At 05:51 PM 3/16/99 -0500, Jordan B. Baker wrote: >Are the #sqltags documented somewhere? I couldn't find them in the DTML >reference manual, etc. Did you notice the "Z SQL Methods User's Guide": http://www.zope.org/Documentation/Guides/ZSQL I think that this covers what you want to know. -Amos From neves@inf.puc-rio.br Tue Mar 16 22:45:29 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 16 Mar 1999 19:45:29 -0300 Subject: [Zope] setting variable References: <199903160352.WAA04182@mail.digiweb.com> Message-ID: <36EEDF09.91998D6@inf.puc-rio.br> Tom Jenkins wrote: > > Hello folks, > I'm stuck on a problem which I hope some one could help me with. I > have a database entry form where the user will enter in information for > two related tables. When she submits the form, I want to first post one > tables information, then call another sql method to get the id generated > for that post, then take that value and add it to the REQUEST object > and pass it to the second sql insert for inserting to the second table > (along with some other parts of the REQUEST object from the form). Do you really need this? You can put more than one sql commands in a sql method, you just have to put a between them. You can insert in the two tables with just one method. The last_insert_id() should be in the values field of the second insert. Take a look at the code genereated by the sql wizard in the contrib page. > > I'm planning on using MySQL that has a special select: > select LAST_INSERT_ID() > to return the last auto-generated id value to get the id. > > I know you can add a variable to the REQUEST object via > > but how to I get the value from the sql method? The only way I know > now is via #var tags but you can't nest the DTML. Take a look at the other thread. []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From rhww@erols.com Tue Mar 16 23:27:35 1999 From: rhww@erols.com (Robert Wentworth) Date: Tue, 16 Mar 1999 18:27:35 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <36EEE8E7.11F8DBC@erols.com> Right now my biggest obstacle to setting up a Zope-powered site could be finding a hosting provider I have confidence in who is willing to run Zope. When I asked my first-choice provider about running Zope, they replied: > Though it's true that we can install programs that need root > instlall, it only so when the program is low CPU/mem use and > non-intrusive. Zope is neither, so to run it you would need to get > your own dedicated server through us. A dedicated server is not a viable option for this site at this point in time. So, a few questions: 1) Are the provider's fears justified? What sort of memory footprint, CPU requirements (for a site that should have fairly low traffic at first), and other impact are Zope likely to have on a hosting provider? 2) Would anyone care to let me know what their experience has been with the two hosting providers (NexusWeb and CodeIt Computing) listed as known to host Zope-based sites? (I've been sufficiently badly burned in the past by bad hosting providers that I cannot justify signing up for a provider without positive recommendations or multiple alternatives for backup.) Robert Wentworth From TomJenkins@zentuit.com Tue Mar 16 23:27:19 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 16 Mar 1999 18:27:19 -0500 Subject: [Zope] setting variable In-Reply-To: <36EEDF09.91998D6@inf.puc-rio.br> Message-ID: <199903162330.SAA24924@mail.digiweb.com> > Do you really need this? You can put more than one sql commands in a sql > method, you just have to put a between them. > You can insert in the two tables with just one method. The > last_insert_id() should be in the values field of the second insert. > Take a look at the code genereated by the sql wizard in the contrib > page. Hey Paulo, thanks for that tip. I didn't know about #var sql_delimiter and the ability to put more than one sql commands in a sql method. I had wondered about it but the #var sql_delimiter was the key. With this information, no I don't need to insert into the REQUEST object. But I'm still curious . Unfortunately, putting last_insert_id() directly into the values of the second insert did not work. It works from mysql command line. INSERT INTO entry_tbl (master_id,submitted_by,staff_id,version,comment) VALUES (LAST_INSERT_ID(), , , , ) It surprised me that it didn't work as I thought it would get sent enmass to mysql for processing so I had thought that the DA wouldn't interfer with it. feeling-very-dense-ly y'rs -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From vanandel@ucar.edu Wed Mar 17 01:44:26 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Tue, 16 Mar 1999 18:44:26 -0700 Subject: [Zope] newbie - permissions on FAQ object Message-ID: <199903170144.SAA26992@stout.atd.ucar.edu> I'm trying to configure a ZOPE FAQ object on starship.python.net . This is Zope v10.10.2 with ZServer 1.0b2 . I'm baffled by the permissions scheme. I've created a FAQ under my ZOPE home: http://starship.python.net:9673/crew/vanandel I'd like selected users to add FAQ entries, but only certain trusted users to be able to create categories. Unfortunately, anyone can add a new category, which is not what I want. The Security Screen for vanandel/NumPy only enables 'view' for anonymous, but still an 'anonymous' user can enter the 'Add a category' screen, without being challenged. There are specific permissions shown for various "add-ins" like TinyTables on the Security screen, but not for the FAQ module. (I'd expect to see permissions for FAQAddCategory.) Also, when I first create a 'FAQ', I can't view it until I create a 'isCategory' property. This seems like a bug, since 'isFAQ' is already created for me. A minor question. I'd obviously like to test ZOPE with various users, to see what ZOPE allows them to do. ZOPE uses cookies to give someone permission, after they've supplied a password. Under Unix, I can manually remove a cookie by editing ~/.netscape/cookies. How do I do this under NT? Are Netscape cookies in the registry (I hope not!). Thanks much for your help. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From mike@icebox.dlogue.net Wed Mar 17 02:40:15 1999 From: mike@icebox.dlogue.net (Michel Pelletier) Date: Tue, 16 Mar 1999 20:40:15 -0600 (CST) Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: <199903141232.XAA17000@mbuna.arbhome.com.au> from "Anthony Baxter" at Mar 14, 99 11:32:36 pm Message-ID: <199903170240.UAA04469@icebox.dlogue.net> > > > Short Version of message: ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now > available from http://www.interlink.com.au/anthony/python/ > Excellent. > I'm looking for opinions on the LDAP zope product I've been building. > We here at DC (well, I'm out of the office this week, but I'm there virtualy) have been kicking around an LDAP authentication mechanism, probably a folderoid, to go against LDAP. In fact, this was supposed to be one of my projects when I get back next week. From the details below it looks like you have thought this out well, I didn't even consider making an API of methods like XSQL methods, good idea! > Right now, LDAP connections work, LDAP Methods work, but there's still > a bit more to do. Right now, the following is unimplemented: > > In ZLDAPconn: > . Anything other than simple_bind(who, passwd) for connecting to the > LDAP server That's where we want to start... > . meaningful doc strings > > In ZLDAPMethods: > . Pluggable Brains > . Result Caching > . Limits on the number of results > . Variable interpolation in the filters, and in the base DN > . modify or add queries (only search is supported right now) > . meaningful doc strings :) Under the catagory 'result caching' you might want to consider making some kind of Connection Manager in your LDAP Connection. A model I've been kicking around is a CM class that manages Connections and uses a simple caching algoritm. Wrapping all of the API in a class will also help yu when you want to break out the LDAP stuff and stick it in shared. In this way, it becomes a sort of 'Device Driver' (to use Ken's terminology) for the entire Zope system. We're going to be doing this with the IMAP functionality that NotMail uses. I'm assuming what you call an LDAP connection is like a Database Adapter is to ZSQL methods. Maybe you might want to consider calling these LDAP Adapters. > > Other stuff: > . UserLDAP is not finished yet (or released) - the primary issue is the > storing of roles and domains. Right now this would have to be some > non-standard LDAP attribute... but what should it be? It also probably > needs modify and add added to ZLDAPMethods before being really useful. > The etcUserFolder product has a settable property to change the 'default role' that the users are given. You can check it out from the download page, it is also in cvs under Packages/Products/etcUserFolder > Things I'd like comments on: > For ZLDAPconn: > what other bind methods would you like to see? > For ZLDAPMethods: > how should add/modify/query be distinguished? Separate methods? > I'd have to look at the code, I'll get back to you. (hey paul, I need a laptop!) > I had planned to get variable interpolation working tonight, but decided I'd > rather get an early night. Probably tomorrow evening, instead. Stuff I hope to > get going in the next day or so: variable interpolation, pluggable brains. > Don't hurt yourself. It looks like you got this down pretty good, I'll proablby be looking into incorporating much of this if not all into Zope, want to be in charge of zope LDAP? We can give you an area on the site. > Anyway, ZLDAPconn-0.1 and ZLDAPMethods-0.1 are now available from > http://www.interlink.com.au/anthony/python/ > > It requires David Leonard's ldapmodule, from > http://www.it.uq.edu.au/personal/leonard/dc-prj/ldapmodule/ > > It's been tested on Linux 2.2, under Zope 1.10.2 and ZServer. Assuming the > ldapmodule works on other platforms (it's available in source, and also as > a windows .pyd) it should work elsewhere, too. > > Anthony > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Wed Mar 17 06:17:46 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 17 Mar 1999 01:17:46 -0500 (EST) Subject: [Zope] recursive document oddity Message-ID: Hey zope freaks: Okay, I am driving myself crazy, maybe I am just doing something silly (hopefully). I am trying to write this recursive SQL result DTML (basically a tree):

    Category

    I have a variable pwd that I want to pass along to recurseCategories.. I tried something like (and in quotes) pwd is used in listCategories to get a list of categories in that 'path' A couple questions: 1. Should I be using a DTML method or a DTML document for something like this? 2. As I recurse will I lose access to documents in my current folder? I got a traceback to seemed to indicate that once I was into a certain depth I couldn't access listCategories. 3. Is there a more Zope-happy way to do this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From mj@antraciet.nl Wed Mar 17 07:58:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 17 Mar 1999 08:58:44 +0100 Subject: [Zope] My own zope site... In-Reply-To: <36EEA147.50458405@profitscape.net> References: <36ED9827.7A8EB410@netscape.com> Message-ID: <4.1.19990317085034.00c271d0@lisp.atmm.nl> At 19:21 16/03/99 , Michael Bernstein wrote: >I've added this to the Zope category in the Open Directory Project: > >http://www.dmoz.org/Computers/Software/Internet/Servers/Application/Zope/ > I added the ZDP website as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From prudek@sol.cz Wed Mar 17 12:28:32 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 13:28:32 +0100 Subject: [Zope] fsimport Message-ID: <36EF9FF0.EB6B1648@sol.cz> Does fsdir parameter of fsimport specify the remote directory (where Zope is) or local directory (from where I look at Zope)? -- Milos Prudek From prudek@sol.cz Wed Mar 17 13:27:35 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 17 Mar 1999 14:27:35 +0100 Subject: [Zope] fsimport References: <36EF9FF0.EB6B1648@sol.cz> <36EFA878.F90AECE6@plaza1.snu.ac.kr> Message-ID: <36EFADC7.82074370@sol.cz> > > Does fsdir parameter of fsimport specify the remote directory (where > > Zope is) or local directory (from where I look at Zope)? > > remote directory in your terminology OK, so it still does not work for me. If someone on this conference would look at my mail from Monday, I would be grateful. The idea of having to put all my images into Zope by hand makes me very sick :-) -- Milos Prudek From rocon@pivot.net Wed Mar 17 13:54:49 1999 From: rocon@pivot.net (Robert OConnor) Date: Wed, 17 Mar 1999 08:54:49 -0500 Subject: [Zope] Python Anyone: Linuxworld Article Message-ID: <01b901be707d$c1b77040$0201a8c0@hawkeye.bob.oc> Check out the article in Linuxworld: This is good for ZOPE newbees who wonder what and why about Python (The underlying language of ZOPE). http://www.linuxworld.com/linuxworld/expo/lw-python.html Title: "Python, anyone? " You may have dismissed Python as just another scripting language beginning with 'P,' but more and more open source developers are finding Python has some bite Summary At first, the Python scripting language may sound like another version of Perl, but Robert Richardson highlights the differences that make it useful in its own right. (1,500 words) By Robert Richardson *--- Paul Everitt mentions Zope in the discussion forums related to this article. -bobo connor bob@rocnet.com From raver@box.dust.za.net Wed Mar 17 16:43:16 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Wed, 17 Mar 1999 17:43:16 +0100 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 References: <199903160420.XAA01117@mail.digiweb.com>; <19990316204917.A659@RaVER.duck.org> <199903161952.OAA01245@mail.digiweb.com> Message-ID: <19990317174316.A263@RaVER.duck.org> On Tue, Mar 16, 1999 at 02:49:43PM -0500, Tom Jenkins wrote: > > > Error, exceptions.KeyError: unhandled > > > > > > SQL used: > > > > > > select LAST_INSERT_ID() > > > > > > Anybody have any ideas? > > > > Why not use: > > > > select 'id_field_name' from 'table' where 'id_field_name' IS NULL > > > > id_field_name beeing the field with AUTO_INCREMENT set > > > Hi Sture, > Unfortunately, I don't think that'll work since after the insert there will be > a value (non null) in 'id_field_name' > > Thanks for taking the time for a suggestion, I really do appreciate it. > Probly I misunderstod your problem. Anyways I want to say that my suggestion does just what 'select last_insert_id()' does. namely return the number created in an auto_increment field during your last insert Sture Lygren > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Linux & Samba 2.0 : The best Windows file server > http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html > "Do not be overcome by evil, but overcome evil with good." Romans 12:21 > From kid@ans.net Wed Mar 17 16:52:45 1999 From: kid@ans.net (Kevin Dangoor) Date: Wed, 17 Mar 1999 11:52:45 -0500 Subject: [Zope] Eric Kidd compares Zope and Frontier Message-ID: <19990317115245.A15201@throwingcopper.ans.net> Hi, I just saw an interesting thread over at http://www.scripting.com. Here's the direct link to the article: http://discuss.userland.com/msgReader$4124 Someone wrote a comparison of Zope and Frontier. Followed up by a technology demo of getting the two to talk via XML. Interesting stuff. Kevin -- Kevin Dangoor kid@ans.net / 734-214-7349 From TomJenkins@zentuit.com Wed Mar 17 16:57:26 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Wed, 17 Mar 1999 11:57:26 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: <19990317174316.A263@RaVER.duck.org> References: <199903161952.OAA01245@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 16, 1999 at 02:49:43PM -0500 Message-ID: <199903171700.MAA04810@mail.digiweb.com> > Anyways I want to say that my suggestion does just what 'select > last_insert_id()' does. namely return the number created in an > auto_increment field during your last insert > > Sture Lygren > My profound apologies. "select from where IS NULL" does indeed return the same value as last_insert_id(). My apologies again. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. Joseph Strout, 28 Feb 1997 From andy.smith@iname.com Wed Mar 17 17:12:23 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:12:23 -0500 Subject: [Zope] (no subject) Message-ID: <000901be7099$53119140$ce63efa1@venice> Hi All, I'm just uploaded a new Product to the contrib area. It is a poll product based on Amos's example. It uses PIL to draw piecharts of the poll results. I was originally going to include a precompiled PIL with the product, but the product swelled to 500k as a result, so instead I've left pointers to where to get PIL in the product documentation. I'll send a hypertext screenshot immediately after this message so that people can decide whether or not they want to go to the effort of downloading and installing PIL. Pls note that there are some problems I'm having with getting the GIFs to update appropriately, so after banging my head against a wall for a while [in true opensource tradition ;) ] I've decided to throw it open to the floor to see if anyone can find a workaround. I've also uploaded a 'fixed' version of the Guestbook example product, which broke going from Zope1.9 -> Zope1.10. Enjoy! Andy. From andy.smith@iname.com Wed Mar 17 17:16:14 1999 From: andy.smith@iname.com (Andy Smith) Date: Wed, 17 Mar 1999 12:16:14 -0500 Subject: [Zope] Poll product example screenshot.... Message-ID: <000a01be7099$dc8f2b30$ce63efa1@venice> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here's a screenshot from the new poll product... (Figures chosen at random and don't reflect the current state of mind of any person or persons ;) ). Cheers, A.. Edit Question Object Id question1 Question Piechart Not bad 64.0 (28.32%) Good 43.0 (19.03%) Ugly 32.0 (14.16%) Been Better 87.0 (38.50%) Responses response1 response2 response3 response4 ------=_NextPart_000_000B_01BE706F.F3B92330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

    Here's a=20 screenshot from the new poll product...

    (Figures=20 chosen at random and don't reflect the current state of mind of any = person or=20 persons ;) ).

    Cheers,

    A..

     

    Edit Question Object

  • Id question1
    Question =
    Piechart
      Not= =20 bad 64.0 (28.32%)
      Goo= d 43.0 (19.03%)
      Ugl= y 32.0 (14.16%)
      Bee= n=20 Better 87.0=20 = (38.50%)
    Responses
    =20 res= ponse1=20
    =20 res= ponse2=20
    =20 res= ponse3=20
    =20 res= ponse4=20 =20 =

    ------=_NextPart_000_000B_01BE706F.F3B92330-- From andy@ictibroker.com Wed Mar 17 17:34:02 1999 From: andy@ictibroker.com (Andy Smith) Date: Wed, 17 Mar 1999 12:34:02 -0500 Subject: [Zope] FW: [Zope] Poll product example screenshot.... Message-ID: <001801be709c$59458550$ce63efa1@venice> Hmm... the screenshot didn't seem to 'travel' too well, Guess you'll just have to install PIL to see it. ;) Cheers, A. From jharris@memphis.edu Wed Mar 17 17:52:24 1999 From: jharris@memphis.edu (Jim Harris) Date: Wed, 17 Mar 1999 11:52:24 -0600 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <000701be709e$ea4cd4c0$642fe18d@jharris.coe.memphis.edu> I contacted NexusWeb yesterday and they said they would provide a setup for Zope, but no support. They were not specific as to the setup. They did mention they supported Python. I was going to write them back to see if they ran Zserver, or just provided the links to Apache. They did have msql and mysql. The minimum plan to support Zope was the 50MB/$20 a month plan. The other site was out of my price range ($50/mo). I just started studying Zope yesterday to use for a project I was planning to use Visual Basic/ADO/ASP for. I'm testing on a Win95 machine, but plan to move testing to a Linux box. I decided before signing up with a hosting server to wait for Zope 2, which I've seen a couple of references to. What's the deal on that? One place promised a better integrated web server. If Zope moves more torward being a totally self contained server, then I don't want to mess with Apache or IIS. -----Original Message----- From: Robert Wentworth To: zope@zope.org Date: Tuesday, March 16, 1999 4:25 PM Subject: [Zope] Impact of Zope on hosting provider? >Right now my biggest obstacle to setting up a Zope-powered >site could be finding a hosting provider I have confidence >in who is willing to run Zope. When I asked my first-choice >provider about running Zope, they replied: > >> Though it's true that we can install programs that need root >> instlall, it only so when the program is low CPU/mem use and >> non-intrusive. Zope is neither, so to run it you would need to get >> your own dedicated server through us. > >A dedicated server is not a viable option for this site at >this point in time. So, a few questions: > >1) Are the provider's fears justified? What sort of > memory footprint, CPU requirements (for a site that > should have fairly low traffic at first), and other > impact are Zope likely to have on a hosting provider? > >2) Would anyone care to let me know what their experience > has been with the two hosting providers (NexusWeb and > CodeIt Computing) listed as known to host Zope-based > sites? (I've been sufficiently badly burned in the past > by bad hosting providers that I cannot justify signing > up for a provider without positive recommendations or > multiple alternatives for backup.) > >Robert Wentworth > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From arankine@lucent.com Wed Mar 17 21:07:09 1999 From: arankine@lucent.com (Rankine, Alastair) Date: Thu, 18 Mar 1999 08:07:09 +1100 Subject: [Zope] Newbie questions Message-ID: Hi Zopesters, I'm trying out Zope for the purpose of getting a book catalogue on the web. So far, I'm extremely impressed with it! Of course, I have some questions. (For the record, I am running Zope 1.10.2 with Apache 1.3.something on a MkLinux DR3 box, administered with IE4 on NT). 1. When you edit a DTML document using the Zope management interface and hit the update button, Zope goes away and tries to parse it to ensure that it's consistent DTML. If this fails, you are left with no option but the browser's back button, which, under IE4 anyway, seems to discard the changes you made to the document. Is there a fix or workaround (besides ctrl-A ctrl-C before clicking the update button) for this? Us newbies write lots of bad DTML :) 2. When a folder acquires an index_html document from further up in the heirarchy, the tag refers to the title of the index_html document, rather than the folder being displayed. How do you write the index_html document to display the title of the acquired object, rather than the index_html document itself? (Hope this is clear) 3. Finally, I need some advice about how best to lay out the website. Basically I'm trying to build a site containing a book catalogue. Here's what I've got so far: + Root + Titles [folder] - index_html + OriginSpecies [folder, title: "Origin of the Species", desc: "blah", author: "CharlesDarwin", year: 1854] - cover [image] + DiamondAge [folder, title: "The Diamond Age", desc: "blab", author: "NealStephenson", year: 1995] - cover [image] ... + Authors [folder] - index_html + CharlesDarwin [folder, title: "Charles Darwin", bio: "..."] - photo [image] + NealStephenson [folder, title: "Charles Darwin", bio: "..."] - photo [image] Hope the notation is clear enough. What I want to do is "link" the titles to their authors and vice versa. So the index_html document for Authors would display the author, their picture, bio, and a list of titles by them. A similar arrangement would apply for Titles. The author property of the title (*) links the title to author, but what's the best way to link backwards? Similarly, what's the best way to display the author's information for a title? All advice appreciated! Thanks. (*) assuming only one author for now From tschruefer@mail.howard.k12.md.us Wed Mar 17 21:15:41 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Wed, 17 Mar 1999 16:15:41 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903172113.QAA02057@mail.howard.k12.md.us> Thus far my attempts to install the Zope binary release on a Linux machine have been for nothing. The Install documentation and the Install program contradict each other at almost every turn. The docs say use ./install -u but the -u switch is gives a error message, saying it is a invalid switch and not supported at all. The install --help, says nothing about a -u switch. The docs say you can specify the cgi directory, with the -c switch, but the install program says that is a unsupported feature. The -s switch in the docs says this is to provide the superuser login and password to the install routine, yet the install program say this is used to strip tables (perhaps parsing the access file), none of the docs say anything more. I have tried numerous variations, all to no avail. Perhaps the ZDP should have started at the beginning, with usable install instructions, instead of with a FAQ. I must say that the screen shots in the PDF file and those docs are quite nice, but thats about it. Reading the PDF docs, just makes me want to get in and try Zope even more. Is there anyone that could help or give me some pointers ? Tom From cimarron@taylors.org Thu Mar 18 00:35:52 1999 From: cimarron@taylors.org (cimarron@taylors.org) Date: Wed, 17 Mar 1999 16:35:52 -0800 Subject: [Zope] multiple trees Message-ID: <199903180035.QAA28795@christopherrobin.kolo.net> There seems to be a problem with DTML documents which uses more than one .. sections. I'm seeing a python error when attempting to expand any node of the second tree. I'm going to try and fix this on my own as a way to familiarize myself with Zope internals but I thought others on this list might want to be aware of the problem and/or provide information about their own experience with multiple trees. Cimarron Taylor cimarron@taylors.org From wade@okaynetwork.com Thu Mar 18 00:37:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 17 Mar 1999 19:37:33 -0500 Subject: [Zope] ZAP In-Reply-To: References: Message-ID: <199903180036.TAA03738@gem.lightlink.com> > On Sun, 14 Mar 1999, Shaw, Howard wrote: > > > How can I configure ZAP so that all http requests go through the cgi? > > Zope is the only thing running through this apache, so I don't want > > everything on the site prefixed with Zope/ (or anything else, so no, I > > don't just want to know how to change the prefix). This is basically > > what is keeping me on ZopeHTTPServer. > > > > [snip] > > > > How can I make a Zope pcgi accessible as the root of a Zap install? > > Please help. > > In looking through my Apache configuration files, I tried to piece > together what changes I made. Here's what I think you need to do. > > In httpd.conf, make sure you have these lines (I put them at the end): > > Alias / /cgi-bin/Zope.cgi > > # Zope configuration maps /Zope/ to the Zope.cgi CGI script > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > NOTE: In the RewriteRule directive above, the [e=...] stuff should go > directly after the ...Zope.cgi/$1 section, with a space separating them, > e.g. ...Zope.cgi/$1 [e=HTTP...] > > You will need to munge the path in the RewriteRule directive, where it > says /home/httpd to be wherever your document root is. > > I did this a while back, and have since switched from Apache to ZServer to > test it out, so I haven't used it lately. However, this should work, as I > never changed the config files after I stopped using Apache. > > Let me know if you have problems; I'll do what I can to help. > > > Howard C. Shaw III > > jkh > Here's a setup that works for me. ----- ServerName www.okaynetwork.com ServerAdmin wade@okaynetwork.com DocumentRoot /home/ok/htdocs ErrorLog logs/okaynetwork.com-error_log TransferLog logs/okaynetwork.com-access_log RewriteEngine On RewriteLog logs/okaynetwork-rewrite-log RewriteLogLevel 0 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule (.*) /usr/local/Zope/Zope/Zap/cgi-bin/Zope.cgi$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http d-cgi,l] --------- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Anthony Baxter Thu Mar 18 07:29:48 1999 From: Anthony Baxter (Anthony Baxter) Date: Thu, 18 Mar 1999 18:29:48 +1100 Subject: [Zope] Zope LDAP Products available (v0.1) In-Reply-To: Your message of "Tue, 16 Mar 1999 20:40:15 MDT." <199903170240.UAA04469@icebox.dlogue.net> Message-ID: <199903180729.SAA06949@mbuna.arbhome.com.au> >>> Michel Pelletier wrote > We here at DC (well, I'm out of the office this week, but I'm there > virtualy) have been kicking around an LDAP authentication mechanism, > probably a folderoid, to go against LDAP. In fact, this was supposed to > be one of my projects when I get back next week. From the details below > it looks like you have thought this out well, I didn't even consider > making an API of methods like XSQL methods, good idea! It's on the list. I was originally going to write a simple LDAP auth object, then thought about it a bit more and realised a generic interface into LDAP would be more useful, then I can bolt the auth on top. > > In ZLDAPconn: > > . Anything other than simple_bind(who, passwd) for connecting to the > > LDAP server > That's where we want to start... The way I figure it, I'll support this first. If/when someone needs something else, I'll look at supporting that. > Under the catagory 'result caching' you might want to consider making some > kind of Connection Manager in your LDAP Connection. A model I've been > kicking around is a CM class that manages Connections and uses a simple > caching algoritm. Not quite sure what you're getting at here :) > Wrapping all of the API in a class will also help yu > when you want to break out the LDAP stuff and stick it in shared. In > this way, it becomes a sort of 'Device Driver' (to use Ken's > terminology) for the entire Zope system. Hm. The LDAP connection already is a class. It's as much a device driver as the current Database Adaptors. > We're going to be doing this > with the IMAP functionality that NotMail uses. I'm assuming what > you call an LDAP connection is like a Database Adapter is to ZSQL methods. > Maybe you might want to consider calling these LDAP Adapters. Good point. Next version, they'll be called that. (I figure I'm allowed to make changes like this between versions 0.1 and 0.2 :) > The etcUserFolder product has a settable property to change the 'default > role' that the users are given. You can check it out from the download > page, it is also in cvs under Packages/Products/etcUserFolder That and maybe allowing a mapping for any organizationalRole that the users have. More useful for the "lecturer", "student" type roles. > I'd have to look at the code, I'll get back to you. (hey paul, I need a > laptop!) Yeah, Paul, get the boy a laptop. :) > > I had planned to get variable interpolation working tonight, but decided I'd > > rather get an early night. Probably tomorrow evening, instead. Stuff I hope > > get going in the next day or so: variable interpolation, pluggable brains. > > > Don't hurt yourself. It looks like you got this down pretty good, I'll > proablby be looking into incorporating much of this if not all into Zope, I've got variable interpolation _mostly_ working. For some reason, though, it doesn't pick up all the namespaces - I'm probably just not using the document templates right. I'm going to add DTML interp. to both the filters and to the baseDN. Depends on my supply of round tuits - I might get the pluggable brains also working shortly. I kinda see how they work now. > want to be in charge of zope LDAP? We can give you an area on the site. Hm - depends if it's easier to get to than my current web site. :) Anthony -- Anthony Baxter It's never to late to have a happy childhood. From Andreas Jung Thu Mar 18 09:17:46 1999 From: Andreas Jung (Andreas Jung) Date: Thu, 18 Mar 1999 10:17:46 +0100 (MET) Subject: [Zope] Python freezes in lwp_sema_p() Message-ID: We are running Python1.5.2b2 (with thread support) , latest DCOracle, Oracle 7.3 under Solaris 2.5.1. Some of our applications hang in about 10% when they run. We trussed the binaries and discovered that they all sleep in a lwp_sema_p() call. Python/thread_cthread.h seems to mention a problem with the Solaris PThreads implementation however I can't figure out if this is the real problem. I am not sure whether it's a problem of Python, DCOracle or the Oracle libraries. Any ideas or comments ? Thanks, Andreas _\|//_ (' O-O ') ------------------------------ooO-(_)-Ooo-------------------------------------- Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH Saarbrücker Daten-Innovations-Center Gutenbergstr. 11-23, D-66103 Saarbrücken, Germany Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509 Email: ajung@sz-sb.de (PGP key available) ------------------------------------------------------------------------------- From rocon@pivot.net Thu Mar 18 13:13:25 1999 From: rocon@pivot.net (Robert OConnor) Date: Thu, 18 Mar 1999 08:13:25 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <004901be7141$318eaf00$0201a8c0@hawkeye.bob.oc> Hi Thomas, >Is there anyone that could help or give me some pointers ? Yup, those switch options are confusing so I avoid them ;-) First, the most helpful tool for me in working with Linux is "git". This is a nice character based navigation and file management utility. Just type git. It came on my RH Linux and is installed automatically without your request. This program is alot like the DOS Norton Commander that I started using years ago. So you get the distribution: Zope-1_10_2-linux2-x86.tgz I use git's F6 key to rename it zope1102.tgz to ease the long typing. Move it to a newly created directory (F7) named perhaps "zope". Then in that directory, type: tar -xvzf zope1102.tgz A new directory is then created under your new zope directory named: Zope-1_10_2-linux2-x86.tgz/ Go into this directory and type ***This is were you got stuck*** ./install ***No switches!!! Then edit the access file now in this directory and change the obscure username and password to your favorites with F4 key to use "vi" Press i to insert new user/passwrd -- example: zope:gogo Press escape then :wq to save. Then ./start to start zope and maybe later if you EVER want to stop zope (who would ever WANT to stop!, ./stop. BTW, if you want to test the integrity of the downloaded zope distro, only change the t to an x as in: tar -xvzf zope1102.tgz Enjoy!!! -bobo connor From mj@antraciet.nl Thu Mar 18 13:33:05 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 18 Mar 1999 14:33:05 +0100 Subject: [Zope] I don't trust this. Message-ID: <4.1.19990318141119.00c0ad80@lisp.atmm.nl> Hello list, are you there? Sorry, but I haven't had any mail from the Zope list, Zope-Dev list and the ZDP list for over 3 and a half hours. And I don't trust such quiet.. =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tschruefer@mail.howard.k12.md.us Thu Mar 18 17:12:06 1999 From: tschruefer@mail.howard.k12.md.us (Thomas Schruefer) Date: Thu, 18 Mar 1999 12:12:06 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <199903181710.MAA21630@mail.howard.k12.md.us> >Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: >Hi Thomas, > >***This is were you got stuck*** > >./install > >***No switches!!! > Ok, unstuck, whoops, stuck again. I guess I have to do this in little baby steps. Some sort of initiation ritual, I think. ;-) Now I am getting the error message below even though python is clearly in the bin directory under the Zope install directory. "./install: bin/python: No such file or directory" This is the shell install script: *** #!/bin/sh # Get script dir if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` cd $PYTHONHOME else PYTHONHOME=. fi export PYTHONHOME bin/python inst/product_install.py $* *** A little different than the PERL I am used to seeing, but I've managed to make heads-and-tails of the thing. - I checked the location of python in the Zope install dir, ok. - I checked to ensure that the sh shell was in the bin/ dir, ok. Next up, re-upload the Zope file and check for a corrupted archive. Any other ideas ? From adminjim@coe.memphis.edu Thu Mar 18 19:39:36 1999 From: adminjim@coe.memphis.edu (Jim Harris) Date: Thu, 18 Mar 1999 13:39:36 -0600 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <000601be7177$11a7a940$642fe18d@jharris.coe.memphis.edu> Hope you don't mind me butting in, but if you just want to check out Zope very quickly, run the Windows version on 95/98/NT. It was nothing to install, and I was playing with Zope two minutes after downloading it. Python is also a snap to insall on Windows. -----Original Message----- From: Thomas Schruefer To: Zope Date: Thursday, March 18, 1999 10:09 AM Subject: Re: [Zope] Newbie install help needed !!!!! > > >>Robert OConnor - rocon@pivot.net on 3/18/99 8:13 AM wrote: > >>Hi Thomas, >> > >>***This is were you got stuck*** >> >>./install >> >>***No switches!!! >> > >Ok, unstuck, whoops, stuck again. > >I guess I have to do this in little baby steps. Some sort of initiation >ritual, I think. ;-) Now I am getting the error message below even >though python is clearly in the bin directory under the Zope install >directory. > >"./install: bin/python: No such file or directory" > >This is the shell install script: > > >*** >#!/bin/sh > ># Get script dir >if [ -n "`echo $0|sed -e 's%[^/]%%'`" ]; then > PYTHONHOME=`echo $0 | sed -e 's%/[a-z.]*$%%'` > cd $PYTHONHOME >else > PYTHONHOME=. >fi > >export PYTHONHOME >bin/python inst/product_install.py $* >*** > >A little different than the PERL I am used to seeing, but I've managed to >make heads-and-tails of the thing. > > >- I checked the location of python in the Zope install dir, ok. >- I checked to ensure that the sh shell was in the bin/ dir, ok. > > >Next up, re-upload the Zope file and check for a corrupted archive. > > >Any other ideas ? > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Christopher.Abraham@cio.treas.gov Thu Mar 18 21:22:22 1999 From: Christopher.Abraham@cio.treas.gov (Christopher.Abraham@cio.treas.gov) Date: Thu, 18 Mar 1999 16:22:22 -0500 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <85256738.007567CA.00@mail.cio.treas.gov> Hi. Here's the required History: Cold Fusion almost then found PHP3 and now ZOPE. I am running a P100 RH5.2 Apache 1.3, Kernel 2.0.36 and I am pretty sure I have Zope running: http://memes.org But neither my guru or I can get Apache to dance with Zope -- I am having all kinds of problems getting the admin page to work with me and my Login/PW is just not taking. My guru cannot even get it going and suggests using the Python server -- but I shall not be dashed -- any more info you need, I will give you a wee bit more: Want to use MySQL and will be developing a Writer's site -- for my fun and no profit, currently at: http://coelaboration.com -- I want to publish Hyperfiction and Hypertext using Zope as opposed to Perl or flatstatic... Cheers in advance... Chris From tony.mcdonald@ncl.ac.uk Thu Mar 18 22:33:01 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 18 Mar 1999 22:33:01 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903182236.WAA24270@cheviot.ncl.ac.uk> Hi all, I have an application that consists of 140+ XML documents, roughly 100k bytes each that I want to be able to query (using XSL pattern matching at present) and output to XML/HTML and RTF format. This will happen in real time (if at all possible). At the moment, my XML documents are held as files in a real file system (sacrilige! :). However, I'd like to get them into the database structure if at all possible, as I imagine it will make things easier in terms of searching. For example, the XML file Cell Biology is a good thing. If it weren't for Cell Biology, you wouldn't be around. This is lecture 1. This is lecture 2. A big bok Would lend itself to creation in the Zope database really easily (I think). XML elements (document, topic) and attributes such as id (used to uniquely identify an element) and title would be properties of the DTML document/method. So long as the id numbers were properly arranged, it should be *relatively* (good word that!) simple to recreate the original XML document. I assume that parsing the XML (in actual fact, the DTML doc/method would consist of *very little* XML I think, it all being taken care of in properties) to create HTML would be, again, relatively easy (my own tendency is to use the 'title' attribute as a class identifier for cascading style sheets). My question is, do people think that this idea could fly? I have spent *a long time* looking at how to get our Word (sorry for saying that!) documents into a format that means they can be easily put into a database and thereby benefit from all the good things that means. Several cul-de-sacs and wasted weekends later, it seems to me that Zope is coming out to be the closest thing to a solution for my problem... (I know from off-list discussions that there's a definite 'weirdness' about how people have been wanting/needing to implement things and then finding that (a) Zope does it already, (b) there's a product available or (c) someones working on it... !). any thoughts, as usual, greatly appreciated. tone. From jae@kavi.com Thu Mar 18 22:58:22 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 14:58:22 -0800 (PST) Subject: [Zope] ZSQL direct traveral question Message-ID: I've been messing around with using direct traveral on the ZSQL methods. I'm having a problem getting the traveral to work with anything more than one level of depth, eg: http://zope.kavi.com/mem/2/comp_admin/contacts/ Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. But it does work in this case: http://zope.kavi.com/comp_admin/contacts/mem/2/ Is this a restriction on the use of ZSQL direct traveral, or am I doing something wrong. If this is a restriction on how you can use direct traversal, I was wondering why, and if it'd be possible to 'fix' this. If so, I'm willing to do it and supply a patch, I assume this is functionality comes from Zope/lib/python/Shared/DC/ZRDB/DA.py, either in the DA.__call__ or in the Traverse object. I'll have to mess around with it a bit to figure out exactely whats going on (but I figured I'd ask about it first). --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Thu Mar 18 23:21:24 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Thu, 18 Mar 1999 18:21:24 -0500 (EST) Subject: [Zope] Parsing XML into/out of the database In-Reply-To: <199903182236.WAA24270@cheviot.ncl.ac.uk> Message-ID: On Thu, 18 Mar 1999, Tony McDonald wrote: > Would lend itself to creation in the Zope database really easily (I think). > XML elements (document, topic) and attributes such as id (used to uniquely > identify an element) and title would be properties of the DTML > document/method. So long as the id numbers were properly arranged, it should > be *relatively* (good word that!) simple to recreate the original XML > document. I assume that parsing the XML (in actual fact, the DTML doc/method > would consist of *very little* XML I think, it all being taken care of in > properties) to create HTML would be, again, relatively easy (my own tendency > is to use the 'title' attribute as a class identifier for cascading style > sheets). > > My question is, do people think that this idea could fly? I have spent *a > long time* looking at how to get our Word (sorry for saying that!) documents This is more or less what I did for my original FAQ product (but on a much smaller scale). I found out XML docs map nicely onto Zope's DB structure. I think you should give it a try because really it is not much effort to implement. Since the FAQ development has moved to zdp.zope.org my site is no longer needed so I created a guest account with the following authentication info: guest bobo at URL http://www.gaaros.com:9673 You can visit it and see my approach to the problem. I should also include the code of the external method that creates the Zope objects. (I believe a couple of more zopistas asked me for source access so here is your chance.) I have backed up Zope's DB so you can mess around as much as you want. Pavlos From jkhoffman@usa.net Thu Mar 18 23:38:42 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 18:38:42 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > I've been messing around with using direct traveral on the ZSQL methods. > I'm having a problem getting the traveral to work with anything more than > one level of depth, eg: > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > But it does work in this case: > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > something wrong. Without seeing your folder hierarchy, I'm not quite sure what's going on. Frankly, my head feels like it's going to explode when I try and figure out how your second example even worked. What are comp_admin and contacts? Folders? Where do they fit in your folder hierarchy? I have an event calendar, in which I use direct traversal of a ZSQL Method to display a particular event. My hierarchy is as follows: + events [Folder] - event_details_html [DTML Method] - dbFindEventById [ZSQL Method] My dbFindEventById method takes on parameter, event_id. To use direct traversal on my dbFindEventById query, using the event_details_html file to display the details of the event with event_id of 2 requires the following URL: http://localhost/events/dbFindEventById/event_id/2/event_details_html At first, I tried: http://localhost/events/dbFindEventById/2/event_details_html which looks very close to your first example, and it did not work. Then I realized you are required to specify the name of the parameter in the URL as well, so I added event_id before the 2, and I was off to the races. I'm sure I've misunderstood your problem somewhere, and if I did, I apologize for spouting off nonsense. But, I figured this just might help, since I got tripped up when I first tried to use direct traversal, also. Better safe than sorry. :^) > John Eikenberry jkh From jae@kavi.com Thu Mar 18 23:58:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 15:58:05 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > I've been messing around with using direct traveral on the ZSQL methods. > > I'm having a problem getting the traveral to work with anything more than > > one level of depth, eg: > > > > http://zope.kavi.com/mem/2/comp_admin/contacts/ > > > > Where 'mem' is the ZSQL query (that takes one arg), and the arg is '2'. > > But it does work in this case: > > > > http://zope.kavi.com/comp_admin/contacts/mem/2/ > > > > Is this a restriction on the use of ZSQL direct traveral, or am I doing > > something wrong. > > Without seeing your folder hierarchy, I'm not quite sure what's going on. > Frankly, my head feels like it's going to explode when I try and figure > out how your second example even worked. What are comp_admin and contacts? > Folders? Where do they fit in your folder hierarchy? Ok, a bit more info... mem ZSQL method (on top level - stands for member company) + comp_admin folder (company admin) + contacts folder (contact info for that company) contacts has an index_html which uses information returned from the mem query (its not how I use it, it won't even display with just #var). 'mem' takes one argument: comp_id (of which 2 is a test case) > I have an event calendar, in which I use direct traversal of a ZSQL Method > to display a particular event. My hierarchy is as follows: > > + events [Folder] > - event_details_html [DTML Method] > - dbFindEventById [ZSQL Method] > > My dbFindEventById method takes on parameter, event_id. To use direct > traversal on my dbFindEventById query, using the event_details_html file > to display the details of the event with event_id of 2 requires the > following URL: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > At first, I tried: > > http://localhost/events/dbFindEventById/2/event_details_html > > which looks very close to your first example, and it did not work. Then I > realized you are required to specify the name of the parameter in the URL > as well, so I added event_id before the 2, and I was off to the races. Actually, I've found the reverse to be true. When I try: http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ I get this error: Invalid integer value for comp_id Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 413, in publish (Info: /db/m/comp_id/2/comp_admin/contacts/) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 414, in __getitem__ (Object: CopySource) File /usr/local/lib/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 386, in __call__ (Object: CopySource) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: ) File lib/python/Shared/DC/ZRDB/sqltest.py, line 192, in render (Object: comp_id) ValueError: (see above) If I use creosote.spew to output the comp_id value before calling the query (I made spew an external method on the top level, this has come in very handy), the value resolves to 'comp_id'. But when I don't use the comp_id arg (like in the original example, and spew shows the value to be 2), it works fine as long as the method using it is the next on the URL. > I'm sure I've misunderstood your problem somewhere, and if I did, I > apologize for spouting off nonsense. But, I figured this just might help, > since I got tripped up when I first tried to use direct traversal, also. > Better safe than sorry. :^) Actually you are close, but in your example you use it as I said it works. In your code app can you do something like this (fictional change of your example): http://localhost/events/dbFindEventById/ event_id/2/modify_event/edit_event_details_html (should be all one line) Make more sense now? BTW, thanks for the help. :) --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Fri Mar 19 02:18:35 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 18 Mar 1999 18:18:35 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > > http://localhost/events/dbFindEventById/event_id/2/event_details_html > > > > At first, I tried: > > > > http://localhost/events/dbFindEventById/2/event_details_html > > > > which looks very close to your first example, and it did not work. Then I > > realized you are required to specify the name of the parameter in the URL > > as well, so I added event_id before the 2, and I was off to the races. > > Actually, I've found the reverse to be true. When I try: > > http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ > > I get this error: > > Invalid integer value for comp_id > < Traceback snipped > Ok, I think I figured out why we have different (opposite) results in this. I don't think you checked the "Allow direct traversal" checkbox on the advanced management page for the ZSQL method. If I unchecked it, then I could traverse like so... http://zope.kavi.com/mem/comp_id/2/comp_admin/contacts/ After checking it, I could traverse in this way... http://zope.kavi.com/mem/2/comp_admin/contacts/ Strange... :) Still doesn't address my original problem thought. I still can't get access to any of the results of the 'mem/2' query anywhere other than directly after it (on the url). Ie. http://zope.kavi.com/mem/2/comp_admin/contacts/index_html Doesn't work, but... http://zope.kavi.com/mem/2/test_html Does... I'm still digging through the ZSQL code looking for a way to fix this. I'll let everyone know once I've figured it out. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jkhoffman@usa.net Fri Mar 19 03:13:36 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:13:36 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, John Eikenberry wrote: > > [snip] > > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... Ok, here's a thought. What about trying: http://zope.kavi.com/comp_admin/contacts/mem/2/index_html Since the 'mem' ZSQL Method is in your root folder, it will be acquired by all folders below the root folder. Thus, the URL above should tell ZPublisher to go to the /comp_admin/contacts folder, then call the acquired 'mem' ZSQL method, with 2 as an argument, and using index_html to display the results. (Assuming the parameter name is not required, because you have checked 'Allow direct traversal', as you described.) I am curious to know what the 'Allow direct traversal' button does on the Advanced tab. Can anyone else here comment on that? Frankly, I didn't know it existed, as I've been able to use direct traversal just fine without it. It's curious to me that it changes the behavior of the traversal in the manner you demonstrated. I'm dying to know why. :^) > John Eikenberry jkh From jkhoffman@usa.net Fri Mar 19 03:17:47 1999 From: jkhoffman@usa.net (Jeff K. Hoffman) Date: Thu, 18 Mar 1999 22:17:47 -0500 (EST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > On Thu, 18 Mar 1999, Jeff K. Hoffman wrote: > > > I'm sure I've misunderstood your problem somewhere, and if I did, I > > apologize for spouting off nonsense. But, I figured this just might help, > > since I got tripped up when I first tried to use direct traversal, also. > > Better safe than sorry. :^) > > Actually you are close, but in your example you use it as I said it works. > In your code app can you do something like this (fictional change of your > example): > > http://localhost/events/dbFindEventById/ > event_id/2/modify_event/edit_event_details_html In this case, I would probably do: http://localhost/events/modify_event/dbFindEventById/ event_id/2/edit_event_details_html (should all be one line) > Make more sense now? Yup. > BTW, thanks for the help. :) You bet. By the way, what in the world is creosote.spew? :^) > John Eikenberry jkh From TomJenkins@zentuit.com Fri Mar 19 03:19:32 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 22:19:32 -0500 Subject: [Zope] Tracebacks and feeling pretty dumb Message-ID: <199903190322.WAA05466@mail.digiweb.com> Hey folks, Boy I'm feeling mighty dumb, but I just now, after maybe 8 hours of zope stuff (late night after work), discovered where the tracebacks were hiding from me. I searched this list, but never actually saw where they were printed, I finally saw it in the Trinkets Tutorial which I'm sure I read earlier . So just in case someone else is out there in the same boat as I was - the tracebacks are comments in the html error page. DOH! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From kid@kendermedia.com Fri Mar 19 03:47:36 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Thu, 18 Mar 1999 19:47:36 -0800 (PST) Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <19990319034736.16171.rocketmail@send206.yahoomail.com> ---Christopher.Abraham@cio.treas.gov wrote: > http://memes.org > > But neither my guru or I can get Apache > to dance with Zope -- I am having all > kinds of problems getting the admin page > to work with me and my Login/PW is just > not taking. You'll want to check out the doc/WEBSERVER.txt file under your Zope directory. Make sure your running a recent enough version of Apache and have mod_rewrite installed. Then, you need to configure rewrite rules so that Apache will pass authentication info through to Zope. Kevin _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com From simon@joyful.com Fri Mar 19 03:55:39 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 19:55:39 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" References: <36EE5791.1B7AD457@GestaltTechnology.com> Message-ID: Fredy Villa writes: > This is another post to make you aware of a new source of > information for Zope. You can access #zope on the EFNet servers. Their thanks for the resource - I want to check it out. Maybe you could answer this for me and other irc newbies, since I cannot find an answer elsewhere: All EFNet servers I've tried require me to be running "identd". Is there one which doesn't ? It's not on my default redhat system and I won't install it if I don't have to. -Simon From TomJenkins@zentuit.com Fri Mar 19 04:01:14 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:01:14 -0500 Subject: [Zope] IRC channel In-Reply-To: References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" Message-ID: <199903190404.XAA15203@mail.digiweb.com> > Fredy Villa writes: > > > This is another post to make you aware of a new source of > > information for Zope. You can access #zope on the EFNet servers. Their > > thanks for the resource - I want to check it out. Maybe you could > answer this for me and other irc newbies, since I cannot find an > answer elsewhere: > > All EFNet servers I've tried require me to be running "identd". Is > there one which doesn't ? It's not on my default redhat system and I > won't install it if I don't have to. > Simon, AFAIK, all the EFNet servers require identd. If you are running ip-masq then you need midentd. You can find it at rpmfind website ( http://rpmfind.net/RPM ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From TomJenkins@zentuit.com Fri Mar 19 04:17:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Thu, 18 Mar 1999 23:17:00 -0500 Subject: [Zope] IRC channel In-Reply-To: <199903190404.XAA15203@mail.digiweb.com> References: Message-ID: <199903190420.XAA28663@mail.digiweb.com> > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > Sorry, my mistake, there isn't an rpm for midentd... here's the url ftp://ftp.ox.compsoc.org.uk/pub/users/steve/midentd/ get the midentd-0.1.1.tar.gz file -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Y2K problem? The Mayans didn't have a millennium-2K problem! Eric S. Raymond at IPC7, on learning that the Mayan calendar takes 28 octillion years to wrap around From Anthony Baxter Fri Mar 19 04:43:38 1999 From: Anthony Baxter (Anthony Baxter) Date: Fri, 19 Mar 1999 15:43:38 +1100 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Your message of "Thu, 18 Mar 1999 23:01:14 CDT." <199903190404.XAA15203@mail.digiweb.com> Message-ID: <199903190443.PAA11704@mbuna.arbhome.com.au> Heck, identd is a trivial enough protocol. You can always just write one in 2 lines of python which just returns "sod off" as the username. :) That EFnet require it is somewhat puzzling. Anthony > > Fredy Villa writes: > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > From simon@joyful.com Fri Mar 19 06:15:21 1999 From: simon@joyful.com (Simon Michael) Date: 18 Mar 1999 22:15:21 -0800 Subject: [Zope] IRC channel [no zope content] In-Reply-To: Anthony Baxter's message of "Fri, 19 Mar 1999 15:43:38 +1100" References: <199903190443.PAA11704@mbuna.arbhome.com.au> Message-ID: Anthony Baxter writes: > Heck, identd is a trivial enough protocol. You can always just > write one in 2 lines of python which just returns "sod off" as the > username. :) Heh :) Thanks all, for the info. From kevin@studioinfo.com Fri Mar 19 06:36:21 1999 From: kevin@studioinfo.com (Kevin Teague) Date: Thu, 18 Mar 1999 22:36:21 -0800 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: I installed the Zope binary on a linux box, and everything went well. User authentication worked successfully with Apache using the 'REMOTE USER' environment variable. Then I tried to get ZMySQLDA to work, but I couldn't get the Zope Python install to find 'libmysqlclient'. I got a build of Python 1.5.1 to successfully import MySQL. So I decided to reinstall Zope from source, so that I could use my own Python. The source Zope built okay, but when I tried to start Zope through the web browser I got an "Internal Server Error" message from Apache, the error log said I had a "Premature end of script header". I've checked permission on the var dir and user authentication still seems to work fine. I couldn't figure out why I was getting the error, so I tried re-installing the binary distribution of Zope. No luck there either, I get the same "premature end of script header" error message. I've checked the Zope.cgi file, and it seems o.k. Does anyone have any idea why Zope.cgi is failing on me? Is there something I have to do to Apache or Zope if I've removed the Zope folder and then untarred and re-installed a new Zope? Don't know if this'll help, but this is what I get when I run Zope.cgi from the command line: Status: 500 Internal Server Error Bobo-Exception-File: lib/python/ZPublisher/Request.py Content-Type: text/html Bobo-Exception-Type: exceptions.KeyError Bobo-Exception-Value: SCRIPT_NAME Content-Length: 363 Bobo-Exception-Line: 167 exceptions.KeyError Sorry, an error occurred.

    Kevin Teague Kevin@StudioInfo.com Temporary Nelson address: #6-560 Baker street Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 From tony.mcdonald@ncl.ac.uk Fri Mar 19 06:26:32 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 19 Mar 1999 06:26:32 +0000 Subject: [Zope] Parsing XML into/out of the database Message-ID: <199903190636.GAA00186@cheviot.ncl.ac.uk> > Since the FAQ development has moved to zdp.zope.org my site is no longer > needed so I created a guest account with the following authentication > info: > Many thanks Pavlos - I saw that the Doc effort had moved to zdp.zope.org and is using structured text, and thought that it was a bit of an opportunity lost (no disrespect to the Zope Doc Effort of course) as I was amazed to see that the FAQ system you wrote was XML-based and hence easily extensible. > guest > bobo > > at URL http://www.gaaros.com:9673 > > You can visit it and see my approach to the problem. I should also include > the code of the external method that creates the Zope objects. (I believe > a couple of more zopistas asked me for source access so here is your > chance.) I have backed up Zope's DB so you can mess around as much as you > want. Thats excellent! - thanks a lot. I'll be snooping around later on once I get into work - I had looked at XMLConfig almost straight away, but had to put it to one side whilst I got to grips with Zope (and Python!) fundamentals. At least I've got somewhere to start from now... again many thanks for this, tone. From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 08:58:20 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 08:58:20 -0000 Subject: [Zope] Newbie: How to make Apache Play Nice... Message-ID: <001f01be71e6$a359ca20$5c773fc1@media1> Also, and this is important! Don't forget to make sure that the cgi driectory holding Zope.cgi has ExecCGI turned on. As I said this is important, later versions of Apache don't turn it on by default. HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Dangoor To: ; Sent: Friday, March 19, 1999 3:47 AM Subject: Re: [Zope] Newbie: How to make Apache Play Nice... >---Christopher.Abraham@cio.treas.gov wrote: >> http://memes.org >> >> But neither my guru or I can get Apache >> to dance with Zope -- I am having all >> kinds of problems getting the admin page >> to work with me and my Login/PW is just >> not taking. > >You'll want to check out the doc/WEBSERVER.txt file under your Zope >directory. Make sure your running a recent enough version of Apache >and have mod_rewrite installed. Then, you need to configure rewrite >rules so that Apache will pass authentication info through to Zope. > >Kevin >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phil@media-1.ml.uwcm.ac.uk Fri Mar 19 09:03:47 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 19 Mar 1999 09:03:47 -0000 Subject: [Zope] Zope install help needed: "Premature end of script header" Message-ID: <004701be71e7$661d68a0$5c773fc1@media1> The error you get when running Zope.cgi from the command line is a red herring, ignore it? It comes about because SCRIPT_NAME is set by the Web Server and as you aren't running it through such, you will get errors telling you that various ENVVARS do not exist. As to your other problem, hmm, it still sounds as if the var dir is not set correctly, maybe? HTH Phil phil@philh.org ----- Original Message ----- From: Kevin Teague To: Sent: Friday, March 19, 1999 6:36 AM Subject: [Zope] Zope install help needed: "Premature end of script header" >I installed the Zope binary on a linux box, and everything went well. User >authentication worked successfully with Apache using the 'REMOTE USER' >environment variable. Then I tried to get ZMySQLDA to work, but I couldn't >get the Zope Python install to find 'libmysqlclient'. I got a build of >Python 1.5.1 to successfully import MySQL. > >So I decided to reinstall Zope from source, so that I could use my own >Python. The source Zope built okay, but when I tried to start Zope through >the web browser I got an "Internal Server Error" message from Apache, the >error log said I had a "Premature end of script header". I've checked >permission on the var dir and user authentication still seems to work fine. >I couldn't figure out why I was getting the error, so I tried re-installing >the binary distribution of Zope. No luck there either, I get the same >"premature end of script header" error message. I've checked the Zope.cgi >file, and it seems o.k. > >Does anyone have any idea why Zope.cgi is failing on me? Is there something >I have to do to Apache or Zope if I've removed the Zope folder and then >untarred and re-installed a new Zope? > >Don't know if this'll help, but this is what I get when I run Zope.cgi from >the command line: >Status: 500 Internal Server Error >Bobo-Exception-File: lib/python/ZPublisher/Request.py >Content-Type: text/html >Bobo-Exception-Type: exceptions.KeyError >Bobo-Exception-Value: SCRIPT_NAME >Content-Length: 363 >Bobo-Exception-Line: 167 > > > >exceptions.KeyError > > >Sorry, an error occurred.

    > > >Kevin Teague >Kevin@StudioInfo.com > >Temporary Nelson address: #6-560 Baker street >Phone: 250-354-1845 * Dedicated Fax: 250-354-1890 > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jaime@ml.com Fri Mar 19 14:18:57 1999 From: jaime@ml.com (Jaime A. Jofre) Date: Fri, 19 Mar 1999 14:18:57 +0000 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <36F25CD1.69125518@ml.com> Can anyone tell me how to setup up Zope using PCGI with Netscape Enterprise Server 3.51? I have read WEBSERVER.txt, but it only details Apache. Any help would be greatly appreciated. Cheers, Jaime From p.bizzarri@icube.it Fri Mar 19 15:13:06 1999 From: p.bizzarri@icube.it (Paolo Bizzarri) Date: Fri, 19 Mar 1999 16:13:06 +0100 Subject: [Zope] Access control problems. Message-ID: <36F26982.C8DBAF5@icube.it> Hi everybody, I am in a FAQish problem. I am using ZopeHTTPServer for setting up a complex intranet site. However, access control do not seem to work at all. Either I can build a public site (which is viewable by everybody), or I have to use SuperUser passwd to enter in a private site. I would like to allow user A to see folder X but not folder Y, and so on. I have created users, assigned roles, but it seems not to work. BTW, cut & paste do not seem to work at all. Any suggestions ? Thanks. -- ----------------------------------------------------------------------- | Paolo Bizzarri, I3 Icube Srl, Via Ridolfi 15, 56100 Pisa, Italy | | Email: p.bizzarri@icube.it WWW: www.icube.it | | Tel: 050 97 02 07 Fax: 050 36 31 588 | |-----------------------------------------------------------------------| | Red Hat Support Partner & Samba Consultant | ----------------------------------------------------------------------- From FVilla@GestaltTechnology.com Fri Mar 19 15:53:35 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Fri, 19 Mar 1999 10:53:35 -0500 Subject: [Zope] IRC channel References: Fredy Villa's message of "Tue, 16 Mar 1999 08:07:30 -0500" <199903190404.XAA15203@mail.digiweb.com> Message-ID: <36F272FE.52C87A31@GestaltTechnology.com> Simon, irc.cs.cmu.edu doesn't require it, last I checked. Fredy Villa bohemio@thetruthhurts.com Tom Jenkins wrote: > > Fredy Villa writes: > > > > > This is another post to make you aware of a new source of > > > information for Zope. You can access #zope on the EFNet servers. Their > > > > thanks for the resource - I want to check it out. Maybe you could > > answer this for me and other irc newbies, since I cannot find an > > answer elsewhere: > > > > All EFNet servers I've tried require me to be running "identd". Is > > there one which doesn't ? It's not on my default redhat system and I > > won't install it if I don't have to. > > > Simon, > AFAIK, all the EFNet servers require identd. If you are running ip-masq > then you need midentd. You can find it at rpmfind website > ( http://rpmfind.net/RPM ) > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Y2K problem? The Mayans didn't have a millennium-2K problem! > Eric S. Raymond at IPC7, on learning that the Mayan calendar > takes 28 octillion years to wrap around From Brian@digicool.com Fri Mar 19 16:19:52 1999 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 19 Mar 1999 11:19:52 -0500 Subject: [Zope] Zope with Nestcape Enterprise Server 3.51 - Help Message-ID: <613145F79272D211914B0020AFF64019FD99@GANDALF> > Can anyone tell me how to setup up Zope using PCGI with Netscape > Enterprise Server 3.51? I have read WEBSERVER.txt, but it > only details > Apache. Any help would be greatly appreciated. > > Cheers, > > Jaime Jaime, Please see the url http://www.zope.org/Download/Prereleases/NetscapePlugin Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jamesh@altavista.net Fri Mar 19 17:11:12 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 09:11:12 -0800 (PST) Subject: [Zope] Security tab in home grown Product Message-ID: I'm resending this to the zope list, because I didn't get any response from the zope-dev list. Hi. I have made my first Product (a little message wall that people can post colored messages to), but I am having some trouble with the Security tab. When I press the tab, I get a Permissions screen that looks as it should, but when I click the change button (no matter what permissions I change, if any), I get the following error: Sorry, an error occurred. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /wall/manage_changePermissions) File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in manage_changePermissions (Object: RoleManager) File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, in setRoles AttributeError: manage_main I don't doubt that I am causing this, but since it isn't occuring in my code, I don't know how to go about finding the source of the problem. Thanks for any help you can give. -james [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From billr@coinet.com Fri Mar 19 17:31:42 1999 From: billr@coinet.com (Bill Randle) Date: Fri, 19 Mar 1999 09:31:42 -0800 Subject: [Zope] frames and external method lookups Message-ID: <9903190931.ZM14151@saab.coinet.com> I have a DTML Document that references an External Method. This document is embedded inside another DTML document. If I view this document, then the page is rendered correctly. If I now take this document and reference it from a tag, Zope complains and says it can't find the external method. What's different here that causing me problems? Here's some more details, including the traceback: 1. Zope-1.10.2-linux2-x86 2. The innermost DTML docuemnt (lighttablebar) refers to the extermal method like this: 'looprange' is my external method and is located in the top level folder 'ltblSize' is a property of the document that "includes" this document. This innermost DTML docuemnt is also located in the top-level folder. 3. The next DTML document (lighttable_frame) includes the previous document with a simple #var command (in between some other html stuff): This document has a property named 'ltblSize' defined as 6. This document lives two folders down from the top-level folder I can use the View tab in the manager to see the rendition of this page and it looks just fine and there are no complaints about looprange(). 4. If I include the previous DTML document in another DTML document that is specifying some frames, e.g.: Stock Book When I use the View tab to see what this page looks like, I get the two frames, but in the lighttable_frame frame, I get an error message about looprange being undefined: ---- start of traceback message ---- The specified module, looprange, couldn't be opened. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 590, in publish (Info: /Gamba_home/Stockbook/LightTable/lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 212, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 208, in __call__ (Object: lighttable_frame) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttable_frame) File lib/python/OFS/DTMLDocument.py, line 205, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__ (Object: lighttablebar) File lib/python/DocumentTemplate/DT_In.py, line 620, in renderwob (Object: looprange(ltblSize)) File lib/python/DocumentTemplate/DT_Util.py, line 266, in eval (Object: looprange(ltblSize)) File , line 0, in ? File lib/python/Products/ExternalMethod/ExternalMethod.py, line 233, in __call__ (Object: CopySource) File lib/python/Products/ExternalMethod/ExternalMethod.py, line 195, in getFunction (Object: CopySource) File lib/python/App/Extensions.py, line 137, in getObject Module Error: (see above) ---- end of traceback message ---- So again, what is happening when the DTML doc is being refered to inside a frame that is different than not in a frame (and more to the point, how do I get around this apparent problem)? -Bill Randle Central Oregon Internet billr@coinet.com From jim@digicool.com Fri Mar 19 17:55:06 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 19 Mar 1999 12:55:06 -0500 Subject: [Zope] Security tab in home grown Product References: Message-ID: <36F28F7A.5B117767@digicool.com> "James A. Hillyerd" wrote: > > I'm resending this to the zope list, because I didn't get any response > from the zope-dev list. > > Hi. > > I have made my first Product (a little message wall that people can post > colored messages to), but I am having some trouble with the Security tab. > When I press the tab, I get a Permissions screen that looks as it should, > but when I click the change button (no matter what permissions I change, > if any), I get the following error: > > Sorry, an error occurred. > > Traceback (innermost last): > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in > publish_module > File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in > publish > (Info: /wall/manage_changePermissions) > File /usr/local/zope/lib/python/AccessControl/Role.py, line 194, in > manage_changePermissions > (Object: RoleManager) > File /usr/local/zope/lib/python/AccessControl/Permission.py, line 166, > in setRoles > AttributeError: manage_main > > I don't doubt that I am causing this, but since it isn't occuring in my > code, I don't know how to go about finding the source of the problem. > > Thanks for any help you can give. Zope (up to 1.10.x) expects every managed object to have a manage_main method that provides the default management interface for the object. You need to rename or create an alias from your default management method to manage_main. In Zope 1.10, there will be a new inherited method, manage_workspace, which should not be overridden, that picks the first item in you manage_options as the default management interface. This gives you more flexibility in naming and will allow more dynamic view management. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jamesh@altavista.net Fri Mar 19 18:32:25 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Fri, 19 Mar 1999 10:32:25 -0800 (PST) Subject: [Zope] Security tab in home grown Product In-Reply-To: <36F28F7A.5B117767@digicool.com> Message-ID: On Fri, 19 Mar 1999, Jim Fulton wrote: > > Zope (up to 1.10.x) expects every managed object to have a manage_main > method that provides the default management interface for the object. > > You need to rename or create an alias from your default management > method to manage_main. > Oh, I see. So the manage_main I see is actually being acquired from the folder my product instance is installed in? If so that would explain why adding things to it actually adds things to it's parent folder. If I write a manage_main method, will it start magically working, or do I need to add it to __init__.methods and/or one of the __ac_permissions__ tuples? > In Zope 1.10, there will be a new inherited method, manage_workspace, > which should not be overridden, that picks the first item in you > manage_options as the default management interface. This gives > you more flexibility in naming and will allow more dynamic view > management. > Sounds cool to me. =) [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From ropjes@groovy.xs4all.nl Fri Mar 19 18:52:21 1999 From: ropjes@groovy.xs4all.nl (Rop Slijkerman) Date: Fri, 19 Mar 1999 18:52:21 +0000 (GMT) Subject: [Zope] NameError: In-Reply-To: <9903190931.ZM14151@saab.coinet.com> Message-ID: In a database with personal bookmarks wich I created as a test I get the following error when trying to update a bookmark. This is new. It worked before I had to reinstall Linux from scratch, wich had ofcourse nothing to do with zope. This error is the result of calling this method:

    Your data was Updated in the Database! The SQL statement (SQL_update_bookmarks): UPDATE bookmarks SET naam=, bookmark_url= WHERE nummer= - Rop From mbernstein@profitscape.net Fri Mar 19 19:38:05 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 11:38:05 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 Message-ID: <36F2A79D.FEF0FDD@profitscape.net> I apologize if for the off-topic nature of this post, but felt it was too important to ignore. Microsoft has released IE5, which is non-compliant with many of the standards that Microsoft has helped author. As widespread compliance to standards is one of the things that will greatly enhance Zopes success in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue deserved to be aired here too. The original statement from the WSP can be found at: http://www.webstandards.org/ie5.txt Following is an email posted to another list I am on, as I think this sums up the appropriate responses rather well. Michael Bernstein -------- Original Message -------- From: "A List Apart" Subject: A List Apart - Special Announcement To: "Michael Bernstein" Greetings Webmakers. The following is a special note from our friend Glenn Davis regarding a somewhat urgent and pressing issue. I won't waste time talking about it, as the following explains it all quite well. I hope everyone finds it in them to support the cause. Thanks. -Brian M. Platz, ALA Co-Moderator ------ Greetings! Since 1993 I've done my best to show everyone the good on the web and to help anyone who wanted it gain the knowledge they needed to create that good. Today I'm asking for your help. I'm not asking not as Glenn Davis, CTO of Project Cool, and not as Glenn Davis, cofounder of The Web Standards Project. I'm asking as Glenn Davis, a man who, for the past six years has worked to make the web a better place for everyone. Recently Microsoft released their 5.0 browser and after all this time there is still not 100% support for the standards that make web development easier. Standards that Microsoft helped create. Below are three simple letters. Very to the point letters that ask one very simple question. I'm hoping that you'll pick just one of those letters and use it to ask Microsoft the very simple question within. If you would copy just one of those letters into an email and send that email to wasp@microsoft.com I would very much appreciate it. This email address is one that Microsoft set up for email about standards. I'm also asking that you pass this email along to anyone else who has ever tried to make a webpage. My sincerest thanks for the help you provide. Sincerely and simply, Glenn Davis ------------------ CSS-1 Letter-------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for CSS-1 in your Internet Explorer browser. Could you please respond with the date when I might expect this? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) DOM Letter-------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for the W3C DOM in your Internet Explorer browser. Please let me know when that will happen. A simple date will suffice for a response. If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) HTML 4.0 Letter-------------------- To: wasp@microsoft.com Dear Microsoft: As a web developer who spends far too much time working around browser incompatabilities, I need to know when you will offer full support for HTML 4.0 in your Internet Explorer browser. On what date will this event occur? If you don't plan to ever support 100% of this standard, then please let me know that also. I have my future to consider. I'm not asking for long excuses or explanations from you. I'd prefer that you respond with either the date on which that support will occur or the word "never." Sincerely, (Your name here) (Your company name here) ------------------- From ben@amvalue.com Fri Mar 19 21:22:14 1999 From: ben@amvalue.com (Benjamin Suto) Date: Fri, 19 Mar 1999 16:22:14 -0500 Subject: [Zope] Web Application Software Message-ID: <36F2C006.9D7E89C9@amvalue.com> I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben From Paul@digicool.com Fri Mar 19 21:33:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 16:33:38 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with which to attach his persona. Glenn got his start at InfiNet, our former majority owner. I remember when he shared a 10x10 office with the other Mac person there. I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, I'm asking as a humble guy that singlehandedly saved the web" part. That paragraph is so pathetic, I can't believe he actually wrote it. IMO opinion, the only cause he is advancing is himself. It's a shame, because browser vendors _do_ need to be beaten into standards compliance and away from bait-and-switch. --Paul > -----Original Message----- > From: Michael Bernstein [mailto:mbernstein@profitscape.net] > Sent: Friday, March 19, 1999 2:38 PM > To: zope@zope.org > Subject: [Zope] OT: A petition condemning non-standard > compliance in IE5 > > > I apologize if for the off-topic nature of this post, but felt it was > too important to ignore. > > Microsoft has released IE5, which is non-compliant with many of the > standards that Microsoft has helped author. As widespread > compliance to > standards is one of the things that will greatly enhance Zopes success > in the marketplace (i.e. WebDAV, XML-RPC), I felt that this issue > deserved to be aired here too. > > The original statement from the WSP can be found at: > http://www.webstandards.org/ie5.txt > > Following is an email posted to another list I am on, as I think this > sums up the appropriate responses rather well. > > Michael Bernstein > > -------- Original Message -------- > From: "A List Apart" > Subject: A List Apart - Special Announcement > To: "Michael Bernstein" > > Greetings Webmakers. > > The following is a special note from our friend Glenn Davis > regarding a > somewhat urgent and pressing issue. I won't waste time > talking about it, > as > the following explains it all quite well. I hope everyone finds it in > them > to support the cause. > > Thanks. > > -Brian M. Platz, ALA Co-Moderator > > > ------ > Greetings! > Since 1993 I've done my best to show everyone the good on > the web and > to > help anyone who wanted it gain the knowledge they needed to > create that > good. Today I'm asking for your help. I'm not asking not as Glenn > Davis, > CTO of Project Cool, and not as Glenn Davis, cofounder of The Web > Standards > Project. I'm asking as Glenn Davis, a man who, for the past six years > has > worked to make the web a better place for everyone. > Recently Microsoft released their 5.0 browser and after > all this time > there is still not 100% support for the standards that make web > development > easier. Standards that Microsoft helped create. > Below are three simple letters. Very to the point letters that ask > one > very simple question. I'm hoping that you'll pick just one of those > letters and use it to ask Microsoft the very simple question > within. If > you would copy just one of those letters into an email and send that > email > to wasp@microsoft.com I would very much appreciate it. This email > address > is one that Microsoft set up for email about standards. I'm > also asking > that you pass this email along to anyone else who has ever > tried to make > a > webpage. > My sincerest thanks for the help you provide. > > > Sincerely and simply, > Glenn Davis > > ------------------ > CSS-1 Letter-------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > CSS-1 in your Internet Explorer browser. Could you please > respond with > the > date when I might expect this? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > Sincerely, > (Your name here) > (Your company name here) > > > DOM Letter-------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > the > W3C DOM in your Internet Explorer browser. Please let me > know when that > will happen. A simple date will suffice for a response. > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > HTML 4.0 Letter-------------------- > > To: wasp@microsoft.com > > Dear Microsoft: > As a web developer who spends far too much time working > around browser > incompatabilities, I need to know when you will offer full support for > HTML > 4.0 in your Internet Explorer browser. On what date will this event > occur? > If you don't plan to ever support 100% of this standard, > then please > let me know that also. I have my future to consider. I'm not asking > for > long excuses or explanations from you. I'd prefer that you > respond with > either the date on which that support will occur or the word "never." > > Sincerely, > (Your name here) > (Your company name here) > > ------------------- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From TomJenkins@zentuit.com Fri Mar 19 21:25:51 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Fri, 19 Mar 1999 16:25:51 -0500 Subject: [Zope] ZServer licensing Message-ID: <199903192129.QAA13415@mail.digiweb.com> Hello all, Since ZServer is based on Medusa, does a commercial enterprise have to pay the $200/computer license? Or is ZServer released under a true Open Source license (somehow)? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From mbernstein@profitscape.net Fri Mar 19 21:36:16 1999 From: mbernstein@profitscape.net (Michael Bernstein) Date: Fri, 19 Mar 1999 13:36:16 -0800 Subject: [Zope] OT: A petition condemning non-standard compliance in IE5 References: <613145F79272D211914B0020AFF640190D9F23@GANDALF> Message-ID: <36F2C350.7DD65AF5@profitscape.net> Paul Everitt wrote: > > Ahh yes, Glenn "Master of Self-Promotion" Davis has found a cause with > which to attach his persona. Glenn got his start at InfiNet, our former > majority owner. I remember when he shared a 10x10 office with the other > Mac person there. > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. Hyper Star, > I'm asking as a humble guy that singlehandedly saved the web" part. > That paragraph is so pathetic, I can't believe he actually wrote it. Ooh, that is so harsh, dude. :^) > IMO opinion, the only cause he is advancing is himself. It's a shame, > because browser vendors _do_ need to be beaten into standards compliance > and away from bait-and-switch. Ok, but what do you think of using the three templated emails? I feel that they're rather well written, and could be effective. After all, this is about results, right? Michael Bernstein From petrilli@amber.org Fri Mar 19 21:40:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Fri, 19 Mar 1999 16:40:24 -0500 Subject: [Zope] ZServer licensing In-Reply-To: <199903192129.QAA13415@mail.digiweb.com>; from Tom Jenkins on Fri, Mar 19, 1999 at 04:25:51PM -0500 References: <199903192129.QAA13415@mail.digiweb.com> Message-ID: <19990319164024.B22929@amber.org> On Fri, Mar 19, 1999 at 04:25:51PM -0500, Tom Jenkins wrote: > Hello all, > Since ZServer is based on Medusa, does a commercial enterprise have > to pay the $200/computer license? Or is ZServer released under a true > Open Source license (somehow)? I believe the current agreement that Digital Creations has reached with Sam Rushing (the author of Medusa) allows for open-source-style distribution of ZServer so long as it's used with Zope. Paul can probably corret the exact legal situation, but basically DC bought an unlimited license to give it away ... say thank you :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From simon@joyful.com Fri Mar 19 22:07:54 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 14:07:54 -0800 Subject: [Zope] ZServer licensing In-Reply-To: Christopher Petrilli's message of "Fri, 19 Mar 1999 16:40:24 -0500" References: <199903192129.QAA13415@mail.digiweb.com> <19990319164024.B22929@amber.org> Message-ID: Christopher Petrilli writes: > probably corret the exact legal situation, but basically DC bought an > unlimited license to give it away ... say thank you :-) they *bought* it ? really ? From Paul@digicool.com Fri Mar 19 23:00:26 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:00:26 -0500 Subject: [Zope] OT: A petition condemning non-standard compliance in I E5 Message-ID: <613145F79272D211914B0020AFF640190D9F26@GANDALF> Michael wrote: > Paul wrote: > > I love the "I'm not asking as Mr. Mega Big-wig, nor as My. > Hyper Star, > > I'm asking as a humble guy that singlehandedly saved the web" part. > > That paragraph is so pathetic, I can't believe he actually wrote it. > > Ooh, that is so harsh, dude. :^) OK, I agree, and I ought to just focus on his words rather than on him. Public retraction on the personal stuff, BUT I absolutely stand behind taking offense at the words. If you're going to lead an offensive based on principal, make the self-aggrandizement a bit more subtle. Hmm, didn't turn out to be much of a retraction. :^) --Paul From Paul@digicool.com Fri Mar 19 23:04:45 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 19 Mar 1999 18:04:45 -0500 Subject: [Zope] ZServer licensing Message-ID: <613145F79272D211914B0020AFF640190D9F27@GANDALF> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but basically DC > bought an > > unlimited license to give it away ... say thank you :-) > > they *bought* it ? really ? We reached a mutually agreeable arrangement whereby Medusa could become the core for our object publishing system, under the Zope license. Definately turned out to be a win-win-win (Sam, DC, and Zope). --Paul From simon@joyful.com Fri Mar 19 23:10:31 1999 From: simon@joyful.com (Simon Michael) Date: 19 Mar 1999 15:10:31 -0800 Subject: [Zope] IRC channel In-Reply-To: Fredy Villa's message of "Fri, 19 Mar 1999 10:53:35 -0500" References: <199903190404.XAA15203@mail.digiweb.com> <36F272FE.52C87A31@GestaltTechnology.com> Message-ID: Fredy Villa writes: > irc.cs.cmu.edu doesn't require it, last I checked. I get: [info] Connecting to irc.cs.cmu.edu port 6667... {irc.cs.cmu.edu} *** Looking up your hostname... {irc.cs.cmu.edu} *** Checking Ident {irc.cs.cmu.edu} *** Found your hostname [info] Not enough parameters: Not enough parameters [info] You have not registered From vanandel@ucar.edu Sat Mar 20 00:56:24 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Fri, 19 Mar 1999 17:56:24 -0700 Subject: [Zope] Status of Collector? Message-ID: <199903200056.RAA27359@stout.atd.ucar.edu> I see that the bug report and feature request lists are implemented using the "Collector". What's the status of this? 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) 2) Is it purchased from Digital Creations? Thanks much. Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From jae@kavi.com Sat Mar 20 01:50:55 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 17:50:55 -0800 (PST) Subject: [Zope] ZServer licensing In-Reply-To: <19990319164024.B22929@amber.org> Message-ID: On Fri, 19 Mar 1999, Christopher Petrilli wrote: > I believe the current agreement that Digital Creations has reached with > Sam Rushing (the author of Medusa) allows for open-source-style > distribution of ZServer so long as it's used with Zope. Paul can AFAIK, ZServer was released (including Medusa) under the same license as the rest of Zope. Which means that all of it is free software, including the medusa code it contains. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jae@kavi.com Sat Mar 20 02:09:29 1999 From: jae@kavi.com (John Eikenberry) Date: Fri, 19 Mar 1999 18:09:29 -0800 (PST) Subject: [Zope] #raise problem? Message-ID: I just used the #raise tag for the first time, and its not working the way I thought it was supposed to. When I raise, I get always just get... Sorry, and error occured. (plus the traceback, but that's not relevant) Where my DTML looks like this... You are not authorized to view this information. (I didn't use Unauthorized as I didn't want an a login box) The problem is that I thought that it was supposed to display... You are not authorized to view this information. NOT Sorry, and error occured. Any tips? PS. The title is set to "Permission Denied" as its supposed to. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From hadar@verticality.com Sat Mar 20 15:03:58 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:03:58 -0500 Subject: [Zope] Status of Collector? In-Reply-To: <199903200056.RAA27359@stout.atd.ucar.edu> Message-ID: <000a01be72e2$e1beb620$7863efa1@hadar.bestweb.net> Joe wrote: > I see that the bug report and feature request > lists are implemented using the "Collector". > What's the status of this? > > 1) Is it shipped with ZOPE 1.10.2? (I couldn't find it) Nope. > 2) Is it purchased from Digital Creations? Yes. At the moment, we are selling Collector. A number of copies have been sold already. There are a couple of things to note about a few of the packages that we have been selling (relatively privately lately): 1) Most have little documentation (read the source Luke :-) 2) Our license specifically reserves the right to give the software away at some future point (so you need to realize you are paying to get it now, and shouldn't be annoyed when/if others get it for free!) 3) Our license specifically prohibits redistribution, or the creation of derivative works (for distribution) 4) We permit unlimited internal use of the code, including operating public websites 5) We offer email-based support for 90 days (for 2 contacts usually) 6) The license is for 5 developers only. If you have more, you buy more copies 7) Additional support options are available for purchase. The point of the above isn't to make a lot of money. We're selling more copies than we anticipated, but hardly enough to make this our business model. The point of charging is to cover the inevitable support costs of shipping a product that has little documentation, but is more technically advanced to use than the content-oriented Zope general release. A secondary benefit is that people who purchase now are clearly motivated to use the product(s). Therefore, the support questions tend to be focused around real-world use of the products, and help us make them more robust for the inevitable Open Source release (whenever that might be). So, which products are we currently offering for sale? 1) Collector 2) Z Tables 3) Z Network Client 4) Infoseek DA In general, pricing is at $1,500 per package. The exception in the above list is Collector, which is $2,000. The reason? It makes heavy use of Z Tables, so essentially you are getting two products for the price on 1.3333 products :-). Those who wish to discuss this (either to become customers, or to tell me that we're "off base") should write to me directly, and _not_ post to the list. Hadar Pedhazur From hadar@verticality.com Sat Mar 20 15:10:21 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Sat, 20 Mar 1999 10:10:21 -0500 Subject: [Zope] ZServer licensing In-Reply-To: Message-ID: <000b01be72e3$c60f80c0$7863efa1@hadar.bestweb.net> Simon wrote: > Christopher Petrilli writes: > > probably corret the exact legal situation, but > > basically DC bought an unlimited license to give > > it away ... say thank you :-) > > they *bought* it ? really ? I know that a number of people responded to this already, including Paul. However, he didn't give as concrete response as this direct question requests. The answer is _yes_, Digital Creations most definitely paid _real money_ to Sam for the right to embed parts of Medusa in ZServer. However, the intent of the license is to allow unlimited, free, Open Source(tm) use, within the Zope environment. If you don't intend to use Zope, then you should be licensing Medusa separately from Sam Rushing. We highly recommend it (obviously), and have put our money where our mouth is. The reason that this is an important question to answer is that we are so committed to the Open Source movement, that not only do we release stuff that we wrote, but when appropriate, we will invest hard cash to further the community as well (ZServer being but one example). From tpatrick@IndigoNetworks.com Sat Mar 20 18:20:12 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Sat, 20 Mar 1999 12:20:12 -0600 Subject: [Zope] Web Application Software Message-ID: <57D47461794DD211825300A0C9D17EF906C89F@IGOPDC01> I do not know much about btrieve. If you can make btrieve a data source you are home free. All you need is the connector/drivers. http://www.zope.org/Download/Adapters Also look into: http://www.python.org/download/Contributed.html#Database Typically these modules make there way into zope as they are existing python modules. Actually I would gather that Btrieve has a c interface that would make a great product. As with all projects .... it depends. Using attributes is the key to zope. If you take advantage of its ability to store session variables Zope is far better than other solutions because you do not need a database to store info during a transaction, you can simply write it to an attribute in zope thus lowering the # database calls. I guess the implementation depends on allot of variables that were not listed in your email. 1. # of concurrent users 2. # of queries and "How databasy is the application? Big Queries? OnChange?" 3. Specifics on your data model 4. # of tasks required 5. How OO(Object Oriented) are you? It is a difficult concept to cover but developmental access to ZOPE is remote by nature. Anything you can do in Zope is accessible anywhere, by anyone else. Except for installing modules and products, you do not need machine access ---> Everything is done online and inside of Zope. It is convenient that way. Look into the bug collector for the ZOPE site. It allows many levels of access to the bug database except there is not database just Ztables. It might be just the ticket. http://www.zope.org/Collector Also take a look at the example folder here http://www.zope.org/Download/Contrib Specifically the DTML EXAMPLE FOLDER --> IT WILL GIVE YOU LOTS O' CODE and HINTS Just think in OO and Zope will work. Best of luck. Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Benjamin Suto [mailto:ben@amvalue.com] Sent: Friday, March 19, 1999 3:22 PM To: zope@zope.org Subject: [Zope] Web Application Software I wonder just how robust Zope is. I am writing an internal application for a tour operator that I work for. Right now, I'm considering the software for a group quote program that will allow people on the Intranet or people travelling abroad with the groups to add or edit services on a complete group package. The kicker is that we need to access some btrieve files that are part of another accounting package that needs to be tied into this. Assuming I figure a way around the btrieve packages, is Zope robust enough to handle an application like this? All I've seen so far are shopping cart programs, but this would be much more complex. Are there any references to any pointers or any such information about just what Zope can do? I haven't been able to glean as much as I wanted from the site. Ben _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From roeder@berg.net Sat Mar 20 17:47:22 1999 From: roeder@berg.net (Maik Roeder) Date: Sat, 20 Mar 1999 18:47:22 +0100 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <99032019551700.01550@alpha> Hi all ! I am new to Zope, and I have a problem with External Methods. Everytime I change the implementation of my file in Extensions/test.py I have to reimport the External Method to see the changes. What am I doing wrong ? I just want the changes I made to the source code to be reflected when I reload a page ! I hope someone can explain what I am doing wrong here. Maik Röder Some more details: I have a folder called VMBI and an external method test in it. Everything works just fine, the index_html file has a call to the external method, which just prints "Hello World!" So the following URL http://localhost:9673/VMBI/test prints Hello World ! But when I change the original source code to print for example Hello Zope ! Then upon reloading the web page http://localhost:9673/VMBI/test there still is printed Hello World ! What's going on here ? From jae@kavi.com Sat Mar 20 22:08:52 1999 From: jae@kavi.com (John Eikenberry) Date: Sat, 20 Mar 1999 14:08:52 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <99032019551700.01550@alpha> Message-ID: On Sat, 20 Mar 1999, Maik Roeder wrote: > Everytime I change the implementation of my file in Extensions/test.py I have > to reimport the External Method to see the changes. You don't have to delete and recreate an External Method each time you change it's file. But you do have to go back to its properties page and hit the "Edit" button to reload its module (this is actually a nice feature of python, being able to reload modules at run time). > What am I doing wrong ? I just want the changes I made to the source > code to be reflected when I reload a page ! Well, it may be possible to stat the External Methods file each time its used, and reload it if its changed (you'd have to store its last modification time somewhere to compare against). This probably isn't done for performance reasons. Perhaps it could be linked to the BOBO_DEBUG_MODE environmental variable or something to address this issue. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jamesh@altavista.net Sat Mar 20 22:52:10 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 14:52:10 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Message-ID: Is there a similar way to reload code for a Product, or is the shutdown/restart of Zope necessary? If I do have to continue the shutdown/restart process, is there any way of tuning PCGI so that it loads up faster? Thanks. -james On Sat, 20 Mar 1999, John Eikenberry wrote: > > You don't have to delete and recreate an External Method each time you > change it's file. But you do have to go back to its properties page and > hit the "Edit" button to reload its module (this is actually a nice > feature of python, being able to reload modules at run time). [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From jamesh@altavista.net Sat Mar 20 23:52:37 1999 From: jamesh@altavista.net (James A. Hillyerd) Date: Sat, 20 Mar 1999 15:52:37 -0800 (PST) Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: <36F42B23.39763A52@rubic.com> Message-ID: On Sat, 20 Mar 1999, Jeff Bauer wrote: > "James A. Hillyerd" wrote: > > If I do have to continue the shutdown/restart process, is > > there any way of tuning PCGI so that it loads up faster? > > In the pcgi/Util directory, you'll find a killpcgi.py > script. You could hack it to perform a restart, i.e. > launch a new pcgi process after killing the old one. > This would speed up your initial connect time and be > much faster during debugging (multiple restarts). > But wouldn't that kill the Zope process instead of having it shut itself down? How gracefully does Zope exit when receiving a SIGTERM? > Best regards, > > Jeff Bauer > Rubicon, Inc. > [] James A. Hillyerd Java Developer [] HyperGlyphics: http://www.hyperglyphics.com/ [] GPG Public Key Fingerprint for 1024D/9F956CDE (Expires 2000-02-01): [] C86F B073 92DF 1E24 EF0B 0118 6061 0FEC 9F95 6CDE From quinn@challenge.calarts.edu Sun Mar 21 03:25:19 1999 From: quinn@challenge.calarts.edu (Quinn Dunkan) Date: Sat, 20 Mar 1999 19:25:19 -0800 Subject: [Zope] Why do I have to reimport External Methods ? In-Reply-To: Your message of "Sat, 20 Mar 1999 15:52:37 PST." Message-ID: <199903210325.TAA36206@challenge.calarts.edu> > On Sat, 20 Mar 1999, Jeff Bauer wrote: > > > "James A. Hillyerd" wrote: > > > If I do have to continue the shutdown/restart process, is > > > there any way of tuning PCGI so that it loads up faster? > > > > In the pcgi/Util directory, you'll find a killpcgi.py > > script. You could hack it to perform a restart, i.e. > > launch a new pcgi process after killing the old one. > > This would speed up your initial connect time and be > > much faster during debugging (multiple restarts). > > A simple way that works for me is, when debugging, have a normal cgi version postfixed with -c and use that. This brings me to another thing: the default zope distribution doesn't include ZCGI and friends, I assume because Zope users supposedly have no interest in normal cgi. I think it should be included anyway, so that Full Zope is a superset of Only ZP/ZT. That's more intuitive, and then you don't have to download both if you want to use both :) And ZCGI.py is only a small text file, after all. And perhaps zope users are interested in ZCGI after all, or does zope make assumptions about running persistently (can't see how it could, without violating http's statelessness). And as far as tuning pcgi: you could shorten pcgi_socket():delay or the 2 second sleep() at the end of pcgiStartProc(). The first one could probably be pretty safely shortened with the miniscule cost of a chance of a few extra connect() calls, but the second one should probably stay the same, although I'm not clear on its purpose (give time for the child to sort itself out?). Here's a random question: how come the win32 pcgiConnect uses CONNDELAY (defined in pcgi.h as 1), while the unix version says int delay=1; ? See, that's the problem with open source: all sorts of grubby randoms can go rooting through your code :) From jeffbauer@bigfoot.com Sun Mar 21 04:10:43 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 22:10:43 -0600 Subject: [Zope] Why do I have to reimport External Methods ? References: <199903210325.TAA36206@challenge.calarts.edu> Message-ID: <36F47143.814CF865@rubic.com> Quinn Dunkan wrote: > And as far as tuning pcgi: you could shorten pcgi_socket():delay > or the 2 second sleep() at the end of pcgiStartProc(). The first > one could probably be pretty safely shortened with the miniscule > cost of a chance of a few extra connect() calls, You may season to taste. The 2 second pause seemed safe enough on most tested systems, since we're flying blind. We've reserved an extra header byte to designate out-of-band data that could be much smarter about how to handle this, eventually. > but the second one should probably stay the same, although > I'm not clear on its purpose (give time for the child to > sort itself out?). I don't have the code here, but it's probably trying to avoid some problem that I encountered when it was missing . > Here's a random question: how come the win32 pcgiConnect uses > CONNDELAY (defined in pcgi.h as 1), while the unix version > says int delay=1; ? Probably historical flotsam. The win32 portion of pcgi is almost a completely separate product and only coexists with its Unix cousin by virtue of an overabundance of #ifdef clauses. I've mentioned this before, but it probably won't hurt to repeat. I don't think the win32 version of pcgi as the best solution for this sort of thing. It's mainly there to fill out a niche. Process launch is more expensive under Windows than Unix, so the Medusa/ZServer approach is probably more sensible in that environment, where good performance is desired. > See, that's the problem with open source: all sorts of grubby > randoms can go rooting through your code :) I don't consider that a problem. ;-) Best regards, Jeff Bauer Rubicon, Inc. From tsarna@endicor.com Sun Mar 21 21:17:56 1999 From: tsarna@endicor.com (Ty Sarna) Date: 21 Mar 1999 21:17:56 GMT Subject: [Zope] Calendar tag released Message-ID: <922051077.270607@zoo-of-death.endicor.com> People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From raver@box.dust.za.net Mon Mar 22 09:52:16 1999 From: raver@box.dust.za.net (Raver) Date: Mon, 22 Mar 1999 10:52:16 +0100 Subject: [Zope] Make site searchable Message-ID: <19990322105216.A461@box.dust.za.net> Hi! I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Help is much appreciated! Sture Lygren From wade@okaynetwork.com Mon Mar 22 13:44:22 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 08:44:22 -0500 Subject: [Zope] one 'document' in many 'folders' Message-ID: <199903221343.IAA17544@gem.lightlink.com> As a demonstration project to try and get a client to go with Zope, I'm converting a newsfeed database that I had originally built using Perl. The object of the game is to pull fresh articles from a Reuters server every two hours and put them in a bin. A human editor goes through the bin, culls and sorts the articles, edits where appropriate. One article may appear in more than one section of the site. For example, an article titled "Zope Is Cool" might appear in the Python, Web Development, and Open Source sections. Each section has its own contents page. This is where I get confused. My Perl application simply used the filesystem as a database, and generated three separate static copies of "Zope Is Cool", placing one in each of three directories: /python, /web_development, and /open_source. I suspect there are much better ways to do it in Zope, but how do I organize things? My naive idea is to make each article a Document, one of whose properties is a list (or dictionary) of categories in which it should be placed. Generating each section's contents page would then take some figuring out, and performance on doing the contents page would be a concern. If there's a better way, I'd certainly appreciate hearing about it. Signed, Confused a/k/a Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From sfranke@cdc-group.com Mon Mar 22 14:32:06 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 15:32:06 +0100 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Correct me if I'm wrong, but the only way I see to do this *inside* the Zope application is to keep all your articles inside one folder (pool) and have key documents in your tree structure which reference an article in the pool. I don't know if problems appear when you establish an acyclic directed graph structure in the object hierarchy itself (I asked the question myself months ago without an answer). I see no point why it shouldn't work, but it is not maintained by the application. An interesting fact is that your object's properties vary when accessed by different paths due to the acquisition structure. An object inside Zope's database (again, correct me, if...) doesn't know about its father. It only knows about its sons, the aq_parent path is constructed on each access. Would also like to hear more about this... Stefan > -----Ursprüngliche Nachricht----- > Von: Wade Leftwich [SMTP:wade@lightlink.com] > Gesendet am: Montag, 22. März 1999 13:44 > An: zope@zope.org > Betreff: [Zope] one 'document' in many 'folders' > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should > be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. > > Signed, > > Confused a/k/a > > > > > > Wade Leftwich > Okay Network Services, Ithaca NY > tel 607-277-1334 fax 607-272-3612 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Paul@digicool.com Mon Mar 22 14:49:14 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 22 Mar 1999 09:49:14 -0500 Subject: [Zope] Impact of Zope on hosting provider? Message-ID: <613145F79272D211914B0020AFF640190D9F2D@gandalf.digicool.com> Jim wrote: > I decided before signing up with a hosting server to wait for > Zope 2, which > I've seen a couple of references to. What's the deal on > that? One place > promised a better integrated web server. If Zope moves more > torward being a > totally self contained server, then I don't want to mess with > Apache or IIS. I expect ZServer, which is the better integrated package that you're talking about, to enter beta within the next three weeks. --Paul From petrilli@amber.org Mon Mar 22 14:44:11 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 09:44:11 -0500 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net>; from Raver on Mon, Mar 22, 1999 at 10:52:16AM +0100 References: <19990322105216.A461@box.dust.za.net> Message-ID: <19990322094411.A5636@amber.org> On Mon, Mar 22, 1999 at 10:52:16AM +0100, Raver wrote: > Hi! > > I'm working on an intranet site (using Zope). Now I need to make the site searchable. Tried using htdig, but without luck (should it work with zopesites?). Now I wonder - is there a builtin feature in zope that can fix my problem, or are there other programs like htdig that works with zope? Check out the FAQ on http://zdp.zope.org it has some information on how to use the built-in searching capabilities :-) It's not perfect, and needs lots more work, but it's a start. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From kid@kendermedia.com Mon Mar 22 15:05:07 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 10:05:07 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <001b01be7475$6665dd20$7c5addc7@kid> ----- Original Message ----- From: Wade Leftwich To: Sent: Monday, March 22, 1999 8:44 AM Subject: [Zope] one 'document' in many 'folders' > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. This application sounds similar to stuff that I (and others on this list are trying to accomplish). > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? My immediate term solution is to make multiple copies of the article in the ZDB. I agree that this is suboptimal. Paul@DC has mentioned that they are working on a "Catalog" feature that they would like to integrate with Zope. This feature will be *perfect* for this application (and many others). Unfortunately, I don't think this is on the very near term radar scope. Depending on how far out Catalog is, and when I manage to finish off the basic necessities for my sites, I was thinking of delving into Zope's btree stuff and trying to put together some kind of search interface. Right now, though, I've still got a bunch of work to do before I get to that point. Kevin From wade@okaynetwork.com Mon Mar 22 15:39:05 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Mon, 22 Mar 1999 10:39:05 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <199903221538.KAA22051@gem.lightlink.com> What a great mailing list! I posted my question, shovelled the driveway (Ithaca NY, 8" of heavy wet snow last night), had breakfast and an extra cup of coffee, then came back to my desk to find 2 good answers. Thanks Stefan and Kevin. Well, on the one hand I'm pleased to hear that my question wasn't trivial. But I'm disappointed to hear that my problem is difficult. I'm competing against Cold Fusion here, and the problem resolves itself pretty easily with linked tables. (At least until I actually try to write the code.) So maybe I should just co-opt the competition and use ZSQL? But the odb is so nice, I really want to make it work that way. I don't really need for the URLs to look like a directory structure: instead of /open_source/zopeiscool, it would be okay for the article URL to be /zopeiscool?section=open_source. But that still leaves the problem of generating a contents page for each section. I suppose I could have a script that periodically-or-on-demand walks through the articles and generates a fresh static contents page for each section. Seems kind of non-zopish, but that might be the best way to get decent rendering performance on the contents page anyway. (The site is very active.) >an acyclic directed graph structure in the object hierarchy itself Yow! The original question: > > -----Ursprüngliche Nachricht----- > > Von: Wade Leftwich [SMTP:wade@lightlink.com] > > Gesendet am: Montag, 22. März 1999 13:44 > > An: zope@zope.org > > Betreff: [Zope] one 'document' in many 'folders' > > > > As a demonstration project to try and get a client to go with Zope, I'm > > converting a newsfeed database that I had originally built using Perl. > > > > The object of the game is to pull fresh articles from a Reuters > > server every two hours and put them in a bin. A human editor goes > > through the bin, culls and sorts the articles, edits where > > appropriate. > > > > One article may appear in more than one section of the site. For > > example, an article titled "Zope Is Cool" might appear in the > > Python, Web Development, and Open Source sections. Each > > section has its own contents page. > > > > This is where I get confused. My Perl application simply used the > > filesystem as a database, and generated three separate static > > copies of "Zope Is Cool", placing one in each of three directories: > > /python, /web_development, and /open_source. I suspect there are much > > better ways to do it in Zope, but how do I organize things? > > > > My naive idea is to make each article a Document, one of whose > > properties is a list (or dictionary) of categories in which it should be > > placed. Generating each section's contents page would then take some > > figuring out, and performance on doing the contents page would be a > > concern. > > > > If there's a better way, I'd certainly appreciate hearing about it. > > > > Signed, > > > > Confused a/k/a > > > > > > > > > > > > Wade Leftwich > > Okay Network Services, Ithaca NY > > tel 607-277-1334 fax 607-272-3612 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From pavlos@gaaros.msrc.sunysb.edu Mon Mar 22 15:42:22 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Mon, 22 Mar 1999 10:42:22 -0500 (EST) Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221343.IAA17544@gem.lightlink.com> Message-ID: On Mon, 22 Mar 1999, Wade Leftwich wrote: > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I suggest you try out your idea first. It sounds simple and straightforward and performance won't be a problem unless you have too many entries (but I am only guessing). > placed. Generating each section's contents page would then take > some figuring out, Assuming you have a folder Entries and folders Python and Zope. An entry in the entries folder is a DTML doc with a lines property named sections containing the sections (folder names) where the given entry belongs to. In the root folder you have a DTML method like: (untested)

    contents:

    ... Do something (ie link to the entry or render the entry etc ... you can call this method from inside the index_html method in each section's folder. Pavlos From johanl@bahnhof.se Mon Mar 22 16:38:07 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 17:38:07 +0100 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <4.1.19990322173318.035daf00@mail.bahnhof.se> Pavlos wrote: >Assuming you have a folder Entries and folders Python and Zope. An entry >in the entries folder is a DTML doc with a lines property named sections >containing the sections (folder names) where the given entry belongs to. >In the root folder you have a DTML method like: (untested) This is great, I'm planning on doing exactly this myself. Roughly, if I don't want sluggish performance, what would the upper limit be in regard to number of articles? Are we talking hundreds of articles? Thousands? /J - Zope ultra-newbie ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:01:49 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:01:49 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <199903221538.KAA22051@gem.lightlink.com> Message-ID: <001601be7485$ad4671e0$7863efa1@bestweb.net> Sorry to post a commercial plug here, but it seems in stride with my post from this weekend to another question (Collector). Basically, Z Tables would be a pretty perfect fit (IMHO). I realize that you too realize that (sort of), because you suggested going the ZSQL route. Clearly, there are similarities. But, Z Tables has already been independently benchmarked as _kicking a**_ performance-wise, and is also more closely aligned with the gestalt that you indicated you liked about the object database. Just a thought (and a few bucks, of course :-). From TomJenkins@zentuit.com Mon Mar 22 17:03:00 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Mon, 22 Mar 1999 12:03:00 -0500 Subject: [Zope] MySQL LAST_INSERT_ID... In-Reply-To: References: <199903160420.XAA01117@mail.digiweb.com> Message-ID: <199903221706.MAA28840@mail.digiweb.com> Hi Phil, Sorry I didn't make things clear (maybe I'll update the list?). Yes I solved my problem and feel really dumb. I didn't realize that the traceback is in the error page as a comment. Once I found that out, I saw immediately that the arguments passed in had a couple of extra fields that I didn't use (the master and detail tables share some initial fields). I took them out of the sql statement and the form, but I didn't remove them from the argument list. (Just an FYI, the system allows you to add additional detail records, the first one is autogenerated from the master) > Hi Tom, > > I have been on vacation and can't tell whether you have solved your problem. > > If you are still having problems email me. I am doing exactly what you > want to do so I will dig through my code and send you some tested examples > if you like. > > Phil. > > >To followup my last post, I'm getting an exception when trying to use > >MySQL's "select LAST_INSERT_ID()" function: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From amos@aracnet.com Mon Mar 22 17:18:12 1999 From: amos@aracnet.com (Amos Latteier) Date: Mon, 22 Mar 1999 09:18:12 -0800 Subject: [Zope] Make site searchable In-Reply-To: <19990322105216.A461@box.dust.za.net> Message-ID: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> At 10:52 AM 3/22/99 +0100, Raver wrote: >I'm working on an intranet site (using Zope). Now I need to make the site >searchable. Tried using htdig, but without luck (should it work with zopesites?). Unless you do something tricky, I doubt you will be able to get normal search engines to work with a Zope site, since I belive that most search engines want to read HTML files from the filesystem for indexing. >Now I wonder - is there a builtin feature in zope that can fix my problem, or >are there other programs like htdig that works with zope? Right now there is a simple Find mechanism, but it isn't really a robust search facility. In addition, Zope now includes low-level Python packages for indexing. So the basic tools are there, but there isn't an easy to use, out of the box search engine in Zope. We're working on a much better solution to this problem. We're calling it Zope Cataloging, and it is currently built with ZTables. I believe that like ZTables, Zope Cataloging will eventually be free, and become a core part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( -Amos From M.Faassen@vet.uu.nl Mon Mar 22 17:29:08 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Mon, 22 Mar 1999 18:29:08 +0100 Subject: [Zope] one 'document' in many 'folders' References: <001601be7485$ad4671e0$7863efa1@bestweb.net> Message-ID: <36F67DE4.4890F29@pop.vet.uu.nl> Hadar Pedhazur wrote: > > Sorry to post a commercial plug here, but it seems in stride > with my post from this weekend to another question > (Collector). As long as it's you (i.e. important cause of Zope's open sourcing) posting commercial plugs on zope@zope.org, I doubt many people would mind. :) [ZTables] Although I'm still a complete ZTables newbie, I've seen ZTables come up repeatedly when there are similar design problems. This would indeed seem to indicate ZTables are a good fit. :) Regards, Martijn From johanl@bahnhof.se Mon Mar 22 17:34:14 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Mon, 22 Mar 1999 18:34:14 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <4.1.19990322182853.03607220@mail.bahnhof.se> Amos Latteier wrote: >>I'm working on an intranet site (using Zope). Now I need to make the site >>searchable. Tried using htdig, but without luck (should it work with >zopesites?). > >Unless you do something tricky, I doubt you will be able to get normal >search engines to work with a Zope site, since I belive that most search >engines want to read HTML files from the filesystem for indexing. [Apologies if this post is considered off-topic on this list] You might want to try Webinator, an outstanding search engine available at: http://www.thunderstone.com/webinator/ It's free to use for up to 10,000 documents. It works by fetching documents over HTTP (not your file system), so it should work with Zope. However, the free version requires an Internet connection to check with the license server, so it might be impractical for an intranet soluition without full Internet access. Hope That Helps, /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From hadar@verticality.com Mon Mar 22 17:46:34 1999 From: hadar@verticality.com (Hadar Pedhazur) Date: Mon, 22 Mar 1999 12:46:34 -0500 Subject: [Zope] one 'document' in many 'folders' In-Reply-To: <36F67DE4.4890F29@pop.vet.uu.nl> Message-ID: <001e01be748b$ed844f60$7863efa1@bestweb.net> Martijn Faassen wrote: > Although I'm still a complete ZTables newbie, > I've seen ZTables come up > repeatedly when there are similar design > problems. This would indeed > seem to indicate ZTables are a good fit. :) I agree :-). Of course, this is precisely why we intend to release it (eventually) as Open Source(tm). We truly feel that the community will benefit, so we will release it. In the meantime, we're swamped, and prioritizing workload based on hard currency makes for simple decisions... From sfranke@cdc-group.com Mon Mar 22 18:19:56 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Mon, 22 Mar 1999 19:19:56 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> I just thought a little more about the approach having a pool and some proxy objects that refer to the pool. I think it could be made quite neat when using just the following code for the proxies (DTML documents): So you just need to put zope_is_cool inside your pool and add DTML documents with the above code under the same id to your folder structure wherever you like. Just check it out. Two caveats: - You have to use DTML documents, not methods, otherwise id() refers to the folder's id - Make sure that zope_is_cool really exists inside your pool, or you get an infinite redirection! (zope_is_cool is not found in the pool and then sought for along the aquisiton path, which refers to zope_is_cool itself, which redirects to the pool which ...) Maybe this could be even generalized to some kind of "symbolic link" product. Ideas anyone? Stefan From kid@kendermedia.com Mon Mar 22 18:43:22 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Mon, 22 Mar 1999 13:43:22 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E8@gates.cdc-group.com> Message-ID: <001d01be7493$df67f820$7c5addc7@kid> ----- Original Message ----- From: Stefan Franke To: ; Sent: Monday, March 22, 1999 1:19 PM Subject: Re: [Zope] one 'document' in many 'folders' > I just thought a little more about the approach having a pool > and some proxy objects that refer to the pool. > > I think it could be made quite neat when using just the > following code for the proxies (DTML documents): > > An alternate solution could be something like for your "link" methods. I think this would take better advantage of acquisition. A document could pick up its headers and footers from the category, instead of the pool. It does seem like someone could create a "symlink" product pretty easily. Kevin From eq3pvl@eq.uc.pt Mon Mar 22 19:45:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Mon, 22 Mar 1999 19:45:09 +0000 Subject: [Zope] Trying to understand the Scheduler Message-ID: <36F69DC5.2FBB044@eq.uc.pt> Zope is great. It's so great that I guess I'm trying to use it for doing something different from what zope it's expected to do. I want to make some SQL scripts to access different databases and collect the data in a new table. That I can do with the following external method that calls see_data and put_data ZSQLMethods def get_data(self): result = self.see_data() self.put_data(value=result._data[0][1]) return None Then I wish to make this kind of data management automatic every hour. I dug in the sources and I found out the Scheduler class, which I think is what I need (is it?). But I'm having some trouble using it. This was the external method I tried (without success). def eventGetData(self): rev = RegularEvent(get_data,(),interval=60) self.schedule(rev) return(None) It seems that RegularEvent is not available. Besides, is schedule available trough acquisition in the folder? Can someone give me some light on this. I don't even know if it's possible to use the Scheduler with external methods so it would be great at least to know I'm in the right path. Thanks -- Pedro Vale Lima eq3pvl@eq.uc.pt From rocon@pivot.net Mon Mar 22 19:49:15 1999 From: rocon@pivot.net (Robert OConnor) Date: Mon, 22 Mar 1999 14:49:15 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases Message-ID: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Looking for some enlightenment: I understand that Ztables was formerly Tabula an object database. If one were starting from scratch without legacy data would it make sense to use an object database instead of a relational database? If so, is ZTables/Tabula a full, robust database system that can scale up and exceed the features of Oracle or SQLxxx databases? What are the pros/cons of Object vs Relational databases. Currently it appears that Ztables/Tabula is priced at $1,500 but eventually may become open source. From recent posts on the list *"Make site searchable" *"one 'document' in many 'folders'" It seems like Ztables would be an Ideal solution to these problems. ie, rather than the kludge of multiple copies of the SAME document, ONE copy in the database. Also, searching by key or full text would be possible. But for further enlightenment, can anyone point to good examples on the web of the use of ZTables/Tabula? woops, your request to has been denied! :-) -bobo connor From jim@digicool.com Mon Mar 22 19:53:24 1999 From: jim@digicool.com (Jim Fulton) Date: Mon, 22 Mar 1999 14:53:24 -0500 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> Message-ID: <36F69FB4.5787CB99@digicool.com> Do not try to understand the scheduler. It's not really implemented nor is it useful for anything at this time. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Mon Mar 22 20:01:53 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Mon, 22 Mar 1999 15:01:53 -0500 Subject: [Zope] ZTables (Tablula) and SQL databases In-Reply-To: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc>; from Robert OConnor on Mon, Mar 22, 1999 at 02:49:15PM -0500 References: <000a01be749d$3ceb65a0$0201a8c0@hawkeye.bob.oc> Message-ID: <19990322150153.C5814@amber.org> On Mon, Mar 22, 1999 at 02:49:15PM -0500, Robert OConnor wrote: > Looking for some enlightenment: > > I understand that Ztables was formerly Tabula an > object database. By nature anything named "tabula" wouldn't be a pure object database :-) OODB don't have tables, tables are a relational concept, and I believe ZTables is a relational database last I checked---b ut then I've never seen it either, but the implications by Jim/Paul/et. al. are that it is something along these lines. > If one were starting from scratch without legacy data > would it make sense to use an object database instead > of a relational database? Maybe, it all depends on your data, the interdependencies, and what kind of queries you run, how ad-hoc, and what level of reporting tools you need. OODB are mature, but their supporting structure (reporting tools, modeling tools, and more importantly Zen :-) are quite lacking in my opinion). > If so, is ZTables/Tabula a full, robust database > system that can scale up and exceed the > features of Oracle or SQLxxx databases? i doubt it, but then, Oracle/et al are not necessarily the right answer for all problem sets, it's not a one hammer fits all nails solution. > What are the pros/cons of Object vs > Relational databases. Dear gods, there's thousands of papers written on this topic ;-) References are faster in OODB, ad-hoc is easier in RDB, and there are a billion other blends... it's also necessasry to understand network databases in my mind before you approach OODB. You just can't generalize to this level, it's impossible, and a "quick" overview of OODB v. Relational would require about 30 pages :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From FVilla@GestaltTechnology.com Mon Mar 22 22:25:28 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Mon, 22 Mar 1999 17:25:28 -0500 Subject: [Zope] passings vars to sql method Message-ID: <36F6C357.1F277AE3@GestaltTechnology.com> Zopists, I run into a problem. I have a DTML Methos that call an SQL Method. The SQL method, displayTasks, has two parameters, userID and statusID. The DTML method does have access to the variables userID and statusID prior to calling the sql method with a tag. The DTML method looks like this:

    List of tasks:
    >
    THE SQL methos look like this: select * from task_schedule where task_schedule.userID = AND task_schedule.statusID = -------------------------------------------------- I basically can't run the query because it cannot get a value for userID or statusID. How do I pass these vars to the sql method from a dtml method??? Thanks in advance, Fredy Villa FVilla@GestaltTechnology.com From raver@box.dust.za.net Mon Mar 22 22:30:55 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Mon, 22 Mar 1999 23:30:55 +0100 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com>; from Amos Latteier on Mon, Mar 22, 1999 at 09:18:12AM -0800 References: <19990322105216.A461@box.dust.za.net> <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> Message-ID: <19990322233055.A314@RaVER.duck.org> On Mon, Mar 22, 1999 at 09:18:12AM -0800, Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > > >Now I wonder - is there a builtin feature in zope that can fix my problem, or > >are there other programs like htdig that works with zope? > > Right now there is a simple Find mechanism, but it isn't really a robust > search facility. In addition, Zope now includes low-level Python packages > for indexing. So the basic tools are there, but there isn't an easy to use, > out of the box search engine in Zope. > > We're working on a much better solution to this problem. We're calling it > Zope Cataloging, and it is currently built with ZTables. I believe that > like ZTables, Zope Cataloging will eventually be free, and become a core > part of Zope. Unfortunately, I do not have a timeline. Sorry. :-( > > -Amos > Sounds promising - hurry up will ya! :) > Sture From jbb@spyderlab.com Mon Mar 22 23:26:00 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 18:26:00 -0500 (EST) Subject: [Zope] passings vars to sql method In-Reply-To: <36F6C357.1F277AE3@GestaltTechnology.com> Message-ID: On Mon, 22 Mar 1999, Fredy Villa wrote: > Zopists, > > I run into a problem. I have a DTML Methos that call an SQL Method. > The SQL method, displayTasks, has two parameters, userID and statusID. > > The DTML method does have access to the variables userID and statusID > prior to calling the sql method with a tag. > > The DTML method looks like this: > > -------------------------------------------------- > I basically can't run the query because it cannot get a value for userID > or statusID. > How do I pass these vars to the sql method from a dtml method??? Freddy, did you make the variables you are passing to your SQL method parameters of the SQL method? If not they won't be looked up in the request, they will only be searched via acquisition. This is described in the Z SQL guide where it shows the order of lookup for SQL method parameters. Have fun! > Thanks in advance, > > Fredy Villa > FVilla@GestaltTechnology.com ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From vanandel@ucar.edu Tue Mar 23 01:30:13 1999 From: vanandel@ucar.edu (Joe Van Andel) Date: Mon, 22 Mar 1999 18:30:13 -0700 Subject: [Zope] sort order for tree display? Message-ID: <199903230130.SAA00571@stout.atd.ucar.edu> I'm still experimenting with ZOPE and the FAQ tool, which uses the 'tree' display widget. When I add a category or a FAQ entry, these items seem to appear in reverse order of the order I added them. The FAQ widget index_html DTML contains the line: On what basis are the categories sorted? By name of the object's folder? Is there anyway to get the entries sorted in the order they were entered? Thanks much! Joe VanAndel Internet: vanandel@ucar.edu National Center for http://www.atd.ucar.edu/~vanandel/home.html Atmospheric Research From webmaster@mtear.com Mon Mar 22 23:48:45 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:48:45 -0500 Subject: [Zope] Re: Zope digest, Vol 1 #185 - 21 msgs References: <199903222000.MAA18778@zope.codeit.com> Message-ID: <36F6D6DD.D270C58E@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From webmaster@mtear.com Mon Mar 22 23:52:03 1999 From: webmaster@mtear.com (Jason Spisak) Date: Mon, 22 Mar 1999 18:52:03 -0500 Subject: [Zope] Re: Calendar tag References: <199903222000.MAA18778@zope.codeit.com> <36F6D6DD.D270C58E@mtear.com> Message-ID: <36F6D7A3.819ED7E2@mtear.com> Ty: Again, the usefullness of your code is only outweighed by your generousity. I'm trying to get a personal schedular for my people, and I didn't want to go outside of Zope(since they are using that for thier everyday needs). And here you are with your Calendar tag. Thanks! Oh, I am reading your source to gleen how to implement the persistance of appointments, any hints? Jason Spisak webmaster@mtear.com Message: 1 From: tsarna@endicor.com (Ty Sarna) Subject: [Zope] Calendar tag released Date: 21 Mar 1999 21:17:56 GMT Organization: Endicor Technologies, Inc., San Antonio, Texas To: zope@zope.org People have been asking for my Calendar tag product, so I've uploaded a beta version to the contributed software page. With the DateTime class fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations sometimes cause botches like repeated days). Have fun, and let me know what you think. When I get a chance I'll probably add a Year mode and polish up the documentation and call it 1.0. From jarvis.sd082@ex.tel.co.jp Tue Mar 23 03:44:35 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 12:44:35 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Hi all! I'm having a problem with running queries containing long numbers. I found in db.py that the data type NUMBER is converted to an integer which overflows in my case. The errors: Error, oci.error: (1455, 'ORA-01455: converting column overflows integer datatype\012') Traceback (innermost last): File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish (Info: /queries/wisdom/customer-Line/manage_test) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test (Object: CopySource) File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ (Object: CopySource) File db.py, line 198, in query File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, in fetchmany File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, in fetchone File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, in _error oci.error: (see above) I tried changing line 219 in query() in db.py: from if scale==0: type='i' to if scale==0: type='f' in order to force a float type, but this has no effect, it seems. I'm sure that I'm misunderstanding something here. Any pointers to where I can look to fix this would be greatly appreciated. TIA, John Jarvis Tokyo Electron FE, Ltd. From jbb@spyderlab.com Tue Mar 23 04:21:47 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Mon, 22 Mar 1999 23:21:47 -0500 (EST) Subject: [Zope] ZOracleDA and long numbers In-Reply-To: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') Without having yet looked at the source(*) could this be an error occuring in Oracle itself? I just noticed the ORA-* which is typically an Oracle error message. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com (*) - BEWARE :) From jarvis.sd082@ex.tel.co.jp Tue Mar 23 04:49:03 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Tue, 23 Mar 1999 13:49:03 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723EAA461@telisnt1020.is.tel.co.jp> I have no problems with other applications as long as I stick with floats. Notably, Zope on Windows running through ODBC has no problems--the values are all converted to python L types. (Hey! maybe I should take a look at the ODBC code...) This is what originally led me to believe that the problem wasn't with Oracle, but within the OCI interface to Zope. I also thought that it also might have something to do with my Linux install, but SQL*Net doesn't have problems and Zope works wonderfully except for long numbers. Environment info: Zope 1.10.2 ZOracleDA 2.0.0 RedHat Linux 5.2 Oracle Net8 Client Apache > -----Original Message----- > From: Jordan B. Baker [SMTP:jbb@spyderlab.com] > Sent: Tuesday, March 23, 1999 1:22 PM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. > > ------- > Jordan B. Baker -- jbb@spyderlab.com > weaving the web @ http://www.spyderlab.com > (*) - BEWARE :) > From MHammond@skippinet.com.au Tue Mar 23 07:24:35 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 18:24:35 +1100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <004c01be74fe$35088aa0$0801a8c0@bobcat> Ive started playing with DocTemplate for a project, but I will be using it sans Zope. I hope this is still the appropriate place... I want DocTemplate to expose an object model, and it seems perfect for the task. However, Im having trouble using "." expressions. Code speaks louder than words, so my code is: ## class Spam: def eggs(self): return "Eggs" spam=Spam() from DocumentTemplate import * ss=HTML('Eggs are ') print ss(spam=spam) ss=String('Eggs are %(spam.eggs)s') print ss(spam=spam) ## What Im hoping to do should be quite obvious - I want to refer to "spam.eggs" in the DTML. With the HTML example, #var expr="spam.eggs()" is the best I can get. It seems ugly to me, and I feel there must be a better way. Using the String example, I can't make _anything_ work. Any I missing something? Is there something I can do so that String('Eggs are %(spam.eggs)s') does what I want? Please CC me - Im not on the list (but did peruse the archives before mailing...) Thanks, Mark. From raver@pc-125.andoy.vgs.no Tue Mar 23 11:25:04 1999 From: raver@pc-125.andoy.vgs.no (Sture Lygren) Date: Tue, 23 Mar 1999 12:25:04 +0100 (CET) Subject: [Zope] #tree - trouble Message-ID: Hi! How come this code (from within index_html) doesn't show files and folders within my folder? ( ) doesn't work either) This is using Zope 1.10.2 on linux (2.0.35) All I get is a blank screen - how come?? From Paul@digicool.com Tue Mar 23 11:54:23 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 06:54:23 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Mark wrote: > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) Here's an alternative that works: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) and a second choice: from DocumentTemplate import HTML class Spam: def eggs(self): return "Eggs" ss = HTML('Eggs are .') s=Spam() print s.ss(s) --Paul From MHammond@skippinet.com.au Tue Mar 23 12:00:11 1999 From: MHammond@skippinet.com.au (Mark Hammond) Date: Tue, 23 Mar 1999 23:00:11 +1100 Subject: [Zope] Questions about DocumentTemplate. In-Reply-To: <613145F79272D211914B0020AFF6401907BB89@gandalf.digicool.com> Message-ID: <005001be7524$b4a29960$0801a8c0@bobcat> > Here's an alternative that works: Thanks for the response. My problem is that I want a deep object model. I want the user to be able to say "spam.eggs" or "pantry.eggs" etc. Just using eggs wont do - I really need it qualified. The solution I came up with was: class DotWrapper: def __init__(self, ob): self._obj_ = ob def __getattr__(self, attr): bits = string.split(attr, '.') ob = getattr(self._obj_, bits[0]) for bit in bits[1:]: ob = getattr(ob, bit) return ob Then: s=Spam() print s.ss(DotWrapper(s)) does pretty-much the right thing... Thanks, Mark. From sfranke@cdc-group.com Tue Mar 23 12:40:24 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 13:40:24 +0100 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <01E40461E003D21195CC0080296495D80B12E9@gates.cdc-group.com> Mark Hammond wrote: >The solution I came up with was: > > class DotWrapper: > def __init__(self, ob): > self._obj_ = ob > def __getattr__(self, attr): > bits = string.split(attr, '.') > ob = getattr(self._obj_, bits[0]) > for bit in bits[1:]: > ob = getattr(ob, bit) > return ob Small caveat: Since whitespaces could occur in an nested attrbute access ("a. b .x") , it's better to string them first. An alternative approach for DotWrapper's __getattr__ could be (not tested): def __getattr__(self, attr): bits = map (string.strip, string.split(attr, '.')) return reduce (getattr, bits, self._obj) Stefan From wade@okaynetwork.com Tue Mar 23 12:46:33 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Tue, 23 Mar 1999 07:46:33 -0500 Subject: [Zope] Make site searchable In-Reply-To: <3.0.5.32.19990322091812.01178e60@mail.aracnet.com> References: <19990322105216.A461@box.dust.za.net> Message-ID: <199903231245.HAA17730@gem.lightlink.com> At Mon, 22 Mar 1999 09:18:12 -0800 Amos Latteier wrote: > At 10:52 AM 3/22/99 +0100, Raver wrote: > > >I'm working on an intranet site (using Zope). Now I need to make the site > >searchable. Tried using htdig, but without luck (should it work with > zopesites?). > > Unless you do something tricky, I doubt you will be able to get normal > search engines to work with a Zope site, since I belive that most search > engines want to read HTML files from the filesystem for indexing. > If your search engine works via http it should work OK with Zope. Thunderstone Webinator (thunderstone.com) does this, and there's a free version that I think will do up to 10,000 docs. (The commercial version costs $700.) There's a command-line switch that tells Webinator to go ahead & index URLs that include /cgi- bin/. -- Wade Leftwich (satisfied Thunderstone customer). Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Tue Mar 23 13:35:38 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 08:35:38 -0500 Subject: [Zope] Newbie install help needed !!!!! Message-ID: <613145F79272D211914B0020AFF6401907BB91@gandalf.digicool.com> Thomas wrote: > Thus far my attempts to install the Zope binary release on a Linux > machine have been for nothing. The Install documentation and > the Install > program contradict each other at almost every turn. We'll look at overhauling the install documentation for the next release. In the meantime, could you provide more examples of how it can be improved beyond the -u confusion? --Paul From michel@digicool.com Tue Mar 23 14:17:15 1999 From: michel@digicool.com (Michel Pelletier) Date: Tue, 23 Mar 1999 09:17:15 -0500 Subject: [Zope] RE: Install Zope on Web Host? Message-ID: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> > -----Original Message----- > From: Jeff Rawlins [mailto:penweb@olypen.com] > Sent: Tuesday, March 23, 1999 8:08 AM > To: support@digicool.com > Subject: Install Zope on Web Host? > > > I can't seem to find on your site whether Zope can be > installed on a web > hosting acct. or must be installed directly on your own server. > Thanks, > Jeff Rawlins > Jeff, I have cc'ed your question to the list, not to defer it, but to let you pick the brains of several people who have tried, some successful, some not, to run zope as a user in a web hosting environment. None of us here have tried it so we're not really the ones to ask. It is true there is no documentation on Zope with web hosting, perhaps your discussion will provide information for the Zope Documentation Project, AKA the Martijn Conspiracy. As I understand it, the web hosting provider you pick is key to the whole issue. If they run the kind of environment that works with Zope, great. If they don't (and most probably don't by default) you must communicate to them clearly what you want. If they are cooperative and cool, they will oblige you and join our Zope hosting family. If you can't get ahold of them and/or they don't care, your out of luck unless you go with a Zope friendly provider of which there are two to be found here.: http://www.zope.org/Community/ZHP -Michel From TomJenkins@zentuit.com Tue Mar 23 14:34:47 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 09:34:47 -0500 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <199903231437.JAA27247@mail.digiweb.com> Hey Sture, Check to see if your index_html is a DTML Document. DTML Document has its own namespace and doesn't use the folder's. If you change DTML Document to a DTML Method then you'll pick up the folder's files and folders. > Hi! > > How come this code (from within index_html) doesn't show files and folders > within my folder? > > > > > > ( ) doesn't work either) > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl? "python" is more likely to pass unharmed through your spelling checker than "perl". An unknown poster and Fredrik Lundh, 11 Sep 1998 From kid@kendermedia.com Tue Mar 23 14:51:23 1999 From: kid@kendermedia.com (Kevin Dangoor) Date: Tue, 23 Mar 1999 09:51:23 -0500 Subject: [Zope] RE: Install Zope on Web Host? References: <613145F79272D211914B0020AFF6401907BB9D@gandalf.digicool.com> Message-ID: <002301be753c$9fd86880$7c5addc7@kid> > > -----Original Message----- > > From: Jeff Rawlins [mailto:penweb@olypen.com] > > Sent: Tuesday, March 23, 1999 8:08 AM > > To: support@digicool.com > > Subject: Install Zope on Web Host? > > > > > > I can't seem to find on your site whether Zope can be > > installed on a web > > hosting acct. or must be installed directly on your own server. > > Thanks, > > Jeff Rawlins > > My experience has been that if the hosting company is running Apache (many do) and if they have mod_rewrite installed (which is probably also pretty common), it is not *too* difficult to get Zope running in that environment. However, many hosting companies have policies against creating long running processes. Zope takes up a few MB of memory, which is considerably more than an instance of Apache... so many providers are not keen on that kind of thing. Before putting effort into trying to make Zope work in their environment, you'll probably want to ask them if they are willing to let you run a process that will hang out in memory all the time. CodeIt (one of the Zope hosting companies, http://www.codeit.com) will actually host Zope for you. You don't need to deal with building and configuring the package at all. Kevin From jim@digicool.com Tue Mar 23 15:00:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:00:23 -0500 Subject: [Zope] ZOracleDA and long numbers References: <8174B1EE3D2CD21180960000F8056723EAA420@telisnt1020.is.tel.co.jp> Message-ID: <36F7AC87.B2D8C96D@digicool.com> TFE MMS JARVIS JOHN wrote: > > Hi all! > > I'm having a problem with running queries containing long numbers. > I found in db.py that the data type NUMBER is converted to an > integer which overflows in my case. > > The errors: > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > datatype\012') > > Traceback (innermost last): > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in publish_module > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > (Info: /queries/wisdom/customer-Line/manage_test) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > (Object: CopySource) > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > (Object: CopySource) > File db.py, line 198, in query > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 317, > in fetchmany > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 279, > in fetchone > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line 75, > in _error > oci.error: (see above) > > I tried changing line 219 in query() in db.py: > from > if scale==0: type='i' > to > if scale==0: type='f' > > in order to force a float type, but this has no effect, it seems. This typr only affects meta-data seen by some Zope tools. > I'm sure that I'm misunderstanding something here. Nope, you aren't. > Any pointers to where I can look to fix this would be greatly > appreciated. There is a similar change that needs to be made to *work around* this problem. In DCOracle/ociCurs.py, change: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None to: elif dbtype==2: # Number if scale or 1: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'i') dbtype=3 dbsize=4 f=None This has the undesirable effect of causing all numbers to be treated as ints. (This is what oracledb does) :( Unfortunately, you can't tell from Oracle column meta data whether values in a column will fit into Python ints. The right way to fix this is to implement Oracle's NUMBER or VARNUM C data types and convert to Python ints or longs on a case by case basis. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:01:21 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:01:21 -0500 Subject: [Zope] ZOracleDA and long numbers References: Message-ID: <36F7ACC1.3D31C5A9@digicool.com> "Jordan B. Baker" wrote: > > On Tue, 23 Mar 1999, TFE MMS JARVIS JOHN wrote: > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > Without having yet looked at the source(*) could this be an error > occuring in Oracle itself? > > I just noticed the ORA-* which is typically an Oracle error message. Right, but in this case, it's because DCOracle bound a buffer that was too small to hold the values. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mark@interwalk.com Tue Mar 23 15:01:06 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 23 Mar 1999 07:01:06 -0800 Subject: [Zope] Re: Calendar tag Message-ID: <36F7ACB2.F29C21C4@interwalk.com> Again thanks for the Calendar tag. I just ran across a php3 application that might influence you/others. It is http://screwdriver.net/twig/ The demo show you a live application and is quite cool Mark <36f6d7a3.819ed7e-@mtear.com> wrote: Original Article: http://www.egroups.com/list/zope/?start=3428 > Ty: > > Again, the usefullness of your code is only outweighed by your > generousity. > I'm trying to get a personal schedular for my people, and I didn't want > to go outside of Zope(since they are using that for thier everyday > needs). And here you are with your Calendar tag. Thanks! > > Oh, I am reading your source to gleen how to implement the persistance > of appointments, any hints? > > Jason Spisak > webmaster@mtear.com > > > Message: 1 > From: tsarna@endicor.com (Ty Sarna) > Subject: [Zope] Calendar tag released > Date: 21 Mar 1999 21:17:56 GMT > Organization: Endicor Technologies, Inc., San Antonio, Texas > To: zope@zope.org > > People have been asking for my Calendar tag product, so I've uploaded a > beta version to the contributed software page. With the DateTime class > fixed in zope 1.10.x, it should be stable (in 1.9, misccalculations > sometimes cause botches like repeated days). > > Have fun, and let me know what you think. When I get a chance I'll > probably add a Year mode and polish up the documentation and call it > 1.0. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From Brian@digicool.com Tue Mar 23 15:15:45 1999 From: Brian@digicool.com (Brian Lloyd) Date: Tue, 23 Mar 1999 10:15:45 -0500 Subject: [Zope] Questions about DocumentTemplate. Message-ID: <613145F79272D211914B0020AFF64019FDA8@gandalf.digicool.com> Hi Mark. I've cc'ed this to the zope list, since others may find this useful. > I want DocTemplate to expose an object model, and it seems > perfect for the task. However, Im having trouble using "." > expressions. > > Code speaks louder than words, so my code is: > ## > class Spam: > def eggs(self): > return "Eggs" > > spam=Spam() > > from DocumentTemplate import * > ss=HTML('Eggs are ') > print ss(spam=spam) > > ss=String('Eggs are %(spam.eggs)s') > print ss(spam=spam) > ## > > What Im hoping to do should be quite obvious - I want to refer to > "spam.eggs" in the DTML. > > With the HTML example, #var expr="spam.eggs()" is the best I can > get. It seems ugly to me, and I feel there must be a better way. The is a perfectly valid way to do it. Another way would be to use the "with" tag: Neither is really "more correct" than the other, though the with construct is probably cleaner in situations where you use many services of the object: > Using the String example, I can't make _anything_ work. > > Any I missing something? Is there something I can do so that > String('Eggs are %(spam.eggs)s') does what I want? Hmm - it appears that the expr support is currently broken for the python string format syntax. We'll take a look at that. You can, however, also use the with construct here too: ss=String('eggs are %(with spam)[ %(eggs)s %(with)]') Just in case you hadn't found them already, the latest DTML manuals are on the zope site at: http://www.zope.org/Documentation/Guides/DTML. They contain some examples that try to demonstrate common DTML idioms. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From mj@antraciet.nl Tue Mar 23 15:04:39 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Tue, 23 Mar 1999 16:04:39 +0100 Subject: [Zope] #tree - trouble In-Reply-To: Message-ID: <4.1.19990323153904.00a78f00@mail.atmm.nl> At 12:25 23-3-99 , Sture Lygren wrote: >Hi! > >How come this code (from within index_html) doesn't show files and folders >within my folder? > > > > > >( ) doesn't work either) > >This is using Zope 1.10.2 on linux (2.0.35) > First, you should use branches_expr, instead of branches. And second, it depends on what type of DTML object you have this code in. Is this code in a DTML Method or a DTML Document? If it is a Document, you'll have to specify the Folder you want the tree to start at:: -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From jim@digicool.com Tue Mar 23 15:08:38 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:08:38 -0500 Subject: [Zope] one 'document' in many 'folders' References: <199903221343.IAA17544@gem.lightlink.com> Message-ID: <36F7AE76.6431EA6E@digicool.com> Wade Leftwich wrote: > > As a demonstration project to try and get a client to go with Zope, > I'm converting a newsfeed database that I had originally built using > Perl. > > The object of the game is to pull fresh articles from a Reuters > server every two hours and put them in a bin. A human editor goes > through the bin, culls and sorts the articles, edits where > appropriate. > > One article may appear in more than one section of the site. For > example, an article titled "Zope Is Cool" might appear in the > Python, Web Development, and Open Source sections. Each > section has its own contents page. > > This is where I get confused. My Perl application simply used the > filesystem as a database, and generated three separate static > copies of "Zope Is Cool", placing one in each of three directories: > /python, /web_development, and /open_source. I suspect there are > much better ways to do it in Zope, but how do I organize things? > > My naive idea is to make each article a Document, one of whose > properties is a list (or dictionary) of categories in which it should be > placed. Generating each section's contents page would then take > some figuring out, and performance on doing the contents page > would be a concern. > > If there's a better way, I'd certainly appreciate hearing about it. I think that your approach would work and have the drawbacks you suggest. You could try it and see if performance is actually a problem. Here are some other ideas. First, you can put an object in many folders without creating multiple copies. You can't do this from DTML, but you *can* do it from Python, and therefore, from an external method. This may be the simplest approach. Second, you could come up with some sort of document management system, based on clever indexing machinery, like ZTables or on relational databases. As someone else mentioned, Zope cataloging with use ZTables to provide collections with advanced searching and organizaing features. This is still a work in progress, however. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 15:17:23 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 10:17:23 -0500 Subject: [Zope] AW: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12E6@gates.cdc-group.com> Message-ID: <36F7B083.BD54E19C@digicool.com> Stefan Franke wrote: > > Correct me if I'm wrong, but the only way I see to do this *inside* > the Zope application is to keep all your articles inside one folder > (pool) and have key documents in your tree structure which > reference an article in the pool. You're wrong. ;) There are a numnber of ways to solve this. I suspect the simplest is to simply put the same object in multiple folders. (BTW, this is essentially the same thing as using Unix hard links.) > I don't know if problems appear when you establish an acyclic > directed graph structure in the object hierarchy itself (I asked > the question myself months ago without an answer). Sorry you didn't get an answer. There is no problem with creating acyclic or cyclic graph constructors in the, uh, object hierarchy, which BTW, need not be a hierarchy. :) > I see no point why it shouldn't work, but it is not maintained > by the application. > > An interesting fact is that your object's properties vary when > accessed by different paths due to the acquisition structure. > An object inside Zope's database (again, correct me, if...) > doesn't know about its father. It only knows about its sons, > the aq_parent path is constructed on each access. Yes, exactly. In fact, a better name for aq_parent might be aq_context. > Would also like to hear more about this... Like what? :) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phd@sun.med.ru Tue Mar 23 15:31:22 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:31:22 +0300 (MSK) Subject: [Zope] Database connections Message-ID: Hello! I've finished large project using pure CGI concept (I used Neale's html.py). Now I (and my boss) are thinking of switching to Zope, or at least ZTemplates. While playing with Zope and SQL (I am using Postgres, hence ZPygres Database Adapter), I found that Zope, when loaded into memory by Zope.cgi (I am using Apache, and need to use in the future) opens a database connection for every Folder where I created Connection object. It is bad, as I have many databases, so Zope eats up memory. Another problem - what would do Zope if I restart Postgres (so all current connections break)? Would Zope reestablish connections or just report error? How could I limit number of connections Zope opens? How could I define a timeout, after which Zope close a connection if there is no activity between Zope and Postgres? and reestablish connection when application ask for SQL data? With ZTemplates and CGI all these questions has one easy (but not so nice) answer - there is no constant connection, a connection established on every CGI invocation. PS. BTW, I wrote short introduction to Zope in Russian: http://sun.med.ru/~phd/Russian/Zope/ Any Russian here to verify my understanding of Zope? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From TomJenkins@zentuit.com Tue Mar 23 15:34:50 1999 From: TomJenkins@zentuit.com (Tom Jenkins) Date: Tue, 23 Mar 1999 10:34:50 -0500 Subject: [Zope] Database connections In-Reply-To: Message-ID: <199903231537.KAA21461@mail.digiweb.com> > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. As I understand it, you should just create one Connection object in your root folder. Then all the folders underneath the root folder have access to that same Connection object. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tom Jenkins DevIS (http://www.devis.com) Linux & Samba 2.0 : The best Windows file server http://www.zdnet.com/sr/stories/issue/0,4537,2196106,00.html "Do not be overcome by evil, but overcome evil with good." Romans 12:21 From Paul@digicool.com Tue Mar 23 15:48:49 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 10:48:49 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Oleg writes: > I've finished large project using pure CGI concept (I used Neale's > html.py). Now I (and my boss) are thinking of switching to Zope, or at > least ZTemplates. > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > Database Adapter), I found that Zope, when loaded into memory > by Zope.cgi > (I am using Apache, and need to use in the future) opens a database > connection for every Folder where I created Connection object. Ahh, no need. Just put one Database Connection object in the top folder and all the subfolders will "acquire" it. That is, any SQL Method defined lower down can use it. > It is bad, as I have many databases, so Zope eats up > memory. Another > problem - what would do Zope if I restart Postgres (so all current > connections break)? Would Zope reestablish connections or just report > error? It should re-establish the connection. If it doesn't then there's a bug. This works fine with all the Database Adapters I've used. > How could I limit number of connections Zope opens? How could I There is one connection per Database Connection object. > define a timeout, after which Zope close a connection if there is no Hmm, this is quite a hard thing to do, unfortunately. > activity between Zope and Postgres? and reestablish connection when > application ask for SQL data? > > With ZTemplates and CGI all these questions has one easy > (but not so > nice) answer - there is no constant connection, a connection > established on > every CGI invocation. Of course this means the CPU gets a tremendous beating on every request and the response time goes down. > PS. BTW, I wrote short introduction to Zope in Russian: > http://sun.med.ru/~phd/Russian/Zope/ > Any Russian here to verify my understanding of Zope? Mind if I add a blurb to the Zope News about it? --Paul From phd@sun.med.ru Tue Mar 23 15:45:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 18:45:55 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > > While playing with Zope and SQL (I am using Postgres, hence ZPygres > > Database Adapter), I found that Zope, when loaded into memory > > by Zope.cgi > > (I am using Apache, and need to use in the future) opens a database > > connection for every Folder where I created Connection object. > > Ahh, no need. Just put one Database Connection object in the top folder > and all the subfolders will "acquire" it. That is, any SQL Method > defined lower down can use it. There are connections to different databases. So you said "one connection to one database"? > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I'll retest, but currently, when I ask ZPygresDA to close connection, Zope reports "the site has technical difficulties" when I'm trying to access the application. > > define a timeout, after which Zope close a connection if there is no > Hmm, this is quite a hard thing to do, unfortunately. Bad news. :( > > PS. BTW, I wrote short introduction to Zope in Russian: > > http://sun.med.ru/~phd/Russian/Zope/ > > Any Russian here to verify my understanding of Zope? > > Mind if I add a blurb to the Zope News about it? It's Ok. I am not sure about correctness. And it is definetely far from complete. I'll continue working on it. > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Tue Mar 23 15:50:19 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 16:50:19 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Jim Fulton wrote: > Sorry you didn't get an answer. There is no problem with creating > acyclic or cyclic graph constructors in the, uh, object hierarchy, > which BTW, need not be a hierarchy. :) Not too long ago I experimented a little with cyclic structures inside Zope's database. One thing I noticed was, that the copy support failed with tracebacks like this: Traceback (innermost last): File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 877, in publish_module File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, line 590, in publish (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 176, in manage_pasteObjects (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line 361, in _getCopy (Object: Navigation) File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line 327, in export_file File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line 958, in exportoid ExportError: Object 184337 references itself This led me to the conclusion to better leave my hands off non-hierarchic data structures which differ from those created by the management interface itself. >> Would also like to hear more about this... > Like what? :) More or less simple answers like "this is ok and this is not", or "you can store any complex Python data structure inside the DB, but in conjunction with the management interface, you get the following drawbacks.." I'm still a quite unclear about the object management in the database itself and the management layer Zope adds. But maybe I just have to read the docs harder ;-) Stefan > From Paul@digicool.com Tue Mar 23 16:02:17 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 11:02:17 -0500 Subject: [Zope] Database connections Message-ID: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Oleg wrote: > There are connections to different databases. So you said "one > connection to one database"? If you can use one connection string in Postgres to access multiple databases, then you just need one Database Connection. Otherwise, you'll need one connection per database. Note that I don't mean per table -- I don't know much about Postgres and don't know if it organizes tables into separate databases that are selected with a "use database" command. > > > It is bad, as I have many databases, so Zope eats up > > > memory. Another > > > problem - what would do Zope if I restart Postgres (so all current > > > connections break)? Would Zope reestablish connections or > just report > > > error? > > > > It should re-establish the connection. If it doesn't then there's a > > bug. This works fine with all the Database Adapters I've used. > > I'll retest, but currently, when I ask ZPygresDA to close > connection, > Zope reports "the site has technical difficulties" when I'm trying to > access the application. Right, which is the correct behavior, as you had disconnected from the database. I thought your question was about restarting _Zope_, so I had a misunderstanding. I don't know anything about the Postgres client library and whether it can reconnect to a server when the server is shutdown. This definately isn't a Zope issue though -- the client should handle it. --Paul From phd@sun.med.ru Tue Mar 23 16:07:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:07:42 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: On Tue, 23 Mar 1999, Paul Everitt wrote: > Oleg wrote: > > There are connections to different databases. So you said "one > > connection to one database"? > > If you can use one connection string in Postgres to access multiple > databases, then you just need one Database Connection. Otherwise, No. Connection string include database name, so I need one connection for every database. > you'll need one connection per database. Note that I don't mean per > table -- I don't know much about Postgres and don't know if it organizes > tables into separate databases that are selected with a "use database" > command. Yes, I see. > > > > It is bad, as I have many databases, so Zope eats up > > > > memory. Another > > > > problem - what would do Zope if I restart Postgres (so all current > > > > connections break)? Would Zope reestablish connections or > > just report > > > > error? > > > > > > It should re-establish the connection. If it doesn't then there's a > > > bug. This works fine with all the Database Adapters I've used. > > > > I'll retest, but currently, when I ask ZPygresDA to close > > connection, > > Zope reports "the site has technical difficulties" when I'm trying to > > access the application. > > Right, which is the correct behavior, as you had disconnected from the > database. I thought your question was about restarting _Zope_, so I had > a misunderstanding. I meant 3 different situations: 1. I started Potsgres, then started Zope, then restarted Zope - Zope reestablished connections. It's Ok. 2. I started Potsgres, then started Zope, then restarted Postgres. Zope does not reestablish connections: This site is currently experiencing technical difficulties... 3. I started Potsgres, then started Zope, then went to management screen and explicitly close a connection. Zope does not reestablish connections. Situations 2 an3 could be resolved, if I go to management screes, close and reopen database connections. But it is hard to remember "always restart Zope if you restart Postgres"... > --Paul > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jim@digicool.com Tue Mar 23 16:15:59 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 11:15:59 -0500 Subject: [Zope] one 'document' in many 'folders' References: <01E40461E003D21195CC0080296495D80B12EC@gates.cdc-group.com> Message-ID: <36F7BE3F.CDBF011F@digicool.com> Stefan Franke wrote: > > Jim Fulton wrote: > > Sorry you didn't get an answer. There is no problem with > creating > > acyclic or cyclic graph constructors in the, uh, object > hierarchy, > > which BTW, need not be a hierarchy. :) > > Not too long ago I experimented a little with cyclic structures > inside Zope's database. One thing I noticed was, that the copy > support failed with tracebacks like this: > > Traceback (innermost last): > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 877, in publish_module > File D:\Programme\zope\koelnzope\lib\python\ZPublisher\Publish.py, > line 590, in publish > (Info: /BLS/1000/ADV-Angelegenheiten/manage_pasteObjects) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 176, in manage_pasteObjects > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\OFS\CopySupport.py, line > 361, in _getCopy > (Object: Navigation) > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\PickleJar.py, line > 327, in export_file > File D:\Programme\zope\koelnzope\lib\python\BoboPOS\SimpleDB.py, line > 958, in exportoid > ExportError: Object 184337 references itself > > This led me to the conclusion to better leave my hands > off non-hierarchic data structures which differ from those > created by the management interface itself. I'll admit that cyclic data structures are pretty rare, so handling them may not be totally correct in every case. Export of objects partcipating in cycles is potentially, uh, confusing, unless the cycles are with objects that are totally contained within the object being exported, although containment is pretty hard to check. I should probably take this error check out. > >> Would also like to hear more about this... > > Like what? :) > > More or less simple answers like "this is ok and this > is not", OK, but I need to know what "this" is. I don't think you want me to enumerate all possible "this"s. ;) > or "you can store any complex Python data > structure inside the DB, You can store any complex Python data in the DB subject to: - It must be picklable, - It must follow the persistence rules: - Root objects must be "persistent" meaning they subclass BoboPOS.Persistent (or implement an undocumented interface that BoboPOS.Persistent implements, sigh) - Subobjects of persistent objects must be "persistent" or they must be immutable, or be used immutably, as in: def add_member(self, member): members=self.members # Oops, mutated a list members.append(member) # OK, so pretend it's new and readd it self.members=members > but in conjunction with the > management interface, you get the following drawbacks.." Basically, the objects need to implement certain interfaces if they want to play in the management system. If they don't want to play, they have alot of freedom. We need to do a much better job of documenting these interfaces. > I'm still a quite unclear about the object management > in the database itself The object management at the database level tries to be as transparent as possible. The wish is that you don't have to think about it. Basically, if you follow the rules above, you should be OK. Probably the biggest pitfall in the database is the inability to get to database objects when their classes can no longer be imported, because classes or modules have been moved or deleted or because errors have been introducted into the module source. We need to figure out ways to make these problems easier to diagnose. > and the management layer Zope adds. > But maybe I just have to read the docs harder ;-) Maybe you just need to read my mind better. ;) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From petrilli@amber.org Tue Mar 23 16:21:22 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:21:22 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:07:42PM +0300 References: <613145F79272D211914B0020AFF640190D9F51@gandalf.digicool.com> Message-ID: <19990323112122.G8268@amber.org> On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > reestablished connections. It's Ok. Ok, so we don't have a problem here :-) > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > does not reestablish connections: This site is currently experiencing > technical difficulties... I agree that if a remote cause forces a database connection to close, it should attempt to re-open it... that should be optional of-course, but should be the default. > 3. I started Potsgres, then started Zope, then went to management screen > and explicitly close a connection. Zope does not reestablish connections. Nope, you closed the connection, you have to open it. This I agree is the appropriate way to behave. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From phd@sun.med.ru Tue Mar 23 16:34:12 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Tue, 23 Mar 1999 19:34:12 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323112122.G8268@amber.org> Message-ID: On Tue, 23 Mar 1999, Christopher Petrilli wrote: > On Tue, Mar 23, 1999 at 07:07:42PM +0300, Oleg Broytmann wrote: > > > > 1. I started Potsgres, then started Zope, then restarted Zope - Zope > > reestablished connections. It's Ok. > > Ok, so we don't have a problem here :-) Good news! :))) > > 2. I started Potsgres, then started Zope, then restarted Postgres. Zope > > does not reestablish connections: This site is currently experiencing > > technical difficulties... > > I agree that if a remote cause forces a database connection to close, it > should attempt to re-open it... that should be optional of-course, but > should be the default. Yes, I think Zope must reopen connection. > > 3. I started Potsgres, then started Zope, then went to management screen > > and explicitly close a connection. Zope does not reestablish connections. > > Nope, you closed the connection, you have to open it. This I agree is > the appropriate way to behave. May be... Well, what about such situation: 4. I started Potsgres, then started Zope, then worked with my application and Postgres failed (postgres fails sometimes). Postgres returned an error and closed connection. Zope, I think, should reopen the connection back, but will it? > Chris > -- > | Christopher Petrilli ``Television is bubble-gum for > | petrilli@amber.org the mind.''-Frank Lloyd Wright Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From petrilli@amber.org Tue Mar 23 16:40:04 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 11:40:04 -0500 Subject: [Zope] Database connections In-Reply-To: ; from Oleg Broytmann on Tue, Mar 23, 1999 at 07:34:12PM +0300 References: <19990323112122.G8268@amber.org> Message-ID: <19990323114004.J8268@amber.org> On Tue, Mar 23, 1999 at 07:34:12PM +0300, Oleg Broytmann wrote: > > > > I agree that if a remote cause forces a database connection to close, it > > should attempt to re-open it... that should be optional of-course, but > > should be the default. > > Yes, I think Zope must reopen connection. Well, actually it should be the job of the DA, not Zope. It's not spelled out in a standard anywhere, which probably should be solved. More documentation probably :/ But hey, someone's gotta know what the DA is really supposed to do, other than looking at an existing one. > Well, what about such situation: > > 4. I started Potsgres, then started Zope, then worked with my application > and Postgres failed (postgres fails sometimes). Postgres returned an error > and closed connection. Zope, I think, should reopen the connection back, > but will it? Don't honestly know if it WILL, but it seems reasonable that it should be capable of trying at the very least. Again, this is the responsibility fo the DA, not Zope... that should be made clear. You're using a 3rd party DA, so you might want to talk to them about it as well. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From sfranke@cdc-group.com Tue Mar 23 17:10:39 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Tue, 23 Mar 1999 18:10:39 +0100 Subject: [Zope] one 'document' in many 'folders' Message-ID: <01E40461E003D21195CC0080296495D80B12ED@gates.cdc-group.com> [Pleased of having caught Jim Fulton in verbose mode 8-] > You can store any complex Python data in the DB subject to: [...] > - Subobjects of persistent objects must be "persistent" or > they must be immutable, or be used immutably, as in: So class Persistent's __setattr__ is basically also the level that transaction and undo support work on? Can I expect the undo support to work if I take care of the persistence rules, regardless of cyclic and acyclic structures? Propably about time to switch to Zope-dev... Stefan From reedstrm@rice.edu Tue Mar 23 18:05:48 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 12:05:48 -0600 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> Message-ID: <36F7D7FC.4E0D66A8@rice.edu> Jim Fulton wrote: > > Do not try to understand the scheduler. It's not really implemented > nor is it useful for anything at this time. > > Jim > Pedro - If you need to do periodic tasks, the wisdom of the list says go with a cron job script attaching to your Zopesite via the ZClient interfaces (caveat: I know nothing about this - just repeating what I've read here) Anyone know were to look for info on this elusive ZClient stuff? To quote Paul Everitt : >As mentioned later, Zope has a simple RPC mechanism -- it's called HTTP! > >ZClient is a package in Zope that automates this. It makes it >convenient to connect to Zope and communicate with it from a scripting, >non-interactive environment. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From petrilli@amber.org Tue Mar 23 18:26:46 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 23 Mar 1999 13:26:46 -0500 Subject: [Zope] Trying to understand the Scheduler In-Reply-To: <36F7D7FC.4E0D66A8@rice.edu>; from Ross J. Reedstrom on Tue, Mar 23, 1999 at 12:05:48PM -0600 References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <19990323132646.N8268@amber.org> On Tue, Mar 23, 1999 at 12:05:48PM -0600, Ross J. Reedstrom wrote: > Jim Fulton wrote: > > > > Do not try to understand the scheduler. It's not really implemented > > nor is it useful for anything at this time. > > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? Read the source luke :-) Actually here's where to find the basics of what you're interested in... .../lib/python/ZPublisher/Client.py This should probably go into the FAQ in the ZDP PDQ ;-) I remember seeing a few examples of it, for the the life of me, I can't find them! Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From raver@box.dust.za.net Tue Mar 23 18:46:09 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:46:09 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <4.1.19990323153904.00a78f00@mail.atmm.nl>; from Martijn Pieters on Tue, Mar 23, 1999 at 04:04:39PM +0100 References: <4.1.19990323153904.00a78f00@mail.atmm.nl> Message-ID: <19990323194609.A251@RaVER.duck.org> On Tue, Mar 23, 1999 at 04:04:39PM +0100, Martijn Pieters wrote: > At 12:25 23-3-99 , Sture Lygren wrote: > >Hi! > > > >How come this code (from within index_html) doesn't show files and folders > >within my folder? > > > > > > > > > > > >( ) doesn't work either) > > > >This is using Zope 1.10.2 on linux (2.0.35) > > > First, you should use branches_expr, instead of branches. And second, it > depends on what type of DTML object you have this code in. Is this code in > a DTML Method or a DTML Document? If it is a Document, you'll have to > specify the Folder you want the tree to start at:: > > > > > Got it working - thanks a lot!!! > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Sture Lygren From raver@box.dust.za.net Tue Mar 23 18:48:03 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 19:48:03 +0100 Subject: [Zope] #tree - trouble In-Reply-To: <199903231437.JAA27247@mail.digiweb.com>; from Tom Jenkins on Tue, Mar 23, 1999 at 09:34:47AM -0500 References: <199903231437.JAA27247@mail.digiweb.com> Message-ID: <19990323194803.B251@RaVER.duck.org> On Tue, Mar 23, 1999 at 09:34:47AM -0500, Tom Jenkins wrote: > Hey Sture, > Check to see if your index_html is a DTML Document. DTML > Document has its own namespace and doesn't use the folder's. > > If you change DTML Document to a DTML Method then you'll pick up > the folder's files and folders. That did the trick - thanks! >> > Hi! > > > How come this code (from within index_html) doesn't show files and folders > > within my folder? > > > > > > > > > > > > ( ) doesn't work either) > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Tom Jenkins DevIS (http://www.devis.com) > Can the denizens of this group enlighten me about what the > advantages of Python are, versus Perl? "python" is more likely > to pass unharmed through your spelling checker than "perl". > An unknown poster and Fredrik Lundh, 11 Sep 1998 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From raver@box.dust.za.net Tue Mar 23 19:01:53 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 20:01:53 +0100 Subject: [Zope] Using database-connection from external methods Message-ID: <19990323200153.C251@RaVER.duck.org> Hi! This will hopefulle be my last questions in a while... Is there some way I can reach/use ZMySQL connection method from within an external method? Rephrase - I have a connection established within Zope - I want to call an external method that handles some sql-queries - is this possible, or should I still have the external method handle it's own connection? Can external methods set/send back variables to the calling document/method? Another question while I'm at it - is the DateTime module in 1.10.2 broke in some way? (I get an error if I try to make a new property with the date type set) Help is much appreciated Sture Lygren From jim@digicool.com Tue Mar 23 19:23:07 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:23:07 -0500 Subject: [Zope] ZClient example (was Re: [Zope] Trying to understand the Scheduler) References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EA1B.E2E2CA71@digicool.com> "Ross J. Reedstrom" wrote: > (snip) > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? (snip) The next release of Zope will have a 'utilities' directory in the distribution that has a load_site.py utility that demonstrates use of ZClient (aka ZPublisher.Client). If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From eq3pvl@eq.uc.pt Tue Mar 23 19:31:09 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Tue, 23 Mar 1999 19:31:09 +0000 Subject: [Zope] Trying to understand the Scheduler References: <36F69DC5.2FBB044@eq.uc.pt> <36F69FB4.5787CB99@digicool.com> <36F7D7FC.4E0D66A8@rice.edu> Message-ID: <36F7EBFD.892835C2@eq.uc.pt> "Ross J. Reedstrom" wrote: > Pedro - > If you need to do periodic tasks, the wisdom of the list says go with a > cron job script attaching to your Zopesite via the ZClient interfaces > (caveat: I know nothing about this - just repeating what I've read here) > Anyone know were to look for info on this elusive ZClient stuff? > After reading Jim's mail I turned myself to the cron. I had already written a simple script to http-call a DTMLDocument that calls my external method. It works, but now that you told me about ZClient I see I could have saved some time with just a single command ZClient.py [-u username:password] url [name=value ...] Thanks guys pedro --- Pedro Vale Lima eq3pvl@eq.uc.pt From jae@kavi.com Tue Mar 23 19:30:08 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:30:08 -0800 (PST) Subject: [Zope] Database connections In-Reply-To: Message-ID: On Tue, 23 Mar 1999, Oleg Broytmann wrote: > On Tue, 23 Mar 1999, Paul Everitt wrote: > > Oleg wrote: > > > There are connections to different databases. So you said "one > > > connection to one database"? > > > > If you can use one connection string in Postgres to access multiple > > databases, then you just need one Database Connection. Otherwise, > > No. Connection string include database name, so I need one connection > for every database. Connection strings for MySQL also require you to include the database, but you can still change databases at runtime via the 'use ' command. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From jim@digicool.com Tue Mar 23 19:44:09 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 14:44:09 -0500 Subject: [Zope] Zope Database in XML Message-ID: <36F7EF09.6AD34A99@digicool.com> A side project of mine is to allow conversion to and from Zope databases (and export files) and XML. This will allow people to more easily access their data without Zope and correct problems, such as moved or renamed software modules, that prevent data from being unpicklable. I've completed a first cut at a tool for converting a Zope database to XML format. It is provided in the file 'bbb.py' in a 'utilities' directory that will be included in the distribution directory of the next Zope release. If you want to get this now, you can get it via Zope public CVS access. See http://www.zope.org/Community/Services/CVS_public_access for details. To run the tool, use: python utilities/bbb.py -rxml var/Data.bbb For now, the tool provides a way to "get at" your data without Zope and get a bit more of an idea of how Zope organizes data in the database. The file uses a module 'ppml.py' (Python pickle markup language :) that must by in the same directory as bbb.py or in the Python path. ppml.py provides for conversion from Python pickles to XML. It will eventually provide conversion from XML to Python pickles. Comments from members of the XML SIG (those who happen to spend time here too) would be welcome. I haven't written a formal DTD for this XML format. I would like to use a standard Python XML pickle format, but I'm not sure if such a thing exists yet. I took the approach of conversion to and from Python pickle format for two reasons: - It allows me to do conversion to and from database format without actually creating any (application objects). This is much faster than creating actual objects and does not require that any application Python modules needed to unpickle objects be around or working. For example, this allows conversion of objects that are not unpicklable. - It means that many of the implementation details of pickling can be avoided. Of course, in combination with the Python pickle modules, pickling objects to XML is straightforward: import pickle, ppml print ppml.ToXMLloads(pickle.dumps(myobject)) Enjoy. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 19:43:42 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 11:43:42 -0800 (PST) Subject: [Zope] Using database-connection from external methods In-Reply-To: <19990323200153.C251@RaVER.duck.org> Message-ID: On Tue, 23 Mar 1999 raver@box.dust.za.net wrote: > Is there some way I can reach/use ZMySQL connection method from within an > external method? Rephrase - I have a connection established within Zope - I > want to call an external method that handles some sql-queries - is this > possible, or should I still have the external method handle it's own > connection? Just have your external method call ZSQLMethods. For instance, I have an external method which allows the user to upload a file to the database. The external method reads the file, parses it, and calls a ZSQLMethod to update the database. To do this, assuming your ZSQLMethod is in the acquisition heirarchy, simply call it like you would any other method. If you have a ZSQLMethod called 'insert_client', which takes the arguments 'name, company, email', just call it... self.insert_client(name=client_name,company=company_name,email=client_email) > Can external methods set/send back variables to the calling document/method? External methods can modify the current REQUEST object that the DTML uses from name resolution. If you are calling the external method from within the DTML, just use 'self.REQUEST' to access the current REQUEST object. Just create/set items on it like it was a dictionary... sekf.REQUEST['new_key'] = new_value --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:19:10 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:19:10 -0500 (EST) Subject: [Zope] Zope Database in XML In-Reply-To: <36F7EF09.6AD34A99@digicool.com> Message-ID: On Tue, 23 Mar 1999, Jim Fulton wrote: [Jim announcing a long awaited and exciting new product] > > The file uses a module 'ppml.py' (Python > pickle markup language :) that must by in the I could not find ppml.py in the CVS tree. Pavlos From tpatrick@IndigoNetworks.com Tue Mar 23 20:23:13 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 14:23:13 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> If you can access the database directly through this interface(xml/pickle), couldn't you *potentially* map a network drive to the interface(cifs/nfs). This could allow you to render data in and out of the database through the file system interface rather than ftp/http. Just a thought! Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com From pavlos@gaaros.msrc.sunysb.edu Tue Mar 23 20:25:27 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Tue, 23 Mar 1999 15:25:27 -0500 (EST) Subject: [Zope] Using database-connection from external methods In-Reply-To: Message-ID: On Tue, 23 Mar 1999, John Eikenberry wrote: > > > Can external methods set/send back variables to the calling document/method? > > External methods can modify the current REQUEST object that the DTML uses > from name resolution. If you are calling the external method from within > the DTML, just use 'self.REQUEST' to access the current REQUEST object. > Just create/set items on it like it was a dictionary... > > sekf.REQUEST['new_key'] = new_value > Alternatively your external method can return objects to the calling DTML. for an external method spammethod you could do omething like: class A: pass def spammethod(self,n): a=[] for i in range(n): tmp=A() tmp.no=i a.append(tmp) return a Then in your DTML you can do something like Pavlos From jim@digicool.com Tue Mar 23 20:29:08 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:29:08 -0500 Subject: [Zope] Zope Database in XML References: Message-ID: <36F7F994.33440542@digicool.com> Pavlos Christoforou wrote: > > On Tue, 23 Mar 1999, Jim Fulton wrote: > > [Jim announcing a long awaited and exciting new product] > > > > > The file uses a module 'ppml.py' (Python > > pickle markup language :) that must by in the > > I could not find ppml.py in the CVS tree. Ugh. I thought I had checked it in, but I handn't. I just checked it in. Try a cvs update. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jim@digicool.com Tue Mar 23 20:39:04 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 15:39:04 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C6@IGOPDC01> Message-ID: <36F7FBE8.522F2DE7@digicool.com> Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From jae@kavi.com Tue Mar 23 20:50:07 1999 From: jae@kavi.com (John Eikenberry) Date: Tue, 23 Mar 1999 12:50:07 -0800 (PST) Subject: [Zope] ZSQL direct traveral question In-Reply-To: Message-ID: On Thu, 18 Mar 1999, John Eikenberry wrote: > Still doesn't address my original problem thought. I still can't get > access to any of the results of the 'mem/2' query anywhere other than > directly after it (on the url). > > Ie. > > http://zope.kavi.com/mem/2/comp_admin/contacts/index_html > > Doesn't work, but... > > http://zope.kavi.com/mem/2/test_html > > Does... > > I'm still digging through the ZSQL code looking for a way to fix this. > I'll let everyone know once I've figured it out. Ok, I figured out a way to hack around this limitation of traversing an ZSQLMethod. I whipped up a simple 'pluggable brain' for the ZSQLMethod in question... --------------------------------------------------- from Acquisition import Implicit from Record import Record class req_store_brain(Implicit): """ stores info from sql query in REQUEST """ def __init__(self): new = {} for key in self.__record_schema__.keys(): new[key] = getattr(self,key) self.aq_parent.REQUEST.other.update(new) ---------------------------------------------------- This simply sticks the results of the ZSQLMethod in the REQUEST object. Everything in the heirarchy after this has access to the queries results. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From tpatrick@IndigoNetworks.com Tue Mar 23 21:13:57 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 15:13:57 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> What I am referring to is rendering objects in the ZOPE database to a file system view. The object database could be managed as a Network Drive(except that the view would be data in the ZOPE object database). You could through some translation (xml or other) render the object database to CIFS/NFS. 1. Run applications directly from the ZOPE file system. 2. Modify and Render objects through a regular file explorer or file manager potentially an external text editor or file editor(word,excel,other). 3. Objects that had no meaning to the file system view would not be rendered. Attributes to file properties. This is a feature of 8i that oracle is pushing. The rendering of a database to a user that does not realize it is a database. ie. 1. Open a spreadsheet in the Network Drive and see a current version of a file and its data. 2. Intranet is now a shared drive - depending on your privileges - you see different objects. I guess what I am asking is: Can Zope act like a CIFS/NFS file system(virtual file system) with a layer of translation for converting Zope Objects to File system objects directly (XML or other)? If I understand it, this is how the database is rendering objects to HTTP or now(Zserver)FTP. Why can't you render them as a Network file system? Any thought? -----Original Message----- From: Jim Fulton [mailto:jim@digicool.com] Sent: Tuesday, March 23, 1999 2:39 PM To: Theodore Patrick Cc: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > If you can access the database directly through this interface(xml/pickle), > couldn't you *potentially* map a network drive to the interface(cifs/nfs). > This could allow you to render data in and out of the database through the > file system interface rather than ftp/http. I'm not sure what you are getting at here. You can export and import data to a file system now, using the Zope database format, which is built on Python's pickle format. The XML conversion feature just gets the data into a slightly more editable form. One key difference between http/ftp and the file system is that Zope trusts the file system much more and is willing to get pickles (binary, XML, whatever) from it. This is a sort of a security feature. In the future, I'd like to make a variation on the Python pickler that was easier to configure to be pickier and safer to use with network supplied pickles. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From neves@inf.puc-rio.br Tue Mar 23 21:31:53 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Tue, 23 Mar 1999 18:31:53 -0300 Subject: [Zope] MySQL loosing connection (Was: [Zope] Database connections) References: <613145F79272D211914B0020AFF640190D9F4E@gandalf.digicool.com> Message-ID: <36F80849.B7ECF04E@inf.puc-rio.br> Paul Everitt wrote: > > It is bad, as I have many databases, so Zope eats up > > memory. Another > > problem - what would do Zope if I restart Postgres (so all current > > connections break)? Would Zope reestablish connections or just report > > error? > > It should re-establish the connection. If it doesn't then there's a > bug. This works fine with all the Database Adapters I've used. I've just hit something similar in the mysql client. The mysql client has a time-out to close the connection with the server. I'm using it in a test environment where it isn't accessed frequently. The connection is automatically closed and I have to manually close and open the database connection. Has anyone already fixed it? Excuse me if it has already been asked in the list, but the egroups site isn't working. regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From reedstrm@rice.edu Tue Mar 23 21:57:29 1999 From: reedstrm@rice.edu (Ross J. Reedstrom) Date: Tue, 23 Mar 1999 15:57:29 -0600 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F80E49.66166207@rice.edu> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 From jim@digicool.com Tue Mar 23 22:07:44 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 23 Mar 1999 17:07:44 -0500 Subject: [Zope] Zope Database in XML References: <57D47461794DD211825300A0C9D17EF906C8C8@IGOPDC01> Message-ID: <36F810B0.95EA78A6@digicool.com> Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > 1. Run applications directly from the ZOPE file system. > 2. Modify and Render objects through a regular file explorer or file manager > potentially an external text editor or file editor(word,excel,other). > 3. Objects that had no meaning to the file system view would not be > rendered. Attributes to file properties. > > This is a feature of 8i that oracle is pushing. The rendering of a database > to a user that does not realize it is a database. > > ie. > 1. Open a spreadsheet in the Network Drive and see a current version of a > file and its data. > 2. Intranet is now a shared drive - depending on your privileges - you see > different objects. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > > If I understand it, this is how the database is rendering objects to HTTP or > now(Zserver)FTP. Why can't you render them as a Network file system? > > Any thought? Ah. I think that this is one of the things that WebDAV is going to accomplish. For example, IE5 can create an thing that looks like that looks like a Windows explorer on a Zope folder. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From raver@box.dust.za.net Tue Mar 23 22:32:13 1999 From: raver@box.dust.za.net (raver@box.dust.za.net) Date: Tue, 23 Mar 1999 23:32:13 +0100 Subject: [Zope] Using database-connection from external methods In-Reply-To: ; from John Eikenberry on Tue, Mar 23, 1999 at 11:43:42AM -0800 References: <19990323200153.C251@RaVER.duck.org> Message-ID: <19990323233213.A237@RaVER.duck.org> Got it working! Thanks all!! U have been most helpful. From tpatrick@IndigoNetworks.com Wed Mar 24 00:25:43 1999 From: tpatrick@IndigoNetworks.com (Theodore Patrick) Date: Tue, 23 Mar 1999 18:25:43 -0600 Subject: [Zope] Zope Database in XML Message-ID: <57D47461794DD211825300A0C9D17EF906C8CB@IGOPDC01> Ahhhh.... Oracle's approach to this is an add-on to 8i called IFS(Internet File System). It renders a database to http(woo...woo, Zope does this in its native functionality). Although, they are working on a renderer for native file systems. This would enable object methods for making files on the fly. As Zope already accomplishes this(rendering objects), thus presenting the view of the oo database is thus a filter. HTTP,FTP,CIFS,NFS,POP,IMAP all are protocols that speak the requesting clients language. Make Zope the engine and supply a framework in Zserver to plug in the server renderer. Samba is a great example. It renders between file systems quite well, although it is rather a tough and complex animal and very specialized. Although it would work along the same lines. Actually, there is a PERL module to simulate file systems already. It could be good start. Considering that most file viewing on Windows is moving to HTML, the Network Drive is looking more and more like a simple security login with a connection that is persistent, rather than actually mapping the drive. A distributed (native-CIFS/NFS) file system would change the industry. Actually it already has (http) through a browser window. I am wondering when it will occur as seamlessly as not having to be in a browser. If an ORB existed that could render data to the requesting protocol, it would be a great product, I think ZOPE could do this through the ZServer architecture. The Server in this case is the renderer, the ORB is the fulfillment component and the OO Database is the storage mechanism. The protocol plug-in is stored in Zserver and renders the appropriate view of the data. PROTOCOL | SERVER | ORB | OO DATABASE | HTTP | ZSERVER | --- ZOPE --- | Client dependencies FTP | ZSERVER | --- ZOPE --- | Applications designed to be client/server!!! IMAP | ZSERVER | --- ZOPE --- | POP | ZSERVER | --- ZOPE --- | CIFS | ZSERVER | --- ZOPE --- | No Client dependencies - Native Applications NFS | ZSERVER | --- ZOPE --- | CLIENT/SERVER functionality yet no dependencies! OS support is the dependency! If the rendering engine were modular, ZOPE would always be first in delivering support for new protocols and client functionality(DAV Support!!!), without changing the structure of the underlying database. The data exchange between the ZSERVER AND ZOPE would have to be managed. "You wouldn't want to serve a POP client an Excel file unless it is an attachment just as you wouldn't want to render a query to a FILE SYSTEM accept ones that have been designated as OK." Get It? It would save the world a little time and effort if one system could render data to a diverse set of clients. Rather than making a new server every time a new client arrives. I could simply build a layer of translation(XML) for a client and BINGO! New client/server. At the Native OS level this has the most power. Rendering live data into an Excel file on the fly is a real world application that would be a huge hit right now. "I want this months sales report... open Sales.xls BINGO!!! The data is there." I would really like to edit html in Dreamweaver as I regularly do and have it render into Zope. If you had file system level support every known application could be stored inside of Zope or have access to the data inside of ZOPE. Here is the interesting one: If you can have direct file access you could: Open a client application out of an oo database that rendered a view of the database back at you. (Sounds awfully like an OS!!!) Just Thoughts..... Theodore E. Patrick email: tpatrick@indigonetworks.com phone: 615-777-0070 ext.125 Indigo Networks - The Ultimate Choice In Who Sees You. http://www.indigonetworks.com -----Original Message----- From: Ross J. Reedstrom [mailto:reedstrm@rice.edu] Sent: Tuesday, March 23, 1999 3:57 PM To: Zope Mailing List Subject: Re: [Zope] Zope Database in XML Theodore Patrick wrote: > > What I am referring to is rendering objects in the ZOPE database to a file > system view. The object database could be managed as a Network Drive(except > that the view would be data in the ZOPE object database). You could through > some translation (xml or other) render the object database to CIFS/NFS. > > I guess what I am asking is: Can Zope act like a CIFS/NFS file > system(virtual file system) with a layer of translation for converting Zope > Objects to File system objects directly (XML or other)? > You seem to be asking for a hybrid of Zope and Samba ;-) Seriously, we have Samba, so one answer would be a filesystem driver for the undelying OS that talks to the Zope server to get its information. This could be re-exported as a samba share, or NFS or AFS or Coda or what-have-you. I've been musing about it for linux for a little bit - I'm going to try and convince one of the bright sparks around here to take a crack at it. For NT hosted Zope, you'd need to write an equivalent filesystem driver - apparently the the SDK for that is ~$1000. Oh, and parts of this are already present in the ZServer - it talks FTP, and there was some discussion of exposing object properties as virtual docs of some sort. Check the list archives. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005 _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From bjs@crc.com Wed Mar 24 00:30:30 1999 From: bjs@crc.com (Bryan J. Smith) Date: Tue, 23 Mar 1999 19:30:30 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... Message-ID: <199903240030.TAA14192@mail.lsg.crc.com> [Project Idea] Looking ahead to the future of Linux ... [ I am on the Digest list, so send responses directly if you expect an immediate response. ] Although I am a new user, I am quickly growing very fond of Zope. Quite amazing, multiplatform and all. The option to use either the built-in DB or an external one, the built-in web server or an external one. My entire company is thinking of standardizing on Zope since we run Solaris, Linux and NT (along with a few, rogue *BSD variants) on our server-end. Little and big internal projects aside, I was wondering if Zope could possibly fill a gap that will come about with Linux shortly. That gap is software distribution at the enterprise server to client level. Linux (and many other OpenSource software and systems) is winning in the server arena, but the corporate desktop world is staying with NT and the consumer world is staying 95/98. While the third will take awhile, the corporate desktop is something that is attainable in the next few years (with all the Windows 2000 issues which I do not want to get into). Microsoft has SMS for NT and even Apple has a better system for MacOS X Server. What does Linux have? First off, most Linux distributions have RPM. While the format is the same, the filesystem and other distribution or installation-specific configuration may differ. Quite possibly, a Zope-based distributed management system could be built to serve this purpose. I guess my main question is if anyone else is trying to forge such a project togther. E.g., does the Caldera Open Administriative System (COAS) plan to solve such software distribution issues? If not, do any others? If not, I'd say it is a BIG DEAL to get such a project underway. And Zope may be the perfect fit for the back-end (hence, why I am posting this to this list instead of a my local LUG). Just an idea. Please feel free to pick it apart (short of calling me an idiot, well maybe you should anyway :-). I am still learning Python at this stage (big-time Perl advocate, but Python is definately better for web-apps). -- Bryan Bryan J. Smith mailto:b.j.smith@ieee.org,bjs@crc.com Software Engineer http://www.SmithConcepts.com/legal.html ============================================================== How can you say your operating system (OS) is enterprise- scalable when you run a competing operating system for your mail services (Solaris for Hotmail), sport the absolute worst uptimes for application services versus all other OSes (con- tinuous crashes under heavy loads), and have just now, finally started an 64-bit port let alone it is a completely incompa- tible fork from your existing 32-bit API? From Paul@digicool.com Wed Mar 24 02:30:37 1999 From: Paul@digicool.com (Paul Everitt) Date: Tue, 23 Mar 1999 21:30:37 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Bryan wrote: > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. > That gap is > software distribution at the enterprise server to client level. The field of online software distribution is certainly hot. Marimba, the original Java darling, has reinvented themselves in this field: http://www.marimba.com/products/products.htm They are playing, though, in a pretty complicated mission-critical kind of field. The requirements are pretty daunting. > Linux (and many other OpenSource software and systems) is > winning in the > server arena, but the corporate desktop world is staying with > NT and the > consumer world is staying 95/98. While the third will take > awhile, the > corporate desktop is something that is attainable in the next > few years > (with all the Windows 2000 issues which I do not want to get into). > Microsoft has SMS for NT and even Apple has a better system > for MacOS X > Server. What does Linux have? > > First off, most Linux distributions have RPM. While the > format is the same, > the filesystem and other distribution or > installation-specific configuration > may differ. Quite possibly, a Zope-based distributed > management system > could be built to serve this purpose. One thing I've seen that's pretty interesting in a low-tech kind of way is rpmfind from rufus.w3.org from a repository. > I guess my main question is if anyone else is trying to forge > such a project > togther. E.g., does the Caldera Open Administriative System > (COAS) plan to > solve such software distribution issues? If not, do any > others? If not, > I'd say it is a BIG DEAL to get such a project underway. And > Zope may be > the perfect fit for the back-end (hence, why I am posting > this to this list > instead of a my local LUG). It's certainly a big deal in that it is an enormous initiative. Take some time to jot down what you think the business goals and the requirements of such a project might be and recruit some volunteers! > Just an idea. Please feel free to pick it apart (short of > calling me an > idiot, well maybe you should anyway :-). I am still learning > Python at this > stage (big-time Perl advocate, but Python is definately better for > web-apps). Oh you certainly say all the right things. --Paul From jbb@spyderlab.com Wed Mar 24 04:14:36 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:14:36 -0500 (EST) Subject: [Zope] handling exceptions in DTML Message-ID: Beyond writing an ExternalMethod, is there a good way to catch exceptions? For example, I have a database application that looks pretty ugly if someone attempts to add a duplicate key to the database. Ideally, I'd use a tag to trap exceptions and to provide handlers for them. Anyone have any thoughts on this? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From jbb@spyderlab.com Wed Mar 24 04:23:11 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Tue, 23 Mar 1999 23:23:11 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: Message-ID: Hmm, I found a reference to this in the Collector as something that has been planned. Is anyone working on patches to address this in the near future? I'd be willing to take a stab at it myself if not. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From julian@zereau.net Wed Mar 24 09:01:37 1999 From: julian@zereau.net (julian@zereau.net) Date: Wed, 24 Mar 1999 09:01:37 -0000 (GMT) Subject: [Zope] quoting in python Message-ID: I need to be able to use the var tag's capabilities to neatly quote URL metacharacters, but I need to do it within an expr="foo" mini python snippet. This is so that I can quote individual included variables into a query string I am building. Is there any way to do this? --- Julian Morrison Programmer (Zereau Ltd) From jarvis.sd082@ex.tel.co.jp Wed Mar 24 10:40:44 1999 From: jarvis.sd082@ex.tel.co.jp (TFE MMS JARVIS JOHN) Date: Wed, 24 Mar 1999 19:40:44 +0900 Subject: [Zope] ZOracleDA and long numbers Message-ID: <8174B1EE3D2CD21180960000F8056723FCC3CE@telisnt1020.is.tel.co.jp> Thanks for the pointer! I have to retract what I said in a previous post about not having a problem with the ZODBCDA--it has the same problem. I had made a small hack of a product for my own study that connected through ODBC and that didn't have the problem because I used Python longs. I somehow got the two confused... This works, but everything gets converted to floats like you said. In my case, this is not so much a problem because I use a lot of large numbers but doesn't seem practical for general use. I found that if, in Buffer.c, I change lines 143 and 144 to case 'd': return PyLong_FromDouble(self->val.d[ii]); I can get the same results as my product--everything is a long. Unfortunately, this causes everything to be printed with Python's 'L' appended instead of '.0'. Either can be fixed by using fmt="%.f" to all of my number fields, but that seems like a lot of extra work (maybe a quick hack to the Z Search Interface would do the trick?) Plus, what if I really have floats somewhere? Would something like: elif dbtype==2: # Number if scale: buf=Buffer(arraysize,'f') dbtype=4 dbsize=8 else: buf=Buffer(arraysize,'d') dbtype=4 dbsize=8 in ociCurs.py (lines 123-131) handle this? I haven't tested it yet on float fields. It might be better to just leave everything as floats. John Jarvis Tokyo Electron FE, Ltd. > -----Original Message----- > From: Jim Fulton [SMTP:jim@digicool.com] > Sent: Wednesday, March 24, 1999 12:00 AM > To: TFE MMS JARVIS JOHN > Cc: zope@zope.org > Subject: Re: [Zope] ZOracleDA and long numbers > > > > TFE MMS JARVIS JOHN wrote: > > > > Hi all! > > > > I'm having a problem with running queries containing long numbers. > > I found in db.py that the data type NUMBER is converted to an > > integer which overflows in my case. > > > > The errors: > > > > Error, oci.error: (1455, 'ORA-01455: converting column overflows integer > > datatype\012') > > > > Traceback (innermost last): > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 877, in > publish_module > > File /usr/lib/python1.5/ZPublisher/Publish.py, line 590, in publish > > (Info: /queries/wisdom/customer-Line/manage_test) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 305, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 286, in manage_test > > (Object: CopySource) > > File /usr/lib/python1.5/Shared/DC/ZRDB/DA.py, line 390, in __call__ > > (Object: CopySource) > > File db.py, line 198, in query > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 317, > > in fetchmany > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 279, > > in fetchone > > File /usr/lib/python1.5/Products/ZOracleDA/DCOracle/ociCurs.py, line > 75, > > in _error > > oci.error: (see above) > > > > I tried changing line 219 in query() in db.py: > > from > > if scale==0: type='i' > > to > > if scale==0: type='f' > > > > in order to force a float type, but this has no effect, it seems. > > This typr only affects meta-data seen by some Zope tools. > > > I'm sure that I'm misunderstanding something here. > > Nope, you aren't. > > > Any pointers to where I can look to fix this would be greatly > > appreciated. > > There is a similar change that needs to be made to *work around* > this problem. In DCOracle/ociCurs.py, change: > > elif dbtype==2: # Number > if scale: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > to: > > elif dbtype==2: # Number > if scale or 1: > buf=Buffer(arraysize,'d') > dbtype=4 > dbsize=8 > else: > buf=Buffer(arraysize,'i') > dbtype=3 > dbsize=4 > f=None > > This has the undesirable effect of causing all > numbers to be treated as ints. (This is what oracledb > does) :( Unfortunately, you can't tell from Oracle column > meta data whether values in a column will fit into Python ints. > > The right way to fix this is to implement Oracle's > NUMBER or VARNUM C data types and convert to Python > ints or longs on a case by case basis. > > Jim > > -- > Jim Fulton mailto:jim@digicool.com Python Powered! > Technical Director (888) 344-4332 http://www.python.org > Digital Creations http://www.digicool.com http://www.zope.org > > Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email > address may not be added to any commercial mail list with out my > permission. Violation of my privacy with advertising or SPAM will > result in a suit for a MINIMUM of $500 damages/incident, $1500 for > repeats. From Paul@digicool.com Wed Mar 24 12:31:19 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 07:31:19 -0500 Subject: [Zope] handling exceptions in DTML Message-ID: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Jordan wrote: > Is anyone working on patches to address this in the near > future? I'd be > willing to take a stab at it myself if not. Please, stab away! If you write the try DTML tag, we'll crown you Prince of Zope, or at least Most Honorable Potentate. Looks good on business cards and the girls really dig it. --Paul From M.Faassen@vet.uu.nl Wed Mar 24 15:25:48 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:25:48 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F903FC.F53C8EFB@pop.vet.uu.nl> "Bryan J. Smith" wrote: [snip] > Little and big internal projects aside, I was wondering if Zope could > possibly fill a gap that will come about with Linux shortly. That gap is > software distribution at the enterprise server to client level. I'm not sure I understand what you want here, but perhaps interesting for you is the Trove project. Perhaps it's directed more to larger scale internet based distribution, though. Another problem is that as far as I know the project isn't progressing very quickly if at all (perhaps you can help). I've even heard mention of ZTrove, which would be a Zope based Trove, if I understand well. I don't know what the status on that is. Mind, I don't know a thing about Trove, just giving pointers in the hope it's useful. Regards, Martijn From M.Faassen@vet.uu.nl Wed Mar 24 15:26:47 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Wed, 24 Mar 1999 16:26:47 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux ... References: <199903240030.TAA14192@mail.lsg.crc.com> Message-ID: <36F90437.EFA9C1A5@pop.vet.uu.nl> Hi again, Whoops, forgot to mention an URL for Trove, so here it is: http://www.tuxedo.org/~esr/trove/index.html Regards, Martijn From gilles.lavaux@esrin.esa.it Wed Mar 24 15:30:52 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Wed, 24 Mar 1999 16:30:52 +0100 Subject: [Zope] Pb: REQUEST.set with formating. Message-ID: <01be760b$4d817480$fce3ccc1@asgard.esrin.esa.it> Hello I try to set a variable to the current date with some formating: This works: But how can I format the ZopeTime to get only the part I want.(month/year for exemple: fmt="%m/%Y") ?? Gilles Lavaux From michel@digicool.com Wed Mar 24 16:14:33 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 24 Mar 1999 11:14:33 -0500 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . Message-ID: <613145F79272D211914B0020AFF6401907BBAB@gandalf.digicool.com> > -----Original Message----- > From: Martijn Faassen [mailto:faassen@vet.uu.nl] > Sent: Wednesday, March 24, 1999 10:26 AM > To: Bryan J. Smith > Cc: 'Zope List' > Subject: Re: [Zope] [Project Idea] Looking ahead to the > future of Linux > ... > > > "Bryan J. Smith" wrote: > [snip] > > > Little and big internal projects aside, I was wondering if > Zope could > > possibly fill a gap that will come about with Linux > shortly. That gap is > > software distribution at the enterprise server to client level. > > I'm not sure I understand what you want here, but perhaps interesting > for you is the Trove project. Perhaps it's directed more to > larger scale > internet based distribution, though. Another problem is that > as far as I > know the project isn't progressing very quickly if at all (perhaps you > can help). > > I've even heard mention of ZTrove, which would be a Zope > based Trove, if > I understand well. I don't know what the status on that is. > > Mind, I don't know a thing about Trove, just giving pointers > in the hope > it's useful. > > Regards, > > Martijn > Trove is sketches of code in Python (written by Eric Raymond) and ZTrove is vaporware, barely prototyped in bobo a few months ago when I was on the Trove list. It's unfortunate, since I felt that Trove was a great idea; the Internet hasn't reached the point of 'we need it now' in order to get some development behind it. Personally, I think Sunsite and RedHat should give us lots of money so we can write it. :) With Ken and I now in the Zope loop (Ken was one of the original Trove designers, and I was in on the GUI side of things, pushing what was at the time Bobo) we could probably bang something out sometime in the far future. We'd prefer someone in the community start it up because Paul and Rob have us booked sometime into the year 2011. -Michel > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From wade@okaynetwork.com Wed Mar 24 16:49:58 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 11:49:58 -0500 Subject: [Zope] fsimport and permissions Message-ID: <199903241649.LAA11692@emerald.lightlink.com> I just ran into some odd behavior with fsimport that may explain the problem that Milos posted last week. On my Linux box, if fsdir == '/fred/barney', then fred as well as barney must be world-readable. If not, you get the error traceback Milos reported in his March 14 posting. Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From prudek@sol.cz Wed Mar 24 17:10:29 1999 From: prudek@sol.cz (Milos Prudek) Date: Wed, 24 Mar 1999 18:10:29 +0100 Subject: [Zope] Re: fsimport and permissions References: <199903241649.LAA11692@emerald.lightlink.com> Message-ID: <36F91C85.924DF20E@sol.cz> > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. Bingo!!!!!! Now, is this a correct behaviour? -- Milos Prudek From wade@okaynetwork.com Wed Mar 24 17:36:19 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 12:36:19 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241735.MAA13778@emerald.lightlink.com> > I just ran into some odd behavior with fsimport that may explain the > problem that Milos posted last week. > > On my Linux box, if fsdir == '/fred/barney', then fred as well as > barney must be world-readable. If not, you get the error traceback > Milos reported in his March 14 posting. > Oops, posted too fast. I should have said that fred must be world- executable (listable). -- Wade From aboulanger@ldeo.columbia.edu Wed Mar 24 18:14:10 1999 From: aboulanger@ldeo.columbia.edu (Albert G. Boulanger) Date: Wed, 24 Mar 1999 13:14:10 -0500 (EST) Subject: [Zope] Confera Message-ID: <199903241814.NAA13900@ox> I know Confera is unsupported. I did download it (1.2.0) a few days ago and tried to install it as a product. It is a broken product since it needs a module SearchIndex.TextIndex. Any idea on where to get this module? The Zope I am using is 1.9.0 Regards, Albert Boulanger Columbia University From eq3pvl@eq.uc.pt Wed Mar 24 18:38:39 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Wed, 24 Mar 1999 18:38:39 +0000 Subject: [Zope] Confera References: <199903241814.NAA13900@ox> Message-ID: <36F9312F.38DA362C@eq.uc.pt> "Albert G. Boulanger" wrote: > > I know Confera is unsupported. I did download it (1.2.0) a few days > ago and tried to install it as a product. It is a broken product since > it needs a module SearchIndex.TextIndex. Any idea on where to get this > module? The Zope I am using is 1.9.0 > Confera uses ZTables functions, and these were introduced in Zope 1.10 ...just download Zope 1.10.2 and Confera will work just fine. pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Wed Mar 24 18:40:51 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Wed, 24 Mar 1999 19:40:51 +0100 Subject: [Zope] Confera In-Reply-To: <199903241814.NAA13900@ox> Message-ID: <4.1.19990324194019.009bcde0@mail.atmm.nl> At 19:14 24-3-99 , Albert G. Boulanger wrote: > >I know Confera is unsupported. I did download it (1.2.0) a few days >ago and tried to install it as a product. It is a broken product since >it needs a module SearchIndex.TextIndex. Any idea on where to get this >module? The Zope I am using is 1.9.0 > Confera requires Zope 1.10.2 to run. SearchIndex is a package that is oncluded in that release. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From FVilla@GestaltTechnology.com Wed Mar 24 19:04:11 1999 From: FVilla@GestaltTechnology.com (Fredy Villa) Date: Wed, 24 Mar 1999 14:04:11 -0500 Subject: [Zope] authentication problem Message-ID: <36F9372A.BCADD32B@GestaltTechnology.com> Zopists, I have a secure site and trying to secure a part of the site so that only those with the role of system admin coulds access. One special page has the following code the uses a 'with' tag to include a parent environment:

    Available Documents:

    The parent object has the following permission settings: Roles Acquire permission settings? Anonymous Manager Sysadmin User no View yes yes no Access Cont. info yes yes no Open close DB conn yes yes no use SQL methods the rest are set to acquire .... the role sysadmin is declared in the gestalt object.. Do you what am I doing wrong? Fredy Villa FVilla@GestaltTechnology.com From pj@sam.engr.sgi.com Wed Mar 24 19:06:00 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 11:06:00 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903241906.LAA16274@sam.engr.sgi.com> |> I should have said that fred must be world-executable That's just Unix-style permissions, no? Can't expect to access "/fred/barney" if you don't have execute perms on "/fred". ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From ShawH@STHS.org Wed Mar 24 19:27:44 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:27:44 -0600 Subject: [Zope] Counters Message-ID: I remember noticing various comments on the list bemoaning the lack of some sort of counter. I also remember noticing the objections which were raised, and why counters weren't feasible. I don't remember reading these objections, which may be why when I found a need for a counter, I sat down and wrote one. I now have a working Counter product which provides a tag . It includes the ability to have multiple non-incrementing displays of a counter, and the optional ability to render the individual digits using a supplied template, thus allowing graphical counters of whatever sort you feel like using. The counter uses a long property in the containing folder, so you can manually set the counter to whatever you want. It also provides the optional capacity to have a short 'memory' of recent IP's, preventing the 'running up' of the counter by scripts or massive reloading (well, makes it more difficult anyhow). The template is supplied with variables which indicate the position of a given digit in the list (it is wierd, it works from back to front, since it uses modulus) including whether the particular digit is the first, etc. If someone will supply me with instructions on how to package the product, and how to upload it, I will be happy to make it available. Thanks are due to tsarna@endicor.com, on whose product this was based, and to Jim Fulton and Philip Aylesworth for answering my questions. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:34:10 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:34:10 -0500 Subject: [Zope] Re: fsimport and permissions - CORXN In-Reply-To: <199903241906.LAA16274@sam.engr.sgi.com> Message-ID: <199903241933.OAA17777@emerald.lightlink.com> > |> I should have said that fred must be world-executable > > That's just Unix-style permissions, no? Can't expect to > access "/fred/barney" if you don't have execute perms on > "/fred". > Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 /fred/barney. Then anybody can get a listing of barney, but only root can see what's in fred. And if I su nobody and run python, os.listdir('/fred/barney') works but os.listdir('/fred') gets 'Permission Denied'. -- Wade From ShawH@STHS.org Wed Mar 24 19:35:08 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:35:08 -0600 Subject: [Zope] Counter 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_000_01BE762D.6CC78340 Content-Type: text/plain Well, I think I figured out how CalendarTag was packaged, so I packaged CounterTag the same way (I think). Its only 2.24Kb, so I am going to attach it... I hope I won't get shot. . <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE762D.6CC78340 Content-Type: application/octet-stream; name="CounterTag_tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CounterTag_tar.gz" Content-Description: CounterTag_tar H4sICAFA+TYAA3Rlc3QudGFyAO1Za2/byBXNV+lXzDooKDWyLMUv1A2DZm0X66Ldpo63/WAYxJgc SYOQHJYztKP99T13ZvjQw1p0E7QoqnESi+S9Z+7ce+6DSiofj4qlWaj86GOpkio2+uhSVbkR5dGr b7TYyeT8/JS9YrQma7/9BTs7Oz+bTN5O304Zm54cnx6/YqffyoBdq9KGl4y9KpUyu+R+6fn/6Ep3 xD+KZC5NFI2L5VftMZ1Mzk5OdsT//MzF/y3CfnyO+J+dniD+k290xp3r/zz+UZSoOIpYyIIg8IFn hs8ZhV7yVP7MjVQ5Hvb7MitUaZiXuuPz/n/b+v362rUr/9tAf10F2J3/07fHx03+nx8fn+LW+fRk us///8SalSpjVyquMpGbO5EVKTdifHUX/WRkynzG/7b/otgnU8p8Xgu6q34/TrnWnUJx0adIUxGh 350yc9G3d959d3j4Ova373k51w+Hh+/7jiD3qqASxFNm/MYsVol4aDWPYp6KPOElKdnbt7gUpWac edQxu1sIth2JxTxnj4KJLyKujEjYTJVM8HhhoRI5lwblkJmFqNEYzxMmNRTTFPLP0iyYFk+iBHSl xaxK2RMvJX9MhR47i/5eX/sjO9iBzA27nxz+7mF44W8ZRbYkUsPApUicdKG0lYUUPko6BVMzpzFi RGFDYeCGlXK+MNY+ayvdTcXMjC0MHcEKZEqb+mSaIMNw6g2dyVI3ho2mZNiUyZk7flWWIECrSTcJ nvBGTKRasInHQTkpBMzCidkAZ4nhKHgxVrnhaC6wa6ZSBGnoxL1nD9/lPBPvL5qtnnhaCTqrF6DT qhJYXLNU5fMxu06kIc+6Izp9sq0UflcbHrK0waILsMyymQWkEThtkKQUpAxG8KLg1gRRliCEZ0Dh jrVkBZ8L3CGXI+BawBnKYvA4FoWxwn+miNAH0LHet4msM2dEbIvJHUtVUfBLkaknYZEc71SZULIo JnBQGLZkCjilUydew1z8yRU9bI3Nlpbc41X3yiKV2jRepgvrXO9tWeiug7XN53UXUya5J96jGYoo E/SZUgqWcu8mi+95UQpdpYZVSMyZzEXisAbfV4aEHwG/ZI88+c7z4YMPT50vZDAbuG1BSXvpPdow A1FIaHuZQFHOlnWwJGWhTTox42QE3BV4rcA7SKOEpc0OLFgKHYAaKsBm+MwywXPNEoxC3aNi97qU bO5AEB5d5jHiSh7eukEiYEkGr2j2vBA2ut1q8yzT1MKgMDRIROyFyJlLxNIWvNqrL1gRL0T8OUKM /y0rbq//8te76+jD1dXtiiWxyihBQJQ5EhoM2MqxMbuZ+W2oKHGWcRMvyLIZxJOmLHXParm8dlbL IRKUhZPBc54kv3DivMq658Uh69hpy1O4D+hz7KsLEYMy5BTaJeNfZFZlBPAoSosFthEU1GyC4GCm ybvkSWpBGWIfC0p6qo5KsQXK7YhyydkekWssnE0a68YcjcM45pKLbK/ldYZRH7IlRW/h8PS0Puj1 F078vbDJ6Uq4eQYeVTObDWhVI8fXhSwToGQKMSutJ5A3dDrerRT2JQAWzUUuSAoWzUteLAioEyxU Vio6X4DEUpTUenPuQ4tBwLeL8WarR7v2/bu53jIPuMwMc1WLo7U6yC36pL0Lo+VUSFndZIS98mwJ jyfN9GFR0P0O3LFQWl2zPGjnk3cymzNdxuHBkfeQrg3SRxsGP8p5Mp7L2UF3AyL3rwV0zl1HPJKz GnDDRc4/lyX1EzTnf5TSGBSSxyX7QT1zkOMyRVZgwvi04M/s5ubG2+XX95zKrMrd7AQto3mZ8z+g AslYlWPUBTa49BOZe3kY9nvMdQ6ef7Yp9CeZsT+CxoAhzn9cyBSJ/WGJAekZk+TCzmCouM/CZgGa mYf4ZyU0jT+aehxnRmYCjYMwFiItaPLKeA7KjpuRs20fYVv1XRFLVfz5UtGUVHEHGrKBb0DIM1Z/ AzLQIp2NnLweXjT+MAQ7olGC2qaI7VwWern7yUMjSPrjVsB/GjvBVSkCgwhKqxYR/uWZHrgNaLMw CEY1m+ljS2e6aulMVzWdg8AfqdkjW3p/2Ku5wPw4jwZuEBq1Thqu2e9a5LqWu016VHiHYWh/r6q2 /W9du3myG6BtXesAzZMNgJ4plxcr3LWadU8IqfYP1jzgnhEUausQvMWsgiEfOL0tANNJy5Uaw1HF EQP30W46hEElaYI8XnAdfRbLAckOVw0thanKvJW9J5mWTlQvtiq4DVujGu9GPqbevCzpkKVhCozo FWGW3AcfP9xe/3j3KXggEvdg9aCRHnpX0NwTBms9P3jT4dfvnaB0kLfXf/vp+tMdIIPORBE8eKEZ K8gh/q1hOSB42qrneya8Ta17UFCwVqWGJEXNmUqCFyfN1i+4cC7reYtqyPrTG3Yvi4f6MY6L6jXw D4fsfddBkNnQv784nNbaxTiqigQdc8XIEXptA+jLYW0SNPTamaw4mTQcmWWBVHfTADKyt+r3FYfb SG134w7Ltnj0zRQbefO85oaFU2fZAb2EHXRqpptEIzc4dejm31XRPkduRiCzch2S4brAi5qTdRu6 F8zQK3kjlK2L0HfXriOH7re7NbR0zZJxVFR6MbjBhMPzWFzJ2AxyTXbA974uuHyGvjfY1eJBt1Jb hfUSYNFVMZj6KBZc636vTtgX/KAbR9hTb+TYSgi2Bxfb0egxJXtw4HDS71Fp7/ee0Tvx4pK/n9SB tl4Lqbrl7DcoUt7SPMyPULEajtPkmoPcVs+jTr1fQrvzaiy3R/GNbsIT4u+b6cvOWHECWbDaG4bd IrtZuWj71V4wWqnHww6m60k1YG0PcorYOvg13h8OfZJ30qJbpdfCTcTpv+51dk5kubHxcNhzPooi +irJfg/vgKBc+w6ZV09Tq93FtZbXK80N93TkugWwqBe8pp9Ok9qO5RoHVH5Uueii1h3LAq+3rEZq 3RsdM1oh57ltOr5t9fCD5zZt8YbXfS2kt5F5qh4pEft99z0jTZoY9hJ930wsdOj9/0/s137t137t 137t137t1369sP4F2FdJwQAoAAA= ------ =_NextPart_000_01BE762D.6CC78340-- From ShawH@STHS.org Wed Mar 24 19:38:50 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:38:50 -0600 Subject: [Zope] Counter Message-ID: With regard to the IP checking mechanism. Realize that this reduces the count for machines behind a masquerading firewall and increases the count for machines on dynamic IP dialup accounts. If anyone is interested in using this counter but wants to prevent a given IP from incrementing the counter a second time under any circumstances, it should not be too hard to modify the code to store the IPs in an SQL table as (I think) Slashdot does. I have no need for this, and don't intend to code it, but the code, being Python, is, I think, clear enough to modify. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From wade@okaynetwork.com Wed Mar 24 19:41:01 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Wed, 24 Mar 1999 14:41:01 -0500 Subject: [Zope] navigate ZDB with Python Message-ID: <199903241940.OAA17995@emerald.lightlink.com> Hello, I'm trying to put together an External Method that needs to operate on several different objects within the ZDB (a/k/a ZODB, BoboPOS). How do I specify an object ID and retrieve the relevant object? sorry to be obtuse, but I can't find an example anyplace. In the onl;ine docs, this URL -- http://www.digicool.com/releases/bobo/BoboPOS3/BoboPOS3.html -- looked promising, but it comes up empty. Thanks -- Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From Paul@digicool.com Wed Mar 24 19:53:36 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 14:53:36 -0500 Subject: [Zope] Counters Message-ID: <613145F79272D211914B0020AFF640190D9F64@gandalf.digicool.com> Howard wrote: > I remember noticing various comments on the list bemoaning the lack of > some sort of counter. I also remember noticing the objections > which were > raised, and why counters weren't feasible. I don't remember reading > these objections, which may be why when I found a need for a > counter, I > sat down and wrote one. I now have a working Counter product which > provides a tag . I'll indicate my appreciation of your contribution by, well, asking for more! :^) One of the big objections of the counter kind of object is that the object database gets bigger on every request. A good workaround for this would be to cache writes to the database. Thus, imagine a counter that: 1) Only wrote to the database after a threshold had passed. For instance, only every tenth state change or not until ten minutes had elapsed since the last write. 2) If the process was nicely shut down, the object would save itself. 3) Had knobs in the management screen that allowed adjusting the "buffered write" policy. The benefits: 1) The database wouldn't keep versioning into oblivion. 2) The application wouldn't be slowed by writes on every request. The drawbacks: 1) If the process exited not nicely, some state changes would be lost. --Paul From ShawH@STHS.org Wed Mar 24 19:48:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:48:02 -0600 Subject: [Zope] Counter Product Message-ID: The counter ought to place the properties in the Document if it is a Document and not a Method. If anyone can contribute code which will take 'md' and return x, where x is either the Document or the Folder containing a Method, I would appreciate it. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From tfraser@crieff-strathearn.freeserve.co.uk Wed Mar 24 19:49:09 1999 From: tfraser@crieff-strathearn.freeserve.co.uk (Tim Fraser) Date: Wed, 24 Mar 1999 19:49:09 +0000 Subject: [Zope] is win3.1 ok? Message-ID: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? I'm currently running Zope on Win95 desktop without problems. From joctavio@jimihendrix.net Wed Mar 24 20:00:35 1999 From: joctavio@jimihendrix.net (Ze Octavio) Date: Wed, 24 Mar 1999 17:00:35 -0300 Subject: [Zope] IRC DalNet Channel Message-ID: <36F94463.A827A58F@jimihendrix.net> Hello Zopians, Another way to get in touch with Zope questions, just go to irc.sodre.net (or another server from DalNet) in channel #zope I will be in the channel and who wants can be operator, just talk with me. Thanxs all Ze Octavio PS: Questions in spanol an portuguese are welcome too ! From ShawH@STHS.org Wed Mar 24 19:43:18 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 13:43:18 -0600 Subject: [Zope] Longs on the Property page Message-ID: In the stock Zope 1.10.2 distro, putting a Long in a property causes a curious error to manifest. When the property page is displayed, the long is display like 44353L. If the then change any other property and attempt to save changes, you get a traceback saying that the property for the long is invalid. You are forced to manually remove the 'L' before saving changes. May I suggest that when the properties are display, if the type is 'long' then the display code should do something like this: str(long_value)[:-1] This would remove the L before it was ever displayed.... Alternatively, something in the response code needs to be modified to accept an 'L' at the end of an integer destined for a property whose type is 'L'. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From ehmka@yahoo.com Wed Mar 24 20:09:04 1999 From: ehmka@yahoo.com (Kevin Ehmka) Date: Wed, 24 Mar 1999 12:09:04 -0800 (PST) Subject: [Zope] The best way to pack and close PickleDictionary? Message-ID: <19990324200904.8613.rocketmail@web204.mail.yahoo.com> Previously, using Bobo, I created several PickleDictionaries for use on my website. Regularly, I would pack these databases before ending the CGI call since they were altered very frequently. Now, using Zope, I find that I cannot pack them without receiving error messages telling me I'm attempting to write while the database is in read-only mode (it appears the Zope threads out the packing). I also found that Zope caches these databases and issues an error when I attempt to open them again. What is the best way to pack and close these databases? How can I query which db's have been opened? Even if I do keep a mapping of previously opened db's, how can I find out if Zope is closing them. Any help is appreciated. Thanks, Kevin _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From jbb@spyderlab.com Wed Mar 24 20:22:17 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Wed, 24 Mar 1999 15:22:17 -0500 (EST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. Hey.. this isn't bad.. in writing even :) Okay, I have a prototype of this written.. basically you can do the following: foo bnar The exception was So, if an error occurs inside the first block, the second block is rendered with err substituted for the variable (in this case it prints exceptions.KeyError This is pretty basic stuff, so I'm looking for ideas on where to take this. Anyone have more ideas? ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From petrilli@amber.org Wed Mar 24 20:28:49 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 24 Mar 1999 15:28:49 -0500 Subject: [Zope] is win3.1 ok? In-Reply-To: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk>; from Tim Fraser on Wed, Mar 24, 1999 at 07:49:09PM +0000 References: <36F941B5.C99A21A8@crieff-strathearn.freeserve.co.uk> Message-ID: <19990324152849.B11092@amber.org> On Wed, Mar 24, 1999 at 07:49:09PM +0000, Tim Fraser wrote: > Would Zope run on a win3.1 laptop the same as Win95? Anyone doing this? This is just a guess, but I doubt it. You'd probably need a DOS port of Python, which would eliminate all the networking code. This is just me, I don't have a 3.1 box, but... you're welcome to try :-) > I'm currently running Zope on Win95 desktop without problems. Goodie goodie :-) Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From Paul@digicool.com Wed Mar 24 20:55:29 1999 From: Paul@digicool.com (Paul Everitt) Date: Wed, 24 Mar 1999 15:55:29 -0500 Subject: [Zope] FYI: Slightly updated version of the Z ODB tech docs Message-ID: <613145F79272D211914B0020AFF640190D9F66@gandalf.digicool.com> I've gotten a lot of reports about a broken link to the ephemeral, much-referenced "BoboPOS3a1" technical docs. I promised myself I wouldn't update the link unless I updated Jim's doc to Zope-ify it. Thus: 1) The official name of the database is "ZODB", the Z Object Database. 2) The News on the site has a link to the ZODB3 Technical Documentation. This is a very well written, circa October document from Jim Fulton that describes the architecture of the next version of the database (i.e. Zope2). It's quite nice -- contains UML diagrams, API discussions, etc. 3) The broken links have been updated. --Paul Paul Everitt Digital Creations paul@digicool.com 540.371.6909 From ShawH@STHS.org Wed Mar 24 21:42:46 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 15:42:46 -0600 Subject: [Zope] Counter Message-ID: Ok, having read the newly available ZODB manual, it seems that I should override __setstate__ and call the old __setstate__, passing it a dictionary containing only those attributes I wish to be persistent. Then I don't have to call my __setstate__... it will be called automatically by the system. This should have the effect of making any item not mentioned in my dictionary non-persistent, which will allow me to accomplish Paul's goal. Now, the BIG question... This ZODB manual is for ZODB3, which we don't yet have! So is this still the correct and workable technique for accomplishing this? Thanks again... and please everyone, don't use the old Counter product, since these tags are going to conflict horribly, and this new product should be much better for the DB, according to Paul, if I can make it work. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From lstep@mail.dotcom.fr Wed Mar 24 22:04:21 1999 From: lstep@mail.dotcom.fr (lstep@mail.dotcom.fr) Date: 24 Mar 1999 23:04:21 +0100 Subject: [Zope] [Project Idea] Looking ahead to the future of Linux .. . In-Reply-To: Paul Everitt's message of "Tue, 23 Mar 1999 21:30:37 -0500" References: <613145F79272D211914B0020AFF6401907BB9F@gandalf.digicool.com> Message-ID: <87bthilf2y.fsf@eurythro.savigny.stp> Paul Everitt writes: > One thing I've seen that's pretty interesting in a low-tech kind of way > is rpmfind from rufus.w3.org from a repository. For .deb there is the official package manager (www.debian.org), but there's a 'Debian Package Finder', which is already complete python :-) On http://badger.alaska.net/debian/finder.cgi That may be easier to convert to Zope. Luc From pj@sam.engr.sgi.com Wed Mar 24 23:50:12 1999 From: pj@sam.engr.sgi.com (Paul Jackson) Date: Wed, 24 Mar 1999 15:50:12 -0800 (PST) Subject: [Zope] Re: fsimport and permissions - CORXN Message-ID: <199903242350.PAA02166@sam.engr.sgi.com> Wade writes: |> Uh, no, I think. chown root /fred, chmod 700 /fred, chmod 711 |> /fred/barney. Then anybody can get a listing of barney, but ... Well - darn if you aren't right. Only the immediate parent directory of the item to be opened/listed matters (so far as execture permissions), not the grandparents and up. Seems strange to me -- but seems you're right. ======================================================================= I won't rest till it's the best ... Software Production Engineer Paul Jackson (pj@sgi.com; pj@usa.net) 3x1373 http://sam.engr.sgi.com/pj From neves@inf.puc-rio.br Thu Mar 25 00:38:21 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Wed, 24 Mar 1999 21:38:21 -0300 Subject: [Zope] handling exceptions in DTML References: Message-ID: <36F9857D.C40204EE@inf.puc-rio.br> "Jordan B. Baker" wrote: > > ... > > > The exception was > > > ... > > Anyone have more ideas? Maybe something like this for the version 2.3 :-) ... ... ... ... regards, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From ShawH@STHS.org Thu Mar 25 01:06:02 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Wed, 24 Mar 1999 19:06:02 -0600 Subject: [Zope] New Counter Product 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_000_01BE765B.A6C63540 Content-Type: text/plain Here is the updated Counter Product. This contains two classes, one which provides a visible Counter Product which can be added as an object, and which has Security options, and a new tag which provides a means of accessing the Counter Product. Note: the tag should be able to access ANY object which possesses a getCount() and a incrementCount(md) where md==_. So an SQLCounter Product which stores its numbers in an SQL database should be able to use the same tag structure. Since it passes md into the incrementCount, the Product is free to store as much or as little of the REQUEST as it chooses. My product stores only the IP address, and only under proper conditions. The tag structure is described in the CounterTag.py source file, and examples are given. I hope this is useful to someone. <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE765B.A6C63540 Content-Type: application/octet-stream; name="Counter.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter.tar.gz" Content-Description: Counter.tar H4sIALSN+TYAA+0aS2wkR3X4StNKpEhcQarMEvUMO56PP+PETJts1uvEKJs1a28SZFmtdnd5ptj+ TLq615lEe4AbZ8SJG6cgIYTElUMuiHPuCDhzgHNO4b36dfd4/Mnau8tnSrKnu+rVq/evV/U6ZEfd yTQbJ3F3N02C3M9493aSxxlNu7VramS1t76+RmoEW2/mV72QwWB9sLze7w2WCemvrgzWa2Ttugg4 r+U881JCammSZOfBXTT+X9rCc/Tvy99bQdAJsih84jX6vd5gdfVM/S+v9te0/gervVXQ//rq6kqN 9K6RzzPb/7n+h2PQ7KZFyHBMvWBzmLEspJugcqKsYNiVXcOuAEDIoySYkqORn4RJ6jRubIvWwCEL 9TkcL1cRwLsYkKPHSRoRz89YEjuNyIu9EXW9IFDQDRJRsMbAaeze29tvyIkwK/OOQkp8GoZ84vks HjmNZRitW/VhlsIvgoyJF7IRYH37zvZ+gzxSb/v3dhubOwEwMlaAwTmAFim1IYsneUay6YTC8J33 ATj2InhmQYNw9hE8rfUqc2AVEFIdftIvQd2QRpv7KOZhF56ulVKhvcsQ+2VovT2m/kOys0tucOLF AQkY/yAHoOMpSemEehn/wfVz4uOiLpvwEjeIJ4fHKeXXw9k7eXREU5IcA3ecZAnwE1HsegoMxXl0 Bjv9tevh5q3khICLTcmYZZwcUfA9Srj3CPwHecvGlAQeuJbH6VPg7yRlGfh2NofBlUsaYrCphtTL UbpZWW7vwRt3d/YNWgg7jc0KMhF38Bnjh3wddjEEiUjWxVC2aUGIElHweQfj59DO2/9dl8Usc93O ZHqlNS7Y/8n6oG/yv/4A9//B2mB5sf8/i+a6QeK7LnGIbdtK8STzRgRVz8DnP/Jwp4ZByzpOk4js RLBhbzPYjFk0SdKs6LAs1aPQzLzueyPLgs3dc9F1udMUzvixjbHC3iB6cbst+m2ZIeDAqRxhG9zX FlCPJXBLIIasgTsfy9nz52xoWjrVgfYZk+ZOsB4Ty3Jdz3cnNI0Y50Amd13FT9MupT6c223oKfDu JmEoKGnPdNqtVlvNvz324hE1KBCDHkQ+GfddzaVvyDRKaOrOzogd2+1RmBx5ITcYHs/GuPP8X/N+ Rfe/yP8H6z11/lvpDQaDHvr/6qC/8P9n0ZSP3vI/yBln6HKW6fIp57eTOEuTUHfe296TYeBNaVg6 CLy1f/dtNL82uQuTwBa3IHYkozbZBRNmPKNxJudtJX4ewds+jSahl9HO1r77IGOhRvS9s8H2shTz FgUo3yzLDz3OtbdIHywx09mB+cxnmTT/gpq2gizx2LmfhFT8uyt8M5UwwHJnDxYN6U5Gow7+k864 IZ3QlqFIUSA7IQYgqR5RzkgYSCrOcqDpEe1YAmY/ITmnBUybTJOcxJQGmJpBXIAhDMQqT5sARQLi xIsz0SPmCVQIP4G0G9aJO0Z2InATyHUAGtb3vRgyQHjPIWFnsUBRhGZwcnk+40me+gAGylSE3k5p AOnjBnkP8jmQHTmaEkgsvRTiXAhcwSJ7Y++E7OzsVPJC8gaklQGBYT8JKM7KuJfG3us0DpifpB0f FN287YXw7ikaWlUM+xALH4o0/IcsItt5CIuBTY1ZyCbk1jSk/ARsYSzOIHeZP/ZoCDoOQ5oxCNQV VCgHL+YnVBhRNCUf5JSjhFAzKGoW0XAqMI1pODnOQ8ycYwh/ltGzeMD9CrdLHXxlLzAUO7aIzrP3 JwrCbH2O2erUgNwJkomgBvaR+sd26B3R0N6wISbDLgPcwD5gtkS9d0Qei23YAkvwe9TPQUvTOdCe sHX7sVVvyXXn7mH1pv0uoyeKKDQjwv2U0hgIMDsZJNO82MIEGbjB1M3mVcJamqYoaFdhzb5v4NDc AL0fgkXDASkEj4VXFvupIMhMaMEU5aoGKRKPqEa0BIdDiumAHgPjnGYQ9uFw4jY5DY/b4kU5tHCC bNkRfaaHHZMm9HbGHncf0mnThjAwcYWGgfcNPKAg8hCnHpQHD616EXU685ZebtXLtMmcWw6ywDF2 1hYn+dK7OQ879hTtQx0nHbu/Zrf12cuxV9ZspA/xdVgAlssC9SYQQof4VX06YDmkp+cIBUDHwaGG 0QtDZ0GEpEKBKFoAgMLRrKleW2pUE6eH9bsedx+5hQQFMWXaKl6Dxufo3cckP3eEBRXJTyHfslEJ GaNsGo3GbeznIigKdsUFAF5vnIwhrmD8zrmMzDRkEYtBg/qqA2ZXROWAoMx6JZOWKhXCLnSntWYU 1tbbwf07P3pwZ2/feSeJqSISsRShH2wAovrYS8HTIapBMPNLtEhrqajWqOp8pTnnqcyZqzBFjxxU L2co06mosg5+pRhFGcdJRpBf5U8pzfI0rqYUEKLqyhNQyzSAA0O9HkkQxx5y2Mrj0eYrfNhVjwR8 FnY+2LiomNCxyStEuQPOlYESQ3qnWw5pMFQyHB1QykYDfWV1yFsIoQIRLuZwPyxzj1guIyMlhnmQ pchRjY/S2EgUKFLNaJngaye1Ei0rNlcKrgJg4kTBga1Ubx/i4917+3fcW1tb9yFmVmFVACr5WBUA mJ/gLi7HqisVdlTppiGnpwHNUurhJjlgk8PTYMAeZC1NCdUim6TsP63TeOchP9hY6h9KO8dWDiCK x/McaKbzZl8qcq4mlyqa1NQaHzaqPW8By6oemU/HXMh5qyEXjbKYpDe0iwPgTOBD4WCATinG3CKl 9kQaC3tpCIeHTKg/45Amp2jk20kYKHvcB3v30pFIiYmNVNjkhMEkSIaPRDJsMuzS1I5eVzqYFo1m 5hJ8yFRWyhI2/XtHP6F+hhNNfFSmND/+lZ2+FJWUX6s5rStfWV6i/odh9koFwAvO/ysr62v6/L86 WOlj/W+w2luc/59Fm1//Q5U/aQFw+PLS0o1HINPSYWFpadMytcEq8ouLg7hrP62y4DMsvOkahZGP AADJnFMJMb26lKFfr7dAV8b8dOt0gnmIeQYG+IcMVHTjlgyvcSLeuux4vmxKb1cS0aUqfdcrmbML fsYoFMjTZf0Jy4LXK4xzqoNGGhrmEuIgV/GWPBVb/1s6MD0939BfOZzNc8OcNFqNp8z3llLyNTKu udCp59LF5D95uRd3kkW990rtEvkfVpKutMZF9d++zv+WB8trq2tY/xksL+o/z6S9ubP96mveS7WX ar/+ovYFtFrt008/3d3drYkHCfTy51//Sq32jVobXxD29a+98f7GX373+xdef/jJzz798c3P//bN V7/9y59/508vfrZ1/6eTTm+S/+G7//rjbz/7zWfNRt168Mnf//neC39Nf/GrF//c3uk/uDH46j8+ +lbt+8+P7UVT7RL1X1mZucIaF9V/B/11ff5bXhHf/673++sL/38W7RkUZcF+zC1OuVSK1c0NdSzE tEFf7Bx46YgfFpnDgayMeSHJ1MKioHhYzOz6qohozpn34ZWmvLgu6oh7oPmYdGmUfkj9PKOBqBVS zx/Lu1U2ktdL5ZtecfmENdUwBPgTBqkWp49oCqhzTrF4CEkQwxyEq/rhu/pdsSzRNhmknQe9pdcO WxuqCxJwoAUObEDglAYSepJwAQtQ8ChK23hyETPaBE04EwXnjKRsNM4EfYJW7A3pcSbvs5AFARAl PNOccUTpOH1F6DFLuSGs3UfC+nhNJdhXibKZKeolgB7xtcWlKukpPLfUnZtmWIuuyYWRAFpRSU2O y4JtmzJLmPion1KVmiTiCq2jb7y9PBQ0mIqYWpiLYr1eh4gKB7HjxIYl4ZlE1Is5CZLYzkT5Kdfr aKM4vQKiUNiLi/S5CwQ0w9pnTLFyRAFrWrEbvHgUaEDFBhNa0JjGRIo0FaZLg3OpuPOhh0xuCKuW GstOEuLBOY4FgJKBZbYlU2OWwvmfRkkM9AJ3opKFYvcqalGfGoxoTFN50TpKvckYEZWoF7V2cBTA RELwU7042JvABn6vrKMzx7P1LSoQkbnFCUH5cHFiuNxMpWgnTjQOPHiIxa8DaaEfuYJVHHDAGxqS bwgU0nkaRbwasmhEeOo7ja4SIdd08O4pOo/YKMAMu1FeQF2FPBFCKf1ZjPI6pRwyZyTzH/aVh4hg pz/0mP2Ko4roS37SYW73T33SITwUItBD/DSIxbknsTqk2TqrVC/hy8WfDNG2sfbAIURTXWWUcAe9 oqwk7vgLAPXUkYBVKEQGIBMv5dSF/17Em3IBbcy23dY2jI+FEdt2y6oimymvjyhsIyO3WXxhUEik NUOsDLGzE2U3zsNQ1apWl4vAOTvNjNjt6sRy8VWASklLuUI/BO+SvMErjYzMdxoIO1OQK1dWEPYA YQptnK4MqglywdMVYV3bUsVWrYgoOChL+dCUdCqfMSAiGfHdWFxIGlxtvbtDgGnLMFtiJOYOko23 3lROqZAsN2hHoagMYSrhCKSVbhnPHPlbGWmVbTUKOu4k5+PmDpbeYp9uMT9rxlxwXzKwLJ1WhYiL KkalYTfLZi+mG/hjBjlaOINArJxMmv1q9JhApmk6tGqt+nzh8rKmjCgdbY5anTDcKW7hDCBG+n6J SBCU0yscw1FfAmI7GeMX0s14szdjfEIhDsTTZkxeIf1elZnYibv9XqULq7pYFozJJplFVpDRr8pa clS1q/kWdZPPGocDfzf7p0U6I9F5kjRlf+PRMwTPE/TMdwtlOzD4ZGA5w4+ztBkm8ah5vhZbLVlw 17PPdPPTouOCKAHrupjyi+/lJYhl3SA7qgpdTvQwnZLF8HBqWfJchFshbEABPzBx9RAQlb+Pf97H wUVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEVbtEX7H2r/BpAsys8AUAAA ------ =_NextPart_000_01BE765B.A6C63540-- From jbb@spyderlab.com Thu Mar 25 05:32:14 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 00:32:14 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: Okay after I opened my big mouth I had to deliver. :) NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE Here's an example of what this is: This is the try block You suck There was an exception! Yay!

    It was

    It has this to say: I incorporated a suggestion that except should handle to specify the error to trap. Also, will handle any errors by default. This is packaged as a product, is this the best way to distribute this?? Grab it from: ftp://ftp.spyderlab.com:/pub/zope/Try-0.1.0.tar.gz Since I've only been programming Python on and off, hopefully I didn't make any major assumptions about doing things a certain way. Please let me know if I have. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From phil@media-1.ml.uwcm.ac.uk Thu Mar 25 09:17:40 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Thu, 25 Mar 1999 09:17:40 -0000 Subject: [Zope] IRC DalNet Channel References: <36F94463.A827A58F@jimihendrix.net> Message-ID: <002c01be76a0$54f9e220$5c773fc1@media1> There is another IRC channel on the EFNET network, #zope. It is 'protected' by an eggdrop bot so there should be little chance of the channel disappearing. It is manned, at the moment at least by, Phil Harris, Fredy Villa and others. There is also a knowledge bot, zoppy, which can answer rudimentary questions about Zope/Apache/Python. We have a small but growing community, join us. See ya there Phil phil@philh.org ----- Original Message ----- From: Ze Octavio To: Sent: Wednesday, March 24, 1999 8:00 PM Subject: [Zope] IRC DalNet Channel > Hello Zopians, > > > Another way to get in touch with Zope questions, just go to > irc.sodre.net (or another server from DalNet) in channel #zope > I will be in the channel and who wants can be operator, just talk > with me. > > Thanxs all > > Ze Octavio > > PS: Questions in spanol an portuguese are welcome too ! > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From wade@okaynetwork.com Thu Mar 25 11:14:27 1999 From: wade@okaynetwork.com (Wade Leftwich) Date: Thu, 25 Mar 1999 06:14:27 -0500 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <199903251113.GAA14712@emerald.lightlink.com> > I'm trying to put together an External Method that needs to operate > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > How do I specify an object ID and retrieve the relevant object? sorry to > be obtuse, but I can't find an example anyplace. In the online docs If I have a URL like '/manny/moe/jack', I know that from within the top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. But if the context is jack, how do I specify the top level so I can talk about manny? Wade Leftwich Okay Network Services, Ithaca NY tel 607-277-1334 fax 607-272-3612 From ags@beehive.de Thu Mar 25 12:27:43 1999 From: ags@beehive.de (Alexander Schad) Date: Thu, 25 Mar 1999 13:27:43 +0100 (CET) Subject: [Zope] Problems with Computed Fields Message-ID: Hello, I want to use a computed field to convert the broken umlauts from a database. I added a computed field and tried the following expression: translate(ARTBEZ,maketrans('”„','öüä')) But when i test the expression i get the following result: Test Computed Field Expression: translate(ARTBEZ,maketrans('”„','öüä')) Computed Field Error: (, ) Does anybody have a solution for my problem? Bye, Alex From jim@digicool.com Thu Mar 25 12:38:13 1999 From: jim@digicool.com (Jim Fulton) Date: Thu, 25 Mar 1999 07:38:13 -0500 Subject: [Zope] name of top object in ZDB? References: <199903251113.GAA14712@emerald.lightlink.com> Message-ID: <36FA2E35.9695D94@digicool.com> Wade Leftwich wrote: > > > I'm trying to put together an External Method that needs to operate > > on several different objects within the ZDB (a/k/a ZODB, BoboPOS). > > > > How do I specify an object ID and retrieve the relevant object? sorry to > > be obtuse, but I can't find an example anyplace. In the online > docs > > If I have a URL like '/manny/moe/jack', I know that from within the > top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > > But if the context is jack, how do I specify the top level so I can > talk about manny? The top-level object is the 'app' attribute in the Main module. Note, however, that this will change in ZODB3. import Main Main.app.manny Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From mj@antraciet.nl Thu Mar 25 12:59:32 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Thu, 25 Mar 1999 13:59:32 +0100 Subject: [Zope] name of top object in ZDB? In-Reply-To: <199903251113.GAA14712@emerald.lightlink.com> References: <199903241940.OAA17995@emerald.lightlink.com> Message-ID: <4.1.19990325135759.00a974f0@lisp.atmm.nl> At 12:14 25/03/99 , Wade Leftwich wrote: >> I'm trying to put together an External Method that needs to operate >> on several different objects within the ZDB (a/k/a ZODB, BoboPOS). >> >> How do I specify an object ID and retrieve the relevant object? sorry to >> be obtuse, but I can't find an example anyplace. In the online >docs > >If I have a URL like '/manny/moe/jack', I know that from within the >top-level object, I can retrieve the object 'jack' as 'manny.moe.jack'. > >But if the context is jack, how do I specify the top level so I can >talk about manny? > From an external method, self is the object the Externel Method is called from. If you have REQUEST passed in, you can access PARENTS[0], which is the top object. From there you can traverse down the hierarchy. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From zopelist@regalint.com Thu Mar 25 13:21:45 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 08:21:45 -0500 Subject: [Zope] Longs on the Property page In-Reply-To: Message-ID: I vote for getting rid of the "L" everywhere. It has caused me some problems and extra fmt attributes in my DTML, too. >In the stock Zope 1.10.2 distro, putting a Long in a property causes a >curious error to manifest. When the property page is displayed, the long >is display like 44353L. If the then change any other property and >attempt to save changes, you get a traceback saying that the property >for the long is invalid. You are forced to manually remove the 'L' >before saving changes. > >May I suggest that when the properties are display, if the type is >'long' then the display code >should do something like this: >str(long_value)[:-1] > >This would remove the L before it was ever displayed.... Alternatively, >something in the response code needs to be modified to accept an 'L' at >the end of an integer destined for a property whose type is 'L'. > Phil A ------------------------------------------ Philip Aylesworth zopelist@regalint.com Regal International From Paul@digicool.com Thu Mar 25 14:05:57 1999 From: Paul@digicool.com (Paul Everitt) Date: Thu, 25 Mar 1999 09:05:57 -0500 Subject: [Zope] ANNOUNCE: #try tag v0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Jordan wrote: > Okay after I opened my big mouth I had to deliver. :) > > NOTE: THIS IS NOT ALPHA ALPHA CODE.. BEWARE > > Here's an example of what this is: > > > This is the try block > > You suck > > > There was an exception! Yay! >

    It was >

    It has this to say: > > > I incorporated a suggestion that except should handle to specify the error to trap. Also, will > handle any errors by default. Damn, it worked! > This is packaged as a product, is this the best way to > distribute this?? I'll get Amos to add it to the contrib area. Gotta admit, I'm *really* happy to see this. Guess I have to call you Your Most Revered Magnificenous now. Or how about just Tim? :^) --Paul From mjprobst@visi.com Thu Mar 25 14:45:23 1999 From: mjprobst@visi.com (Matthew J. Probst) Date: Thu, 25 Mar 1999 08:45:23 -0600 (CST) Subject: [Zope] Configuration of Apache-authenticated Zope on Apache 1.2.6 Message-ID: Okay, I understand that the "fall-through" authentication to Zope will not work with rewrite rules when Apache 1.2.6 is used. Unfortunately the project I'm starting is being done for a shop that refuses to upgrade to 1.2.6. I have Zope working just fine with Apache authentication; for the needs of my project, this method of authentication works just fine. However, I need to know how to properly set up Zope to run in a virtual domain "container", _and_ to only authenticate parts of the object hierarchy at one time. The idea is that we have a website docs.foobar.net that is a virtual domain on an Apache 1.2.6 server, and we need to authenticate any requests underneath docs.foobar.net/manage so that the world can see the pages but only people in our list can manage. Another simultaneous difficulty is finding the proper way to make this virtual domain automatically start in folder "docs" of Zope's object hierarchy. I've used an Alias to translate docs.foobar.net to docs.foobar.net/cgi-bin/Zope.cgi/docs , and it works fine, but I don't have proper Zen mystical knowledge of Zope to understand the _proper_ ways of doing these things, if such ways exist. I have done a scan of Email archives and most of the documentation on the Zope site, but either I'm dumb as nails or just don't know the proper magic keywords to get the information I need. Zope looks great, I've resisted learning a new language but a killer app makes it worthwhile. From michel@digicool.com Thu Mar 25 15:26:53 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 10:26:53 -0500 Subject: [Zope] Longs on the Property page Message-ID: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> > -----Original Message----- > From: Philip Aylesworth [mailto:zopelist@regalint.com] > Sent: Thursday, March 25, 1999 8:22 AM > To: Shaw, Howard > Cc: Zope List > Subject: Re: [Zope] Longs on the Property page > > > I vote for getting rid of the "L" everywhere. It has caused me some > problems and extra fmt attributes in my DTML, too. > > > >In the stock Zope 1.10.2 distro, putting a Long in a > property causes a > >curious error to manifest. When the property page is > displayed, the long > >is display like 44353L. If the then change any other property and > >attempt to save changes, you get a traceback saying that the property > >for the long is invalid. You are forced to manually remove the 'L' > >before saving changes. > > > >May I suggest that when the properties are display, if the type is > >'long' then the display code > >should do something like this: > >str(long_value)[:-1] > > > >This would remove the L before it was ever displayed.... > Alternatively, > >something in the response code needs to be modified to > accept an 'L' at > >the end of an integer destined for a property whose type is 'L'. > > > Hmm.. Could you please submit this in the Collector? http://www.zope.org/Collector -Michel > > Phil A > > ------------------------------------------ > Philip Aylesworth zopelist@regalint.com > Regal International > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From jbb@spyderlab.com Thu Mar 25 15:33:15 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 10:33:15 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <613145F79272D211914B0020AFF6401907BBB1@gandalf.digicool.com> Message-ID: On Thu, 25 Mar 1999, Paul Everitt wrote: > Damn, it worked! I'll take that as a compliment :) > > This is packaged as a product, is this the best way to > > distribute this?? > > I'll get Amos to add it to the contrib area. Cool.. it still needs a bit of tweaking before getting integrated. I'd like to address some of the issues Amos brought up... > Gotta admit, I'm *really* happy to see this. Guess I have to call you > Your Most Revered Magnificenous now. Or how about just Tim? :^) Umm, no. Jordan will do just fine. heh. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From zopelist@regalint.com Thu Mar 25 16:22:58 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Thu, 25 Mar 1999 16:22:58 +0000 Subject: [Zope] Longs on the Property page References: <613145F79272D211914B0020AFF6401907BBB4@gandalf.digicool.com> Message-ID: <36FA62E2.55CE128F@regalint.com> > > >In the stock Zope 1.10.2 distro, putting a Long in a property causes a > > >curious error to manifest. When the property page is displayed, the long > > >is display like 44353L. > > > > I vote for getting rid of the "L" everywhere. It has caused me some > > problems and extra fmt attributes in my DTML, too. > > > > Hmm.. Could you please submit this in the Collector? > > http://www.zope.org/Collector I am not sure how to classify it. The original complaint was about the Properties page. My problem seems to be with values returned from MySQL - even regular integers get an L tacked on the end (This didn't happen with zope 1.9). So is this two seperate collector entries? Where does mine go - Zope, ZSQL Methods, or ZMySQLDA? What do others think? Has this shown up with other SQL DBMSes? One thing I just thought of: I moved my ZMySQLDA over from 1.9 to 1.10.2 without recompiling it. That is when I noticed this problem. Whould something have changed in the python header files or something that would have made it advisable to recompile ZMySQLDA? What did others do? Phil. From michel@digicool.com Thu Mar 25 17:01:36 1999 From: michel@digicool.com (Michel Pelletier) Date: Thu, 25 Mar 1999 12:01:36 -0500 Subject: [Zope] The Artist Formerly Known as NotMail Message-ID: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.com> Greetings, For those of you interested in the NotMail project we have some announcements. First, Digital Creations has officialy adopted NotMail as one of it's products. Second, in an attempt to make the products at least *sound* more mature :), we are changing the name. Third, in the last two weeks I have been working pretty hevily on NotMail and it has changed significantly. Therefore: NotMail is, for the interum, called The Artist Formerly Known as NotMail (TAFKAN). We still call it NotMail, but that's just our code word. TAFKAN was once a product, but now it's just a bunch of dtml methods. The actuall imap functionality that TAFKAN needs has been abstracted into another product called IMAPAdapter. IMAPAdapter is very early alpha software. It has several known bugs, and Linus knows how many unknown ones. Your millage may vary. It may light your computer on fire. It might delete all your mail and crash your imap server. It might send insults in your general direction. You get the point. IMAPAdapter is, in Zopespeak, a 'user database'. Other examples of user databases are User Folder, UserDb Folders, and etcUserFolders. IMAPAdapter walks, swims, and quacks (to quote Jim) like any other type of user database. The simplest example of using IMAPAdapter is: Create an empty folder without an 'acl_users' Add an IMAPAdapter (it will automagicly call itself 'acl_users'), telling it where to find it's imap server, what default roles to assign to users, and other misc stuff. Create a DTML Method called index_html containing the following DTML: > () Going to this file will prompt you for a username and password (assuming you've correctly set the permissions and roles). The username and password you enter here must be a valid IMAP login for your imap server. It is *not* necessary to add a Zope user to Zope, IMAPAdapter will try your uid:pwd pair against the IMAP server and validate/deny you based on the sucess or failure of making an IMAP connection. What you will see when you look at this DTML Method is a pretty #tree breakdown of all your imap namespaces, folders and subfolders. IMAPAdapter, like all other user databases, contains a validate() method that Zope calls to authenticate a user. This method returns an imapUser object (which inherits BasicUser, like most other Zope user objects). This user object is what AUTHENTICATED_USER refers to. imapUser exposes the imap API to the DTML programmer. The API is currently a very rough draft, and there are several functions that were in TAFKAN that are missing in IMAPAdapter (like the folder management stuff to add/edit/delete imap folders) At the moment, IMAPAdapter is pretty much read-only on your 'imap space'. Voila! IMAPAdapter is available in public CVS. Web CVS access will be here soon! (yippee!) -Michel From M.Faassen@vet.uu.nl Thu Mar 25 17:59:54 1999 From: M.Faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 25 Mar 1999 18:59:54 +0100 Subject: [Zope] Announcing FAQ 0.2.3 Message-ID: <36FA799A.40EED15B@pop.vet.uu.nl> Hi there, Though the ZDP FAQ hasn't moved at the relentless pace it did before this week, there's still a new version of the FAQ at zdp.zope.org. It's a fairly minor change, but you might find some things that are useful to you. Of course, if you haven't seen it yet, go rush over! Happy Zoping, Martijn From brianl@real.com Thu Mar 25 19:45:09 1999 From: brianl@real.com (Brian Lenihan) Date: Thu, 25 Mar 1999 11:45:09 -0800 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <613145F79272D211914B0020AFF6401907BBB6@gandalf.digicool.co m> Message-ID: <4.2.0.32.19990325114007.044a0e70@prognet.com> At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: >IMAPAdapter is available in public CVS. > >Web CVS access will be here soon! (yippee!) I have a Zope sandbox which I would like to use to play with new features as they become available. Unfortunately, for the past several days my sandbox server has been broken because ExtensionClass/ComputedAttribute.c is missing. Is it missing on purpose? If so, is there a way I can work around it? From jae@kavi.com Thu Mar 25 23:43:05 1999 From: jae@kavi.com (John Eikenberry) Date: Thu, 25 Mar 1999 15:43:05 -0800 (PST) Subject: [Zope] Anonymous after logging in? Message-ID: Hello, I'm having a strange problem with logged in users getting to anonymous areas of the site. Here's an simplified example to explain... Two directories off the / /private /public /private allows no access to "Anonymous User", requiring a login. There are no usernames in /acl_users. All the user info for logging into /private is kept in /private/acl_users. /public has no acl_users folder. If you start up netscape, you can get to /public without any problems. But once you've logged into /private, you can't get back to /public without getting an unauthorized error... You are not authorized to access this resource. Username and password are not correct. Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 877, in publish_module File lib/python/ZPublisher/Publish.py, line 531, in publish (Info: /MCExam) File lib/python/ZPublisher/Publish.py, line 297, in unauthorized Unauthorized: (see above) Any tips about how to fix this. Note that the login info has to stay in /private/acl_users (they can't be moved to /acl_users). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From John Eikenberry Fri Mar 26 00:50:22 1999 From: John Eikenberry (John Eikenberry) Date: Thu, 25 Mar 1999 16:50:22 -0800 (PST) Subject: [Zope] Re: Anonymous after logging in? Message-ID: > I'm having a strange problem with logged in users getting to anonymous > areas of the site. Here's an simplified example to explain... > > Two directories off the / > /private > /public > > /private allows no access to "Anonymous User", requiring a login. > > There are no usernames in /acl_users. All the user info for logging into > /private is kept in /private/acl_users. > > /public has no acl_users folder. > > If you start up netscape, you can get to /public without any problems. > But once you've logged into /private, you can't get back to /public > without getting an unauthorized error... Ok, the problem was that I had the roles defined on the top level folder and the users defined in the subfolder. By moving the roles into the subfolder, the problem went away. --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From sroberts@codeit.com Fri Mar 26 02:12:56 1999 From: sroberts@codeit.com (Scott Robertson) Date: Thu, 25 Mar 1999 18:12:56 -0800 (PST) Subject: [Zope] handling exceptions in DTML In-Reply-To: <613145F79272D211914B0020AFF6401907BBA2@gandalf.digicool.com> Message-ID: On Wed, 24 Mar 1999, Paul Everitt wrote: > > Please, stab away! If you write the try DTML tag, we'll crown you > Prince of Zope, or at least Most Honorable Potentate. Looks good on > business cards and the girls really dig it. > What crack are you smoking and do you mind shipping some to CA? --------------------------------------------------- - Scott Robertson Phone: 714.972.2299 - - CodeIt Computing Fax: 714.972.2399 - - http://codeit.com - --------------------------------------------------- From jbb@spyderlab.com Fri Mar 26 04:59:58 1999 From: jbb@spyderlab.com (Jordan B. Baker) Date: Thu, 25 Mar 1999 23:59:58 -0500 (EST) Subject: [Zope] ANNOUNCE: #try tag v0.1.0 In-Reply-To: <3.0.5.32.19990325011457.01119900@mail.aracnet.com> Message-ID: On Thu, 25 Mar 1999, Amos Latteier wrote: > At 12:32 AM 3/25/99 -0500, you wrote: > >Okay after I opened my big mouth I had to deliver. :) > > Way to go! This is a great contribution, and I'd love to see it go into the > standard distribution, assuming that you're agreeable to this. Thanks. Yes, please go ahead and use this in the standard distribution with whatever changes you feel are necessary. > I like this, but how about the fact that Python errors are classes, not > strings now? This implementation does not allow things like this: > > > > > i got me a math problem > > > Because this implementation has no notion that ZeroDivisionError is a > subclass of ArithmeticError. I'm not sure how hard it would be to get this > working, but it would be a nice addition. I suspect a matter of resolving. Probably be a two step procedure, 1) try to match the error by string exactly, otherwise 2) evaluate each handler in turn and see if the exception isa class. > Another small nit is that I think that you should use 'error_message' and > 'error_type' like standard_error_message does rather than 'errmsg' and > 'errname'. I have fixed this in 0.1.1 of the Product which is now available from the same directory as the original. I've also made some other additional fixes relating to the default error handler. Here's the file: ftp://ftp.spyderlab.com/pub/zope/Try-0.1.1.tar.gz Feel free to put this up in the contributed area on zope.org ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com From raver@box.dust.za.net Fri Mar 26 07:16:46 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 08:16:46 +0100 Subject: [Zope] URL and #tree trouble... Message-ID: <19990326081646.A10042@box.dust.za.net> Hi! A day or two since last question - now two new ones... Q1 My site is organized so that one folder keeps several other files and folders (containing files and folders and so on). Something like: Top [Folder] F1 [Folder] F2 [Folder] F2-file1 F2-file2 F2-folder1 [Folder] F2-folder2 [Folder] F2-folder2-file ... index_html (Top) has F2 index_html (F2) has F21 and Top Starting at URL: localhost/Top is fine and following links to F2 and from there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), but if I, when in F2, press the link to 'Top' something strange? happens: I get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing appended to the URL) What am I dooing wrong? Q2 Recently I got help on using the #tree tag, and apparantly everything worked all rigth, but ... I get the tree-view, can expand the tree pressing either foldernames or the '+' button - fine. But If I press the '+' button I'm not able top directly access the files appearing (404 error, file not found), I have to enter the folder first before I can get the file. This seems strange and I want to know if theres a solution to this. Heres my #tree href part: Help is much appreciated Sture Lygren From mj@antraciet.nl Fri Mar 26 08:38:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 09:38:11 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <19990326081646.A10042@box.dust.za.net> Message-ID: <4.1.19990326092509.00c28100@lisp.atmm.nl> At 08:16 26/03/99 , Raver wrote: >Q1 > [SNIP]... > >index_html (Top) has F2 >index_html (F2) has F21 and Top > >Starting at URL: localhost/Top is fine and following links to F2 and from >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), >but if I, when in F2, press the link to 'Top' something strange? happens: I >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing >appended to the URL) > >What am I dooing wrong? > You're URL is a relative one. The browser sees 'Top', and requests the object Top with the current Base URL, which is localhost/Top/F2/. And because of Aquisition, Top.F2.Top exists.... And so will Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. >Q2 > >Recently I got help on using the #tree tag, and apparantly everything worked >all rigth, but ... > >I get the tree-view, can expand the tree pressing either foldernames or the >'+' button - fine. But If I press the '+' button I'm not able top directly >access the files appearing (404 error, file not found), I have to enter the >folder first before I can get the file. This seems strange and I want to >know if theres a solution to this. > >Heres my #tree href part: > > > >Help is much appreciated Your URL should include the realitve path to the subfolder. the var tree-item-url gives you the URL to the current object, relative to the base object. Your code should read (untested): Or words to that effect.. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Fri Mar 26 08:38:22 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Fri, 26 Mar 1999 08:38:22 -0000 Subject: [Zope] The Artist Formerly Known as NotMail References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: <001801be7764$024a95f0$5c773fc1@media1> Oh good, it's not just me. I also tried the cvs version last night and was getting the same problem, Computed attribute is not an includeable library, or something along those lines 8^). Phil phil@philh.org ----- Original Message ----- From: Brian Lenihan To: Michel Pelletier Cc: Sent: Thursday, March 25, 1999 7:45 PM Subject: Re: [Zope] The Artist Formerly Known as NotMail > At 12:01 PM 3/25/99 -0500, Michel Pelletier wrote: > > > >IMAPAdapter is available in public CVS. > > > >Web CVS access will be here soon! (yippee!) > > I have a Zope sandbox which I would like to use to play with new features > as they become available. Unfortunately, for the past several days my > sandbox server has been broken because ExtensionClass/ComputedAttribute.c > is missing. > > Is it missing on purpose? If so, is there a way I can work around it? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd2@earthling.net Fri Mar 26 09:59:33 1999 From: phd2@earthling.net (Oleg Broytmann) Date: Fri, 26 Mar 1999 12:59:33 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <19990323114004.J8268@amber.org> Message-ID: Hello. Continuing the subject... Next question. If Zope opens one connection to a database, how does Zope manage concurrency? Currently, when two CGIs run in parallel, every CGI opens its own connection to the database, lock neccessary tables, and Postgres manage concurrency very good (even detecting deadlocks). Next Postgres version (6,5) will have Multi-version Concurrency Control. But all this is for different sessions. Zope opens only one session. Is it a problem with concurrency? Oleg. ---- Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net Programmers don't die, they just GOSUB without RETURN. From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 10:08:43 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 11:08:43 +0100 Subject: [Zope] Unusual question Message-ID: <3.0.1.32.19990326110843.00908ce0@poirot> Hi, This is (I think) an unusual question on this thread, but I want to ask it. We are at the start of making an intranet, which will contain a database of procedures (how to handle some examinations etc). We want to make it able that people can query this database and get the information they want on there web-browser. A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) would be the solution to this problem. This on a RedHat Linux 5.2 system with Apache as web-server. But now we've seen Zope. I'm wondering..., can Zope do the same things as PHP3? Or is this a complete different application? How stand Zope and PHP3 next to each other? I believe PHP3 is a scripting language... I'm wondering : is Zope also only a scripting language? Or is it more? Is the scripting language (=Python?) more powerfull then Zope) Are there people, using PHP3 next to Zope? ps. Has Zope the capability to easely make these scripts? I mean not text-based , but in a certain IDE or RAD application? Please, say in some simple words what Zope is and for what it can be used... I've read the web-page. But since I'm a stupid person in this field of webservers I can't understand what they are explaining. Thanks in advance. Kind regards, Tom. From panda@skinnyhippo.com Fri Mar 26 10:55:38 1999 From: panda@skinnyhippo.com (chas) Date: Fri, 26 Mar 1999 18:55:38 +0800 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <3.0.5.32.19990326185538.0093de20@mail.skinnyhippo.com> Hi zoppelgangers, I have several applications built 100% with python CGI scripts that I'd like to run on Zope. The reason for this are : a) For the better performance (I was worried about the scalability of CGI for high-availability and knew I had to move to FastCGI or the equivalent) b) I really really like the way Zope takes care of the CGI variable handling (ie. declaring the HTML form fields as arguments in the python method). However, I don't really want to use DTML at all. The reasons is that I find it much harder to read than pure Python. This is just a personal aesthetic thing and no criticism of Zope at all (full kudos to Digicool on an excellent application). It's just coding aesthetic : I like it all kept in Python, like servlets in java (as opposed to CFML, ASP etc). So, I've put all of my CGI scripts in a newly-created extensions directory and registered them via the Zope web-manager. It was, as the documentation says, incredibly simple and it seems to work for simple methods. (I'll declare my own packages later). Now, if I just use External Methods like this (using my own ex-CGI Python scripts to query databases, IMAP etc), am I missing out on any of Zope's main benefits ? In particular, the cache management ? Would I have to turn my stuff into a Zope Product to get these benefits ? (I've not had too much joy with the Product stuff yet) chas From chsrinfo@guetali.fr Fri Mar 26 11:47:52 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 15:47:52 +0400 Subject: [Zope] external methods Message-ID: <000501be777e$83130900$147800a0@pc-pi0> Hello, I'm confused with external methods. Please help. I want an external method to access its context (for the purpose of acquisition, etc.). So I write: def myExtMethod(self): pass Within myExtMethod, I should be able to: - write self.REQUEST to access the current REQUEST object (I need to be able to modify the current REQUEST object with self.REQUEST.set(...)) - or for example self.myzsqlmethod() to call a zsql method object, right??? Let's suppose that myExtMethod is: def myExtMethod(self): l=[] for i in self.l: l.append(i+1) self.REQUEST.set('l', l) Now, how can I call this method from DTML? All don't work. I end up in a traceback. "read only class, buffer" Any hints? Jepthe CLAIN Service Informatique CHSR From mj@antraciet.nl Fri Mar 26 11:54:34 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 12:54:34 +0100 Subject: [Zope] Database connections In-Reply-To: References: <19990323114004.J8268@amber.org> Message-ID: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> At 10:59 26/03/99 , Oleg Broytmann wrote: >Hello. > > Continuing the subject... > Next question. If Zope opens one connection to a database, how does Zope >manage concurrency? > Currently, when two CGIs run in parallel, every CGI opens its own >connection to the database, lock neccessary tables, and Postgres manage >concurrency very good (even detecting deadlocks). Next Postgres version >(6,5) will have Multi-version Concurrency Control. But all this is for >different sessions. Zope opens only one session. Is it a problem with >concurrency? Zope manages concurrency by being single-threaded... so only one query at a time, on ANY connection... -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From tony.mcdonald@ncl.ac.uk Fri Mar 26 10:45:17 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 10:45:17 +0000 Subject: [Zope] The Artist Formerly Known as NotMail In-Reply-To: <001801be7764$024a95f0$5c773fc1@media1> References: <4.2.0.32.19990325114007.044a0e70@prognet.com> Message-ID: > Oh good, it's not just me. > > I also tried the cvs version last night and was getting the same problem, > Computed attribute is not an includeable library, or something along those > lines 8^). > > Phil > phil@philh.org I get, 35 % cvs -z7 -q up -P -d ? var/Data.bbb ? var/serve.log ? var/gadfly ? var/Data.bbb.trans M ZopeHTTPServer/ZopeHTTPServer.py cvs [server aborted]: cannot open directory /cvs-repository/Components/GreyThing/webdav: No such file or directory i.e. the same kind of error message....but different. tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From phd@sun.med.ru Fri Mar 26 12:01:44 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:01:44 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Zope manages concurrency by being single-threaded... so only one query at a > time, on ANY connection... What about ZServer? It will be single-threaded too? Isn't it possible to run Zope multithreaded? > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From sfranke@cdc-group.com Fri Mar 26 12:06:42 1999 From: sfranke@cdc-group.com (Stefan Franke) Date: Fri, 26 Mar 1999 13:06:42 +0100 Subject: [Zope] AW: [Zope] external methods Message-ID: <01E40461E003D21195CC0080296495D80B12F7@gates.cdc-group.com> Hi Jepthe, First, if you want to acces the REQUEST object, you need to declare it as a formal parameter: def myExtMethod(self, REQUEST): ... REQUEST is then passed automatically by Zope's internal magic, which looks up formal parameter names and matches them to arguments from HTML forms, HTTP Headers, etc. The "read only class, buffer" traceback is due to a very annoying bug in ExternalMethod.py and screws up any other error messages in external methods. I can't remember exactly if it was in line 254 or 256 in ExternalMethod.py, but here's the code I use to fix it: ExternalMethod.py, from line 254 if type(error_type) is type('') and lower(error_type) in ('redirect',): raise error_type, error_value, tb if (type(error_value) is type('') and regex.search('[a-zA-Z]>', error_value) > 0): error_message=error_value else: error_message='' With that you should get better error messages. Regards, Stefan PS: should be both OK Service Informatique CHSR wrote: > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? > > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" > > Any hints? > > Jepthe CLAIN > Service Informatique CHSR > From eq3pvl@eq.uc.pt Fri Mar 26 12:11:23 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:11:23 +0000 Subject: [Zope] Unusual question References: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: <36FB796B.DF7AD3CC@eq.uc.pt> Tom Deprez wrote: > > Please, say in some simple words what Zope is and for what it can be > used... Tom, There are probably other guys here that can give you a better comparison between zope and php3. I never used php3 but I used ASP (the microsoft stuff), which is similar (though worst than php3 :-). With Zope you get a server markup language (called DTML) which you can mix with HTML. This concept makes it even easier to program than mixing a scripting language with HTML like php3 and asp do. From what you said I guess you will just need this kind of programming... so Zope will be a better choice than php3. But with Zope you also get *the best* scripting language available: Python. You can add logic to your application by writing external methods or products. This kind of extension is much more powerful than php3, although maybe a bit more complex. Zope also has a great IDE for managing your site through the web. Although I cannot tell you which one is better, if you give Zope a run try and, ... if my instinct is correct, you will want no other thing. hope it helps, pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From tony.mcdonald@ncl.ac.uk Fri Mar 26 11:15:52 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 11:15:52 +0000 Subject: [Zope] Unusual question In-Reply-To: <3.0.1.32.19990326110843.00908ce0@poirot> Message-ID: Tom, I've cc'ed to the list as this may be useful to others... > > We are at the start of making an intranet, which will contain a database of > procedures (how to handle some examinations etc). We want to make it able > that people can query this database and get the information they want on > there web-browser. ie a relatively standard web application > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can Zope do the same > things as PHP3? Or is this a complete different application? How stand Zope > and PHP3 next to each other? I've used PHP3 since it was PHP/FI and done lots of work in it. It's database integration is excellent and the ability to include PHP3 code into an HTML document and have it 'executed' is really neat (I think CGI's are ugly, whereas code in the delivered doc itself is elegant - my opinion, YMMV). I've run PHP on Solaris and Linux, and used a lot of the contributed code. Since I found out about Zope, I've desubscribed myself from the PHP lists and been focussing on Zope almost entirely. I posted a message a while ago 'Tough Questions about Zope' and got some excellent answers, for more details I'd check it out in the archives. > I believe PHP3 is a scripting language... I'm wondering : is Zope also only > a scripting language? Or is it more? Is the scripting language (=Python?) > more powerfull then Zope) PHP3 is a scripting language, and is relatively easy to get started in. I may get a 16-ton weight dropped on me (in joke) but I think that if you're used to scripting languages already, you may get your application up and running faster in PHP3, as Zope scripting ('DTML') requires a bit of a mind-flip. However, once your application gets more complex, I think you'll find that Zope will start to pull ahead of PHP3 and eventually pull very far ahead. The list of things that Zope provides 'out-of-the-box', which are very difficult to do in PHP3 is pretty long; access permissions (at varying levels) at a per-directory and per-'object' level, editing of web pages online, *undo* - yes, undo!, and versions are the things that come to mind initially. There are many others. Obviously, there are some things in PHP3 that are a bit 'unusual' in Zope too (setting variables for instance! :) The scripting language of Zope is Python - I've bought several Python books (personal rec: Internet Programming in Python by Watters, van Rossum and Ahlstrom - top geezers in the Python world) and have found it to be quite a beautiful language. You can't install Python programs 'directly' into your DTML document, but 'External Methods' seem quite easy to write. Once you become familiar with 'Products' and what *they* can do, your jaw *will* drop. > Are there people, using PHP3 next to Zope? This is a question I asked. The upshot is that it's pretty difficult to do in seemless way with current implementations of Apache (ie more or less impossible) but that a later version will do that. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? I would say, yes. I would suggest reading the FAQ, then the documentation, reading the documentation again (especially the DTML and ZSQL documents), read it once more and then if you do decide to try Zope over PHP3, have a go at your application. I think that it's highly likely that you will be able to get by with just some DTML and a database connection. I'm not knocking the documentation here - the DigiCool guys (and gals?) have relatively recently embraced the open-source concept and seem to be doing 10 things at once. > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person in this field > of webservers I can't understand what they are explaining. I don't think you're stupid at all! :) There are some new and unusual concepts in Zope that many people will not be familiar with (particularly if you're coming from a 'traditional' web-publishing environment). If it helps, I've been in contact with several other people, both here in the UK and elsewhere who are *extremely* excited about what Zope is and what it can do. > Thanks in advance. > Kind regards, Tom. You're welcome - I got a lot of help starting out, just trying to pass it along... :) tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From eq3pvl@eq.uc.pt Fri Mar 26 12:24:44 1999 From: eq3pvl@eq.uc.pt (Pedro Vale Lima) Date: Fri, 26 Mar 1999 12:24:44 +0000 Subject: [Zope] external methods References: <000501be777e$83130900$147800a0@pc-pi0> Message-ID: <36FB7C8C.27BE4D44@eq.uc.pt> Service Informatique CHSR wrote: > > Hello, > > I'm confused with external methods. Please help. > > I want an external method to access its context (for the > purpose of acquisition, etc.). So I write: > > def myExtMethod(self): > pass > Within myExtMethod, I should be able to: > - write self.REQUEST to access the current REQUEST object (I > need to be able to modify the current REQUEST object with > self.REQUEST.set(...)) > - or for example self.myzsqlmethod() to call a zsql method object, > right??? yes, I guess your are right. > Let's suppose that myExtMethod is: > > def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) Maybe It's self.l that causes the error. It's hard to understand what you want, but I feel it should be for i in l > Now, how can I call this method from DTML? > > > > > > All don't work. I end up in a traceback. "read only class, buffer" Maybe I can help you with this. The traceback you get is probably the standard error raise in ExternalMethods. To debug external methods I use try/except/raise code blocks and when I get an exception I return it to the screen. Something like this def mymethod(self): try: mycode except: import sys return sys.exc_type, sys.exc_value return something pedro -- Pedro Vale Lima eq3pvl@eq.uc.pt From mj@antraciet.nl Fri Mar 26 12:43:11 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Fri, 26 Mar 1999 13:43:11 +0100 Subject: [Zope] Database connections In-Reply-To: References: <4.1.19990326125324.00c5ce60@lisp.atmm.nl> Message-ID: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> At 13:01 26/03/99 , Oleg Broytmann wrote: >On Fri, 26 Mar 1999, Martijn Pieters wrote: >> Zope manages concurrency by being single-threaded... so only one query at a >> time, on ANY connection... > > What about ZServer? It will be single-threaded too? Isn't it possible to >run Zope multithreaded? > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because the BoboPOS (cuurent version 2) doesn't support concurrent access. The all new ZODB 3 will support this, and then Zope can (will?) become multithreaded as well. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phd@sun.med.ru Fri Mar 26 12:47:37 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Fri, 26 Mar 1999 15:47:37 +0300 (MSK) Subject: [Zope] Database connections In-Reply-To: <4.1.19990326133519.00c0dc70@lisp.atmm.nl> Message-ID: On Fri, 26 Mar 1999, Martijn Pieters wrote: > Not yet. ZServer is multithreaded, but Zope itself isn't. This is because > the BoboPOS (cuurent version 2) doesn't support concurrent access. The all > new ZODB 3 will support this, and then Zope can (will?) become > multithreaded as well. So I have some time before I'll see problems with concurrent access to SQL server! :) > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From webman@beehive.de Fri Mar 26 13:07:14 1999 From: webman@beehive.de (WWW Admin) Date: Fri, 26 Mar 1999 14:07:14 +0100 (CET) Subject: [Zope] dtml: string to atoi? Message-ID: hi, anybody know whether i convert a string to integer (atoi) via a dtml tag? regards, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From chsrinfo@guetali.fr Fri Mar 26 13:15:53 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Fri, 26 Mar 1999 17:15:53 +0400 Subject: [Zope] external methods Message-ID: <000401be778a$e630c2a0$147800a0@pc-pi0> Ok, I'm dumb. After some digging, I found that the problem lies in the expression 'self.l' 'self.' gives access to the object hierarchy, not the variables namespace. So, I solved my problem by writing 'self.REQUEST['l']' instead of 'self.l' Also, I think that this should be clearly documented. Apparently, the only way to acess variables namespaces in external methods is through self.REQUEST This confuses a 'normal' python user whose variable namespace is usually accessed through self. Can someone confirm (or infirm?) this? >Hello, > >I'm confused with external methods. Please help. > >I want an external method to access its context (for the >purpose of acquisition, etc.). So I write: > >def myExtMethod(self): > pass > >Within myExtMethod, I should be able to: >- write self.REQUEST to access the current REQUEST object (I >need to be able to modify the current REQUEST object with >self.REQUEST.set(...)) >- or for example self.myzsqlmethod() to call a zsql method object, >right??? > >Let's suppose that myExtMethod is: > >def myExtMethod(self): > l=[] > for i in self.l: > l.append(i+1) > self.REQUEST.set('l', l) > >Now, how can I call this method from DTML? > > > > > >All don't work. I end up in a traceback. "read only class, buffer" > >Any hints? Regards, Jephte CLAIN, Service Informatique PS: I have been looking for an explanation of the problem for two weeks, until I wrote to the mailing list, and voila! I found the cause of the problem myself :-) One can never be better served than by oneself... From gilles.lavaux@esrin.esa.it Fri Mar 26 13:19:00 1999 From: gilles.lavaux@esrin.esa.it (Gilles.Lavaux) Date: Fri, 26 Mar 1999 14:19:00 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <01be778b$35fa2ce0$fce3ccc1@asgard.esrin.esa.it> Hello This workd for me: Another things I have already asked: how to do the same assigment on a date with a formating(to get only the year for ex.): ???????? Thanks for any help. Gilles lavaux -----Original Message----- From: WWW Admin To: zope@zope.org Date: Friday, March 26, 1999 4:15 PM Subject: [Zope] dtml: string to atoi? >hi, > >anybody know whether i convert a string to integer (atoi) via a dtml >tag? > >regards, > >webman > >--------------------------------------------------------------------------- >webman | _ >beehive GmbH | ASCII ribbon campaign ( ) >berlin, Germany | - against HTML email X >http://www.beehive.de | & vcards / \ > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://www.zope.org/mailman/listinfo/zope > >(For developer-specific issues, use the companion list, >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From hoekstra@fswrul.fsw.leidenuniv.nl Fri Mar 26 13:19:26 1999 From: hoekstra@fswrul.fsw.leidenuniv.nl (Rik Hoekstra) Date: Fri, 26 Mar 1999 14:19:26 +0100 Subject: [Zope] dtml: string to atoi? Message-ID: <000401be778b$458ed2a0$154ae584@bibf12> -----Original Message----- From: Rik Hoekstra [mailto:fghoekstra@cit10.wsd.leidenuniv.nl] Sent: vrijdag 26 maart 1999 14:17 To: WWW Admin Subject: RE: [Zope] dtml: string to atoi? > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of WWW > Admin > Sent: vrijdag 26 maart 1999 14:07 > To: zope@zope.org > Subject: [Zope] dtml: string to atoi? > > > hi, > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > try: Rik Hoekstra From WWW Admin Fri Mar 26 13:29:00 1999 From: WWW Admin (WWW Admin) Date: Fri, 26 Mar 1999 14:29:00 +0100 (CET) Subject: [Zope] 7 minute response time! thank you rik and gilles Message-ID: hi, a big thank you to gilles and rik for answering my dtml string to atoi question. never been on a mailinglist that had a 7 minute question- to-response time! cheers, webman --------------------------------------------------------------------------- webman | _ beehive GmbH | ASCII ribbon campaign ( ) berlin, Germany | - against HTML email X http://www.beehive.de | & vcards / \ From Paul@digicool.com Fri Mar 26 13:44:12 1999 From: Paul@digicool.com (Paul Everitt) Date: Fri, 26 Mar 1999 08:44:12 -0500 Subject: [Zope] external methods Message-ID: <613145F79272D211914B0020AFF6401907BBC1@gandalf.digicool.com> > After some digging, I found that the problem lies in > the expression 'self.l' > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > in external methods is through self.REQUEST > This confuses a 'normal' python user whose variable > namespace is usually accessed through self. I believe that you can just ask for it in your function signature: def my_method(self,l): return l + ' is cool!' --Paul From raver@box.dust.za.net Fri Mar 26 13:55:42 1999 From: raver@box.dust.za.net (Raver) Date: Fri, 26 Mar 1999 14:55:42 +0100 Subject: [Zope] URL and #tree trouble... In-Reply-To: <4.1.19990326092509.00c28100@lisp.atmm.nl>; from Martijn Pieters on Fri, Mar 26, 1999 at 09:38:11AM +0100 References: <19990326081646.A10042@box.dust.za.net> <4.1.19990326092509.00c28100@lisp.atmm.nl> Message-ID: <19990326145542.A11439@box.dust.za.net> On Fri, Mar 26, 1999 at 09:38:11AM +0100, Martijn Pieters wrote: > At 08:16 26/03/99 , Raver wrote: > >Q1 > > > [SNIP]... > > > >index_html (Top) has F2 > >index_html (F2) has F21 and Top > > > >Starting at URL: localhost/Top is fine and following links to F2 and from > >there on to F2-folder is correct (URL beeing localhost/Tope/F2/F2-folder1), > >but if I, when in F2, press the link to 'Top' something strange? happens: I > >get to Top all rigth, but the URL is now localhost/Top/F2/Top (Top beeing > >appended to the URL) > > > >What am I dooing wrong? > > > > You're URL is a relative one. The browser sees 'Top', and requests the > object Top with the current Base URL, which is localhost/Top/F2/. And > because of Aquisition, Top.F2.Top exists.... And so will > Top.F2.Top.F2.Top.F2.... which can get you into a nice caching problem. > > > >Q2 > > > >Recently I got help on using the #tree tag, and apparantly everything worked > >all rigth, but ... > > > >I get the tree-view, can expand the tree pressing either foldernames or the > >'+' button - fine. But If I press the '+' button I'm not able top directly > >access the files appearing (404 error, file not found), I have to enter the > >folder first before I can get the file. This seems strange and I want to > >know if theres a solution to this. > > > >Heres my #tree href part: > > > > > > > >Help is much appreciated > > Your URL should include the realitve path to the subfolder. the var > tree-item-url gives you the URL to the current object, relative to the base > object. > > Your code should read (untested): > > > Or words to that effect.. > did the trick! Thanks! > > -- > Martijn Pieters, Web Developer > | Antraciet http://www.antraciet.nl > | Tel: +31-35-6254545 Fax: +31-35-6254555 > | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj > | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 > ------------------------------------------ > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From zopelist@regalint.com Fri Mar 26 14:11:38 1999 From: zopelist@regalint.com (Philip Aylesworth) Date: Fri, 26 Mar 1999 14:11:38 +0000 Subject: [Zope] dtml: string to atoi? References: Message-ID: <36FB959A.7907C2CF@regalint.com> > > anybody know whether i convert a string to integer (atoi) via a dtml > tag? > Pg 9 of DTML ref. Use something like " Phil. From pavlos@gaaros.msrc.sunysb.edu Fri Mar 26 14:28:51 1999 From: pavlos@gaaros.msrc.sunysb.edu (Pavlos Christoforou) Date: Fri, 26 Mar 1999 09:28:51 -0500 (EST) Subject: [Zope] external methods In-Reply-To: <000401be778a$e630c2a0$147800a0@pc-pi0> Message-ID: On Fri, 26 Mar 1999, Service Informatique CHSR wrote: > > 'self.' gives access to the object hierarchy, not the variables > namespace. > > So, I solved my problem by writing 'self.REQUEST['l']' > instead of 'self.l' > > Also, I think that this should be clearly documented. > Apparently, the only way to acess variables namespaces > Jephte In your external method l is a local variable. You can access it by simply referencing it. something like def spammethod: l=[] for i in [1,2]: l.append(i) return l Pavlos From michel@digicool.com Fri Mar 26 14:43:11 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:43:11 -0500 Subject: [Zope] Unusual question Message-ID: <613145F79272D211914B0020AFF6401907BBC2@gandalf.digicool.com> > -----Original Message----- > From: Tom Deprez [mailto:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Friday, March 26, 1999 5:09 AM > To: zope@zope.org > Subject: [Zope] Unusual question > > > Hi, > > This is (I think) an unusual question on this thread, but I > want to ask it. > > We are at the start of making an intranet, which will contain > a database of > procedures (how to handle some examinations etc). We want to > make it able > that people can query this database and get the information > they want on > there web-browser. > cool. > A day ago, we were confinced that PostgresSql with PHP3 (www.PHP3.org) > would be the solution to this problem. This on a RedHat Linux > 5.2 system > with Apache as > web-server. But now we've seen Zope. I'm wondering..., can > Zope do the same > things as PHP3? It can do the same thing, and more. This isn't a hack on PHP3, but Zope has many more components and widgets out of the box. It's also object oriented, which helps when your components scales, or when you want your application to suddenly be stitched into four other application six months from now that you didn't forsee. >Or is this a complete different application? PHP has it's niche. Tony 'tone' McDonald mentioned that he thought code inside HTML is elegant, and it is, but it's even more elegent when that code is for the layout of your user interface only. Mixing application code with HTML, or worse yet, making your entire HTML document one huge script, is not so elegent. > How stand Zope > and PHP3 next to each other? > > I believe PHP3 is a scripting language... I'm wondering : is > Zope also only > a scripting language? Or is it more? Is the scripting > language (=Python?) > more powerfull then Zope) Zope is an Application written in a scripting language (Python) that is based on several components also written in Python and C. One of the components of Zope is Document Templates (DTML) which is also a scripting language. It's a bit complex, much more so than PHP's underlying system. Tony also mentioned that PHPs database itegration is excellent, and I'd like to add that Zope's is also top notch. A particular nice thing about Zope is it's database abstraction layer, what we call Database Adapters. You can write program for any SQL server and just change the DA when you change databases. Or your app could use two databases transparently; the DTML programmer wouldn't need to know which database is being queried, it would just be a case of calling the write SQL methods. This also give some compartmentalization. Your Python expert writes your external methods, your SQL expert manages DAs and writes ZSQL Methods, and your DTML/user interface expert uses all of these methods to layout the application. > > Are there people, using PHP3 next to Zope? > Comming soon. The problem is (rumor has it) that Apache sends Zopes output directly back to the browser, not giving it a change to run through any other handlers, like the PHP one. > ps. Has Zope the capability to easely make these scripts? I mean not > text-based , but in a certain IDE or RAD application? > There is a web based interface. The (IMO) ultimate programmer interface is emacs, which can use Zope with FTP (if your using ZServer). > Please, say in some simple words what Zope is and for what it can be > used... I've read the web-page. But since I'm a stupid person > in this field > of webservers I can't understand what they are explaining. > Whew. Zope is a web application platform. It is a framework for writing applications over the web. It is more than this, because it supports more protocols than HTTP, but for your purposes you can call it a web app platform. Zope provides you with a standard set of services that your application can build on. Services include DTML, trasparent persistence of your data, interface to databases, a management interface for developing and managing your application, and a whole slew of out of the box objects for you to use (like documents, files, methods, DAs, mail transport, etc...) Many people have mentioned Python in responses to your question. Python is an incredible language, but I think the application you described can be done easily in Zope with no Python at all. All you need is DTML, some ZSQL Methods, and a good design and your done. -Michel > Thanks in advance. > > Kind regards, Tom. > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From michel@digicool.com Fri Mar 26 14:49:47 1999 From: michel@digicool.com (Michel Pelletier) Date: Fri, 26 Mar 1999 09:49:47 -0500 Subject: [Zope] Limitations of just using External Methods ? Message-ID: <613145F79272D211914B0020AFF6401907BBC3@gandalf.digicool.com> > -----Original Message----- > From: chas [mailto:panda@skinnyhippo.com] > Sent: Friday, March 26, 1999 5:56 AM > To: zope@zope.org > Subject: [Zope] Limitations of just using External Methods ? > > > Hi zoppelgangers, > Ha! I like this, are you by change a Peak Freak? > I have several applications built 100% with python CGI > scripts that I'd like to run on Zope. The reason for > this are : > a) For the better performance (I was worried about > the scalability of CGI for high-availability and > knew I had to move to FastCGI or the equivalent) > b) I really really like the way Zope takes care of > the CGI variable handling (ie. declaring the > HTML form fields as arguments in the python method). > > However, I don't really want to use DTML at all. > The reasons is that I find it much harder to read > than pure Python. This is just a personal aesthetic > thing and no criticism of Zope at all (full kudos to > Digicool on an excellent application). It's just > coding aesthetic : I like it all kept in Python, > like servlets in java (as opposed to CFML, ASP etc). > > So, I've put all of my CGI scripts in a newly-created > extensions directory and registered them via the > Zope web-manager. It was, as the documentation says, > incredibly simple and it seems to work for simple > methods. (I'll declare my own packages later). > > Now, if I just use External Methods like this (using my > own ex-CGI Python scripts to query databases, IMAP etc), > am I missing out on any of Zope's main benefits ? > In particular, the cache management ? > Would I have to turn my stuff into a Zope Product to > get these benefits ? (I've not had too much joy with > the Product stuff yet) > These 'benefits' you feel you might be missing out on you might not need. One of Zope's best features is the fact that you can just use the components you want. In fact, it sounds like you may just need ZPublisher by itself. If you go to our site and look at the Components section you'll see where you can download it. ZPublisher is just the ORB part of Zope, it traverses your python module and calls your methods based on the URL. Now, you can still USE Zope with these application you write. Even if you write a pure ZPublisher application, you can then plug that application right into Zope with the External Objects product available in the contributed area. -Michel > chas > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From daren@partners-dsi.com Fri Mar 26 16:22:39 1999 From: daren@partners-dsi.com (Daren Sefcik) Date: Fri, 26 Mar 1999 08:22:39 -0800 (PST) Subject: [Zope] ZMySQLDA Problem Message-ID: <199903261622.IAA23532@partners.partners-dsi.com> I am trying to use the ZMySQL component on a Solaris 251 machine, I have Pyhton 151 installed from sources and MySQL 3.22.16 from sources. Zope,Python and MySQL all work fine and the ZMySQL module compiled fine but when I try to "import" it from python I get the following error: Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umodd i3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 I also tried it from a FreeBSD machine with pretty much the same result. Any ideas.???? TIA Daren From tony.mcdonald@ncl.ac.uk Fri Mar 26 15:55:09 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 26 Mar 1999 15:55:09 +0000 Subject: [Zope] Anyone using '-roman' in next-sequence tags? Message-ID: Hi all, just thought I'd check my sanity here... the way to get roman numerals showing up as the label on a batch object is : (Previous results) isn't it? - I get a NameError, with the following traceback ('sub' is nowhere in my document btw) .... cheers tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From Tom.Deprez@uz.kuleuven.ac.be Fri Mar 26 19:03:38 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 26 Mar 1999 20:03:38 +0100 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990326200338.009363e0@poirot> Hi, Thanks to all the reply I got for my question PHP3 or Zope. I'm wanting to give it a try, but .... I've RedHat 5.2 installed with running Apache I'm trying to install Zope, but am expiering some problems : I've downloaded the binary and installed it into /usr/local/dc/Zope-1.10.2 installed it with ./install -sAdmin:Admin the var directory of Zope is permissioned for nobody (done by Zope) As in the manual, Zope created access with Admin:Admin, but it says login with Zope:Admin copied the Zope.cgi to the directory /home/httpd/cgi-bin I want to use it with Apache so I had something to change in the conf file of Apache... Apache has 3 conf files. At the moment it is written in all 3 of the files (because none of them work!). This is the piece of script I've written : (from WEBSERVER.txt) #Zope configuration maps /Zopz/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] When trying to browse to http://localhost/cgi-bin/manage I get the password dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... What am I doing wrong????? -------------------------------------- Now try to use ZopeHTTPServer I can't find anywhere the file serve.sh BUT I tried to start it with start then going to webbrowser http://localhost:9673/manage I get a message of DNS problem etc... So not even a question of password... ---------------- Can somebody tell me what I've done wrong? I want to get it to work with Apache... What do I've to do? Thanks in advance, Tom. From eq3nmf@eq.uc.pt Fri Mar 26 19:31:40 1999 From: eq3nmf@eq.uc.pt (Nuno Maltez) Date: Fri, 26 Mar 1999 19:31:40 +0000 Subject: [Zope] Possible bug in Zope References: Message-ID: <36FBE09C.A209B3FE@eq.uc.pt> Hi, I noticed that if you're browsing two different Zope sites using the same Netscape, the management tree on the second one is incorrectly displayed (the COLSPAN is increased by two). Has anyone noticed this before? regards, Nuno From ShawH@STHS.org Fri Mar 26 21:10:53 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Fri, 26 Mar 1999 15:10:53 -0600 Subject: [Zope] ANNOUNCE: Counter1.0 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_000_01BE77CD.21DA8700 Content-Type: text/plain Ok, I've updated the package to remove the bug that killed it after the first shutdown/cache loss. The _v_ technique certainly served to prevent the saving of the variable, so when the system came back up, before I use the _v_ variable I was testing it to make sure it was higher than the stored value. I added a test to make certain that it exists... Is there a way to register a function (or some __func__) that gets called the the instance is reloaded? It seems fairly stable now, so I'm calling this 1.0. Please send bug reports to shawh@sths.org. BTW, has anyone actually tested this other than me? I thought from the comments I had read on the list that there were a fair number of people who were perturbed at the lack of a counter in Zope. Was I wrong? Am I flogging a dead horse here? <> Howard C. Shaw III Programmer/SysAdmin St. Thomas High School ------ =_NextPart_000_01BE77CD.21DA8700 Content-Type: application/octet-stream; name="Counter1.0.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Counter1.0.tar.gz" Content-Description: Counter1.0.tar H4sIAKn4+zYAA+w8S3AbR3YNgKQIiPpYWvmzXm/a1LoAriGQ4Ae0uQRtWR+LG4vSipTtJVfBDjFN YKTBDDw9EJe2VKjEvuSwp1QOqb2lctikUqmtyjUHX1I5+55Kcsklh6QqN582773u+QHgxyQl72Y5 ssmentev33v9fv2jbW1Otnf8putM3vVcs1P35eQ1t+P4wptkx/Tw2an5+TnOOD5TPb/1C69U5ivz 87PT0zOcl2dn5iuMzx0XAXs9HekbHufMc11/L7j9vv+ePvYe419Xv6+aZsn0W/ah+yhPTVVmZ3cd /+nZ8pwa/+n5yuzULIz//OzsDONTx8jnrs8f+PgvNmFkl3KcLzaFYS4t+pZviyUYcq61YHFSVS1O EgBCbrrmDt9s1F3b9arjl2/SM46fcjiei83pJAJ4pw/q65brtbhR9y3XqY63DMdoiJphmhp6nLcE aKNZHb97Z3VtXDWEVr6xaQteF7Yt20bdchrV8Wn4ms1lF30PfiNIkxu21QCsH9y4uTbOH+u3tTt3 x5eWTWCkqQHNPQBzPPYsWk6743N/py3g842PAdgxWlC2zHEurU+hNDeVaAO9gJCy8Mv7BtQtitbS Gop5cRJKx0opjd5BiP0mtF5rivojvnyXX5bccExuWvKTDgBt7XBPtIXhy3eOn5M6dlqz2jLGDeLp QHFHyOPhbKXT2hQed7eAO8l9F/hpCax6Bgw5ndYu7JTnjoebW+42BxPb4U3Ll3xTgO0JLo3HYD/I m98U3DTAtAwpngF/257lg237AxicOaAimkv6k37Z9JYS3a3ef+/28lqIFtzO+FICGfkdLKP/UK+L k+iCyJNNoitbyoGLIi/4bTvjb+HZK/7XapZj+bVaqb1zpD72if98vlIO4n+5XMH4X5mrTJ/E/+fx 1GqmW6/VeJXn83k98Nw3GhyH3gKb/9TASA0fc7ktz23x5RYE7JsWBGOr1XY9P6rI5XSNRtPzumY0 cjkI7kYNTVdWC2SMn+XRV+QXeNB5vkj1eZUh4Ie+HOEmmG+eoJ4q4AlCDFmDrH6mWg9usxDQUkp+ KO7SaGCD3FOey9VqRr3WFl7LkhLIlLWa5qeQj6U+UuaLUBPhvevaNlFS7KnMT0wUdftrTcNpiBAF Ygg+Ip+WrNcCLushmeEgFILKUsPayhcbtrtp2DLE8LTXx+1l/wHvRzT//ex/vjw7red/lcrM3Dza /+z8/In9P49H2+jV+icdS1pocrmwqi6kvOY6vufaQeWdm6vKDbyvFCtwArfWbn+A6lfkt6ER6OJ1 8B1uo8jvggpb0heOr9pdd+udFrytiVbbNnxRur5Wu+9bdoDoh7uDrfoe5i0aUL3lcnXbkDKwFmWD MWZKy9Deqlu+Uv+ImqKGjPFYuufagn7cJtv0FAywXFqFTm2x7ItWCX8oY1xQRphXrkhToCrBByCp BtfGyC2QlON3gKbHopQjmDWXd6SIYIp8x+1wRwgTUzPwC/AJHbHO09pAEUFsG45PNdSOUCF8G9Ju 6McphbIjx80h1wFo6L9uOJABwnsHEnbLIRSRawYjV/Mz6Xa8OoDBYGpCr3nChPRxgX8E+RzIjm/u cEgsDQ/8nA1cQSerTWObLy8vJ/JC/h6klSaHz3XXFNjKl4bnGO8Kx7Tqrleqw0AXrhk2vBuahokk hjXwhY8oDf+x1eI3OzZ0BjrVtGyrza/u2EJugy40aQ5y26o3DWHDGNu28C1w1AlUKAfDkduClKi1 wz/pCIkSwpFBUVstYe8Qpqaw21sdGzNnB9xfLhxnKmC8wnAZOF9VCww51Tx55971Ew0Rhr5qGOr0 BxUJ3DZRA3Ek+1neNjaFnV/Ig0+GKAPcQBwIQ2IQO1qG5eQhBMbgV0W9A6O0MwDaIF3PP81lJ1S/ A2NYtpD/0BLbmihUIy7rnhAOEBBGMkimZRTCiAwMMNkweMWwxpppCopJ2DDuh3CoboC+boNGwwTJ BouFV8upe0RQ2GACmmhTDZEi8YiqIWJw+EkzbYotYFwKH9w+TE5qBSnsrSK9aIMmI/Cnq1QX1lhb vAC1paYha4/ETiEPbqBdoxEG3hdwgoLIbWy6Ef/4IJeNvE5pUNfTE9k4bSrnVh8tsxrqWZFm8rH3 cD5cze+gfujpZDVfnssXg7lXNT8zl0f6EF/JMkFzLVO/EUKooN+6LnBYVT4VtKEBgIqNBwFM0DFU RkQoKjSIpgUABEzNCvp1Qn8NiAs+B+/B99rjWiRBIiZOW8JqUPmqQfQJk58bpEFR8hPJN65UJGOU zfj4+DWsl+QUiV1aAMDlje0m+BX03x2pPLOwrZblwAgGSx3QOiGqKggq7C+m0mpISdjR2AWjFg5Y MQgH92785P6N1bXqiusITSRiiVw/6AB49abhgaWDVwNnVo/RorQlMbThUO09aNW9hqw6cMA0Peqj ftllMKuJocyCXWlGUcaO63PkV9uTJ/yO5yRTCnBRWW0JOMrChAlDNttSINX8ooRQ7jSW3pCLk7rI wWYh8kHgEtSglOdvcG0O2FY5SnTppcm4S4NPMcUJHEpcaaAuPhxqFYKGAN0FMgNdG77vqaHP94hC OY6DSAl0Dv3PAMDFOOBB0Wm5DoKMuaKkw1Us8JapeQ+/xiXwu897wp8nrCLm/gmgXW2ZG3mtnPkH WLx9Z+1G7er16/fAqydhtYuMeYEkAEizjXmG+pbsKdL0RLWwpegHDLvShTf5htV+0A8G7EFeVVBQ E3yJxy18oh/vIOQbC1fKD5Ql4hN3cZrHvUy8p/LNstKMgSN5JTGSAbWhlwmHdq8OcrnkpL4/KkBW ngwKqOVRoyDk7u+ie1wzCgdDiCcwKkRJv0GJNkR7G6Y3Pg2/LyGR99Bqbrq2qfVxDQzI8BqUtPM8 UpHn2xY0gnR9k9L1cA4Qa1oK+lUWG4gmYOYAfKhkW8kS0pI7mw9F3ceGoQfXqjTYQ8e9SMxvakeh 20z8IS6q/h49B9j/xTB7pA3gfdZ/Zmbm9f7vzNRsZaaM+7+V2amT9Z/n8Qze/8UhP+wG8OLrV65c fgwyjU0Wr1xZyoV7w0nk+28OY9b2rLaFn+PGa7BHFcqHAEAye+yEhbXBVlbwerwbtHHMz3aflpiH iBLCAP8wA6FqTHjg1XHpbdLaGiyb2NuRRHSgnd7jlczuG76hUmiQZ8v6IbeFj1cYe+wOh9IIYA4g Dn4Ua+l4lFjdChzTs7ON4JTL7jyPhzPNifFnzPd1PcjHyHjARZDYX9mf/MNv92MkOdnvP9JzgPwP dxKP1Md++//lIP+brkzPzc7h/l9lunyS/z2P5/3lm2+9bZxn59lf/5b9Fh7Gvvzyy7t37zIqKKDX vx5KMTbMiviCsO9m3vt44V//4Tdj7z769Z99+dM3v/73kbe+95d//to/n/nq+r0/bZem2p1//MH/ /NPff/W3XxXGs7n7v/6P//5o7N+8v/jVmX8pLpfvX66k/+vTi+xH3x7bJ49+DrD/r3bmjtDHPvZf qZTng/nf9ExlGh1CuXyy//9cnuewKQ/6E66RxbfKcXd7QU8LMW0Ils02DK8hH0SZw4baGTVs7uuO aUP5QdRysq43kcN55j14FZ6MFuNKtMo2GFOwNS5+IeodX5i0VyyMelMthVsNtXgXX+mnpT3cU7dt gN+2INWS4rHwAHVHCtw8hiTIwhxE6v3jD4N3zbJCW7Ag7dyYuvL2g4kFXQUJONACEzYgcEeYCrrt SoIFKCjS0QacuVCLIkcV9unAgc89q9H0iT6iFWttseWr1UJkgQBarvQDziSirFbLmtAty5MhYcUy ElbGRUBiXyfKYUvaLwP0iK9IS9Z8SuO5qlc0A4YD0RUkKQmgpZ10dysu2GK4zWa7dRyf2CkF7tIC ZSnYoDA6NtEQ7ojqjiUd1gj64bTDxfOOm4cuocxbwnAkN10n79P2YyfoJ1CK/h4QhcYe7XsM7MAU Pu59OwJ3DgVg9RJ6g8u6hAaGOMSEGtQUDlci9Uh1hbknFTd+YSCTC6TVasT8bZcbMI+zTEBpgWYW FVNNy4P5v2i5DtAL3NFOJordSAyLPmrSEI7w1DJ2wzPaTUQUo57OWoChACZug50GnYO+ETawe60d pQGWHaxRAxF+LZohaBuOZgwHa6kHuuq4AQ6ceFDnx4E0Gh/VQy6a4IA1jCu+wVEo4xmP/NWi1Wpw 6dWr45NahDKgQ0720blpNUzMsMfjHeilkEMhVNLvxaiWU+Ius0cyv2OnfMiD9R/06T3Fk0T0DY/0 hHsnfUd6yELBAz3Co2GW0zEU1iovTOx2VEPBx7fWfERbxJ0dCS5aBLvMCm5jKtq0ox2UCECXSgow CYXIAKRteFLU4KfRkgXVQaDM+Xwx0GEsRkqcz0/kksh6jlc0BISRRq0QnTCJJDLRQ6xysb0NVTW2 Q1c1kTxdEDnO3mbhl3wx2TC++U6gStJKrlAPzjsmb7DKUEbhOR2E7dnujO9bIewGwkSj0b/vqhuo DvtPBAQ7h3pvPBiIlrkRl/KDcMMscYwFESmPX3NoQTLEVQyiOziYonKzMUYcWUWycdVbqCYJklWA rmoUiU+YSlQJaaJa+bOq+p34MhHX1ZZZqrU7sllYxo1Npy6uW3W/4EjiPqZgvreTFCJ2qhlVil2I qz01D+G3LMjR7B4E1LPbLpST3qMNmWZYEQxtLjtYuDI+UqEoq4E6BsMJn0vRKlwIiJ6+HCMSBFWd igyjqk+C4rPdxBPyBWdpqkf5aECq4E8LDn+Dl6eSzDhVZ7I8lagKTlM4fIn3IovIKCdlrThK6tVg jXpT9ipHFf5/s9wv0h6JDpJkeKgitOgeggcJuueYSVwPQnzKsexix75XsF2nUdh7FCcm1HGGoPWu Zt4vOklEEWythik/3ZdQILncZb6s9/jjiR6mU+qogb2Ty6l5EYZCCECm3Aj96gNAFE2Tcs9/RfKA 93/qR+kD5/+V3ef/5emZmeD8/+xMGfd/K/Mn93+fz/NXK2dyvvd1hQZ4GP6Xfwc/uvBfipmMrUMh wx6lmJ1iqe4we5Rm62nWHWGPMmw9w7qjrMnYkJliaTPNFofMDBSG2OJWiq0Pse5Z+irSzBqG+gwA YHkEysNscf0U615k5ggzTzFzlG2l8T8zy7aYLq+Psu7LCgPQkmMiyz5n7PM0ND8NzXPMHGOrhTNI 83fhR2xVoefykjwVfZZDUKbIeQkKA68JyRH4ovag5QuDgCT2mbjmIy8k4IJrPvJsX7U8h7Qkr/jI 01AXW2wnevX7SgE/Uo2+qiWzUA7v+yR4y0Vl8Cb0Gl24ImJ6OM0lqgiXvkhFHPWfECcQfYRKorrQ ifcCKo8sw4/JptsSk58a7ckDOhaZglbvpBhRN5bOpbOpbPr7I68Pvz78rFX/5GEHvf91JPe/j/8v T09NTfX6/8rM3In/fx4P+v/f/DLu/3/FAv//SPn/NPr/9RQFAuX+h9D920PMHmb2iIoLp5g9CiUI DFlm56A0iuFDMGadZmKEgQe3xph1hmEAOMusc2xriEHY+IKhT//p+nnWbTEBVWkmXtBufv0C67pM QIzIsC+Agu8wCC2rBSIy5vWIcogpTF4EX6L6RbJfZd3XsAuk/I8QMVL+OiLDwHVZBa4hFYuGTAxK p9giVY4GlVlVibEIolkBgxCEHoDVwWqM4lWKymeYeZaZ55h5nm1lmPkC1UPhAjMvahhgeX2YdSeZ +R1kfH2EdeeQQvzvRWa+xMyXmXmJfTHMMDa+wwTw8koU9iDida8y87vU9jTr3mACCHiVZHOGddeY +T36dJZ115n5GpXPsXurhe+jxP4ThBNffT+5qBY9/68uqsWzB5XkDLqU1pc3RDfNKK7ThTJKTGJH e+OZ0SgUg9tmlBAlLnnJl6Bml4tkcax4OJBSjf6LY5QR9GRKsZY01GPIauxGjzwPFb0XxYhVfU+M 0j+ki3iOJov1NMvQP3kd3d8k606xJyn2FFxGmT0Bn5VGK/08xdyz4NumsQreqw5mxTPMzzBriD1h WA2GmgIPtFpIA6IV6iY6pV5AAZJ86Q6YzFBpmijUK1ZqMMIbY8Ri/NYYcYBz1AI1Dt4GIMXwebB8 LAr0fd1NMhrpTCqbupg6m6qPkKsFOT1BOc2xbgXlBC81eJ1HAWAZxPYWCgjL4GzfZg1GZfCiC+xJ Br3xQwUJ/vBHzB9hT4ZQulgDrm+RaoaDGpgHVLFgZeg1y0i+yOaKhc6fON4RsoCikyh3y0wKho5a JgwDB0LrDObT4XlEaoe7QgStT+ORCIKzaJTB99w9UOMadqlJiHpOdrEr5kON2CiNmEqo5xhZQCY1 pv9doH+BgIiw8hz9mpmLTzvwJFUdlFmN7Ys4tldZ9z3WvRYMHYUppdUSD24c4cLcisISiisai0Iq 8eHQGhz3CVcVwkwqk6qfYvgPOPwb5PAG695k3fdjCnxLG/bDUI2X0bhBY7UqggL/mGpCdQUF/mOq CdUVwvoHpK4jgT7fZk9GmJ9lD7PMzYPHWGF+Dm0AchHIQCDXeEJ50otqMvw5y6yiY4E8ZLWAmiPH USf3vfsXjnKkdyhZdUtOz+3olpz8AZQPclEu7u/RxSfux60UxgJnpjoLh+2bGlTcLgcYF33X10kI G94/IXoSFwO11RVO9bnFb2SDcWLiHR9KF3vi1Q1GsQ5VMTDNC6lzqfOpyPSqqJhrrHufdT8ktSCd gvDzkDH3IujOR/pd2SQFoI814GpkoZdUdOu/nbjSEzZ2k3fg2I7BIEdjkXYtCCeZ1IsQUCDsDim+ RzB3X2fdDdb92UC+H/Tz/Sc6KLifw0sNzRgE8ArY1SsYt3+ubfApBCCDAlOGPRxh7mkA3kTTW3Vu QdHEevjaSLGXEFQw/1Rk8NYoezjE3AsAuEWBa4id5gBG/TeoKVk8vVuacAB6SZHZfZjg5WX8lSWM yNKj6CO4GjL5TDDBuRRPZOLDmFDK01QOryWuWDhcKgwedIR77AK1p2UqW2rHoySqDSTAuxpOYagv BA7EcygVOst607p1Jr8fU6QzqRfApM6nTqfPp14Bozqfvph6LVXAYJhYOwtX/7CAf7OB2I8WyWIL dvrvMey2ENaXl8XjML0E9w8Ta2a9GXVfBhs6uN5cN25GAwSi1uAOJd3YVGBUraVmL2bSWfo3M3zr 1NjIq7lL6bGhc+fGRig9je5TQkQdhYwQDLiGjstlXY91feYzCqpkcxAqMTYOs6cQCTvaqPDrKcqV u48pOOYoOL4E79s6GmI6PYIgKhiGrq2D1H4bVy11wItPnA6b6MXtLzQZlGx0D3Nw1OtRn8Jon9Ed lpygqzhph9Km5Jqyy6gik8mkXwU7PZ9aKaBrI0Zif6dHLanH/xoPOZw7N1eJIP3XhpJm1Z8B9Eyd XobX3Y420rrzD0nZdz/WSH5LF7Hr4I8JkcTxDwUpBxz9xSCiIPpjQQRHhbjSxN3BgDX5cKyTgjyC fQdL7OgNx2Ail4VhyKVy6bK4lD7w+d8jLAHvs/5bLlfme9Z/52emKifrv8/jwfXf//1Cr/+SI7nK Yuu/tO2XxnVfOwOlIZx6b7H4yi3MiD7FlVuRwV0+3AWkJIZQJfejqAtMc+Un2MVQsFD7Ni4B6IXa RcSOC7VLiApXMDM4Q8MVYEaLsLcxu8IyzLt+glMnvZD6c1yWxTIEGQdnUVgeZRBdxChbz+IyKPnK X44kl0FPDiGfHEI+OYR8cgj55BDyySHkb+UQcjzhrqfZMMyngvXJJdwE1KsaP8vgZsRT+AlB8F2c VFksWF6/yvxhvaquVxQzGBlNXMTI6HXMa3o1BGFok0IvTV4P6ocwgP5fe+fX2zQMRXE7bdJ2pNuo YKwPAx7gadLEBPQJ8TohRNHoQ+EBaaJDojCljFXThJgiwXfjc+FzrvPHSRijRQiJWFrVJp7j63Nt xz/ftOa4ebX0sw1Cas/6pbOWwqP2lsLnVw48QChOT+ZCJHVll9cjl0SEysIlXZ5jBmahNkY0W+dg HZYPgZZbaokRLlH+qhoIY3EA9OWqcF/95v23+JoDBx4rGgBwsabveJv6pp5g64kcbADh90iiyYZA vGTjCQzqSUKMjEeMImy4P8Uqe0QpcJs/LFjmGJHsMKUQBHZLVHOBClbkWNj0nDZ7ojYs73nccqPN ADnmxi4eWhI/tQTvedE2VtKSpbSueVrpWmFz5h1iUSPc3cJnyZbCup74qiVd9ius2FfxC9IP3iN/ YWdDz7Q7Bg3Tzfrn5tZ1DFOnLTVvA45AYQ8i6/iV+twHCJ132BIr9tx5oMamISweZTDFoS//8Vq9 BAkNbEuhgYd0Y47B7GtmduARThfsrAIKGTvXSbRGKLkLzn9SAhs2SlkhjjMmnG6djwvnEt0J+nY6 E9kyr8jA7laVeJeohhSzqLK5Kkq0736yh3bX73uB7mvI3ASqbpnR2Qj9HUIfEConndEIMW1gPQS3 fQPpgZInUB/j9SEcALK/VWcxXsUxwIEjkmW4gYcxeMOUZLQGWubn6yjwXZY/nHUJmnGFplDn95mj GCcQ4PaNzO0GLvmB/idw+/iR0uP4COfEWXyO3mhAGcLpGvB1iTp00FTm/ok2DpHUFKMskqjT4Og7 z8lZavdq/S8uNituUflXi9U4ORAE2tCbRCUdHah1S5i7+pbuwROwbWE8AQ9Fm9VmPLOeMNsyenxM NirELZr2jaZYxzzpq9m2+fAJ29zYbcjnbzPah++Nalduj6KrJutcydaBZBplAQZVxN+dbKu1KwPk /GQpIQTCJhFbX4bPhQB5r0q7RTUJ0vIjSw9Ny2+Zv21PLK0k+r1kEnee2XKxfP4+odAuJX+sMDNX M1uuPA0gbG6ZuSU70lQn18yBzsMGQ2HDThiEzXAtXA3bblww5fqjiLMQPtzm1eSJheUsTAAkrtXV K97GqarTv5EuEvEUKH0W7czPliOfv3j+A7/3l/7+3+6DAeN/B/X3//2VlGCt3Z179dch1alOdarT f5R+AGnTMxgAeAAA ------ =_NextPart_000_01BE77CD.21DA8700-- From jim@digicool.com Fri Mar 26 21:36:49 1999 From: jim@digicool.com (Jim Fulton) Date: Fri, 26 Mar 1999 16:36:49 -0500 Subject: [Zope] Method icons Message-ID: <36FBFDF1.23E9F89A@digicool.com> Hi all. Here's a minor issue I'd like to get some opinions on. There are some ideas in Zope that cross object types in Zope, like folders, methods, and content. We reinforce the idea of folders by giving folders icons derived from folder icons. I'd like to do the same thing for methods. The basic idea is that there should be some basic icon that indicates that something is a method. It should be possible to decorate the icon to indicate a particular type of method, such as adding angle brackets for DTML or adding a table grid for SQL, or OO (or glasses ;) for Python. Note that one complication is that the image should fit in a 16x16 icon. I've put some ideas at: http://www.zope.org/methodIcons I'm curious what folks think of these and whether anyone has any better ideas. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From phil@philh.org Sat Mar 27 00:30:03 1999 From: phil@philh.org (Phil Harris) Date: Sat, 27 Mar 1999 00:30:03 -0000 Subject: [Zope] installing Zope References: <3.0.1.32.19990326200338.009363e0@poirot> Message-ID: <001101be77e8$ffc87d80$0202a8c0@typhoon> Hi Tom, Try this:- RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Notice the underscores, where you had hyphens. HTH Phil phil@philh.org ----- Original Message ----- From: Tom Deprez To: Sent: 26 March 1999 19:03 Subject: [Zope] installing Zope > Hi, > > Thanks to all the reply I got for my question PHP3 or Zope. > > I'm wanting to give it a try, but .... > > I've RedHat 5.2 installed with running Apache > > I'm trying to install Zope, but am expiering some problems : > > I've downloaded the binary and installed it into > > /usr/local/dc/Zope-1.10.2 > > installed it with ./install -sAdmin:Admin > > the var directory of Zope is permissioned for nobody (done by Zope) > > As in the manual, Zope created access with Admin:Admin, but it says login > with Zope:Admin > > copied the Zope.cgi to the directory /home/httpd/cgi-bin > > I want to use it with Apache so I had something to change in the conf file > of Apache... Apache has 3 conf files. At the moment it is written in all 3 > of the files (because none of them work!). > > This is the piece of script I've written : (from WEBSERVER.txt) > > #Zope configuration maps /Zopz/ to the Zope.cgi CGI script > > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 > [e=HTTP-CGI-AUTHORIZATION:%1, t=application/x-httpd-cgi,l)] > > When trying to browse to http://localhost/cgi-bin/manage I get the password > dialog... I enter Admin , Admin and am refused (same with Zope, Admin) .... > > What am I doing wrong????? > > -------------------------------------- > > Now try to use ZopeHTTPServer > > I can't find anywhere the file serve.sh > > BUT I tried to start it with start > > then going to webbrowser http://localhost:9673/manage > > I get a message of DNS problem etc... > > So not even a question of password... > > ---------------- > > > Can somebody tell me what I've done wrong? I want to get it to work with > Apache... What do I've to do? > > Thanks in advance, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From phd@sun.med.ru Sat Mar 27 15:44:42 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Sat, 27 Mar 1999 18:44:42 +0300 (MSK) Subject: [Zope] Zope info on postgresql.org Message-ID: Hello! I am creating a record on Zope on postgresql.org: http://www.postgresql.org/software/detail.cgi?oid=3440544 I need a short informative description on Zope. Something like "Zope is opensource web application platform - software complex for creating highly dynamic web-sites". What is contact e-mail? I wrote zope@zope.org. Shouldn't it be info@digicool.com? Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From daren@sefcik.cc Sat Mar 27 17:49:12 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sat, 27 Mar 1999 09:49:12 -0800 (PST) Subject: [Zope] Zope+FreeBSD.??? Message-ID: Has anybody gotton Zope and FreeBSD to work..?? I cannot get it working and have read some posts to same extent, if anybody has it working could you be kind enough to share your setup details?? TIA, Daren From martin@dougiamas.com Sun Mar 28 13:59:27 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Sun, 28 Mar 1999 21:59:27 +0800 Subject: [Zope] Automatically creating instances for each user? Message-ID: <36FE35BD.AEBBC507@dougiamas.com> Hi, I'm new to Zope, but I'm eagerly learning it. I like the paradigm - it seems to fit the way I think. This is my first post here. I've hit a snag, and I'm hoping someone more experienced can point me in the best direction. I'm developing an application that needs user-modifiable pages. I already have a Zope form where the user can edit text properties of an object, and another page that displays those properties as HTML. My problem is, I want each authenticated user to be editing their own instance of this object, and I also want the URL to be the same for each user. eg fred sees http://host/mypage as fred's editable page mary sees http://host/mypage as mary's editable page What is the best approach I should take to achieve this in DTML? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent is == i see ### Centre for Educational Advancement ### Curtin University of Technology ### http://cea.curtin.edu/staff/martin From daren@sefcik.cc Sun Mar 28 17:31:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 09:31:27 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? Message-ID: What does the ZMySQLDB Database Connection String want to connect to a database?? Could someone please provide an example of what I need to use to create a Z MySQL Database Connection...suppose I have MySQL running with a database named "webdb" and user "joe" with password "password" can accsess it. I am a bit confused as to what ZMySQLDB is asking for. TIA, Daren From kristian@vilmann.com Sun Mar 28 16:59:23 1999 From: kristian@vilmann.com (Kristian Vilmann) Date: Sun, 28 Mar 1999 18:59:23 +0200 Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: (message from Daren Sefcik on Sun, 28 Mar 1999 09:31:27 -0800 (PST)) References: Message-ID: <199903281659.SAA00997@supernaut.strangeparty.dk> Daren writes: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? Yes, the documentation is a bit unclear about this. > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. > You'll need a Database Connection String like this: "webdb joe password". /kristian -- Kristian Vilmann - kristian@vilmann.com Disclaimer -- These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d ^X ^? exitX Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^vi man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d !! man help ^C ^c :e! help exit ?Quit ?q CtrlShftDel "Hey, what does Stop L1A d..." From tsarna@endicor.com Sun Mar 28 18:07:08 1999 From: tsarna@endicor.com (Ty Sarna) Date: 28 Mar 1999 18:07:08 GMT Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: Message-ID: <922644428.678749@zoo-of-death.endicor.com> In article , Daren Sefcik wrote: > What does the ZMySQLDB Database Connection String want to connect to a > database?? dbname[@hostname] [user [password]] > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. "webdb joe password" should work if the database is running on the same machine. From daren@sefcik.cc Sun Mar 28 18:18:45 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Sun, 28 Mar 1999 10:18:45 -0800 (PST) Subject: [Zope] ZMySQLDB Connection String?? In-Reply-To: <922644428.678749@zoo-of-death.endicor.com> Message-ID: > dbname[@hostname] [user [password]] Works like a charm!! Thanks to all who helped me with this! Daren From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 08:25:24 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 10:25:24 +0200 Subject: [Zope] installing Zope Message-ID: <3.0.1.32.19990329102524.0097e170@poirot> Hi all, Well, now I don't understand it anymore.... Just back from the weekend (where on Friday I had these installation problems) Now went to the Zope directory and what did I saw? The 'Start' and 'Stop'. I wrote ./Start and then surfed to the correct address and it works! Why did'nt it worked on Friday? The whole weekend searching for a solution and then it appears it isn't needed... (almost) But, still I would like to work with Apache... Why? Because I've heard it's the best in web-servers... (I don't know it's through, but I believe it) Or is the comming ZServer better? Now, I believe I have to recompile apache again to make it ready for Zope, isn't it? I thought I only had to put it in one of the configuration files, but instead you've to write that script in the ./configure file. Kind Regards, Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:03:26 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:03:26 +0200 Subject: [Zope] external databases Message-ID: <3.0.1.32.19990329110326.009816b0@poirot> Hi again, I've a Postgress database with some data I want to use with Zope. So I've to install an external driver. Is it so that I've to recompile Zope? This means that I've to download the source and not the binaries of Zope, like I did... Isn't there a simpler way? Because when I need to recompile, I've do download also all the correct libraries of each program... sghh. Please, let there be a simpler method. Thanks in advance. Tom. From Tom.Deprez@uz.kuleuven.ac.be Mon Mar 29 09:22:48 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Mon, 29 Mar 1999 11:22:48 +0200 Subject: [Zope] examples Message-ID: <3.0.1.32.19990329112248.00979a00@poirot> Hi, Can you send me an url where I can see your work? So I can get the idea (especially database related) what is possible with Zope. TIA Tom. From martin@dougiamas.com Mon Mar 29 09:22:48 1999 From: martin@dougiamas.com (Martin Dougiamas) Date: Mon, 29 Mar 1999 09:22:48 +0000 Subject: [Zope] Usernames in ZopeHTTP logs Message-ID: <36FF4668.5BAA002D@dougiamas.com> I found Zope's HTTP logs at: ...zope/var/server.errors which is what I need to monitor the server, but they don't appear to be including usernames (just a '-' in that field). How can I turn logging of usernames on? Cheers, Martin -- ### Martin Dougiamas -- Internet Agent ### Centre for Educational Advancement is == i see ### http://cea.curtin.edu/staff/martin From phd@sun.med.ru Mon Mar 29 09:27:15 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 13:27:15 +0400 (MSD) Subject: [Zope] external databases In-Reply-To: <3.0.1.32.19990329110326.009816b0@poirot> Message-ID: Hello! On Mon, 29 Mar 1999, Tom Deprez wrote: > I've a Postgress database with some data I want to use with Zope. So I've > to install an external driver. You need to install and compile ZPygres Database Adapter and add it as described in ZPygresDA docs. You don't need to recompile Zope. > Is it so that I've to recompile Zope? This means that I've to download the > source and not the binaries of Zope, like I did... Isn't there a simpler way? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From mj@antraciet.nl Mon Mar 29 09:41:44 1999 From: mj@antraciet.nl (Martijn Pieters) Date: Mon, 29 Mar 1999 11:41:44 +0200 Subject: [Zope] Automatically creating instances for each user? In-Reply-To: <36FE35BD.AEBBC507@dougiamas.com> Message-ID: <4.1.19990329113945.00c38de0@lisp.atmm.nl> At 15:59 28/03/99 , Martin Dougiamas wrote: >Hi, > >I'm new to Zope, but I'm eagerly learning it. I like the >paradigm - it seems to fit the way I think. > >This is my first post here. I've hit a snag, and I'm hoping >someone more experienced can point me in the best direction. > >I'm developing an application that needs user-modifiable pages. >I already have a Zope form where the user can edit text properties >of an object, and another page that displays those properties as HTML. > >My problem is, I want each authenticated user to be editing their >own instance of this object, and I also want the URL to be the >same for each user. > >eg fred sees http://host/mypage as fred's editable page > mary sees http://host/mypage as mary's editable page > >What is the best approach I should take to achieve this in DTML? AUTHENTICATED_USER.getUserName() returns the name of the current user. You could use this in the DTML of mypage to select the object you are working on. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ From phil@media-1.ml.uwcm.ac.uk Mon Mar 29 10:37:46 1999 From: phil@media-1.ml.uwcm.ac.uk (Phil Harris) Date: Mon, 29 Mar 1999 11:37:46 +0100 Subject: [Zope] (no subject) Message-ID: <00e301be79d0$2f6a32c0$5c773fc1@media1> Hi all, I'm using Zope 1.10 with IIS 4.0 on an NT box. All is working well, I just have one small query which is slightly off topic, maybe. The URL for Zope is 'http://localhost/scripts/z.exe' and I would like it to be 'http://localhost/z/', I know that with Apache I could do a rewrite and this works great with Apache, but does anyone know how I would do something similar with IIS. TIA Phil Harris Mail Phil@philh.org IRC Efnet #Zope #PHP WWW www.philh.org From chsrinfo@guetali.fr Mon Mar 29 10:57:36 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 14:57:36 +0400 Subject: [Zope] external methods Message-ID: <002801be79d3$29f169a0$147800a0@pc-pi0> Hello, >> After some digging, I found that the problem lies in >> the expression 'self.l' >> >> 'self.' gives access to the object hierarchy, not the variables >> namespace. >> >> So, I solved my problem by writing 'self.REQUEST['l']' >> instead of 'self.l' >> >> Also, I think that this should be clearly documented. >> Apparently, the only way to acess variables namespaces >> in external methods is through self.REQUEST >> This confuses a 'normal' python user whose variable >> namespace is usually accessed through self. > >I believe that you can just ask for it in your function signature: > >def my_method(self,l): > return l + ' is cool!' Nope, With that definition, my_method expect to be called with the arguments set, eg to display "Zope is cool". However, I want to get the variable l from the namespace. (application variables made with REQUEST.set, Folder or document properties, etc.) The question was: is self.REQUEST the only way to access the variable namespace? And the only way to *modify* the variable namespace from external methods (with self.REQUEST.set)? By the way, I'd like to thank Stefan Franke and Pedro Vale Lima who gave me a pretty quick answer. I did find the answer before they wrote, but anyway, a thank is not that expensive :-) Also, thanks to Paul who gave me such a useless answer. :-) (just kidding) Regards, Jephte CLAIN Service Informatique CHSR From Paul@digicool.com Mon Mar 29 13:04:07 1999 From: Paul@digicool.com (Paul Everitt) Date: Mon, 29 Mar 1999 08:04:07 -0500 Subject: [Zope] Zope info on postgresql.org Message-ID: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Oleg wrote: > I need a short informative description on Zope. Something > like "Zope is > opensource web application platform - software complex for > creating highly > dynamic web-sites". Thanks Oleg! Try this: "Zope is a free, Open Source(tm) application server for creating powerful, dynamic web sites such as community portals." > What is contact e-mail? I wrote zope@zope.org. Shouldn't it be > info@digicool.com? Yes, info@digicool.com. --Paul From chsrinfo@guetali.fr Mon Mar 29 13:23:48 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 17:23:48 +0400 Subject: [Zope] error in pcgi Message-ID: <003601be79e7$80d806c0$147800a0@pc-pi0> Hello, my site was working great when suddenly, I got a "Temporarily unavailable" message. The pcgi.log reads: unexpected out-of-bound data in stdin t[0]=60 several times. I suppose this means that something is writing to the stream read by pcgi. I didn't do anything other than uploading new versions of my DTML Documents to the site. (I have done this all the aternoon long). Have you already seen this behavior? Does someone have an idea of where to start to find the problem? Regards, Jephte CLAIN, Service Informatique CHSR From phd@sun.med.ru Mon Mar 29 13:11:55 1999 From: phd@sun.med.ru (Oleg Broytmann) Date: Mon, 29 Mar 1999 17:11:55 +0400 (MSD) Subject: [Zope] Zope info on postgresql.org In-Reply-To: <613145F79272D211914B0020AFF6401907BBD5@gandalf.digicool.com> Message-ID: Hi! On Mon, 29 Mar 1999, Paul Everitt wrote: > "Zope is a free, Open Source(tm) application server for creating > powerful, dynamic web sites such as community portals." > > Yes, info@digicool.com. Thanks. Updated: http://www.postgresql.org/software/tools.cgi > --Paul > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN. From jeffbauer@bigfoot.com Mon Mar 29 13:58:03 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Mon, 29 Mar 1999 07:58:03 -0600 Subject: [Zope] error in pcgi Message-ID: <36FF86EB.5F5BC6FF@rubic.com> Service Informatique CHSR wrote: > my site was working great when suddenly, I got a > "Temporarily unavailable" message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is > writing to the stream read by pcgi. I didn't do anything > other than uploading new versions of my DTML Documents > to the site. (I have done this all the aternoon long). > > Have you already seen this behavior? Does someone have > an idea of where to start to find the problem? The error occurs because a value is appearing in a pcgi reserved header record, possibly because your application is sending something to stdout. I'm not sure where to tell you to start looking, but if *all* you have done is uploaded .dtml files to trigger the error, that's probably the place to start. I'm honestly confused why this should happen. Jeff Bauer Rubicon, Inc. From Brian@digicool.com Mon Mar 29 14:12:01 1999 From: Brian@digicool.com (Brian Lloyd) Date: Mon, 29 Mar 1999 09:12:01 -0500 Subject: [Zope] error in pcgi Message-ID: <613145F79272D211914B0020AFF64019FDBD@gandalf.digicool.com> > Hello, > > my site was working great when suddenly, I got a "Temporarily > unavailable" > message. > The pcgi.log reads: > > unexpected out-of-bound data in stdin t[0]=60 > > several times. I suppose this means that something is writing to the > stream read by pcgi. I didn't do anything other than > uploading new versions > of my DTML Documents to the site. (I have done this all the > aternoon long). > > Have you already seen this behavior? Does someone have an idea of > where to start to find the problem? > > Regards, > > Jephte CLAIN, > Service Informatique CHSR Usually this means that the Zope process is unable to start up for some reason (an import error, syntax error, etc.). I'm not sure how changing DTML document objects could cause this, though. You didn't happen to change any DTML that is read from the disk (e.g., HTMLFile objects used from Zope, installed products or external methods) did you? If so, there is probably a dtml syntax error that is being raised at startup time. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From chsrinfo@guetali.fr Mon Mar 29 15:31:59 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Mon, 29 Mar 1999 19:31:59 +0400 Subject: [Zope] error in pcgi Message-ID: <000a01be79f9$4e7bb3e0$147800a0@pc-pi0> >> my site was working great when suddenly, I got a "Temporarily >> unavailable" >> message. >> The pcgi.log reads: >> >> unexpected out-of-bound data in stdin t[0]=60 >> >Usually this means that the Zope process is unable to start up >for some reason (an import error, syntax error, etc.). I'm not >sure how changing DTML document objects could cause this, though. >You didn't happen to change any DTML that is read from the disk >(e.g., HTMLFile objects used from Zope, installed products or >external methods) did you? If so, there is probably a dtml syntax >error that is being raised at startup time. You are positively right. I stupidly wrote notice the non-named parameter after a named parameter. I haven't tried it yet with other publishing mechanisms (ZServer, ZopeHTTPServer, which don't use PCGI), but if these servers also dies for such oddities, this might be a bug in error handling. Stay tuned for more informations. Many thanks to Brian and Jeff who took the time to respond to me. Regards, Jephte CLAIN Service Informatique CHSR From tsarna@endicor.com Mon Mar 29 16:59:39 1999 From: tsarna@endicor.com (Ty Sarna) Date: 29 Mar 1999 16:59:39 GMT Subject: [Zope] cgi_module_publish cookie prsing errors? Message-ID: <922726779.752530@zoo-of-death.endicor.com> All of my "real" sites are still running under Principia. Recently a number users of these sites have had their machines upgraded. Those now using the latest versions of IE and Netscape are unable to access the sites now unless they turn off cookies, or they get an error in cgi_module_publish to do with parsing cookies. (I'm still trying to get someone to send me the actual error text). Anyone out there using Principia still? Have you seen this? Anyone using Zope seen this? From michel@digicool.com Mon Mar 29 17:14:30 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 12:14:30 -0500 Subject: [Zope] Browse the Zope CVS through the web Message-ID: <613145F79272D211914B0020AFF6401907BBDA@gandalf.digicool.com> Greetings, As promised, it is possible now to browse the Zope public CVS repository through the web. If you're interested in looking at the latest Zope developments, this is a good place to start without having the check out your own copy. This site is also handy for viewing the various evolutions of Zope, and for getting pretty colored diffs between versions. If you want to know the difference between two recent versions of a certain file, cvsweb will show you in glaring full color. The web view of the Zope CVS is more fragmentary the the view you get with the 'cvs' command. If you want to check Zope out of the public cvs, it is recommended you just check out 'Zope', which is an options not shown on the web cvs. The public CVS uses its module file to stitch together the various components that can be seen on the web view into a Zope distribution. Complete instructions on how to do this can be found at: http://www.zope.org/Community/CVS_public_access The web interface can be found at: http://www.zope.org/cgi-bin/cvsweb.cgi In case you're curious, this is not a Zope module but a CGI script written in Perl. It can be found at: http://linux.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi -Michel From michel@digicool.com Mon Mar 29 20:48:08 1999 From: michel@digicool.com (Michel Pelletier) Date: Mon, 29 Mar 1999 15:48:08 -0500 Subject: [Zope] Test Message-ID: <613145F79272D211914B0020AFF6401907BBDB@gandalf.digicool.com> ing. From neves@inf.puc-rio.br Mon Mar 29 22:31:52 1999 From: neves@inf.puc-rio.br (Paulo Eduardo Neves) Date: Mon, 29 Mar 1999 19:31:52 -0300 Subject: [Zope] ZMySQLDB Connection String?? References: Message-ID: <36FFFF58.38A1239E@inf.puc-rio.br> Daren Sefcik wrote: > > What does the ZMySQLDB Database Connection String want to connect to a > database?? > Could someone please provide an example of what I need to use to create a > Z MySQL Database Connection...suppose I have MySQL running with a database > named "webdb" and user "joe" with password "password" can accsess it. > I am a bit confused as to what ZMySQLDB is asking for. The first release of Aqueduct docs had a table with examples of connections strings for some databases. This table disappeared in the latest docs. Shouldn't it be the case to take it back? -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html From daren@sefcik.cc Mon Mar 29 22:58:54 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Mon, 29 Mar 1999 14:58:54 -0800 (PST) Subject: [Zope] ZMySQLDB error Message-ID: After everything compiled fine I try to import MySQL and get the following error: rdi% python Python 1.5.1 (#1, Mar 25 1999, 13:52:32) [GCC 2.7.2.3] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import MySQL Traceback (innermost last): File "", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: symbol not found: __umoddi3: referenced in /usr/local/mysql/lib/mysql/libmysqlclient.so.5 >>> Does anyone have any ideas?? MySQL works fine as well as Zope. Do I need to install the Sun ld.so patch?? TIA Daren From egibson@connect.com.au Tue Mar 30 02:35:23 1999 From: egibson@connect.com.au (Evan Gibson) Date: Tue, 30 Mar 1999 12:35:23 +1000 Subject: [Zope] cgi_module_publish cookie prsing errors? In-Reply-To: <922726779.752530@zoo-of-death.endicor.com>; from Ty Sarna on Mon, Mar 29, 1999 at 04:59:39PM +0000 References: <922726779.752530@zoo-of-death.endicor.com> Message-ID: <19990330123523.28633@connect.com.au> On Mon, Mar 29, 1999 at 04:59:39PM +0000, Ty Sarna wrote: > All of my "real" sites are still running under Principia. Recently a > number users of these sites have had their machines upgraded. Those now > using the latest versions of IE and Netscape are unable to access the > sites now unless they turn off cookies, or they get an error in > cgi_module_publish to do with parsing cookies. (I'm still trying to get > someone to send me the actual error text). > > Anyone out there using Principia still? Have you seen this? > Anyone using Zope seen this? Yes, I've seen it in Principia and Bobo for cookies in the form: .com.au TRUE / FALSE 933422008 MC1 GUID=083F5B8E21DE11D28B2C08002BB74F3F The two problems being that cookies are usually only seen by the domain that registers them, but some badly configured servers (most probably Microsoft servers by the look of the cookies) only list the last two parts of the domain name. This is fine for blah.com, but for overseas domains like blah.com.au it means the cookie is returned for ALL .com.au sites. This wouldn't be a problem, but since the cookies are returned to Principia in the form: MC1=GUID=083F5B8E21DE11D28B2C08002BB74F3F parse_cookie breaks since it looks for key value pairs WITHOUT an equals sign on either side. The extra = really confuses it. To fix it change the re in parse_cookies in cgi_module_publisher.py from: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-=\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), to: parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0;-\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ), -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace. From chsrinfo@guetali.fr Tue Mar 30 06:12:54 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Tue, 30 Mar 1999 10:12:54 +0400 Subject: [Zope] external methods Message-ID: <004c01be7a74$5ceec720$147800a0@pc-pi0> >Nope, > >With that definition, my_method expect to be called with the arguments >set, eg to display "Zope is cool". > >However, I want to get the variable l from the namespace. (application >variables made with REQUEST.set, Folder or document properties, etc.) >The question was: is self.REQUEST the only way to access the >variable namespace? And the only way to *modify* the variable namespace >from external methods (with self.REQUEST.set)? I'd like to be more precise. Suppose my_method is: def my_method(self): if self.REQUEST.has_key('my_var'): return "oh yes" return "boooo" Now, I write in DTML:


    Believe me or not, the result is: boooo boooo my_value You can now understand why I ask how to access the variable namespace from external methods. How can I test the existence of my_var, and access its value??? Keep the good work, I might ask you some of your photos for my daily worship :-) Regards, Jephte CLAIN Service Informatique From Tom.Deprez@uz.kuleuven.ac.be Tue Mar 30 10:28:25 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Tue, 30 Mar 1999 12:28:25 +0200 Subject: [Zope] Frustrating Message-ID: <3.0.1.32.19990330122825.009293a0@poirot> Hi, I'm getting really frustrating on this subject. Pff, I believe the Zope-people have made already a great effort in their documentation. So I guess my problem is my own bad english. shhg. I finally got the Postgressql adapter compiled, thanks to two great people! Thanks for this already. But now I'm confused? How to use it in Zope? When I go to the product management I see the all the installed products including : ZPyGreSQLDA (broken product APyGreSQL).... I guess here is already something wrong (broken... is not a positive word :-( ) But then, how can I work with it? How can I use it in Zope...? How can I add it to the 'Add list' . I read of a connection string... but where to place it? Sggh, I've read in the manuals, Q&A, ... but I still don't get how to use it.... Please, somebody, help...! Thanks in advance, The Idiot, Tom. From ShawH@STHS.org Tue Mar 30 13:17:28 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:17:28 -0600 Subject: [Zope] Frustrating Message-ID: First thing, if your product is broken you won't get anywhere. So, first step is to delete the broken product, and shutdown and restart your zope server. This is because Zope apparently won't replace a broken product with a working one. If it is still broken, click on it, and then on the screen that comes up, look for the 'traceback' tab on the top of the screen. Copy this traceback and mail it to the list. If your product no longer says broken, then you will be able to go to a folder above where you want to use SQL methods, and from the pull-down menu beside the add button, choose to install the SQL Adapter. I don't know for certain the format for the connection string, but if you go to /lib/python/Products/ and look in the directory for the ZPyGreSQLDA and read the top of any *.py file you see, it should say. Once you have a working adapter, you can add an SQL Method, and it will list your adapter's id on its list of db connections. From this point on the documentation in the SQL Guide should be sufficient. Good luck! Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Tom Deprez[SMTP:Tom.Deprez@uz.kuleuven.ac.be] > Sent: Tuesday, March 30, 1999 4:28 AM > To: zope@zope.org > Subject: [Zope] Frustrating > > Hi, > > I'm getting really frustrating on this subject. Pff, I believe the > Zope-people have made already a great effort in their documentation. > So I > guess my problem is my own bad english. shhg. > > I finally got the Postgressql adapter compiled, thanks to two great > people! > Thanks for this already. > > But now I'm confused? How to use it in Zope? When I go to the product > management I see the all the installed products including : > ZPyGreSQLDA > (broken product APyGreSQL).... I guess here is already something wrong > (broken... is not a positive word :-( ) > > But then, how can I work with it? How can I use it in Zope...? How can > I > add it to the 'Add list' . I read of a connection string... but where > to > place it? > > Sggh, I've read in the manuals, Q&A, ... but I still don't get how to > use > it.... > > Please, somebody, help...! > > Thanks in advance, > > The Idiot, > > Tom. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From ShawH@STHS.org Tue Mar 30 13:29:30 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 07:29:30 -0600 Subject: [Zope] DTML Methods Message-ID: Using Netscape 3.04, I can't edit the text in DTML Methods. I get the textbox, and I can place my cursor where I choose, and scroll through it, but I can't type in it, I can't paste into it. I can copy the whole contents, make a DTML Document, paste it in, and edit there! Any idea what's going on? When I access it from Netscape 4.07 on Linux it works fine... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School From mike@compar.com Tue Mar 30 16:52:31 1999 From: mike@compar.com (Mike Pelletier) Date: Tue, 30 Mar 1999 11:52:31 -0500 (EST) Subject: [Zope] E-Commerce Message-ID: If I'm really lucky, I might be getting a contract to put together a rather large site which includes selling the client's product over the web. They'll want to be doing credit card transactions. Has anyone been working on a shopping cart app for Zope, or perhaps even utilities to interact with a credit card transaction service? It's much quicker to buy than write! Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations From ShawH@STHS.org Tue Mar 30 16:56:59 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 10:56:59 -0600 Subject: [Zope] RE: [Zope-dev] Object to string Message-ID: Sorry, guess I wasn't clear enough. What I am thinking should work is ... Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Jason Spisak[SMTP:webmaster@mtear.com] > Sent: Tuesday, March 30, 1999 6:48 AM > To: zope-dev@zope.org > Subject: Re: [Zope-dev] Object to string > > Damn it didn't work. I if I post again on this subject I get a free > set > of steak knives. ;-) > > I tried appending PARENTS[-1]. to the counter property to tell it that > the counter property I want is a property of the root folder. But > when > I try to save the changes to the DTML, it chokes. Here's the code and > the traceback: > > > > > The counter property is type:int and set to 0. > > > > > Unpack sequence of wrong size? Hmm, any suggestions? > > All the best, > > Jason Spisak > webmaster@mtear.com > > Shaw, Howard wrote: > > > > Actually, he's talking about simple folder property manipulation > (ok, > > its not so simple), the Counter product is intended for visible > counters > > incremented by webpage access. > > > > However, if a Counter is added to the folder as 'countob', and > marked to > > NOT check ips, then it can be handled thusly... (or should be able > to, > > anyhow.) > > > > > > > > > > The parameter on the first line is normally '_', and can be passed > in if > > you like. Not passing it in when the countob is marked to check ips > will > > generate a traceback. > > > > The only real reason I can think of for using a Counter object > instead > > of the folder properties is to be able to use acquisition to make > the > > names globally unique; but the same thing can be done by prepending > > PARENTS[-1]. to Pavlos' technique. > > > > Also, if you use the counter object, you will have to set the "How > many > > hits before saving to the database?" line to 0. > > > > Pavlos' method was not recently added, but has been usable for a > > considerable period of time, and has the added advantage of not > needing > > a Product added to support it. > > > > Howard C. Shaw III > > Programmer/SysAdmin > > St. Thomas High School > > > > > ---------- > > > From: Jason Spisak[SMTP:webmaster@mtear.com] > > > Sent: Monday, March 29, 1999 6:12 PM > > > To: Pavlos Christoforou; zope-dev@zope.org > > > Subject: Re: [Zope-dev] Object to string > > > > > > Pavlos: > > > > > > I had forgotten about the recent addition of the counter object to > our > > > arsenal of Zopeist tools. Shame on me. Thanks for the heads-up! > > > > > > Jason Spisak > > > webmaster@mtear.com > > > > > > > > > > > On Mon, 29 Mar 1999, Jason Spisak wrote: > > > > > > > > > Oh, to follow up on my last post about turning an object to a > > > string > > > > > without leaving DTML, I have tried: > > > > > > > > > > > > > > > > > > > > > > > > > All help welcome! > > > > > > > > will return a string > representation > > > of > > > > the object. > > > > > > > > Alternatively you can generate unique object ids by adding a > counter > > > > property to your containing folder (or root folder) and modify > it > > > > everytime you generate a new object. For instance:: > > > > > > > > > > > > > > > > > > > > > > > > Pavlos > > > > > > -- > > > Jason Spisak > > > webmaster@mtear.com > > > > > > _______________________________________________ > > > Zope-Dev maillist - Zope-Dev@zope.org > > > http://www.zope.org/mailman/listinfo/zope-dev > > > > > > (For non-developer, user-level issues, use the companion list, > > > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > > > > > -- > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://www.zope.org/mailman/listinfo/zope-dev > > (For non-developer, user-level issues, use the companion list, > zope@zope.org, http://www.zope.org/mailman/listinfo/zope ) > From amos@aracnet.com Tue Mar 30 17:28:35 1999 From: amos@aracnet.com (Amos Latteier) Date: Tue, 30 Mar 1999 09:28:35 -0800 Subject: [Zope] external methods In-Reply-To: <004c01be7a74$5ceec720$147800a0@pc-pi0> Message-ID: <3.0.5.32.19990330092835.01192720@mail.aracnet.com> At 10:12 AM 3/30/99 +0400, Service Informatique CHSR wrote: >>Nope, >> >>With that definition, my_method expect to be called with the arguments >>set, eg to display "Zope is cool". >> >>However, I want to get the variable l from the namespace. (application >>variables made with REQUEST.set, Folder or document properties, etc.) >>The question was: is self.REQUEST the only way to access the >>variable namespace? And the only way to *modify* the variable namespace >>from external methods (with self.REQUEST.set)? Well, this is an interesting question. In my experience, seldom do people try to munge the DTML namespace from within an External Method. I guess it could be done (perhaps by passing the special underscore variable to an External Method), but I wonder if this is really the best way to solve your problem. >I'd like to be more precise. Suppose my_method is: > >def my_method(self): > if self.REQUEST.has_key('my_var'): > return "oh yes" > return "boooo" > > >Now, I write in DTML: > >

    >

    >
    > >

    > >Believe me or not, the result is: > >boooo >boooo >my_value > >You can now understand why I ask how to access the variable >namespace from external methods. How can I test the existence >of my_var, and access its value??? Well let's see what's going on here. You call my method, it acquires the REQUEST object and looks for a 'my_var', doesn't see it and returns 'boooo'. so far so good. Now you push a namespace containing only 'my_var' on to the DTML namespace stack and call the method again. Not surprisingly the method does the same thing as before, it acquires the REQUEST and finds that it does not contain 'my_var' so it prints 'boooo'. Finally you call 'my_var' which is found in the DTML namespace and 'my_value' is printed. So the lesson is: the DTML namespace is not the same thing as the REQUEST object. For more on how DTML namespace works see my advanced DTML how-to: http://www.zope.org/Documentation/HowTo/DTML My advice to you is to keep things simple. It's easy to confuse yourself with the complexities of DTML. In general, I would suggest that your External Methods take well defined arguments and return results, rather than modify the objects passed to them. Then allow the DTML to pass those arguments and munge its own namespace in response to the results of the External Method. Of course, this schema isn't always the right one. Finally I would suggest that you, don't munge the DTML namespace from within an External Method unless you have a good reason to, I think that this would make the DTML even harder to understand. Good luck. -Amos From johanl@bahnhof.se Tue Mar 30 17:53:09 1999 From: johanl@bahnhof.se (Johan Lindstrom) Date: Tue, 30 Mar 1999 19:53:09 +0200 Subject: [Zope] Broken DB In-Reply-To: Message-ID: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Hi! I get this error when trying to start the server with start.bat: Traceback (innermost last): File "serve.py", line 100, in ? ZopeHTTPServer.main(args) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, in set _published_module __import__(name) # to catch problem modules right away File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line 159, in __init__ db=apply(DBType,(),storage_options) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in __init__ self.open(file_name,create,revision_time,meta_index,read_only) File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in open try: self.index,self.pos=read_index( File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in read _index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 1903771 Can I recover? The db doesn't contain anything important so it's really okay to reinstall, should that be neccessary. /J ------ ---- --- -- -- -- -  -   -    -        - Johan Lindström                       BossMedia Sourcerer                     johanl@bahnhof.se                  http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail From petrilli@amber.org Tue Mar 30 18:03:10 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Tue, 30 Mar 1999 13:03:10 -0500 Subject: [Zope] Broken DB In-Reply-To: <4.1.19990330194807.00dafef0@mail.bahnhof.se>; from Johan Lindstrom on Tue, Mar 30, 1999 at 07:53:09PM +0200 References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <19990330130310.C11199@amber.org> On Tue, Mar 30, 1999 at 07:53:09PM +0200, Johan Lindstrom wrote: > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > [snipped] > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. It looks like you're running an older release 1.9.x something? 1.10.x will automatically fix the database under 90% of the circumstances by simply truncating the bad record. This should fix your problem. BTW, it's always helpful to give information on what release of Zope you're using. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From jim@digicool.com Tue Mar 30 18:12:20 1999 From: jim@digicool.com (Jim Fulton) Date: Tue, 30 Mar 1999 13:12:20 -0500 Subject: [Zope] Broken DB References: <4.1.19990330194807.00dafef0@mail.bahnhof.se> Message-ID: <37011404.36F2C5A4@digicool.com> Johan Lindstrom wrote: > > Hi! > > I get this error when trying to start the server with start.bat: > > Traceback (innermost last): > File "serve.py", line 100, in ? > ZopeHTTPServer.main(args) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 498, > in main start(module_file,host,port,threading,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 436, > in start set_published_module(module_file,BoboRequestHandler,env) > File "E:\appl\net\Zope\Rio\ZopeHTTPServer\ZopeHTTPServer.py", line 432, > in set _published_module __import__(name) # to catch problem modules right away > File "E:\appl\net\Zope\Rio\lib\python\Main.py", line 103, in ? > Bobobase=OFS.Application.open_bobobase() > File "E:\appl\net\Zope\Rio\lib\python\OFS\Application.py", line 319, in > open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\PickleDictionary.py", line > 159, in __init__ db=apply(DBType,(),storage_options) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 221, in > __init__ self.open(file_name,create,revision_time,meta_index,read_only) > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 287, in > open try: self.index,self.pos=read_index( > File "E:\appl\net\Zope\Rio\lib\python\BoboPOS\SimpleDB.py", line 1365, in > read _index raise DatabaseError, ('Corrupted data record at %s' % pos) > DatabaseError: Corrupted data record at 1903771 > > Can I recover? At a minimum, you can truncate the data file (var\Data.bbb) at the position indicated. (Let me know if you need help with this.) > The db doesn't contain anything important so it's really > okay to reinstall, should that be neccessary. You could also just delete the database (var\Data.*) and a new database will be created when you restart. I'd appreciate it if you'd send me the corrupted database as a zipped or gzipped attachment in a private email. Also, what version of Zope were you running? What OS? What products (not included in the Zope distribution) did you have installed? Can you tell me anything more about what might have led up to this? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. From Amos@digicool.com Tue Mar 30 18:55:50 1999 From: Amos@digicool.com (Amos Latteier) Date: Tue, 30 Mar 1999 13:55:50 -0500 Subject: [Zope] RE: DTML question Message-ID: <613145F79272D211914B0020AFF640190AD129@gandalf.digicool.com> > Sorry to bother you with these questions but I can't post to > egroups. I > tried senting messages on friday, saturday, monday and > today but none > went through. I've sent from the egroups post page, and from my > email... no luck. Please feel free to cc the list with > any answers > or pointers to answers. You can post to the list without egroups by sending mail to zope@zope.org. You can also read the archives without egroups at http://www.zope.org/pipermail/zope/. > I've been working throught the DTML manual and I've come > across a problem; > I can't get the #in tag > to do what I want with a dictionary. I'm using it from > Python for now, but > plan to use this within a Zope app soon. > > > The following DTML code exits with this error: "...line 641, > in renderwob > l-len(sequence)" > > > > I think what you want is access to the dictionary's items() right? : The mapping attribute is not relevant here. It means treat sequence-items as mappings not instances, that is to say, look up vars with __getitem__, not __getattr__. The DTML User's Guide is your friend. -Amos From rkw@dataplex.net Tue Mar 30 19:19:24 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Tue, 30 Mar 1999 13:19:24 -0600 (CST) Subject: [Zope] Namespace Confusion Message-ID: I'm trying to convert shell scripts into DTML methods. Please excuse the pseudo code. I'm using it to represent the problems that I am addressing. set basket_total=0 set taxable_total=0 foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) if (! isfood($item)) @ taxable_total = $taxable_total + price_of($item) endif @ basket_total = $basket_total + price_of($item) endfor print "Of the $basket_total total, $taxable_total is taxable" 1) Can I generate an explicit list rather than getting it with as the result of either a database query or enumeration of an object? 2) How do I generate "local" variables. I know that I could use the REQUEST variable as a global property store. However, because of nesting, global (REQUEST) variables are not desirable. I'd like to say something like the following: ... ... ... Does Zope's DTML have constructs to address either of these? From jimbag@kw.igs.net Tue Mar 30 19:27:29 1999 From: jimbag@kw.igs.net (JB) Date: Tue, 30 Mar 1999 19:27:29 +0000 Subject: [Zope] External Methods Message-ID: <370125A1.305733AC@kw.igs.net> Please excuse my lack of zoping intuition but I hoped someone could help with this problem. I read all the doc's I could find but seem to be missing something. It goes like this... I have a ZSQLMethod that returns some tuples. There is a field in the tuple which I wish to use to lookup an external file and return a jpeg, if available. I've created an external method called 'getPic' which I wish to pass the key field to locate the file with but I can't seem to get at the variable. e.g ---------- )" --> ---------- This doesn't work for reasons not obvious to me. I've tried creating a class to handle the records. No go. Basically, the External method can't get at the vars defined on each loop thru the sequence returnd from the SQLMethod. Any insight would be appreciated. thanks jb From ShawH@STHS.org Tue Mar 30 19:38:58 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:38:58 -0600 Subject: [Zope] FW: [Zope] Namespace Confusion Message-ID: Once again I forgot to cc the list. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: Shaw, Howard > Sent: Tuesday, March 30, 1999 1:38 PM > To: 'rkw@dataplex.net' > Subject: RE: [Zope] Namespace Confusion > > > > > > > > > > > Howard C. Shaw III > Programmer/SysAdmin > St. Thomas High School > > > ---------- > From: Richard Wackerbarth[SMTP:rkw@dataplex.net] > Reply To: rkw@dataplex.net > Sent: Tuesday, March 30, 1999 1:19 PM > To: zope@zope.org > Subject: [Zope] Namespace Confusion > > I'm trying to convert shell scripts into DTML methods. > > Please excuse the pseudo code. I'm using it to represent the problems > that I am addressing. > > set basket_total=0 > set taxable_total=0 > foreach item( 'apple', 'peach', 'soap', 'pear', 'plum', 'magazine' ) > if (! isfood($item)) > @ taxable_total = $taxable_total + price_of($item) > endif > @ basket_total = $basket_total + price_of($item) > endfor > print "Of the $basket_total total, $taxable_total is taxable" > > > 1) Can I generate an explicit list rather than getting it with > as the result of either a database query or enumeration of an object? > > 2) How do I generate "local" variables. > I know that I could use the REQUEST variable as a global property > store. > However, because of nesting, global (REQUEST) variables are not > desirable. > > I'd like to say something like the following: > > > > ... > > ... > > ... > > > Does Zope's DTML have constructs to address either of these? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > From ShawH@STHS.org Tue Mar 30 19:41:39 1999 From: ShawH@STHS.org (Shaw, Howard) Date: Tue, 30 Mar 1999 13:41:39 -0600 Subject: [Zope] External Methods Message-ID: Try > > > > > You can't nest the 's. Howard C. Shaw III Programmer/SysAdmin St. Thomas High School > ---------- > From: JB[SMTP:jimbag@kw.igs.net] > Sent: Tuesday, March 30, 1999 1:27 PM > To: zope@zope.org > Subject: [Zope] External Methods > > Please excuse my lack of zoping intuition but I hoped someone could > help > with this problem. I read all the doc's I could find but seem to be > missing something. It goes like this... > I have a ZSQLMethod that returns some tuples. There is a field in the > tuple which I wish to use to lookup an external file and return a > jpeg, > if available. > I've created an external method called 'getPic' which I wish to pass > the > key field to locate the file with but I can't seem to get at the > variable. > e.g > ---------- > > > )" --> > > ---------- > > This doesn't work for reasons not obvious to me. > > I've tried creating a class to handle the records. No go. > Basically, the External method can't get at the vars defined on each > loop thru the sequence returnd from the SQLMethod. > > Any insight would be appreciated. > > thanks > jb > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > From webmaster@mtear.com Tue Mar 30 17:29:27 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 12:29:27 -0500 Subject: [Zope] Template Printing from Zope References: <199903302000.MAA28977@zope.codeit.com> Message-ID: <370109F7.F8B0B4E7@mtear.com> I would like to trigger a DTML document to print after the user creates it. ( There are a few documents in my project that need to be snail mailed) Circumstances aside, they aren't allowed to print from Navigator, so I'd like Zope to shoot it out without the user having to have a printer configured. If a printer is configured to work with the server, can Zope send it to lpr? I have zero experience there. :-( Any suggestions? Jason Spisak webmaster@mtear.com From bkc@murkworks.com Tue Mar 30 20:27:20 1999 From: bkc@murkworks.com (Brad Clements) Date: Tue, 30 Mar 1999 16:27:20 -0400 Subject: [Zope] Template Printing from Zope In-Reply-To: <370109F7.F8B0B4E7@mtear.com> Message-ID: <199903302120.QAA18499@anvil.murkworks.com> Use the win32com extensions to encapsulate the MS IE HTML control (or browser). Get the control to load the html, then control.Print() On 30 Mar 99, at 12:29, Jason Spisak wrote: Date sent: Tue, 30 Mar 1999 12:29:27 -0500 From: Jason Spisak To: zope@zope.org Subject: [Zope] Template Printing from Zope > I would like to trigger a DTML document to print after the user creates > it. ( There are a few documents in my project that need to be snail > mailed) Circumstances aside, they aren't allowed to print from > Navigator, so I'd like Zope to shoot it out without the user having to > have a printer configured. If a printer is configured to work with the > server, can Zope send it to lpr? I have zero experience there. :-( > > Any suggestions? > > Jason Spisak > webmaster@mtear.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 From webmaster@mtear.com Tue Mar 30 18:58:00 1999 From: webmaster@mtear.com (Jason Spisak) Date: Tue, 30 Mar 1999 13:58:00 -0500 Subject: [Zope] Template Printing from Zope References: <199903302120.QAA18499@anvil.murkworks.com> Message-ID: <37011EB8.8031C53D@mtear.com> Brad, Thanks. Regretably, we aren't really using any Microsoft Products (Too bad, we could have got a virus yesterday :-() The clients are(and a browser on the server could be) running Netscape Comm 4.08. I'm sure there is a similar way of controlling Netscape--Any body have a guess? Jason Spisak webmaster@mtear.com Brad Clements wrote: > > Use the win32com extensions to encapsulate the MS IE HTML control > (or browser). Get the control to load the html, then control.Print() > > On 30 Mar 99, at 12:29, Jason Spisak wrote: > > Date sent: Tue, 30 Mar 1999 12:29:27 -0500 > From: Jason Spisak > To: zope@zope.org > Subject: [Zope] Template Printing from Zope > > > I would like to trigger a DTML document to print after the user creates > > it. ( There are a few documents in my project that need to be snail > > mailed) Circumstances aside, they aren't allowed to print from > > Navigator, so I'd like Zope to shoot it out without the user having to > > have a printer configured. If a printer is configured to work with the > > server, can Zope send it to lpr? I have zero experience there. :-( > > > > Any suggestions? > > > > Jason Spisak > > webmaster@mtear.com > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://www.zope.org/mailman/listinfo/zope > > > > (For developer-specific issues, use the companion list, > > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com ICQ: 14856937 -- Jason Spisak webmaster@mtear.com From Anthony Baxter Wed Mar 31 01:18:36 1999 From: Anthony Baxter (Anthony Baxter) Date: Wed, 31 Mar 1999 11:18:36 +1000 Subject: [Zope] Frustrating In-Reply-To: Your message of "Tue, 30 Mar 1999 07:17:28 CST." Message-ID: <199903310118.LAA01565@mbuna.arbhome.com.au> >>> "Shaw, Howard" wrote > First thing, if your product is broken you won't get anywhere. So, first > step is to delete the broken product, and shutdown and restart your zope > server. This is because Zope apparently won't replace a broken product > with a working one. Yah - this _really_ needs to be emphasised in the "how to write products" docs. It drove me nuts for about 10 minutes before I realised what was happening... From mark@interwalk.com Wed Mar 31 00:48:36 1999 From: mark@interwalk.com (Mark Interrante) Date: Tue, 30 Mar 1999 16:48:36 -0800 (PST) Subject: [Zope] Ideas about implementing a dynamic site? Message-ID: <19990331004836.5871.rocketmail@web129.yahoomail.com> I am thinking about implementing a dynamic site using zope and as little python as I can get away with. The site is modeled after http://c2.com/cgi/wiki?WikiWikiWeb This is a dynamic site in that all the web pages are dynamically generated and you are allowed to edit any page right from your browser (sound familiar?) and also create new pages very easily. There are many other implementation of wikiwiki (see the WikiWikiClones link). I am interested in any creative ways of dynamically generating the pages and storing the underlying date in the objectDB. Thanks! Mark === ==================================================== Mark Interrante Hewlett Packard mark@interwalk.com mark_interrante@hp.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From chsrinfo@guetali.fr Wed Mar 31 06:36:51 1999 From: chsrinfo@guetali.fr (Service Informatique CHSR) Date: Wed, 31 Mar 1999 10:36:51 +0400 Subject: [Zope] external methods Message-ID: <003c01be7b40$e0c23560$147800a0@pc-pi0> Hello, >Well, this is an interesting question. In my experience, seldom do people >try to munge the DTML namespace from within an External Method. I guess it >could be done (perhaps by passing the special underscore variable to an >External Method), but I wonder if this is really the best way to solve your >problem. Thanks for your answer. In fact, I want to write external methods to replace DTML methods which work like a charm, but are not very readable (a lot of iterative stuff, given the fact that mySQL doesn't support sub-select) and pretty slow. I have used python for several years right now, but DTML is new for me. My users can search in our news database in several ways, that are covered by different SQL queries. However, the output of all these queries are the same, so I use a single DTML method to display the result. So the name of the ZSQL Method is only known at runtime, and I use something like: to display the result. The arguments of the query are taken from the namespace. I can also write: If I want to cook some args before feeding it to the query. All these work from DTML. Now, I want to write this in an external method. def results(self): for record in getattr(self, self.REQUEST['query'])(self): pass # do watever 'query' has to be in the form REQUEST variables (that is not a problem), but I cannot be sure that any arguments that the query need are all accessible through REQUEST. >Well let's see what's going on here. You call my method, it acquires the >REQUEST object and looks for a 'my_var', doesn't see it and returns >'boooo'. so far so good. Now you push a namespace containing only 'my_var' >on to the DTML namespace stack and call the method again. Not surprisingly >the method does the same thing as before, it acquires the REQUEST and finds >that it does not contain 'my_var' so it prints 'boooo'. Finally you call >'my_var' which is found in the DTML namespace and 'my_value' is printed. I wrote this to test wether an external method has access to the entire namespace, or only to REQUEST variables. >So the lesson is: the DTML namespace is not the same thing as the REQUEST >object. So I come back with the question: is there any way to access the DTML namespace from an external method. Apparently there is not >For more on how DTML namespace works see my advanced DTML how-to: > >http://www.zope.org/Documentation/HowTo/DTML > I have already read it. By the way, let me ask you a question (again. I already asked that, but the answer was not very clear, and I finally gave up): and are the same. So instead of writing: I usually write: But almost everyone told me that also work. So I wonder: are and the same??? The DTML User's guide say that in an expression, variable are not called by default, but _['var0'] calls var0 if possible. >My advice to you is to keep things simple. It's easy to confuse yourself >with the complexities of DTML. In general, I would suggest that your >External Methods take well defined arguments and return results, rather >than modify the objects passed to them. Then allow the DTML to pass those >arguments and munge its own namespace in response to the results of the >External Method. Of course, this schema isn't always the right one. Finally >I would suggest that you, don't munge the DTML namespace from within an >External Method unless you have a good reason to, I think that this would >make the DTML even harder to understand. To keep things simple mean I have to write several times the same external method with different queries and differents arguments each time. this is not what I want. I can remember that in DTML I only need one DTML Method. I would really like to replace some of my DTML Methods with external methods. That's enough for today. Let's take some rest :-) Regards, Jephte CLAIN, Service Informatique CHSR From piers@cs.su.oz.au Wed Mar 31 07:18:14 1999 From: piers@cs.su.oz.au (Piers Lauder) Date: Wed, 31 Mar 1999 17:18:14 +1000 Subject: [Zope] multiple SUBMIT buttons for same method, with parameter Message-ID: <129.78.8.1.126.8141.922865008.414.1008> I can use the following in a DTML document to call a specific method: But what if I wanted to have lots of them? I'd like to have multiple SUBMIT buttons, all referring to the same method but diffentiated by parameter - possible? Ie: something like: passing the parameter '1' to 'mymethod', and then later and so on. Incidentally, is the ':method' trick documented? - I can't find it in the DTML guide. From Tom.Deprez@uz.kuleuven.ac.be Wed Mar 31 08:58:51 1999 From: Tom.Deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Wed, 31 Mar 1999 10:58:51 +0200 Subject: [Zope] One week of Zope-expirience Message-ID: <3.0.1.32.19990331105851.00931700@poirot> Hi all, First of all, thanks to all with their great support and help. At the end of last week I found out about Zope. It looked really interesting, so I wanted to give it a try. Monday after several problems and with lots of help I could manage to enter Zope. Not from Apache as I would like, but from the HTTPServer. Next I wanted to attach Zope with my PostGresSQL demo database. Boy, did it gave me some problems (and all because of my lack in knowledge of Linux). But again several people helped me and today it is solved! Yep, it is done, the hard work can begin. Now, I've to convince other people that Zope is the way to follow. At first blink, Zope is a really nice and great product. I hope it will get the attention it diserves. Still, some work on the documentation, although they already did a great job! Most thingies are written down. Kind Regards, Tom. Now some questions: 1. Have you used CSS-sheets in Zope and how did you use them? Did you incorporated them into Zope or not? Have you got a little sample? From tony.mcdonald@ncl.ac.uk Wed Mar 31 09:22:53 1999 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Wed, 31 Mar 1999 10:22:53 +0100 Subject: [Zope] One week of Zope-expirience In-Reply-To: <3.0.1.32.19990331105851.00931700@poirot> References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: > >Now some questions: > >1. Have you used CSS-sheets in Zope and how did you use them? Did you >incorporated them into Zope or not? Have you got a little sample? > In Zope, this is pretty easy. Create a property at your top level of type 'lines' and called 'css' (you can also create a DTML document/method if you like). Populate it with good CSS things like (this is from the Zope site itself actually). In standard_html_header you put something like <!--#var title_or_id--> and you're away... You may want to change standard_html_header so it doesn't crash if css is not present. <!--#var title_or_id--> Now where it starts to get really cool is that all your documents *below* the top level get the CSS information by acquisition, but you can change CSS information in folders by creating a new CSS property or document within that folder. Tres Neat. hth tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From tim.hawes@ncmail.net Wed Mar 31 12:48:50 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 07:48:50 -0500 Subject: [Zope] URL problems. References: <3.0.1.32.19990331105851.00931700@poirot> Message-ID: <370219B2.385E84A4@ncmail.net> I just installed Zope on a Netscape Enterprise Server (3.6). I compiled and installed the nscgiauth plugin, and all seems to run OK, except for one thing: When I try to add items to the site through the manage screen, I get: Not Found The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. Please inform the site administrator of the referring page. When I open the frame into a new window, I see that the URL looks something like: http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_addDTMLDocumentForm When I edit the URL by hand to remove the "." http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocumentForm It works fine. What is going on here, and what do I need to do to change it? I plan on having other people from other departments access resourses on Zope to create their own objects, and I need this to work right out of the box. Thanks in advance for any help. Tim Hawes tim.hawes@ncmail.net From michel@digicool.com Wed Mar 31 13:53:22 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 08:53:22 -0500 Subject: [Zope] URL problems. Message-ID: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> > -----Original Message----- > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > Sent: Wednesday, March 31, 1999 7:49 AM > To: Zope List > Subject: [Zope] URL problems. > > > I just installed Zope on a Netscape Enterprise Server (3.6). > I compiled > and installed the nscgiauth plugin, and all seems to run OK, > except for > one thing: > First off, your the first person (I think) that has come forward with the information that they are using any version of NES higher than 2.0, which is what the nscgiauth plugin was written for. As I have heard (but don't know) there were some significant changes between the 2.0 and higher versions of the NSAPI. So, that you got it to work at all is pretty good. > When I try to add items to the site through the manage screen, I get: > > Not Found > > The requested object does not exist on this server. > The link you > followed is either outdated, > inaccurate, or the server has been instructed not to > let you have > it. Please inform the site > administrator of the referring page. > > When I open the frame into a new window, I see that the URL looks > something like: > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > DTMLDocumentForm > > When I edit the URL by hand to remove the "." > This is unreported behavior, which leads me to think that nscgiauth needs a little tweaking. As nscgiauth is unsuported you will have to experiment with this a little. >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume ntForm >It works fine. What is going on here, and what do I need to do to change >it? I plan on having other people from other departments access resourses >on Zope to create their own objects, and I need this to work right out of >the box. If your looking to showcase this and you can't spend any time working on nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, or IIS, all of which Zope runs out of the box with. -Michel >Thanks in advance for any help. >Tim Hawes >tim.hawes@ncmail.net _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope (For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From rkw@dataplex.net Wed Mar 31 16:02:47 1999 From: rkw@dataplex.net (Richard Wackerbarth) Date: Wed, 31 Mar 1999 10:02:47 -0600 (CST) Subject: [Zope] Namespace Confusion In-Reply-To: Message-ID: I think that you missed my point. "I" can write python just fine. However, every time something changes, new python functions must be written. It is desirable to allow "DTML programmers" to do simple things which they can accomplish with simple local variables. What I think I should do is create a function, "LOCAL", similar to REQUEST that stores temporary variables. Unlike REQUEST, LOCAL would be bound to the namespace multiple times, each with a different context stack. The total basket will cost Or perhaps we can trick the namespace into showing basketTotal without the LOCAL.get reference. On Wed, 31 Mar 1999, Shaw, Howard wrote: > Given your needs, I suspect a simple External Method would serve > better... > > What about the local variable? > > Any ideas? From daren@sefcik.cc Wed Mar 31 18:18:39 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 10:18:39 -0800 (PST) Subject: [Zope] Zope+Virtual Domains Message-ID: Can the Zope server provide virtual domains or do I need to use Apache?? Right now I have Apache set up with 4 virtual domains and would rather just use the default Zope httpserver. Daren From tim.hawes@ncmail.net Wed Mar 31 20:58:38 1999 From: tim.hawes@ncmail.net (Tim Hawes) Date: Wed, 31 Mar 1999 15:58:38 -0500 Subject: [Zope] URL problems. References: <613145F79272D211914B0020AFF6401907BBED@gandalf.digicool.com> Message-ID: <37028C7E.5B9760D7@ncmail.net> Michel Pelletier wrote: > > -----Original Message----- > > From: Tim Hawes [mailto:tim.hawes@ncmail.net] > > Sent: Wednesday, March 31, 1999 7:49 AM > > To: Zope List > > Subject: [Zope] URL problems. > > > > > > I just installed Zope on a Netscape Enterprise Server (3.6). > > I compiled > > and installed the nscgiauth plugin, and all seems to run OK, > > except for > > one thing: > > > > First off, your the first person (I think) that has come forward with > the information that they are using any version of NES higher than 2.0, > which is what the nscgiauth plugin was written for. As I have heard > (but don't know) there were some significant changes between the 2.0 and > higher versions of the NSAPI. So, that you got it to work at all is > pretty good. > Well, the only difference that stuck out to me were the include files for NSAPI. nscgi calls for several, but in 3.x all the header files have been combined into one, "nsapi.h". I modified nscgi.c to call for this one header file and it compiled cleanly. It does its job very well, and am not all that certain that the problem I am having is related to nscgi at all. > > > When I try to add items to the site through the manage screen, I get: > > > > Not Found > > > > The requested object does not exist on this server. > > The link you > > followed is either outdated, > > inaccurate, or the server has been instructed not to > > let you have > > it. Please inform the site > > administrator of the referring page. > > > > When I open the frame into a new window, I see that the URL looks > > something like: > > > > http://www.foo.bar.net/Zope/GATE/manage/.?%3Amethod=manage_add > > DTMLDocumentForm > > > > When I edit the URL by hand to remove the "." > > > > This is unreported behavior, which leads me to think that nscgiauth > needs a little tweaking. As nscgiauth is unsuported you will have to > experiment with this a little. > > >http://www.foo.bar.net/Zope/GATE/manage/?%3Amethod=manage_addDTMLDocume > ntForm > > >It works fine. What is going on here, and what do I need to do to > change > >it? I plan on having other people from other departments access > resourses > >on Zope to create their own objects, and I need this to work right out > of > >the box. > > If your looking to showcase this and you can't spend any time working on > nscgiauth, I would suggest using either Apache, ZServer, ZopeHTTPServer, > or IIS, all of which Zope runs out of the box with. > Well, I am a contractor and really don't have that option. I have tried to sell the idea of using Apache here, but they have already bought massively into Netscape. If I cannot get Zope to work, I may end up recommending a commercial package, at least for this case. > > -Michel > > >Thanks in advance for any help. > > >Tim Hawes > >tim.hawes@ncmail.net > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ > Zope maillist - Zope@zope.org > http://www.zope.org/mailman/listinfo/zope > > (For developer-specific issues, use the companion list, > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) From jae@kavi.com Wed Mar 31 20:57:33 1999 From: jae@kavi.com (John Eikenberry) Date: Wed, 31 Mar 1999 12:57:33 -0800 (PST) Subject: [Zope] Building Zope on BSDI Message-ID: Has anyone built Zope on a BSDI machine? BSDI doesn't support shared libraries, so everything has to be statically compiled into python. I just got it to build (python w_pcgi.py finished), but there doesn't seem to be a new python binary anywhere with everything compiled in. To get it to compile, I went through and deleted all the '*shared*' from the 'Setup' files. Any tips? As a side note, I was planning on using the binary porting kit to get it built, then contributing this back to the community. But the porting kit is still Zope-1.9. Is there any plans to update the porting kit. Thanks in advance for any help, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From michel@digicool.com Wed Mar 31 21:26:34 1999 From: michel@digicool.com (Michel Pelletier) Date: Wed, 31 Mar 1999 16:26:34 -0500 Subject: [Zope] NotMail 0.1.0 and IMAPAdapter 0.1.0 Message-ID: <613145F79272D211914B0020AFF6401907BBF0@gandalf.digicool.com> Greetings, NotMail-0.1.0 and IMAPAdapter-0.1.0 have been posted to the prereleases area of the site: http://www.zope.org/Download/Prereleases/Mail These are first beta cuts. Both programs are also available in the public CVS. IMAPAdapter allows you to work with IMAP folders and messages in the context of an authenticated IMAP user. Using IMAPAdapter, it is very easy to build IMAP client functionality into your Zope site using DTML. NotMail is a simple web IMAP client that requires IMAPAdapter. Its mail purpose is to verify the operation of IMAPAdapter and to provide an example implimentation of IMAPAdapter's client functionality. NotMail is mostly DTML, and what Python there is is just specific to sending and replying to mail, all other functionality comes from IMAPAdapter. It is important to note that IMAPAdapter looks like a user folder to Zope, in Zope parlance, we call this a user database. It's not a user folder, because it doesn't not contain users. If Zope tries to validate a user against an IMAPAdapter, the IMAPAdapter will contact the IMAP server, try to make a connection with the uid:pwd that the browser supplied, returning either a user object or None, depending on the success or failure of that connection attempt. This means that using IMAPAdapter is quite simple. Here is a snip of DTML to display all an IMAP users mail folders with the #tree tag. > () The user object that IMAPAdapter returns (if the user is valid) is placed into AUTHENTICATED_USER. emapFolderTree is one method of this user object, but there are about a dozen or so more methods to do various imap related things like adding/deleting folders and listing and fetching messages. If you plan on installing and trying out NotMail and IMAPAdapter it is important to know that you can configure the roles that IMAPAdapter associates with users that it returns. The two default associated roles are 'NotMail' and 'IMAPUser'. If you want NotMail to work, you will need to add one of these roles (or any roles you care to define as IMAPAdapter's default roles) somewhere above NotMail/IMAPAdapter and then assign that role the 'View' permission for NotMail's DTML Methods. Have Fun! -Michel From petrilli@amber.org Wed Mar 31 21:17:24 1999 From: petrilli@amber.org (Christopher Petrilli) Date: Wed, 31 Mar 1999 16:17:24 -0500 Subject: [Zope] Building Zope on BSDI In-Reply-To: ; from John Eikenberry on Wed, Mar 31, 1999 at 12:57:33PM -0800 References: Message-ID: <19990331161724.E13913@amber.org> On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > libraries, so everything has to be statically compiled into python. > I just got it to build (python w_pcgi.py finished), but there doesn't seem > to be a new python binary anywhere with everything compiled in. To get it > to compile, I went through and deleted all the '*shared*' from the 'Setup' > files. Any tips? Um, what VERSION of BSDI are you using? I haven't usd anything since 3.0, but I SWEAR it has standard BSD style shared libraries, same as FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it didn't.... are you sure it just didn't auto-detect the method right? Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright From John Eikenberry Wed Mar 31 22:24:50 1999 From: John Eikenberry (John Eikenberry) Date: Wed, 31 Mar 1999 14:24:50 -0800 (PST) Subject: [Zope] Building Zope on BSDI In-Reply-To: <19990331161724.E13913@amber.org> Message-ID: On Wed, 31 Mar 1999, Christopher Petrilli wrote: > On Wed, Mar 31, 1999 at 12:57:33PM -0800, John Eikenberry wrote: > > > > Has anyone built Zope on a BSDI machine? BSDI doesn't support shared > > libraries, so everything has to be statically compiled into python. > > I just got it to build (python w_pcgi.py finished), but there doesn't seem > > to be a new python binary anywhere with everything compiled in. To get it > > to compile, I went through and deleted all the '*shared*' from the 'Setup' > > files. Any tips? > > Um, what VERSION of BSDI are you using? I haven't usd anything since > 3.0, but I SWEAR it has standard BSD style shared libraries, same as > FreeBSD, OpenBSD and NetBSD... It'd be a huge step backwards if it > didn't.... are you sure it just didn't auto-detect the method right? Alright, I guess I was jumping the gun a bit with my assumptions about shared library support. It does support them, just not in a format I'm used to (based on my Linux/Solaris experience). Ok, so then mabey I messed up in autodetecting as you mentioned. How would you suggest I do this? Here's a few lines of the errors it reports when trying to compile any of the shared extensions... www ~/Zope-1.10.2-src/lib/python/SearchIndex 242> make gcc -g -O2 -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -I/projects/_/python -c ./Splitter.c ld Splitter.o -o Splitter.so ./Splitter.c:105: Undefined symbol _PyString_AsString referenced from text segment ./Splitter.c:114: Undefined symbol _free referenced from text segment ./Splitter.c:126: Undefined symbol _PyString_Type referenced from text segment etc.... (many more Undefined symbol errors) So... any tips for compiling the Zope extensions as shared libs? I'll probably keep working on the static python solution, as I'm actually making progress on this, and I really have no idea where to start with shared libs on BSDI (no good leads on dejanews, and egroups is non-responsive as usual). Thanks, --- John Eikenberry [jae@kavi.com - http://taos.kavi.com/~jae/] ______________________________________________________________ "A society that will trade a little liberty for a little order will deserve neither and lose both." --B. Franklin From daren@sefcik.cc Wed Mar 31 22:57:27 1999 From: daren@sefcik.cc (Daren Sefcik) Date: Wed, 31 Mar 1999 14:57:27 -0800 (PST) Subject: [Zope] Zope.cgi error Message-ID: I am trying to get Zope.cgi working (Apache 1.3.4) per the Zope source instructions. When I try to access http://somedomain/cgi-bin/Zope.cgi/manage I get the following error in the http-error log: httpd: [Wed Mar 31 14:52:45 1999] [error] [client 168.240.152.202] Premature end of script headers: /usr/local/www/cgi-bin/Zope.cgi Does anybody know what this means?? TIA, Daren From Brian@digicool.com Wed Mar 31 23:48:00 1999 From: Brian@digicool.com (Brian Lloyd) Date: Wed, 31 Mar 1999 18:48:00 -0500 Subject: [Zope] Building Zope on BSDI Message-ID: <613145F79272D211914B0020AFF64019FDCB@gandalf.digicool.com> > > > Has anyone built Zope on a BSDI machine? BSDI doesn't > support shared > > > libraries, so everything has to be statically compiled > into python. > > > I just got it to build (python w_pcgi.py finished), but > there doesn't seem > > > to be a new python binary anywhere with everything > compiled in. To get it > > > to compile, I went through and deleted all the '*shared*' > from the 'Setup' > > > files. Any tips? > > So... any tips for compiling the Zope extensions as shared libs? I'll > probably keep working on the static python solution, as I'm actually > making progress on this, and I really have no idea where to start with > shared libs on BSDI (no good leads on dejanews, and egroups is > non-responsive as usual). > > Thanks, > > --- > > John Eikenberry Here are some things I've found in previous struggles to get Zope compiled on bsdish systems -- I'm no guru, though, and I've seen different things work on different bsdx flavors: o you usually need to add -rdynamic to LDSHARED in your Makefiles (this should be reported & worked into python's makefiles, IMHO) o I havent been able to get threads going on many bsd flavors - so you may not be able to pass --with-thread to configure o I find that extensions will all appear to blow up with unfound symbols (such as those you reported) - you need to run make -k and ignore the errors ;) o On some systems, I had to run make -k, ignore the errors, and rename the output .o files for the extensions to .so :( o I seem to remember having to use shlicc on .so files, but I dont recall the details... Hope this helps - please post a status rpt if you get it working, so that the gory details will at least be captured. This is the sort of thing that should be in an installation FAQ somewhere. Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From jeffbauer@bigfoot.com Sat Mar 20 23:12:52 1999 From: jeffbauer@bigfoot.com (Jeff Bauer) Date: Sat, 20 Mar 1999 17:12:52 -0600 Subject: [Zope] Why do I have to reimport External Methods ? Message-ID: <36F42B74.A082F266@rubic.com> "James A. Hillyerd" wrote: > If I do have to continue the shutdown/restart process, is > there any way of tuning PCGI so that it loads up faster? In the pcgi/Util directory, you'll find a killpcgi.py script. You could hack it to perform a restart, i.e. launch a new pcgi process after killing the old one. This would speed up your initial connect time and be much faster during debugging (multiple restarts). Best regards, Jeff Bauer Rubicon, Inc.