[Zope-Annce] mod_pcgi2 has been declared obsolete
Hello! Zope lost support for PCGI protocol at version 2.7. Because of this I stopped maintaining mod_pcgi2. Today I switched my last site that have used mod_pcgi2 to mod_proxy. Now mod_pcgi2 is declared obsolete. Please use mod_proxy or mod_fastcgi instead. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope-Announce maillist - Zope-Announce@zope.org http://mail.zope.org/mailman/listinfo/zope-announce Zope-Announce for Announcements only - no discussions (Related lists - Users: http://mail.zope.org/mailman/listinfo/zope Developers: http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] User Sessions
On Wed, 31 Jan 2001, Chris Withers wrote: state with authenticated users. It's just not as useful because once they're authenticated you'd probably be better off associating the state with their user object. Wow... I wish Zope supported this. Maybe a proposal for dev.zope.org is in order? How I'd like to see text box widths and top frame preference stored against the user, not the domain name/browser... :-S Oh, no, no, no. I, for example, use at least two different computers with 2 different screen resolutions, so I certainly want to store these preferences in my cookie files (these files are different on these 2 computers, of course). Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [OT perhaps] ZMySQLDA
On Tue, 30 Jan 2001, Lee Reilly CS1997 wrote: CREATE TABLE STUDENTS when i try and query it from Zope or Unix (select * from students) I get SELECT * FROM STUDENTS; Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to display image returned from Catalog query
On Tue, 30 Jan 2001, Timothy Wilson wrote: What I can't figure out is how to display that image. I can use a href="dtml-absolute_url;"dtml-var title/a to make a link to the image, but I want this method to display the image directly. img src="dtml-absolute_url;" ? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] License
On Mon, 29 Jan 2001, Chris Withers wrote: Olaf Zanger wrote: is the product planned to ship under GPL or an corresponding licence? Please don't shit it under GPL, it makes it much less useful :-S A variant of the Zope License would be much mroe friendly :-) OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do allow people to choose their licenses freely! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] let problem (or just a stupid newbie)
On Mon, 29 Jan 2001, Hans de Wit wrote: dtml-var standard_html_header dtml-let person="'Bob'" dtml-var person dtml-var standard_html_footer [skip] Document Template Parse Error: (see above) But of course. dtml-let must be closed with /dtml-let Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] License
On Mon, 29 Jan 2001, Andrew Kenneth Milton wrote: | is the product planned to ship under GPL or an corresponding licence? | | Please don't shit it under GPL, it makes it much less useful :-S | A variant of the Zope License would be much mroe friendly :-) | |OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do | allow people to choose their licenses freely! Geez Oleg, all he did was make a request... chill on the caps.. Those requests with these answers ("Please don't shit it under GPL") produce flamewars far too easily :( Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problems with URL passing again
On Mon, 29 Jan 2001, Horatio B. Bogbindero wrote: dtml-var expr="id==pass_id" dtml-if expr="id == pass_id" Sometimes id is not a string, but a function to call: id(). To force Zope renders it to string always write _['id']. Zope 2.3 has getId() that is always function. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DCOracle with Python 2.0?
On Wed, 24 Jan 2001, Michelle Walden wrote: I'm having zero success getting DCOracle to build with any version of Python using the included Makefile.pre.in files. Anyone with a working DCOracle install on RedHat 6.1 who might be willing to offer suggestions or donate binaries will receive many thanks from my programmer. I've built it on Debian 2.2. Makefiles require some tweakings... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released
Hi! Many cheers to DC people and the community! On Wed, 24 Jan 2001, Brian Lloyd wrote: Zope 2.3.0 beta 3 is now available. You can download it from Zope.org: http://www.zope.org/Products/Zope/2.3.0b3/ Finally it works for me lake a charm! (Even with python 2.0!) Thanks to all, good guys!!! Now going to dive into new features (VirtualHostMonster, getId, etc...) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released
On 25 Jan 2001, Erik Enge wrote: | Finally it works for me lake a charm! (Even with python 2.0!) Really? Python 2.0? Without any problems? I didn't found any, do you? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope and Python 2.0
On Thu, 25 Jan 2001, [iso-8859-1] Åsmund Hjulstad wrote: I am having a nightmare getting ZClasses to work with Python 2.0. Does it work for you?? I don't create ZClasses because: 1. I am The Knight Of Command Line! I do not understand visual programming :) 2. I learned Zope Product API before ZClassess... and sticked to it :) Really, I want to learn ZClasses, but knowledge of the Product API stands on the way :) Well, I use ZClasses written by other people. FlexFAQ, for example. Let's see whether it would work with Zope on Python 2.0: http://phd.russ.ru/zope.net.ru/Zope/FAQ/ Don't see any problem, do you? At least these ZClasses (Questions and Answers) are working fine. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DNS/access problems
On Thu, 25 Jan 2001, Olaf Zanger wrote: but then, when i clicked to any link i got an error. any idea where to search? First, carefully read the error message... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Add this to Wish list
On Wed, 24 Jan 2001, Jerome Alet wrote: A way to download Python Script's sources Now I cut and paste but it's horrible. Please could you include a button "Download Source" to the Python Script edition form ? Sometimes through-the-web editing stands on the way? :) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Dowloading images from another site with external method?
On Wed, 24 Jan 2001, Etienne Labuschagne wrote: "http:\\www.mysite.com\images:8081\img1234545.png" Incorrect slashes in the URL. It seems M$ is destroying people's brains :( Use right slashes /// My problem is that I don't know how to download the image from the URL Use urllib.urlretrieve. Or use external program that can download files from URL. lynx, e.g. (I think, there is lynx for Win; certainly, there are other tools.) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PythonScripts editable through FTP?
On Wed, 24 Jan 2001, Jerome Alet wrote: I want to use my own text editor (JERED), not because it's the best to develop (far from that in fact) but because it works exactly like I want it to work (which is normal since I've written it). Unfortunately it doesn't handle WebDAV or any other Internet protocol... Compile Python into it and go with ftplib! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope 2.3.0b2 bug #2
On Mon, 22 Jan 2001, Dieter Maurer wrote: Oleg Broytmann writes: Hm, will you fix my browser, too? I am using Netscape for Linux, don't know how well it plays with Unicode. I suppose it plays bad :( We use Netscape (4.5, 4.7; Linux, Windows) with "charset=utf-8" and it handles it well. Good news, thanks. Are there (free) Unicode fonts for X? What should I do if I want to save an HTML to disk? (I want plain text, of course, in my preferred encoding... probably need to write Unicode-to-koi8 converter) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZPyGresQL Connection Add Error
On Mon, 22 Jan 2001, Craig wrote: Error Type: IOError Error Value: [Errno 2] No such file or directory: '/usr/lib/zope/lib/python/Shared/DC/ZRDB/connectionAdd.dtml' Also check all permissions starting from the root. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting access to python methods of some product
Hi! On Tue, 23 Jan 2001, Ivan Somov wrote: How I can use method, stored in a ".py" file of some product, and send some parameters to that method? I think, you can just acquire the method (if it is in the ZODB and is acquirable). I want to create an instance of ExtImage product programmatically, but have a troubles doing it.. Ah, that worse - you need a constructor, not an ordinary method. Not sure how to call it. Probably, you need to import that .py, call the constructor, get an object in return, and then _setObject somewhere into ZODB. (Why not to try to ask the question in the Russian Python Zope Mailing List? :) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Getting an object from it's id
On Tue, 23 Jan 2001, Gale wrote: dtml-in expr="objectValues('Folder')" dtml-if "myId==id" You don't need to "get" the object, as the object is already on top of the namespace stack (dtml-in put the object there on every iteration). Just use the object's attributes (id, after all, is just yet another attribute). Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Object DB versus Relational DB
On Sun, 21 Jan 2001, Tom Deprez wrote: Can somebody provide me informational links of documents which present the benefits and non-benefits of both DB? eg. When to use one and when not to use one? http://www.zope.org/Members/anthony/sql_vs_ZODB Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.3.0b2 bug #2
On Sat, 20 Jan 2001, Aleksander Salwa wrote: meta http-equiv="content-type" content="text/html; charset=iso-8859-1" This is WRONG way of doing! Please stop it and don't do it :) Meanwhile - where I can turn this off? It would be very nice, if we could set it somewhere in configuration. Till now (Zope 2.2.x) I have to patch Zope (some *.dtml files, and even some *.py files) in order to have proper Content-Type headers on my management screens (specifically iso-8859-2). Oh, NO! This should be handled in HTTP, not HTML! HTTP responce shold give correct Conten-Type header. With Apache, it is easy to configure. But I certainly don't want to force all my editors to use one fixed encoding. This because some of us use KOI8-R encoding (UNIX), and other use windows-1251 (gues the OS). This is at least browser/user preference, not a server-side option. Russian Apache (specially patched version of Apache) correctly handles this on HTTP level... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope 2.3.0b2 bug #2
On Mon, 22 Jan 2001, Brian Lloyd wrote: FYI - I've taken out the charset declaration altogether for beta 3, Thanks. since this is obviously an issue that needs more thought. Since Sure. Language/encoding issues are hard to implement, though. There are servers, proxies, browsers - and almost none of them obey standards correctly :( Zope 2.4 will be the Python 2 (unicode) release, we should start a fishbowl project to work out how / whether Zope should deal with charset issues for the 2.4 release... Hm, will you fix my browser, too? I am using Netscape for Linux, don't know how well it plays with Unicode. I suppose it plays bad :( My only hope is to have Mozilla at the time of Zope 2.4. Anyone here knows how Mozilla handles Unicode? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REMOTE_ADDR
On Mon, 22 Jan 2001, Marcus Mendes wrote: Where can I find (and use) the variable REMOTE_ADDR? I've a python function that deal with REMOTE_ADDR, but I've got the IP address's Zope Server Machine. I looked at Z2.log and find the same IP, ie. the address's Zope Server Machine. I need the remote address. I'm using SiteAccess and Zope 2.2.4 on Linux. I don't understand ... Do you use Apache? Which way do you connect Zope and Apache? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REMOTE_ADDR
On Mon, 22 Jan 2001, Marcus Mendes wrote: Yes, I'm using apache before the Zope, ie, Apache redirects all the request to the 8080 to Zope. How can Id obtain REMOTE_ADDR ? Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi? mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote address. Or may be there is a way to pass it explicitly to Zope. Other modules (FCGI/PCGI) should pass all neccessary information (actually, the entire request environment) by default. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] zope@zope.org
On Mon, 22 Jan 2001, Farrell, Troy wrote: Is it possible this is another issue with 2.0 (I'm no python guru :)? Certainly no. It is just the python caanot import a standard module. Permission or path problem, I am sure. FR, Zope 2.x is designed to work with Python 1.52. Zope 2.3 (currently in beta) works (though not "officially") with 2.0. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.3.0b2 undo strangeness
On Mon, 22 Jan 2001, Chris McDonough wrote: Did you start from a fresh Data.fs for 2.3.0b2 or did you use an existing Data.fs from another install? Oops, are they incompatible with each other? (I am not the author of the original question, just curious). IWBN to see some information in INSTALL.txt about upgrading from prev. version. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] List Mail Duplicates
On Mon, 22 Jan 2001, Tim Cook wrote: Is the list mailer sending duplicates or am I seeing double? Not only you. There are certainly dups in the list. May be it's our list manager's fault, may be someone (misconfigured robot?) sends it back to the list... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope 2.3.0b2 bug
Hi! Little bug - if there is no items in a folder - there is no "Import/Export" button. :) I have to create a dummy item to import a zexp. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope 2.3.0b2 bug #2
It is not exactly bug, but VERY unplesant misfeature: Zope now sends all HTML in management screens with meta http-equiv="content-type" content="text/html; charset=iso-8859-1" This is WRONG way of doing! Please stop it and don't do it :) Meanwhile - where I can turn this off? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope build script
Hello! http://www.zope.org/Members/phd/build-zope/ Zope build script helps to build Zope from sources. The script: -- runs python w_pcgi.py -- runs python zpasswd.py inituser|access -- generates root.sh - a script to run under root to complete the installation; root.sh set up right ownership and permissions in the installation tree. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope build script
On Sat, 20 Jan 2001, Oleg Broytmann wrote: http://www.zope.org/Members/phd/build-zope/ Oops, forget to say - the script was updated for Zope 2.3 (it now asks for "inituser" along with "access"). The script still can be used for Zope 2.2. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Arguments in URLs with bookmarks
On Thu, 18 Jan 2001, Michael W. Homyack wrote: http://www.mysite.com/x#gotohere?arga=oneargb=two This is browser issue, not a Zope problem. Make the anchor in the end: http://www.mysite.com/x?arga=oneargb=two#gotohere Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] No product management
On Thu, 18 Jan 2001, Veen, J.S. van der wrote: I've got a problem with Zope. When I click on the 'Product Management' link in the Control Panel it shows me the 'Welcome to Zope' page again. I'm using Zope 2.2.5 on FreeBSD 4.2. Can anyone help? I've got this problem with a browser that does not support "base" tag (ChrisW, wanna say something? :) Switching back to Netscape "fixed" the problem. Moral: there are 2.5 browsers out there (Netscape, Mozila and M$IE) and only 1.5 of them (M$IE and Netscape) can work with Zope management screens. Other things that called itself "a web browser" (lynx, links, opera, w3m) and are actually worth 0.1 of a whole browser are suitable for simple tasks, but not for such a complex task as managing Zope :))) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to backup Zope data base?
On Thu, 18 Jan 2001, Etienne Labuschagne wrote: What is the best way to backup Zope's database whithout stopping Zope? When Pack + backup Data.fs.old. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to backup Zope data base?
On Thu, 18 Jan 2001, Marty Stitt wrote: Data.fs This is the real database file. Data.fs.index Its index. Remove before replacing Data.fs. Data.fs.old This is backup after Pack. Data.fs.in This is initial Data.fs - installation process copy this into Data.fs before starting Zope for the first time. Data.fs.lock Data.fs.tmp Temporary files. Feel free to remove them when Zope is not running. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Form data type coercion syntax and javascript
On Wed, 17 Jan 2001, Mayers, Philip J wrote: SELECT NAME="test:list" But how do you access it from JavaScript then? I'm doing this: list = form.elements[j]; list = form.elements["test:list"]; Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Folder upload ?
On Mon, 15 Jan 2001, Marc Fischer wrote: Could anyone tell me, if it is possible to upload a whole folder with all its including objekts like pictures and things into ZOPE? If yes, tell me how, please. There is load_site.py in Zope utilities directory, and there is newer version of it somewhere on zope.org - just search. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Session
On Tue, 16 Jan 2001, Chris McDonough wrote: dtml-with "Session.getSessionData()" ^ Close th broket: dtml-with "Session.getSessionData()" ^ Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Design Q: Product vs. External Methods
On Mon, 15 Jan 2001, Chris Withers wrote: if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them. That hasn't been my experience, but maybe I'm mistaken :-S I can assure it is. I run zope.net.ru in debug mode, and did debugging of an External Method that draw the left column. After I modified the source file Zope reread it, sure. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] mysql connection string
On Mon, 15 Jan 2001, Olaf Zanger wrote: right now my setup uses a connection string "db root" which doesn't seam to give a lot of savety :-). at my provider i have a login, but sure no root access to the db. * how does the connection string look for user name "peter-hauser" and password "test3-.2"? [EMAIL PROTECTED] peter-hauser test3-.2 --\ | * has the user to be set up in "linux" ? | | No, only in mysql. | | * how is the setup made in "mysql"? | | GRANT select,insert,update,delete,create,alter,drop,index| ON db.* TO [EMAIL PROTECTED] INDENTIFIED BY 'test3-.2';| | * has zope to be run by user "peter-hauser"? | | No, you pass peter-hauser in the connection string -/ Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] log file.
On Wed, 10 Jan 2001, Jason C. Leach wrote: Is the Zope log file in Common Log File Format? Yes. You can run every standard log files analyzer on it. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Acquisition: DTML Methods vs Documents
Hello! Many thanks to all who replied! Sorry for late answer - twas XMas holidays in Russia (Russian Orthodox church celebrates XMas Jan 7). On Fri, 5 Jan 2001, Rik Hoekstra wrote: If I call http://machine:port/top/middle/AFolder/ADocument (in terms of this HOWTO), and ADocument calls dtml-var AMethod, what is acquisition path for AMethod? what might come handy in your case is the howto "Shane's Aquisition Understander" at http://www.zope.org/Members/chrisw/showaq it'll help you visualize the acquisition path from your document. I used it for sometime, sure... You may also want to look at my howto Changing Contexts in Zope http://www.zope.org/Members/Hoekstra/ChangingZopeContexts Read and reread it many times, sure. Cannot live without it :) The thing that I didn't understand from this (and the thing is still cloudy) is that there is One Acquisition Path for a request. When I call a Method through the web, I have proper path, so I can call Documents and Methods from each other. But when I call a Document through the web, I have "wrong" path - static path, and when I try to call a Method from the Document, the Method will use this static path. I thought the Method will use dynamic path, based on request (URL). That was my mistake. Or Jim's acquisition algebra from a Python point of view of these matters: http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/index.html Of course. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images transfering
On Tue, 9 Jan 2001, Nuno Goncalves wrote: I'm trying to import to zope an directory in my file system which has several images (about 1000) ! How can i do this without importing an image one by one (little bit tiring :) !!! There is load_site.py in Zope utilities, and there is new version of it somewhere on zope.org; Just search for "load site" or "load_site" or such... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Acquisition: DTML Methods vs Documents
Hello! Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Well, in simple cases I think I understand it. When I call a Method through the web, it use dynamic (based on current URL) acquisition path. A Document uses static (based on its position in ZODB) path. But what if I want to look a bit deeper? What are acquision paths for a Method called from a Document, not directly from the web? I beleive when a Document called from a Method it always uses static acquisition path. But what about a Method called from a Document? It seems my Methods stopped using dynamic paths and use static paths, provided by its callee. Right? Let's see a running demo. The site http://phd.russ.ru/pcgi/TEST/ constructed as follows: /TEST - folder index_html - standard DTML Document with default content standard_html_header - DTML Method standard_html_footer - DTML Method 2 - folder, empty Both folders /TEST and /TEST/2 have a property "foobar". In /TEST its value is "First test!", in /TEST/2 - "This is SECOND test." standard_html_header show the property with dtml-var foobar. When I call standard_html_header directly through the web, it acquires foobar using dynamic acquisition path: http://phd.russ.ru/pcgi/TEST/standard_html_header show foobar from root (/TEST) http://phd.russ.ru/pcgi/TEST/2/standard_html_header show foobar from /TEST/2 But then I call standard_html_header from DTML Document index_html: http://phd.russ.ru/pcgi/TEST/index_html show foobar from root (/TEST); exactly as I expected, no problem http://phd.russ.ru/pcgi/TEST/2/index_html WOW! It show foobar again from root, not from /TEST/2! standard_html_header acquires using static path provided by index_html! Is it normal and intended behaviour? If it is, how can I "solve" my problem? (I want to acquire different properties in standard_html_header, but call standard_html_header from different DTML Documents). Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Acquisition: DTML Methods vs Documents
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument (in terms of this HOWTO), and ADocument calls dtml-var AMethod, what is acquisition path for AMethod? I showed an example, where AMethod do acquisition using static path, and I think it is a bug. Or, may be, just my misunderstanding... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Acquisition: DTML Methods vs Documents
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://phd.russ.ru/pcgi/TEST/2/index_html WOW! It show foobar again from root, not from /TEST/2! standard_html_header acquires using static path provided by index_html! You started acquisition from index_html. Since it has no foobar, it looked into its own container, /TEST, then in root. Exactly as I wrote - in this situation standard_html_header acquires using static path provided by index_html :( You can but the "problem" in your case, comes from the acquisition of an index_html document in a different folder. I suggest to add index_html documents in every folder *or* make index_html a method (this is what I use). There are many Documents on my site, not only index_html. Should I make them all Methods? Why after this I need Documents at all? Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: ZBabel translation to Postgres
Hi! On Thu, 4 Jan 2001, Andrew Kenneth Milton wrote: I do recall however, that postgres only implements INNER and OUTER joins although I don't know the status of the JOIN stuff in postgres at this time. AFAIR they (especially Bruce Momjian) always suggested ti emulate LEFT JOIN with UNION. They said it'd pretty easy... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] rss
On Wed, 13 Dec 2000, Kevin Teague wrote: I use a modified version of this script running on a cron job to update the rss channels: http://www.zope.org/Members/phd/cron-zope/pack-db_fs The script looks like this (it's still kind of hack-ish, but it works :). My only problem now is to figure out how to have member preferences handle a list of rss channels with the PTK. #!/usr/bin/python username="kteague" password="**" RSS Channel does not protect Import, so you don't need user/password, I think... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Start with Zope
On Thu, 14 Dec 2000, Pierrick PONS wrote: I verified that Zope is running but I don't know how to start this program to start building my new web site. You don't need to "start" it if it is already running - just connect to it with your browser. If you installed it with default settings, point your browser to localhost:8080/manage, enter your superuser password (did you created one while installing?), login, goto acl_user folder, create a user with Manager role, stop your browser (close all windows), restart he browser, goto the same location, enter your manager's password - and viola! Start creating objects - Folders, DTML Documents and Methods, etc. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] site structure (fwd)
Using standard_html_header and standard_html_footer in every Document on your site... But that way if i want to change the structure, i have to change on every page. No, you only need to change 2 places: standard_html_header and standard_html_footer :) All Documents that use these header/footer will be rendered using new structure. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] site structure (fwd)
On Thu, 14 Dec 2000, Max M wrote: If I where to do it in regular Python I would use special classes for special layouts. That is hard to do in Zope. Why hard? Not hard at all - develop your own set of classes, make it into a Product, and use instance of these classes instead of DTML Documents. Actually, there is nothing special in DTML Documents - they are instances of DTMLDocument class, nothing more. Creating your own type of document is not harder, IMHO. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HELP with Postgress!! HELP!!
On Thu, 14 Dec 2000, Paolo Quaglia wrote: I have tried the ZPyGreSQLDA-0.3-rjr2.tar.gz, but the product result BROKEN PRODUCT!! Instead of asking for free HELP!!! you'd better try to fix the broken product; after all, it is free software, do it yourself or hire someone. Go to Control Panel and click on this broken product. Now see a traceback. Look what is wrong and fix the problem. Restart Zope. Use th DA. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] site structure (fwd)
On Thu, 14 Dec 2000, Nuno Goncalves wrote: Why hard? Not hard at all - develop your own set of classes, make it into a Product, and use instance of these classes instead of DTML Documents. Actually, there is nothing special in DTML Documents - they are instances of DTMLDocument class, nothing more. Creating your own type of document is not harder, IMHO. I was thinking about that to ! But how could you build a page with the template developed ?? something like: dtml var template(COMPONENTS LIKE HEADER AND FOOTER AS ARGUMENTS) and how can you generelize the objects to beeing used by the template ? No, no, no! :) You misunderstand how the Zope works. You think that basic building block is a piece of HTML (probably you think to put it into DTML Documents). No. In Zope basic building block is "instance of some python class". A DTML Document is an instance of DTMLDocument class, e.g. If you develop your own set of classes, you'll just build Zope sites creating instances of these classes - you put HTML fragmenst just into these instances. Zope will call your objects, you don't need to use DTML to call them. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] site structure (fwd)
On Thu, 14 Dec 2000, Nuno Goncalves wrote: humm !!! I see now !! So i can have a general structure for all my site and when create a page, specifying the template to use and consequently adding the objects that i want ?? No, you should separate design (template) and content. Actually, it is possible even without creating a python product - you put content (HTML fragments) into small DTML Documents, and define design (template) using DTML Methods - standard_html_header/footer and other methods, your custom methods. Think, for example, you want to create a site with the following design: - | || left | CONTENT1| right | column | | column | | special || | fature || | || | CONTENT2|| | || - Easy! (Thanks, Zope! :) You define "left column" in standard_html_header, "right column" in standard_html_footer, in every folder put two pieces of content and feature into 3 DTML Documents, and call these Documents again from standard_html_header (or DTML Methods that will be called from standard_html_header). In outline, your standard_html_header will looks like the following: HTMLHEADTITLEdtml-var title_or_id/TITLE/HEAD tabledtml-commentI'll skip most HTML-related things like tr td etc/dtml-comment dtml-var left-column dtml-var CONTENT1 dtml-var feature dtml-var CONTENT2 Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] rss
On Thu, 14 Dec 2000, Andy McKay wrote: Actually I went one further and hacked SiteSummary so that it remembered the url the rss is located at (rss_url). Then I wrote a quick reload method. Then in dtml I wrote a method that finds all the site summaries and reloads them. So my python script is down to two lines: import urllib print urllib.urlopen(/reload) Or something like that. It also means anyone can add news feeds on the fly, Send your patches to RSS Channel author! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Gopher from Zope
On Wed, 13 Dec 2000, Dario Lopez-Kästen wrote: I wanna serve gopher:// from Zope :-) Is it possible? It is possible, but no so simple. How would you map gopher menues to Zope objects? On the positive side - thanks Zope for your component-based architecture. You just need to write GopherServer.py; see HTTPServer.py, PCGIServer.py in ZServer subdirectory. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HTTPServer.py patch
On Wed, 13 Dec 2000, Evan Simpson wrote: Looks like you've got the one that only works with Zope 2.0 - 2.1.6. If you're using Zope 2.2.0 or above, you need the other one. See http://www.zope.org/Members/4am/postbugfix Got it. Now it works. Thank you. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] turning off inheritance
On Wed, 13 Dec 2000, Kyler B. Laird wrote: Units and people both have contact information stored in their properties. How do I detect if a person has, for example, 'contact_email' set? I've tried dtml-if "_.hasattr(this(), 'contact_email')" Something like dtml-if "_.hasattr(aq_explicit, 'contact_email')" (untested, but I use this in External Methods) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] turning off inheritance
On Wed, 13 Dec 2000, Kyler B. Laird wrote: dtml-if "_.hasattr(aq_explicit, 'contact_email')" (untested, but I use this in External Methods) Consider it tested. It works great from DTML. Now that I know what to seek, I found a couple of old messages that reference this. I'm still honing my ability to get Zope clues. I got it form exactly this mailing list. I just monitor the list form the very beginning, I forward many important message to Russian Zope list, discuss this information, etc. Nothing special. Often I ask questions here. Of course I do digging Zope sources from time to time :) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] HTTPServer.py patch
Hi! With the recent patch I have problems connecting directly to ZServer (port 8080) - Zope reported error 500 and restarted itself. Connecting through Apache+mod_pcgi2 works. I reverted the patch (restored HTTPServer.py from backup) and can connect to ZServer again. Something wrong with te patch! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cut/copy/paste problems
Hi! i knew that! :) btw, there's currently sparse document on mod_pcgi2. i'd like to change that, but i need info from you (the author ..straight from the horses mouth - so to speak) or snippets from your httpd.conf. do i need to have Zope.cgi available? i think i do since otherwise, there'll be no connection. or am i missing something? You missed pcgi-wrapper :) If you look into Zope.cgi (it is just plain text file) you'd found it is a script interpreted by pcgi-wrapper. That very pcgi-wrapper is a binary file compiled from pcgi-wrapper.c during the Zope installation process. The pcgi-wrapper binary is the program that implements PCGI protocol. When I wrote mod_pcgi2, I borrowed a lot of code from pcgi-wrapper.c. That way you do not need Zope.cgi or pcgi-wrapper - the PCGI code is already in mod_pcgi2. how can i finetune the performance? it seems that under heavy load, eg 100 simultaneous apache connection, it'd get loger to contact the server. in the browser, we'd see contacting the server, waiting for reply .. for about 3-4 secs before we get any activity/reply from server. You'd need to finetune Zope, not the mod_pcgi2 module. When you connect to Zope-behind-Apache the process is going the following path: 1) browser sends a rquest to Apache 2) Apache invokes the mod_pcgi2 handler 3) the handler passes the request to Zope 4) !!! here is the problem to finetune !!! If Zope's own pull requests handlers is empty - Zope does not handle the request, but queues the request and waits 5) after Zope processes the request it passes the results back 6) mod_pcgi2 passes the results to Apache 7) Apache passess it back to browser. Ususally there are 4 threads in Zope, and 7 ZODB connections. The first number - 4 threads - could be configured by passing parameter to z2.py. If you raise the number much, you'd need to raise he seconf number somwhere in the ZODB source code. These are points for finetuning. Actually you may need to tune more things, but these things are just totally unrelated to mod_pcgi2. Tune ZODB cache, install and learn to use cacheing Products (the are a number of caches for Zope), use squid, etc. when i do a packet dump, it seems that the machine needs a couple of SYN before getting and ACK from the server. do you think it has anything to do with mod_pcgi2? sorry if it's not. I'm pretty sure it has nothing with mod_pcgi2. SYN/ACK are properties of TCP/IP protocols, and PCGI protocol is much higher level. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is it Possible 2: Get resolution!
On Fri, 8 Dec 2000, Stoonsdesign wrote: Q: Is it posible to get the current users SCREEN-RESOLUTION (without using Javascript!)..? You can't, and you don't need. Even if you get the resolution, you'd have hard times generating HTML for that resolution: HTML is very bad concerning strict screen positioninig. HTML is not "publishing". Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cut/copy/paste problems
On Thu, 7 Dec 2000, Ivan Cornell wrote: I've been having problems with copy/paste/rename with my site, which is apache proxypassing (mod_rewrite [p] actually) onto a siterooted subdir of zserver. I Aha, SiteRoot! I thought is is a part of the problem. Thanks! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Indirect addressing
On Thu, 7 Dec 2000, Ragnar Beer wrote: This would logically be handled with "dtml-var dtml-var my_external_method" in index_html but this doesn't work. Don't write DTML inside DTML. Inside DTML tag use Python: dtml-var "_[my_external_method()]" Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is it posible?
On Thu, 7 Dec 2000, Stoonsdesign wrote: Statement: ZOPE RULEZ! Sure! :) Q1: Is it possible to get the current users IP Yez. Q2: If so = How..? dtml-var REMOTE_ADDR Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Disabling Services
On Wed, 6 Dec 2000, Chris Withers wrote: How do I turn any of the above 'off' permentantly, without hacking z2.py or anything similar (which is nasty ;-) z2.py has a lot of options. Run z2.py --help. (I mean passing options to z2.py IS NOT nasty :) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help - cannot import zexp
Hi! I already got it! :) I imported earlier zexp and removed default args from the External Method. The site now seems to do export/import flawlessly. As I said, it's undocumented misfeature. Thanks for documenting it. Can you make it a Tip or a HOWTO and publish it on zope.org? On Sun, 3 Dec 2000, Dieter Maurer wrote: Oleg Broytmann writes: functions as default parameters to external method functions cause import problems "Cannot import default_render from module __main__". Oops! What's that? The default_render isn't in __main__, sure. I tried to create External Method before importing, but this didn't help :( This is a severe danger of "pickle" and the external method implementation: * the implementation does not import the Python source files but reads them in and executes them. All functions and classes appear to be defined in the module "__main__". * The implementation places the function default arguments into the ZODB (as a pickle). * "unpickle" cannot load the corresponding object, as it imports "__main__" and looks there for the function -- in vain. As a rule: Avoid the use of class of function definitons from an external method source file for anything that may be written to the ZODB (or more generally be pickled; this applies e.g. to session context, too). This includes created object instances that may end up as attributes of Zope objects or function default parameters to external methods. If you defined such classes or functions in a true Python module, you should have no problem. What can you do, if your zexp is valuable? * put a dummy definition of "default_render" in the "__main__" module. You should then be able to import your zexp and change the problematic external method. I do not know precisely, what Zope's "__main__" module is. I expect the "z2.py". If this is not the case, then a small dummy product that does "import __main__; __main__.default_render= 0" should do the trick, whatever "__main__" may be. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to build a c extension on a linux system
On Mon, 4 Dec 2000 [EMAIL PROTECTED] wrote: i would like to install a zope product that includes a c extension (DynPersist.c) with a Setup file like this: *shared* DynPersist DynPersist.c-I../../ZODB -I../../../Components/ExtensionClass has anybody an idea, how to start the compilation ? make -f $SOMEWHERE/Makefile.pre.in boot make Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Help - cannot import zexp
Hi! Followup to myself... On Fri, 1 Dec 2000, Oleg Broytmann wrote: Please help, I have a problem importing my zexp. Initially I created the exported zexp while debugging some External Method. The method is declared as follows: def navigation_leftColumn(self, _, render=default_render): where default_render is a helper function, defined in the same .py file: def default_render(self, _, alist=None, indent=0): Later I deleted the entire folder and tried to import zexp to return to saved position. Zope raise the error: "Cannot import class default_render from module __main__". Oops! What's that? The default_render isn't a class in __main__, sure. I tried to create External Method before importing, but this didn't help :( Nobody dared to answer? Well, I am not in big trouble here - I have previous backup; I can import it and will redo all changes. But I think I found a bug or undocumented misfeature in Zope External Methods. The problem is in default parameter (render=default_render). By some reason Zope stores (pickles?) it in wrong way, so later it cannot be imported. I'll remove this argument (or replace it with render=None) and I am sure the problem will gone away, and I can export and reimport it safely. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Help - cannot import zexp
Hello! Please help, I have a problem importing my zexp. Initially I created the exported zexp while debugging some External Method. The method is declared as follows: def navigation_leftColumn(self, _, render=default_render): ... where default_render is a helper function, defined in the same .py file: def default_render(self, _, alist=None, indent=0): ... Later I deleted the entire folder and tried to import zexp to return to saved position. Zope raise the error: "Cannot import default_render from module __main__". Oops! What's that? The default_render isn't in __main__, sure. I tried to create External Method before importing, but this didn't help :( Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
On Fri, 1 Dec 2000, Stefan H. Holek wrote: Why isn't there a mod_zope module? There certainly are mod_snake and mod_python. Has anybody tried to run Zope with one of those? Zope is a server by itself, it doesn't need to be embedded ito Apache. PLUG mode="shameless" There IS mod_pcgi2 to connect Apache to Zope. /PLUG There is mod_fastcgi also. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
On Fri, 1 Dec 2000, Stefan H. Holek wrote: I (hope I) wasn't implying that Zope _needs_ to be embedded into Apache. ;) I for my part am quite happy with proxypassing. All I wanted to know is whether anybody had tried to run Zope with But these modules does not run p/f-cgi - they run python scripts inside Apache. Zope does not need to be run inside Apache. mod_python/mod_snake yet. Zope can be (and is) run as [pf]cgi and there are more or less valid reasons to do just that. These are, actually, the only ways to run Zope :) Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Import/Export Objects
On Tue, 28 Nov 2000, Rafael Amer Ramon wrote: I have installed Zope-2.2.2 with mod_pcgi and the Apache server. mod_pcgi or mod_pcgi2? I think the latter. When I try to import some objects exported from a proviously running ZServer, I get Internal Server Error and the following message in the Apache error_log file [Tue Nov 28 19:05:26 2000] [error] PCGI Error: [503 Service Unavailable] ((116) unable to connect, fd=5) Success Does anyboby know how I can solve this problem? Misconfigured mod_pcgi2, I'm afraid. Are you sure all neccessary parameters are there, in httpd.conf? Are they correct? Point to correct socket file, e.g.? Are these files accessible from the UID httpd is running under? Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope restarting itself?
On Wed, 29 Nov 2000, Martin Winkler wrote: maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task? z2.py -Z ... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] exchange parameters between DTML Documents
On Wed, 29 Nov 2000, Andrei Belitski wrote: In dependance of a link I would like to pass some document name as parameter to another DTML Document which displays for example the properties of the parameter document. How can I do it? I would appreciate any hints, thank you in advance The mechanism is called "session". Learn how setup and to use some session products. There are few session products for Zope - search zope.org. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] html expertise anyone.
On Tue, 28 Nov 2000, Robin Becker wrote: I know about the style="color: red" type of inline, I was looking for the :link, :active, :visited etc attributes for inline style. I can't seem to get these to work. The color attribute seems to set all of the states. I think it's impossible to set pseudoclasses inline. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PCGI_ROOT
Hi! I am the author of mod_pcgi2. Thank you for using it. On Mon, 27 Nov 2000, Rafael Amer Ramon wrote: PCGI_ROOT /usr/local/Zope Is the error related with the PCGI_ROOT directive? Yes. How can I set this directive? PCGI_RROT should point to *a Zope folder*, not a directory on disk. Initially, when you have fresh Zope install, you have one Zope folder - root, so set PCGI_ROOT / Later you'll connect to Zope and create more folders in ZODB, so you can create different configurations, and set PCGI_ROOT to different folders. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] view DTML source
On Fri, 24 Nov 2000, Anders Eriksson wrote: (Object: standard_html_header) AttributeError: __call__ This is my data: Zope version: Zope 2.2.2 (binary release, python 1.5.2, win32-x86) Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] System Platform: win32 Anyone that know why I get this error and how I fix it? It looks like you triggeres a "dtml-callable" bug in Zope. Patch for fixing it was spread few days ago; it will be incorporated into 2.2.4... Oleg.(All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML source
Hi! On Thu, 23 Nov 2000, Tom Deprez wrote: Are there some sites which publish there DTML source(structure)? I'm particulary looking on how several navigation, menu, ... structures are implemented in Zope. On Zope.org you can see the DTML-source. Unfortunately not the implementation of the navigation (or the menu on the left). Russian Python and Zope User Group site: http://zope.net.ru/ The problem is that it is really in russian (surprized? :) Horizontal navigation implemented in header, in method global-nav: http://zope.net.ru/global-nav/view_source Vertical navigation in left column implemented with External Method. Source will be freely available upon request (on first request I just put the source on the site). External Method requires 'cause I need to play with aqcuisition, recursion, etc - hardly achivable with DTML scripting. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Simple Yes or No (I think...)
On Thu, 23 Nov 2000, Ben Ocean wrote: Can Zope be used to create a *MyYahoo* style GUI? Yes. Actually, Zope can be used to create *anything*. But the amount of work may differ :) Now, if you want to reformulate your question as "can zope be used to create this without much effort?" the answer will be No. MyYahoo is pretty complex application, sure. No tool will clone it without an effort, but some tools may simplify the task. I think Zope can make life simpler, much simpler, really. Oleg.(All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problems with External Method
Hello! I've stucked with a problem with External Methods. I wrote an External Method and sterted to debug it. After some period of bugs fixing in the method Zope responded "Error. Cannot import default_render..." and oops - my Method removed from its folder... Not exactly "removed" - Zope converts it to a folder-like object (there is folder icon on it instead of External Method icon), but I cannot enter the folder. I removed the folder, recrated External Method and continued debugging. But Zope continues to "remove" the method from time to time, and the more I work on the method the more frequently Zope requires me to recreate the Method. What's this? Normal behavior on buggy External Method or bug in the very Zope? My Method is very simple, I do not touch Zope internals there... or at least I *think* I don't touch :) (Zope 2.2) Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Installation Troubles
On Wed, 15 Nov 2000, Ben Ocean wrote: I d/l'd the latest distro. Looked inside and couldn't find any installation instructions. It seems you've problems with searching. There are a lot of information in distro - in directory doc. There are INSTALL.txt, WEBSERVER.txt, etc. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Installation Troubles
On Wed, 15 Nov 2000, Ben Ocean wrote: and d/l'd the latest distro, which I believe was Zope-2.2.x-to-2.2.2-src.tgz It's not a distro - it's a patch to upgarde to 2.2.2. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Local Time Zone
On Fri, 3 Nov 2000, Daniel Rusch wrote: I know I can get the users language preference like this: dtml-var "REQUEST['HTTP_ACCEPT_LANGUAGE']" The question then is, is there a similar method of getting the users Local Time Zone??? There is no. Use javascript on client side to redirect or set cookie or something... Oleg.(All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript: (OT)
On Fri, 3 Nov 2000, Stefan H. Holek wrote: be aware also that having a redirecting start page will cause problems for some (most?) spiders and your site will never show up in the search engines. In any case javascriptfull pages are spiders-unfriendly, so it is not a problem at all :))) Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
On Thu, 2 Nov 2000, Daniel Rusch wrote: Is there a way from zope to check to see if a user has Javascript enabled There is no. Advice: client issues should be dealt with on client side. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Check for JavaScript:
On Thu, 2 Nov 2000, Daniel Rusch wrote: Advice: client issues should be dealt with on client side. Great I agree completely, except if the client has Java/JavaScript turned off it is pretty darn difficult to have client issues dealt with on client side!! htmlhead script languagae=javascript window.location = "/site/with/js/" /script meta http-equiv=refresh content="5; url=/site/nojs/" /headbody pLoading, please wait.../p /body/html Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZDNet compares 4 our rivals
Hello! ZDNet compares four our rivals: ColdFusion, JSP, ASP and PHP: http://www.zdnet.com/enterprise/stories/linux/0,12249,2646052,00.html Scripting in ColdFusion found to be the best choice :) Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] load_site.py URL.
On Sat, 28 Oct 2000, Jason C. Leach wrote: What does the load_site.py expect as a URL? URL to a Zope folder, where you wnat to upload your files/directories. the folder should exists before you start load_site.py. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How should a collection be in a Python product if i wantto trave rse it with dtml-in rse it with dtml-in
On Wed, 25 Oct 2000, [iso-8859-1] Max Møller Rasmussen wrote: class simple: def __init__(self, value): self.value = value theList = [simple(1), simple(2), simple(3), simple(4)] I would expect to be able to traverse it like below (The objects namespace would be popped onto the namespace.): dtml-in theList dtml-var value /dtml-in Looks good... But it isn't so. Why? What was the error? Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fw: mysqldb
On Fri, 13 Oct 2000, Dale Lance wrote: anyone know where mysqlclient is supposed to be? gcc -shared _mysqlmodule.o -L/usr/local/mysql/lib -lmysqlclient -o _mysqlmodule.so /usr/bin/ld: cannot find -lmysqlclient It supposed to be in the /usr/local/mysql/lib/libmysqlclient.so. Check to see it's there. It is usually symlink to libmysqlclient.so.6.23.13 or such. If it is not - find it on your system and put the directory to -L flag, e.g gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -lmysqlclient -o _mysqlmodule.so Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Database Pack
On Thu, 12 Oct 2000, Júlio Dinis Silva wrote: is there a way to do a pack to zodb without using the managment screens pack button? Maybe a python script we could execute from the file system. Just call the pack over HTTP. I run a cron job to do this. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PyGreSQLDA
On Tue, 26 Sep 2000, Leichtman, David J wrote: Has anyone had significant speed issues using the PyGreSQLDA? It seems like I'm only getting one DB connection at a time. Is this an issue with the DA, with Zope, or am I doing something wrong? I have a pgsql db running just I have 3 connections just fine. Sometimes Zope timeouts a connection, but when someone touches it, Zope reopens the connection automatically. No problem thus far. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Mail problem ([Zope] how to change the 'Zope' realm/resource?? (fwd))
Hi! Is it only me? I am getting most (but not all) message twice. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. -- Forwarded message -- Received: from (zope.codeit.com) [209.67.167.110] by fep132.fep.ru with esmtp (Exim 2.05 #1 (Debian)) id 13Z92d-0002EM-00; Wed, 13 Sep 2000 13:41:19 +0400 Received: from www.zope.org (localhost [127.0.0.1]) by zope.codeit.com (8.9.2/8.8.7) with ESMTP id CAA04134; Wed, 13 Sep 2000 02:10:44 -0700 (PDT) Received: from mail.nipltd.com ([EMAIL PROTECTED] [194.193.44.1]) by zope.codeit.com (8.9.2/8.8.7) with ESMTP id CAA04112 for [EMAIL PROTECTED]; Wed, 13 Sep 2000 02:10:40 -0700 (PDT) Received: from chrisw.nipltd.com ([194.193.44.115] helo=nipltd.com) by mail.nipltd.com with asmtp (AMailer 1.3.16 #2) id 13Z8Yu-0001Ej-00; Wed, 13 Sep 2000 10:10:36 +0100 Message-ID: [EMAIL PROTECTED] Date: Wed, 13 Sep 2000 10:08:54 +0100 From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Steve Drees [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: [Zope] how to change the 'Zope' realm/resource?? References: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-Mailman-Version: 1.0b8 Precedence: bulk List-Id: Users of the Z Object Publishing Environment zope.zope.org X-BeenThere: [EMAIL PROTECTED] Steve Drees wrote: WHat if we want to change the realm dependent on the folder? I.e. Is there a way to change this at run-time? I'd love to know the answer to this one too :-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Simple dtml-unless problem
On Wed, 13 Sep 2000, Tim Hicks wrote: dtml-unless "id == 'index_html'" Sometimes id is string, sometimes it is a function. dtml-unless "_['id'] == 'index_html'" Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Simple dtml-unless problem
On Wed, 13 Sep 2000, Tim Hicks wrote: Sometimes id is string, sometimes it is a function. dtml-unless "_['id'] == 'index_html'" Thanks very much guys. _['id'] fixed it. I hope you understand that I forced Zope to call the id() function, but only if it is function. Else _['id'] just returns the id string. Oleg. ---- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Oedipus / Zope / python / product / XML ++
Hi! I write and maintain a project "Bookamrks Database and Internet robot" (detailed announce after quotations). It is not exactly what you want, but I have plans to add Oedipus to my list of databases. Probably there are fields we may cooperate. I am very short on time these days :( On Mon, 11 Sep 2000, [iso-8859-1] Jørgen Skogstad wrote: I've been looking into something this weekend. I need somehting that can handle my link database etc. and list them through Zope on a regular basis. I was looking at Oedipus which can create "semi-xml" DMOZ like directories which would suffice for v0.1b of my product. I was thinking of using Oedipus and store them in the database there and generate a new xml-like-structure every day through some cron script. .. what I was hoping for is to use the LocalFS product for Zope and some kind of python "product" (which I need to make to fit into Zope) which can parse this .. sort of like the *.cgi script which followed with the Oedipus installation. By doing this; I can generate DMOZ/Link databases that show information about the site; when it was checked last, updated etc. etc. My questions are as follows; * How do I generate a package of some pythong scripts? * Are there any better ways of parsing and putting this xml-like file under "Zope control" .. * Are there any XML products for Zope that can get a file from an url .. and parse this with some python scripts to generate a yahoo type listing? Would apriciate any input! BOOKMARKS Database and Internet robot WHAT IS IT Here is a set of classes, libraries, programs and plugins I use to manipulate my bookmarks.html. I like Netscape Navigator, but I need more features, so I write and maintain these programs for my needs. I need to extend Navigator's "What's new" feature (Navigator 4 named it "Update bookmarks"). WHAT'S NEW in version 3.0 Complete rewrite from scratch. Created mechanism for pluggable storage managers, writers and robots. WHAT'S NEW in version 3.1.2 Minor speed improvements in parser (just removed debug output if not in debug mode). New program check_dups.py prints a list of duplcat URLs in the DB. WHERE TO GET Master site: http://sun.med.ru/~phd/Software/Python/#bookmarks_db Faster mirrors: http://skyscraper.fortunecity.com/unix/797/Software/Python/#bookmarks_db http://members.nbci.com/_XMCM/phd2.1/Software/Python/index.html#bookmarks_db AUTHOR Oleg Broytmann [EMAIL PROTECTED] COPYRIGHT Copyright (C) 1997-2000 PhiloSoft Design LICENSE GPL STATUS Storage managers: pickle, FLAD (Flat ASCII Database). Writers: HTML, text, FLAD. Robots (URL checker): simple, forking. TODO More storage managers: shelve, SQL, MetaKit. More robots: threading, async. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Object serialization between different pages
On Tue, 12 Sep 2000, Pierre-Julien Grizel wrote: Is it possible to serialize an object to share it across several pages ? This would allow one to pass the serialized object via the URL, and to retreive it in the form that would process the request. Oh, no! Think if I hack the page you sent to my browser and serialize a different object!! This is big security hole!!! I know there is the pickle function in python, but is there a more Zopish way to do this ? Learn to use sessions. There is no builtin session management in Zope, but there are 3 sessions Products out there. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope and the GPL poison pill
Hi! On Tue, 12 Sep 2000, Nils Kassube wrote: Oleg Broytmann wrote: LICENSE GPL I've seen several Zope products using the GPL. In my not so humble opinion, this could develop into a serious problem for Zope deployment. I'm not a lawyer (nor do I play one on TV), but the use of GPL'ed source code like e.g. Renderable ZClass in your web site probably means that you're now forced to publish every single bit of source built using the GPL'ed module -- including commercial intranet projects. This can be impossible if you don't own the rights to every single piece of code used in a project. No, you are not forced to publish anything. GPL "virus" applied only if you want to *distribute* combined (your code + my GPL'd code). I hope Zope product developers think twice about using the GPL. The GPL license is not about sharing like e.g. the BSD license, it's about enforcing the political agenda of people who think that commercial ("proprietary") software w/o source code is evil. Yes, exactly! You've got the point! I love GPL! :) Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )