From andreas@aHIT.de Wed Mar 1 01:13:59 2000 From: andreas@aHIT.de (Andreas) Date: Tue, 29 Feb 2000 18:13:59 -0700 Subject: [Zope] ZClass based on DTML Document References: <200002291337.AA27406@rsphy9.anu.edu.au> Message-ID: <38BC6ED7.94F2BCBC@aHIT.de> Hi, I created a POIDocumentClass (ZClass based on DTML Document; meta type PIO Document) . Than I created an instance of this POIDocumentClass id 'MyDoc' title 'My Document'. Now when I try to find all POIDocumentClass instances in a Folder I do the following: ">
I get back the right title 'My Document' but absolute_url() returns http://myserver:8080/foo/%3cstring%3e instead of http://myserver:8080/foo/MyDoc When I create a DTML Document instance within the same Folder absolute_url() works fine. I suspect there is something wrong with my POIDocumentClass :-( Can anybody please explain this behaviour ? -- _________________________________________________________ Andreas Heckel andreas@aHIT.de From andreas@aHIT.de Wed Mar 1 04:42:31 2000 From: andreas@aHIT.de (Andreas) Date: Tue, 29 Feb 2000 21:42:31 -0700 Subject: [Zope] ZClass bug ?! Message-ID: <38BC9FB7.305143CF@aHIT.de> I created a ZClass based upon DTMLDocument.I wanted to have a DTMLDocument class with some additional integer properties. So I decided NOT to derive my class from ObjectManager. Now when I create an instance of my new class within a Folder the instance has no id ! I think this is not a feature ;-) -- _________________________________________________________ Andreas Heckel andreas@aHIT.de From glyph@twistedmatrix.com Wed Mar 1 00:10:52 2000 From: glyph@twistedmatrix.com (glyph@twistedmatrix.com) Date: Tue, 29 Feb 2000 19:10:52 -0500 (EST) Subject: [Zope] I got it! In-Reply-To: <4889.951866726@kanga.nu> Message-ID: On 29 Feb, J C Lawrence wrote: > On Tue, 29 Feb 2000 17:46:38 -0500 (EST) > glyph wrote: > >> Is there a simple way to "turn on" SSL in ZServer, or will I need >> to use Apache to serve? > > Not that I know of. AFAICT you currently need to have Apache front > for ZServer (and Apache thus provide SSL). There's a python package > going about (see archives) that holds out the promise of being able > to do SSL in ZServer, but I don't know that anybody has done that > yet. It would also (seemingly) suffer the same problems as the > Apache route in that it would be an all-or-nothing approach. > > Please realise, I've not /done/ all this, its just what I've genned > from the list, and may be in error. Okay. Perhaps someone else on the list can answer this one then: I have a standard Debian install of Zope. ZServer works fine. Apache works fine. Zope shows up fine in apache. Except... I can't log in. At all. With any username. What do I have to do to get Apache to recognize Zope's authentication? -- ______ __ __ _____ _ _ | ____ | \_/ |_____] |_____| |_____| |_____ | | | | @ t w i s t e d m a t r i x . c o m http://www.twistedmatrix.com/~glyph/ From kid@kendermedia.com Wed Mar 1 00:20:11 2000 From: kid@kendermedia.com (Kevin Dangoor) Date: Tue, 29 Feb 2000 19:20:11 -0500 Subject: [Zope] Should I go with Zope? References: <20000229233333.28803.qmail@web1802.mail.yahoo.com> Message-ID: <017c01bf8313$e958ee40$7b5addc7@laptop> ----- Original Message ----- From: "Eric Walstad" To: "Zope@ zope.org" Sent: Tuesday, February 29, 2000 6:33 PM Subject: [Zope] Should I go with Zope? > I've been trying out Zope on CodeIt's free 2 week > trial and my trial is about over. I have no > experience with Zope prior to this trial account. I > went through the Zope Content Manager's tutorials and > have tried to research it thoroughly. Don't forget that you can also download Zope and try it out easily. I'm running it on Win32 for some development tasks, and it did not take much effort at all to install it and run it locally. So, if you want to continue playing you can always do that. > We are starting a new web application > project and are looking for a stable, scalable > platform that will be around and popular/supported for > a long time. In terms of popularity and being supported for a long time, I do believe that DC has been quite successful in their consulting business, so they'll be around. And, Zope itself is open source, so there will always be avenues available for using it. > 1. It appears that Zope offers little or no support > for more tried and true technologies such as Perl and > basic CGI. Is this the case? How does one interface > with our existing Perl and C++ CGI's? IMHO, you'll be quite happy wiht what you can do when you migrate those apps to Zope. In the meantime, though, you can continue using them by setting up Apache with rewrite rules that allow you to access those CGIs still. Without knowing anything about your app, it's difficult to state how you would "interface" with them. There are avenues for doing so. A pretty straightforward one might be XML-RPC. (Your perl CGIs could access Zope data via XML-RPC.) > 2. With no basic HTML back up, what if Zope goes > down? I think Zope is pretty stable (and I think most regular users of it would agree). It's not generally more likely to die than your system itself. If you do "low-level" development on a different machine, your database should be OK. Plus, all you need to do is back up your Data.fs file. If something got really messed up, you just drop in the back up file. I think the answer to "what if Zope goes down" is really the same kind of thing as "what if the server goes down?" or "what if the drive crashes?" If you really want, there is a Zope product that will mirror your site in HTML (and others have used wget to mirror the site in HTML). But, I think it's better to just maintain a solid Zope, because your site quickly goes from being a static HTML thing to being a dynamically produced, interactive thing which can't be reasonably represented by HTML. > 3. What is the limit of traffic Zope can serve at > once? Can users access the applications reliably, > repeatedly? People on this list have done benchmarks using ab and other tools. I think the general consensus was that with a moderate machine and a moderately dynamic app you can do a million hits+ per day. Through more machine at it, or go for ZEO (which lets you mirror the object database on multiple machines) and you can handle lots and lots of traffic. Our site (Byproducts.com) has been running on Zope since last May. I've had very little downtime and I don't think I would blame any of it on Zope. Kevin From a.k.heath@open.ac.uk Wed Mar 1 00:25:25 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Wed, 01 Mar 2000 00:25:25 +0000 Subject: [Zope] trees and namespaces newbie q Message-ID: <38BC6375.1CF97892@open.ac.uk> Still much to learn. I'm trying to write code to display a tree where different kinds of node require different display action. Each node has a property (possibly acquired) "kind". For nodes which reach the innermost in the code below I want the dtml content rendered. How can I do this? If i refer in some way to PARENTS[0] then id goes up with it. Please, please, please, what expression will work here to get the content of "id" rendered? Code follows ------------ () Andy -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From glyph@twistedmatrix.com Wed Mar 1 00:35:28 2000 From: glyph@twistedmatrix.com (glyph@twistedmatrix.com) Date: Tue, 29 Feb 2000 19:35:28 -0500 (EST) Subject: [Zope] I got it! In-Reply-To: Message-ID: On 29 Feb, I wrote: > Okay. Perhaps someone else on the list can answer this one then: I > have a standard Debian install of Zope. ZServer works fine. Apache > works fine. Zope shows up fine in apache. Except... I can't log in. > At all. With any username. What do I have to do to get Apache to > recognize Zope's authentication? Just to follow up to myself so you know: I have seen snippets about RewriteRules all over the place for using Apache with Zope... I have tried everything i've found, and nothing has worked so far. (The RewriteRules appear to do nothing at all...) -- ______ __ __ _____ _ _ | ____ | \_/ |_____] |_____| |_____| |_____ | | | | @ t w i s t e d m a t r i x . c o m http://www.twistedmatrix.com/~glyph/ From lstaffor@dynalogic.com Wed Mar 1 00:34:55 2000 From: lstaffor@dynalogic.com (Loren Stafford) Date: Tue, 29 Feb 2000 16:34:55 -0800 Subject: [Zope] Necraft Survey Zope Sites References: Message-ID: <01d901bf8315$f9d80920$2101a8c0@pavilion> From: J. Atwood > First time I have seen this list... > > http://www.netcraft.com/Survey/Reports/0002/byserver/Zope/ > > and click on "com" or go to.. > > http://www.netcraft.com/Survey/Reports/0002/byserver/Zope/com.html > > A few surprises.. > > http://www.toyota-motorsports.com/ > http://homemortgageusa.com/ > > And a few not even there?? > > JMA > Lot's not there. The only ones that show are those that use Zope built-in ZServer. If your Zope is hidden behind a different web server and that webserver's ID string hasn't been changed to mention Zope, then your site doesn't show. Anyway none of my sites show up on the Netcraft list. -- Loren From evan@4-am.com Wed Mar 1 01:16:39 2000 From: evan@4-am.com (Evan Simpson) Date: Tue, 29 Feb 2000 19:16:39 -0600 Subject: [Zope] Siteaccess problems References: Message-ID: <00a001bf831b$ddfa3060$8400a8c0@mozart> ----- Original Message ----- From: Stefan Langerman > I've had a couple of problems with SiteAccess. The first one > appeared when I tried the sample code from the doc: > > > ... > > This Access Rule is placed in some directory foo. If I try > to access http://my.site.org/foo I get: > Error Type: IndexError > Error Value: list index out of range > If I try http://my.site.org/foo/bar, there is no such problem. This is from the "Other Uses" page, right? In that example, it is an error to access the folder, since it is only meant to act as a placeholder for a session value. The IndexError occurs when the code tries to access the last element in the remaining path, but there *is* no remaining path! > > > redirect to login screen > > Access Rules execute before any authentication takes place, so AUTHENTICATED_USER doesn't exist yet. This also prevents them from accessing any other Zope objects unless you give the Rule a Proxy role. It looks like you need GenericUserFolder or UserDB. Cheers, Evan @ 4-am & digicool From taylor@taylor.org Wed Mar 1 01:26:35 2000 From: taylor@taylor.org (Taylor) Date: Tue, 29 Feb 2000 17:26:35 -0800 Subject: [Zope] unhandled connect event Message-ID: <010401bf831d$2f850440$6e00a8c0@redindustries.com> (short time reader, first time poster) So I've set up my zope installation to test it out for use as the intranet server and content management system for my company. One of the features that I intend to use heavily is the FTP access, the main users of the system will be designers and their clients, so I want to set up an interface that works with existing tools . However everytime I connect with ftp (used Dreamweaver's FTP client as well as EMACS) I get an "PROBLEM(100) ZServer unhandled connect event" error from Zope. I've just upgraded to 2.1.4 which solved the crashing problem for the most part. My question is what is an "unhandled connect event", can I make a connect event be handled? Is there a howto, a document or a previous thread on this subject? Help, I want to be a fanatic! -- grumpy futurist taylor@taylor.org From michel@digicool.com Wed Mar 1 02:26:02 2000 From: michel@digicool.com (Michel Pelletier) Date: Tue, 29 Feb 2000 18:26:02 -0800 Subject: [Zope] Multiple Processes References: <38BBA728.26CC5DDC@centre.edu> Message-ID: <38BC7FBA.89181D86@digicool.com> David Binger wrote: > > What prevents id collisions in Zope? An "Optimisitic Colision Resolution Protocol" > It looks like the the ObjectManager.py code > checks to see if the id is taken, and then > it reserves the id. Right. > Is there a danger that 2 processes/threads > (z2.py -t 4?) could both check and reserve > the same id? Yes. One thread will win, and one thread will loose. The winner will get the new id. The looser will try again. The looser will find out when it tries again the the id it wants is taken, and will report that to the user. The user picks another id. > Is there something in Zope that prevents this > (improbable, but perhaps possible) problem? No, but a programatic resolution protocol is planned for future releases of ZODB. > > Is there certain way to find an > object id that is not taken? The chances of colision are very small unless you have an incredibly write intensive application (which is not ideal for ZODB filestorage. In that case, you should store your information in a RDBMS). This the "optimism" in optimistic. -Michel From tseaver@palladion.com Wed Mar 1 02:59:23 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 29 Feb 2000 20:59:23 -0600 Subject: [Zope] Worldpilot IMAP Bl00z References: <38B5B056.C72C9288@palladion.com> <873dqdou66.fsf@alpha.cfas.washington.edu> <38BC0E25.F81146B8@n-h.net> Message-ID: <38BC878B.3C8B584A@palladion.com> Ryan Hughes wrote: > > "A.J. Rossini" wrote: > > > > (zope list removed from followup) > > >>>>> "TS" == Tres Seaver writes: > > > > TS> I have installed WP 1.01 on a fresh Zope 2.1.3. On the same > > TS> RH 6.1 box, I am running the stock imapd, which I can connect > > TS> to from Netscape's Messenger. > > > > TS> The files/directories under /var/spool/worldpilot are owned by > > TS> nobody.zope (I start Zope as root). > > > > TS> When I log in, the browser spins after displaying the WP > > TS> headers. top on the server shows the Zope python process > > TS> (running as nobody) and an imapd process (running as me) > > TS> sucking all the CPU, but nothing happens. > > > > TS> If I click on one of the links in the header, I can see the > > TS> calendar, to-do list, etc., but the mail pane shows a Zope > > TS> error, with "readonly -- INBOX" at the foot of the traceback. > > > > TS> What am I doing wrong? -- > > > > Tres (and worldpilot) - > > > > Did this ever get solved, or a hint of a solution? I'm seeing this > > identical situation, Python 1.52, patched imaplib.py(?), Zope 2.1.4, > > and worldpilot 1.0.1, i.e. 1.00.3, WU-imap (version not known). > > > > The scenario is Zope on an Debian/Intel box, WU-imap on a Slowaris 2.7 > > (ultrasparc) box. > > > > On debian, it's www-data.www-data (ownership, and Zope is running as > > www-data), so /var/spool/worldpilot is set accordingly... > > > > I don't get the INBOX at all (but my home directory is 1.5Gb, might > > take a while to look for folders? I'm not imap-familiar, but noted a > > comment to that effect on the list); I've got an apparent "freeze-up" > > at this point. This is after waiting 5 minutes... > > > > I can get to the calendars, etc... > > > > Any thoughts? > > Please check if the patched imaplib.py is really the one being imported? > > The other issue is that if you're using UW IMAP it will probably list > your > whole INBOX which is apparently your home directory. This could take a > while especially if you home directory is large. > > I'mm trying to get together the facts of using WorldPilot with UW IMAP > to make a FAQ, since we ourselves have no experience with UW IMAP. > > Please check your worldpilot with an account that has a small home > directory > and let me know if the size is the problem. > If your Zope process still cranks forever, then it's an imaplib.py > issue. > Up to now patching it solved the problem (as far as our experience > concerns). WU IMAP on a RH 6.x box is *bizarre*., Ok, I kicked this off before dinner, having added some debugging output to imaplib.py. When I came back, there was a TON of it dumped across the console at which I was running Zope, but no mail. Basically, it had walked down through all the .gnome/* directories, sucking up bitmaps, retular files, subdirectories, everything (ICK!). Maybe we need to add a property to the WorldPilot object which lets you configure the folder passed to the initial list() call (e.g., to be something like "~/Mail"). This parameter would default to the empty string, so that the Cyrus clients would continue to operate as before. I'll see if I can't come up with some kind of patch. Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From michel@digicool.com Wed Mar 1 03:30:01 2000 From: michel@digicool.com (Michel Pelletier) Date: Tue, 29 Feb 2000 19:30:01 -0800 Subject: [Zope] Worldpilot IMAP Bl00z References: <38B5B056.C72C9288@palladion.com> <873dqdou66.fsf@alpha.cfas.washington.edu> <38BC0E25.F81146B8@n-h.net> <38BC878B.3C8B584A@palladion.com> Message-ID: <38BC8EB9.9BF54B95@digicool.com> Tres Seaver wrote: > > > WU IMAP on a RH 6.x box is *bizarre*., Try editing the configuration file sometime. It's the one that ends in .c ;) -Michel From bill@libc.org Wed Mar 1 03:41:31 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 29 Feb 2000 20:41:31 -0700 Subject: [Zope] Multiple Processes References: <38BBA728.26CC5DDC@centre.edu> <38BC7FBA.89181D86@digicool.com> Message-ID: <38BC916B.FEA879F9@libc.org> Michel Pelletier wrote: > > David Binger wrote: > > > > What prevents id collisions in Zope? > > An "Optimisitic Colision Resolution Protocol" OCRP ... pronounced 'Oh Crap' by any chance? -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From bill@libc.org Wed Mar 1 03:51:24 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 29 Feb 2000 20:51:24 -0700 Subject: [Zope] Necraft Survey Zope Sites References: <01d901bf8315$f9d80920$2101a8c0@pavilion> Message-ID: <38BC93BC.5078F92C@libc.org> Loren Stafford wrote: > > From: J. Atwood > > > First time I have seen this list... > > > > http://www.netcraft.com/Survey/Reports/0002/byserver/Zope/ > > > > and click on "com" or go to.. > > > > http://www.netcraft.com/Survey/Reports/0002/byserver/Zope/com.html > > > > A few surprises.. > > > > http://www.toyota-motorsports.com/ > > http://homemortgageusa.com/ > > > > And a few not even there?? > > > > JMA > > > > Lot's not there. The only ones that show are those that use Zope built-in > ZServer. If your Zope is hidden behind a different web server and that > webserver's ID string hasn't been changed to mention Zope, then your site > doesn't show. Anyway none of my sites show up on the Netcraft list. If you click on the "what's that site running" link, and enter yours, it will automatically appear in the next report set. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From tseaver@palladion.com Wed Mar 1 04:31:46 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 29 Feb 2000 22:31:46 -0600 Subject: [Zope] Worldpilot IMAP Bl00z References: <38B5B056.C72C9288@palladion.com> <873dqdou66.fsf@alpha.cfas.washington.edu> <38BC0E25.F81146B8@n-h.net> <38BC878B.3C8B584A@palladion.com> <38BC8EB9.9BF54B95@digicool.com> Message-ID: <38BC9D32.A1E95F4F@palladion.com> Michel Pelletier wrote: > > Tres Seaver wrote: > > > > > > > WU IMAP on a RH 6.x box is *bizarre*., > > Try editing the configuration file sometime. It's the one that ends in > .c My sarcasm meter is in the shop after an accidental exposure to comp.lang.perl.misc (ugly story, don't ask), so I'm not sure how big a brick of salt to apply. WU IMAP is a nice stick for clobbering those who think Zope's documentation stinks; there is absolutely *nothing* in the package to give the hapluse admin any clue how to configure the damn thing. I spent about 4 hours this weekend prowling the net looking to resolve this issue. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jack@jacku.com Wed Mar 1 05:09:43 2000 From: jack@jacku.com (Jack Ungerleider) Date: Tue, 29 Feb 2000 23:09:43 -0600 Subject: [Zope] Worldpilot IMAP Bl00z References: <38BC878B.3C8B584A@palladion.com> Message-ID: <00022923145700.00360@viking> Hi Tres, This was written up last week and after a little digging on egroups (I thought I had saved that message) I finally found it. Jo Meder provided the following information Chances are, that the request to "LIST *" in directory "" that imaplib issues cause your imapd to begin scanning your whole home directory which can be a lot of data, as we all know. I worked around this problem by creating /etc/c-client.cf with the following contents (the first line is required by imapd, otherwise the file is not accepted): --------------------------------------cut here ------------------- I accept the risk for IMAP toolkit 4.1. set black-box-directory /var/spool/imap_folderlinks/ --------------------------------------cut here ------------------- I then created /var/spool/imap_folderlinks and symlinked the directory in which my mailbox folders reside to /var/spool/imap_folderlinks/jo Repeat for all users on the system and set permissions appropriately. Jo. Also some information on this can be found in the file imaprc.txt that should be in /usr/doc/ or where ever RH dumps it. (I'm running this on SuSE myself.) I have tried this fix but I probably will. On Tue, 29 Feb 2000, Tres Seaver wrote: > > WU IMAP on a RH 6.x box is *bizarre*., > > Ok, I kicked this off before dinner, having added some debugging output to > imaplib.py. When I came back, there was a TON of it dumped across the console > at which I was running Zope, but no mail. Basically, it had walked down through > all the .gnome/* directories, sucking up bitmaps, retular files, subdirectories, > everything (ICK!). > > Maybe we need to add a property to the WorldPilot object which lets you > configure the folder passed to the initial list() call (e.g., to be something > like "~/Mail"). This parameter would default to the empty string, so that the > Cyrus clients would continue to operate as before. I'll see if I can't come up > with some kind of patch. > > Tres. > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- Jack Ungerleider The Ungerleider Group Creative Solutions for Cooperative Computing jack@jacku.com www.jacku.com From lfalse@cs.rutgers.edu Wed Mar 1 05:26:18 2000 From: lfalse@cs.rutgers.edu (Stefan Langerman) Date: Wed, 01 Mar 2000 00:26:18 -0500 Subject: [Zope] RE: Different Login Screens for Management and User? Message-ID: <38BCA9A0.C5CEA34@cs.rutgers.edu> I was working on the same kind of problem (see my earlier post today), and I think I found some solution, thanks to the many hints here and in the zope-ptk list. It's actually quite simple. The trick is to play with exceptions. In your standard_html_header, include something like (replace 'Member' with the role you want):

Please login before entering!

When the error is raised, the standard_error_message is called, so from there, you can do some more tests and go to the appropriate login page. I have not fully tested this yet, but I think it should work. I think if you put type=Unauthorized in the dtml-raise tag, you should get the usual HTML login instead of the error. Anyone has a better (more elegant/original/creative) solution? -- Stefan. > James W. Howe jwh@allencreek.com wrote: > > In creating my web site, I'm planning on limiting access to certain > portions of the site to registered users. When a user attempts to "view" > these areas, if they haven't logged in, I want to display a login page and > get their name and password. I also want to provide a way for the web site > management team to login and perform management activities. I would like > to present a different login screen (maybe just a basic auth dialog) to > allow access to management functions. I've been playing around a little > with GUF, but I haven't found a way to present two different login screens > based on the type of page being accessed. Is this type of functionality > possible with Zope? Would the LoginManager allow for this sort of thing? > > Thanks. > > James W. Howe mailto:jwh@allencreek.com > Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html > Ann Arbor, MI 48103 > From terry@adroitnet.com.au Wed Mar 1 05:26:52 2000 From: terry@adroitnet.com.au (Terry Kerr) Date: Wed, 01 Mar 2000 16:26:52 +1100 Subject: [Zope] reading from file in ZODB Message-ID: <38BCAA1B.B61BBE7@adroitnet.com.au> Hi, Is there a way to read from a binary file stored in the ZODB...eg, ob.read(x) to read x bytes?? terry -- Terry Kerr (terry@adroitnet.com.au) Adroit Internet Solutions Pty Ltd (www.adroitnet.com.au) (03) 9888 8522 0414 938 124 From egibson@connect.com.au Wed Mar 1 06:44:07 2000 From: egibson@connect.com.au (Evan Gibson) Date: Wed, 1 Mar 2000 17:44:07 +1100 Subject: [Zope] Uploading file and transaction error? Message-ID: <20000301174407.04448@connect.com.au> >I have an uploading section on may intranet site (no ZCLASS), where >people are able to upload files from their local pcs, setting properties >for the files and selecting a subfolder (or creating a new one), where >the file will be stored. > >Now I get from time to time an attribute error and I have no clue, why >and what I should do to prevent this. > >Error type: AttributeError > Error value: commit_sub > >the traceback: > >File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 214, in >publish_module > File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 179, >in publish > File D:\PROGRA~1\zope_214\lib\python\Zope\__init__.py, line 202, in >zpublisher_exception_hook > (Object: ElementWithAttributes) > File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 169, >in publish > File D:\PROGRA~1\zope_214\lib\python\ZODB\Transaction.py, line 246, in >commit > >Has anybody seen this too? I get this exact same problem trying to add completely normal File Objects to my Zope site. I can create the object empty if I don't include an upload, but the instant I try and upload anything it dies with the above error. It happens _constantly_ for me, not just time to time. Evan Gibson -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace. From J.A.R.Williams@aston.ac.uk Wed Mar 1 07:08:05 2000 From: J.A.R.Williams@aston.ac.uk (John Williams) Date: 01 Mar 2000 07:08:05 +0000 Subject: [Zope] structured text formatting In-Reply-To: "Jonothan Farr"'s message of "Mon, 28 Feb 2000 17:12:59 -0800" References: <025b01bf8252$1e6d9350$eb0217ac@dev.prognet.com> Message-ID: >>>>> "Jonothan" == Jonothan Farr writes: >> The structured text formating doesn't appear to work properly >> with data extracted from an external SQL database - in >> particular the paragraph type formatting is lost although the >> character type formatting does work. How do I get around this >> problem? Jonothan> Your lines are probably terminated with '\r\n', but Jonothan> structured text requires only '\n'. Jonothan> Try: Jonothan> string.join(string.split(data, '\r\n'), '\n') Thanks - that worked. -- Dr. John A.R. Williams Photonics Research Group Telecommunications Technology Programme Director Aston University From J.A.R.Williams@aston.ac.uk Wed Mar 1 07:19:49 2000 From: J.A.R.Williams@aston.ac.uk (John Williams) Date: 01 Mar 2000 07:19:49 +0000 Subject: [Zope] Using SQL aggregate functions In-Reply-To: zope-admin@zope.org's message of "Mon, 28 Feb 2000 08:23:23 -0800 (PST)" References: <200002281623.IAA19895@zope.codeit.com> Message-ID: >>>>> "Monty Taylor" = writes: Monty> I think I've found a small bug in ZMySQLDA. In db.py, there Monty> is a dictionary called defs, which maps the types returned Monty> by MySQL into single letter type flags, or some such Monty> thing. When you use an aggregate function such as count, Monty> the type returned is 'unhandled', which doesn't have a Monty> matching key in the defs dictionary. I edited the db.py Monty> file, adding an entry for 'unhandled' mapping it to 't'. I Monty> don't know that 't' is really what it wants, maybe someone Monty> else can shed light on which type would be better. Monty>... Monty> John Williams wrote: >> I have been trying to use SQL aggregate functions in SQL >> Methods to calculate some statistics e.g. something like >> >> SELECT id,count(id) from data group by field >> >> I am using MySQL, and the query works if entered directly from >> another client, however Zopes SQL method returns an error. Is >> this a known problem. Is there a known workaround or patch? Thank you. This 'patch' did in fact work although the problem was in fact more subtle than originally described - the 'unhandled' type error only arose if I used joins in the select part of the statement. -- Dr. John A.R. Williams From jiva@devware.com Wed Mar 1 08:13:20 2000 From: jiva@devware.com (jiva@devware.com) Date: Wed, 1 Mar 2000 01:13:20 -0700 Subject: [Zope] Zope and remote caches. Message-ID: <20000301011319.A10204@devware.com> So, if I am grokking the whole zope thang properly here, then theoretically, when I imbed objects within my zope documents, I shouldn't hardcode in specific urls to them. Instead, I should treat them almost as if they are always in the current directory, even if they are a couple of folders up. This way, if I want to override some behavior in the future, I just copy the object down into the current folder and edit it. I notice however, that if I do this, it plays hell with browser caching because the browser winds up pulling things from different places all the time even if it's actually winding up pulling the same document down. How do other people deal with this? -- Fundamentally, there may be no basis for anything. From phil.harris@zope.co.uk Wed Mar 1 09:14:52 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Wed, 1 Mar 2000 09:14:52 -0000 Subject: [Zope] zGold? References: <38BBB803.B4A55FD9@home.com> Message-ID: <002901bf835e$9f032090$5c773fc1@media1> Hi Lucas, I am the original author of zGold, and I'd like to explain where it came from and what happened to it subsequently. zGold was originally written as an exercise of learning and also as an example site for a conference/exhibition here in the UK. At creation time there was no intention of releasing it to the public at large. It was however made available purely as a 'teaching aid'. Subsequently it was proved that there was a serious security hole in it that allowed users to see the clear-text passwords/usernames of other users. Also since this was created in my 'spare time', I have had no further time to allocate to it and it has sort of died of neglect. That being said, I still have the original tarball hanging around and anyone who wants it can mail me and I'll get it sent out. caveat: zGold is not supported in anyway and is not 'production' ready. Use it at your own risk. I will not be liable/responsible for any/all problems it may cause. Thanks for listening. Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Lucas Vogel" To: "zope" Sent: Tuesday, February 29, 2000 12:13 PM Subject: [Zope] zGold? > Why isn't zGold published at the zope.org site like the rest of the > products? Is it still usable? Can someone send me a copy, since the site > that hosts zGold won't come up? > > Thanks > > -- > Lucas Vogel > lucas7@home.com > ICQ: 44697169 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From weiner@tu-harburg.de Wed Mar 1 10:03:11 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Wed, 01 Mar 2000 11:03:11 +0100 Subject: [Zope] trees and namespaces newbie q References: <38BC6375.1CF97892@open.ac.uk> Message-ID: <200003011001.LAA17503@rztsun.rz.tu-harburg.de> Andy Heath schrieb: > > Still much to learn. > > I'm trying to write code to display a tree where different > kinds of node require different display action. Each node has a > property (possibly acquired) "kind". For nodes which reach > the innermost in the code below I want the dtml > content rendered. How can I do this? If i refer in > some way to PARENTS[0] then id goes up with it. > > Please, please, please, what expression will work here > to get the content of "id" rendered? > > Code follows > ------------ > > > > > > > > > > > try: this should render the content of 'id'. hth, Thomas From vw@lightwerk.de Wed Mar 1 10:42:37 2000 From: vw@lightwerk.de (Veikko Wuensche) Date: Wed, 1 Mar 2000 11:42:37 +0100 Subject: [Zope] Re: HTML-Site Import In-Reply-To: <20000301113243.A1499@lightwerk.de> References: <20000301113243.A1499@lightwerk.de> Message-ID: <20000301114237.A1540@lightwerk.de> Hello, I want to import a static HTML web site (about 10 directories, 100 HTML pages, 10 PDF Files, Images ...) into Zope 2.1.4 But I couln't find any documentation about it. Ok, I found load_site.py ./load_site.py [options] url file ..... But: Which 'url' should I pass here? Does 'file' mean that I only can import one file an not a whole directory tree? Where can I find more information? Thank you Veikko -- Veikko Wünsche vw@lightwerk.de http://www.lightwerk.de/ From Paul@digicool.com Wed Mar 1 11:38:39 2000 From: Paul@digicool.com (Paul Everitt) Date: Wed, 1 Mar 2000 06:38:39 -0500 Subject: [Zope] about the new site design Message-ID: <613145F79272D211914B0020AFF640192630F0@gandalf.digicool.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_000_01BF8372.B08CEB60 Content-Type: text/plain chris abraham wrote: > > At 11:46 PM -0500 12/25/99, Michel Pelletier wrote: > > >I propose there should be a link on the navigation bar ('Search', > >'Documentation' .etc..) called 'News' that has the old 'slash' style > >news display. > > I agree about the quickstart news /. eyeful that they current site has (or > has it changed?) is very useful for me to 'keep up' with the current head > of steam, as my 2 cents in concerned. I would bookmark a page like that > and leave the 'marketing' page to the first timers. Howdy all. Please note that "More" under "Zope News" has the old style display. Question: do you think we should have a knob available for members that lets them toggle the home page between old style and new style? --Paul ------ =_NextPart_000_01BF8372.B08CEB60 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IikLAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0AcDAAEABgAmACcAAwAxAQEggAMADgAAANAHAwAB AAYAJgAoAAMAMgEBCYABACEAAABCMkMwOUY4ODQ0RUVEMzExOTFBMDAwRTAyOTJCMEVCNwAeBwEE gAEAJQAAAFJlOiBbWm9wZV0gYWJvdXQgdGhlIG5ldyBzaXRlIGRlc2lnbgDcDAENgAQAAgAAAAIA AgABA5AGAPQGAAAmAAAAAwAAOQAAAAAeAP85AQAAAAUAAABQYXVsAAAAAB4AIDoBAAAADQAAAFBh dWwgRXZlcml0dAAAAAALAEA6AQAAAB4AMUABAAAABQAAAFBBVUwAAAAAAwAaQAAAAAAeADBAAQAA AAUAAABQQVVMAAAAAAMAGUAAAAAAAgEJEAEAAADPAgAAywIAAA8EAABMWkZ1m8256YcACgENA0N0 ZXh0Aff/AqQD5AXrAoMAUALzBrQCgyYyA8UCAGNoCsBzZdh0MCAHEwKAfQqACM+/CdkCgAqECzcS wgHQIBNgJwUQBCABoHJhE3BtILZ3A2AO8DoKowqAPgrjBRlTQQVAMTE6NDYAIFBNIC0wNTABE9Ax Mi8yNS85VDksBdBpE2BlAyBQPRwwbBOwCJEYrx12PkkkIHADYHBvE6AgdCMcIBVAIHNoCGBsZEQg Yh8QYSBsC4BrBiACIB8iIG5hdmksZ2EcsCChYgrBKCcnBmAKwBNgJywd+CdEOG9jdQeAAjAhYycg wi4TsGMuLikXwAdA6xyQH+AnB8FzJCAfMCFgviATcAQgINIG8CURcwtgYx+QJCBzdHkckB34bpkl USBkBAALUXkuHW/6IB6QYQnCGCEIYAVAINL0cXUcAGsnMArABUAoI+AvLiBleQEQH8AllH0fMXkX wAhwFUACMB+AafsO8CXjKAWwKPcl8i4AF8G1AHBnCYA/JKAYAXYEkP0tUHUToCySAhAFwAeAHyCq byUgawngcDDAcCQg3wPwHzAgwy12HCBhCzEZNWxvZichIjBtG9AmAW19LVAyF8AjoS9hA6AFoG5f NYAEoAmALEAqAXcftG/0b2sAwHIggCAwCrAv8P8gQTHwJZMo9wBwH+AckCEg/x8TJSA3khyhL+Ak IDgDMbH5INJmaROQKtEHcROQKObhKPVIb3dkLVAk0TahNlA5sR8Bbh0hJZQiTTkFsGUiMMA5gBzR Ilr/HtAfECVCP6Al+ic6KH0o9W5RClAnMCGBOihgMcB59whgHyEgYncfdxNwOeEgMOprPrBiGCB2 C3ALYAJg/zuxMVMG0DxhOJockSYTGJD5MbBnZ0cBINIfoDGBOAP9IAB0RTAJ8EFYOWMoISckQj88 rC0tUGEfwH0BTeAAQAA5AHC/T7Byg78BAwAmAAAAAAALABaACCAGAAAAAADAAAAAAAAARgAAAAAO hQAAAAAAAAMA/T/kBAAAAwDxPwkEAAAeAHAAAQAAACEAAABbWm9wZV0gYWJvdXQgdGhlIG5ldyBz aXRlIGRlc2lnbgAAAAACAXEAAQAAABYAAAABv4NysE+In8C27kQR05GgAOApKw63AAALAPIQAQAA AAIBRwABAAAAOAAAAGM9VVM7YT0gO3A9RGlnaXRhbCBDcmVhdGlvbjtsPUdBTkRBTEYtMDAwMzAx MTEzODM5Wi0yMDEAAgH5PwEAAABOAAAAAAAAANynQMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPURJ R0lUQUwgQ1JFQVRJT05TL09VPURDSS9DTj1SRUNJUElFTlRTL0NOPVBBVUwAAAAeAPg/AQAAAA0A AABQYXVsIEV2ZXJpdHQAAAAAHgA4QAEAAAAFAAAAUEFVTAAAAAACAfs/AQAAAE4AAAAAAAAA3KdA yMBCEBq0uQgAKy/hggEAAAAAAAAAL089RElHSVRBTCBDUkVBVElPTlMvT1U9RENJL0NOPVJFQ0lQ SUVOVFMvQ049UEFVTAAAAB4A+j8BAAAADQAAAFBhdWwgRXZlcml0dAAAAAAeADlAAQAAAAUAAABQ QVVMAAAAAEAABzBgHyuwcoO/AUAACDBg64ywcoO/AR4APQABAAAABQAAAFJlOiAAAAAAHgAdDgEA AAAhAAAAW1pvcGVdIGFib3V0IHRoZSBuZXcgc2l0ZSBkZXNpZ24AAAAAHgA1EAEAAAA+AAAAPDYx MzE0NUY3OTI3MkQyMTE5MTRCMDAyMEFGRjY0MDE5MjYzMEYwQGdhbmRhbGYuZGlnaWNvb2wuY29t PgAAAAMANgAAAAAACwApAAAAAAALACMAAAAAAAMABhBkf4N6AwAHEDkCAAADABAQAAAAAAMAERAA AAAAHgAIEAEAAABlAAAAQ0hSSVNBQlJBSEFNV1JPVEU6QVQxMTo0NlBNLTA1MDAxMi8yNS85OSxN SUNIRUxQRUxMRVRJRVJXUk9URTpJUFJPUE9TRVRIRVJFU0hPVUxEQkVBTElOS09OVEhFTkFWSUdB VAAAAAACAX8AAQAAAD4AAAA8NjEzMTQ1Rjc5MjcyRDIxMTkxNEIwMDIwQUZGNjQwMTkyNjMwRjBA Z2FuZGFsZi5kaWdpY29vbC5jb20+AAAAyLk= ------ =_NextPart_000_01BF8372.B08CEB60-- From akm@mail.theinternet.com.au Wed Mar 1 11:27:34 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Wed, 1 Mar 2000 21:27:34 +1000 (EST) Subject: [Zope] ODBC + Zope + UNIX Message-ID: <200003011127.VAA65638@mail.theinternet.com.au> What is required to get ODBC under UNIX functioning using e.g. the iODBC drivers? Is it just a matter of pulling down the winODBC driver and making it work, or is there some devil magic required (i.e. do I have to commit weeks, rather than days to it). I do have a black robe, plenty of chickens, and a goat. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From weiner@tu-harburg.de Wed Mar 1 11:41:09 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Wed, 01 Mar 2000 12:41:09 +0100 Subject: [Zope] Uploading file and transaction error? References: <20000301174407.04448@connect.com.au> Message-ID: <200003011139.MAA23051@rztsun.rz.tu-harburg.de> Evan Gibson schrieb: [Transaction error / Error value: commit_sub] > > I get this exact same problem trying to add completely normal File Objects > to my Zope site. > I can create the object empty if I don't include an upload, but the instant > I try and upload anything it dies with the above error. > It happens _constantly_ for me, not just time to time. Hmm .. this sounds really weird. In my case I observed the following. Structure: / +Intermobil +daten (up-/download section with form for upload, dtml-methods, external methods etc) +category1 +category2 +... (sub- and subsubfolders for storing the files) testfile is a Winzip/Zip file (1.129 KB), uploading it gives the error. I created a test folder somewhere else and pasted the content of the daten folder (without category subfolders), tried to upload my zip file there .. and -voila- it worked. Then I changed the upload method in my test folder by inserting a in order to redirect the upload into a category subfolder of the original daten folder .. and -surprisingly for me- the upload of the test file worked, too. I deleted the file, went back to daten, tried again and got the same error as before. So here I'm really confused, cause I don't know where to look and what exactly could have caused this problem. Thanks for bringing up this to the list again, Thomas From weiner@tu-harburg.de Wed Mar 1 11:50:54 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Wed, 01 Mar 2000 12:50:54 +0100 Subject: [Zope] ZClass bug ?! References: <38BC9FB7.305143CF@aHIT.de> Message-ID: <200003011149.MAA23633@rztsun.rz.tu-harburg.de> Andreas schrieb: > > I created a ZClass based upon DTMLDocument.I wanted to have > a DTMLDocument class with some additional integer properties. > So I decided NOT to derive my class from ObjectManager. > > Now when I create an instance of my new class within a Folder > the instance has no id ! > > I think this is not a feature ;-) There's a Howto about this on Zope.org http://yyy.zope.org/Members/AlexR/ZClassIDBug hth, Thomas From Paul@digicool.com Wed Mar 1 12:10:23 2000 From: Paul@digicool.com (Paul Everitt) Date: Wed, 1 Mar 2000 07:10:23 -0500 Subject: [Zope] about the new site design Message-ID: <613145F79272D211914B0020AFF640192631D7@gandalf.digicool.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------ =_NextPart_000_01BF8377.1F0EB790 Content-Type: text/plain My apologies. It appears I got my PalmPilot misconfigured and it sent out a bunch of previously sent emails when I replicated. :^( --Paul -----Original Message----- From: Paul Everitt Sent: Wednesday, March 01, 2000 6:39 AM To: chris abraham Cc: webmaster@zope.org; zope@zope.org Subject: Re: [Zope] about the new site design chris abraham wrote: > > At 11:46 PM -0500 12/25/99, Michel Pelletier wrote: > > >I propose there should be a link on the navigation bar ('Search', > >'Documentation' .etc..) called 'News' that has the old 'slash' style > >news display. > > I agree about the quickstart news /. eyeful that they current site has (or > has it changed?) is very useful for me to 'keep up' with the current head > of steam, as my 2 cents in concerned. I would bookmark a page like that > and leave the 'marketing' page to the first timers. Howdy all. Please note that "More" under "Zope News" has the old style display. Question: do you think we should have a knob available for members that lets them toggle the home page between old style and new style? --Paul ------ =_NextPart_000_01BF8377.1F0EB790 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IhgMAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0AcDAAEABwAKABcAAwAGAQEggAMADgAAANAHAwAB AAcACgAXAAMABgEBCYABACEAAABDNTlFM0UyMTY2RUZEMzExOTFBMDAwRTAyOTJCMEVCNwAeBwEE gAEAJQAAAFJFOiBbWm9wZV0gYWJvdXQgdGhlIG5ldyBzaXRlIGRlc2lnbgC8DAENgAQAAgAAAAIA AgABA5AGAOgJAAAyAAAAAwA2AAAAAAADABGACCAGAAAAAADAAAAAAAAARgAAAABShQAAJ2oBAB4A EoAIIAYAAAAAAMAAAAAAAABGAAAAAFSFAAABAAAABAAAADkuMAALABOACCAGAAAAAADAAAAAAAAA RgAAAAAGhQAAAAAAAAMAFIAIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAACwAVgAggBgAAAAAA wAAAAAAAAEYAAAAAA4UAAAAAAAALABaACCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMAF4AI IAYAAAAAAMAAAAAAAABGAAAAABCFAAAAAAAAAwAYgAggBgAAAAAAwAAAAAAAAEYAAAAAEYUAAAAA AAADABmACCAGAAAAAADAAAAAAAAARgAAAAAYhQAAAAAAAB4AGoAIIAYAAAAAAMAAAAAAAABGAAAA ADaFAAABAAAAAQAAAAAAAAAeABuACCAGAAAAAADAAAAAAAAARgAAAAA3hQAAAQAAAAEAAAAAAAAA HgAcgAggBgAAAAAAwAAAAAAAAEYAAAAAOIUAAAEAAAABAAAAAAAAAAIBCRABAAAAFAQAABAEAADi BQAATFpGdcu40nADAAoAcmNwZzEyNeIyA0N0ZXgFQQEDAff/CoACpAPkBxMCgA/zAFAEVj8IVQey ESUOUQMBAgBjaOEKwHNldDIGAAbDESX2MwRGE7cwEiwRMwjvCfe2OxgfDjA1ESIMYGMAUPMLCQFk MzYWUAumCuMKgKBNeSBhcBehZwiQYHMuICBJBUAdgHBGZRPxHjAgZ28FQG3lHWBQB0BtUAMQHyIE AOEFoG5maWcIcAmAHXC6biDgaQVAFBACMCAIYGEeUSBidW4T0CGwZiQgcBggdmkIYHNsOx1gIXNl AMADEAQgd2hfCfAe4RggC1AN4GEOsGQxHhA6Xigc9Bz0LS3dH4B1GAAlmydhTwUQHdAObgdABdAH kHNhZ2VrJ2Mc9EYDYTofcSaAIPxFdgZxAkAc5QZgAjApoApXCYBuB5BkYXks5wXQCsAiUTAxK+AB 0CywoCA2OjM5EMBNHPR8VG8poBPQBRAEIAGgckphE+BtHPRDYymgdxRlYgDAcw6wckB6im8ekC4F sGc7IDASYzAHKpV1YmoFkCshUtJlKaBbWjAhXS5RIcJ6dCQwICuAB+AAkA6wIPsBAACQZwuQJZkc 9C4LJBBrA2AOsDoc9D4c5TdwQUEFQDExOjQ2H3BNsCAtMDUswQ4gLw4weC85OSvhDeAkMAMgUL06 EGwUIBJyNr83Qz4e8HsisDAgbxQQM3IYICFgaHUIYGwg4GIzoCIAJMBurmshsAOgM4NhIuBnJPDL IvADoGIKwSgnBmAsEgQnLDvHJ0RvY3VHB4ACMD8jJyAuFCBjeC4uKS3wB0A6cCDgJ90HwXNB0DOA JPAgE+AEIH8zggbwQsEjIC+wQDAhYHTeeTpwO8czwQQgZAQAC1F8eS43Hh7wKIAJ0TMZcXp1DeBr L8AKwAVARcMv+R4QZXkBECnhQ1MzgR1gvUEgchggIZE0A0OiKAWwLzcWQ6IhQRPRbiiQZD//QlAu MSohHWAjEEoDAhAFwKsHgDNwb0LQawngcE4wfnBB0APwM4Azc0r2JDBh/wsxNzQigS/BLrAr4EOx H1H9FEBjIYFM0QOgIFFS4ASgiyUSHuF3PXRvb2sAwP5yPkAiAAqwKJA+AU9gQ0P/NxYhAjpwPuA8 00LQVPI6gf9NUEHQVWNPITOCIIAUADNhDwdxFABGhRz0SG93ZLcdYTpgHhFQVwE8wW47AclDRCJN BbBlIk4wIRDtEoEiMsIHsnNc0EOqROl7Rhwc9FEKUC/AP0EpoGT9TzB5CGAzcT4iL3A9RhPgq1cx IgBrW+BiHXB2I9H/AaA6cE6lBtBZsVX5OnFDw/M2kE8gZ2dkATOCPWBO8ftVYz3AdC9wJEFelyDz M8MtRPI/JY8mlX1rEB4AcAABAAAAIQAAAFtab3BlXSBhYm91dCB0aGUgbmV3IHNpdGUgZGVzaWdu AAAAAAIBcQABAAAAGwAAAAG/g3KwT4ifwLbuRBHTkaAA4CkrDrcAAB3G8AADACYAAAAAAAMALgAA AAAACwACAAEAAAADAAlZAQAAAB4AQhABAAAAPgAAADw2MTMxNDVGNzkyNzJEMjExOTE0QjAwMjBB RkY2NDAxOTI2MzBGMEBnYW5kYWxmLmRpZ2ljb29sLmNvbT4AAAADAN4/r28AAEAAOQAgLfYed4O/ AQMA8T8JBAAAHgAxQAEAAAAFAAAAUEFVTAAAAAADABpAAAAAAB4AMEABAAAABQAAAFBBVUwAAAAA AwAZQAAAAAADAP0/5AQAAAMAgBD/////AgFHAAEAAAA4AAAAYz1VUzthPSA7cD1EaWdpdGFsIENy ZWF0aW9uO2w9R0FOREFMRi0wMDAzMDExMjEwMjNaLTQzMAACAfk/AQAAAE4AAAAAAAAA3KdAyMBC EBq0uQgAKy/hggEAAAAAAAAAL089RElHSVRBTCBDUkVBVElPTlMvT1U9RENJL0NOPVJFQ0lQSUVO VFMvQ049UEFVTAAAAB4A+D8BAAAADQAAAFBhdWwgRXZlcml0dAAAAAAeADhAAQAAAAUAAABQQVVM AAAAAAIB+z8BAAAATgAAAAAAAADcp0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1ESUdJVEFMIENS RUFUSU9OUy9PVT1EQ0kvQ049UkVDSVBJRU5UUy9DTj1QQVVMAAAAHgD6PwEAAAANAAAAUGF1bCBF dmVyaXR0AAAAAB4AOUABAAAABQAAAFBBVUwAAAAAQAAHMNAn8B53g78BQAAIMJC3Dh93g78BHgA9 AAEAAAAFAAAAUkU6IAAAAAAeAB0OAQAAACEAAABbWm9wZV0gYWJvdXQgdGhlIG5ldyBzaXRlIGRl c2lnbgAAAAAeADUQAQAAAD4AAAA8NjEzMTQ1Rjc5MjcyRDIxMTkxNEIwMDIwQUZGNjQwMTkyNjMx RDdAZ2FuZGFsZi5kaWdpY29vbC5jb20+AAAACwApAAAAAAALACMAAAAAAAMABhBHXF/DAwAHEEYD AAADABAQAAAAAAMAERAAAAAAHgAIEAEAAABlAAAATVlBUE9MT0dJRVNJVEFQUEVBUlNJR09UTVlQ QUxNUElMT1RNSVNDT05GSUdVUkVEQU5ESVRTRU5UT1VUQUJVTkNIT0ZQUkVWSU9VU0xZU0VOVEVN QUlMU1dIRU5JUkVQTElDQQAAAAACAX8AAQAAAD4AAAA8NjEzMTQ1Rjc5MjcyRDIxMTkxNEIwMDIw QUZGNjQwMTkyNjMxRDdAZ2FuZGFsZi5kaWdpY29vbC5jb20+AAAAOlo= ------ =_NextPart_000_01BF8377.1F0EB790-- From mindlace@imeme.net Wed Mar 1 12:05:47 2000 From: mindlace@imeme.net (ethan mindlace fremen) Date: Wed, 01 Mar 2000 12:05:47 +0000 Subject: [Zope] ZODB & large files Message-ID: <38BD079B.3F5D35D5@imeme.net> Zopistas, I'm setting up zope on a linux box with support for large files. (>2gb). I need to make sure that the ZODB will continue to work properly past this point. Is the filesystem stuff the ZODB does handled by python or ZODB? If the answer is ZODB, where can I look for fs calls to make sure they're 64 bit? Thanks, Ethan Fremen http://imeme.net From phd@phd.russ.ru Wed Mar 1 12:08:19 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Wed, 1 Mar 2000 12:08:19 +0000 (GMT) Subject: [Zope] Re: HTML-Site Import In-Reply-To: <20000301114237.A1540@lightwerk.de> Message-ID: On Wed, 1 Mar 2000, Veikko Wuensche wrote: > Ok, I found load_site.py > ./load_site.py [options] url file ..... > > But: > Which 'url' should I pass here? It is an URL to a Zope folder. If, for example, you've installed Zope on http://my.server/path/to/Zope/, and you want to upload your site into http://my.server/path/to/Zope/virtual/site (the folder /virtual/site should be created before using load_site.py), the URL will be just http://my.server/path/to/Zope/virtual/site > Does 'file' mean that I only can import one file an not a > whole directory tree? The file can be a file, or a directory, or a list of files and directories... Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From mj@digicool.com Wed Mar 1 12:49:48 2000 From: mj@digicool.com (Martijn Pieters) Date: Wed, 1 Mar 2000 07:49:48 -0500 Subject: [Zope] Zope and remote caches. Message-ID: <613145F79272D211914B0020AFF640194294FF@gandalf.digicool.com> From: jiva@devware.com [mailto:jiva@devware.com] > So, if I am grokking the whole zope thang properly here, then > theoretically, when I imbed objects within my zope documents, I > shouldn't hardcode in specific urls to them. Instead, I should treat > them almost as if they are always in the current directory, even if > they are a couple of folders up. This way, if I want to override some > behavior in the future, I just copy the object down into the current > folder and edit it. I notice however, that if I do this, it plays > hell with browser caching because the browser winds up pulling things > from different places all the time even if it's actually winding up > pulling the same document down. How do other people deal with this? Use the absolute_url() method on the objects. That way, your generated HTML will contain absolute URLs to the objects, that are the same across different Folders in your site even when the object is acquired from elsewhere. Overriding as you described will still work the same, the URLs will reflect the change accordingly. Syntax variations (as always from the top of my head, not tested, YMMV): &dtml.url-object; The last notation is especially useful in HTML tag attributes, as it won't break WYSIWYG HTML editors: Go to object -- Martijn Pieters, Software Engineer | Digital Creations http://www.digicool.com | Creators of Zope http://www.zope.org | mailto:mj@digicool.com ICQ: 4532236 | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------- From bens@email.com Wed Mar 1 12:48:51 2000 From: bens@email.com (bens@email.com) Date: Wed, 1 Mar 2000 07:48:51 -0500 Subject: [Zope] Help: Sending Batch Email Message-ID: <000201bf837c$825ed6a0$2049fd3f@designer400> Has anyone done any mass emailing from Zope? I have an external method that tries to loop over a bunch of Member Objects and send an email to each. Unfortunately it is not working. What it does is sometimes send an email to the first member most of the time it sends no email at all. Here is my External Method. Any help would be greatly appreciated. def doSpam(self): """ sends mail to all Members """ if self.MailHost: for id, object in self.members.objectItems('member'): mail=self.SPAMLetter(self, None, username=object.username, password=object.password, email_address=object.email_address) mhost=self.MailHost mhost.send(mail) return "Mail Sent" From a.k.heath@open.ac.uk Wed Mar 1 13:27:22 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Wed, 01 Mar 2000 13:27:22 +0000 Subject: [Zope] tree and dtml-with only not working for me Message-ID: <38BD1AB9.697583F@open.ac.uk> There's something funny about this tree tag. When this code is inside a tree tag it doesn't prevent acquisition. Code ---- What do I need to do to make this work - should it be this.somethingOrOther? Also, anyone suggest what X I could put in to enable me to see something to help me figure out what goes on with these namespace things Andy Full code for the tree below () -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From chrisw@nipltd.com Wed Mar 1 13:35:07 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 01 Mar 2000 13:35:07 +0000 Subject: [Zope] Squishdot issue? Message-ID: <38BD1C8B.8EB5070B@nipltd.com> Doh! Forgot to cc this to the list, in case anyone else has the same problem... -------- Original Message -------- From: Chris Withers Subject: Re: [Zope] Squishdot issue? To: "Pearson, Brian Edward (GEA, 056278)" Brian, I think it's a permissions thing with tinytable. There's a permission called something like 'access tinytable contents' which you need to give to the anonymous user in the squishdot folder. Well, that's how I cracked it, anyway... cheers, Chris "Pearson, Brian Edward (GEA, 056278)" wrote: > > All - I just started working with Zope a couple of months ago. Recently, at > Zope version 2.1.2 I added the TinyTable and Squishdot products to my > installation. I was able to create a Squishdot object and customize. No > problems.... > > However, I am now running a fresh installation of Zope version 2.1.4 (same > Squishdot version 0.3.2) and have once again created a Squishdot object > inside a Folder object. Well, when trying to access the Squishdot object > from a browser, I am prompted with a sign-in box. I have not created an > ACLUSERS object so by default anyone should be able to view the object > without needing to authenticate. > > This is probably something stupid and easy to fix, but I cannot find the > solution. Does anyone have a suggestion? Your help would be greatly > appreciated. > > Thanks, > -Brian > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From tino@wildenhain.de Wed Mar 1 13:41:13 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 01 Mar 2000 14:41:13 +0100 Subject: [Zope] strange blockings Message-ID: <38BD1DF9.49AEA62B@wildenhain.de> Hello there, we got a site up and running (its actually a shop solution based on zope). Platform is NT, zope version is 2.1.4. Most of the time, the site is running very fast. But some times it hangs. It does not use much processor-time at this moment (arount 14%) but it does not process any requests for some seconds. Its very annoying. Does anyone know how to avoid such behavior? tia Tino Wildenhain From vw@lightwerk.de Wed Mar 1 14:20:43 2000 From: vw@lightwerk.de (Veikko Wuensche) Date: Wed, 1 Mar 2000 15:20:43 +0100 Subject: [Zope] Re: HTML-Site Import In-Reply-To: References: <20000301114237.A1540@lightwerk.de> Message-ID: <20000301152043.A1872@lightwerk.de> thanks. I've imported the data now. with python ./load_site.py -D -u superuser:pwd http://host:8080/ directory There are 2 problems now: 1) HTML character references are only imported within quotes. The line Einführung is imported as Einfhrung and Transportmittel unerläßlich. is imported as Transportmittel unerllich. 2) file names are used as the DTML document Id e.g. index.html It seems to me, that index_html is the default DTML document within a Zope directory. Can or should I change it to index.html? And where? Thanks Veikko -- Veikko Wünsche vw@lightwerk.de http://www.lightwerk.de/ From jsanford@atinucleus.com Wed Mar 1 14:19:40 2000 From: jsanford@atinucleus.com (Jim Sanford) Date: Wed, 1 Mar 2000 08:19:40 -0600 Subject: [Zope] ODBC + Zope + UNIX References: <200003011127.VAA65638@mail.theinternet.com.au> Message-ID: <003501bf8389$3902b460$04fea8c0@sanwinmain> What color are the chickens and what is the length in, english inches, of the goat's left rear leg? These details may be important. Jim ----- Original Message ----- From: Andrew Kenneth Milton To: Sent: Wednesday, March 01, 2000 5:27 AM Subject: [Zope] ODBC + Zope + UNIX What is required to get ODBC under UNIX functioning using e.g. the iODBC drivers? Is it just a matter of pulling down the winODBC driver and making it work, or is there some devil magic required (i.e. do I have to commit weeks, rather than days to it). I do have a black robe, plenty of chickens, and a goat. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From jsanford@atinucleus.com Wed Mar 1 14:23:08 2000 From: jsanford@atinucleus.com (Jim Sanford) Date: Wed, 1 Mar 2000 08:23:08 -0600 Subject: [Zope] strange blockings References: <38BD1DF9.49AEA62B@wildenhain.de> Message-ID: <004101bf8389$ab983360$04fea8c0@sanwinmain> What optimization do you have NT set for? File Serving, Network processes, or local use? By default NT optimization is set for file serving. This means that if some one is making heavy use of the file serving cpabilities of the machine it gives less time to network processes like zope. ----- Original Message ----- From: Tino Wildenhain To: Sent: Wednesday, March 01, 2000 7:41 AM Subject: [Zope] strange blockings Hello there, we got a site up and running (its actually a shop solution based on zope). Platform is NT, zope version is 2.1.4. Most of the time, the site is running very fast. But some times it hangs. It does not use much processor-time at this moment (arount 14%) but it does not process any requests for some seconds. Its very annoying. Does anyone know how to avoid such behavior? tia Tino Wildenhain _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From phd@phd.russ.ru Wed Mar 1 14:30:24 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Wed, 1 Mar 2000 14:30:24 +0000 (GMT) Subject: [Zope] Re: HTML-Site Import In-Reply-To: <20000301152043.A1872@lightwerk.de> Message-ID: On Wed, 1 Mar 2000, Veikko Wuensche wrote: > python ./load_site.py -D -u superuser:pwd http://host:8080/ directory > > There are 2 problems now: > > 1) HTML character references are only imported within quotes. > The line > Einführung > is imported as > Einfhrung > > and > Transportmittel unerläßlich. > is imported as > Transportmittel unerllich. Looks like a bug in HTML parsing. There is no simple solution for this. When I got some free time (and it shouldn't be in the nearest future) I'll add additional processing into the parser in load_site.py. > 2) file names are used as the DTML document Id e.g. index.html > It seems to me, that index_html is the default DTML document within a > Zope directory. > Can or should I change it to index.html? And where? You don't need to. Just create DTML Methtod index_html and put in it. That's all. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From johnjohn@triceratops.com Wed Mar 1 14:52:59 2000 From: johnjohn@triceratops.com (John White) Date: Wed, 1 Mar 2000 06:52:59 -0800 Subject: [Zope] how-to/tutorial on dynamic content? Message-ID: <20000301065259.C26464@triceratops.com> I've walked through the beginning tutorials on managing zope. I was hoping there would be something similar to show a newbie such as myself how to use Zope's ODB to define some objects and create dynamic content pages based on them. The how-to list is a bit daunting; also I get the feeling that there's a level of jargon necessary just to figure out what documentation to read. I don't have that, so I haven't found what I'm looking for. Is there anything like what I'm looking for? John From nico@beehive.de Wed Mar 1 15:54:04 2000 From: nico@beehive.de (Nico Grubert) Date: Wed, 01 Mar 2000 16:54:04 +0100 Subject: [Zope] Re: Zope digest, Vol 1 #656 - 58 msgs References: <200003011424.GAA17471@zope.codeit.com> Message-ID: <38BD3D1C.D12936E1@beehive.de> nehm ich alles ! ;-) also 55,- ??? ich schick morgen eine überweisung raus, okay ? brauche aber das gehäuse sehr dringend, da mein sampler mit dem laden von samplecds über den scsicontroller im pc nicht zurechtkommt. also...wie machen wir das mit der bezahlung ? nachnahme find ich immer schlecht, weils zu teuer ist...so bezahle ich eben nur 6.90 ... From joshua@brauer.org Wed Mar 1 16:56:55 2000 From: joshua@brauer.org (Joshua Brauer) Date: Wed, 1 Mar 2000 08:56:55 -0800 Subject: [Zope] Dates Message-ID: I've got a calendar setup that displays three calendars, last month, this month and next month.... currently I use this call: I've never had success at automatically setting the date as one month from now... Anybody know how to do this? Josh ------------------------------------------------- Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080 ------------------------------------------------- Fax or Voice mail toll free 888-392-4832, ext. 291-345-5142 ------------------------------------------------- Direct Fax (419) 793-4120 ------------------------------------------------- From tino@wildenhain.de Wed Mar 1 16:05:25 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 01 Mar 2000 17:05:25 +0100 Subject: [Zope] strange blockings References: <38BD1DF9.49AEA62B@wildenhain.de> <004101bf8389$ab983360$04fea8c0@sanwinmain> Message-ID: <38BD3FC5.52A7E696@wildenhain.de> Hello Jim, Jim Sanford wrote: > > What optimization do you have NT set for? > > File Serving, Network processes, or local use? How do I change this setting? > By default NT optimization is set for file serving. This means that if some one is making heavy use of the file serving cpabilities > of the machine it gives less time to network processes like zope. > But, on the other hand, there is not much file-serving at all from this machine. I only use it to transfer log-file or such. All other communication is over Zope only. It appears to me it could be some dead-lock situation inside Zope or medusa. Best regards, Tino Wildenhain From ndobbing@uoguelph.ca Wed Mar 1 16:12:31 2000 From: ndobbing@uoguelph.ca (Nicholas Dobbing) Date: Wed, 1 Mar 2000 11:12:31 -0500 Subject: [Zope] Best way to run Zope for hosting apps by multiple developers? Message-ID: <000901bf8398$f3019ca0$24886883@uoguelph.ca> Hi, The University of Guelph is looking at making Zope hosting available to our departments and organisations. Because we want to be able to use MS Access databases, we propose to run Zope on NT (so that we can use Z ODBC). In essence, we're looking at using Zope within an ISP hosting model, where we will provide the infrastructure and our clients will do their own development. I'm trying understand how to design a Zope system to achieve two things: 1, make it less likely that a poorly written app will compromise the service for other developers, and 2, establish a test environment where applications can be debugged, and then moved to a production server. I have two questions: 1. I've read the FAQ for ISP's, and I've seen references in the documentation to ways of configuring a system so that Zope so that each client gets their own instance of Zope. This would presumably help to insulate one Zope app from another. However, I can't find any details about how that's done... can anyone point me to more info? 2. Given developers with administrative control of their own folders on two Zope servers (test and production), how can I make it possible for them to take a test application (consisting of a set of Zope objects, let's say within one Zope folder object), and move it to a production Zope server. I can do this by exporting from one Zope server and importing into another, but this involves giving the developers access to the file system (they must place their exported object in the "import" directory on the target Zope server), and all developers will be dropping their objects in the same place. It's not elegant, and I can foresee various management problems and security risks arising from it. Are there other ways to migrate a Zope application from one Zope server to another? Thanks in advance for any pointers, Nick Dobbing. ndobbing@uoguelph.ca | (519) 824-4120 x6044 Computing & Communications Services www.uoguelph.ca/ccs/ University of Guelph From drees@the-bridge.net Wed Mar 1 16:32:26 2000 From: drees@the-bridge.net (Steve Drees) Date: Wed, 1 Mar 2000 10:32:26 -0600 Subject: [Zope] Data.fs corruption Message-ID: <001f01bf839b$ba959d00$e61de618@defiant.the-bridge.net> How does one go about fixing a corrupt data.fs? -steve ---- drees@the-bridge.net http://www.the-bridge.net/~drees "A problem well stated, is a problem half-solved." - C. Kettering From jessica@cbi.tamucc.edu Wed Mar 1 16:32:29 2000 From: jessica@cbi.tamucc.edu (Jessica Tishmack) Date: Wed, 1 Mar 2000 10:32:29 -0600 (EST) Subject: [Zope] directory importation Message-ID: Hello, I am a first time user of Zope, and have been looking through a lot of documentation, but can't seem to find an answer to what seems should be an obvious one...so any help would be appreciated. I already have an existing website on a Linux platform, with many many folders/files...to have to manually add each of these files to Zope seems very inefficient. How do I import an entire directory into Zope? Thanks, Jessica From csm@io.com Wed Mar 1 16:43:39 2000 From: csm@io.com (Clint Shelby McCulloch) Date: Wed, 1 Mar 2000 10:43:39 -0600 (EST) Subject: [Zope] DTML Mistotals Message-ID: Hi: I've been using DTML successfully to generate around 20+ reports outside of zope itself. The result come back from the DB as a pdf document. The solution has worked well. It looks like there might possibly be a bug in the dtml totalling process, however, when dealing with larger numbers. The results on one report are accurate for a 20 row table with smaller totals (say, e.g., 51518), but the larger totals are incorrect (e.g., it reports a number say in the 300,000 range rather than 1,378,835). The DTML for that column (the TOTAL column) is: Has anyone else seen this? The version of DTML I'm using is from the last quarter or so of last year. Any ideas? From ewalstad@energywright.com Wed Mar 1 16:55:00 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Wed, 1 Mar 2000 08:55:00 -0800 Subject: [Zope] DTML Mistotals In-Reply-To: Message-ID: Hi, I am new to Zope and am trying to migrate an app that currently generates FDF/PDF report files. I am interested to hear how you are integrating Zope and PDF. If you have a minute or two, would you mind passing on a few words of wisdom? Many thanks Eric. // -----Original Message----- // From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Clint // Shelby McCulloch // Sent: Wednesday, March 01, 2000 8:44 AM // To: zope@zope.org // Subject: [Zope] DTML Mistotals // // // // Hi: // // I've been using DTML successfully to generate around 20+ reports outside // of zope itself. The result come back from the DB as a pdf document. The // solution has worked well. // // It looks like there might possibly be a bug in the dtml // totalling process, // however, when dealing with larger numbers. The results on one report are // accurate for a 20 row table with smaller totals (say, e.g., 51518), but // the larger totals are incorrect (e.g., it reports a number say in the // 300,000 range rather than 1,378,835). The DTML for that column // (the TOTAL // column) is: // // // // Has anyone else seen this? The version of DTML I'm using is from the last // quarter or so of last year. Any ideas? // // // // _______________________________________________ // Zope maillist - Zope@zope.org // http://lists.zope.org/mailman/listinfo/zope // ** No cross posts or HTML encoding! ** // (Related lists - // http://lists.zope.org/mailman/listinfo/zope-announce // http://lists.zope.org/mailman/listinfo/zope-dev ) // From BRIAN.PEARSON@APPL.GE.COM Wed Mar 1 16:54:05 2000 From: BRIAN.PEARSON@APPL.GE.COM (Pearson, Brian Edward (GEA, 056278)) Date: Wed, 1 Mar 2000 11:54:05 -0500 Subject: [Zope] Listening on specific interfaces Message-ID: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> All - Have a problem which I am certain many of you have already encountered. With most web servers, you can create specific web server instances that listen to virtual network interfaces on the server (virtual IP addresses). For example, I can have multiple httpd instances, with httpd1 listening to 192.168.1.101 and httpd2 listening to 192.168.1.102 on a box where the physical IP address is 192.168.1.100. This is configurable within the web server. I want to be able to have Zope listen to a specific network interface, i.e. - a virtual IP address that has been created on the server. This will allow me to have multiple Zope sites running on the same machine. How can this be accomplished? Any/all suggestions are greatly appreciated. Thanks, -Brian From fte@d.de.mqi.net Wed Mar 1 17:08:14 2000 From: fte@d.de.mqi.net (Frank Tegtmeyer) Date: Wed, 1 Mar 2000 18:08:14 +0100 Subject: [Zope] Listening on specific interfaces In-Reply-To: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> Message-ID: <200003011706.JAA21387@zope.codeit.com> > I want to be able to have Zope listen to a specific network interface, i.e. > - a virtual IP address that has been created on the server. This will allow > me to have multiple Zope sites running on the same machine. How can this be > accomplished? Any/all suggestions are greatly appreciated. You could run Zopes behind an Apache server and connect via ProxyPass or FastCGI. This would even allow virtual servers on one IP address. Regards, Frank From tseaver@palladion.com Wed Mar 1 17:05:30 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 01 Mar 2000 11:05:30 -0600 Subject: [Zope] Worldpilot IMAP Bl00z References: <38BC878B.3C8B584A@palladion.com> <00022923145700.00360@viking> Message-ID: <38BD4DDA.36F8ED01@palladion.com> Jack Ungerleider wrote: > > Hi Tres, > This was written up last week and after a little digging on egroups (I thought I > had saved that message) I finally found it. Jo Meder provided the following > information > > > Chances are, that the request to "LIST *" in directory "" that > imaplib issues cause your imapd to begin scanning your whole home > directory which can be a lot of data, as we all know. > > I worked around this problem by creating /etc/c-client.cf with the > following contents (the first line is required by imapd, otherwise > the file is not accepted): > > --------------------------------------cut here ------------------- > I accept the risk for IMAP toolkit 4.1. > set black-box-directory /var/spool/imap_folderlinks/ > --------------------------------------cut here ------------------- > > I then created /var/spool/imap_folderlinks and symlinked the > directory in which my mailbox folders reside to > /var/spool/imap_folderlinks/jo > > Repeat for all users on the system and set permissions appropriately. > > Jo. > I will be roasted -- I thought I'd followed these directions already, and still had it hang. When I went back to try again, I discovered that the symlinks were screwy (how imapd found my home directory at all is a good question). When I clean them up, it works! > Also some information on this can be found in the file imaprc.txt that should > be in /usr/doc/ or where ever RH dumps it. (I'm running this on SuSE myself.) I > have tried this fix but I probably will. Hmmm, /usr/doc/imap-4.5 has only a README file, which doesn't mention the /etc/c-client.cfg file at all (it talks about building the package, and setting up the /etc/services and /etc/inetd.conf files to make IMAP work). Thanks very much for reposting those directions! Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From weiner@tu-harburg.de Wed Mar 1 17:34:43 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Wed, 01 Mar 2000 18:34:43 +0100 Subject: [Zope] bobobase_modification_time one day back? Message-ID: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> Am I the only one whose bobo_modification_time started today with /2000/2/29 instead of /2000/03/01? I create a new method Time_now:
and the Output is: 2000/03/01 18:30:21.091 GMT+1 2000/02/29 18:30:5.198 GMT+1 Same appears in my Undo Log (February, 29th started again today) and so on. TIA, Thomas -- fon: ++49 (0)40 42878 3781 fax: ++49 (0)40 42878 2728 From Jerome.Alet@unice.fr Wed Mar 1 13:31:57 2000 From: Jerome.Alet@unice.fr (Jerome ALET) Date: Wed, 1 Mar 2000 14:31:57 +0100 Subject: [Zope] Best way to run Zope for hosting apps by multiple developers? In-Reply-To: <000901bf8398$f3019ca0$24886883@uoguelph.ca>; from Nicholas Dobbing on Wed, Mar 01, 2000 at 11:12:31AM -0500 References: <000901bf8398$f3019ca0$24886883@uoguelph.ca> Message-ID: <20000301143157.A544@nordine.unice.fr> On Wed, Mar 01, 2000 at 11:12:31AM -0500, Nicholas Dobbing wrote: > 2. > Given developers with administrative control of their own folders on > two Zope servers (test and production), how can I make it possible for > them to take a test application (consisting of a set of Zope objects, > let's say within one Zope folder object), and move it to a production > Zope server. I can do this by exporting from one Zope server and > importing into another, but this involves giving the developers access > to the file system (they must place their exported object in the > "import" directory on the target Zope server), and all developers will > be dropping their objects in the same place. It's not elegant, and I > can foresee various management problems and security risks arising > from it. Are there other ways to migrate a Zope application from one > Zope server to another? IMHO this is not necessary: just use versions for your developpment work, then commit your version when it's done. bye, Jerome From tseaver@palladion.com Wed Mar 1 17:56:58 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 01 Mar 2000 11:56:58 -0600 Subject: [Zope] I got it! References: <200003011424.GAA17473@zope.codeit.com> Message-ID: <38BD59EA.B1BD7C79@palladion.com> glyph@twistedmatrix.com wrote: > > On 29 Feb, I wrote: > > > Okay. Perhaps someone else on the list can answer this one then: I > > have a standard Debian install of Zope. ZServer works fine. Apache > > works fine. Zope shows up fine in apache. Except... I can't log in. > > At all. With any username. What do I have to do to get Apache to > > recognize Zope's authentication? > > Just to follow up to myself so you know: I have seen snippets about > RewriteRules all over the place for using Apache with Zope... > > I have tried everything i've found, and nothing has worked so far. > (The RewriteRules appear to do nothing at all...) If you want to stick with Basic HTTP Authentication, the key is to persuade Apache to pass that info through. On my setup, this involves adding the following to the "RewriteRule" line: [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] Also, the "RewriteCond %{HTTP:Authorization} ^(.*)" line has to be repeated before *each* rule to which you want it to apply. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From wilson@visi.com Wed Mar 1 18:01:56 2000 From: wilson@visi.com (Timothy Wilson) Date: Wed, 1 Mar 2000 12:01:56 -0600 (CST) Subject: [Zope] bobobase_modification_time syntax Message-ID: Hi everyone, I've grepped through the source and consulted the ZQR, but I still haven't figured out how to use bobobase_modification_time. I've got a directory with a file object, and I'd like index_html to display when that file object was last modified. I've tried all manner of syntax combinations, but I can't get it to refer to the modification time of a given object and not just the modification time of index_html. Suggestions? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | | http://linux.com/ From jwh@allencreek.com Wed Mar 1 18:03:20 2000 From: jwh@allencreek.com (James W. Howe) Date: Wed, 01 Mar 2000 13:03:20 -0500 Subject: [Zope] Dealing with Dictionaries Message-ID: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> I have a DTML method from which I want to answer a dictionary. It looks something like this: I want to be able to use this information in two different ways. First, I want to be able to get a list of keys from the dictionary. Second, I want to be able to get a list of values. I could easily do this in Python, but I'm sure there must be a simple way to do this in DTML. I tried something like: but that didn't work. I did notice that if I just used "_['dictionaryVariableName']" I actually got the keys. Basically I'm trying to create a system by which a user can enter a full string and an abbreviation for the string. I want to be able to produce a list of the full strings, and I want to be able to produce a list of the abbreviations. Any help would be appreciated. Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From tseaver@palladion.com Wed Mar 1 18:14:46 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 01 Mar 2000 12:14:46 -0600 Subject: [Zope] ZODB & large files References: <200003011424.GAA17473@zope.codeit.com> Message-ID: <38BD5E16.5D663BD4@palladion.com> ethan mindlace fremen wrote: > > Zopistas, > > I'm setting up zope on a linux box with support for large files. > (>2gb). I need to make sure that the ZODB will continue to work > properly past this point. Is the filesystem stuff the ZODB does handled > by python or ZODB? > > If the answer is ZODB, where can I look for fs calls to make sure > they're 64 bit? The ZODB uses a "pluggable" Storage-derived object to do the actual reads/writes (this is where Ty Sarna's BSDDB Storage gets plugged in). The "standard" Storage is the FileStorage, defined in $ZOPE_HOME/lib/python/ZODB/FileStorage.py. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From claw@kanga.nu Wed Mar 1 18:20:50 2000 From: claw@kanga.nu (J C Lawrence) Date: Wed, 01 Mar 2000 10:20:50 -0800 Subject: [Zope] zGold? In-Reply-To: Message from "Phil Harris" of "Wed, 01 Mar 2000 09:14:52 GMT." <002901bf835e$9f032090$5c773fc1@media1> References: <38BBB803.B4A55FD9@home.com> <002901bf835e$9f032090$5c773fc1@media1> Message-ID: <4001.951934850@kanga.nu> On Wed, 1 Mar 2000 09:14:52 -0000 Phil Harris wrote: > caveat: zGold is not supported in anyway and is not 'production' > ready. Use it at your own risk. I will not be liable/responsible > for any/all problems it may cause. What does it (attempt to) do? -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- From BRIAN.PEARSON@APPL.GE.COM Wed Mar 1 18:22:15 2000 From: BRIAN.PEARSON@APPL.GE.COM (Pearson, Brian Edward (GEA, 056278)) Date: Wed, 1 Mar 2000 13:22:15 -0500 Subject: [Zope] Listening on specific interfaces Message-ID: <7502CAC76F59D211B0090000F8662FA305F43E95@ap3expr3applge.appl.ge.com> > I want to be able to have Zope listen to a specific network interface, i.e. > - a virtual IP address that has been created on the server. This will allow > me to have multiple Zope sites running on the same machine. How can this be > accomplished? Any/all suggestions are greatly appreciated. >> You could run Zopes behind an Apache server and connect via ProxyPass or >> FastCGI. This would even allow virtual servers on one IP address. Frank, I agree, however I probably should have been more specific. I would like to be able to do this using ZServer rather than using Apache or in my case Netscape Enterprise Server. Do you know if ZServer supports this? Thanks again, -Brian > -----Original Message----- > From: Frank Tegtmeyer [SMTP:fte@d.de.mqi.net] > Sent: Wednesday, March 01, 2000 12:08 PM > To: zope@zope.org > Subject: Re: [Zope] Listening on specific interfaces > > > I want to be able to have Zope listen to a specific network interface, > i.e. > > - a virtual IP address that has been created on the server. This will > allow > > me to have multiple Zope sites running on the same machine. How can > this be > > accomplished? Any/all suggestions are greatly appreciated. > > You could run Zopes behind an Apache server and connect via ProxyPass or > FastCGI. This would even allow virtual servers on one IP address. > > Regards, Frank > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From Marc.Gehling@hpigmbh.com Wed Mar 1 18:25:23 2000 From: Marc.Gehling@hpigmbh.com (Marc Gehling) Date: Wed, 1 Mar 2000 19:25:23 +0100 Subject: [Zope] ZPyGreSQLDA install problem Message-ID: <41256895.006531CD.00@notessmtp> Hello, I run "make -f Makefile.pre.in boot" and this is the output: ----- 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/dc/Zope-2.1.4-linux2-x86/lib/python/Prod ucts/ZPyGreSQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/dc/Zope-2.1.4-linux2-x86/lib/python/Produ cts/ZPyGreSQLDA/src' make: *** [boot] Error 2 --- From bill@libc.org Wed Mar 1 18:35:22 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 11:35:22 -0700 Subject: [Zope] Listening on specific interfaces References: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> Message-ID: <38BD62EA.E51F085E@libc.org> "Pearson, Brian Edward (GEA, 056278)" wrote: > > All - Have a problem which I am certain many of you have already > encountered. > > With most web servers, you can create specific web server instances that > listen to virtual network interfaces on the server (virtual IP addresses). > For example, I can have multiple httpd instances, with httpd1 listening to > 192.168.1.101 and httpd2 listening to 192.168.1.102 on a box where the > physical IP address is 192.168.1.100. This is configurable within the web > server. > > I want to be able to have Zope listen to a specific network interface, i.e. > - a virtual IP address that has been created on the server. This will allow > me to have multiple Zope sites running on the same machine. How can this be > accomplished? Any/all suggestions are greatly appreciated. Use the source. :) From z2.py: -a ipaddress The IP address to listen on. If this is an empty string (e.g. -a ''), then all addresses on the machine are used. The default is %(IP_ADDRESS)s. so in your start script, add: -a xxx.xxx.xxx.xxx where xxx.xxx.xxx.xxx is the IP address you want to hook to. Cheers Bill -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From mj@digicool.com Wed Mar 1 19:05:58 2000 From: mj@digicool.com (Martijn Pieters) Date: Wed, 1 Mar 2000 20:05:58 +0100 Subject: [Zope] Re: Zope digest, Vol 1 #656 - 58 msgs References: <200003011424.GAA17471@zope.codeit.com> <38BD3D1C.D12936E1@beehive.de> Message-ID: <003d01bf83b1$2dce2d40$21172ed5@arnhem.chello.nl> From: "Nico Grubert" > nehm ich alles ! ;-) > also 55,- ??? > > ich schick morgen eine überweisung raus, okay ? > brauche aber das gehäuse sehr dringend, da mein sampler mit dem laden > von samplecds über den scsicontroller im pc nicht zurechtkommt. > also...wie machen wir das mit der bezahlung ? nachnahme find ich immer > schlecht, weils zu teuer ist...so bezahle ich eben nur 6.90 ... Erm? We don't sell hardware on this list, at least not that I know of.. And many people here don't understand German either. I think you may have made a slight mistake somewhere. Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From weiner@tu-harburg.de Wed Mar 1 19:33:02 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Wed, 01 Mar 2000 20:33:02 +0100 Subject: [Zope] Re: bobobase_modification_time one day back? References: Message-ID: <200003011931.UAA18335@rztsun.rz.tu-harburg.de> Answering my own question: > Am I the only one whose bobo_modification_time started today with > /2000/2/29 instead of /2000/03/01? No, I'm obviously not the only one, see: http://www.zope.org/Members/thomasW/test It seems to be a bug. hmmm .. and if tomorrow happens the same? .. How was the movie called, which comes to my mind now :) Greetings, Thomas From mj@digicool.com Wed Mar 1 20:42:24 2000 From: mj@digicool.com (Martijn Pieters) Date: Wed, 1 Mar 2000 21:42:24 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> Message-ID: <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> From: "Thomas Weiner" > Am I the only one whose bobo_modification_time started today with > /2000/2/29 instead of /2000/03/01? > > I create a new method Time_now: > >
> > > and the Output is: > > 2000/03/01 18:30:21.091 GMT+1 > 2000/02/29 18:30:5.198 GMT+1 > > Same appears in my Undo Log (February, 29th started again today) and so > on. 1: What is your timezone setting. It could be that dates are displayed in a different timezone. 2: If you do your test from a DTML Method, you'll be shown the modification date of the container it is called on. For an explanation, see: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo and other How-To's on DTML and Aqcuisition. Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From csm@io.com Wed Mar 1 21:07:55 2000 From: csm@io.com (Clint Shelby McCulloch) Date: Wed, 1 Mar 2000 15:07:55 -0600 (EST) Subject: [Zope] DTML Mistotals In-Reply-To: Message-ID: I think I found the problem, at least for my purposes. :) I'm not sure if this has already been corrected in the latest versions of DTML or not but it might be worth a check. DT_InSV.py line 239 was: s=item*item Instead, I'm now using: if type(item)==type(1): s=item*long(item) else: s=item*item Looks like this information is needed to calculate some of the other statistics and when the item is a large integer it will cause an exception. The exception is then caught and results in that item be omitted from some calculations, such as the total. Hi Eric: I'm not sure how much of what I've done would apply to your situation. Basically, the powers that be wanted some complex reports for an Access application hooked up to SQL Server. Access reports were not anywhere near flexible enough to produce the output they wanted. Consequently, I ended up building a reporting interface onto the rather low-level python pdf module and then hooked it up to the DB. That way I was able to do most of the complex stuff in python, use DTML templates whenever possible, and output the results in pdf. When the user clicks on a report in access, the application shells out without them knowing it and the next thing they know a pdf pops out in Acrobat. I gave some thought making it available to whoever might find it useful but haven't had much time to make it more friendly. In particular, I might take the pdf wrapper, which allows for high level pdf formatting (for switching font sizes, styles, page numbering, headings, etc), and somehow hook it up to zope. Sometime after I started, someone did come up with a pdf document hook for zope, but it didn't offer the formatting options I needed and my reports weren't going through zope. It might be worth a look, however, for your purposes. If you can get away with it, avoid PDF documents altogether and just use DTML to web enable your reports through zope. I ended up using pdf because the users didn't want to web enable this stuff, wanted more precision then browser formatting allowed, and I thought it would be kind of neat to try.... From jwh@allencreek.com Wed Mar 1 21:09:19 2000 From: jwh@allencreek.com (James W. Howe) Date: Wed, 01 Mar 2000 16:09:19 -0500 Subject: [Zope] Advanced DTML Question Message-ID: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> I'm trying to write a DTMLMethod which will write out a list of data items found from a catalog, sorted in alphabetical order. This is easy. Basically I do something like this: ... I've got this working, no problem. Now, since the list of these items might be somewhat long, I want to build a simple index at the top of the page and use page anchors to get to key points on the page. Basically I'm going to display the alphabet and when the user clicks on a letter, the page should scroll somewhere in the vicinity of an item which starts with that letter. To that end, what I would like to do is have some code inside of my dtml-in loop which gets the first letter from the current entry, checks to see if an anchor for that letter has been written, if not, a new anchor tag is inserted into the stream. My problem is I don't really know how to code this up. It seems like maybe that at least some of this should be done at the Python level but I'm not quite sure how to split up the functionality. Has anybody done anything similar who would be willing to give me some advice as to the best way to go about solving this problem? Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From evan@4-am.com Wed Mar 1 22:01:34 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 1 Mar 2000 16:01:34 -0600 Subject: [Zope] Advanced DTML Question References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <002b01bf83c9$c7d08560$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > of my dtml-in loop which gets the first letter from the current entry, > checks to see if an anchor for that letter has been written, if not, a new > anchor tag is inserted into the stream. My problem is I don't really know Quick, possibly misleading idea: if you can give your Catalog entries a brain class with a function "anchorGroup" which returns the first letter of the entry, then you can use Cheers, Evan @ 4-am & digicool From evan@4-am.com Wed Mar 1 22:04:47 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 1 Mar 2000 16:04:47 -0600 Subject: [Zope] Dealing with Dictionaries References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> Message-ID: <003701bf83ca$3ab66e50$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > to be able to get a list of values. I could easily do this in Python, but > I'm sure there must be a simple way to do this in DTML. I tried something > like: > > > > but that didn't work. I did notice that if I just used > "_['dictionaryVariableName']" I actually got the keys. That should have worked. You should be able to manipulate your dictionary just as you would expect. What happened when you tried it? What do you get from ? Cheers, Evan @ 4-am & digicool From jwh@allencreek.com Wed Mar 1 22:13:17 2000 From: jwh@allencreek.com (James W. Howe) Date: Wed, 01 Mar 2000 17:13:17 -0500 Subject: [Zope] Advanced DTML Question In-Reply-To: <002b01bf83c9$c7d08560$8400a8c0@mozart> References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <4.2.2.20000301171022.00b71740@mail.ic.net> At 04:01 PM 3/1/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > of my dtml-in loop which gets the first letter from the current entry, > > checks to see if an anchor for that letter has been written, if not, a new > > anchor tag is inserted into the stream. My problem is I don't really know > >Quick, possibly misleading idea: if you can give your Catalog entries a >brain class with a function "anchorGroup" which returns the first letter of >the entry, then you can use name="&dtml-anchorGroup;"> "Brain Class?" Could you explain that a bit? It so happens that the objects I'm getting out of my catalog are instances of a ZClass that I created. That ZClass inherits from a basically empty Python base class. Is this what you mean by a "brain class"? If so, are you saying that I should just define a method in my Python code which does the "anchorGroup" thing? Even if this isn't what you meant, I think I like the idea that you are proposing. I just need to make sure that I actually understand what you are suggesting. Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From jwh@allencreek.com Wed Mar 1 22:25:30 2000 From: jwh@allencreek.com (James W. Howe) Date: Wed, 01 Mar 2000 17:25:30 -0500 Subject: [Zope] Dealing with Dictionaries In-Reply-To: <003701bf83ca$3ab66e50$8400a8c0@mozart> References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> Message-ID: <4.2.2.20000301172344.00bab320@mail.ic.net> At 04:04 PM 3/1/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > to be able to get a list of values. I could easily do this in Python, but > > I'm sure there must be a simple way to do this in DTML. I tried something > > like: > > > > > > > > but that didn't work. I did notice that if I just used > > "_['dictionaryVariableName']" I actually got the keys. > >That should have worked. You should be able to manipulate your dictionary >just as you would expect. What happened when you tried it? What do you get >from ? I get an "AttributeError" on "keys". James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From ewalstad@energywright.com Wed Mar 1 22:31:29 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Wed, 1 Mar 2000 14:31:29 -0800 Subject: [Zope] DTML Mistotals In-Reply-To: Message-ID: Thanks for the info on your PDF implementation. Here's my situation: I currently have a Java applet that collects data from my users. The applet runs some calculations and sends the results to me via email. I copy & paste the data into a Win32 VC++ app I wrote that converts the data into "Forms Data Format" (FDF) using Adobe's SDK for generating FDF files. I am using Adobe's fdf DLL right now, but I'm excited about the idea of moving this to Zope - No more Applet for my clients to download!!! I have ZERO Python experience. I use PDF / FDF because I am filling PDF files that are created by a governmental agency; these are 'State Standard' forms, so I want to stick with them instead of generating dynamic forms using Zope. Question: Are you using a Python code supplied by adobe for generating your FDF file? If so, I would be VERY interested in any Python code you'd be willing to share that ties Zope to the Adobe code. Thanks for your response. PS, I'm replying to you and CC'ing zope@zope.org. Is this an acceptable way to keep the mailing list folks in the loop? PSS, what's your name? Eric. // -----Original Message----- // From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Clint // Shelby McCulloch // Sent: Wednesday, March 01, 2000 1:08 PM // To: Eric L. Walstad // Cc: Zope Mailing List // Subject: RE: [Zope] DTML Mistotals // // // // // I think I found the problem, at least for my purposes. :) I'm not sure // if this has already been corrected in the latest versions of DTML or not // but it might be worth a check. // // DT_InSV.py line 239 was: // s=item*item // // Instead, I'm now using: // if type(item)==type(1): s=item*long(item) // else: s=item*item // // Looks like this information is needed to calculate some of the other // statistics and when the item is a large integer it will cause an // exception. The exception is then caught and results in that item // be omitted from some calculations, such as the total. // // Hi Eric: // // I'm not sure how much of what I've done would apply to your situation. // Basically, the powers that be wanted some complex reports for an Access // application hooked up to SQL Server. Access reports were not anywhere // near flexible enough to produce the output they wanted. Consequently, // I ended up building a reporting interface onto the rather // low-level python // pdf module and then hooked it up to the DB. That way I was able to // do most of the complex stuff in python, use DTML templates whenever // possible, and output the results in pdf. When the user clicks // on a report // in access, the application shells out without them knowing it and the // next thing they know a pdf pops out in Acrobat. // // I gave some thought making it available to whoever might find it useful // but haven't had much time to make it more friendly. In particular, I // might take the pdf wrapper, which allows for high level pdf // formatting (for switching font sizes, styles, page numbering, headings, // etc), and somehow hook it up to zope. Sometime after I started, someone // did come up with a pdf document hook for zope, but it didn't offer the // formatting options I needed and my reports weren't going through // zope. It // might be worth a look, however, for your purposes. // // If you can get away with it, avoid PDF documents altogether and just use // DTML to web enable your reports through zope. I ended up using pdf // because the users didn't want to web enable this stuff, wanted more // precision then browser formatting allowed, and I thought it would be kind // of neat to try.... // // // _______________________________________________ // Zope maillist - Zope@zope.org // http://lists.zope.org/mailman/listinfo/zope // ** No cross posts or HTML encoding! ** // (Related lists - // http://lists.zope.org/mailman/listinfo/zope-announce // http://lists.zope.org/mailman/listinfo/zope-dev ) // From jfarr@real.com Wed Mar 1 22:35:43 2000 From: jfarr@real.com (Jonothan Farr) Date: Wed, 1 Mar 2000 14:35:43 -0800 Subject: [Zope] structured text formatting References: <025b01bf8252$1e6d9350$eb0217ac@dev.prognet.com> Message-ID: <072401bf83ce$7b194ae0$eb0217ac@dev.prognet.com> > Jonothan> Try: > > Jonothan> string.join(string.split(data, '\r\n'), '\n') > > Thanks - that worked. No problem. BTW: I just discovered this neat function called string.replace(). =) This is almost certainly faster: string.replace(data, '\r\n', '\n') I swear, not a day goes by that I don't learn something new about Python. -jfarr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hi! I'm a signature virus. Copy me into your .sig to join the fun! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From hungjunglu@hotmail.com Wed Mar 1 22:54:39 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Wed, 01 Mar 2000 14:54:39 PST Subject: [Zope] How to check memory usage in Python Message-ID: <20000301225439.43329.qmail@hotmail.com> Hi, This is more a Python question. How can one check the RAM memory usage of a Python program from within itself? Is there such a function? (Is it platform independent? I mean, does such a function exist for most platforms?) If such a function does not exist in Python, how can one do it from Unix (or Windows) shell calls? thanks, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com From rmilner@point-one.net Wed Mar 1 23:52:12 2000 From: rmilner@point-one.net (Roman Milner) Date: 01 Mar 2000 17:52:12 -0600 Subject: [Zope] is it possible to tell ZCatalaog to index only in a given folder? Message-ID: I need to index everything in a given folder. Can I do this with ZCatalog? Thanks, ^Roman From mike@digicool.com Wed Mar 1 23:51:39 2000 From: mike@digicool.com (Mike Pelletier) Date: Wed, 1 Mar 2000 18:51:39 -0500 (EST) Subject: [Zope] Zope Weekly News Message-ID: G'day, Zope Weekly News is a digest of some of the useful and interesting events which have occurred on the various Zope mailing lists and the Zope.org site. It is published each Wednesday evening. Any opinions contained in the Zope Weekly News are those of the chronicler exclusively. Announcements * XML.com has published another Zope article by Amos Latteier, titled "Advanced XML Applications in Zope" http://www.xml.com/pub/2000/02/23/zope/index.html New Products * Software Product: PMPSurvey, by "sleeper" This is another survey product. It supports single and multiple answer questions. It may easily be embedded within other web pages, and reportedly sports a nice management interface. http://www.zope.org/Members/sleeper/PMPSurvey Updates * Software Product: FSSession, by "gaaros" This product can be used to maintain arbitrary per-visitor data (session data) without burdening your ZODB with excessive transactions. It does this by storing the sessions on your filesystem. This update, 0.2.3, uses cPickle, which makes it faster and more flexible. There are additional new features. http://www.zope.org/Members/gaaros/FSSession * Software Product: BannerFolder, by "lalo" This product randomly displays one of it's contained ads or DTML Methods. There are provisions for tracking click-thrus and for limiting the number of times an ad will display. The current version is 0.4. http://www.zope.org/Members/lalo/BannerFolder * Software Product: ZRadius, by "Zen" This is a Radius authenticator. It can be used on it's own, or in Zope as a GenericUserFolder plug-in. This is a bug-fix release, bringing the version to 1.1. http://www.zope.org/Members/Zen/ZRadius Zope.org items * Zope Documentation Plan, by Amos Latteier Amos Latteier is soliciting feedback on his Zope Documentation Plan. It describes the initiatives to improve the documentation situation which are underway at DC, their goals, and the assumptions they are based on. If you would like to offer feedback, Amos is available at . http://www.zope.org/Members/Amos/Documentation/Plan * Tip: Using PythonMethods on FreeBSD, by "als" This tip points out that a module required by PythonMethods (new) is not enabled by default by FreeBSD's python port. It describes the solution. http://www.zope.org/Members/als/tips/PythonMethod_FBSD * All Product Releases, by Martijn Pieters This page is designed to be used with wget, Go!Zilla, or some other web-sucking tool. It contains links to every Product Release on the Zope site. http://www.zope.org/Members/mj/AllProds * How-To: Wizards Made Easy, by "jspisak" This document explains a few techniques which make it easy to create simple multiple-page forms, like Windows' Wizards. http://www.zope.org/Members/jspisak/wizard_keys -- Mike Pelletier. From phil.harris@zope.co.uk Wed Mar 1 23:55:50 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Wed, 1 Mar 2000 23:55:50 -0000 Subject: [Zope] zGold? References: <38BBB803.B4A55FD9@home.com> <002901bf835e$9f032090$5c773fc1@media1> <4001.951934850@kanga.nu> Message-ID: <009001bf83da$355c16c0$128abcd4@typhoonn> JC, It was intended as a self registration sandbox environment for a Birds of a feather group at a conference. It basically allows users to self-register and then creates an area for them to experiment with Zope. Most people seem to be interested in the self-registration bit tho. (which is quite strange as this is only a few lines of a python external method, whereas most of the code is taken up with mundane stuff). Phil phil.harris@zope.co.uk ----- Original Message ----- From: "J C Lawrence" To: "Phil Harris" Cc: "Lucas Vogel" ; "Zope@Zope. Org" Sent: 01 March 2000 18:20 Subject: Re: [Zope] zGold? > On Wed, 1 Mar 2000 09:14:52 -0000 > Phil Harris wrote: > > > caveat: zGold is not supported in anyway and is not 'production' > > ready. Use it at your own risk. I will not be liable/responsible > > for any/all problems it may cause. > > What does it (attempt to) do? > > -- > J C Lawrence Home: claw@kanga.nu > ----------(*) Other: coder@kanga.nu > --=| A man is as sane as he is dangerous to his environment |=-- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From curtis@umd.com.au Wed Mar 1 23:59:57 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Thu, 2 Mar 2000 10:59:57 +1100 Subject: [Zope] Reply To: Message-ID: <00030211041201.20388@localhost.localdomain> Is it at all possible to have this list set reply to? since problems discussed and solved here are logged for others to search, surely it would be best if, by default, replies to these messages came to the list? I know it's just a little thing, but it still bugs me. I know that on other lists to which I subscribe this is done. Anyone else have an opinion on this? -- Have a better one, Curtis. From claw@kanga.nu Thu Mar 2 00:33:24 2000 From: claw@kanga.nu (J C Lawrence) Date: Wed, 01 Mar 2000 16:33:24 -0800 Subject: [Zope] Zope Weekly News In-Reply-To: Message from Mike Pelletier of "Wed, 01 Mar 2000 18:51:39 EST." References: Message-ID: <12513.951957204@kanga.nu> On Wed, 1 Mar 2000 18:51:39 -0500 (EST) Mike Pelletier wrote: > G'day, Zope Weekly News is a digest... BTB Mike, are back issues of the ZWN collected somewhere? It would be great to have a seperate archive of ZWN as a more concise form of the list's signal. -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- On Wed, 1 Mar 2000 18:51:39 -0500 (EST) Mike Pelletier wrote: > G'day, Zope Weekly News is a digest of some of the useful and > interesting events which have occurred on the various Zope mailing > lists and the Zope.org site. It is published each Wednesday > evening. > Any opinions contained in the Zope Weekly News are those of > the chronicler exclusively. > Announcements > * XML.com has published another Zope article by Amos Latteier, > titled "Advanced XML Applications in Zope" > http://www.xml.com/pub/2000/02/23/zope/index.html > New Products > * Software Product: PMPSurvey, by "sleeper" > This is another survey product. It supports single and > multiple answer questions. It may easily be embedded within other > web pages, and reportedly sports a nice management interface. > http://www.zope.org/Members/sleeper/PMPSurvey > Updates > * Software Product: FSSession, by "gaaros" > This product can be used to maintain arbitrary per-visitor > data (session data) without burdening your ZODB with excessive > transactions. It does this by storing the sessions on your > filesystem. > This update, 0.2.3, uses cPickle, which makes it faster and > more flexible. There are additional new features. > http://www.zope.org/Members/gaaros/FSSession > * Software Product: BannerFolder, by "lalo" > This product randomly displays one of it's contained ads or > DTML Methods. There are provisions for tracking click-thrus and > for limiting the number of times an ad will display. > The current version is 0.4. > http://www.zope.org/Members/lalo/BannerFolder > * Software Product: ZRadius, by "Zen" > This is a Radius authenticator. It can be used on it's own, > or in Zope as a GenericUserFolder plug-in. This is a bug-fix > release, bringing the version to 1.1. > http://www.zope.org/Members/Zen/ZRadius > Zope.org items > * Zope Documentation Plan, by Amos Latteier > Amos Latteier is soliciting feedback on his Zope Documentation > Plan. It describes the initiatives to improve the documentation > situation which are underway at DC, their goals, and the > assumptions they are based on. If you would like to offer > feedback, Amos is available at . > http://www.zope.org/Members/Amos/Documentation/Plan > * Tip: Using PythonMethods on FreeBSD, by "als" > This tip points out that a module required by PythonMethods > (new) is not enabled by default by FreeBSD's python port. It > describes the solution. > http://www.zope.org/Members/als/tips/PythonMethod_FBSD > * All Product Releases, by Martijn Pieters > This page is designed to be used with wget, Go!Zilla, or some > other web-sucking tool. It contains links to every Product > Release on the Zope site. > http://www.zope.org/Members/mj/AllProds > * How-To: Wizards Made Easy, by "jspisak" > This document explains a few techniques which make it easy to > create simple multiple-page forms, like Windows' Wizards. > http://www.zope.org/Members/jspisak/wizard_keys > -- Mike Pelletier. > _______________________________________________ Zope maillist - > Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No > cross posts or HTML encoding! ** (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- From phil.harris@zope.co.uk Thu Mar 2 01:15:10 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 2 Mar 2000 01:15:10 -0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> Message-ID: <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> Andy, Try this: Works for me 8Ź) Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Andy Heath" To: Sent: 01 March 2000 13:27 Subject: [Zope] tree and dtml-with only not working for me > There's something funny about this tree tag. > > When this code is inside a tree tag it doesn't > prevent acquisition. > > Code > ---- > > > > > What do I need to do to make this work - should it be > this.somethingOrOther? > > Also, anyone suggest what X I could put in > > to enable me to see something to help me figure out > what goes on with these namespace things > > Andy > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > -- > ------------------------------------------------- > Andy Heath a.k.heath@open.ac.uk > The Open University +44 (0) 114 2885738 > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From mike@digicool.com Thu Mar 2 01:33:11 2000 From: mike@digicool.com (Mike Pelletier) Date: Wed, 1 Mar 2000 20:33:11 -0500 (EST) Subject: [Zope] Zope Weekly News In-Reply-To: <12513.951957204@kanga.nu> Message-ID: On Wed, 1 Mar 2000, J C Lawrence wrote: > > G'day, Zope Weekly News is a digest... > > BTB Mike, are back issues of the ZWN collected somewhere? Yes! http://www.zope.org/Members/MikeP/ZWN However, > It would be great to have a seperate archive of ZWN as a more concise > form of the list's signal. You've no doubt noticed that over the last couple of months, the actual list content in the ZWN has dwindled to nil, excpet for zope-announce. :-/ I'll change that first paragraph of the ZWN next week. -- Mike Pelletier email: mike@digicool.com Mild mannered software developer icq: 7127228 by day, super villain by night. phone: 519-884-2434 From bill@libc.org Thu Mar 2 01:38:08 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 18:38:08 -0700 Subject: [Zope] how-to/tutorial on dynamic content? References: <20000301065259.C26464@triceratops.com> Message-ID: <38BDC600.3B6870A9@libc.org> John White wrote: > > I've walked through the beginning tutorials on managing zope. > > I was hoping there would be something similar to show a newbie > such as myself how to use Zope's ODB to define some objects and > create dynamic content pages based on them. That depends on what you want the 'dynamic' content to be, and where you want to get it from. > The how-to list is a bit daunting; also I get the feeling that > there's a level of jargon necessary just to figure out what > documentation to read. I don't have that, so I haven't found > what I'm looking for. Perhaps the webmaster at zope.org could add a how-to search interface to the how-to listing page? You know, one that searches only how-tos (or how-tos and tips). Sometimes using the current search box yields lots of not-so-useful links. :( Don't forget that you can click on the cplum headers on the How-TO index page to sort by that header, and a second click will reverse sort. For example, to sort by date, click "Date". -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From bill@libc.org Thu Mar 2 01:44:04 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 18:44:04 -0700 Subject: [Zope] Re: bobobase_modification_time one day back? References: <200003011931.UAA18335@rztsun.rz.tu-harburg.de> Message-ID: <38BDC764.AC1882B0@libc.org> Thomas Weiner wrote: ... > hmmm .. and if tomorrow happens the same? .. How was the movie called, > which comes to my mind now :) There are two that I know of, "Groundhog's Day" and "12:01". :) -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From bak@nstp.com.my Thu Mar 2 01:51:05 2000 From: bak@nstp.com.my (-) Date: Thu, 2 Mar 2000 09:51:05 +0800 Subject: [Zope] Should I go with Zope? In-Reply-To: <00030110554001.05352@localhost.localdomain> References: <20000229233333.28803.qmail@web1802.mail.yahoo.com> <00030110554001.05352@localhost.localdomain> Message-ID: <0003020953250G.00679@tokey.kedai.com.my> > Remember, there are really two major parts to ZOPE: The object > database/renderer, and the ZServer. It is possible to run ZOPE without the > ZServer, directly from Apache or similar, as a CGI program. > can we really run apache without running zserver? i've been running apache as the frontend, and uses pcgi, but i still run zserver. if what you say is true, then maybe i'm doing something wrong. how can i run apache without zserver? tia - ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil? From bill@libc.org Thu Mar 2 02:03:40 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 19:03:40 -0700 Subject: [Zope] Advanced DTML Question References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <38BDCBFC.68C311BE@libc.org> "James W. Howe" wrote: > > I'm trying to write a DTMLMethod which will write out a list of data items > found from a catalog, sorted in alphabetical order. This is > easy. Basically I do something like this: > > > > ... > > > > I've got this working, no problem. Now, since the list of these items > might be somewhat long, I want to build a simple index at the top of the > page and use page anchors to get to key points on the page. Basically I'm > going to display the alphabet and when the user clicks on a letter, the > page should scroll somewhere in the vicinity of an item which starts with > that letter. To that end, what I would like to do is have some code inside > of my dtml-in loop which gets the first letter from the current entry, > checks to see if an anchor for that letter has been written, if not, a new > anchor tag is inserted into the stream. My problem is I don't really know > how to code this up. It seems like maybe that at least some of this should > be done at the Python level but I'm not quite sure how to split up the > functionality. > > Has anybody done anything similar who would be willing to give me some > advice as to the best way to go about solving this problem? > Have you tried the How-To: -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From bill@libc.org Thu Mar 2 02:18:38 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 19:18:38 -0700 Subject: [Zope] Advanced DTML Question References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <38BDCF7E.30050FA1@libc.org> "James W. Howe" wrote: > > I'm trying to write a DTMLMethod which will write out a list of data items > found from a catalog, sorted in alphabetical order. This is > easy. Basically I do something like this: > > > > ... > > > > I've got this working, no problem. Now, since the list of these items > might be somewhat long, I want to build a simple index at the top of the > page and use page anchors to get to key points on the page. Basically I'm > going to display the alphabet and when the user clicks on a letter, the > page should scroll somewhere in the vicinity of an item which starts with > that letter. To that end, what I would like to do is have some code inside > of my dtml-in loop which gets the first letter from the current entry, > checks to see if an anchor for that letter has been written, if not, a new > anchor tag is inserted into the stream. My problem is I don't really know > how to code this up. It seems like maybe that at least some of this should > be done at the Python level but I'm not quite sure how to split up the > functionality. > > Has anybody done anything similar who would be willing to give me some > advice as to the best way to go about solving this problem? My email window dies suddenly, before I could write what I intedned ... looks like it sent itself waaay too early. Sorry. Anyway, have you tried the batch processing instructions at http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.8.5.html They should give you some insight as to how to get the first letter. You may then be able to set a temp variable, called CurrentAnchor, for example, that contains the last letter that was used to set an anchor. Testing agaimst the CurrentAnchor, you should be able to set (if not the same), or continue (if the same). Unfortunately, ZCatalog apparently doesn't do reg-ex searches yet. Otherwise, I'd say create your links a alink to a page that looked for thins that started with that letter. Alternatively, you could look at the howto, and give a range of letter, say a-e, f-j, etc. and just use the batch processing capabilities in DTML. :) Just some ideas. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From bill@libc.org Thu Mar 2 02:20:31 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 19:20:31 -0700 Subject: [Zope] Reply To: References: <00030211041201.20388@localhost.localdomain> Message-ID: <38BDCFEF.B78C9E80@libc.org> Curtis Maloney wrote: > > Is it at all possible to have this list set reply to? > > since problems discussed and solved here are logged for others to search, > surely it would be best if, by default, replies to these messages came to the > list? I know it's just a little thing, but it still bugs me. > > I know that on other lists to which I subscribe this is done. > > Anyone else have an opinion on this? Can-of-Worms alert! This is something that has been discussed at length on many forums. Munging like this is not only counter to the stamdards, it is also a Bad Idea (tm) on many levels. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From tseaver@palladion.com Thu Mar 2 02:44:34 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 01 Mar 2000 20:44:34 -0600 Subject: [Zope] DTML Mistotals References: <200003012000.MAA25238@zope.codeit.com> Message-ID: <38BDD592.C1145645@palladion.com> "Eric L. Walstad" wrote: > > I am new to Zope and am trying to migrate an app that currently generates > FDF/PDF report files. I am interested to hear how you are integrating Zope > and PDF. If you have a minute or two, would you mind passing on a few words > of wisdom? Check out the ZpdfDocument product: http://www.zope.org/Members/gaaros/ZpdfDocument Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From msimcich@accesstools.com Thu Mar 2 03:21:56 2000 From: msimcich@accesstools.com (Michael Simcich) Date: Wed, 1 Mar 2000 19:21:56 -0800 Subject: [Zope] Reply To: In-Reply-To: <38BDCFEF.B78C9E80@libc.org> Message-ID: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> This may be well hashed for most here but I'm curious about this. I've noticed that most true mailing lists operate like this zope list, whereas the lists I subscribe to via services like eGroups perform more like Curtis would like it. I'm with Curtis on this, it seems much simpler to just send the reply to the list... if I hit "reply to all" the person I'm responding to and the others that have particpated in the thread get at least two copies... one direct and one via the list. I'd have thought that the multi-copy thing would quite bothersome for most overloaded list-partakers. Plus the fact that at least some of the time messages must unintentionally never make it to the list. I can sure live with it the way it is... but can you give me an idea why "the standard makers" thought the way they did/do? Thanks Michael Simcich AccessTools -----Original Message----- From: ucntcme@zope.org [mailto:ucntcme@zope.org]On Behalf Of Bill Anderson Sent: Wednesday, March 01, 2000 6:21 PM To: Curtis Maloney Cc: zope@zope.org Subject: Re: [Zope] Reply To: Curtis Maloney wrote: > > Is it at all possible to have this list set reply to? > > since problems discussed and solved here are logged for others to search, > surely it would be best if, by default, replies to these messages came to the > list? I know it's just a little thing, but it still bugs me. > > I know that on other lists to which I subscribe this is done. > > Anyone else have an opinion on this? Can-of-Worms alert! This is something that has been discussed at length on many forums. Munging like this is not only counter to the stamdards, it is also a Bad Idea (tm) on many levels. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From evan@4-am.com Thu Mar 2 03:24:46 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 1 Mar 2000 21:24:46 -0600 Subject: [Zope] Advanced DTML Question References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> <4.2.2.20000301171022.00b71740@mail.ic.net> Message-ID: <004701bf83f6$ee68c3e0$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > "Brain Class?" Could you explain that a bit? It so happens that the > objects I'm getting out of my catalog are instances of a ZClass that I > created. That ZClass inherits from a basically empty Python base > class. Is this what you mean by a "brain class"? I think so. A "brain" in obscure Zope parlance is a class used to enhance a raw tabular record, such as a ZSQLMethod or ZCatalog returns. > If so, are you saying > that I should just define a method in my Python code which does the > "anchorGroup" thing? Exactly! Cheers, Evan @ 4-am & digicool From michel@digicool.com Thu Mar 2 03:23:22 2000 From: michel@digicool.com (Michel Pelletier) Date: Wed, 01 Mar 2000 19:23:22 -0800 Subject: [Zope] Data.fs corruption References: <001f01bf839b$ba959d00$e61de618@defiant.the-bridge.net> Message-ID: <38BDDEAA.6C930E03@digicool.com> Steve Drees wrote: > > How does one go about fixing a corrupt data.fs? Could you be more specific? How exactly is your file corrupted? How does it fail? etc? > -steve > ---- > drees@the-bridge.net http://www.the-bridge.net/~drees > "A problem well stated, is a problem half-solved." - C. Kettering You're not even a hundredth of the way there! -Michel From evan@4-am.com Thu Mar 2 03:27:31 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 1 Mar 2000 21:27:31 -0600 Subject: [Zope] Dealing with Dictionaries References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> <4.2.2.20000301172344.00bab320@mail.ic.net> Message-ID: <004d01bf83f7$50a2cab0$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > > > > I get an "AttributeError" on "keys". Hmm. Somehow you aren't getting a dictionary, then. It's hard to tell from just what you've posted where it's going astray. Are you dtml-return-ing a literal dict as in your initial posting? How is dictionaryVariableName set? Cheers, Evan @ 4-am & digicool From michel@digicool.com Thu Mar 2 03:29:08 2000 From: michel@digicool.com (Michel Pelletier) Date: Wed, 01 Mar 2000 19:29:08 -0800 Subject: [Zope] Listening on specific interfaces References: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> Message-ID: <38BDE004.14B77522@digicool.com> "Pearson, Brian Edward (GEA, 056278)" wrote: > > All - Have a problem which I am certain many of you have already > encountered. > > With most web servers, you can create specific web server instances that > listen to virtual network interfaces on the server (virtual IP addresses). > For example, I can have multiple httpd instances, with httpd1 listening to > 192.168.1.101 and httpd2 listening to 192.168.1.102 on a box where the > physical IP address is 192.168.1.100. This is configurable within the web > server. > > I want to be able to have Zope listen to a specific network interface, i.e. > - a virtual IP address that has been created on the server. This will allow > me to have multiple Zope sites running on the same machine. How can this be > accomplished? Any/all suggestions are greatly appreciated. You need to hack the z2.py file. Go down near the bottom (look for the string '# HTTP Server') and you will see that the HTTP server is fired up on the IP_ADDRESS interface. This variable is defined on line 252 and the default is an empty string '' which means, 'all interfaces'. You can hack the code here to do anything you want, define a bunch of interface variables, etc... Yes, this needs to be done better, but short of comming up with a conf file like apache and dealing with all that, it's probably no so realistic. z2.py is currently config'ed with command line options, which gets out of control after a while. -Michel From curtis@umd.com.au Thu Mar 2 03:40:09 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Thu, 2 Mar 2000 14:40:09 +1100 Subject: [Zope] Reply To: In-Reply-To: <38BDCFEF.B78C9E80@libc.org> References: <00030211041201.20388@localhost.localdomain> <38BDCFEF.B78C9E80@libc.org> Message-ID: <00030214423605.20388@localhost.localdomain> Morning... On Thu, 02 Mar 2000, Bill Anderson wrote: > Curtis Maloney wrote: > > > > Is it at all possible to have this list set reply to? > > > > since problems discussed and solved here are logged for others to search, > > surely it would be best if, by default, replies to these messages came to the > > list? I know it's just a little thing, but it still bugs me. > > > > I know that on other lists to which I subscribe this is done. > > > > Anyone else have an opinion on this? > > Can-of-Worms alert! > Isn't this what open forums are best at? (o8 > This is something that has been discussed at length on many forums. > Munging like this is not only counter to the stamdards, it is also a Bad > Idea (tm) on many levels. > Erm... since when is the reply to field of an e-mail header NOT standard? Why is it a bad idea? It means the default action of replying to a message on this list is to contribute to the list. I'm not saying you are wrong. I just would prefer a clear explanation instead of an outright "that is wrong." -- Have a better one, Curtis. From bill@libc.org Thu Mar 2 03:39:33 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 20:39:33 -0700 Subject: [Zope] Reply To: References: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> Message-ID: <38BDE275.FF32E1A8@libc.org> Michael Simcich wrote: > > This may be well hashed for most here but I'm curious about this. I've > noticed that most true mailing lists operate like this zope list, whereas > the lists I subscribe to via services like eGroups perform more like Curtis > would like it. I'm with Curtis on this, it seems much simpler to just send > the reply to the list... if I hit "reply to all" the person I'm responding > to and the others that have particpated in the thread get at least two > copies... one direct and one via the list. I'd have thought that the > multi-copy thing would quite bothersome for most overloaded list-partakers. > Plus the fact that at least some of the time messages must unintentionally > never make it to the list. I can sure live with it the way it is... but can > you give me an idea why "the standard makers" thought the way they did/do? Well, one aspect of it is summed up in two words: Mail Loops. Mail loops involving mailing lists get real nastym real fast. While it is true that most MTAs have capabilities to detect them, it is also true few are very effective, and even fewer admins even try to enable them. As far as the two copies aspect, I hit reply-to-all, and delete the individual from the recipient list. Some mailers do it properly and have group, and individual response options. A third aspect is end-user filtering adn reporting. On lists where the headers are munged, often the client reader doesn't display attributions correct, or sort correctly. -- Bill Anderson "Always, there are two." -Yoda "Always, there are three." Zathrus From curtis@umd.com.au Thu Mar 2 03:08:38 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Thu, 2 Mar 2000 14:08:38 +1100 Subject: [Zope] Should I go with Zope? In-Reply-To: <0003020953250G.00679@tokey.kedai.com.my> References: <20000229233333.28803.qmail@web1802.mail.yahoo.com> <00030110554001.05352@localhost.localdomain> <0003020953250G.00679@tokey.kedai.com.my> Message-ID: <00030214183504.20388@localhost.localdomain> On Thu, 02 Mar 2000, you wrote: > > Remember, there are really two major parts to ZOPE: The object > > database/renderer, and the ZServer. It is possible to run ZOPE without the > > ZServer, directly from Apache or similar, as a CGI program. > > > can we really run apache without running zserver? i've been running apache as > the frontend, and uses pcgi, but i still run zserver. if what you say is true, > then maybe i'm doing something wrong. > > how can i run apache without zserver? > I believe i mentioned that everything in my email was from my questionable understanding of ZOPE. However, since nobody else has said "erm.. no, that's not correct" i'm led to believe my assumtptions were correct. (o8 Personally, I've only used ZOPE directly with ZServer, or via an Apache server with proxying (i don't count my as yet abortive attemts with apache and fastCGI :) From a review of my original assumptions (and actually looking further) i may have been totally incorrect, believing the Zope.cgi might be a program you could simply drop into your CGI directory, and presto. But from closer examination, and some testing, I don't belive this is true. > tia - > ------------------------------------------------------ > http://www.kedai.com.my/kk Am I Evil? sorry if i got your hopes up. -- Have a better one, Curtis. From jwh@allencreek.com Thu Mar 2 04:22:56 2000 From: jwh@allencreek.com (James W. Howe) Date: Wed, 01 Mar 2000 23:22:56 -0500 Subject: [Zope] Advanced DTML Question In-Reply-To: <38BDCBFC.68C311BE@libc.org> References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <4.2.0.58.20000301232139.00b5bf00@gustav> At 07:03 PM 03/01/2000 -0700, Bill Anderson wrote: >"James W. Howe" wrote: > > > > I'm trying to write a DTMLMethod which will write out a list of data items > > found from a catalog, sorted in alphabetical order. [...] > > > > Has anybody done anything similar who would be willing to give me some > > advice as to the best way to go about solving this problem? > > > > >Have you tried the How-To: Do you have a particular one in mind? I looked, but it's entirely possible that I missed one which might be appropriate. James Howe internet: mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From michel@digicool.com Thu Mar 2 04:23:53 2000 From: michel@digicool.com (Michel Pelletier) Date: Wed, 01 Mar 2000 20:23:53 -0800 Subject: [Zope] Should I go with Zope? References: <20000229233333.28803.qmail@web1802.mail.yahoo.com> <00030110554001.05352@localhost.localdomain> <0003020953250G.00679@tokey.kedai.com.my> Message-ID: <38BDECD9.BBC705BA@digicool.com> You still need ZServer, I think this person meant that ZServer wasn't actually listening on any outside ports, just the local domain socket to Apache. FYI, Zope used to be able to run without ZServer, but it was single threaded. You can still do that now (I imagine) but if you want concurency you need ZServer. -Michel - wrote: > > > Remember, there are really two major parts to ZOPE: The object > > database/renderer, and the ZServer. It is possible to run ZOPE without the > > ZServer, directly from Apache or similar, as a CGI program. > > > can we really run apache without running zserver? i've been running apache as > the frontend, and uses pcgi, but i still run zserver. if what you say is true, > then maybe i'm doing something wrong. > > how can i run apache without zserver? > > tia - > ------------------------------------------------------ > http://www.kedai.com.my/kk Am I Evil? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From jiva@devware.com Thu Mar 2 05:04:36 2000 From: jiva@devware.com (jiva@devware.com) Date: Wed, 1 Mar 2000 22:04:36 -0700 Subject: [Zope] Zope and remote caches. In-Reply-To: <613145F79272D211914B0020AFF640194294FF@gandalf.digicool.com> References: <613145F79272D211914B0020AFF640194294FF@gandalf.digicool.com> Message-ID: <20000301220436.B17318@devware.com> This is highly cool, is there anyplace that this, and other similar methods are documented besides the code itself? On Wed, Mar 01, 2000 at 07:49:48AM -0500, Martijn Pieters wrote: > From: jiva@devware.com [mailto:jiva@devware.com] > > So, if I am grokking the whole zope thang properly here, then > > theoretically, when I imbed objects within my zope documents, I > > shouldn't hardcode in specific urls to them. Instead, I should treat > > them almost as if they are always in the current directory, even if > > they are a couple of folders up. This way, if I want to override some > > behavior in the future, I just copy the object down into the current > > folder and edit it. I notice however, that if I do this, it plays > > hell with browser caching because the browser winds up pulling things > > from different places all the time even if it's actually winding up > > pulling the same document down. How do other people deal with this? > > Use the absolute_url() method on the objects. > > That way, your generated HTML will contain absolute URLs to the objects, > that are the same across different Folders in your site even when the > object is acquired from elsewhere. Overriding as you described will > still work the same, the URLs will reflect the change accordingly. > > Syntax variations (as always from the top of my head, not tested, YMMV): > > > > &dtml.url-object; > > The last notation is especially useful in HTML tag attributes, as it > won't break WYSIWYG HTML editors: > > Go to object > -- COBOL: Completely Over and Beyond reason Or Logic. From bak@nstp.com.my Thu Mar 2 04:35:34 2000 From: bak@nstp.com.my (-) Date: Thu, 2 Mar 2000 12:35:34 +0800 Subject: [Zope] how much resource? Message-ID: <0003021244090L.00679@tokey.kedai.com.my> hi all, i'm happy to say that our site (www.emedia.com.my) has been running steadily since feb. and we got our first 1M hits per day yesterday, and zope didn't screeched to a halt. now i'm wondering how much resource .., affect the sending out of data to users. will a lot of if and ins bog down the server? i wanted to do two different page for the same contents i.e. pages with tables, and without tables. i intend to do as what zope.org does for printable page where we set a variable in the url or maybe set a cookie. to do that, i need to have an if statement in all files looking for that particular variable and render the apropriate header file. will this affect response time? i've looked at chameleon skin but could not grasp the way it works. if anyone got better ideas, better solution, shoot it here. thanks -- ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil? From mindlace@imeme.net Thu Mar 2 05:17:29 2000 From: mindlace@imeme.net (ethan mindlace fremen) Date: Thu, 02 Mar 2000 05:17:29 +0000 Subject: [Zope] proxying vs. fastcgi Message-ID: <38BDF969.4CD221C2@imeme.net> Zopistas, I notice that there are two "performance" options with Zope, proxying and fastcgi. Is there a difference in how they perform or in features? Thanks Ethan Fremen http://imeme.net From jwm@plain.co.nz Thu Mar 2 05:09:46 2000 From: jwm@plain.co.nz (John Morton) Date: Thu, 2 Mar 2000 18:09:46 +1300 (NZDT) Subject: [Zope] Reply To: In-Reply-To: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> References: <38BDCFEF.B78C9E80@libc.org> <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> Message-ID: <14525.62210.86415.81376@antares.int.plain.co.nz> Michael Simcich writes: > This may be well hashed for most here but I'm curious about this. I've > noticed that most true mailing lists operate like this zope list, whereas > the lists I subscribe to via services like eGroups perform more > like Curtis would like it. http://www.unicom.com/pw/reply-to-harmful.html The digest version is that adding a reply-to field clobbers legitimate reply-to headers, that many mail readers will have difficulty replying to the sender's address without resorting to cut and paste, and that it renders the 'reply to all' function on most mailers useless. Further more, on 'reply-to' style lists it's quite common to see replies to messages that were intended to be send to the sender end up on the list - to the annoyance of the list readers, and often the embarrassment of the person replying. > I'm with Curtis on this, it seems much simpler to just send > the reply to the list... if I hit "reply to all" the person I'm responding > to and the others that have particpated in the thread get at least two > copies... one direct and one via the list. I'd have thought that the > multi-copy thing would quite bothersome for most overloaded > list-partakers. This is the downside to CC style lists. One day it will piss me off enough to write a patch for Mailman so that it won't send a message to a list member if they are already in the To: or CC: fields. > Plus the fact that at least some of the time messages must unintentionally > never make it to the list. Better than the other way around. See above. > I can sure live with it the way it is... but can > you give me an idea why "the standard makers" thought the way they did/do? The Reply-To field is intended to be a way for you to indicate the email address that you can be contacted with when the one your sending from doesn't necessarily receive email - ie, you're migrating between accounts, or posting to a publicly accessible list from an account that isn't receiving email from that list. Whatever. The point is that we want to keep people's reply-to fields where possible. John. From michel@digicool.com Thu Mar 2 05:13:09 2000 From: michel@digicool.com (Michel Pelletier) Date: Wed, 01 Mar 2000 21:13:09 -0800 Subject: [Zope] Reply To: References: <00030211041201.20388@localhost.localdomain> <38BDCFEF.B78C9E80@libc.org> <00030214423605.20388@localhost.localdomain> Message-ID: <38BDF865.4ABBE5ED@digicool.com> Curtis Maloney wrote: > > > Erm... since when is the reply to field of an e-mail header NOT standard? > Why is it a bad idea? It means the default action of replying to a message on > this list is to contribute to the list. > > I'm not saying you are wrong. I just would prefer a clear explanation instead > of an outright "that is wrong." http://www.unicom.com/FAQ/reply-to-harmful.html -Michel From michel@digicool.com Thu Mar 2 05:18:50 2000 From: michel@digicool.com (Michel Pelletier) Date: Wed, 01 Mar 2000 21:18:50 -0800 Subject: [Zope] how much resource? References: <0003021244090L.00679@tokey.kedai.com.my> Message-ID: <38BDF9BA.CA4B10C3@digicool.com> - wrote: > > hi all, > i'm happy to say that our site (www.emedia.com.my) has been running steadily > since feb. and we got our first 1M hits per day yesterday, and zope didn't > screeched to a halt. > > now i'm wondering how much resource .., affect > the sending out of data to users. will a lot of if and ins bog down the > server? Bog? No. > i wanted to do two different page for the same contents i.e. pages > with tables, and without tables. i intend to do as what zope.org does for > printable page where we set a variable in the url or maybe set a cookie. to do > that, i need to have an if statement in all files looking for that particular > variable and render the apropriate header file. will this affect response > time? Yes. Measureable in milliseconds. It's really not that much to worry about just doing one conditional evaluation. What you really want to avoid are long loops. -Michel From bill@libc.org Thu Mar 2 05:20:54 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 01 Mar 2000 22:20:54 -0700 Subject: [Zope] Reply To: References: <00030211041201.20388@localhost.localdomain> <38BDCFEF.B78C9E80@libc.org> <00030214423605.20388@localhost.localdomain> Message-ID: <38BDFA36.B936F966@libc.org> Curtis Maloney wrote: > > Morning... > > On Thu, 02 Mar 2000, Bill Anderson wrote: > > Curtis Maloney wrote: > > > > > > Is it at all possible to have this list set reply to? > > > > > > since problems discussed and solved here are logged for others to search, > > > surely it would be best if, by default, replies to these messages came to the > > > list? I know it's just a little thing, but it still bugs me. > > > > > > I know that on other lists to which I subscribe this is done. > > > > > > Anyone else have an opinion on this? > > > > Can-of-Worms alert! > > > > Isn't this what open forums are best at? (o8 > > > This is something that has been discussed at length on many forums. > > Munging like this is not only counter to the stamdards, it is also a Bad > > Idea (tm) on many levels. > > > > Erm... since when is the reply to field of an e-mail header NOT standard? A reply-to field itself is not against standards, the requested _use_ of the reply-to field is. Slight difference ;) [The applicable standard is RFC822.] (of course, technically speaking, the modified subject line in this very post is in violation of the standard, but since it doesn't tend to cause nasty mail loops, it largely goes unnoticed :) ) > Why is it a bad idea? It means the default action of replying to a message on > this list is to contribute to the list. Right. Now what happens when Joe User takes a trip, and sets his 'I am on vacation.' autoresponder on? That response is sent to everyone. That response generates another email to him ... continue ad nauseum. Or consider the target email being no-longer-valid. You get a mailer-daemon response telling everyone on the list about it; which includes the target thus generating an error which.... Granted, when all parts of the peices of the puzzle are coded properly, that may be reduced in frequency and/or intensity, but unfortunately, many, many manchines are not set up properly, and software isn't coded correctly. > > I'm not saying you are wrong. I just would prefer a clear explanation instead > of an outright "that is wrong." See my other response. On top of those, I would add the issues with mail <-> news gateways and loops that can/do occur as a result of improper header munging. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From msimcich@accesstools.com Thu Mar 2 05:44:14 2000 From: msimcich@accesstools.com (Michael Simcich) Date: Wed, 1 Mar 2000 21:44:14 -0800 Subject: [Zope] Reply To: In-Reply-To: <14525.62210.86415.81376@antares.int.plain.co.nz> Message-ID: <001301bf840a$588f7800$0100a8c0@pinol1.sfba.home.com> Hi John - It does make sense from those angles. If it was just me and Curtis on the list I guess we'd still like to have it our way , but that's ok. I'm sure what Bill said about this issue having been turned over endlessly is true, and therefore if this sort of standard has emerged it's got to the the way to go. Whoops I almost sent that only to you... Michael Simcich AccessTools -----Original Message----- From: John Morton [mailto:jwm@plain.co.nz] Sent: Wednesday, March 01, 2000 9:10 PM To: Michael Simcich Cc: zope@zope.org Subject: RE: [Zope] Reply To: Michael Simcich writes: > This may be well hashed for most here but I'm curious about this. I've > noticed that most true mailing lists operate like this zope list, whereas > the lists I subscribe to via services like eGroups perform more > like Curtis would like it. http://www.unicom.com/pw/reply-to-harmful.html The digest version is that adding a reply-to field clobbers legitimate reply-to headers, that many mail readers will have difficulty replying to the sender's address without resorting to cut and paste, and that it renders the 'reply to all' function on most mailers useless. Further more, on 'reply-to' style lists it's quite common to see replies to messages that were intended to be send to the sender end up on the list - to the annoyance of the list readers, and often the embarrassment of the person replying. > I'm with Curtis on this, it seems much simpler to just send > the reply to the list... if I hit "reply to all" the person I'm responding > to and the others that have particpated in the thread get at least two > copies... one direct and one via the list. I'd have thought that the > multi-copy thing would quite bothersome for most overloaded > list-partakers. This is the downside to CC style lists. One day it will piss me off enough to write a patch for Mailman so that it won't send a message to a list member if they are already in the To: or CC: fields. > Plus the fact that at least some of the time messages must unintentionally > never make it to the list. Better than the other way around. See above. > I can sure live with it the way it is... but can > you give me an idea why "the standard makers" thought the way they did/do? The Reply-To field is intended to be a way for you to indicate the email address that you can be contacted with when the one your sending from doesn't necessarily receive email - ie, you're migrating between accounts, or posting to a publicly accessible list from an account that isn't receiving email from that list. Whatever. The point is that we want to keep people's reply-to fields where possible. John. From curtis@umd.com.au Thu Mar 2 06:40:24 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Thu, 2 Mar 2000 17:40:24 +1100 Subject: [Zope] Reply To: In-Reply-To: <14525.62210.86415.81376@antares.int.plain.co.nz> References: <38BDCFEF.B78C9E80@libc.org> <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> <14525.62210.86415.81376@antares.int.plain.co.nz> Message-ID: <00030217471806.20388@localhost.localdomain> Green things... wow... the can-o'-worms comment was way accurate... (o8 On Thu, 02 Mar 2000, John Morton wrote: > Michael Simcich writes: > > This may be well hashed for most here but I'm curious about this. I've > > noticed that most true mailing lists operate like this zope list, whereas > > the lists I subscribe to via services like eGroups perform more > > like Curtis would like it. > > http://www.unicom.com/pw/reply-to-harmful.html > Thanks for the details... > The digest version is that adding a reply-to field clobbers legitimate > reply-to headers, that many mail readers will have difficulty replying > to the sender's address without resorting to cut and paste, and that > it renders the 'reply to all' function on most mailers useless. > > Further more, on 'reply-to' style lists it's quite common to see > replies to messages that were intended to be send to the sender end up > on the list - to the annoyance of the list readers, and often the > embarrassment of the person replying. > > > I'm with Curtis on this, it seems much simpler to just send > > the reply to the list... if I hit "reply to all" the person I'm responding > > to and the others that have particpated in the thread get at least two > > copies... one direct and one via the list. I'd have thought that the > > multi-copy thing would quite bothersome for most overloaded > > list-partakers. > > This is the downside to CC style lists. One day it will piss me off > enough to write a patch for Mailman so that it won't send a message to > a list member if they are already in the To: or CC: fields. > OK... here I will agree... smarter list servers are better, always. (o8 > > Plus the fact that at least some of the time messages must unintentionally > > never make it to the list. > > Better than the other way around. See above. > > > I can sure live with it the way it is... but can > > you give me an idea why "the standard makers" thought the way they did/do? > > The Reply-To field is intended to be a way for you to indicate the > email address that you can be contacted with when the one your sending > from doesn't necessarily receive email - ie, you're migrating between > accounts, or posting to a publicly accessible list from an account > that isn't receiving email from that list. Whatever. The point is that > we want to keep people's reply-to fields where possible. > OK... here is something I was talking with my workmates about. So, i send a message to the list from somewhere other than my list registered account. If i was migrating accounts, or whatever, i would change my details with the list server. Mailing Lists should only be sending to registered addresses, surely? so, the list server doesn't care where the message came from (or maybe it does), and has a FIXED LIST (as far as it's concerned) of people to forward the messages to. Why does it care what is in the reply-to field? on another point that is showing in this list... Reply-To-All buttons... having reply-to set cirvumvents ALL the problems with duplicate messages, etc. I have the option of a) Reply-To-All, and risk doubling to someone, OR hitting Reply, and getting the mailing list server to send it on to everyone appropriate. > John. > > -- Have a better one, Curtis. From claw@kanga.nu Thu Mar 2 06:47:41 2000 From: claw@kanga.nu (J C Lawrence) Date: Wed, 01 Mar 2000 22:47:41 -0800 Subject: [Zope] Reply To: In-Reply-To: Message from "Michael Simcich" of "Wed, 01 Mar 2000 19:21:56 PST." <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> References: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> Message-ID: <18434.951979661@kanga.nu> On Wed, 1 Mar 2000 19:21:56 -0800 Michael Simcich wrote: > ...but can you give me an idea why "the standard makers" thought > the way they did/do? Be warned that this is a religious topic, and that the technical arguments presented for both sides are (arguably) easily balanced by the arguments from the other side. The following URLs contains reasonable arguments on both sides: http://www.unicom.com/pw/reply-to-harmful.html http://www.metasystema.org/essays/reply-to-useful.mhtml Note that there are also some good pro-reply-to arguments under the first URL, despite its title. -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- From claw@kanga.nu Thu Mar 2 06:53:33 2000 From: claw@kanga.nu (J C Lawrence) Date: Wed, 01 Mar 2000 22:53:33 -0800 Subject: [Zope] Reply To: In-Reply-To: Message from John Morton of "Thu, 02 Mar 2000 18:09:46 +1300." <14525.62210.86415.81376@antares.int.plain.co.nz> References: <38BDCFEF.B78C9E80@libc.org> <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> <14525.62210.86415.81376@antares.int.plain.co.nz> Message-ID: <18519.951980013@kanga.nu> On Thu, 2 Mar 2000 18:09:46 +1300 (NZDT) John Morton wrote: > The Reply-To field is intended to be a way for you to indicate the > email address that you can be contacted with when the one your > sending from doesn't necessarily receive email - ie, you're > migrating between accounts, or posting to a publicly accessible > list from an account that isn't receiving email from that > list. Whatever. The point is that we want to keep people's > reply-to fields where possible. A small note: Given a message with a CC list list _and_ a Reply-To set, a group reply on Many (even most?) MUAs will send the reply to the Reply-To and ignore the CC list (IIRC the RFC is ambiguous in this matter). In this manner if an individual is using Reply-To correctly (to hide the fact that they can't receive mail at their From: address), they are also cutting the other recipients out of the loop for replies. Dangerous. Conversely, if a list does do reply-to munging, this doesn't happen, but the "proper" address for the original post is usually lost. This is off-topic however. -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- From nolan_d@bigfoot.com Thu Mar 2 06:55:17 2000 From: nolan_d@bigfoot.com (Nolan Darilek) Date: Thu, 02 Mar 2000 00:55:17 -0600 Subject: [Zope] Reply To: In-Reply-To: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> (msimcich@accesstools.com) References: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> Message-ID: >>>>> "Michael" == Michael Simcich writes: Michael> way it is... but can you give me an idea why "the Michael> standard makers" thought the way they did/do? Check out these links for a bit of background and debate about this: http://www.unicom.com/pw/reply-to-harmful.html http://www.metasystema.org/reply-to-useful.mhtml Hope that helps! From knapek@knapek.pvt.net Thu Mar 2 06:59:54 2000 From: knapek@knapek.pvt.net (Petr Knapek) Date: 02 Mar 2000 07:59:54 +0100 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: "Martijn Pieters"'s message of "Wed, 1 Mar 2000 21:42:24 +0100" References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> Message-ID: <864sapx3f9.fsf@knapek.pvt.net> >>>>> On Wed, 1 Mar 2000 21:42:24 +0100, "Martijn Pieters" said: Hi all, I have the same problem. MP> From: "Thomas Weiner" >> Am I the only one whose bobo_modification_time started today with >> /2000/2/29 instead of /2000/03/01? >> >> I create a new method Time_now: >> >>
>> >> and the Output is: >> >> 2000/03/01 18:30:21.091 GMT+1 2000/02/29 18:30:5.198 GMT+1 >> >> Same appears in my Undo Log (February, 29th started again today) >> and so on. MP> 1: What is your timezone setting. It could be that dates are MP> displayed in a different timezone. Martijn, it is not problem of timezone setting. If yes I had to see the difference in past also. And it was OK. The problem started with 29.2. date. I think that it is a bug in bobobase_modification_time. The system time is OK, only problems with bobobase_modification_time. MP> 2: If you do your test from a DTML Method, you'll be shown the MP> modification date of the container it is called on. For an MP> explanation, see: MP> MP> http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo MP> and other How-To's on DTML and Aqcuisition. MP> Martijn Pieters | Software Engineer mailto:mj@digicool.com | MP> Digital Creations http://www.digicool.com/ | Creators of Zope MP> http://www.zope.org/ | The Open Source Web Application Server MP> --------------------------------------------- MP> _______________________________________________ Zope maillist - MP> Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No MP> cross posts or HTML encoding! ** (Related lists - MP> http://lists.zope.org/mailman/listinfo/zope-announce MP> http://lists.zope.org/mailman/listinfo/zope-dev ) Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic From curtis@umd.com.au Thu Mar 2 07:07:11 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Thu, 2 Mar 2000 18:07:11 +1100 Subject: [Zope] Reply To: In-Reply-To: References: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> Message-ID: <00030218094507.20388@localhost.localdomain> A very meek greeting.. Ok... i have now seen the error of my ways. I fully admit i was not aware there were so many problems to what seemed like such a simple convenience. I'm sure i can live with trying to remember to set the To address. Please, _I_ require no further conviction in this matter. The information has been provided as i asked (thanks to all who did), and I have been made suitably aware of why this (and many other) list avoids using the reply-to field, for the simple matter of 'avoiding problems'. Hey.. by the way... has anyone else noticed the prolific nature of vagueness in RFCs? -- Have a better one, Curtis. From claw@kanga.nu Thu Mar 2 07:30:24 2000 From: claw@kanga.nu (J C Lawrence) Date: Wed, 01 Mar 2000 23:30:24 -0800 Subject: [Zope] Reply To: In-Reply-To: Message from Curtis Maloney of "Thu, 02 Mar 2000 18:07:11 +1100." <00030218094507.20388@localhost.localdomain> References: <001001bf83f6$775b7860$0100a8c0@pinol1.sfba.home.com> <00030218094507.20388@localhost.localdomain> Message-ID: <19001.951982224@kanga.nu> On Thu, 2 Mar 2000 18:07:11 +1100 Curtis Maloney wrote: > Hey.. by the way... has anyone else noticed the prolific nature of > vagueness in RFCs? Its the old game: Only what is stated is defined. Some things are stated to be "implementation dependent". Everything else is undefined and might involve green hairy martians coming out of someone's nose. Or not. Or both. RFCs are a little better (or worse, YMMV) than standards documents (which aren't really written in english per se), as they often concentrate more on "intent" than definition. -- J C Lawrence Home: claw@kanga.nu ----------(*) Other: coder@kanga.nu --=| A man is as sane as he is dangerous to his environment |=-- From bsb@winnegan.de Thu Mar 2 08:04:22 2000 From: bsb@winnegan.de (Siggy Brentrup) Date: 02 Mar 2000 09:04:22 +0100 Subject: [Zope] ZPyGreSQLDA install problem In-Reply-To: "Marc Gehling"'s message of "Wed, 1 Mar 2000 19:25:23 +0100" References: <41256895.006531CD.00@notessmtp> Message-ID: <87em9tztkp.fsf@orge.winnegan.de> "Marc Gehling" writes: > Hello, > > I run > > "make -f Makefile.pre.in boot" and this is the output: > > ----- > 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/dc/Zope-2.1.4-linux2-x86/lib/python/Prod > ucts/ZPyGreSQLDA/src' > make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed > by `sedscript'. Stop. Check your python installation, obviously don't have this file. > make[1]: Leaving directory `/usr/local/dc/Zope-2.1.4-linux2-x86/lib/python/Produ > cts/ZPyGreSQLDA/src' > make: *** [boot] Error 2 If you're running Debian/GNU Linux, you need the python-dev package, but then why not install the zope packages? $ dpkg -S /usr/lib/python1.5/config/Makefile python-dev: /usr/lib/python1.5/config/Makefile hth Siggy -- Siggy Brentrup - bsb@winnegan.de - http://www.winnegan.de/ bsb@north.de - http://www.north.de/~bsb/ ****** ceterum censeo javascriptum esse restrictam ******* From glyph@twistedmatrix.com Thu Mar 2 08:36:23 2000 From: glyph@twistedmatrix.com (Glyph Lefkowitz) Date: Thu, 2 Mar 2000 03:36:23 -0500 (EST) Subject: [Zope] Re: [Off Topic] [Zope] Reply To: In-Reply-To: Message-ID: just to elaborate on a few common points that have been brought up on this list, and covered here: > http://www.metasystema.org/reply-to-useful.mhtml 1) "It's against the standard": Quoting directly from that article: The first thing to consider is that RFC 822, the document which defines the standards and usages for email, specifically mentions this usage in section 4.4.3: A somewhat different use may be of some help to "text message teleconferencing" groups equipped with automatic distribution services: include the address of that service in the "Reply- To" field of all messages submitted to the teleconference; then participants can "reply" to conference submissions to guarantee the correct distribution of any submission of their own. It's not "against" the standard. It may be a quirk of the standard. Detractors, please familiarize yourselves before FUDding. 2) "It causes mail loops." Can someone please direct me to a record of this actually happening? It's certainly not common, and I run all of my lists with munging on. It doesn't cause problems there. Several other lists (yes, some of them are even "real" lists) that I subscribe to use munging and have never seen a mailloop. 3) "Autoresponders are upset by it." If you're going to use an autoresponder, configure it responsably! Better yet, don't use one at all. They are annoying. Mail loops generated here would happen anyway. 4) "It removes useful information." If you're using the 'reply-to' header rather than your 'from' header to encode the address you want responses sent to, I know this is within the standard, but you're wasting my bandwidth and my time. I don't need to know both what machine you sent from and what machine you want me to reply to. Just put your own address in the 'from' header. (This is what most people do anyway. I don't know anyone that works otherwise.) 5) "It removes freedom" This is a crock. Anyone with a reasonably written mailer can respond to messages how they please: reply-to munging makes it easier to reply *only to the list* which is almost always the required functionality. If you really can't live without the original reply-to header, maybe you should consider posting a message to the list asking the person's private email that you want to get in touch with: you should really be requesting to take on-topic discussions off the list in the first place anyway. Speaking of wasting my money / time, if you're going to be a detractor of reply-to munging, PLEASE be thoughtful enough, at least, to remove the inevitable list of 18 or 20 recipients that cruft up to threads over time. This 'conscientious' behavior, as described by Chip Rosenthal, has gotten me CC:ed on some messages 2 or 3 times on unmunged mailinglists. I find this annoying, but less so than getting flamed for sending out 8 replies to a single mailing-list message. And I like to conserve bandwidth. This is much-repeated stuff, but I hate to think that there's this image that technically sophistocated people all hate munging and think it's evil. Chip's opinion is, as the author of the essay referenced above has told me, treated as gospel, and there are definitely two views on this topic. I strongly adhere to one, obviously. :-) (Please, no flames, no personal email about this. I'm not going to be convinced of anything, this is just a message to make sure that 'newbies' to list administration don't think that there is one answer to this question. It's not really for those of you who seriously consider munging bad, and I certainly don't hope to get the policy on this list changed by it; that would only spark more discussion of this, and one extra email once in a while isn't so bad compared to thousands upon thousands of messages in this thread... ^_^) ______ __ __ _____ _ _ | ____ | \_/ |_____] |_____| |_____| |_____ | | | | @ t w i s t e d m a t r i x . c o m http://www.twistedmatrix.com/~glyph/ From technews@egsx.com Thu Mar 2 08:58:44 2000 From: technews@egsx.com (technews@egsx.com) Date: Thu, 2 Mar 2000 03:58:44 -0500 (EST) Subject: [Zope] how much resource? In-Reply-To: <0003021244090L.00679@tokey.kedai.com.my> Message-ID: Hi, Can you please tell us what is the configuration of your machine. I am very interested. We had our servers crawl to halt when we used Zope but we had other things running at the same time. So I will appretiate it if you can give us the configuration. Are you using a database? Is it on the same machine or by itself, and if so what are the configuration of the supporitng servers. 1M pages/day is a great number, I think that if a farm configuration is used you can create an extremely dynamic and scalable site. TIA Adonis -- Adonis El Fakih - President, CEO -- EGS, Inc. 70 Boston Road, Suite A301, Chelmsford MA 01824 USA Fax (978) 244-0544 - adonis@egsx.com On Thu, 2 Mar 2000, - wrote: > hi all, > i'm happy to say that our site (www.emedia.com.my) has been running steadily > since feb. and we got our first 1M hits per day yesterday, and zope didn't > screeched to a halt. > > now i'm wondering how much resource .., affect > the sending out of data to users. will a lot of if and ins bog down the > server? i wanted to do two different page for the same contents i.e. pages > with tables, and without tables. i intend to do as what zope.org does for > printable page where we set a variable in the url or maybe set a cookie. to do > that, i need to have an if statement in all files looking for that particular > variable and render the apropriate header file. will this affect response > time? i've looked at chameleon skin but could not grasp the way it works. > > if anyone got better ideas, better solution, shoot it here. thanks > > > > -- ------------------------------------------------------ > http://www.kedai.com.my/kk > Am I Evil? > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From rik.hoekstra@inghist.nl Thu Mar 2 08:58:50 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Thu, 2 Mar 2000 09:58:50 +0100 Subject: [Zope] how-to/tutorial on dynamic content? Message-ID: <01bf8425$877659c0$fe5da182@etgriend.et.tudelft.nl> I've walked through the beginning tutorials on managing zope. I was hoping there would be something similar to show a newbie such as myself how to use Zope's ODB to define some objects and create dynamic content pages based on them. [RH] Um, without plugging my own document, you may want to check out my 'Changing Contexts in Zope'; reading your post it may be what you want. It is not (meant as) a howto, but a bit more general. It should go into in the ZBook of ZDP (watch this list for announcements about ZDP rsn). In the meantime it is available from my member page: http://www.zope.org/Members/Hoekstra/ChangingContexts1 Rik From bill@libc.org Thu Mar 2 09:22:02 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 02 Mar 2000 02:22:02 -0700 Subject: [Zope] Mail, reply-to, & Zope (an attempt at topicality) References: Message-ID: <38BE32BA.C56AB49D@libc.org> Glyph Lefkowitz wrote: ... > The first thing to consider is that RFC 822, the document which defines > the standards and usages for email, specifically mentions this usage in > section 4.4.3: > > A somewhat different use may be of some help to "text message > teleconferencing" groups equipped with automatic distribution > services: include the address of that service in the "Reply- > To" field of all messages submitted to the teleconference; > then participants can "reply" to conference submissions to > guarantee the correct distribution of any submission of their > own. > > It's not "against" the standard. It may be a quirk of the > standard. Detractors, please familiarize yourselves before FUDding. adding to != changing ;) ... > 4) "It removes useful information." > > If you're using the 'reply-to' header rather than your 'from' header to > encode the address you want responses sent to, I know this is within the > standard, but you're wasting my bandwidth and my time. I don't need to > know both what machine you sent from and what machine you want me to reply > to. Just put your own address in the 'from' header. (This is what most > people do anyway. I don't know anyone that works otherwise.) In addition to the valid uses posted otherwise ... Real life example: At work, I am within a corporate firewall. On my unixen, my email address is local to the machine, ie. bill@somehostname.bigcorp.com. If you reply to that, you will be wasting your time and badwidth, since you _can't_ access it from outside the firewall. Thus, I (in this example) add a reply-to that has a _useable_ email address, ie. one avaiable to you, form outside the firewall. I personally know of several hundred people who do this, and several thousand who _should_ be. And before you say it, no, not every mailer lets you set the 'from' header. The point? Now you know someone who uses it. ;^) How can this be on topic, you ask? Read on. :) I've notice a certain increase in the amount of 'sending mass email with zope' messages lately, and not many solutions. Since I don't zope on windows, one method I have used when wanting to avoid the sendmail tag (I _was_ having problems with the friggin thing not working), was to shell out and call mail (or mailx, depending on your *nix) to send each message. Problem was, when doing that, the 'from' address was 'nobody@foo.bar.com'. Since I wanted replies, I had to add the reply-to to get a response that was useful. (Hey, I din't say it was a strong effort to bring it back on topic for the list :) Perhaps those wanting to send out mass emails *cough*spam*cough* with zope, and not finding answers from within Zope and the sendlmail tag (yeah, I still look at that puppy with suspicion and a sneer :) may see this as an option -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 From phd@phd.russ.ru Thu Mar 2 09:39:14 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Thu, 2 Mar 2000 09:39:14 +0000 (GMT) Subject: [Zope] directory importation In-Reply-To: Message-ID: On Wed, 1 Mar 2000, Jessica Tishmack wrote: > I already have an existing website on a Linux platform, with many many > folders/files...to have to manually add each of these files to > Zope seems very inefficient. How do I import an entire directory into > Zope? load_site.py Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From bak@nstp.com.my Thu Mar 2 09:22:03 2000 From: bak@nstp.com.my (-) Date: Thu, 2 Mar 2000 17:22:03 +0800 Subject: [Zope] how much resource? In-Reply-To: References: Message-ID: <0003021733030M.00679@tokey.kedai.com.my> On Thu, 02 Mar 2000, technews@egsx.com wrote: > Hi, > > Can you please tell us what is the configuration of your machine. I am > very interested. We had our servers crawl to halt when we used Zope but > we had other things running at the same time. So I will appretiate it if > you can give us the configuration. Are you using a database? Is it on the > same machine or by itself, and if so what are the configuration of the > supporitng servers. > > 1M pages/day is a great number, I think that if a farm configuration is > used you can create an extremely dynamic and scalable site. > > TIA > Adonis > hi, we have a PIII 500 M, dual processor running rh6.1 with 712M RAM. there's only zope there, and mysql to cater for banner ads. i'm using phpAds for now until we got a commercial ad server or until there exist a mature banner ad products for zope. (i'mm eyeing banner ad with interest tho..) everything is in one server, although we're looking at adding another server for redundency. don't know yet how to go about this. anybody got any pointers? maybe failoverd? (http://ps-ax.com/failoverd/ ) or eddie?(www.eddieware.org) the 1M number is hits, not pages. we have max 600k pages/day last feb. this is our second month so, hopefully zope lives up to its standard.. or i'll need to find another job *grin* ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil? From campos@e2000.es Thu Mar 2 10:55:56 2000 From: campos@e2000.es (Javier Campos Morales) Date: Thu, 2 Mar 2000 11:55:56 +0100 Subject: [Zope] I cannot login (WorldPilot) Message-ID: <000001bf8435$e2d4e740$0500a8c0@red.servidor> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01BF843E.44994F40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit I have Suse 6.2 I cannot login worldpilot. I have sendmail configured in localhost, the Zope sources and compiled without problems. I installed the package "pop" with fetchmail, pop3d and imapd. I don't know if I must to execute imapd but I do this and the process stop by autologout. The propierties of woldpilot are id=worldpilot Title=WorldPilot imap=localhost smtp=localost. I introduce the user and password of my local users and it seems that dont have effect. żWhat is the problem?żWhere are the users? ------=_NextPart_000_0001_01BF843E.44994F40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I have = Suse=20 6.2
 
I = cannot login=20 worldpilot.
 
I have = sendmail=20 configured in localhost, the Zope sources and compiled without=20 problems.
I = installed the=20 package "pop"  with fetchmail, pop3d and imapd. I don't know if I = must to=20 execute imapd but I do this and the process stop by=20 autologout.
The = propierties=20 of woldpilot are id=3Dworldpilot Title=3DWorldPilot = imap=3Dlocalhost=20 smtp=3Dlocalost.
I = introduce the user=20 and password of my local users and it seems that dont have=20 effect.
 
=BFWhat is the=20 problem?=BFWhere are the users?
 
------=_NextPart_000_0001_01BF843E.44994F40-- From faassen@vet.uu.nl Thu Mar 2 11:07:38 2000 From: faassen@vet.uu.nl (Martijn Faassen) Date: Thu, 2 Mar 2000 12:07:38 +0100 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> Message-ID: <20000302120738.A3668@vet.uu.nl> Thomas Weiner wrote: > Am I the only one whose bobo_modification_time started today with > /2000/2/29 instead of /2000/03/01? I only noticed it today (2000/03/02): the undo logs show 2000/03/01, and so do ZWiki times. This appears to be a bug in bobobase_modification_time. does show the right time, and the 'Content changed' notification Zope gives does too. The bug happens on both Windows NT and Linux. Regards, Martijn From a.k.heath@open.ac.uk Thu Mar 2 12:00:48 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Thu, 02 Mar 2000 12:00:48 +0000 Subject: [Zope] trees and namespaces newbie q References: <38BC6375.1CF97892@open.ac.uk> <200003011001.LAA17503@rztsun.rz.tu-harburg.de> Message-ID: <38BE57F0.BEC0AA77@open.ac.uk> > > > > > > > > > > > > > > > > > > > > > > > > try: > > this should render the content of 'id'. Thankyou. However,to help my understanding how does this work? Hope you don't mind - I've mailed my other, unanswered tree question to you because I desparately need an answer. Andy -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From a.k.heath@open.ac.uk Thu Mar 2 12:33:58 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Thu, 02 Mar 2000 12:33:58 +0000 Subject: [Zope] why doesn't this work with tree tag Message-ID: <38BE5FB6.9EFCCE4C@open.ac.uk> In the depths of a tree tag I want to pick up a property of the "current" object without acquisition if the property isn't present. This code seems to work when used not in a tree tag but when its in a tree tag it still finds the property from higher up in the acquisition space. What gives? How can I do this? The version below doesn't fall over if the property isn't present on that object, it just finds it by acq. Code below should fall over but doesn't ---------------------------------- () Andy sorry for so many q's. I promise to give back when I can. -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From Jatwood@bwanazulia.com Thu Mar 2 11:40:19 2000 From: Jatwood@bwanazulia.com (Jatwood@bwanazulia.com) Date: Thu, 2 Mar 2000 06:40:19 -0500 Subject: [Zope] how much resource? In-Reply-To: <0003021733030M.00679@tokey.kedai.com.my> References: <0003021733030M.00679@tokey.kedai.com.my> Message-ID: To fully round out this little performance study (small study of course) could you tell us what capacity the machine is at as far as you know, what Zope version you are running and with what configuration (Zserver alone, w/ Apache etc)? These kinds of things are really helpful in determining Zope's ability to scale and in winning out the hearts of iCEO's. Thanks, JMA > >hi, we have a PIII 500 M, dual processor running rh6.1 with 712M RAM. there's >only zope there, and mysql to cater for banner ads. i'm using phpAds for now >until we got a commercial ad server or until there exist a mature banner ad >products for zope. (i'mm eyeing banner ad with interest tho..) everything is >in one server, although we're looking at adding another server for redundency. >don't know yet how to go about this. anybody got any pointers? maybe >failoverd? (http://ps-ax.com/failoverd/ ) or eddie?(www.eddieware.org) > >the 1M number is hits, not pages. we have max 600k pages/day last feb. this >is our second month so, hopefully zope lives up to its standard.. or i'll need >to find another job *grin* From mj@digicool.com Thu Mar 2 11:41:38 2000 From: mj@digicool.com (Martijn Pieters) Date: Thu, 2 Mar 2000 12:41:38 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> Message-ID: <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> From: "Petr Knapek" MP> 1: What is your timezone setting. It could be that dates are MP> displayed in a different timezone. Martijn, it is not problem of timezone setting. If yes I had to see the difference in past also. And it was OK. The problem started with 29.2. date. I think that it is a bug in bobobase_modification_time. The system time is OK, only problems with bobobase_modification_time. The best test is creating a DTML _Document_ (not a Method!), with the contents: Modified:
Current time:
IMartijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From Steven.Purchase@rdel.co.uk Thu Mar 2 11:47:14 2000 From: Steven.Purchase@rdel.co.uk (Steven Purchase) Date: Thu, 02 Mar 2000 11:47:14 +0000 Subject: [Zope] Problems installing Zope Message-ID: <38BE54C2.B71E007E@rdel.co.uk> Having just successfully installed and setup Zope and Squishdot on an 486 Linux box (Debian packages made it dead easy), I thought I'd move over to a SUN box as it is quicker and I want to run a discussion group for the intranet here. [SunOS 5.5.1 Generic sun4m sparc SUNW,SPARCstation-10] After installing the latest python (and then re-compiling with threads, doh) I unpacked Zope-2.1.4-src and ran wo_pcgi.py. Everything seemed to go fine, so I simply fired it up using ./start. After a couple of seconds Zope (okay, Python) falls over reporting that the ExtensionClass module couldn't be found at the import in ZODB/__init__.py. Actually, after investigation, none of the modules would load from an import even though they all have .so files present in the lib/python dir. Now, I don't know a thing about Python so I don't know where to look to sort this out... Any ideas? Is it something to do with shared libraries being handled wrongly on SunOS 5? Only other thing I can think of is search paths. I install outside of /usr, but I can't imagine that would be a problem. Do I need to set a PYTHONPATH or something? Help... -- Steve. "Normal people ... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet." ----- Scott Adams, The Dilbert Principle From weiner@tu-harburg.de Thu Mar 2 11:57:49 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Thu, 02 Mar 2000 12:57:49 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <20000302120738.A3668@vet.uu.nl> Message-ID: <200003021156.MAA20960@rztsun.rz.tu-harburg.de> Martijn Faassen schrieb: > > Thomas Weiner wrote: > > Am I the only one whose bobo_modification_time started today with > > /2000/2/29 instead of /2000/03/01? > > I only noticed it today (2000/03/02): the undo logs show > 2000/03/01, and so do ZWiki times. This appears to be a bug in > bobobase_modification_time. I've put this into the collector, the bug is a bit weird for those, who use bobobase_modification_time quite heavy, like me :) > does show the right time, and the 'Content > changed' notification Zope gives does too. The bug happens on both > Windows NT and Linux. aah .. the 'content changed' is a bit irritating, but it's only the notice 'content changed' and a in the next line. Thanks, Thomas From weiner@tu-harburg.de Thu Mar 2 12:02:20 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Thu, 02 Mar 2000 13:02:20 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> Message-ID: <200003021200.NAA21225@rztsun.rz.tu-harburg.de> Martijn Pieters schrieb: [...] > The best test is creating a DTML _Document_ (not a Method!), with the > contents: > > Modified:
> Current time:
Okay, my code was unclear in the example (though with a new created method the modification time of the container should have changed too:), but I'm quite sure, it's a bug. Greetings, Thomas From mj@digicool.com Thu Mar 2 12:03:40 2000 From: mj@digicool.com (Martijn Pieters) Date: Thu, 2 Mar 2000 13:03:40 +0100 Subject: [Zope] Listening on specific interfaces References: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> <38BDE004.14B77522@digicool.com> Message-ID: <005501bf843f$59c12720$21172ed5@arnhem.chello.nl> From: "Michel Pelletier" > You need to hack the z2.py file. Go down near the bottom (look for the > string '# HTTP Server') and you will see that the HTTP server is fired > up on the IP_ADDRESS interface. This variable is defined on line 252 > and the default is an empty string '' which means, 'all interfaces'. > > You can hack the code here to do anything you want, define a bunch of > interface variables, etc... > > Yes, this needs to be done better, but short of comming up with a conf > file like apache and dealing with all that, it's probably no so > realistic. z2.py is currently config'ed with command line options, > which gets out of control after a while. Or, as someone else pointed out, you could use the -a parameter to z2.py. Just run z2.py --usage for all command line options. Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From mj@digicool.com Thu Mar 2 12:10:05 2000 From: mj@digicool.com (Martijn Pieters) Date: Thu, 2 Mar 2000 13:10:05 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> <200003021200.NAA21225@rztsun.rz.tu-harburg.de> Message-ID: <005f01bf8440$3f155800$21172ed5@arnhem.chello.nl> From: "Thomas Weiner" > > The best test is creating a DTML _Document_ (not a Method!), with the > > contents: > > > > Modified:
> > Current time:
> > Okay, my code was unclear in the example (though with a new created > method the modification time of the container should have changed too:), > but I'm quite sure, it's a bug. Uuuhhhmmm.. I just tested this myself. Here's my output: Modified: 2000/03/01 13:06:16.05 GMT+1 Current time: 2000/03/02 13:06:17.86 GMT+1 Heh. One day off. And so is the Undo log. My apologies for my unduly applied sceptisism. I'll go and hide now, and investigate. Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From phd@phd.russ.ru Thu Mar 2 12:20:45 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Thu, 2 Mar 2000 12:20:45 +0000 (GMT) Subject: [Zope] Problems installing Zope In-Reply-To: <38BE54C2.B71E007E@rdel.co.uk> Message-ID: On Thu, 2 Mar 2000, Steven Purchase wrote: > [SunOS 5.5.1 Generic sun4m sparc SUNW,SPARCstation-10] > > After installing the latest python (and then re-compiling with > threads, doh) I unpacked Zope-2.1.4-src and ran wo_pcgi.py. > Everything seemed to go fine, so I simply fired it up using > ./start. After a couple of seconds Zope (okay, Python) falls over > reporting that the ExtensionClass module couldn't be found at the > import in ZODB/__init__.py. > > Actually, after investigation, none of the modules would load > from an import even though they all have .so files present in the > lib/python dir. Now, I don't know a thing about Python so I don't > know where to look to sort this out... Any ideas? > > Is it something to do with shared libraries being handled wrongly > on SunOS 5? I have Zope installed and running on Sun Sparc Solaris 2.5.1. Zope is in /usr/local/Zope. There are 17 .so libraries in lib/python. Zope is running fine: http://sun.med.ru/~zphd/ The only thing - I am running under Apache with PCGI, no ZServer. Nothing special for dynamic linking... Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From itamars@ibm.net Thu Mar 2 12:18:38 2000 From: itamars@ibm.net (Itamar Shtull-Trauring) Date: Thu, 02 Mar 2000 14:18:38 +0200 Subject: [Zope] Re: HTML-Site Import References: Message-ID: <38BE5C1E.2310A351@ibm.net> Oleg Broytmann wrote: > > 2) file names are used as the DTML document Id e.g. index.html > > It seems to me, that index_html is the default DTML document within a > > Zope directory. > > Can or should I change it to index.html? And where? > > You don't need to. Just create DTML Methtod index_html and put > in it. That's all. Or use CVS load_site which has a -I feature that for every index.html creates an appropriate index_html. -- -= This is NOT a pyramid scheme =- The SNAFU Principle: True communication is possible only between equals Itamar S.T. itamars@ibm.net From tony.mcdonald@ncl.ac.uk Thu Mar 2 12:19:15 2000 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 2 Mar 2000 12:19:15 +0000 Subject: [Zope] Options for handling concurrency? In-Reply-To: <613145F79272D211914B0020AFF640194294F6@gandalf.digicool.com> References: <613145F79272D211914B0020AFF640194294F6@gandalf.digicool.com> Message-ID: At 11:29 am -0500 29/2/00, Martijn Pieters wrote: > > So, I'm *not* calling ZSQL methods from an External method, I'm using >> direct connections to the database using Python libraries. Obviously, >> I lose a lot of Zope goodies here, but I really need that speedup... > >So, if I understand you correctly, your EM's call query on the DA object >itself, not using the ZSQL Methods. Then you have no cache whatsoever on >those queries. Is there no way you can use a ZSQL Method here anyway? >Just a self.nameOfZSQLMethod(arguments) might speed things up here. Apologies for the late reply - flu :( Yes. I create a DBH in an EM and fire away. All I get from the Zope system is a request of the form http://supercascade?root_id=240551 and I start to do my queries. They are nested in the EM to 9 levels deep (but normally the first 4 levels are enough to get all the nodes of the tree with the relevant root_id). Getting the list of nodes is quite fast, about 0.8 seconds. Then I have to render them. I've got that down by a factor of ten (since this thread has started in actual fact!) I've also found out just how fast a cached ZSQL method can be - one DMTL method that used query took 3.2 seconds on the first render, and 0.06 seconds on subsequent renders. Obviously some more work needs to be done in this area and I'm looking into that. I'm also told that our MySQL server itself does some caching ... looking into that. >Also, I don't know how your recursive query will work within the one >thread of a HTTP request. Ah, I hadn't thought of that...my query isn't recursive however. >What python libraries do you use? MySQL (MySQLmodule-1.4), DocumentTemplate and from Acquisition,Implicit in the main. thanks for the thoughts Martijn, Tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From ws@gmd.de Thu Mar 2 12:24:46 2000 From: ws@gmd.de (Wolfgang Strobl) Date: Thu, 2 Mar 2000 13:24:46 +0100 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> Message-ID: <200003021224.NAA23803@mail.gmd.de> 0100,0100,0100On 1 Mar 00, 21:42 Martijn Pieters wrote: 7F00,0000,0000> From: "Thomas Weiner" < > > Am I the only one whose bobo_modification_time started today with > > /2000/2/29 instead of /2000/03/01? > > > > I create a new method Time_now: > > > > <<
> > < > > > > and the Output is: > > > > 2000/03/01 18:30:21.091 GMT+1 > > 2000/02/29 18:30:5.198 GMT+1 > > > > Same appears in my Undo Log (February, 29th started again today) and > > so on. > > 1: What is your timezone setting. It could be that dates are displayed > in a different timezone.
As it says. GMT+1, obviously 7F00,0000,0000> 2: If you do your test from a DTML Method, you'll be shown the > modification date of the container it is called on. For an > explanation, see: > 7F00,0000,0000> http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo That remark is misleading, as a simple experiment could have shown easily :-( dtml-var standard_html_header> <

<<

<

This is the < Document. <

<<
< <
<<
<7F00,0000,0000 renders as 0100,0100,0100Times New Romany2bug This is the y2kbug Document. 2000/03/02 13:22:14.766 GMT+1 2000/03/01 13:22:13.565 GMT+1  2000/03/02 13:22:14.766 GMT+1
Arialwhen I use "change" and "view" in succession, on that document. -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________ From chrisw@nipltd.com Thu Mar 2 12:31:52 2000 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 02 Mar 2000 12:31:52 +0000 Subject: [Zope] bobobase_modification_time one day back? References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> <200003021200.NAA21225@rztsun.rz.tu-harburg.de> <005f01bf8440$3f155800$21172ed5@arnhem.chello.nl> Message-ID: <38BE5F38.E6A2AA4D@nipltd.com> Dunno if this is related or not, but I got some really weird errors yesterday when trying to view some images I had created in Zope on the 29th. All I was trying to do was view them using the image's view tab and I got a Zope error. Something about an invalid datetime stamp I think but try simulating it yourself if you want the exact answer... They also appeared as broken images when I included them on pages using so, Zope doesn't like leap years? ;-) Chris Martijn Pieters wrote: > > From: "Thomas Weiner" > > > The best test is creating a DTML _Document_ (not a Method!), with the > > > contents: > > > > > > Modified:
> > > Current time:
> > > > Okay, my code was unclear in the example (though with a new created > > method the modification time of the container should have changed too:), > > but I'm quite sure, it's a bug. > > Uuuhhhmmm.. > > I just tested this myself. Here's my output: > > Modified: 2000/03/01 13:06:16.05 GMT+1 > Current time: 2000/03/02 13:06:17.86 GMT+1 > > Heh. One day off. And so is the Undo log. > > My apologies for my unduly applied sceptisism. I'll go and hide now, and > investigate. > > Martijn Pieters > | Software Engineer mailto:mj@digicool.com > | Digital Creations http://www.digicool.com/ > | Creators of Zope http://www.zope.org/ > | The Open Source Web Application Server > --------------------------------------------- > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From duncan@rcp.co.uk Thu Mar 2 12:38:30 2000 From: duncan@rcp.co.uk (Duncan Booth) Date: Thu, 2 Mar 2000 12:38:30 +0000 Subject: [Zope] Patch to ZODBCDA Message-ID: <38BE60C6.11098.1043AC9D@localhost> A little while back I uploaded a patch to the ODBC Database Adaptor which (I claimed) fixed the Test tab on the management screens. Indeed it did, but unfortunately it broke a host of other things. Anyone who downloaded the patch the first time around may be interested to know that there is a revised version at http://www.zope.org/Members/Duncan/zodbcda_patch -- Duncan Booth duncan@dales.rmplc.co.uk int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan From Jatwood@bwanazulia.com Thu Mar 2 13:13:25 2000 From: Jatwood@bwanazulia.com (Jatwood@bwanazulia.com) Date: Thu, 2 Mar 2000 08:13:25 -0500 Subject: [Zope] SQL Methods being called more than once In-Reply-To: <38BE5FB6.9EFCCE4C@open.ac.uk> References: <38BE5FB6.9EFCCE4C@open.ac.uk> Message-ID: I have a page that has the same SQL Method called a few times.... Do some stuff Do some more stuff Do some more stuff Does anyone know the inner working well enough to tell me whether or not Zope actually makes two separate calls to the database or whether it makes one caches it and uses the results twice? If you know and would like to expand on how Zope deals with caching SQL data that would be great I am trying to optimize my Zope installation and don't want to tax the database. Thanks, JMA From lfalse@cs.rutgers.edu Thu Mar 2 13:29:25 2000 From: lfalse@cs.rutgers.edu (Stefan Langerman) Date: Thu, 02 Mar 2000 08:29:25 -0500 Subject: [Zope] dtml-raise types? References: <200003020940.BAA04419@zope.codeit.com> Message-ID: <38BE6CB1.B14F3C7F@cs.rutgers.edu> Hi, Can anyone tell me what are the predefined error types for the tag, and how to use them? The DTML manual talks about "Unauthorized", and "Redirect", but doesn't give any details. I haven't found how to use "Redirect" so far. Thanks, Stefan. From chrisw@nipltd.com Thu Mar 2 13:44:21 2000 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 02 Mar 2000 13:44:21 +0000 Subject: [Zope] dtml-raise types? References: <200003020940.BAA04419@zope.codeit.com> <38BE6CB1.B14F3C7F@cs.rutgers.edu> Message-ID: <38BE7035.BB2721C6@nipltd.com> Dunno about raise, but if you want to do a redirect, try (untested,YMMV,etc) cheers, Chris Stefan Langerman wrote: > > Hi, > > Can anyone tell me what are the predefined error types > for the tag, and how to use them? > The DTML manual talks about "Unauthorized", and > "Redirect", but doesn't give any details. I haven't found > how to use "Redirect" so far. > > Thanks, > > Stefan. > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From ws@gmd.de Thu Mar 2 13:51:35 2000 From: ws@gmd.de (Wolfgang Strobl) Date: Thu, 2 Mar 2000 14:51:35 +0100 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: <200003021224.NAA23803@mail.gmd.de> References: <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> Message-ID: <200003021351.OAA27504@mail.gmd.de> Function TimeStamp_yad(int y) in zope-2.1.4-src\lib\python\zodb\TimeStamp.c expects a 1900 based year (i.e. 0 = 1900, 2000=100, etc.), for positive agruments, when computing (y+300)/400. TimeStamp_abst(int y, int mo, int d, int m, int s) seems to expect a 0 based year, on the other hand. l = y%4==0 && (y%100 != 0 || y%400==0) But it gets called with a 1900 based year in line 290 in function TimeStamp_timeTime( TimeStamp_abst(TimeStamp_y-1900, TimeStamp_m- 1, TimeStamp_d-1, -- o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394 /\ * GMD mbH #include _`\ `_<=== Schloss Birlinghoven, __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________ From a.k.heath@open.ac.uk Thu Mar 2 14:57:28 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Thu, 02 Mar 2000 14:57:28 +0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> Message-ID: <38BE8158.B2CC120A@open.ac.uk> Phil, nope. Doesn't find the property called rubbish. Baffled. Perhaps its an architecure-related bug - I'm running on Linux, what box are you on? Other ideas? Andy > Try this: > > > > > > Works for me 8Ź) > > Phil > phil.harris@zope.co.uk > > ----- Original Message ----- > From: "Andy Heath" > To: > Sent: 01 March 2000 13:27 > Subject: [Zope] tree and dtml-with only not working for me > > > There's something funny about this tree tag. > > > > When this code is inside a tree tag it doesn't > > prevent acquisition. > > > > Code > > ---- > > > > > > > > > > What do I need to do to make this work - should it be > > this.somethingOrOther? > > > > Also, anyone suggest what X I could put in > > > > to enable me to see something to help me figure out > > what goes on with these namespace things > > > > Andy > > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > > > > > > -- > > ------------------------------------------------- > > Andy Heath a.k.heath@open.ac.uk > > The Open University +44 (0) 114 2885738 > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From jwh@allencreek.com Thu Mar 2 14:13:54 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 09:13:54 -0500 Subject: [Zope] Dealing with Dictionaries In-Reply-To: <004d01bf83f7$50a2cab0$8400a8c0@mozart> References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> <4.2.2.20000301172344.00bab320@mail.ic.net> Message-ID: <4.2.2.20000302091042.00b9b2e0@mail.ic.net> At 09:27 PM 3/1/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > > > > > > I get an "AttributeError" on "keys". > >Hmm. Somehow you aren't getting a dictionary, then. It's hard to tell from >just what you've posted where it's going astray. Are you dtml-return-ing a >literal dict as in your initial posting? How is dictionaryVariableName set? Here's what I've got. First, I have a DTMLMethod named creditCardsAccepted which is defined as follows: I then have a method called creditCardSelections which is defined as follows: (I also tried ) When I try to "view" my creditCardSelections, I get the attribute error on 'keys'. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From evan@4-am.com Thu Mar 2 14:21:25 2000 From: evan@4-am.com (Evan Simpson) Date: Thu, 2 Mar 2000 08:21:25 -0600 Subject: [Zope] Dealing with Dictionaries References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com><4.2.2.20000301172344.00bab320@mail.ic.net> <4.2.2.20000302091042.00b9b2e0@mail.ic.net> Message-ID: <001401bf8452$a9e253b0$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > Here's what I've got. First, I have a DTMLMethod named creditCardsAccepted > I then have a method called creditCardSelections which is defined as follows: > > Try Cheers, Evan @ 4-am & digicool From jwh@allencreek.com Thu Mar 2 14:33:42 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 09:33:42 -0500 Subject: [Zope] Dealing with Dictionaries In-Reply-To: <001401bf8452$a9e253b0$8400a8c0@mozart> References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> <4.2.2.20000301172344.00bab320@mail.ic.net> <4.2.2.20000302091042.00b9b2e0@mail.ic.net> Message-ID: <4.2.2.20000302093215.00b9b1b0@mail.ic.net> At 08:21 AM 3/2/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > Here's what I've got. First, I have a DTMLMethod named >creditCardsAccepted > > > I then have a method called creditCardSelections which is defined as >follows: > > > > > >Try Just tried that, same results (keys error). (BTW, there was a typo in my message describing the dictionary I was returning. The typo existed only in the e-mail, not in the actual code) James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From Ingo.Assenmacher@post.rwth-aachen.de Thu Mar 2 13:39:42 2000 From: Ingo.Assenmacher@post.rwth-aachen.de (ingo) Date: Thu, 2 Mar 2000 14:39:42 +0100 Subject: [Zope] Subclassing User Message-ID: <200003021337.OAA05522@OSKAR.ingo.net> Hi! Can anybody tell me anything about subclassing a UserObject? I have had some neat errors (including seg-faults and indefinite loops by just subclassing a ZClass from User Object) When I tried to insantiate a Subclass of UserObject Zope quit. (I did not change anything to the default constructors and expected something like "missing argument", but not an indefinite loop :) I am using Zope 2.1.4 on Linux/x86 (2.2.13) Thanks. Regards, Ingo. From jwh@allencreek.com Thu Mar 2 14:40:28 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 09:40:28 -0500 Subject: [Zope] Dealing with Dictionaries In-Reply-To: <001401bf8452$a9e253b0$8400a8c0@mozart> References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com> <4.2.2.20000301172344.00bab320@mail.ic.net> <4.2.2.20000302091042.00b9b2e0@mail.ic.net> Message-ID: <4.2.2.20000302093444.00b86260@mail.ic.net> At 08:21 AM 3/2/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > Here's what I've got. First, I have a DTMLMethod named >creditCardsAccepted > > > I then have a method called creditCardSelections which is defined as >follows: > > > > > >Try Followup, I just realized that I had two definitions of "creditCardsAccepted". One was defined inside my ZClass, and one was defined in the folder containing the ZClass. The one in the container was just answering a list. When I changed that one to answer a dictionary things worked. I then simply deleted the DTMLMethod in the containing folder and now I get a name error. Now I'm really confused. After deleting the higher level method, I now have the creditCardsAccepted and the creditCardSelections both in the same folder. It seems, however, that the creditCardSelections cannot see the sibling method. I'm clearly overlooking something. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From phil.harris@zope.co.uk Thu Mar 2 14:21:08 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 2 Mar 2000 14:21:08 -0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> Message-ID: <01cb01bf8458$ebed01f0$5c773fc1@media1> Andy, Do all of the objects have a property 'rubbish'? Try something like: No Rubbish This should check that the rubbish property exists and change what gets rendered depending on that. HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Andy Heath" To: "Phil Harris" Cc: Sent: Thursday, March 02, 2000 2:57 PM Subject: Re: [Zope] tree and dtml-with only not working for me > Phil, > nope. Doesn't find the property called rubbish. > > Baffled. > Perhaps its an architecure-related bug - > I'm running on Linux, what box > are you on? > > Other ideas? > > Andy > > > Try this: > > > > > > > > > > > > Works for me 8Ź) > > > > Phil > > phil.harris@zope.co.uk > > > > ----- Original Message ----- > > From: "Andy Heath" > > To: > > Sent: 01 March 2000 13:27 > > Subject: [Zope] tree and dtml-with only not working for me > > > > > There's something funny about this tree tag. > > > > > > When this code is inside a tree tag it doesn't > > > prevent acquisition. > > > > > > Code > > > ---- > > > > > > > > > > > > > > > What do I need to do to make this work - should it be > > > this.somethingOrOther? > > > > > > Also, anyone suggest what X I could put in > > > > > > to enable me to see something to help me figure out > > > what goes on with these namespace things > > > > > > Andy > > > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > > > > > > > > > > > -- > > > ------------------------------------------------- > > > Andy Heath a.k.heath@open.ac.uk > > > The Open University +44 (0) 114 2885738 > > > > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > http://lists.zope.org/mailman/listinfo/zope > > > ** No cross posts or HTML encoding! ** > > > (Related lists - > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > -- > ------------------------------------------------- > Andy Heath a.k.heath@open.ac.uk > The Open University +44 (0) 114 2885738 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From phil.harris@zope.co.uk Thu Mar 2 13:27:54 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 2 Mar 2000 13:27:54 -0000 Subject: [Zope] SQL Methods being called more than once References: <38BE5FB6.9EFCCE4C@open.ac.uk> Message-ID: <01ca01bf8458$e9621150$5c773fc1@media1> J, In the advanced tab on the edit page of a SQL Method there is a entry box for caching information. You could start by looking there. HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: To: Sent: Thursday, March 02, 2000 1:13 PM Subject: [Zope] SQL Methods being called more than once > I have a page that has the same SQL Method called a few times.... > > > Do some stuff > > > > > Do some more stuff > > > > > Do some more stuff > > > > Does anyone know the inner working well enough to tell me whether or > not Zope actually makes two separate calls to the database or whether > it makes one caches it and uses the results twice? > > If you know and would like to expand on how Zope deals with caching > SQL data that would be great I am trying to optimize my Zope > installation and don't want to tax the database. > > Thanks, > JMA > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From a.k.heath@open.ac.uk Thu Mar 2 16:58:04 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Thu, 02 Mar 2000 16:58:04 +0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> Message-ID: <38BE9D9C.38B729E9@open.ac.uk> Phil, > Do all of the objects have a property 'rubbish'? No, only some of them. The problem goes away if I make sure that every object has some value for this property but that's not a good solution. The code you suggest (the dtml-if ...) is exactly what I intended but on my system (Linux slackware 7 + zope 2.1.4) it finds higher level rubbish properties. Actually its not really called rubbish, that's just what I was using to check it worked before using it. It simply doesn't work - if it works for you lets find out what's different. Are you on a windows platform? What Zope version? Just to restate the problem for new readers:- The problem is to use "dtml-with X only" inside a tree rendering so as to be able to test whether the current object has some specific property. The code works outside trees but used in a tree it still seems to find properties by acquisition. > Try something like: > > > No Rubbish > This code finds "rubbish" at higher acquisition levels. I know it shouldn't but it does. Anyone throw any light on it? > > This should check that the rubbish property exists and change what gets > rendered depending on that. > > HTH > > Phil > phil.harris@zope.co.uk > ----- Original Message ----- > From: "Andy Heath" > To: "Phil Harris" > Cc: > Sent: Thursday, March 02, 2000 2:57 PM > Subject: Re: [Zope] tree and dtml-with only not working for me > > > Phil, > > nope. Doesn't find the property called rubbish. > > > > Baffled. > > Perhaps its an architecure-related bug - > > I'm running on Linux, what box > > are you on? > > > > Other ideas? > > > > Andy > > > > > Try this: > > > > > > > > > > > > > > > > > > Works for me 8Ź) > > > > > > Phil > > > phil.harris@zope.co.uk > > > > > > ----- Original Message ----- > > > From: "Andy Heath" > > > To: > > > Sent: 01 March 2000 13:27 > > > Subject: [Zope] tree and dtml-with only not working for me > > > > > > > There's something funny about this tree tag. > > > > > > > > When this code is inside a tree tag it doesn't > > > > prevent acquisition. > > > > > > > > Code > > > > ---- > > > > > > > > > > > > > > > > > > > > What do I need to do to make this work - should it be > > > > this.somethingOrOther? > > > > > > > > Also, anyone suggest what X I could put in > > > > > > > > to enable me to see something to help me figure out > > > > what goes on with these namespace things > > > > > > > > Andy > > > > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > > > > > > > > > > > > > > > > -- > > > > ------------------------------------------------- > > > > Andy Heath a.k.heath@open.ac.uk > > > > The Open University +44 (0) 114 2885738 > > > > > > > > > > > > _______________________________________________ > > > > Zope maillist - Zope@zope.org > > > > http://lists.zope.org/mailman/listinfo/zope > > > > ** No cross posts or HTML encoding! ** > > > > (Related lists - > > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > -- > > ------------------------------------------------- > > Andy Heath a.k.heath@open.ac.uk > > The Open University +44 (0) 114 2885738 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From phil.harris@zope.co.uk Thu Mar 2 16:19:49 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 2 Mar 2000 16:19:49 -0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> Message-ID: <01dd01bf8463$22f12140$5c773fc1@media1> Andy, Hmm, I'm confused. I use this 'trick' all the time, here's a bit of code from a method of mine: Which works beautifully. Hmmm confusion reigns!??! Phil ----- Original Message ----- From: "Andy Heath" To: "Phil Harris" Cc: "zope" Sent: Thursday, March 02, 2000 4:58 PM Subject: Re: [Zope] tree and dtml-with only not working for me > Phil, > > > Do all of the objects have a property 'rubbish'? > > No, only some of them. The problem goes away if > I make sure that every object has some value for > this property but that's not a good solution. The > code you suggest (the dtml-if ...) is exactly what I intended > but on my system (Linux slackware 7 + zope 2.1.4) it finds > higher level rubbish properties. Actually its not really > called rubbish, that's just what I was using to check > it worked before using it. > > It simply doesn't work - if it works for you lets find > out what's different. Are you on a windows platform? > What Zope version? > > Just to restate the problem for new readers:- > > The problem is to use "dtml-with X only" inside a tree rendering > so as to be able to test whether the current object > has some specific property. The code works outside trees but > used in a tree it still seems to find properties by > acquisition. > > > > Try something like: > > > > > > No Rubbish > > > > > This code finds "rubbish" at higher acquisition levels. I know it > shouldn't but it does. Anyone throw any light on it? > > > > > > This should check that the rubbish property exists and change what gets > > rendered depending on that. > > > > HTH > > > > Phil > > phil.harris@zope.co.uk > > ----- Original Message ----- > > From: "Andy Heath" > > To: "Phil Harris" > > Cc: > > Sent: Thursday, March 02, 2000 2:57 PM > > Subject: Re: [Zope] tree and dtml-with only not working for me > > > > > Phil, > > > nope. Doesn't find the property called rubbish. > > > > > > Baffled. > > > Perhaps its an architecure-related bug - > > > I'm running on Linux, what box > > > are you on? > > > > > > Other ideas? > > > > > > Andy > > > > > > > Try this: > > > > > > > > > > > > > > > > > > > > > > > > Works for me 8Ź) > > > > > > > > Phil > > > > phil.harris@zope.co.uk > > > > > > > > ----- Original Message ----- > > > > From: "Andy Heath" > > > > To: > > > > Sent: 01 March 2000 13:27 > > > > Subject: [Zope] tree and dtml-with only not working for me > > > > > > > > > There's something funny about this tree tag. > > > > > > > > > > When this code is inside a tree tag it doesn't > > > > > prevent acquisition. > > > > > > > > > > Code > > > > > ---- > > > > > > > > > > > > > > > > > > > > > > > > > What do I need to do to make this work - should it be > > > > > this.somethingOrOther? > > > > > > > > > > Also, anyone suggest what X I could put in > > > > > > > > > > to enable me to see something to help me figure out > > > > > what goes on with these namespace things > > > > > > > > > > Andy > > > > > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > ------------------------------------------------- > > > > > Andy Heath a.k.heath@open.ac.uk > > > > > The Open University +44 (0) 114 2885738 > > > > > > > > > > > > > > > _______________________________________________ > > > > > Zope maillist - Zope@zope.org > > > > > http://lists.zope.org/mailman/listinfo/zope > > > > > ** No cross posts or HTML encoding! ** > > > > > (Related lists - > > > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > > > > -- > > > ------------------------------------------------- > > > Andy Heath a.k.heath@open.ac.uk > > > The Open University +44 (0) 114 2885738 > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > http://lists.zope.org/mailman/listinfo/zope > > > ** No cross posts or HTML encoding! ** > > > (Related lists - > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > -- > ------------------------------------------------- > Andy Heath a.k.heath@open.ac.uk > The Open University +44 (0) 114 2885738 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From tino@wildenhain.de Thu Mar 2 16:25:50 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 02 Mar 2000 17:25:50 +0100 Subject: [Zope] urgent! help! strange blockings Message-ID: <38BE960E.32E0F12E@wildenhain.de> Hello, I cannot get ride of those strange blockings of zope. This happens from time to time and leads some times to minutes without action from Zope. I increased threads pool and decreased it, I use a much bigger object cache (memory is not an issue on the machine) and I pured the database (with help of an extra machine) Zope stucks with about 18% processor use and does almost nothing at the moment. Any posibility for an dead-lock? Help is very appreciated! Configuration: Zope 2.1.4, ZODBC, Database-Size: 66MB (after purify) Some sessions with unsafed work, 50 threads for pool, NT 4.0 (ok, this sux, but we have to use ODBC with strange Databases) Tino Wildenhain From tony.mcdonald@ncl.ac.uk Thu Mar 2 16:14:56 2000 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Thu, 2 Mar 2000 16:14:56 +0000 Subject: [Zope] SQL Methods being called more than once In-Reply-To: References: <38BE5FB6.9EFCCE4C@open.ac.uk> Message-ID: At 8:13 am -0500 2/3/00, Jatwood@bwanazulia.com wrote: >I have a page that has the same SQL Method called a few times.... > > >Do some stuff > > > > >Do some more stuff > > > > >Do some more stuff > > > >Does anyone know the inner working well enough to tell me whether or >not Zope actually makes two separate calls to the database or >whether it makes one caches it and uses the results twice? > >If you know and would like to expand on how Zope deals with caching >SQL data that would be great I am trying to optimize my Zope >installation and don't want to tax the database. > I posted a message about this this morning. In effect, yes you can use caching and it is veery fast (one second and subsequent renders). For your document, I think you'll find it will speed up by a factor of how many times the ZSQL method is called... tone. ps it's the 'Advanced' tag. Put something in the 'cache results for n seconds' box ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From phil.harris@zope.co.uk Thu Mar 2 16:25:03 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Thu, 2 Mar 2000 16:25:03 -0000 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> Message-ID: <01e101bf8463$ded14a70$5c773fc1@media1> Andy, I sent before reading all your mail. This technique works on NT and a Linux box both running 2.1.4. Hmmm ----- Original Message ----- From: "Andy Heath" To: "Phil Harris" Cc: "zope" Sent: Thursday, March 02, 2000 4:58 PM Subject: Re: [Zope] tree and dtml-with only not working for me > Phil, > > > Do all of the objects have a property 'rubbish'? > > No, only some of them. The problem goes away if > I make sure that every object has some value for > this property but that's not a good solution. The > code you suggest (the dtml-if ...) is exactly what I intended > but on my system (Linux slackware 7 + zope 2.1.4) it finds > higher level rubbish properties. Actually its not really > called rubbish, that's just what I was using to check > it worked before using it. > > It simply doesn't work - if it works for you lets find > out what's different. Are you on a windows platform? > What Zope version? > > Just to restate the problem for new readers:- > > The problem is to use "dtml-with X only" inside a tree rendering > so as to be able to test whether the current object > has some specific property. The code works outside trees but > used in a tree it still seems to find properties by > acquisition. > > > > Try something like: > > > > > > No Rubbish > > > > > This code finds "rubbish" at higher acquisition levels. I know it > shouldn't but it does. Anyone throw any light on it? > > > > > > This should check that the rubbish property exists and change what gets > > rendered depending on that. > > > > HTH > > > > Phil > > phil.harris@zope.co.uk > > ----- Original Message ----- > > From: "Andy Heath" > > To: "Phil Harris" > > Cc: > > Sent: Thursday, March 02, 2000 2:57 PM > > Subject: Re: [Zope] tree and dtml-with only not working for me > > > > > Phil, > > > nope. Doesn't find the property called rubbish. > > > > > > Baffled. > > > Perhaps its an architecure-related bug - > > > I'm running on Linux, what box > > > are you on? > > > > > > Other ideas? > > > > > > Andy > > > > > > > Try this: > > > > > > > > > > > > > > > > > > > > > > > > Works for me 8Ź) > > > > > > > > Phil > > > > phil.harris@zope.co.uk > > > > > > > > ----- Original Message ----- > > > > From: "Andy Heath" > > > > To: > > > > Sent: 01 March 2000 13:27 > > > > Subject: [Zope] tree and dtml-with only not working for me > > > > > > > > > There's something funny about this tree tag. > > > > > > > > > > When this code is inside a tree tag it doesn't > > > > > prevent acquisition. > > > > > > > > > > Code > > > > > ---- > > > > > > > > > > > > > > > > > > > > > > > > > What do I need to do to make this work - should it be > > > > > this.somethingOrOther? > > > > > > > > > > Also, anyone suggest what X I could put in > > > > > > > > > > to enable me to see something to help me figure out > > > > > what goes on with these namespace things > > > > > > > > > > Andy > > > > > Full code for the tree below > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > () > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > ------------------------------------------------- > > > > > Andy Heath a.k.heath@open.ac.uk > > > > > The Open University +44 (0) 114 2885738 > > > > > > > > > > > > > > > _______________________________________________ > > > > > Zope maillist - Zope@zope.org > > > > > http://lists.zope.org/mailman/listinfo/zope > > > > > ** No cross posts or HTML encoding! ** > > > > > (Related lists - > > > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > > > > -- > > > ------------------------------------------------- > > > Andy Heath a.k.heath@open.ac.uk > > > The Open University +44 (0) 114 2885738 > > > > > > _______________________________________________ > > > Zope maillist - Zope@zope.org > > > http://lists.zope.org/mailman/listinfo/zope > > > ** No cross posts or HTML encoding! ** > > > (Related lists - > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > -- > ------------------------------------------------- > Andy Heath a.k.heath@open.ac.uk > The Open University +44 (0) 114 2885738 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From jwh@allencreek.com Thu Mar 2 16:31:15 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 11:31:15 -0500 Subject: [Zope] Advanced DTML Question In-Reply-To: <002b01bf83c9$c7d08560$8400a8c0@mozart> References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> Message-ID: <4.2.2.20000302112421.00b9f3f0@mail.ic.net> At 04:01 PM 3/1/00 -0600, Evan Simpson wrote: >----- Original Message ----- >From: James W. Howe > > of my dtml-in loop which gets the first letter from the current entry, > > checks to see if an anchor for that letter has been written, if not, a new > > anchor tag is inserted into the stream. My problem is I don't really know > >Quick, possibly misleading idea: if you can give your Catalog entries a >brain class with a function "anchorGroup" which returns the first letter of >the entry, then you can use name="&dtml-anchorGroup;"> I've tried to do something like you suggested, but it doesn't seem to work. I'm probably not doing things quite correctly. I've added a "getAnchorCharacter" method to my ZClass which correctly answers the character I want to use as an anchor. I've tested this and know that it works. I tried using " ...", but got no result. Could you explain a bit more about how something like "sequence-first-xxx" works? I haven't found any information on this form of a dtml-in variable. Perhaps I'm just misunderstanding your solution. In thinking about this solution, it seems that if I'm inside of a dtml-in iterating over entries in a Catalog, the objects known to the "dtml-in" aren't instances of my ZClass, but instances of some catalogging wrapper for my ZClass. Therefore, it would seem that my getAnchorCharacter method wouldn't be accessible from within the dtml-in, but only from within a dtml-with which sets the object to be the object referenced by the catalog entry. Can you clarify all this? Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From weiner@tu-harburg.de Thu Mar 2 16:51:50 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Thu, 02 Mar 2000 17:51:50 +0100 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> Message-ID: <200003021650.RAA09714@rztsun.rz.tu-harburg.de> Andy Heath schrieb: > > Phil, > > This code finds "rubbish" at higher acquisition levels. I know it > shouldn't but it does. Anyone throw any light on it? No light, no solution, only a bad workaround: # your tree code ... temp_rubbish"> ... hth, Thomas From evan@4-am.com Thu Mar 2 17:15:34 2000 From: evan@4-am.com (Evan Simpson) Date: Thu, 2 Mar 2000 11:15:34 -0600 Subject: [Zope] Advanced DTML Question References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> <4.2.2.20000302112421.00b9f3f0@mail.ic.net> Message-ID: <000e01bf846a$fe2635a0$8400a8c0@mozart> ----- Original Message ----- From: James W. Howe > I've tried to do something like you suggested, but it doesn't seem to > work. I'm probably not doing things quite correctly. I've added a > "getAnchorCharacter" method to my ZClass which correctly answers the > character I want to use as an anchor. I've tested this and know that it > works. I tried using " ...", > but got no result. Could you explain a bit more about how something like > "sequence-first-xxx" works? I haven't found any information on this form > of a dtml-in variable. Perhaps I'm just misunderstanding your solution. Check the Grouping Variables subsection of http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.8.html I did give you the wrong syntax; it's , with no "sequence-". > In thinking about this solution, it seems that if I'm inside of a dtml-in > iterating over entries in a Catalog, the objects known to the "dtml-in" > aren't instances of my ZClass, but instances of some catalogging wrapper > for my ZClass. Therefore, it would seem that my getAnchorCharacter method > wouldn't be accessible from within the dtml-in, but only from within a > dtml-with which sets the object to be the object referenced by the catalog > entry. I misunderstood you. The catalog wrapper is the "brain" which needs to have the getAnchorCharacter method. But... Suppose you add getAnchorCharacter as a catalogued meta_type in your Catalog? I think that would work. Cheers, Evan @ 4-am & digicool From jiva@devware.com Thu Mar 2 17:52:57 2000 From: jiva@devware.com (jiva@devware.com) Date: Thu, 2 Mar 2000 10:52:57 -0700 Subject: [Zope] ZOPE! I HATE YOU! Message-ID: <20000302105256.A23108@devware.com> It used to be that I was so open minded when it came to web technologies. I used to say "Oh yeah, pick whatever you want, we can do it in that." I used to say "No problem! We can use your scripting technology! It's just as good as any other." And I would, and they would, and we did. And we'd all stand around and say "Yeah man... that's cool." And then Zope entered my life. And NOW I simply can't think of virtually any project that Zope wouldn't do a better job of serving than those *other* technologies. It's very frustrating when every time you see a project you think "Oh, Zope would make that SO much easier!" Especially any time someone mentions the word "Database" and "Web" in close proximity. The truly frustrating part is staying focused on the problem-space when you have such a fun technology to play with. Now in some ways I'll admit, this is an exaggeration. Obviously, there ARE lots of cases when Zope isn't appropriate, but I just wanted to shout out a big thanks for developing such an awesome system that makes developing apps so easy to do. Now if I could just get my mind off of it's possibilities long enough to evaluate those OTHER technologies objectively, then I'd be in good shape. ;D -- Juall's Law on Nice Guys: Nice guys don't always finish last; sometimes they don't finish. Sometimes they don't even get a chance to start! From akuchlin@mems-exchange.org Thu Mar 2 17:16:44 2000 From: akuchlin@mems-exchange.org (Andrew M. Kuchling) Date: Thu, 2 Mar 2000 12:16:44 -0500 (EST) Subject: [Zope] Oedipus 0.06 released Message-ID: <200003021716.MAA27689@amarok.cnri.reston.va.us> I've made a new release of Oedipus, a Python package for presenting data from the Open Directory Project. http://www.mems-exchange.org/software/python/oedipus/ In v0.06, The improvements to the ODP code itself are pretty minor. The major milestone is that, after some diligent sleuthing, Jean-Claude Wippler tracked down an obscure bug in MetaKit that I was tripping over. A patch for MetaKit 2.0 is included in Oedipus 0.06, so for the first time you can actually handle a complete ODP dump. You'd better have 400Mb of disk space for the resulting data file, though, plus 500Mb for the source XML files, plus 4-5 hours of processing time (at least on a 550MHz Linux box). The exported ZClass product still doesn't seem to work, though; if you untar it in a new Zope installation, no Product is added when you start up Zope. Anyone else notice this problem? -- A.M. Kuchling http://starship.python.net/crew/amk/ What on earth is less likely than *two* committees to produce a seamless web of anything but intrigue and deficit? Who said "three committees"? -- Stan Kelly-Bootle, _The Computer Contradictionary_ From paul.browning@bristol.ac.uk Thu Mar 2 17:30:56 2000 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Thu, 2 Mar 2000 17:30:56 +0000 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: <200003020940.BAA04416@zope.codeit.com> References: <200003020940.BAA04416@zope.codeit.com> Message-ID: > Message: 47 > To: "Martijn Pieters" > Cc: "Thomas Weiner" , > Subject: Re: [Zope] bobobase_modification_time one day back? > From: Petr Knapek > Date: 02 Mar 2000 07:59:54 +0100 > > >>>>> On Wed, 1 Mar 2000 21:42:24 +0100, "Martijn Pieters" > said: > Hi all, > I have the same problem. Me too, I think. I haven't investigated this more deeply yet but I noticed that all new News items created since March 1 in the PTK portal I've been playing with get their dates set back to 29 Feb the moment they are modified (by being approved, for example). Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bris.ac.uk URL: http://www.bris.ac.uk/ From ewalstad@energywright.com Thu Mar 2 17:46:13 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Thu, 2 Mar 2000 09:46:13 -0800 Subject: [Zope] Zope stopped working after working once... Message-ID: Hello all - I am unable to connect to my Zope 2. I am running Linux 2.2.14, with Apache I am new to Zope and pretty new to Linux I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" I entered ./start It worked... for a while... until I shutdown... When I restarted, Zope wasn't available. I went back to the Zope directory and tried ./start again but the script seems to lock up after displaying the following: ------ PROBLEM(100) ZServer Computing default hostname ------ INFO(0) Zserver Medusa (V1.13) started at ... Hostname: frankenstein.energywright.com Port:8080 ------ INFO(0) ZServer FTP server starte at ... Authorizer:None Hostname: frankenstein.energywright.com Port:8021 ------ INFO(0) ZServer PCGI server started at ... Unix Socket: /usr/local/Zope/var/pcgi.soc ------ INFO(0) ZServer Monitor Server (V1.5)started on port 8099 When I try to connect to http://192.168.1.100:8080/manage I get a "File does not exist: /home/httpd/html/manage" error in my Apache error_log I was so happy when I got it running, now I'm incredibly frustrated! Please help! I can supply my Apache conf files if necessary... Many Thanks, Eric. From weiner@tu-harburg.de Thu Mar 2 18:08:13 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Thu, 02 Mar 2000 19:08:13 +0100 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> <200003021650.RAA09714@rztsun.rz.tu-harburg.de> Message-ID: <200003021806.TAA13309@rztsun.rz.tu-harburg.de> Thomas Weiner schrieb: > > Andy Heath schrieb: > > > > Phil, > > > > > This code finds "rubbish" at higher acquisition levels. I know it > > shouldn't but it does. Anyone throw any light on it? > > No light, no solution, only a bad workaround: apologies, ignore my pervious posting, try instead: in your tree code. This gives me the expected results. Regards, Thomas From mauricio@hiper.com.br Thu Mar 2 18:55:51 2000 From: mauricio@hiper.com.br (Mauricio Souza Lima) Date: Thu, 2 Mar 2000 15:55:51 -0300 Subject: [Zope] bobobase_modification_time one day back? Message-ID: <011101bf8478$f32826a0$0401000a@polar.hiper.com.br> I do the same example with a DTML Document and the same happens... []'s -----Mensagem original----- De: Martijn Pieters Para: Mauricio Souza Lima Data: Quarta-feira, 1 de Março de 2000 17:58 Assunto: Re: [Zope] bobobase_modification_time one day back? >From: "Mauricio Souza Lima" >> Look here Martin: >> http://www.zope.org/Members/thomasW/test >> How about that? > >It's a DTML Method. > >Martijn Pieters >| Software Engineer mailto:mj@digicool.com >| Digital Creations http://www.digicool.com/ >| Creators of Zope http://www.zope.org/ >| The Open Source Web Application Server >--------------------------------------------- > From bac@ivc.com Thu Mar 2 19:06:10 2000 From: bac@ivc.com (Brad Crittenden) Date: Thu, 2 Mar 2000 14:06:10 -0500 Subject: [Zope] [Newbie] SQL database support on NT Message-ID: Hello All: I'm just beginning to play with zope and really like what I see. No Zen yet but it's coming. The project I'm working on must use NT as the server, much to my displeasure. I need to select a SQL database for the project and need to find one that will work and play well with zope. Searching through the Guides and How-to's has left me a big puzzled. Looking at the "Database Adapter Roadmap", it looks like there isn't a direct adapter for SQLServer. is this correct? Will the Oracle adapter work on NT? If not, is my only choice to use the ODBC adapter? Or the ZJetAdapter for MS-Access (which I don't think would be sufficient for my needs)? Any suggestions for database selection on NT will be appreciated. Thanks, Brad From jerry@spicklemire.com Thu Mar 2 19:23:12 2000 From: jerry@spicklemire.com (Jerry Spicklemire) Date: Thu, 02 Mar 2000 14:23:12 -0500 Subject: [Zope] SQL Methods being called more than once Message-ID: <3.0.6.32.20000302142312.007986d0@spicklemire.com> It looks like you are indeed running the query multiple times. Unless you are changing the data at some point internal to the process, which would require your to "refresh" the results in order to have current data, you could try: Do some stuff Do some more stuff Do even more stuff Youd be "recycling" the result set, and sparing the DB backend. From jwh@allencreek.com Thu Mar 2 19:57:46 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 14:57:46 -0500 Subject: [Zope] Advanced DTML Question In-Reply-To: <000e01bf846a$fe2635a0$8400a8c0@mozart> References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> <4.2.2.20000302112421.00b9f3f0@mail.ic.net> Message-ID: <4.2.2.20000302145642.00b66930@mail.ic.net> At 11:15 AM 3/2/00 -0600, Evan Simpson wrote: >I misunderstood you. The catalog wrapper is the "brain" which needs to have >the getAnchorCharacter method. But... Suppose you add getAnchorCharacter as >a catalogued meta_type in your Catalog? I think that would work. I'll give that a try. If I wanted to add a method to the catalog wrapper, is there a non-invasive way to do this or would I have to modify some standard Zope code to work differently? Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From jsanford@atinucleus.com Thu Mar 2 20:01:21 2000 From: jsanford@atinucleus.com (Jim Sanford) Date: Thu, 2 Mar 2000 14:01:21 -0600 Subject: [Zope] [Newbie] SQL database support on NT References: Message-ID: <013701bf8482$15e669a0$04fea8c0@sanwinmain> We have been running an in house (approxiamately 100 users) contact management and order process site on NT 4.0 for several months now using Visual FoxPro as the back end database (on a different NT machine) via ODBC and have had few problems. The zope machine is a dell P3-400 w/256megs of ram. The db machine is a generic P2-200 with 512megs of ram. They are connected through a 100mbits intelligent switch. However both machines now have dual port 100 mbits cards and we are in the processs of using the extra port on each card to direct connect the 2 machine. Our application is db intensive (every sql method involves at least 1 wrapper call to determine the AUTHENTICATED_USER's access level) Unless there is network congestion and can display an order form (2 frames each the result of 5 to 10 sql methods) in about 2 to 3 seconds. (Response is 3 to 6 times faster via browser and ZOPE than throught the VFP apps that were originallly written to 2 this. ) VFP makes a very fast backend because if you are using only indexed columns and/or expressions the it can determine the record or records entirely from the indexes meaning it never pulls data out of the data file till it knows exactly which records to get. Single record lookups - even with complex queries - are almost instantaneous. __________________________________________________________________ Jim Sanford . Database/Web Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free. __________________________________________________________________ ----- Original Message ----- From: Brad Crittenden To: Sent: Thursday, March 02, 2000 1:06 PM Subject: [Zope] [Newbie] SQL database support on NT Hello All: I'm just beginning to play with zope and really like what I see. No Zen yet but it's coming. The project I'm working on must use NT as the server, much to my displeasure. I need to select a SQL database for the project and need to find one that will work and play well with zope. Searching through the Guides and How-to's has left me a big puzzled. Looking at the "Database Adapter Roadmap", it looks like there isn't a direct adapter for SQLServer. is this correct? Will the Oracle adapter work on NT? If not, is my only choice to use the ODBC adapter? Or the ZJetAdapter for MS-Access (which I don't think would be sufficient for my needs)? Any suggestions for database selection on NT will be appreciated. Thanks, Brad _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From tsarna@endicor.com Thu Mar 2 20:21:25 2000 From: tsarna@endicor.com (Ty Sarna) Date: 2 Mar 2000 20:21:25 GMT Subject: [Zope] Different Login Screens for Management and User? In-Reply-To: <4.2.2.20000229130047.00b88100@saladin.aisys.com> Message-ID: <952028485.643100@fezzik.endicor.com> In article <4.2.2.20000229130047.00b88100@saladin.aisys.com>, James W. Howe wrote: > management team to login and perform management activities. I would like > to present a different login screen (maybe just a basic auth dialog) to > allow access to management functions. I've been playing around a little > with GUF, but I haven't found a way to present two different login screens > based on the type of page being accessed. Is this type of functionality > possible with Zope? Would the LoginManager allow for this sort of thing? LoginManager now has this capability. The loginForm is passed "needroles", the list of roles one would have to have one of to perform the action that prompted the login. Thus you could do: ... member login form ... ... manager login form ... (note that 'Manager' is likely allowed to do both member and manager things, and thus checking "'Manager' in needroles" would be true in either case and not do what you want) From techlists@sltrib.com Thu Mar 2 20:16:14 2000 From: techlists@sltrib.com (Techlists) Date: Thu, 2 Mar 2000 13:16:14 -0700 Subject: [Zope] Extracting Text from both parent/child XMLDocument Objects Message-ID: <00030213213900.20607@dilbert.sltrib.com> I am trying to use XMLDocument to print text in html that has the following XML structure: Copyright 2000, by MyCompany.com, All rights reserved. I want it to print in html:

Copyright, 2000, MyCompany.com, All rights reserved. Any thoughts on the dtml needed to do this kind of DOM traversal that included the text (in linear order) of both parent and child tags? Thanks, Sean -- --Sean D. Upton - Product Development Coordinator --Tribune Solutions - Developers of NewsView Solutions Products --8th Floor, 143 S. Main Street Salt Lake City, Utah 84111 --(801) 257-8816 *** sean@sltrib.com From pavlos@gaaros.com Thu Mar 2 21:03:01 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Thu, 2 Mar 2000 16:03:01 -0500 (EST) Subject: [Zope] Different Login Screens for Management and User? In-Reply-To: <952028485.643100@fezzik.endicor.com> Message-ID: Hmm what is a LoginManager? Is it a product similar to GUF? If yes where can we get it from? I am in need of such a beast so I want to explore the possibilities. Thanks Pavlos On 2 Mar 2000, Ty Sarna wrote: > "needroles", the list of roles one would have to have one of to perform > the action that prompted the login. Thus you could do: > From mtaylor@goldridge.net Thu Mar 2 21:00:05 2000 From: mtaylor@goldridge.net (Monty Taylor) Date: Thu, 02 Mar 2000 21:00:05 +0000 Subject: [Zope] HELP! Oracle Stored Procedures References: <4.3.0.20000224233959.00b04660@jupiter> Message-ID: <38BED655.DF65145@goldridge.net> This is a multi-part message in MIME format. --------------8053B3711AB4EDEDBD654C82 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hey guys. I'm currently in a minor bidding war with the Oracle group here over whether we re-implement some intranet programs in Zope or in Oracle WebDB. I've got them on just about everything, except calling stored procedures. Now, I know that ZOracleDA supports Stored Procedures. So I'm guessing that something like the following would work, but I'll be buggered if I can figure out how. ZOracleDA Connection : oracle_da External Method : find_target(search_string) Oracle Package : Program1 Oracle Procedure : Proc1 def find_target(self, search_string): c=self.oracle_da.cursor() s=self.oracle_da.procedures.Program1.Proc1(search_string,c) return c.fetchall() Am I missing something? I can't even get -- >>> import DCOracle >>> dbh=DCOracle.Connect('user/pass@DB1') >>> c=dbh.cursor() >>> sth=dbh.procedures.pgm1_api.find_target('spam',c) Traceback (innermost last): File "", line 1, in ? File "/usr/share/zope/lib/python/Products/ZOracleDA/DCOracle/ociProc.py", line 324, in __getattr__ raise error, 'no usable procedure named '+name oci.error: no usable procedure named pgm1_api.find_target -- to work. HELP me stave off the Evil Empire ( and my own impending descent into uselessness ) Thanks, Monty Names have been changed to protect the innocent. --------------8053B3711AB4EDEDBD654C82 Content-Type: text/x-vcard; charset=us-ascii; name="mtaylor.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Monty Taylor Content-Disposition: attachment; filename="mtaylor.vcf" begin:vcard n:Taylor;Monty tel;cell:+31 (0)6 200 17486 tel;fax:+31 (0)20 589 5566 tel;work:+31 (0)20 589 5517 x-mozilla-html:TRUE url:http://www.goldridge.net org:Information Innovation adr:;;Amstelveenseweg 88-90;Amsterdam;;1075 XJ;The Netherlands version:2.1 email;internet:mtaylor@goldridge.net title:Information Artist x-mozilla-cpt:;0 fn:Monty Taylor end:vcard --------------8053B3711AB4EDEDBD654C82-- From tjg@avalongroup.net Thu Mar 2 21:26:52 2000 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 02 Mar 2000 13:26:52 -0800 Subject: [Zope] SQLSession and Performance issues Message-ID: <38BEDC9C.734F4754@exceptionalminds.com> Hi all, I have a form on which I am having some interesting performance issues, I think, but am not sure that it is my extensive use of SQLSession variables throughout the form. I have a single page data entry form where almost every field gets stored in the SESSION. This form can take from 9 to 15 seconds to display. When all my other forms take 1 to 3 seconds this is a significant slowdown. I am curious as to what methods may be used to reduce calls to SESSION['varname'], or if I am even barking up the right tree. Thanks. -- Stand Fast, tjg. Chief Technology Officer tjg@exceptionalminds.com Red Hat Certified Engineer www.exceptionalminds.com Avalon Technology Group, Inc. (503) 246-3630 >>>>>>>>>>>>Linux...Because rebooting isn't normal<<<<<<<<<<<< From michel@digicool.com Thu Mar 2 21:34:21 2000 From: michel@digicool.com (Michel Pelletier) Date: Thu, 02 Mar 2000 13:34:21 -0800 Subject: [Zope] directory importation References: Message-ID: <38BEDE5D.149EC94C@digicool.com> Jessica Tishmack wrote: > > Hello, > > I am a first time user of Zope, and have been looking through a lot of > documentation, but can't seem to find an answer to what seems should be > an obvious one...so any help would be appreciated. > > I already have an existing website on a Linux platform, with many many > folders/files...to have to manually add each of these files to > Zope seems very inefficient. How do I import an entire directory into > Zope? > In the 'utilities' directory of Zope there is a tool called load_site.py. It can help you from there. -Michel From garry@sage.att.com Thu Mar 2 20:39:18 2000 From: garry@sage.att.com (Garrett G. Hodgson) Date: Thu, 02 Mar 2000 15:39:18 -0500 Subject: [Zope] help with zodb Message-ID: <38BED176.91C42BAD@sage.att.com> thank you for your help. forgive my being obtuse, but i'm still not getting it. Jeff K. Hoffman jeff.hoffman@goingv.com wrote: > Only one process can access a ZODB at a time. You have two. The first is > Zope, and the second is the external method. ok. by "a ZODB" do you mean that the call in my external method is trying to reopen the ZODB zope is using? i'd assumed i was crating another one, with a separate FileStorage. > You don't need to re-open the ZODB inside your external method. By the > time you've gotten there, Zope already has it open. ok, then how does code in my external method get at that? that is, how do i create an object and stuff it in the DB? all the code examples i've seen follow the pattern in GetPeople(). > AFAIK, you simply need to create an instance of your object and set it as > an attribute of another persistent object. The persistence should happen > automatically. how do i do this? i get the feeling i'm just missing something, perhaps thinking like a python programmer rather than a zope guru. i feel like there's some big obvious point that has escaped me, and i'm waiting for the big "AHA!". so, one more try. given the following external method: import ZODB, ZODB.FileStorage def GetPeople( self ): "Return list of people in DB" db = ZODB.DB( ZODB.FileStorage.FileStorage( 'TestDB.fs' ) ) connection = db.open() root = connection.root() people = [] for key in root.keys(): people.append( root[ key ] ) return people if __name__ == '__main__': for person in GetPeople( None ): print person.name, 'is', person.age, 'years old' referenced from a DTML Method: is years old.
when i restart zope and view the method, it works once, but shows no persons. the second time, it fails with the traceback. what do i change to make it work? thank you for your patience. -- Garry Hodgson Every night garry@sage.att.com a child is born Software Innovation Services is a Holy Night. AT&T Labs - Sophia Lyon Fahs From ewalstad@energywright.com Thu Mar 2 21:52:02 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Thu, 2 Mar 2000 13:52:02 -0800 Subject: [Zope] Install problem, please help... Message-ID: Hello all - I am unable to connect to my Zope 2. I am running Linux 2.2.14, with Apache I am new to Zope and pretty new to Linux I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" I entered ./start It worked... for a while... until I shutdown... When I restarted, Zope wasn't available. I went back to the Zope directory and tried ./start again but the script seems to lock up after displaying the following: ------ PROBLEM(100) ZServer Computing default hostname ------ INFO(0) Zserver Medusa (V1.13) started at ... Hostname: frankenstein.energywright.com Port:8080 ------ INFO(0) ZServer FTP server starte at ... Authorizer:None Hostname: frankenstein.energywright.com Port:8021 ------ INFO(0) ZServer PCGI server started at ... Unix Socket: /usr/local/Zope/var/pcgi.soc ------ INFO(0) ZServer Monitor Server (V1.5)started on port 8099 When I try to connect to http://192.168.1.100:8080/manage I get a "File does not exist: /home/httpd/html/manage" error in my Apache error_log I was so happy when I got it running, now I'm incredibly frustrated! Please help! I can supply my Apache conf files if necessary... Many Thanks, Eric. From Rico.Friedrich@informatik.tu-chemnitz.de Thu Mar 2 21:56:30 2000 From: Rico.Friedrich@informatik.tu-chemnitz.de (Rico Friedrich) Date: Thu, 2 Mar 2000 22:56:30 +0100 (MET) Subject: [Zope] python scripting problem Message-ID: hi, i 've got a problem with the simple HTMLFile. see below. ideas ? from Globals import HTMLFile eval_resultForm=HTMLFile('admin_interface', globals()) def eval_result(self, vars): ... return " work done!!!" make_result() --> ??? Error Type: KeyError Error Value: __name__ what's wrong ? Error Value: No module named gadfly import gadfly doesn't work ??? thank you very much for your help -- Rico From pavlos@gaaros.com Thu Mar 2 22:11:19 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Thu, 2 Mar 2000 17:11:19 -0500 (EST) Subject: [Zope] help with zodb In-Reply-To: <38BED176.91C42BAD@sage.att.com> Message-ID: I have not followed the thread but reading this particular posting, seems to me that you cannot do what you want to do (at least in a straightforward way). Importing ZODB declares all kind of global variables/methods, an important one being get_transaction() which returns the current transaction. So if you do a get-transaction() in your external method which transaction should it return? And how would the two transaction managers interact? Couldn't you just register your root object with the current ZODB (the one Zope is running), by just setting it as an attribute to the root object? Again I have not followed the thread so I may be way off topic. Pavlos On Thu, 2 Mar 2000, Garrett G. Hodgson wrote: > > thank you for your help. forgive my being obtuse, > but i'm still not getting it. > > Jeff K. Hoffman jeff.hoffman@goingv.com wrote: > > > Only one process can access a ZODB at a time. You have two. The first is > > Zope, and the second is the external method. > > ok. by "a ZODB" do you mean that the call in my external method > is trying to reopen the ZODB zope is using? i'd assumed i was > crating another one, with a separate FileStorage. > > > You don't need to re-open the ZODB inside your external method. By the > > time you've gotten there, Zope already has it open. > > ok, then how does code in my external method get at that? > that is, how do i create an object and stuff it in the DB? > all the code examples i've seen follow the pattern in GetPeople(). > > > AFAIK, you simply need to create an instance of your object and set it as > > an attribute of another persistent object. The persistence should happen > > automatically. > > how do i do this? > > i get the feeling i'm just missing something, perhaps thinking like > a python programmer rather than a zope guru. i feel like there's > some big obvious point that has escaped me, and i'm waiting for the > big "AHA!". > > so, one more try. given the following external method: > > import ZODB, ZODB.FileStorage > > > def GetPeople( self ): > "Return list of people in DB" > > db = ZODB.DB( ZODB.FileStorage.FileStorage( 'TestDB.fs' ) ) > connection = db.open() > root = connection.root() > people = [] > for key in root.keys(): > people.append( root[ key ] ) > return people > > if __name__ == '__main__': > for person in GetPeople( None ): > print person.name, 'is', person.age, 'years old' > > > referenced from a DTML Method: > > > is years old.
>
> > when i restart zope and view the method, it works once, but shows > no persons. the second time, it fails with the traceback. > > what do i change to make it work? > > thank you for your patience. > > -- > Garry Hodgson Every night > garry@sage.att.com a child is born > Software Innovation Services is a Holy Night. > AT&T Labs - Sophia Lyon Fahs > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From Brian@digicool.com Thu Mar 2 22:33:31 2000 From: Brian@digicool.com (Brian Lloyd) Date: Thu, 2 Mar 2000 17:33:31 -0500 Subject: [Zope] bobobase_modification_time one day back? Message-ID: <613145F79272D211914B0020AFF6401914DE5C@gandalf.digicool.com> > Function TimeStamp_yad(int y) in > zope-2.1.4-src\lib\python\zodb\TimeStamp.c > expects a 1900 based year (i.e. 0 = 1900, 2000=100, etc.), > for positive agruments, when computing (y+300)/400. > > TimeStamp_abst(int y, int mo, int d, int m, int s) > seems to expect a 0 based year, on the other hand. > > l = y%4==0 && (y%100 != 0 || y%400==0) > > But it gets called with a 1900 based year in line 290 in > function TimeStamp_timeTime( > > TimeStamp_abst(TimeStamp_y-1900, TimeStamp_m- > 1, TimeStamp_d-1, Thanks for investigating this - because TimeStamp objects are used in the object database, I don't want to make any changes to this yet until I can talk to Jim and verify that the fix won't have any impact on ZODB code (mon. morning probably). Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From pavlos@gaaros.com Thu Mar 2 22:21:05 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Thu, 2 Mar 2000 17:21:05 -0500 (EST) Subject: [Zope] SQLSession and Performance issues In-Reply-To: <38BEDC9C.734F4754@exceptionalminds.com> Message-ID: On Thu, 2 Mar 2000, Timothy Grant wrote: > I have a single page data entry form where almost every field gets > stored in the SESSION. This form can take from 9 to 15 seconds to > display. When all my other forms take 1 to 3 seconds this is a > significant slowdown. > > I am curious as to what methods may be used to reduce calls to > SESSION['varname'], or if I am even barking up the right tree. > Last I checked, setting an SESSIOn variable immediately did an update on the RDBM which would explain the slowdown. I do not know what the current situation is but I remember Anthony mentioning he was thinking of changing it. You might trying playing with the source code and store all changes to SESSION in a volatile attribute and call the SQL method at the end of the transaction only (at least this is how I do it in FSSession). Pavlos From Henny van der Linde" Message-ID: <00e601bf8497$ed0acf60$1fae79c3@pc2> Hi, > Looking at the "Database Adapter Roadmap", it looks like there isn't a > direct adapter for SQLServer. is this correct? Will the Oracle adapter > work on NT? The Oracle adapter will work but not with SQL-server. > > If not, is my only choice to use the ODBC adapter? Or the ZJetAdapter for > MS-Access (which I don't think would be sufficient for my needs)? > Your only choice is the ODBC adapter if you want tyo use SQL-server. We're running Zope on a NT server with SQL-server as database. It works very well. Henny van der Linde From lfalse@cs.rutgers.edu Thu Mar 2 22:28:53 2000 From: lfalse@cs.rutgers.edu (Stefan Langerman) Date: Thu, 2 Mar 2000 17:28:53 -0500 (EST) Subject: [Zope] Re: dtml-raise types? + How to hide Traceback In-Reply-To: <38BE7035.BB2721C6@nipltd.com> Message-ID: Thanks... but I think I really need to raise an error: I want to invoke the redirect in the standard_html_header, so if I use , only the header will be redirected (I think...). Another, slightly related question: On my zope, whenever there is an error, the whole Traceback is printed on the error page, and this doesn't seem to be part of the standard_error_message. Does anyone know how to hide it, or to put it in a html comment, like www.zope.org does? Thanks, Stefan. On Thu, 2 Mar 2000, Chris Withers wrote: > Dunno about raise, but if you want to do a redirect, try (untested,YMMV,etc) > > > > cheers, > > Chris > > Stefan Langerman wrote: > > > > Hi, > > > > Can anyone tell me what are the predefined error types > > for the tag, and how to use them? > > The DTML manual talks about "Unauthorized", and > > "Redirect", but doesn't give any details. I haven't found > > how to use "Redirect" so far. > > > > Thanks, > > > > Stefan. > > From lalo@hackandroll.org Thu Mar 2 22:29:01 2000 From: lalo@hackandroll.org (Lalo Martins) Date: Thu, 2 Mar 2000 19:29:01 -0300 Subject: [Zope] FieldIndex atomicity? Message-ID: <20000302192901.D4765@hackandroll.org> If a FieldIndex is treated as atomic, it shouldn't go trough the Splitter, right? I found out that an hyphen in a field indexed as FieldIndex breaks the index (this field is just not indexed, it seems). A space works. Weird. []s, |alo +---- -- I am Lalo of deB-org. You will be freed. Resistance is futile. http://www.webcom.com/lalo mailto:lalo@webcom.com pgp key in the web page Debian GNU/Linux -- http://www.debian.org From jwh@allencreek.com Thu Mar 2 22:31:35 2000 From: jwh@allencreek.com (James W. Howe) Date: Thu, 02 Mar 2000 17:31:35 -0500 Subject: [Zope] Security Puzzler Message-ID: <4.2.2.20000302172647.00b5f100@saladin.aisys.com> I was working with my ZClasses today and was confronted with something which seems strange. I was editing a method defined in my ZClass when I tried to click on the "propertysheets" link displayed at the top of the edit screen: DTMLMethod at / ControlPanel / Products / / / propertysheets / methods / When I clicked on the link, a basic authorization dialog was displayed. I was already logged in as the superuser. Why am I getting an authorization dialog? Mostly just curious. Thanks. James W. Howe mailto:jwh@allencreek.com Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 From hungjunglu@hotmail.com Thu Mar 2 22:46:22 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Thu, 02 Mar 2000 14:46:22 PST Subject: [Zope] SQLSession and Performance issues Message-ID: <20000302224622.86131.qmail@hotmail.com> timothy grant wrote: >I am curious as to what methods may be used to reduce calls to >SESSION['varname'], or if I am even barking up the right tree. I guess it depends on what database you are using. If your database is a remote server hooked up through TCP/IP port, too many calls to SESSION could be bad. Also, if the session data is large, during the transimission many packets have to be send. I don't have an answer... maybe you could describe first what database you are using (Gadfly on the same machine? remote database?), do you do many retrievals and updates? ------------------------ In the code SQLSession.py, there is a 'caching' variable. SQLSession seems to cache variables that are already retrieved or are recently updated. Try to set 'caching' to 1 and see if that helps. ------------------------ As Pavlos Christoforou said, another strategy is to have a single session data variable (a dictionary, for instance), and then retrieve it, say, in your standard_html_header and store it in your standard_html_footer (or their equivalents.) This way you only need to access the database twice per request. ------------------------ Please post back... I am also very interested. You can also time performance by calling time.time() in Python or in DTML. I am curious in the source of the problem... It would be nice to find out whether the time is spent in each database query or in TCP/IP packet splitting/joining/waiting. regards, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com From tjg@avalongroup.net Thu Mar 2 22:57:00 2000 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 02 Mar 2000 14:57:00 -0800 Subject: [Zope] SQLSession and Performance issues References: <20000302224622.86131.qmail@hotmail.com> Message-ID: <38BEF1BC.D45A09DF@exceptionalminds.com> Hung Jung Lu wrote: > I don't have an answer... maybe you could describe first > what database you are using (Gadfly on the same machine? > remote database?), do you do many retrievals and updates? PostgreSQL running on the same box as ZServer. > In the code SQLSession.py, there is a 'caching' variable. > SQLSession seems to cache variables that are already > retrieved or are recently updated. Try to set 'caching' > to 1 and see if that helps. Thanks for this input. I will go and take a look at it. I did not know it was there. > As Pavlos Christoforou said, another strategy is to > have a single session data variable (a dictionary, > for instance), and then retrieve it, say, in your > standard_html_header and store it in your standard_html_footer > (or their equivalents.) This way you only need to access > the database twice per request. Now this in an interesting idea, but all my attempts to computationally build a dictionary within Zope have gone to naught. I would love any advice on this as I believe it could very well be the key to this problem. -- Stand Fast, tjg. Chief Technology Officer tjg@exceptionalminds.com Red Hat Certified Engineer www.exceptionalminds.com Avalon Technology Group, Inc. (503) 246-3630 >>>>>>>>>>>>Linux...Because rebooting isn't normal<<<<<<<<<<<< From mindlace@imeme.net Thu Mar 2 23:10:32 2000 From: mindlace@imeme.net (ethan mindlace fremen) Date: Thu, 02 Mar 2000 23:10:32 +0000 Subject: [Zope] Re: dtml-raise types? + How to hide Traceback References: Message-ID: <38BEF4E8.D805E154@imeme.net> Stefan Langerman wrote: > > Thanks... but I think I really need to raise an error: > I want to invoke the redirect in the standard_html_header, > so if I use , only > the header will be redirected (I think...). This will redirect the whole page, as it gives a client-side redirect. > Another, slightly related question: On my zope, whenever > there is an error, the whole Traceback is printed on > the error page, and this doesn't seem to be part of the > standard_error_message. Does anyone know how to hide it, > or to put it in a html comment, like www.zope.org does? it only does this if you're logged in, otherwise it puts it in a comment (or displays your standard_error_message) ~mindlace From ws@mystrobl.de Thu Mar 2 22:23:00 2000 From: ws@mystrobl.de (Wolfgang Strobl) Date: Thu, 2 Mar 2000 23:23:00 +0100 Subject: [Zope] y2kbug - bobobase_modification_time one day back Message-ID: This ist a typical Y2K bug, located in the module TimpeStamp.c, as I suspected earlier. Since nobody followed my hint from earlier this day so far, I took the opportunity to dig a little deeper, learning how to build and replace a python extension on the way. Given how little documentation there is, I don't claim having understood anything about, but noticing that the function static double TimeStamp_abst(int y, int mo, int d, int m, int s) gets called with y=100 (not 2000), changing the leap yar calculation l = y%4==0 && (y%100 != 0 || y%400==0); to l = y%4==0 && (y%100 != 0 || (y+1900)%400==0); in that function fixed the problem on my system. DTML Document at /y2k / t

This is the Document.


renders as This is the t Document. 2000/03/02 23:13:8.393 GMT+1 2000/03/02 23:13:54.619 GMT+1 now. The complete function from ZODB/TimeStamp.c in context: -------------------------------------------------------- static double TimeStamp_abst(int y, int mo, int d, int m, int s) { int l; l = y%4==0 && (y%100 != 0 || (y+1900)%400==0); // y2kfix ws 2000-03-02 // was l = y%4==0 && (y%100 != 0 || y%400==0); return (TimeStamp_yad(y)+ joff[l][mo]+d)*86400 + m*60 + s; } -------------------------------------------------------- Hope this hilft. :-} -- Wolfgang Strobl From ws@mystrobl.de Thu Mar 2 23:05:35 2000 From: ws@mystrobl.de (Wolfgang Strobl) Date: Fri, 3 Mar 2000 00:05:35 +0100 Subject: [Zope] y2kbug - bobobase_modification_time one day back Message-ID: This ist a typical Y2K bug, located in the module TimpeStamp.c, as I suspected earlier. Since nobody followed my hint from earlier this day so far, I took the opportunity to dig a little deeper, learning how to build and replace a python extension on the way. Given how little documentation there is, I don't claim having understood anything about, but noticing that the function static double TimeStamp_abst(int y, int mo, int d, int m, int s) gets called with y=100 (not 2000), changing the leap yar calculation l = y%4==0 && (y%100 != 0 || y%400==0); to l = y%4==0 && (y%100 != 0 || (y+1900)%400==0); in that function fixed the problem on my system. DTML Document at /y2k / t

This is the Document.


renders as This is the t Document. 2000/03/02 23:13:8.393 GMT+1 2000/03/02 23:13:54.619 GMT+1 now. The complete function from ZODB/TimeStamp.c in context: -------------------------------------------------------- static double TimeStamp_abst(int y, int mo, int d, int m, int s) { int l; l = y%4==0 && (y%100 != 0 || (y+1900)%400==0); // y2kfix ws 2000-03-02 // was l = y%4==0 && (y%100 != 0 || y%400==0); return (TimeStamp_yad(y)+ joff[l][mo]+d)*86400 + m*60 + s; } -------------------------------------------------------- Hope this hilft. :-} ------- End of forwarded message ------- -- Wolfgang Strobl From brendon@70south.com Thu Mar 2 23:23:20 2000 From: brendon@70south.com (Brendon Grunewald) Date: Fri, 3 Mar 2000 00:23:20 +0100 Subject: [Zope] Worlds first WAP based Antarctic site running Zope. Message-ID: <005301bf849e$4fa0ca20$407a06d5@b> This is a multi-part message in MIME format. ------=_NextPart_000_0050_01BF84A6.ADCB90A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Zopers, Just to let you know that ZOPE is better than DOPE! Thanks for the great = work Paul and gang. Below is a press release made today for our site that uses Zope and = Squishdot as the main (but not only part) of the site. Press Release 70South, the website that has been providing news and views on = Antarctica for nearly a year, today announced the introduction of WAP = information services. The Wireless Application Protocol (WAP) is fast becoming the standard = for mobile and wireless data applications. In the next 12 months almost = every operator as well as most companies will be offering WAP services, = ranging from commerce, banking and payment to gaming, entertainment and = information services. Now you can get your Antarctic news and views on = the move, where ever and when ever you like. About 70South Formed in mid 1999 70South has been providing visitors with daily news = and views on or related to Antarctica. An important aspect of the site = is that visitors can not only read, and comment on existing articles, = but post their own related articles. -------------------------------------------------------------------------= ------------------------------------------- For the latest news and views on Antarctica visit http://www.70south.com ------=_NextPart_000_0050_01BF84A6.ADCB90A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Zopers,
 
Just to let you know that ZOPE is = better than DOPE!=20 Thanks for the great work Paul and gang.
 
Below is a press release made today for = our site=20 that uses Zope and Squishdot as the main (but not only part) of the=20 site.
 
Press Release
70South, = the website that=20 has been providing news  and views on Antarctica for nearly a year, = today=20 announced the introduction of WAP information = services.
 
The Wireless Application Protocol (WAP) = is fast=20 becoming the standard for mobile and wireless data applications. In the = next 12=20 months almost every operator as well as most companies will be offering = WAP=20 services, ranging from commerce, banking and payment to gaming, = entertainment=20 and information services. Now you can = get your=20 Antarctic news and views on the move, where ever and when ever you=20 like.
 
About 70South
Formed in mid 1999 70South has been providing visitors with daily = news and=20 views on or related to Antarctica. An important aspect of the site is = that=20 visitors can not only read, and comment on existing articles, but = post=20 their own related articles.
 
----------------------------------------------------------------= ----------------------------------------------------
For=20 the latest news and views on Antarctica visit http://www.70south.com
------=_NextPart_000_0050_01BF84A6.ADCB90A0-- From curtis@umd.com.au Thu Mar 2 23:50:19 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Fri, 3 Mar 2000 10:50:19 +1100 Subject: [Zope] Install problem, please help... In-Reply-To: References: Message-ID: <00030310535700.22345@localhost.localdomain> On Fri, 03 Mar 2000, Eric L. Walstad wrote: > Hello all - > > I am unable to connect to my Zope 2. > I am running Linux 2.2.14, with Apache > I am new to Zope and pretty new to Linux > > I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" > I entered ./start > It worked... for a while... until I shutdown... > When I restarted, Zope wasn't available. I went back to the Zope directory > and tried ./start again but the script seems to lock up after displaying the > following: > ------ > PROBLEM(100) ZServer Computing default hostname > ------ > INFO(0) Zserver Medusa (V1.13) started at ... > Hostname: frankenstein.energywright.com > Port:8080 > > ------ > INFO(0) ZServer FTP server starte at ... > Authorizer:None > Hostname: frankenstein.energywright.com > Port:8021 > ------ > INFO(0) ZServer PCGI server started at ... > Unix Socket: /usr/local/Zope/var/pcgi.soc > ------ > INFO(0) ZServer Monitor Server (V1.5)started on port 8099 > > > When I try to connect to http://192.168.1.100:8080/manage I get a "File does > not exist: /home/httpd/html/manage" error in my Apache error_log > > I was so happy when I got it running, now I'm incredibly frustrated! Please > help! > > I can supply my Apache conf files if necessary... > > Many Thanks, Eric. > erm.. one question... are you running Squid? Or anything else on port 8080? try "telnet 192.168.1.100 8080" and see what it says. p.s. if you want ZOPE to start on bootup, i put this in my /etc/rc.d/rc.local file (I'm running RH6.2.. your rc.local may be elsewhere, or a different name): /usr/local/Zope-2.1.3-src/start & I actually run ZOPE as user 'zope', so i use: su -l zope --command=/usr/local/Zope-2.1.3-src/start & -- Have a better one, Curtis. From jeff.hoffman@goingv.com Thu Mar 2 23:58:38 2000 From: jeff.hoffman@goingv.com (Jeff Hoffman) Date: Thu, 2 Mar 2000 18:58:38 -0500 (EST) Subject: [Zope] help with zodb In-Reply-To: <38BED176.91C42BAD@sage.att.com> Message-ID: On Thu, 2 Mar 2000, Garrett G. Hodgson wrote: > thank you for your help. forgive my being obtuse, but i'm still not > getting it. Turns out it was me that was being obtuse. See below. > > Only one process can access a ZODB at a time. You have two. The first is > > Zope, and the second is the external method. > > ok. by "a ZODB" do you mean that the call in my external method > is trying to reopen the ZODB zope is using? i'd assumed i was > crating another one, with a separate FileStorage. This is the detail I did not notice, previously. I thought you were trying to store objects in your Zope ZODB; I didn't notice that the filename you were passing to FileStorage was not Data.fs. Sorry. [snip] > so, one more try. given the following external method: > > import ZODB, ZODB.FileStorage > > > def GetPeople( self ): > "Return list of people in DB" > > db = ZODB.DB( ZODB.FileStorage.FileStorage( 'TestDB.fs' ) ) > connection = db.open() > root = connection.root() > people = [] > for key in root.keys(): > people.append( root[ key ] ) > return people > > if __name__ == '__main__': > for person in GetPeople( None ): > print person.name, 'is', person.age, 'years old' > > > referenced from a DTML Method: > > > is years old.
>
> > when i restart zope and view the method, it works once, but shows > no persons. the second time, it fails with the traceback. I don't understand why the problem is manifesting as it is, but I got your code to work by modifying your code as follows: - for key in root.keys(): - people.append(root[key]) + connection.close() - return people Opening a connection without closing it is a Bad Idea. I just can't figure out what this has to do with the lock file on the database. I figured when I closed the connection it was deleting the lock, but this is not so. So, I remain confused. ;-) > what do i change to make it work? Hope this helps! --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff@goingv.com Going Virtual, L.L.C. http://www.goingv.com/ From ws@gmd.de Fri Mar 3 00:29:28 2000 From: ws@gmd.de (ws@gmd.de) Date: Fri, 3 Mar 2000 01:29:28 +0100 Subject: [Zope] bobobase_modification_time one day back? In-Reply-To: <613145F79272D211914B0020AFF6401914DE5C@gandalf.digicool.com> Message-ID: <200003030029.BAA28499@mail.gmd.de> On 2 Mar 00, at 17:33, Brian Lloyd wrote: > Thanks for investigating this - because TimeStamp objects are > used in the object database, I don't want to make any changes > to this yet until I can talk to Jim and verify that the fix > won't have any impact on ZODB code (mon. morning probably). That's why I didn't suggest a fix in my first analysis. I don't know anything about the internals of the Zope object data base (hey, I learned about Zope only about two months ago, so what do you expect?). So I don't even know whether it's just a problem of displaying the wrong date, or whether wrong time stamps are written to the data base. In the latter case, most people would prefer to have that bug fix yesterday. Inconsistent dates in a data base are a serious problem, and it's getting worse as longer it lasts. -- Wolfgang From akm@mail.theinternet.com.au Fri Mar 3 00:43:14 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Fri, 3 Mar 2000 10:43:14 +1000 (EST) Subject: [Zope] Worlds first WAP based Antarctic site running Zope. In-Reply-To: <005301bf849e$4fa0ca20$407a06d5@b> from Brendon Grunewald at "Mar 3, 2000 00:23:20 am" Message-ID: <200003030043.KAA98245@mail.theinternet.com.au> +----[ Brendon Grunewald ]--------------------------------------------- | | Formed in mid 1999 70South has been providing visitors with daily news | and views on or related to Antarctica. An important aspect of the site | is that visitors can not only read, and comment on existing articles, | but post their own related articles. ^^^^^^^^ ^^^^^^^^^ Shouldn't that say "antarticles" ? :-) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From tjg@avalongroup.net Fri Mar 3 01:00:55 2000 From: tjg@avalongroup.net (Timothy Grant) Date: Thu, 02 Mar 2000 17:00:55 -0800 Subject: [Zope] Perchance a dtml major mode for XEmacs? Message-ID: <38BF0EC7.FE851D7A@exceptionalminds.com> Subject says it all. -- Stand Fast, tjg. Chief Technology Officer tjg@exceptionalminds.com Red Hat Certified Engineer www.exceptionalminds.com Avalon Technology Group, Inc. (503) 246-3630 >>>>>>>>>>>>Linux...Because rebooting isn't normal<<<<<<<<<<<< From bak@nstp.com.my Fri Mar 3 00:57:36 2000 From: bak@nstp.com.my (-) Date: Fri, 3 Mar 2000 08:57:36 +0800 Subject: [Zope] how much resource? In-Reply-To: References: <0003021733030M.00679@tokey.kedai.com.my> Message-ID: <0003030903470P.00679@tokey.kedai.com.my> On Thu, 02 Mar 2000, Jatwood@bwanazulia.com wrote: > To fully round out this little performance study (small study of > course) could you tell us what capacity the machine is at as far as > you know, what Zope version you are running and with what > configuration (Zserver alone, w/ Apache etc)? > > These kinds of things are really helpful in determining Zope's > ability to scale and in winning out the hearts of iCEO's. > > Thanks, > JMA > okey dokey. the setup is not that big. we're just starting out and are just feeling our way here. what we have: a PIII 500 M compaq 5500 ,smartscsi with RH 6.1, zope 2.1.3. i tried running zserver with fast cgi but it choked with high load. so, in the end, it's apache with pcgi. so far, it handles all the traffic beautifully. what we want, however - reliability, availability of our site, so that's where we need to look now. caching is also another matter. currently we enabled apache expire module, but not quite sure whether that would have any effect on pages served by zope. ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil? From bak@nstp.com.my Fri Mar 3 01:03:54 2000 From: bak@nstp.com.my (-) Date: Fri, 3 Mar 2000 09:03:54 +0800 Subject: [Zope] banner ad system, was how much resource? In-Reply-To: <38BE53F9.C07E3A0F@libc.org> References: <0003021806260N.00679@tokey.kedai.com.my> <38BE53F9.C07E3A0F@libc.org> Message-ID: <0003030912400Q.00679@tokey.kedai.com.my> On Thu, 02 Mar 2000, Bill Anderson wrote: > > Methinks thou art confused, but only slightly. me sorry, me look carefully next time. > Understand completely. > > I literally just came back from the couch (no, not _that_ one!, my > programming couch ;) where I was working on the next version .. so lets > see what we already agree on :) > > > what phpads offers:(from the readme) > > Summary: > > phpAds is a banner management and tracking system written in PHP3. > > Currently it can > > - manage multiple banners (any size) per client > > Yup. Main part here is just the dtml/html for it. Well, that and choice > of storage. > phpAds stores all in an SQL database, right? yes, and are you going to use sql in the future? or just stay with zodb? i would think going with sql is better in the sense that most of us have that 2G fs limit, and putting data in sql would help separate data from zodb. > > - send statistics to clients via email > > On what kind of schedule? By request, or by cron-job type setup? it's actually done by cron, and i would think you can do that easily. > > > - show random, pre-defined or HTML/image banners > > Little more specific, if possible? well, i guess you have it now, where you can weight the banner. > > So far, I believe the following are set for the next version (by > mid-March if all goes well): > > o Click tracking > o Stats (Views, Clicks, Click-through ratio, views/clicks left) > o Keywords > o Ways to avoid ZODB growth for each view/click. > i'll be waiting for this eagerly. BTW, i'd be glad to help in any ways i can. a little warning tho, i'm not an accomplished programmer, i wish i were, and know only so much sql. and i don't think i got good english! thanks -- ------------------------------------------------------ http://www.kedai.com.my/kk Am I Evil? From tseaver@palladion.com Fri Mar 3 02:53:53 2000 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 02 Mar 2000 20:53:53 -0600 Subject: [Zope] Oedipus 0.06 released References: <200003022000.MAA15235@zope.codeit.com> Message-ID: <38BF2941.41110246@palladion.com> "Andrew M. Kuchling" wrote: > > I've made a new release of Oedipus, a Python package for presenting > data from the Open Directory Project. > > http://www.mems-exchange.org/software/python/oedipus/ > > In v0.06, The improvements to the ODP code itself are pretty minor. > The major milestone is that, after some diligent sleuthing, > Jean-Claude Wippler tracked down an obscure bug in MetaKit that I was > tripping over. A patch for MetaKit 2.0 is included in Oedipus 0.06, > so for the first time you can actually handle a complete ODP dump. > You'd better have 400Mb of disk space for the resulting data file, > though, plus 500Mb for the source XML files, plus 4-5 hours of > processing time (at least on a 550MHz Linux box). > > The exported ZClass product still doesn't seem to work, though; if you > untar it in a new Zope installation, no Product is added when you > start up Zope. Anyone else notice this problem? Hmm. ZClass products aren't automagically imported; when exported, turn into zexp files, either on the client machine somewhere or in the server's $ZOPE_HOME/var directory. To install them on another server, on must: * copy the *.zexp file into the new server's $ZOPE_HOME/import directory * import the *.zexp file into the "Control Panel | Products" folder. You don't have to restart the new server, either, unlike "normal" Python products. Unless somebody borrowed Guido's time machine and retrofitted Butch Landigan's ZPack proposal, that is? Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jack@jacku.com Fri Mar 3 02:59:25 2000 From: jack@jacku.com (Jack Ungerleider) Date: Thu, 2 Mar 2000 20:59:25 -0600 Subject: [Zope] I cannot login (WorldPilot) References: <000001bf8435$e2d4e740$0500a8c0@red.servidor> Message-ID: <00030221060800.00358@viking> Greetings. To start imapd should be set to run vie inetd. In the /usr/doc/packages/pop directory look at the BUILD file. This has the information for setting up inetd.conf to work with the imapd. In short you need to edit a few lines of the inetd that comes with SuSE. Mostly you will need to uncomment the imap lines they should look like this: imap2 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/imapd pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/ipop3d This will allow you to use the imap server or the pop server if you want to. You may also want to check your configuration with a regular IMAP compatible mail client like Netscape Messinger. FWIW I'm running WorldPilot on my test server that is SuSE 6.2 (upgraded from 6.0) and works well. Good Luck! Jack On Thu, 02 Mar 2000, Javier Campos Morales wrote: > >%_I have Suse 6.2 > > I cannot login worldpilot. > > I have sendmail configured in localhost, the Zope sources and compiled > without problems. > I installed the package "pop" with fetchmail, pop3d and imapd. I don't know > if I must to execute imapd but I do this and the process stop by autologout. > The propierties of woldpilot are id=worldpilot Title=WorldPilot > imap=localhost smtp=localost. > I introduce the user and password of my local users and it seems that dont > have effect. > > żWhat is the problem?żWhere are the users? > > ---------------------------------------- Content-Type: text/html; name="unnamed" Content-Transfer-Encoding: quoted-printable Content-Description: ---------------------------------------- -- Jack Ungerleider The Ungerleider Group Creative Solutions for Cooperative Computing jack@jacku.com www.jacku.com From rich@Pezzullo.com Fri Mar 3 01:22:49 2000 From: rich@Pezzullo.com (Rich Pezzullo) Date: Thu, 2 Mar 2000 20:22:49 -0500 Subject: [Zope] HELP UNSUBSCRIBE References: <200003022000.MAA15236@zope.codeit.com> Message-ID: <006801bf84ae$fde3bd80$953fbfd1@pii450> ----- Original Message ----- From: To: Sent: Thursday, March 02, 2000 3:00 PM Subject: Zope digest, Vol 1 #659 - 46 msgs > Send Zope maillist submissions to > zope@zope.org > > To subscribe or unsubscribe via the web, visit > http://lists.zope.org/mailman/listinfo/zope > or, via email, send a message with subject or body 'help' to > zope-request@zope.org > You can reach the person managing the list at > zope-admin@zope.org > > (When replying, please edit your Subject line so it is more specific than > "Re: Contents of Zope digest...") > > ---------------------------------------------------------------------------- ---- > Today's Topics: > > 1. I cannot login (WorldPilot) (Javier Campos Morales) > 2. Re: bobobase_modification_time one day back? (Martijn Faassen) > 3. Re: trees and namespaces newbie q (Andy Heath) > 4. why doesn't this work with tree tag (Andy Heath) > 5. Re: how much resource? (jatwood@bwanazulia.com) > 6. Re: bobobase_modification_time one day back? (Martijn Pieters) > 7. Problems installing Zope (Steven Purchase) > 8. Re: bobobase_modification_time one day back? (Thomas Weiner) > 9. Re: bobobase_modification_time one day back? (Thomas Weiner) > 10. Re: Listening on specific interfaces (Martijn Pieters) > 11. Re: bobobase_modification_time one day back? (Martijn Pieters) > 12. Re: Problems installing Zope (Oleg Broytmann) > 13. Re: Re: HTML-Site Import (Itamar Shtull-Trauring) > 14. RE: Options for handling concurrency? (Tony McDonald) > 15. Re: bobobase_modification_time one day back? (Wolfgang Strobl) > 16. Re: bobobase_modification_time one day back? (Chris Withers) > 17. Patch to ZODBCDA (Duncan Booth) > 18. SQL Methods being called more than once (jatwood@bwanazulia.com) > 19. dtml-raise types? (Stefan Langerman) > 20. Re: dtml-raise types? (Chris Withers) > 21. Re: bobobase_modification_time one day back? (Wolfgang Strobl) > 22. Re: tree and dtml-with only not working for me (Andy Heath) > 23. Re: Dealing with Dictionaries (James W. Howe) > 24. Re: Dealing with Dictionaries (Evan Simpson) > 25. Re: Dealing with Dictionaries (James W. Howe) > 26. Subclassing User (ingo) > 27. Re: Dealing with Dictionaries (James W. Howe) > 28. Re: tree and dtml-with only not working for me (Phil Harris) > 29. Re: SQL Methods being called more than once (Phil Harris) > 30. Re: tree and dtml-with only not working for me (Andy Heath) > 31. Re: tree and dtml-with only not working for me (Phil Harris) > 32. urgent! help! strange blockings (Tino Wildenhain) > 33. Re: SQL Methods being called more than once (Tony McDonald) > 34. Re: tree and dtml-with only not working for me (Phil Harris) > 35. Re: Advanced DTML Question (James W. Howe) > 36. Re: tree and dtml-with only not working for me (Thomas Weiner) > 37. Re: Advanced DTML Question (Evan Simpson) > 38. ZOPE! I HATE YOU! (jiva@devware.com) > 39. Oedipus 0.06 released (Andrew M. Kuchling) > 40. Re: bobobase_modification_time one day back? (Paul Browning) > 41. Zope stopped working after working once... (Eric L. Walstad) > 42. Re: tree and dtml-with only not working for me (Thomas Weiner) > 43. Re: bobobase_modification_time one day back? (Mauricio Souza Lima) > 44. [Newbie] SQL database support on NT (Brad Crittenden) > 45. SQL Methods being called more than once (Jerry Spicklemire) > 46. Re: Advanced DTML Question (James W. Howe) > From ewalstad@energywright.com Fri Mar 3 05:08:49 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Thu, 2 Mar 2000 21:08:49 -0800 Subject: [Zope] Install problem, please help... In-Reply-To: <00030310535700.22345@localhost.localdomain> Message-ID: // On Fri, 03 Mar 2000, Eric L. Walstad wrote: // > Hello all - // > // > I am unable to connect to my Zope 2. // > I am running Linux 2.2.14, with Apache // > I am new to Zope and pretty new to Linux // > // > I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" // > I entered ./start // > It worked... for a while... until I shutdown... // > When I restarted, Zope wasn't available. I went back to the // Zope directory // > and tried ./start again but the script seems to lock up after // displaying the // > following: // > ------ // > PROBLEM(100) ZServer Computing default hostname // > ------ // > INFO(0) Zserver Medusa (V1.13) started at ... // > Hostname: frankenstein.energywright.com // > Port:8080 // > // > ------ // > INFO(0) ZServer FTP server starte at ... // > Authorizer:None // > Hostname: frankenstein.energywright.com // > Port:8021 // > ------ // > INFO(0) ZServer PCGI server started at ... // > Unix Socket: /usr/local/Zope/var/pcgi.soc // > ------ // > INFO(0) ZServer Monitor Server (V1.5)started on port 8099 // > // > // > When I try to connect to http://192.168.1.100:8080/manage I // get a "File does // > not exist: /home/httpd/html/manage" error in my Apache error_log // > // > I was so happy when I got it running, now I'm incredibly // frustrated! Please // > help! // > // > I can supply my Apache conf files if necessary... // > // > Many Thanks, Eric. // > // // erm.. one question... are you running Squid? Or anything else // on port 8080? I checked my /etc/services file and it isn't showing anything connected to port 8080. Is there somewhere else I need to check? // // try "telnet 192.168.1.100 8080" and see what it says. It says: "telnet: Unable to connect to remote host: Connection refused" Then I added the "/usr/local/Zope-2.1.3-src/start &" line to my /etc/rc.d/rc.local file, rebooted, did a "ps -ax" to see what processes were running, saw that "z2.py -D" (in there 2 times). So, I tried to telnet in agian and this time it said "Connected to 192.168.1.100" Next I tried to connect to "http://192.168.1.100:8080/manage" with my browser... IT WORKED!!!! Thanks a million Curtis! I guess I just needed to add the line to my /etc/rc.d/rc.local file and reboot! YAY! OK, now I need to get to work. Eric. From curtis@umd.com.au Fri Mar 3 05:14:05 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Fri, 3 Mar 2000 16:14:05 +1100 Subject: [Zope] Install problem, please help... In-Reply-To: References: Message-ID: <00030316171802.22345@localhost.localdomain> On Fri, 03 Mar 2000, Eric L. Walstad wrote: > I checked my /etc/services file and it isn't showing anything connected to > port 8080. Is there somewhere else I need to check? > /etc/services is mostly just a reference list of what the port number is 'officially' used for (STD 03 iirc is the Internet Numbers standard) > // > // try "telnet 192.168.1.100 8080" and see what it says. > It says: "telnet: Unable to connect to remote host: Connection refused" that means there's nothing there to accept the connection. > > Then I added the "/usr/local/Zope-2.1.3-src/start &" line to my > /etc/rc.d/rc.local file, rebooted, did a "ps -ax" to see what processes were > running, saw that "z2.py -D" (in there 2 times). yes. Because ZOPE threads, you will see a number of them about. This is normal. > > So, I tried to telnet in agian and this time it said "Connected to > 192.168.1.100" "Hello, ZOPE speaking" (o8 > > Next I tried to connect to "http://192.168.1.100:8080/manage" with my > browser... > > IT WORKED!!!! > COOL! > Thanks a million Curtis! I guess I just needed to add the line to my > /etc/rc.d/rc.local file and reboot! YAY! hey... no problem... glad i could help. that script file gets executed every time you boot up, right at the end. That line just starts zope, and backgrounds it. > > OK, now I need to get to work. Let the fun begin. (o8 > > Eric. -- Have a better one, Curtis. From lucas7@home.com Thu Mar 2 15:17:01 2000 From: lucas7@home.com (Lucas Vogel) Date: Thu, 02 Mar 2000 22:17:01 +0700 Subject: [Zope] rendering bgcolor tags Message-ID: <38BE85ED.F604A278@home.com> I have an html document that I created outside the Zope env. that has a table. One column of the table is blue, the background of the document is white. I can see the work I have done fine when I look at the document in Netscape, but when I load it into zope and look at it, the bgcolor for the table column isn't there. Am I doing something wrong, or is this a zope feature? -- Lucas Vogel lucas7@home.com ICQ: 44697169 From teyc@bigfoot.com Fri Mar 3 05:05:37 2000 From: teyc@bigfoot.com (Chui Tey) Date: Fri, 3 Mar 2000 15:05:37 +1000 Subject: [Zope] Message-ID: <000701bf84ce$23664ea0$550a64cb@zzstey> Hi, What is the difference between and . For instance, if I have this directory structure: | +-base +-subfolder from base, doesn't add any folders, while behaves as expected. It took about an hour of experimenting before getting this right. Could someone explain what is the difference here? Thanks. Chui From hungjunglu@hotmail.com Fri Mar 3 05:33:04 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Thu, 02 Mar 2000 21:33:04 PST Subject: [Zope] Re: [Zope-dev] problems with TM.py Message-ID: <20000303053304.10392.qmail@hotmail.com> pavlos christoforou wrote: >TM.py defines _registered as a class variable which seems to hold the >state of an instance (whether it is registered with the transaction >manager or not). method _register() registers the instance with the TM >depending on the content of the _registered attribute. this however seems >to have the additional effect to set the instance as changed and therefore >and therefore a new version is stored in the ZODB. Additionally as >_registered is defined as a class variable it is shared among threads and >therefore one thread can interfere with the state of another. I would like to understand the source of your problem, too. However, I think there is a misunderstanding here. In TM.py, _registered is a class data attribute, which is typically a trick for "initializing" Python instance data attribute. That is, unless you explicitly do something like TM._register = 1 the class variable would never change. That is, TM._register is always None. Always always. So there should not be any problem in thread interference. If x is an instance of TM (or an instance that has TM as an interface, in the case of multiple inheritance), if you look at the dictionary of x, i.e: x.__dict__ , you will see that initially x does not have an attribute _register in its own dictionary. However, x._register is a valid reference, because it borrows from the class attribute. The statement: print x._register would print out 'None'. As soon as you assign a value to x._register = 1 you create an attribute in the dictionary of x. That is, a new item is added into x.__dict__ , which is totatally independent of TM._register. So TM._register remains as None. >I have changed all references to _registered in TM.py to _v_registered and >my problem (creating new versions for every call to FSSession) is solved, >but I am not sure what other classes use TM.py. Also I am thinking of >changing _v_registered to an instance attribute instead of a class >attribute. Any thoughts?? Is it a bug of TM.py I'd like to take a look into it, too. But first I'll have to learn what the flags _v_registered and _register mean. :( I don't even understand what is a "transaction" in the sense used by the transaction manager. If I understand correctly, the definition of "transaction" that you would like to use is one single HTTP transaction, which lasts from the beginning of a foreign HTTP client request till the end of Zope sending out the reply. The question is: is this the same definition of "transaction" as used by the transaction manager? Why would anything be stored in ZODB?!? The HTTP "transaction" should not have anything to do with ZODB database "transaction". The "versions" that are stored in ZODB, are they FSSESSION objects? I'd like to look into all this. :) regards, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com From jnewcomb@OFFICE.GEOG.UVIC.CA Thu Mar 2 18:09:32 2000 From: jnewcomb@OFFICE.GEOG.UVIC.CA (jnewcomb@OFFICE.GEOG.UVIC.CA) Date: Thu, 2 Mar 2000 18:09:32 Subject: [Zope] What Kind of Fruit Does Your Labor Bear? Message-ID: <20.278487.588326@www.leapofaith.com> FREE NetLinks Guaranteed To SAVE You MONEY! Please be advised, links presented in this email have been sent E-nonymously without the knowledge or consent of the domain owners. The Internet is World Public Domain, which can, and should be shared freely. Information Advocates Association "Knowledge is Power" Here are a few sites we found very useful. ----------------------------------------------------------------- ----------------------------- John McCain For President: http://www.mccain2000.com Now who is better to lead our country into the 20th Century than Senator John McCain? We can either hide behind a Bush and continue being a puppet to the system or reclaim our name and elect John McCain. Beware of Internet Scams: http://www.rcmp-grc.gc.ca If you are concerned with email ads or websites offering opportunities or programs that may seem suspicious, report it to this site. They have the latest and most common scams circulated on the net. Free Internet: http://www.thesimpsons.com Don't want to continue paying $19.95 or more just to Surf the Net? This site offers the future of the Internet, Today. Never pay to Surf again. In this case, Free Does Mean Free! Cheap Phone Rates: http://www.voicelinkinc.com We found a .04cents long distance rate, no switching, no fees and low international rates using 10-10 access numbers. If you can handle the 10 minute minimum, you're in business. Invention Fraud: http://www.inventorfraud.com If you are trying to submit your invention for patent be very cautious. The site list a number of companies that are out to get your money and ones that provide viable patent services. FREE 800 Number & Voice Mail: http://www.ureach.com Here you can get a FREE voicemail account and 800 number. Just sign up for the service. FREE Website Development: http://www.bigstep.com This site offers an opportunity for you to develop and design your very own website for FREE! They offer different ready to use formats that will assist you in the development of your site. Know Your Schedule: http://www.anyday.com This site offers an online personal calendar including a private address book and events schedule that can be accessed from anywhere. You also have the option of sharing your schedule with colleagues via the Net. Need To Send A Large File: http://www.whalemail.com The is a great service for sending large files up to 50 megs, your regular ISP just can't handle that kind of load. Go ahead, transfer you entire C Drive to the ones you love most. It's even FREE! Nice guys huh? Internet Service Providers: http://www.thelist.com Don't like the service you've been getting from your present Internet Service Provider? Take a look at the more than 8,000 ISP's you have to choose from. You're Not Stuck! Nothing But FREE Stuff: http://www.thefreesite.com Now who doesn't like Free Stuff that is really Free? This site is a ton-of-fun and there is something for everyone. It offers a multitude of freebies and we are sure you may find something that interest you. Free Fax Service: http://www.fax4free.com Here you can get a free fax phone number and receive your faxes on your computer. You can print your faxes out on your printer. Print quality is much higher than normal fax machines. Looking For A Job or Career? http://www.jobfinders.com This site is very user friendly. If you are in need of searching for that one job you can't seem to locate anywhere else, this site is up to the challenge. International Directory Assistance Online: http://www.infobel.com If you have ever gotten International Directory Assistance from AT&T then you are aware that you can easily pay up to $9.00 dollars for that information. Here is an online solution and it's free. Get Directions Anywhere: http://www.mapquest.com It does not matter where you're trying to go, this site will provide with complete details and instructions on how to get there. See for yourself. Traveling has never been easier! Looking For Someone? http://www.discreetdatasystems.com Yes, this site will assist you in finding that someone special or not so special, whatever the case maybe. You will need to have some basic information regarding your search, but the site does deliver. From jiva@devware.com Fri Mar 3 06:31:49 2000 From: jiva@devware.com (jiva@devware.com) Date: Thu, 2 Mar 2000 23:31:49 -0700 Subject: [Zope] Security flaw in Zope FTP server? Message-ID: <20000302233149.A28046@devware.com> I was running a security scanner (nessus) on my webserver tonight, and it came back with port 8021 having an ftp server which "closes the connection when USER, PASS, or HELP is given with a too long argument." It says "This is probably due to a buffer overflow" Is this a false positive? Or is this something to actually be concerned about? -- Isn't it nice that people who prefer Los Angeles to San Francisco live there? -- Herb Caen From curtis@umd.com.au Fri Mar 3 05:51:04 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Fri, 3 Mar 2000 16:51:04 +1100 Subject: [Zope] Batch processing... Message-ID: <00030317005104.22345@localhost.localdomain> Green things... I am having problems with the dtml-in batch handling.. I've basically copied from the DTML guides example, but my previous and next links NEVER appear. I mean, sure. I am only getting the first 5 items in the list, as i should. But the links forward and back are not working. I can paste the code if you like, but it's really just replacing w36 with my sql query. -- Have a better one, Curtis. From jeff.hoffman@goingv.com Fri Mar 3 06:11:46 2000 From: jeff.hoffman@goingv.com (Jeff Hoffman) Date: Fri, 3 Mar 2000 01:11:46 -0500 (EST) Subject: [Zope] In-Reply-To: <000701bf84ce$23664ea0$550a64cb@zzstey> Message-ID: On Fri, 3 Mar 2000, Chui Tey wrote: > Hi, > > What is the difference between and . For > instance, if I have this directory structure: [snip] > doesn't add any folders, while > behaves as expected. It took > about an hour of experimenting before getting this right. Could someone > explain what is the difference here? Calling tags with and without quotes follows mostly the same convention throughout Zope. A tag without quotes, such as: is equivalent to: This says, "Include the variable with the name myMethod." The alternate form is: which is equivalent to: This says, "Include the result of the Python expression in quotes, myMethod()." In your specific case, dtml-call without quotes is equivalent to using the name form, and thus does nothing. There is no attribute or method called subfolder.manage_addFolder(...). Note that Zope would be looking for this, literally, and would not interpret the period as an application of a method to an instance. Using the dtml-call tag with quotes is equivalent to the expr form, and will thus interpret the period appropriately. To convince yourself that this is the case, try including a DTML Method using the expr form without parenthesis: puts this in the response: If you view this in a browser, you will not see it because your browser will try and interpret it as a tag, which, of course, does not exist. > Thanks. Hope this helps. > Chui --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff@goingv.com Going Virtual, L.L.C. http://www.goingv.com/ > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From mj@digicool.com Fri Mar 3 06:52:51 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 3 Mar 2000 07:52:51 +0100 Subject: [Zope] bobobase_modification_time one day back? References: <200003030029.BAA28499@mail.gmd.de> Message-ID: <004d01bf84dd$18731fa0$21172ed5@arnhem.chello.nl> From: > That's why I didn't suggest a fix in my first analysis. I don't know > anything about the internals of the Zope object data base (hey, I > learned about Zope only about two months ago, so what do you > expect?). So I don't even know whether it's just a problem of > displaying the wrong date, or whether wrong time stamps are > written to the data base. In the latter case, most people would > prefer to have that bug fix yesterday. Inconsistent dates in a data > base are a serious problem, and it's getting worse as longer it lasts. From my tests I am pretty sure the right dates are stored. It is just the timeTime() representation of those dates that is wrong. However, as you pointed out, the methods that provide the representation are a bit confused over what format the year portion should be in when called. This,and the fact its something so deeply part of the ZODB makes a fix something that Jim can do.. =) Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From curtis@umd.com.au Fri Mar 3 07:22:13 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Fri, 3 Mar 2000 18:22:13 +1100 Subject: [Zope] Batch processing... SOLVED Message-ID: <00030318264705.22345@localhost.localdomain> Again, greetings... So I kept looking at what I had, and some things just did NOT look right. So I fiddled. I wrangled. I bashed it with various bits of office equipment. And I got it to work! here is a cutdown of what i used: Previous orders. STUFF FROM ITERATED QUERY HERE Next orders. it's much simpler than the example in the DTML book (IMHO), and it would be faster in making only ONE call to whatever query it is you're using, not 3. I'm not sure who is in charge of the DTML reference manual, but if i get a moment i will be forwarding this code snippet on to them. -- Have a better one, Curtis. From knapek@knapek.pvt.net Fri Mar 3 07:58:58 2000 From: knapek@knapek.pvt.net (Petr Knapek) Date: 03 Mar 2000 08:58:58 +0100 Subject: [Zope] tree and expand_all Message-ID: <86bt4wv60t.fsf@knapek.pvt.net> Hi all, I have a problem with expand_all variable in tree which should expand whole tree. When I post it (Expand) it doesn't work. No change in tree rendering. On the other hand the collapse_all works as predicted. Is anything wrong what I do or is it a bug? I use Linux with Zope 2.1.4 Thanks, Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic From ulf.byskov@comptel.com Fri Mar 3 08:07:14 2000 From: ulf.byskov@comptel.com (Ulf Byskov) Date: Fri, 03 Mar 2000 10:07:14 +0200 Subject: [Zope] DCOracle error Message-ID: <38BF72B2.3A5252ED@comptel.com> I'm trying to use DCOracle but I get the following error: Traceback (innermost last): File "/opt/Zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/opt/Zope/lib/python/Products/DCOracle/__init__.py", line 52, in ? import sys, Buffer ImportError: No module named Buffer I don't know anything about python so I don't have a clue..... Can someone help ? From rbeer@uni-goettingen.de Fri Mar 3 08:44:59 2000 From: rbeer@uni-goettingen.de (Ragnar Beer) Date: Fri, 3 Mar 2000 09:44:59 +0100 Subject: [Zope] GUF or MySQLUF? Message-ID: Hi everyone, I have to decide which product to use to organise users' access using data from a MySQL database. As far as I can see I could use GenericUserFolder or MySQL UserFolder. Looking at the list it seems that GenericUserFolder is the one that's used more often and that's supported better. Or does it only make more trouble? I would be glad to receive some advice or get some comments. Ragnar From listserv@uwa.edu.au Fri Mar 3 02:46:02 2000 From: listserv@uwa.edu.au (listserv@uwa.edu.au) Date: Fri, 3 Mar 2000 02:46:02 Subject: [Zope] Helping Others Is Our Only Goal Message-ID: <660.750714.749864@www.leapofaith.com> FREE NetLinks Guaranteed To SAVE You MONEY! Please be advised, links presented in this email have been sent E-nonymously without the knowledge or consent of the domain owners. The Internet is World Public Domain, which can, and should be shared freely. Information Advocates Association "Knowledge is Power" Here are a few sites we found very useful. ----------------------------------------------------------------- ----------------------------- John McCain For President: http://www.mccain2000.com Now who is better to lead our country into the 20th Century than Senator John McCain? We can either hide behind a Bush and continue being a puppet to the system or reclaim our name and elect John McCain. Beware of Internet Scams: http://www.rcmp-grc.gc.ca If you are concerned with email ads or websites offering opportunities or programs that may seem suspicious, report it to this site. They have the latest and most common scams circulated on the net. Free Internet: http://www.thesimpsons.com Don't want to continue paying $19.95 or more just to Surf the Net? This site offers the future of the Internet, Today. Never pay to Surf again. In this case, Free Does Mean Free! Cheap Phone Rates: http://www.voicelinkinc.com We found a .04cents long distance rate, no switching, no fees and low international rates using 10-10 access numbers. If you can handle the 10 minute minimum, you're in business. Invention Fraud: http://www.inventorfraud.com If you are trying to submit your invention for patent be very cautious. The site list a number of companies that are out to get your money and ones that provide viable patent services. FREE 800 Number & Voice Mail: http://www.ureach.com Here you can get a FREE voicemail account and 800 number. Just sign up for the service. FREE Website Development: http://www.bigstep.com This site offers an opportunity for you to develop and design your very own website for FREE! They offer different ready to use formats that will assist you in the development of your site. Know Your Schedule: http://www.anyday.com This site offers an online personal calendar including a private address book and events schedule that can be accessed from anywhere. You also have the option of sharing your schedule with colleagues via the Net. Need To Send A Large File: http://www.whalemail.com The is a great service for sending large files up to 50 megs, your regular ISP just can't handle that kind of load. Go ahead, transfer you entire C Drive to the ones you love most. It's even FREE! Nice guys huh? Internet Service Providers: http://www.thelist.com Don't like the service you've been getting from your present Internet Service Provider? Take a look at the more than 8,000 ISP's you have to choose from. You're Not Stuck! Nothing But FREE Stuff: http://www.thefreesite.com Now who doesn't like Free Stuff that is really Free? This site is a ton-of-fun and there is something for everyone. It offers a multitude of freebies and we are sure you may find something that interest you. Free Fax Service: http://www.fax4free.com Here you can get a free fax phone number and receive your faxes on your computer. You can print your faxes out on your printer. Print quality is much higher than normal fax machines. Looking For A Job or Career? http://www.jobfinders.com This site is very user friendly. If you are in need of searching for that one job you can't seem to locate anywhere else, this site is up to the challenge. International Directory Assistance Online: http://www.infobel.com If you have ever gotten International Directory Assistance from AT&T then you are aware that you can easily pay up to $9.00 dollars for that information. Here is an online solution and it's free. Get Directions Anywhere: http://www.mapquest.com It does not matter where you're trying to go, this site will provide with complete details and instructions on how to get there. See for yourself. Traveling has never been easier! Looking For Someone? http://www.discreetdatasystems.com Yes, this site will assist you in finding that someone special or not so special, whatever the case maybe. You will need to have some basic information regarding your search, but the site does deliver. From kentsin@macau.ctm.net Fri Mar 3 09:18:03 2000 From: kentsin@macau.ctm.net (Sin Hang Kin) Date: Fri, 3 Mar 2000 17:18:03 +0800 Subject: [Zope] Dumping REQUEST for debug Message-ID: <007801bf84f3$99789880$770da8c0@bbs> How could I dump all names in REQUEST for debug? The quick reference reval that REQUEST have has_key(name) but do not say it response to keys() It is not possible to put neither From kentsin@macau.ctm.net Fri Mar 3 09:17:57 2000 From: kentsin@macau.ctm.net (Sin Hang Kin) Date: Fri, 3 Mar 2000 17:17:57 +0800 Subject: [Zope] Zope DHTML and XHTML : Moving things to the Client-side Message-ID: <007701bf84f3$98a60640$770da8c0@bbs> I think it worth to encourage zopelist to move more things to the client-side by modify a Zope fresh installation. I found out there are many things hard-coded in python or dtml in zope's source. There are some things which can be do better in the client side. For example, there were many dynamic folder tree writen in javascript which can be more responsible than the zope tree tag (which the change of the tree state require the help from server). I would like to urge zopelists to explorer the client side authoring which could actually give zope a dramatically change. 1. Remove those hard-coded parameters from the source and placed them in the folder tree as attributes which can be modified or overwrited by manage interface and acquisition. 2. Define the basic css (which zope.org have one) as default elements with the fress zope install. 3. Make the current Zope tag comply with xml standards : they should end with /> or accept an end tag. 4. Collect open-source javascript codes and convert them into zope products (like tree). From hannu@tm.ee Fri Mar 3 10:02:08 2000 From: hannu@tm.ee (Hannu Krosing) Date: Fri, 03 Mar 2000 12:02:08 +0200 Subject: [Zope] SQLSession and Performance issues References: <20000302224622.86131.qmail@hotmail.com> <38BEF1BC.D45A09DF@exceptionalminds.com> Message-ID: <38BF8DA0.AD6E6C07@tm.ee> Timothy Grant wrote: > > Hung Jung Lu wrote: > > As Pavlos Christoforou said, another strategy is to > > have a single session data variable (a dictionary, > > for instance), and then retrieve it, say, in your > > standard_html_header and store it in your standard_html_footer > > (or their equivalents.) This way you only need to access > > the database twice per request. > > Now this in an interesting idea, but all my attempts to computationally > build a dictionary within Zope have gone to naught. I would love any > advice on this as I believe it could very well be the key to this > problem. To build a dict in DTML, try something like this: [] Plain python assignment won't work, as a "=" in python is a statement, and statements are not supported, only function calls. to remove a key, use ----------------- Hannu From rik.hoekstra@inghist.nl Fri Mar 3 09:58:49 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Fri, 03 Mar 2000 10:58:49 +0100 Subject: [Zope] Dumping REQUEST for debug References: <007801bf84f3$99789880$770da8c0@bbs> Message-ID: <38BF8CD9.37AADAC8@inghist.nl> Sin Hang Kin wrote: > > How could I dump all names in REQUEST for debug? The quick reference reval > that REQUEST have has_key(name) but do not say it response to keys() > > It is not possible to put > > neither will get you what you want. Rik From phil.harris@zope.co.uk Fri Mar 3 10:01:18 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 3 Mar 2000 10:01:18 -0000 Subject: [Zope] Dumping REQUEST for debug References: <007801bf84f3$99789880$770da8c0@bbs> Message-ID: <001f01bf84f7$6e690c70$5c773fc1@media1> should be what you want ----- Original Message ----- From: "Sin Hang Kin" To: "Zope Admin list" Sent: Friday, March 03, 2000 9:18 AM Subject: [Zope] Dumping REQUEST for debug > How could I dump all names in REQUEST for debug? The quick reference reval > that REQUEST have has_key(name) but do not say it response to keys() > > It is not possible to put > > neither > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From hannu@tm.ee Fri Mar 3 10:11:46 2000 From: hannu@tm.ee (Hannu Krosing) Date: Fri, 03 Mar 2000 12:11:46 +0200 Subject: [Zope] Zope DHTML and XHTML : Moving things to the Client-side References: <007701bf84f3$98a60640$770da8c0@bbs> Message-ID: <38BF8FE2.E774F85@tm.ee> Sin Hang Kin wrote: > > I think it worth to encourage zopelist to move more things to the > client-side by modify a Zope fresh installation. > > I found out there are many things hard-coded in > python or dtml in zope's source. > > There are some things which can be do better in the client side. For > example, there were many dynamic folder tree writen in javascript which can > be more responsible than the zope tree tag (which the change of the tree > state require the help from server). > > I would like to urge zopelists to explorer the client side authoring which > could actually give zope a dramatically change. for better or worse ? ;) > 1. Remove those hard-coded parameters from the source and placed them in the > folder tree as attributes which can be modified or overwrited by manage > interface and acquisition. That could be good idea. > 2. Define the basic css (which zope.org have one) as default elements with > the fress zope install. What would it add ? But a CSS-method or similar would be a nice addition. Or even a general TEXT-method, with Content-type: as an attribute, so I don't need to write 3. Make the current Zope tag comply with xml standards : they should end > with /> or accept an end tag. Why ? As has been revealed in several discussions before, it would be very limiting for DTML to force compliance to XML (dtml tags inside html tags, etc) Making it only superficially similar would just confuse people. > 4. Collect open-source javascript codes and convert them into zope products > (like tree). If you could integrate it nicely with other parts of zope it would be a welcome addition. But I doubt it would be easy, but if you can come up with a nice implementation, I'm sure it would be accepted in contrib. -------------- Hannu From alet@unice.fr Fri Mar 3 10:01:25 2000 From: alet@unice.fr (Jerome ALET) Date: Fri, 3 Mar 2000 11:01:25 +0100 (MET) Subject: [Zope] Zope DHTML and XHTML : Moving things to the Client-side In-Reply-To: <007701bf84f3$98a60640$770da8c0@bbs> Message-ID: On Fri, 3 Mar 2000, Sin Hang Kin wrote: > There are some things which can be do better in the client side. For > example, there were many dynamic folder tree writen in javascript which can > be more responsible than the zope tree tag (which the change of the tree > state require the help from server). IMHO this would be a very bad idea, because not all browsers are able to use javascript. for example the tree tag works perfectly with lynx. This is really very nice, because often we can't do many things with text only browsers, but the tree tag is very powerful and lynx can use it: it's cool. bye, Jerome From hannu@tm.ee Fri Mar 3 10:14:29 2000 From: hannu@tm.ee (Hannu Krosing) Date: Fri, 03 Mar 2000 12:14:29 +0200 Subject: [Zope] Dumping REQUEST for debug References: <007801bf84f3$99789880$770da8c0@bbs> Message-ID: <38BF9085.EA582E26@tm.ee> Sin Hang Kin wrote: > > How could I dump all names in REQUEST for debug? The quick reference reval > that REQUEST have has_key(name) but do not say it response to keys() > > It is not possible to put > IIRC the recommended way was to use or perhaps
It was further recommended to make a method called DEBUG in your root folder containing the above and set permissions so that only managers could use it. ----------- Hannu From rik.hoekstra@inghist.nl Fri Mar 3 10:04:17 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Fri, 03 Mar 2000 11:04:17 +0100 Subject: [Zope] Zope DHTML and XHTML : Moving things to the Client-side References: <007701bf84f3$98a60640$770da8c0@bbs> Message-ID: <38BF8E21.6ACD9F58@inghist.nl> > I would like to urge zopelists to explorer the client side authoring which > could actually give zope a dramatically change. You may want to check out the Zope-Mozilla initiative (and the related Model/View discussion), which does something like this. It's on http://www.zope.org/Resources/Mozilla. As this is Open Source, contributions are more than welcome. Rik From a.k.heath@open.ac.uk Fri Mar 3 11:23:47 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Fri, 03 Mar 2000 11:23:47 +0000 Subject: [Zope] can I stop tree moving page view Message-ID: <38BFA0C3.57C19548@open.ac.uk> Another tree difficulty: I have a tree widget in a page. When branches are expanded or collapsed the view you get in the browser moves. Now I know this is somewhat unavoidable but can anyone think of a way to limit the effect for example some way of making the text above the newly-expanded bit stay still and just re-rendering that below instead of shifting everything around? Andy -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From anon_emouse@hotmail.com Fri Mar 3 11:52:53 2000 From: anon_emouse@hotmail.com (Graham Chiu) Date: Fri, 3 Mar 2000 23:52:53 +1200 Subject: [Zope] [Newbie] SQL database support on NT In-Reply-To: References: Message-ID: <$GLEtPBVe6v4EwHk@compkarori.com> In article , Brad Crittenden writes >Any suggestions for database selection on NT will be appreciated. I am using Interbase 5.6 with ODBC. It sucks. 2-3 x a week the ODBC connection gets lost, and the Zope ODBC adapter refuses to reconnect. It usually happens after I enter the management screens as well. I have to shut Zserver down, and restart it. I think the problem must be the ODBC driver supplied by Interbase Corp. I'll probably shift it over to MS Sqlserver as people don't seem to report problems there. ------- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz - running Zope when ODBC allows... http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin From weiner@tu-harburg.de Fri Mar 3 12:04:19 2000 From: weiner@tu-harburg.de (Thomas Weiner) Date: Fri, 03 Mar 2000 13:04:19 +0100 Subject: [Zope] tree and dtml-with only not working for me References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> Message-ID: <200003031202.NAA16354@rztsun.rz.tu-harburg.de> Andy Heath wrote: [ preventing acquisition within a tree-tag ] After going through the archives my third (and hopefully better tested) trial with this :-) In your Extensions directory create an external python method with this code: def prev_acqu(self, prop): if self.__dict__.has_key(prop): return getattr(self,prop) else: return '' add it with the id prev_acqu (or anything else you like better) to a folder in the acquisition path. In your tree code do: If you choose a different id, of course you have to take it here, too. Apologies again for jumping into this thread without exactly verifying my code examples yesterday, thomas From nils@jeppe.de Fri Mar 3 13:25:03 2000 From: nils@jeppe.de (Nils Jeppe) Date: Fri, 3 Mar 2000 14:25:03 +0100 (CET) Subject: [Zope] can I stop tree moving page view In-Reply-To: <38BFA0C3.57C19548@open.ac.uk> Message-ID: I don't think I understand what you want, at all. Do you mean you want to only refresh a aprtial html page? Then that's not possible, sorry. Nils On Fri, 3 Mar 2000, Andy Heath wrote: > Another tree difficulty: > > I have a tree widget in a page. > When branches are expanded or collapsed the > view you get in the browser moves. > > Now I know this is somewhat unavoidable but > can anyone think of a way to limit the effect > for example some way of making the text above > the newly-expanded bit stay still and just > re-rendering that below instead of shifting > everything around? > > Andy > -- > ------------------------------------------------- > Andy Heath a.k.heath@open.ac.uk > The Open University +44 (0) 114 2885738 > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > -- "Fool me seven times, shame on you. Fool me eight or more times, shame on me." -- Amy From a.k.heath@open.ac.uk Fri Mar 3 14:30:19 2000 From: a.k.heath@open.ac.uk (Andy Heath) Date: Fri, 03 Mar 2000 14:30:19 +0000 Subject: [Zope] can I stop tree moving page view References: Message-ID: <38BFCC7B.A933F8DC@open.ac.uk> > I don't think I understand what you want, at all. > > Do you mean you want to only refresh a aprtial html page? Then that's not > possible, sorry. Forget it, its a mad idea. I was dreaming up some mad-brained scheme using targets (so eg each expansion could ensure that the very top of the page was visible in the browser) but its crazy. I need a weekend. Andy > > Nils > > On Fri, 3 Mar 2000, Andy Heath wrote: > > > Another tree difficulty: > > > > I have a tree widget in a page. > > When branches are expanded or collapsed the > > view you get in the browser moves. > > > > Now I know this is somewhat unavoidable but > > can anyone think of a way to limit the effect > > for example some way of making the text above > > the newly-expanded bit stay still and just > > re-rendering that below instead of shifting > > everything around? > > > > Andy > > -- > > ------------------------------------------------- > > Andy Heath a.k.heath@open.ac.uk > > The Open University +44 (0) 114 2885738 > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > -- > "Fool me seven times, shame on you. Fool me eight or more times, shame on me." > -- Amy > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738 From tseaver@palladion.com Fri Mar 3 13:55:17 2000 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 03 Mar 2000 07:55:17 -0600 Subject: [Zope] Install problem, please help... References: <200003031203.EAA28454@zope.codeit.com> Message-ID: <38BFC445.420CBCDE@palladion.com> "Eric L. Walstad" wrote: > > Hello all - > > I am unable to connect to my Zope 2. > I am running Linux 2.2.14, with Apache > I am new to Zope and pretty new to Linux > > I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" > I entered ./start > It worked... for a while... until I shutdown... > When I restarted, Zope wasn't available. I went back to the Zope directory > and tried ./start again but the script seems to lock up after displaying the > following: > ------ > PROBLEM(100) ZServer Computing default hostname > ------ > INFO(0) Zserver Medusa (V1.13) started at ... > Hostname: frankenstein.energywright.com > Port:8080 > > ------ > INFO(0) ZServer FTP server starte at ... > Authorizer:None > Hostname: frankenstein.energywright.com > Port:8021 > ------ > INFO(0) ZServer PCGI server started at ... > Unix Socket: /usr/local/Zope/var/pcgi.soc > ------ > INFO(0) ZServer Monitor Server (V1.5)started on port 8099 That is not "locked up" -- that is the normal "blocked waiting for requests" state that you see whenever you start Zope with the "-D" flag. > > When I try to connect to http://192.168.1.100:8080/manage I get a "File does > not exist: /home/httpd/html/manage" error in my Apache error_log Try "http://frankenstein.energywright.com:8080" -- what do you see? Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From gallego@goliat.ugr.es Fri Mar 3 02:25:11 2000 From: gallego@goliat.ugr.es (gallego@goliat.ugr.es) Date: Fri, 3 Mar 2000 02:25:11 Subject: [Zope] Feed A Man Fish You'll Feed Him Forever, You Know The Rest. Message-ID: <193.404958.247538@www.leapofaith.com> FREE NetLinks Guaranteed To SAVE You MONEY! Please be advised, links presented in this email have been sent E-nonymously without the knowledge or consent of the domain owners. The Internet is World Public Domain, which can, and should be shared freely. Information Advocates Association "Knowledge is Power" Here are a few sites we found very useful. ----------------------------------------------------------------- ----------------------------- John McCain For President: http://www.mccain2000.com Now who is better to lead our country into the 20th Century than Senator John McCain? We can either hide behind a Bush and continue being a puppet to the system or reclaim our name and elect John McCain. Beware of Internet Scams: http://www.rcmp-grc.gc.ca If you are concerned with email ads or websites offering opportunities or programs that may seem suspicious, report it to this site. They have the latest and most common scams circulated on the net. Free Internet: http://www.thesimpsons.com Don't want to continue paying $19.95 or more just to Surf the Net? This site offers the future of the Internet, Today. Never pay to Surf again. In this case, Free Does Mean Free! Cheap Phone Rates: http://www.voicelinkinc.com We found a .04cents long distance rate, no switching, no fees and low international rates using 10-10 access numbers. If you can handle the 10 minute minimum, you're in business. Invention Fraud: http://www.inventorfraud.com If you are trying to submit your invention for patent be very cautious. The site list a number of companies that are out to get your money and ones that provide viable patent services. FREE 800 Number & Voice Mail: http://www.ureach.com Here you can get a FREE voicemail account and 800 number. Just sign up for the service. FREE Website Development: http://www.bigstep.com This site offers an opportunity for you to develop and design your very own website for FREE! They offer different ready to use formats that will assist you in the development of your site. Know Your Schedule: http://www.anyday.com This site offers an online personal calendar including a private address book and events schedule that can be accessed from anywhere. You also have the option of sharing your schedule with colleagues via the Net. Need To Send A Large File: http://www.whalemail.com The is a great service for sending large files up to 50 megs, your regular ISP just can't handle that kind of load. Go ahead, transfer you entire C Drive to the ones you love most. It's even FREE! Nice guys huh? Internet Service Providers: http://www.thelist.com Don't like the service you've been getting from your present Internet Service Provider? Take a look at the more than 8,000 ISP's you have to choose from. You're Not Stuck! Nothing But FREE Stuff: http://www.thefreesite.com Now who doesn't like Free Stuff that is really Free? This site is a ton-of-fun and there is something for everyone. It offers a multitude of freebies and we are sure you may find something that interest you. Free Fax Service: http://www.fax4free.com Here you can get a free fax phone number and receive your faxes on your computer. You can print your faxes out on your printer. Print quality is much higher than normal fax machines. Looking For A Job or Career? http://www.jobfinders.com This site is very user friendly. If you are in need of searching for that one job you can't seem to locate anywhere else, this site is up to the challenge. International Directory Assistance Online: http://www.infobel.com If you have ever gotten International Directory Assistance from AT&T then you are aware that you can easily pay up to $9.00 dollars for that information. Here is an online solution and it's free. Get Directions Anywhere: http://www.mapquest.com It does not matter where you're trying to go, this site will provide with complete details and instructions on how to get there. See for yourself. Traveling has never been easier! Looking For Someone? http://www.discreetdatasystems.com Yes, this site will assist you in finding that someone special or not so special, whatever the case maybe. You will need to have some basic information regarding your search, but the site does deliver. From Brian@digicool.com Fri Mar 3 14:29:28 2000 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 3 Mar 2000 09:29:28 -0500 Subject: [Zope] Security flaw in Zope FTP server? Message-ID: <613145F79272D211914B0020AFF6401914DE5D@gandalf.digicool.com> > I was running a security scanner (nessus) on my webserver > tonight, and it came > back with port 8021 having an ftp server which "closes the connection > when USER, PASS, or HELP is given with a too long argument." It says > "This is probably due to a buffer overflow" Is this a false positive? > Or is this something to actually be concerned about? Because the FTP server code is in Python, the chances of this being a real classic "buffer overflow" (of the sort that can start to overwrite unintended memory) is slim (I expect that the worst you could do is send something so long that it consumes all available memory and causes Python to raise a MemoryError). We should look into the handling of those commands though. I don't manage the FTP code so I don't have enough deep Zen to know what the "correct" behavior is, but it seems that if it's giving a false positive then something is probably not being handled totally correctly. Can you make an post in the Collector about this so that it doesn't get lost in the flow of the list? Thanks! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From Brian@digicool.com Fri Mar 3 14:35:15 2000 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 3 Mar 2000 09:35:15 -0500 Subject: [Zope] bobobase_modification_time one day back? Message-ID: <613145F79272D211914B0020AFF6401914DE5E@gandalf.digicool.com> > > Thanks for investigating this - because TimeStamp objects are > > used in the object database, I don't want to make any changes > > to this yet until I can talk to Jim and verify that the fix > > won't have any impact on ZODB code (mon. morning probably). > > That's why I didn't suggest a fix in my first analysis. I don't know > anything about the internals of the Zope object data base (hey, I > learned about Zope only about two months ago, so what do you > expect?). So I don't even know whether it's just a problem of > displaying the wrong date, or whether wrong time stamps are > written to the data base. In the latter case, most people would > prefer to have that bug fix yesterday. Inconsistent dates in a data > base are a serious problem, and it's getting worse as longer it lasts. FWIW, I'm 99% sure that it's just a formatting/display problem. I'm just a big chicken about making assumptions about code I'm not intimately familiar with :^) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com From tseaver@palladion.com Fri Mar 3 14:21:46 2000 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 03 Mar 2000 08:21:46 -0600 Subject: [Zope] bobobase_modification_time one day back? References: <200003031203.EAA28454@zope.codeit.com> Message-ID: <38BFCA7A.FA7B4D29@palladion.com> Brian Lloyd > > > Function TimeStamp_yad(int y) in > > zope-2.1.4-src\lib\python\zodb\TimeStamp.c > > expects a 1900 based year (i.e. 0 = 1900, 2000=100, etc.), > > for positive agruments, when computing (y+300)/400. > > > > TimeStamp_abst(int y, int mo, int d, int m, int s) > > seems to expect a 0 based year, on the other hand. > > > > l = y%4==0 && (y%100 != 0 || y%400==0) > > > > But it gets called with a 1900 based year in line 290 in > > function TimeStamp_timeTime( > > > > TimeStamp_abst(TimeStamp_y-1900, TimeStamp_m- > > 1, TimeStamp_d-1, > > Thanks for investigating this - because TimeStamp objects are > used in the object database, I don't want to make any changes > to this yet until I can talk to Jim and verify that the fix > won't have any impact on ZODB code (mon. morning probably). You might also look at TimeStamp_yad() (line 117 of the same file in 2.1.4):: static double TimeStamp_yad(int y) { double d, s; d=(y-1)*365; if (y > 0) { s=1.0; y=y-1; } else { s=-1.0; y = -y; } return d+s*(y/4-y/100+(y+300)/400); } I _think_ the last line should be:: return d+s*((y/4)-(y/100)+(y/400)); "every fourth year, except century years, except every fourth century". Perhaps the original was "working" to compensate the base 1900 vs. base 0? Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com From jbb@spyderlab.com Fri Mar 3 14:41:14 2000 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 3 Mar 2000 09:41:14 -0500 (EST) Subject: [Zope] mod_pcgi2 for whole site Message-ID: Weirdness... I've almost got mod_pcgi2 setup to serve my entire site fronted by Apache but I've run into one final snag. When I access the home page of the site I notice that the BASE HREF returned by Zope is saying its http://XXX/index.html/ Apparently Apache is appending the Index name for the folder? I tried Options -Indexes but this didn't solve it. Anyone have a valid configuration for this situation that I can take a look at? Thanks, ------- Jordan Baker -- jbb@spyderlab.com From kid@kendermedia.com Fri Mar 3 14:41:36 2000 From: kid@kendermedia.com (Kevin Dangoor) Date: Fri, 3 Mar 2000 09:41:36 -0500 Subject: [Zope] References: Message-ID: <009e01bf851e$94e7de40$7b5addc7@laptop> ----- Original Message ----- From: "Jeff Hoffman" To: "Chui Tey" Cc: Sent: Friday, March 03, 2000 1:11 AM Subject: Re: [Zope] > > > is equivalent to: > > > > This says, "Include the variable with the name myMethod." It's also worth mentioning that when you do this to call DTML Methods and External Methods some things automatically get passed in. When you use the expression form, these things are not passed in. The most important thing is that the namespace is passed along to DTML Methods and this() and REQUEST are passed along to external methods. I haven't looked at the python source to know exactly what is passed in these cases, but you generally will get what you want if you do this for DTML Methods: and this for external/python methods: Kevin From phd@phd.russ.ru Fri Mar 3 14:53:46 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Fri, 3 Mar 2000 14:53:46 +0000 (GMT) Subject: [Zope] mod_pcgi2 for whole site In-Reply-To: Message-ID: On Fri, 3 Mar 2000, Jordan B. Baker wrote: > When I access the home page of the site I notice that the BASE HREF > returned by Zope is saying its http://XXX/index.html/ > > Apparently Apache is appending the Index name for the folder? This has nothing with mod_pcgi2 or Apache - it is Zope who adds BASE. May be you can eliminate it with SiteAccess. It seems you are trying to do virtual hosting with Apache, and Zope is not capable yet of virtual hosting, but SiteAccess is one method to helps. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From Alessandro.Bottoni@think3.com Fri Mar 3 15:10:32 2000 From: Alessandro.Bottoni@think3.com (Alessandro Bottoni) Date: Fri, 3 Mar 2000 16:10:32 +0100 Subject: [Zope] Any sample web for testing Zope after installation? Message-ID: <6D8A17398E28D3119F860090274DD7DB498515@pces.cadlab.it> As a post-installation test tool, it would be great to have a sample DTML web site. Does anybody have such a small collection of DTML pages to donate to the public domain? TIA -------------------------------- Alessandro Bottoni (Alessandro.Bottoni@Think3.com) (alessandro.bottoni@libero.it) Web Programmer Think3 inc. (www.think3.com) From jace@lunateks.com Fri Mar 3 15:33:57 2000 From: jace@lunateks.com (Kiran Jonnalagadda) Date: Fri, 03 Mar 2000 21:03:57 +0530 Subject: [Zope] Trouble with dtml-in Message-ID: <38BFDB65.3AFA8796@lunateks.com> I'm having trouble with using dtml-in in batch mode. A syntax like this: Works properly when qs=1 or qs=0 (treated as 1). Anything more than 1 causes it to ignore the "size=1" setting and loop through all the elements in the list. The "next" and "previous" parameters exhibit this problem too. I can't understand what I'm doing wrong. I'm using the exact code as in the DTML reference (except for the size of 1). I upgraded from Zope-2.1.1 to 2.1.4 to see if this problem had been fixed, but no luck yet. The only way I can find to get around this is to remove the size=1 parameter and use a to make the batch work. -- Kiran Jonnalagadda http://lunateks.com baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/'; sync; sync; sleep 15; done From alex@mop.no Fri Mar 3 15:56:17 2000 From: alex@mop.no (Alexander Staubo) Date: Fri, 3 Mar 2000 16:56:17 +0100 Subject: [Zope] Zope needs this (and Dynamo has it) Message-ID: A colleague insightfully commented that while Dynamo has a high bullshit factor, this is the reason it sells. Take a look at this screen shot: http://www.atg.com/news/images/screen-shots/systemconsole.gif Dynamo is an expensive, closed product with a promotional web site that smells like a million-dollar penthouse office space, replete with glass walls and postmodern sculptures. It smells a bit funky, and the people are possibly evil, but the product is of high quality, and it sells. And because it sells, many people use it, and because so many people use it, skilled developers exist in large numbers. Unfortunately, I can't say the same of Zope. Speaking of which, SNMP support for Zope would have been nice. Then we could import the numbers needed to build monitors like the one featured in the screen shot. -- Alexander Staubo http://alex.mop.no/ "Do not go gentle into that good night/old age should rave and burn against the close of day/Rage, rage against the dying of the light." --Dylan Thomas From phd@phd.russ.ru Fri Mar 3 16:02:32 2000 From: phd@phd.russ.ru (Oleg Broytmann) Date: Fri, 3 Mar 2000 16:02:32 +0000 (GMT) Subject: [Zope] Trouble with dtml-in In-Reply-To: <38BFDB65.3AFA8796@lunateks.com> Message-ID: On Fri, 3 Mar 2000, Kiran Jonnalagadda wrote: > > > Why do you need a "loop" by 1 element? Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN. From akuchlin@mems-exchange.org Fri Mar 3 16:10:08 2000 From: akuchlin@mems-exchange.org (Andrew M. Kuchling) Date: Fri, 3 Mar 2000 11:10:08 -0500 (EST) Subject: [Zope] Oedipus 0.06 released In-Reply-To: <109696718@toto.iv> Message-ID: <14527.58336.139880.263320@amarok.cnri.reston.va.us> Tres Seaver writes: >"Andrew M. Kuchling" wrote: >> The exported ZClass product still doesn't seem to work, though; if you >> untar it in a new Zope installation, no Product is added when you >> start up Zope. Anyone else notice this problem? >Hmm. ZClass products aren't automagically imported; when exported, turn into >zexp files, either on the client machine somewhere or in the server's >$ZOPE_HOME/var directory. To install them on another server, on Sorry; I wrote sloppily and shouldn't have said "exported". This is the .tgz file produced when you make a distribution of a ZClass-based product. For that, you do need to restart Zope -- but the new Product never shows up. I haven't yet dug into Zope to see if this feature is broken, or if something else is going on. -- A.M. Kuchling http://starship.python.net/crew/amk/ "Doctor, are you a party to this militaristic nonsense?" "I'm not a party to any kind of nonsense, your Grace." -- The Duke of Forgill and the Doctor, in "Terror of the Zygons" From element@immersivearts.com Fri Mar 3 16:14:00 2000 From: element@immersivearts.com (ed colmar) Date: Fri, 03 Mar 2000 09:14:00 -0700 Subject: [Zope] Finding matches between two lists Message-ID: <3.0.6.32.20000303091400.009538f0@pop.dnvr.uswest.net> Hey all! This question went by last month without a reply, so I am going to try it again. I've also gotten a bit closer to the answer on my own. --------- The layout: Most of my code is in a Python Product, but there is still a bunch of dtml used. I have a class called "person" with a string variable called "name", and a class called "event" with a list variable called "eventnames". Now when a addEventForm is filled out, then the viewEventPage is called, I want all the people listed in "eventnames" to have a link to thier home page if they exist. --------- The DTML attempt: I could never get this to work correctly. Becuase it is looking through two lists, the code causes the "eventnames" to be dispayed once for each person listed.

Featuring people : , ,
--------- The Python attempt: So I tried to change my strategy, and build a method to find the matches, and return the list with the ids (if the person is listed) or a 'None' if they are not listed. I haven't been able to figure out what is going wrong with this. def list_dj_list(self, namelist): """ should return a list of names & IDs from a list of names """ rlist = map(None,self.ids) rlist = filter(lambda x,p=self : p.data[x].validated, rlist) rlist = filter(lambda x,p=self : p.data[x].meta_type == 'SRPersonPost', rlist) rlist = filter(lambda x,p=self : p.data[x].name, rlist) rnames = [] for i in range(len(namelist)): rnamelist = rlist rname = filter(lambda x,p=self,s=namelist[i] : p.data[x].name == s, rnamelist) if len(rnames) == 0: rnames.append('None') elif len(rnames) == 1: rnames.append(rname) else: rnames.append('multiples') return rnames --------- The question: How can this be achieved? I don't have a preferance over dtml or python, but it seems like a python method is the proper way to do it. Thanks for any help! -ed- From ewalstad@energywright.com Fri Mar 3 16:21:02 2000 From: ewalstad@energywright.com (Eric L. Walstad) Date: Fri, 3 Mar 2000 08:21:02 -0800 Subject: [Zope] Install problem, please help... In-Reply-To: <38BFC445.420CBCDE@palladion.com> Message-ID: Thanks Tres, I put a line in my rc.local file so that Zope is started at boot-up and everything seems to be running fine now. I'm not sure why this makes a difference, but it did. Thanks for your response! Eric // -----Original Message----- // From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tres // Seaver // Sent: Friday, March 03, 2000 5:55 AM // To: Eric L. Walstad // Cc: zope@zope.org // Subject: Re: [Zope] Install problem, please help... // // // "Eric L. Walstad" wrote: // > // > Hello all - // > // > I am unable to connect to my Zope 2. // > I am running Linux 2.2.14, with Apache // > I am new to Zope and pretty new to Linux // > // > I installed Python 1.5.2, then installed Zope using "python w_pcgi.py" // > I entered ./start // > It worked... for a while... until I shutdown... // > When I restarted, Zope wasn't available. I went back to the // Zope directory // > and tried ./start again but the script seems to lock up after // displaying the // > following: // > ------ // > PROBLEM(100) ZServer Computing default hostname // > ------ // > INFO(0) Zserver Medusa (V1.13) started at ... // > Hostname: frankenstein.energywright.com // > Port:8080 // > // > ------ // > INFO(0) ZServer FTP server starte at ... // > Authorizer:None // > Hostname: frankenstein.energywright.com // > Port:8021 // > ------ // > INFO(0) ZServer PCGI server started at ... // > Unix Socket: /usr/local/Zope/var/pcgi.soc // > ------ // > INFO(0) ZServer Monitor Server (V1.5)started on port 8099 // // That is not "locked up" -- that is the normal "blocked waiting // for requests" // state that you see whenever you start Zope with the "-D" flag. // // > // > When I try to connect to http://192.168.1.100:8080/manage I // get a "File does // > not exist: /home/httpd/html/manage" error in my Apache error_log // // Try "http://frankenstein.energywright.com:8080" -- what do you see? // // Tres. // -- // ========================================================= // Tres Seaver tseaver@palladion.com 713-523-6582 // Palladion Software http://www.palladion.com // // _______________________________________________ // Zope maillist - Zope@zope.org // http://lists.zope.org/mailman/listinfo/zope // ** No cross posts or HTML encoding! ** // (Related lists - // http://lists.zope.org/mailman/listinfo/zope-announce // http://lists.zope.org/mailman/listinfo/zope-dev ) // From jiva@devware.com Fri Mar 3 17:13:23 2000 From: jiva@devware.com (jiva@devware.com) Date: Fri, 3 Mar 2000 10:13:23 -0700 Subject: [Zope] Security flaw in Zope FTP server? In-Reply-To: <613145F79272D211914B0020AFF6401914DE5D@gandalf.digicool.com> References: <613145F79272D211914B0020AFF6401914DE5D@gandalf.digicool.com> Message-ID: <20000303101321.D31228@devware.com> On Fri, Mar 03, 2000 at 09:29:28AM -0500, Brian Lloyd wrote: > We should look into the handling of those commands though. I don't > manage the FTP code so I don't have enough deep Zen to know what > the "correct" behavior is, but it seems that if it's giving a > false positive then something is probably not being handled > totally correctly. Can you make an post in the Collector about > this so that it doesn't get lost in the flow of the list? Sure! How do I do that? -- If we suffer tamely a lawless attack upon our liberty, we encourage it, and involve others in our doom. -- Samuel Adams From Brian@digicool.com Fri Mar 3 16:53:22 2000 From: Brian@digicool.com (Brian Lloyd) Date: Fri, 3 Mar 2000 11:53:22 -0500 Subject: [Zope] Security flaw in Zope FTP server? Message-ID: <613145F79272D211914B0020AFF6401914DE5F@gandalf.digicool.com> http://classic.zope.org:8080/Collector/ Thanks! Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com > -----Original Message----- > From: jiva@devware.com [mailto:jiva@devware.com] > Sent: Friday, March 03, 2000 12:13 PM > To: Brian Lloyd > Cc: zope@zope.org > Subject: Re: [Zope] Security flaw in Zope FTP server? > > > On Fri, Mar 03, 2000 at 09:29:28AM -0500, Brian Lloyd wrote: > > We should look into the handling of those commands though. I don't > > manage the FTP code so I don't have enough deep Zen to know what > > the "correct" behavior is, but it seems that if it's giving a > > false positive then something is probably not being handled > > totally correctly. Can you make an post in the Collector about > > this so that it doesn't get lost in the flow of the list? > > Sure! How do I do that? > > -- > If we suffer tamely a lawless attack upon our liberty, we > encourage it, > and involve others in our doom. > -- Samuel Adams > From msimcich@accesstools.com Fri Mar 3 16:40:53 2000 From: msimcich@accesstools.com (Michael Simcich) Date: Fri, 3 Mar 2000 08:40:53 -0800 Subject: [Zope] Any sample web for testing Zope after installation? In-Reply-To: <6D8A17398E28D3119F860090274DD7DB498515@pces.cadlab.it> Message-ID: <002101bf852f$3e07a9f0$0100a8c0@pinol1.sfba.home.com> If I understand you properly, then I think you'll find the Squishdot product perfect for experimenting with a "real" zope site. Squishdot is a product that emulates the functionality of Slashdot. You can read about Squishdot and download it at http://www.zope.org/Members/butchland/Squishdot Make sure you install the TinyTable product too for the full tour. Michael Simcich AccessTools -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Alessandro Bottoni Sent: Friday, March 03, 2000 7:11 AM To: 'Zope Mail List (Messages)' Subject: [Zope] Any sample web for testing Zope after installation? As a post-installation test tool, it would be great to have a sample DTML web site. Does anybody have such a small collection of DTML pages to donate to the public domain? TIA -------------------------------- Alessandro Bottoni (Alessandro.Bottoni@Think3.com) (alessandro.bottoni@libero.it) Web Programmer Think3 inc. (www.think3.com) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From mak@kha0s.org Fri Mar 3 16:47:34 2000 From: mak@kha0s.org (M. Adam Kendall) Date: Fri, 03 Mar 2000 11:47:34 -0500 (EST) Subject: [Zope] Zope needs this (and Dynamo has it) In-Reply-To: Message-ID: On 03-Mar-2000 Alexander Staubo wrote: > are possibly evil, but the product is of high quality, and it sells. And > because it sells, many people use it, and because so many people use it, > skilled developers exist in large numbers. Unfortunately, I can't say > the same of Zope. Funny, I had never heard of Dynamo before you mentioned it here. Fortunately, I can't say the same of Zope ;) I think you underestimate the actual numbers of people and sites that use Zope. I also think that you are creating FUD so that you can get a feature you want to see implemented by the folks at DC. Truly bad taste. > Speaking of which, SNMP support for Zope would have been nice. Then we > could import the numbers needed to build monitors like the one featured > in the screen shot. Please no. There is NO reason to pollute Zope with something as insecure as SNMP. From tjg@avalongroup.net Fri Mar 3 17:09:35 2000 From: tjg@avalongroup.net (Timothy Grant) Date: Fri, 03 Mar 2000 09:09:35 -0800 Subject: [Zope] SQLSession and Performance issues References: <20000302224622.86131.qmail@hotmail.com> <38BEF1BC.D45A09DF@exceptionalminds.com> <38BF8DA0.AD6E6C07@tm.ee> Message-ID: <38BFF1CF.5F41E0F8@exceptionalminds.com> Hannu Krosing wrote: > To build a dict in DTML, try something like this: > > > > > > > > [] > > > > > Plain python assignment won't work, as a "=" in python is a statement, > and statements are not supported, only function calls. > > to remove a key, use Aha! the missing piece of the puzzle, thanks so much for your time and the enlightenment. It is really appreciated.. -- Stand Fast, tjg. Chief Technology Officer tjg@exceptionalminds.com Red Hat Certified Engineer www.exceptionalminds.com Avalon Technology Group, Inc. (503) 246-3630 >>>>>>>>>>>>Linux...Because rebooting isn't normal<<<<<<<<<<<< From tony.mcdonald@ncl.ac.uk Fri Mar 3 17:11:04 2000 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Fri, 3 Mar 2000 17:11:04 +0000 Subject: [Zope] 'helper' classes in External Methods Message-ID: Can someone give me a pointer to what these helper classes actually do? Can I use them to setup lists and dictionaries that will be used over the lifetime of the Zope server? This is an example from an external method that Pavlos posted a while back. class MCQ: ''' helper class for MCQ system''' def __init__(self, score): ''' constructor''' self.score = 0 self.total_score = 0 What I would like to do is load up a template_lookups dictionary with quite a few entries; for template_id in self.Actors.RENDER.objectIds(): renderer = eval("self.Actors.RENDER.%s" % template_id) template_lookups[template_id] = renderer Thing is, I need access to the ZODB in one of my methods later in the module and so the above code doesn't work (too many 'selfs'!). Anyone got any ideas? tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 From shalabh@pspl.co.in Fri Mar 3 17:19:14 2000 From: shalabh@pspl.co.in (Shalabh Chaturvedi) Date: Fri, 3 Mar 2000 22:49:14 +0530 Subject: [Zope] Using Date format string Message-ID: <006601bf8534$995659f0$a602a8c0@intranet.pspl.co.in> Reading the howto: http://www.zope.org/Members/AlexR/CustomDateFormats I tried this:
The surpizing output: 2000/02/21 20-February-2000 The question thus: Why are the two different? Anyone? Thanks, Shalabh _________________________ Shalabh Chaturvedi Persistent Systems Private Limited Pune, India email: shalabh@pspl.co.in url: http://www.eusersolutions.com ICQ: 43284067 From jbb@spyderlab.com Fri Mar 3 17:38:59 2000 From: jbb@spyderlab.com (Jordan B. Baker) Date: Fri, 3 Mar 2000 12:38:59 -0500 (EST) Subject: [Zope] mod_pcgi2 for whole site In-Reply-To: Message-ID: On Fri, 3 Mar 2000, Oleg Broytmann wrote: > This has nothing with mod_pcgi2 or Apache - it is Zope who adds BASE. > May be you can eliminate it with SiteAccess. It seems you are trying to do > virtual hosting with Apache, and Zope is not capable yet of virtual > hosting, but SiteAccess is one method to helps. Well, I am doing Virtual Hosting via Apache, but I'm only running one site per instance of Zope. Isn't this possible with pure mod_pcgi2? BTW, the weird thing is that if I change the Location to /z it works fine (ie. no index.html is appended). Here's the relevant section of my httpd.conf: ServerAdmin webmaster@torontoorganics.com ServerName torontoorganics.com DocumentRoot /home/torontoorganics/html ErrorLog /tmp/logs/error_log CustomLog /tmp/logs/access_log combined # DUH -- try to get rid of index.html -- doesn't work Options -Indexes PCGI_MODULE_PATH /usr/local/zope/lib/python/Zope PCGI_PUBLISHER /usr/local/zope/pcgi/pcgi_publisher.py # Site specific mod_pcgi2 configuration PCGI_SOFTWARE_NAME Zope PCGI_SOCKET_FILE /home/bobweber/zope/var/pcgi.soc PCGI_PID_FILE /home/bobweber/zope/var/pcgi.pid PCGI_ERROR_LOG /home/bobweber/zope/var/pcgi.log PCGI_DISPLAY_ERRORS 1 SetHandler pcgi-handler PCGI_ROOT / PCGI_SetEnv SiteRootPATH / Thanks, -jordan. ------- Jordan Baker -- jbb@spyderlab.com From mj@digicool.com Fri Mar 3 17:31:19 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 3 Mar 2000 18:31:19 +0100 Subject: [Zope] Re: [Zope-Annce] Web page comparing Zope with Frontier References: <38bf415d.natsoft@natsoft.com.my> Message-ID: <008d01bf8536$49581220$21172ed5@arnhem.chello.nl> From: > I am compiling statistics on the growth of Zope and Frontier on the > internet. Visit this page to view the phenomenal growth of Zope: > > It grew threefold in January 2000 for example. > > http://webfeet.editthispage.com/frontier Note that the servers listed as runinng Zope on Netcraft, are those that run straight ZServer. Those sites that run Zope behind Apache, IIS, Zeus, or any other webserver, will be listed under those webservers. So, a small percentage of the number of Apache sites on the web, runs Zope. From my personal expirience, I find that a lot more people run Zope behind Apache, instead of pure ZServer. So, the number of Zope sites is a significant factor higher than the 300 listed by Netcraft. For an example, go to: http://www.netcraft.com/whats/?host=www.zope.org You'll see that it is listed as running Apache (which it is). Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From jwashin@vt.edu Fri Mar 3 17:34:51 2000 From: jwashin@vt.edu (Jim Washington) Date: Fri, 03 Mar 2000 12:34:51 -0500 Subject: [Zope] Finding matches between two lists References: <3.0.6.32.20000303091400.009538f0@pop.dnvr.uswest.net> Message-ID: <38BFF7BB.8EA2DA2B@vt.edu> Hi, ed. I think I am a bit dense today, so could not quite understand completely what you are doing, but If you want to find matches between lists, there is a cool thing in Python that can possibly help you. Let's say I have two lists, list1 and list2, and I want to know what in list1 is in list2, which is I think what you are going for. list1 = ['n', 'b', 'r'] list2 = ['f', 'd', 'b'] def intersect(lista, listb): tmp = [] for anitem in lista: #iterate through lista if (anitem in listb): #check to see if the item is in listb. This is the cool thing. tmp.append(anitem) #if there, append to the temp list return tmp #return the temp list print intersect(list1, list2) #should be ['b'] If I want no dupes, (if 'b' is in list1 twice, it will be returned twice) I probably would use a dictionary instead of a list and return the keys, e.g, def intersectnodupes(lista, listb): tmp = {} for anitem in lista: #iterate through lista if (anitem in listb): #check to see if the item is in listb. This is the cool thing. tmp[anitem] = 1 #if there, throw it into the doct tmp1 = tmp.keys() #get the keys (arbitrary order, alas!) tmp1.sort() #the keys are in arbitrary order no longer return tmp1 #return the unduplicated list In DTML, you can use the 'if athing in alist' thing too: Regards, -- Jim Washington ed colmar wrote: > > Hey all! > > This question went by last month without a reply, so I am going to try it > again. I've also gotten a bit closer to the answer on my own. > > --------- > > The layout: > > Most of my code is in a Python Product, but there is still a bunch of dtml > used. > > I have a class called "person" with a string variable called "name", and > a class called "event" with a list variable called "eventnames". > > Now when a addEventForm is filled out, then the viewEventPage is called, I > want all the people listed in "eventnames" to have a link to thier home > page if they exist. > > --------- > > The DTML attempt: > > I could never get this to work correctly. Becuase it is looking through > two lists, the code causes the "eventnames" to be dispayed once for each > person listed. > >

Featuring people : > > > > > > sequence-item>, > , > > > > > >
> > --------- > > The Python attempt: > > So I tried to change my strategy, and build a method to find the matches, > and return the list with the ids (if the person is listed) or a 'None' if > they are not listed. I haven't been able to figure out what is going wrong > with this. > > def list_dj_list(self, namelist): > """ should return a list of names & IDs from a list of names > """ > rlist = map(None,self.ids) > rlist = filter(lambda x,p=self : p.data[x].validated, rlist) > rlist = filter(lambda x,p=self : p.data[x].meta_type == > 'SRPersonPost', rlist) > rlist = filter(lambda x,p=self : p.data[x].name, rlist) > rnames = [] > for i in range(len(namelist)): > rnamelist = rlist > rname = filter(lambda x,p=self,s=namelist[i] : p.data[x].name > == s, rnamelist) > if len(rnames) == 0: > rnames.append('None') > elif len(rnames) == 1: > rnames.append(rname) > else: > rnames.append('multiples') > > return rnames > > --------- > > The question: > > How can this be achieved? I don't have a preferance over dtml or python, > but it seems like a python method is the proper way to do it. > > Thanks for any help! > > -ed- From tom.deprez@uz.kuleuven.ac.be Fri Mar 3 17:43:15 2000 From: tom.deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 03 Mar 2000 18:43:15 +0100 Subject: [Zope] CatalogAware, external method manage_afterAdd Message-ID: <3.0.6.32.20000303184315.0093e620@poirot> Hi, I'm once again trying to get further in my test products. * I've created a catalogAware ZClass, called KBItem * KBItem contains an external method with id manage_afterAdd Now, I can add KBItem instances in Zope without problems, BUT! when having a ZCatalog inside a folder with the id Catalog and then try to create a KBItem instance, I get following error (where testje is the id of the KBItem I try to create) : Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: Uncatalog of absent id 'TEST_Folder/testje' Help! I don't know what I'm doing wrong or what is happening! What does it mean and what can I do? Thanks in advance, Tom. From jsanford@atinucleus.com Fri Mar 3 17:53:56 2000 From: jsanford@atinucleus.com (Jim Sanford) Date: Fri, 3 Mar 2000 11:53:56 -0600 Subject: [Zope] Finding matches between two lists References: <3.0.6.32.20000303091400.009538f0@pop.dnvr.uswest.net> Message-ID: <008701bf8539$721a2790$29a8efd0@atinucleus.com> if you have 2 queries one of which returns tuples containing events and usernames, and the second returning a tuple with the user's URL, this should work: . . . . . . __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________ ----- Original Message ----- From: ed colmar To: Sent: Friday, March 03, 2000 10:14 AM Subject: [Zope] Finding matches between two lists Hey all! This question went by last month without a reply, so I am going to try it again. I've also gotten a bit closer to the answer on my own. --------- The layout: Most of my code is in a Python Product, but there is still a bunch of dtml used. I have a class called "person" with a string variable called "name", and a class called "event" with a list variable called "eventnames". Now when a addEventForm is filled out, then the viewEventPage is called, I want all the people listed in "eventnames" to have a link to thier home page if they exist. --------- The DTML attempt: I could never get this to work correctly. Becuase it is looking through two lists, the code causes the "eventnames" to be dispayed once for each person listed.

Featuring people : , ,
--------- The Python attempt: So I tried to change my strategy, and build a method to find the matches, and return the list with the ids (if the person is listed) or a 'None' if they are not listed. I haven't been able to figure out what is going wrong with this. def list_dj_list(self, namelist): """ should return a list of names & IDs from a list of names """ rlist = map(None,self.ids) rlist = filter(lambda x,p=self : p.data[x].validated, rlist) rlist = filter(lambda x,p=self : p.data[x].meta_type == 'SRPersonPost', rlist) rlist = filter(lambda x,p=self : p.data[x].name, rlist) rnames = [] for i in range(len(namelist)): rnamelist = rlist rname = filter(lambda x,p=self,s=namelist[i] : p.data[x].name == s, rnamelist) if len(rnames) == 0: rnames.append('None') elif len(rnames) == 1: rnames.append(rname) else: rnames.append('multiples') return rnames --------- The question: How can this be achieved? I don't have a preferance over dtml or python, but it seems like a python method is the proper way to do it. Thanks for any help! -ed- _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From jsanford@atinucleus.com Fri Mar 3 17:56:46 2000 From: jsanford@atinucleus.com (Jim Sanford) Date: Fri, 3 Mar 2000 11:56:46 -0600 Subject: [Zope] Using Date format string References: <006601bf8534$995659f0$a602a8c0@intranet.pspl.co.in> Message-ID: <008d01bf8539$d77e1e20$29a8efd0@atinucleus.com> The "%d-%B-%Y" formatting converts to Zulu time (GMT). ----- Original Message ----- From: Shalabh Chaturvedi To: zope Sent: Friday, March 03, 2000 11:19 AM Subject: [Zope] Using Date format string Reading the howto: http://www.zope.org/Members/AlexR/CustomDateFormats I tried this:
The surpizing output: 2000/02/21 20-February-2000 The question thus: Why are the two different? Anyone? Thanks, Shalabh _________________________ Shalabh Chaturvedi Persistent Systems Private Limited Pune, India email: shalabh@pspl.co.in url: http://www.eusersolutions.com ICQ: 43284067 _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From shalabh@pspl.co.in Fri Mar 3 18:16:10 2000 From: shalabh@pspl.co.in (Shalabh Chaturvedi) Date: Fri, 3 Mar 2000 23:46:10 +0530 Subject: [Zope] CatalogAware, external method manage_afterAdd References: <3.0.6.32.20000303184315.0093e620@poirot> Message-ID: <00cc01bf853c$8d924a90$a602a8c0@intranet.pspl.co.in> Hi Tom, This might be because the CatalogAware class uses the manage_afterAdd hook itself (CatalogAwareness.py). In _your_ manage_afterAdd(self, item, container), try this (untested): def manage_afterAdd(self, item, container): # do whatever want to CatalogAware.manage_afterAdd(self, item, container) Hope this works. Shalabh From tom.deprez@uz.kuleuven.ac.be Fri Mar 3 18:34:13 2000 From: tom.deprez@uz.kuleuven.ac.be (Tom Deprez) Date: Fri, 03 Mar 2000 19:34:13 +0100 Subject: [Zope] CatalogAware, external method manage_afterAdd In-Reply-To: <00cc01bf853c$8d924a90$a602a8c0@intranet.pspl.co.in> References: <3.0.6.32.20000303184315.0093e620@poirot> Message-ID: <3.0.6.32.20000303193413.008ff130@poirot> Great idea! However, no I get this error : Zope has encountered an error while publishing this resource. Error Type: NameError Error Value: CatalogAware Do I've to place somewhere an import of the CatalogAwareness library? I'm afraid my knowledge of Python is to low to solve this correctly. Any ideas? Tom. At 23:46 03/03/2000 +0530, Shalabh Chaturvedi wrote: >Hi Tom, > >This might be because the CatalogAware class uses the manage_afterAdd hook >itself (CatalogAwareness.py). > >In _your_ manage_afterAdd(self, item, container), try this (untested): > >def manage_afterAdd(self, item, container): > # do whatever want to > CatalogAware.manage_afterAdd(self, item, container) > >Hope this works. > >Shalabh > > From picasso@videotron.ca Fri Mar 3 18:20:08 2000 From: picasso@videotron.ca (Oscar Picasso) Date: Fri, 03 Mar 2000 13:20:08 -0500 Subject: [Zope] Changing superuser password (Quest) Message-ID: <00030313291300.00929@modemcable215.47-200-24.mtl.mc.videotron.net> Hi, I installed Zope 2.1.4 on my RedHat 6.1. I wanted to change the password given by the installer. I tried : python zpasswd.py -p=mynewpassword access Everything seems ok. I have new file called access which looks like the older one except for the 'password' part. 1 - Do I need to restart zope in order to have the new password be effective. 2 - Even if I restart zope, i cannot use my new password. However if i replace the new file called access by the old one, i can acces to the zope management screen. What have I done wrong? From oluong@mitre.org Fri Mar 3 18:50:55 2000 From: oluong@mitre.org (Oai Luong) Date: Fri, 03 Mar 2000 13:50:55 -0500 Subject: [Zope] error catching Message-ID: <38C0098F.360F9A1B@mitre.org> I'm kind novice in zope, but have learn to work around it. My postgres tables are set up with primary keys and unique index. So if there are duplicate entries it returns from postgres, a nasty error in zope if the submission was unsucessfult, that i have no idea what it is talking about ? is there a way that when the user submits data to the database via form on web site, catch the error if the user try to submit a data to the database that already exists, returned by postgres, and out put an english message saying "your data was not submited because it already exists on the database" instead of that ugly error on the zope end ? thanks to anyone if they can help. From andrew.henshaw@gtri.gatech.edu Fri Mar 3 19:03:27 2000 From: andrew.henshaw@gtri.gatech.edu (Andrew Henshaw) Date: Fri, 3 Mar 2000 14:03:27 -0500 Subject: [Zope] Trying to do something tricky (for me, that is) Message-ID: <3BA3A8B61E4ED211ABB900A0C9615FE639C822@sev-mail.gtri.gatech.edu> Okay, I'm new to Zope (3 days), but I was having such success with some simple things that I thought that I could handle something tricky - I've been working at it for a day now. What I would like to do is present two selections (Division and Team) that are populated from an ODBC connection. I can do the population fine, normally; but the trick is that I'd like to have the Team selection dependent upon the Division selection (on the same web page). I realized that I couldn't do this on a simge form (or can I?), so I've assigned the two selections to two forms. I'm putting the two forms on the same page for aesthetic (stubborness?) reasons. Here's the code for the first form:
Division:
This part works fine. When I submit the form, the same page is regenerated (with the 'division' parameter passed in). One of my many failed attempts with the second form (which is also in 'index_html') is as follows:
Team: my sqlTeamsInDivision has 'division' as its only parameter. When the user first enters the document, he gets an KeyError on 'division'. I understand why this is so (the division parameter doesn't exist yet), but I can't seem to work around it . I tried changing the sql parameter to divisionname and changing the tag to: and the error goes away, but the returned list is just blanks. How should I be handling this? Also, when this form is submitted, it calls TeamSchedule with the 'team' parameter, but I need to also pass the 'division' parameter. How do I do this? Thanks in advance. -- Andrew M. Henshaw Sr. Research Engineer GTRI Electronics Systems Lab (404) 894-2508 From ztf@one.com Fri Mar 3 19:36:56 2000 From: ztf@one.com (Zach Frey) Date: Fri, 3 Mar 2000 14:36:56 -0500 Subject: [Zope] Installation trouble on Solaris 2.6 Message-ID: Hi all, I'm trying to install Zope from source on a Solaris 2.6 system, and I'm running into problems. When I try "./start", I get the following error: $ ./start $ Traceback (innermost last): File "/opt2/local/zope/Zope-2.1.4-src/z2.py", line 436, in ? exec "import "+MODULE in {} File "", line 1, in ? File "/opt2/local/zope/Zope-2.1.4-src/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/opt2/local/zope/Zope-2.1.4-src/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /opt2/local/zope/Zope-2.1.4-src/lib/python/ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not found I am new to Python, so it's less than obvious to me what is going on here. It looks like the ExtensionClass module is failing to import, but I have no idea how to go about fixing this. [Yes, I know about the precompiled Solaris 2.6 binary. However, I eventually will need to get this running on a Solaris 2.5.1 system. Also, as far as I can tell, the binary release is not set up for Apache integration, which is something I also need to do.] Thanks in advance, Zach Frey From pavlos@gaaros.com Fri Mar 3 20:00:00 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Fri, 3 Mar 2000 15:00:00 -0500 (EST) Subject: [Zope] 'helper' classes in External Methods In-Reply-To: Message-ID: On Fri, 3 Mar 2000, Tony McDonald wrote: > This is an example from an external method that Pavlos posted a while back. > > class MCQ: > ''' helper class for MCQ system''' > def __init__(self, score): > ''' constructor''' > self.score = 0 > self.total_score = 0 > I think it is not a good idea to define classes in external methods. It is better to define them somewhere in Shared (see the directory DC under lib/python/Shared for example) and import them in your external method. import Shared.Tony.helper They can be very handy especially since python is way more elegant and easy for complex logic in relation to DTML. > What I would like to do is load up a template_lookups dictionary with > quite a few entries; > > for template_id in self.Actors.RENDER.objectIds(): > renderer = eval("self.Actors.RENDER.%s" % template_id) > template_lookups[template_id] = renderer > > Thing is, I need access to the ZODB in one of my methods later in the > module and so the above code doesn't work (too many 'selfs'!). > > Anyone got any ideas? Not sure. need some more info. Did you try to use getattr to get to object? tmp=self.Actors.RENDER renderer=getattr(tmp,template_id) What kind of object is template_id? Pavlos From faassen@vet.uu.nl Fri Mar 3 20:00:27 2000 From: faassen@vet.uu.nl (Martijn Faassen) Date: Fri, 3 Mar 2000 21:00:27 +0100 Subject: [Zope] y2kbug - bobobase_modification_time one day back In-Reply-To: References: Message-ID: <20000303210027.A6353@vet.uu.nl> Wolfgang Strobl wrote: > This ist a typical Y2K bug, located in the module TimpeStamp.c, > as I suspected earlier. > > Since nobody followed my hint from earlier this day so far, I took > the opportunity to dig a little deeper, learning how to build and > replace a python extension on the way. People did report this bug elsewhere on the list. Apparently we're waiting until monday when Jim Fulton can take a look at this. They're pretty sure it's just a display problem and not something wrong with the object database, but they want to make sure and check with Jim. Regards, Martijn From tneff@bigfoot.com Fri Mar 3 20:12:27 2000 From: tneff@bigfoot.com (Tom Neff) Date: Fri, 3 Mar 2000 15:12:27 -0500 Subject: [Zope] How to kill that BASE HREF In-Reply-To: <200003032000.MAA03481@zope.codeit.com> Message-ID: If you are sure that you can get along without the BASE HREF in a virtually hosted (or other) Zope page, there is a way to fool the ZPublisher so it doesn't include the obnoxious tag. Just put near the top of your method. This turns out to be enough to fool the fairly droidal scanning code into thinking that no additional BASE tag is needed. Since it's an unknown attribute it should be a total no-op in browsers. Of course they could write a smarter parser in a future release so caveat Zopor, but it works for now. I wish they hadn't relied on that tag to begin with. From andrew.henshaw@gtri.gatech.edu Fri Mar 3 20:53:44 2000 From: andrew.henshaw@gtri.gatech.edu (Andrew Henshaw) Date: Fri, 3 Mar 2000 15:53:44 -0500 Subject: [Zope] Trying to do something tricky (for me, that is) In-Reply-To: <3BA3A8B61E4ED211ABB900A0C9615FE63C9847@sev-mail.gtri.gatech.edu> Message-ID: <3BA3A8B61E4ED211ABB900A0C9615FE639C823@sev-mail.gtri.gatech.edu> Okay, never mind. I figured it out. I needed to use: expr="REQUEST.has_key('division') to determine if the 'division' has been defined. Also, the passing of multiple variables was obvious - just define a hidden input field. Thanks, anyway. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andrew Henshaw Sent: Friday, March 03, 2000 2:03 PM To: zope@zope.org Subject: [Zope] Trying to do something tricky (for me, that is) Okay, I'm new to Zope (3 days), but I was having such success with some simple things that I thought that I could handle something tricky - I've been working at it for a day now. What I would like to do is present two selections (Division and Team) that are populated from an ODBC connection. I can do the population fine, normally; but the trick is that I'd like to have the Team selection dependent upon the Division selection (on the same web page). I realized that I couldn't do this on a simge form (or can I?), so I've assigned the two selections to two forms. I'm putting the two forms on the same page for aesthetic (stubborness?) reasons. Here's the code for the first form:
Division:
This part works fine. When I submit the form, the same page is regenerated (with the 'division' parameter passed in). One of my many failed attempts with the second form (which is also in 'index_html') is as follows:
Team: my sqlTeamsInDivision has 'division' as its only parameter. When the user first enters the document, he gets an KeyError on 'division'. I understand why this is so (the division parameter doesn't exist yet), but I can't seem to work around it . I tried changing the sql parameter to divisionname and changing the tag to: and the error goes away, but the returned list is just blanks. How should I be handling this? Also, when this form is submitted, it calls TeamSchedule with the 'team' parameter, but I need to also pass the 'division' parameter. How do I do this? Thanks in advance. -- Andrew M. Henshaw Sr. Research Engineer GTRI Electronics Systems Lab (404) 894-2508 _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From kid@kendermedia.com Fri Mar 3 20:57:39 2000 From: kid@kendermedia.com (Kevin Dangoor) Date: Fri, 3 Mar 2000 15:57:39 -0500 Subject: [Zope] KM|Net News 1.1 Message-ID: <007c01bf8553$1d6fa8e0$7b5addc7@laptop> KM|Net News is a Zope through-the-web Product that allows you to post news-style articles on your site. 1.1 is easier to install (because it creates its own Catalog and does not have any external methods) and now incorporates linking to external sites for more weblog-style publishing. (KMNN is still different from Squishdot in that there are no discussions attached to the articles and has different features for placement of the articles within the article listings). You can see KMNN 1.1 in action at http://www.byproducts.com KMNN 1.1 also includes a new "contrib" method for trusted people to contribute articles without review. *** KMNN 1.1 requires PythonMethods. *** You can get KMNN here: http://www.zope.org/Members/tazzzzz/kmnn If you're upgrading from an earlier KMNN, you may want to use the "Restore Defaults" tab to "Rebuild Catalog" and restore "incoming.html". The new incoming.html adds the fields for external articles. This will probably be the last major revision of KMNN before the PTK. Kevin From picasso@videotron.ca Fri Mar 3 21:01:32 2000 From: picasso@videotron.ca (Oscar Picasso) Date: Fri, 03 Mar 2000 16:01:32 -0500 Subject: [Zope] Changing superuser password (Quest) In-Reply-To: References: Message-ID: <00030316033901.01906@modemcable215.47-200-24.mtl.mc.videotron.net> Thanks. That's right, I didn't write the username thinking the default was superuser. Inserting it made my change bcome effective. On Fri, 03 Mar 2000, DSirrine@mcleodco.com wrote: > Are you using the syntax: > > zpasswd -u=username -p=password -d=domain /path_to_file/access ? > > I don't think it inserts the username for you... > > > -----Original Message----- > > From: Oscar Picasso [SMTP:picasso@videotron.ca] > > Sent: Friday, March 03, 2000 1:20 PM > > To: zope@zope.org > > Subject: [Zope] Changing superuser password (Quest) > > > > Hi, > > > > I installed Zope 2.1.4 on my RedHat 6.1. I wanted to change the password > > given > > by the installer. I tried : > > python zpasswd.py -p=mynewpassword access > > From hannu@tm.ee Fri Mar 3 22:03:50 2000 From: hannu@tm.ee (Hannu Krosing) Date: Sat, 04 Mar 2000 00:03:50 +0200 Subject: [Zope] Logging users in Zope 2.x (second try) Message-ID: <38C036C6.2300C61C@tm.ee> How should I configure logging to get usernames into Z2.log I first hoped to get it from Apache's access_log, but it saves username only when doing user authentication itself. Then I thought that Zope at least would log it and migrated the site to Zope 2.1.3 to get logging support. Unfortunately it does still not log usernames and I have not found the place where I could turn it on. Also the format is buggy: Apache access_log: 193.40.215.135 - - [11/Feb/2000:08:29:55 +0200] "GET / HTTP/1.1" 200 2673 Zope Z2.log 127.0.0.1- - [11/Feb/2000:19:04:46 +0300] "GET /misc_/OFSP/dtmlmethod.gif" 200 1000 the bug being the missing space after the IP address. what I was hoping for would have looked like: 127.0.0.1 - superuser [11/Feb/2000:19:04:46 +0300] "GET /manage" 200 1000 ------- Hannu From michel@digicool.com Fri Mar 3 22:25:19 2000 From: michel@digicool.com (Michel Pelletier) Date: Fri, 03 Mar 2000 14:25:19 -0800 Subject: [Zope] Installation trouble on Solaris 2.6 References: Message-ID: <38C03BCF.7BCE64FA@digicool.com> Zach Frey wrote: > > Hi all, > > I'm trying to install Zope from source on a Solaris 2.6 system, > and I'm running into problems. > > When I try "./start", I get the following error: > > $ ./start > $ Traceback (innermost last): > File "/opt2/local/zope/Zope-2.1.4-src/z2.py", line 436, in ? > exec "import "+MODULE in {} > File "", line 1, in ? > File "/opt2/local/zope/Zope-2.1.4-src/lib/python/Zope/__init__.py", line > 94, in ? > import ZODB, ZODB.ZApplication, imp > File "/opt2/local/zope/Zope-2.1.4-src/lib/python/ZODB/__init__.py", line > 85, in ? > import sys, ExtensionClass, TimeStamp, cPersistence, Persistence > ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file > /opt2/local/zope/Zope-2.1.4-src/lib/python/ExtensionClass.so: symbol > PyImport_ImportModule: referenced symbol not found It looks like your dynamic linker cannot find your python libraries. There is an environment variable that you must set so that the linker can find any libraries needed by shared library modules like ExtensionClass.so. I believe the env variable beings with LD_. Do an 'env' (in bash at least) and look for something like that. I never remeber it cuz in Linux you just edit a file. > I am new to Python, so it's less than obvious to me what is going > on here. It looks like the ExtensionClass module is failing to > import, but I have no idea how to go about fixing this. > > [Yes, I know about the precompiled Solaris 2.6 binary. However, > I eventually will need to get this running on a Solaris 2.5.1 system. > Also, as far as I can tell, the binary release is not set up for > Apache integration, which is something I also need to do.] The binary will work fine with PCGI (Apache integration). Whether it runs on 2.5.x I don't know. -Michel From rh@n-h.net Fri Mar 3 20:53:33 2000 From: rh@n-h.net (Ryan Hughes) Date: Fri, 03 Mar 2000 21:53:33 +0100 Subject: [Zope] Worldpilot IMAP Bl00z References: <38BC878B.3C8B584A@palladion.com> <00022923145700.00360@viking> <38BD4DDA.36F8ED01@palladion.com> <38C02537.A3A520E5@n-h.net> Message-ID: <38C0264D.AD093952@n-h.net> Hi Tres, Hi Jack, Thanks for the infos/repost. Is there no way to control UW IMAP to look for a specific folder in each user's home dir for the INBOX root? Something like the way http://host/~username/ mapping works in apache? If not, then I'll add this instruction to the upcoming FAQ for worldpilot, since this is the no.1 question up to now. (Jeeze, looks like I'll have to install UW IMAP myself afterall, too.) Cheers, Ryan Tres Seaver wrote: > > Jack Ungerleider wrote: > > > > Hi Tres, > > This was written up last week and after a little digging on egroups (I thought I > > had saved that message) I finally found it. Jo Meder provided the following > > information > > > > > > Chances are, that the request to "LIST *" in directory "" that > > imaplib issues cause your imapd to begin scanning your whole home > > directory which can be a lot of data, as we all know. > > > > I worked around this problem by creating /etc/c-client.cf with the > > following contents (the first line is required by imapd, otherwise > > the file is not accepted): > > > > --------------------------------------cut here ------------------- > > I accept the risk for IMAP toolkit 4.1. > > set black-box-directory /var/spool/imap_folderlinks/ > > --------------------------------------cut here ------------------- > > > > I then created /var/spool/imap_folderlinks and symlinked the > > directory in which my mailbox folders reside to > > /var/spool/imap_folderlinks/jo > > > > Repeat for all users on the system and set permissions appropriately. > > > > Jo. > > > > I will be roasted -- I thought I'd followed these directions already, and still > had it hang. When I went back to try again, I discovered that the symlinks were > screwy (how imapd found my home directory at all is a good question). When I > clean them up, it works! > > > Also some information on this can be found in the file imaprc.txt that should > > be in /usr/doc/ or where ever RH dumps it. (I'm running this on SuSE myself.) I > > have tried this fix but I probably will. > > Hmmm, /usr/doc/imap-4.5 has only a README file, which doesn't mention the > /etc/c-client.cfg file at all (it talks about building the package, and setting > up the /etc/services and /etc/inetd.conf files to make IMAP work). Thanks very > much for reposting those directions! > > Tres. > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com -- Ryan Hughes Neuberger & Hughes GmbH http://www.n-h.net ___________________________________________________ WorldPilot Get Synched - http://www.worldpilot.org The Open Source Personal Information Manager Server Powered by Python and Zope - http://www.zope.org From dillera@isc.upenn.edu Fri Mar 3 22:41:33 2000 From: dillera@isc.upenn.edu (Andrew Diller) Date: Fri, 3 Mar 2000 17:41:33 -0500 Subject: [Zope] "creating XML Applications With Zope" Message-ID: <20000303174133.J166507@isc.upenn.edu> In Amos Latteier's "creating XML Applications With Zope" at http://www.xml.com/pub/1999/12/zope/index.html There is an example that uses a Zcatalog. He says to enter this into the expr field of the "Find Items to Zcatalog": getNodeName()=='entry' and click find. When I do this with my own version, or even his version Zope gets this error: Zope has encountered an error while publishing this resource. Error Type: NameError Error Value: Eval it has to do with that entry in expr. Is that a typo? From tony.mcdonald@ncl.ac.uk Fri Mar 3 22:38:46 2000 From: tony.mcdonald@ncl.ac.uk (tony mcdonald) Date: Fri, 03 Mar 2000 22:38:46 +0000 Subject: [Zope] Installation trouble on Solaris 2.6 In-Reply-To: <38C03BCF.7BCE64FA@digicool.com> Message-ID: On Fri, 03 Mar 2000 14:25:19 -0800 michel@digicool.com (Michel Pelletier) wrote: >Zach Frey wrote: >> >> Hi all, >> >> I'm trying to install Zope from source on a Solaris 2.6 system, >> and I'm running into problems. > >It looks like your dynamic linker cannot find your python libraries. >There is an environment variable that you must set so that the linker >can find any libraries needed by shared library modules like >ExtensionClass.so. I believe the env variable beings with LD_. Do an >'env' (in bash at least) and look for something like that. I never >remeber it cuz in Linux you just edit a file. > Sorry, coming in late here. The Env variable you need is LD_LIBRARY_PATH. Mine is set to LD_LIBRARY_PATH=/usr/local/lib/:/usr/lib:/usr/local/ssl/lib:/usr/local/lib/mys ql (I know this 'cos I did a new Zope install the other day on an account that only had LD_LIBRARY_PATH=/usr/local/lib/:/usr/lib:/usr/local/ssl/lib I started the Zope server under that account and found a broken MySQL product, with an error message saying it couldn't load libmysqlclient.so.6. I had cold chills going down my back for a looong few minutes....shudder) HTH Tone From ethomson@sourcegear.com Fri Mar 3 22:44:57 2000 From: ethomson@sourcegear.com (Ed Thomson) Date: Fri, 3 Mar 2000 16:44:57 -0600 Subject: [Zope] Assorted Zope problems Message-ID: <20000303164457.A1221@velocity> Hello- I've been trying to get our existing Zope server (previously with ZServer handling http) under Apache. Here are some problems I ran into: 1. My biggest problem was that Zope uses the SCRIPT_NAME environment variable to construct it's notion of the base URI. Unfortunately, SCRIPT_NAME gives the actual script name, not the URI. So if you do a ScriptAlias, or any rewriting inside Apache, this isn't necessarily valid. An adequate solution seems to be to change PYTHONHOME/lib/python/ZPublisher/HTTPRequest.py line 211, to use DOCUMENT_URI instead of SCRIPT_NAME. 2. I couldn't get Apache with FastCGI and Zope working reliably. On about 1% of requests, garbage would be returned, resulting in random broken images or pages full of gibberish. This is with the Oct 06 snapshot of FastCGI, compiled into Apache-1.3.12. Anyone else seen anything like this? Ed From rh@n-h.net Fri Mar 3 21:14:41 2000 From: rh@n-h.net (Ryan Hughes) Date: Fri, 03 Mar 2000 22:14:41 +0100 Subject: [Zope] Worldpilot IMAP Bl00z References: <38B5B056.C72C9288@palladion.com> <873dqdou66.fsf@alpha.cfas.washington.edu> <38BC0E25.F81146B8@n-h.net> <38BC878B.3C8B584A@palladion.com> Message-ID: <38C02B41.43A86BBC@n-h.net> Tres Seaver wrote: > > Ryan Hughes wrote: > > > > "A.J. Rossini" wrote: > > > > > > (zope list removed from followup) > > > >>>>> "TS" == Tres Seaver writes: > > > > > > TS> I have installed WP 1.01 on a fresh Zope 2.1.3. On the same > > > TS> RH 6.1 box, I am running the stock imapd, which I can connect > > > TS> to from Netscape's Messenger. > > > > > > TS> The files/directories under /var/spool/worldpilot are owned by > > > TS> nobody.zope (I start Zope as root). > > > > > > TS> When I log in, the browser spins after displaying the WP > > > TS> headers. top on the server shows the Zope python process > > > TS> (running as nobody) and an imapd process (running as me) > > > TS> sucking all the CPU, but nothing happens. > > > > > > TS> If I click on one of the links in the header, I can see the > > > TS> calendar, to-do list, etc., but the mail pane shows a Zope > > > TS> error, with "readonly -- INBOX" at the foot of the traceback. > > > > > > TS> What am I doing wrong? -- > > > > > > Tres (and worldpilot) - > > > > > > Did this ever get solved, or a hint of a solution? I'm seeing this > > > identical situation, Python 1.52, patched imaplib.py(?), Zope 2.1.4, > > > and worldpilot 1.0.1, i.e. 1.00.3, WU-imap (version not known). > > > > > > The scenario is Zope on an Debian/Intel box, WU-imap on a Slowaris 2.7 > > > (ultrasparc) box. > > > > > > On debian, it's www-data.www-data (ownership, and Zope is running as > > > www-data), so /var/spool/worldpilot is set accordingly... > > > > > > I don't get the INBOX at all (but my home directory is 1.5Gb, might > > > take a while to look for folders? I'm not imap-familiar, but noted a > > > comment to that effect on the list); I've got an apparent "freeze-up" > > > at this point. This is after waiting 5 minutes... > > > > > > I can get to the calendars, etc... > > > > > > Any thoughts? > > > > Please check if the patched imaplib.py is really the one being imported? > > > > The other issue is that if you're using UW IMAP it will probably list > > your > > whole INBOX which is apparently your home directory. This could take a > > while especially if you home directory is large. > > > > I'mm trying to get together the facts of using WorldPilot with UW IMAP > > to make a FAQ, since we ourselves have no experience with UW IMAP. > > > > Please check your worldpilot with an account that has a small home > > directory > > and let me know if the size is the problem. > > If your Zope process still cranks forever, then it's an imaplib.py > > issue. > > Up to now patching it solved the problem (as far as our experience > > concerns). > > WU IMAP on a RH 6.x box is *bizarre*., > > Ok, I kicked this off before dinner, having added some debugging output to > imaplib.py. When I came back, there was a TON of it dumped across the console > at which I was running Zope, but no mail. Basically, it had walked down through > all the .gnome/* directories, sucking up bitmaps, retular files, subdirectories, > everything (ICK!). > > Maybe we need to add a property to the WorldPilot object which lets you > configure the folder passed to the initial list() call (e.g., to be something > like "~/Mail"). This parameter would default to the empty string, so that the > Cyrus clients would continue to operate as before. I'll see if I can't come up > with some kind of patch. > > Tres. > -- > ========================================================= > Tres Seaver tseaver@palladion.com 713-523-6582 > Palladion Software http://www.palladion.com Just curious, what does the result of a LIST with "~/Mail" look like on UW IMAP? What is the top node labeled as? I guess I could add a parameter to control the behaviour of the LIST call. Cheers, Ryan -- Ryan Hughes Neuberger & Hughes GmbH http://www.n-h.net ___________________________________________________ WorldPilot Get Synched - http://www.worldpilot.org The Open Source Personal Information Manager Server Powered by Python and Zope - http://www.zope.org From mj@digicool.com Fri Mar 3 22:55:54 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 3 Mar 2000 23:55:54 +0100 Subject: [Zope] Logging users in Zope 2.x (second try) References: <38C036C6.2300C61C@tm.ee> Message-ID: <00ef01bf8563$a49d6c20$21172ed5@arnhem.chello.nl> From: "Hannu Krosing" > How should I configure logging to get usernames into Z2.log > > I first hoped to get it from Apache's access_log, but it saves > username only when doing user authentication itself. > > Then I thought that Zope at least would log it and migrated the > site to Zope 2.1.3 to get logging support. > > Unfortunately it does still not log usernames and I have not > found the place where I could turn it on. > > Also the format is buggy: > > Apache access_log: > > 193.40.215.135 - - [11/Feb/2000:08:29:55 +0200] "GET / HTTP/1.1" 200 2673 > > Zope Z2.log > > 127.0.0.1- - [11/Feb/2000:19:04:46 +0300] "GET /misc_/OFSP/dtmlmethod.gif" 200 > 1000 > > the bug being the missing space after the IP address. > > what I was hoping for would have looked like: > > 127.0.0.1 - superuser [11/Feb/2000:19:04:46 +0300] "GET /manage" 200 1000 Could you file a bug report at: http://www.zope.org:8080/Collector so's we don't forget? Thanks! Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server --------------------------------------------- From burt@dfki.de Fri Mar 3 23:06:19 2000 From: burt@dfki.de (Alastair Burt) Date: 04 Mar 2000 00:06:19 +0100 Subject: [Zope] Perchance a dtml major mode for XEmacs? In-Reply-To: Timothy Grant's message of "Thu, 02 Mar 2000 17:00:55 -0800" References: <38BF0EC7.FE851D7A@exceptionalminds.com> Message-ID: The link below explains how I managed to create such a beast: http://www.zope.org/Members/alburt/dtml_mode It relies on a DTD file to define the format of DTML code and then letting PSGML, a package for editing SGML/XML code, do all the work. --- Alastair Burt From dt@picknowl.com.au Fri Mar 3 23:36:04 2000 From: dt@picknowl.com.au (Daryl Tester) Date: Sat, 04 Mar 2000 10:06:04 +1030 Subject: [Zope] Assorted Zope problems References: <20000303164457.A1221@velocity> Message-ID: <38C04C64.F3E1633F@picknowl.com.au> Ed Thomson wrote: > 2. I couldn't get Apache with FastCGI and Zope working reliably. On about > 1% of requests, garbage would be returned, resulting in random broken > images or pages full of gibberish. This is with the Oct 06 snapshot of > FastCGI, compiled into Apache-1.3.12. > > Anyone else seen anything like this? "1%? You were _lucky_!" (in my best Yorkshire accent). I was getting a much higher rate of errors (admittedly, I was only using the management screen at the time as I was just starting out with Zope), but I ended up switching to mod_pcgi2 to cure these problems. The problem has been mentioned before on the mailing list, but I'm not sure if a solution has been found. Platform is (for data point purposes): RedHat 6.1, Apache 1.3.9, Zope 2.1.4 and fastcgi Oct06 snapshot. Regards, Daryl Tester From akuchlin@mems-exchange.org Sat Mar 4 00:06:43 2000 From: akuchlin@mems-exchange.org (Andrew M. Kuchling) Date: Fri, 3 Mar 2000 19:06:43 -0500 (EST) Subject: [Zope] Hooking into traversal Message-ID: <200003040006.TAA02507@amarok.cnri.reston.va.us> I want to write an object that can be traversed by ZPublisher. The goal is so I can write URLs like thingyForwarder/45/display, to get an object corresponding to thingy #45, and call its display() method. What's the Zope Zen way of doing this? Implement an __of__ method for acquisition? Implement a __bobo_traverse__ method? Make thingyForwarder a Folderish object and implement all the folder methods? -- A.M. Kuchling http://starship.python.net/crew/amk/ "Wet", said he. Classics was his subject, and he sometimes affected a classical simplicity in social conversation. -- Robertson Davies, _Tempest-Tost_ From kentsin@macau.ctm.net Sat Mar 4 00:13:31 2000 From: kentsin@macau.ctm.net (Sin Hang Kin) Date: Sat, 4 Mar 2000 08:13:31 +0800 Subject: [Zope] Client-side Zope Message-ID: <002501bf856e$7aee5640$770da8c0@bbs> Continue to moving more job to the client, There will be more for Zope to perform: 1. There will be necessary to generate various section-specific temporary objects for CSS, DTD and Scripting files, framed or embeded html. 2. There will be necessary to support java or javascript access of zope in the client. In the first requirement, I would like to suggest an machenism to create an section specific temporary object (which zope create the unique name and substitute it) which dtml is able to write to it. The new object can be just a new dtml-document. As in the following