Re: [Zope] Re: Some help required but no sarcastic comments this time pleas ee
On Wednesday 24 January 2001, at 17 h 49, the keyboard of [EMAIL PROTECTED] wrote: I'll believe it when I see it. Then I'll laugh when I see it crash. You rabid Unix bigot, how do you dare being so sarcastic? ___ 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 : postgre sql
On Wednesday 24 January 2001, at 11 h 56, the keyboard of "K H Subrahmanyan" [EMAIL PROTECTED] wrote: I am using zope in linux redhat 6. ^^ RedHat I have python-popy_1.2.1_i386.deb Debian package Download PoPy's debian packages from ^^ Debian what is dpkg. Debian package management tool. PS: I've installed Zope + Postgres + Popy on a RedHat 6.2 (you are aware that 6.0 is full of security bugs?) and it works fine. Just do not mix the two operating systems, Debian and RedHat. ___ 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] Some help required but no sarcastic comments this time please
On Tuesday 23 January 2001, at 23 h 17, the keyboard of "alankirk" [EMAIL PROTECTED] wrote: I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic = comments this time) Feel free to interpret every comment you don't like as "sarcastic", but it will not save your business. to this address) and the response has been pretty poor, i've even tried = to email people involved with the mysql database adaptors and got no = response. You use a commercial operating system: pay for a commercial support. It is really important that i get this problem sorted now if possible as = my final year project for university depends on this 'bug' getting = fixed. If it is important, do not run it on MS-Windows. Otherwise, some people may think you know nothing about software... ___ 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 Thursday 18 January 2001, at 13 h 52, the keyboard of "Mayers, Philip J" [EMAIL PROTECTED] wrote: This certainly isn't *efficient*, but it works: Not here. Does it depend on a specific version of Zope? I have 2.2.2. Creating the zexp works but not the XML: wallis:~/tmp wget --http-user=bortz --http-pass=jelediraipas 'http://www.pasteur.fr:9673/manage_exportObject?download%3Aint=1toxml=Y' --09:29:08-- http://www.pasteur.fr:9673/manage_exportObject?download%3Aint=1t oxml=Y = `manage_exportObject?download:int=1toxml=Y' Connecting to www.pasteur.fr:9673... connected! HTTP request sent, awaiting response... 401 Unauthorized Connecting to www.pasteur.fr:9673... connected! HTTP request sent, awaiting response... 500 Internal Server Error 09:29:08 ERROR 500: Internal Server Error. Z2.log contains nothing useful: 157.99.64.24: - - [19/Jan/2001:09:29:08 +0200] "GET /manage_exportObject?download%3Aint=1toxml=Y HTTP/1.0" 500 2631 "" "Wget/1.5.3" ___ 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] Tools used for programming Zope
On Thursday 18 January 2001, at 18 h 40, the keyboard of Gerald Gutierrez [EMAIL PROTECTED] wrote: Frankly, I'm a little surprised that this isn't a problem for more people, given the drawbacks of having to give up many of the existing tools, having the application server only be able to export in a proprietary format, and being bound to the application server for so many development-related tasks. It's impossible to do a simple grep through the code, for example ... I agree it is one of the MAIN problems with Zope. You have my support. A good way to have a read-write (at least a readonly) view of the ZODB would change things a lot. ___ 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] Python 2.0 ??????
On Thursday 18 January 2001, at 16 h 33, the keyboard of "OK Studio" [EMAIL PROTECTED] wrote: ISP just upgraded to python 2.0 without my knowledge. (BTW, I run Zope 2.2.2 with Python 2.0c1 for several months without any problem.) cc -fPIC -O -pipe -D_THREAD_SAFE -I/usr/local/include/python2.0 = -I/usr/local/in clude/python2.0 -DHAVE_CONFIG_H -c ./../Components/cPickle/cPickle.c ../../Components/cPickle/cPickle.c:57: mymath.h: No such file or = directory Small bug: just suppress the #include ... mymath.h and recompile. ___ 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] exporting zope
On Wednesday 17 January 2001, at 13 h 15, the keyboard of ethan mindlace fremen [EMAIL PROTECTED] wrote: http://www.zope.org/Members/rossl/ZMirror Claims to do what you want. Warning: you cannot use it freely (see the licence), unlike Zope itself. Again, it is much faster and simpler to run 'wget --mirror http://www.yoursite.org/'). ___ 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] Missing attribute with ZSQL methods?
On Wednesday 17 January 2001, at 11 h 30, the keyboard of "Ron Bickers" [EMAIL PROTECTED] wrote: "missing" is only effective if the variable telephone cannot be found. Even if it has a null or None value, it's not considered missing. Try dtml-var telephone null="(No phone)" instead. This one works fine (you got the reason right) and I missed it in the documentation. Emmanuel Philippot [EMAIL PROTECTED] suggested another way, which seems to do the same: dtml-var telephonedml-unless telephone(No phone)/dtml-unless Thanks to both of you. ___ 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] Postgresql Query.
On Tuesday 16 January 2001, at 21 h 37, the keyboard of "Jason C. Leach" [EMAIL PROTECTED] wrote: I'd like to learn a bit more on how to do a SQL query on a postgres DB from Zope. I find it well explained in the Zope Book: http://www.zope.org/Members/michel/ZB/RelationalDatabases.html ___ 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] exporting zope
On Wednesday 17 January 2001, at 11 h 50, the keyboard of "Tom Deprez" [EMAIL PROTECTED] wrote: I'm looking for the products who can make plain html-files from zope folders. wget --mirror http://www.mybeautifulzope.org/ ___ 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] Missing attribute with ZSQL methods?
If I write DTML that way: tddtml-var telephone missing="(No phone)"/td and if "telephone" comes from a ZSQL method, "missing" is ignored even if the field was NULL (in SQL sense). Is it normal? Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] System Platform: osf1V4 PostgreSQL 7.0.3 (with Z PyGreSQL, ZPyGreSQLDA-0-0-3) ___ 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 from a php perspective
On Tuesday 16 January 2001, at 11 h 43, the keyboard of Vincent Stoessel [EMAIL PROTECTED] wrote: matching object. But what if I want to include something outside of the tree? Zope does not use the tree of directories: it uses its own database. Hence, every object is in the Zope tree. or just wanted a central repositories of object that I wanted to be able access from anywhere. Install them at the root. ___ 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] I did a blunder now I can't access zope...
On Tuesday 9 January 2001, at 7 h 24, the keyboard of "Dany Rioux" [EMAIL PROTECTED] wrote: I installed a product in the root and when it asked me about the base url, I typed an URL that isn't "attached" to zope, If this product is SiteAccess: http://www.zope.org/Members/4am/SiteAccess2/info ... If an Access Rule is broken, and is preventing normal access, it can be disabled by restarting Zope with environment variable SUPPRESS_ACCESSRULE set. ___ 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 Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Not me but this HOWTO: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. ___ 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 Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: When I call standard_html_header directly through the web, it acquires foobar using dynamic acquisition path: Actually, if I understand it myself :-) it acquires foobar because a method has no poperties, so it looks first in the innermost container, the folder TEST or TEST/2. But then I call standard_html_header from DTML Document index_html: In that case, you start the acquisition with the document index_html (reread the HOWTO http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo: the acquisition can start from a document or a folder, not from a method). 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! You started acquisition from index_html. Since it has no foobar, it looked into its own container, /TEST, then in root. 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). 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). ___ 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 Friday 5 January 2001, at 17 h 58, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: 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? Because not all documents are acquired (from an above folder). For index_html, for instance, it is common to have a different index_html (and in that case a document) in each folder. ___ 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 vs. Enhydra
On Friday 29 December 2000, at 18 h 52, the keyboard of [EMAIL PROTECTED] wrote: But really, has anyone had any experience with the *other* open source Web Application Server, Enhydra? Why, *the* other? There is only one? http://www.brics.dk/bigwig/ ___ 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] Editing the z2.py File
On Friday 22 December 2000, at 18 h 56, the keyboard of Michael Bernstein [EMAIL PROTECTED] wrote: Umm, even if *everything* else fails, you can still manually truncate the Data.fs file to remove the last transaction Well, this file is not human-readable so I do not really see how to truncate it properly? ___ 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] Editing the z2.py File
On Thursday 21 December 2000, at 14 h 59, the keyboard of "Ben Ocean" [EMAIL PROTECTED] wrote: I have my own server with virtual hosts. I'm going to build a large Web site on this server with Zope as the base platform. I intend to build more on the Zope platform, but already have several sites built without it. My question is, how do I edit the z2.py file in such a way that I can call up certain virtual hosts and not others through port 80? I use Squid as an accelerator for my Zope sites http://www.zope.org/Members/ht rd/howto/squid. Squid can bind itself to an IP address (http_port in recent Squids, tcp_incoming_addr or something like that in older Squids). Use an other IP address for Apache sites (BindAddress in Apache). Also, can I build the equivalent of a doc root off of the Zope root such that Zope could act, in effect, as a virtual host, It is possible with SiteAccess' "Set Access Rule". It has some nasty side-effects: - Zcatalogs will no longer work :-( - do not make *one* mistake in the "root" method code or you will lose access to your Zope completely (that's the big problem with all-database systems like Zope). Even FTP access will fail, you will have to retrieve your ZODB from backups! ___ 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] Editing the z2.py File
On Friday 22 December 2000, at 10 h 38, the keyboard of Martijn Pieters [EMAIL PROTECTED] wrote: There are several ways of telling the SiteAccess rule not to kick in. See the SiteAccess pages for more info on the URL modifiers and environment variables that do this. When I had the problem and was in an emergency, I did not find it. Now that I'm cooler, I find it at a glance :-} If an Access Rule is broken, and is preventing normal access, it can be disabled by restarting Zope with environment variable SUPPRESS_ACCESSRULE set. Thanks. ___ 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] CZAN Anyone?
On Friday 22 December 2000, at 12 h 50, the keyboard of "Jonathan \(ListServ Account\)" [EMAIL PROTECTED] wrote: Does anyone have any plans for CPAN like functionality for Zope? It would be a very good idea. The CPAN is the main strenght of Perl (if someone cites the Vaults as a Python equivalent, it means he never used the CPAN). In the mean time, I've reserved czan.org and .net (for the community: of course, I will give them back freely when someone will implement it) unless people prefer zopefind.net (like rpmfind.net)? ___ 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] ftp ZSQL Methods
On Wednesday 20 December 2000, at 7 h 47, the keyboard of Olaf Zanger [EMAIL PROTECTED] wrote: is it possible to externally edit ZSQL Methods? Not with out-of-the-box Zope :-( A friendly Zopatista sent me a patch http://classic.zope.org:8080/Collector/1768/view which works well and which is submitted to the Collector http://classic.zope.org:8080/Collector. [Does anyone read the Collector?] ___ 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] ZCatalog raises index out of range exception error
On Saturday 16 December 2000, at 19 h 21, the keyboard of "Stefan H. Holek" [EMAIL PROTECTED] wrote: Do you have a SiteRoot-ed environment? I do. I believe I saw this error when trying to use the Catalog in a SiteRoot-ed folder... Me too :-( No solution, sorry ;) :-( ___ 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] How to debug access denials?
I have problem with Zope security model and I would like to know the best way to debug Zope when access is denied. I have two experimental sites: on one of them, anonymous users can go everywhere. On the other, the permissions *look* exactly the same but anonymous users can only see the home page and are denied access to subfolders (more precisely, Zope asks a password). I assume one DTML method, in the second site, is doing something forbidden (anonymous has "View" and "Access content information"). Is there a way to get an extended log, such as "anonymous user denied because index_html called standard_html_header which called getData and getData is a database connection and they don't have permission to use database connections"? ___ 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, Dec 14, 2000 at 01:43:55PM +0100, Pierrick PONS wrote: May I have to configure something ? I have read lots of things about Zope but I wasn't able to start ... A common problem for us Zope newbies. You read ten times the documentation and it still does not make sense, you don't grasp the whole picture, etc. The solution for me was: read it an eleventh time and everything will become clear. (Asking a few stupid questions on the list helps, too, if you read the replies.) ___ 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 debug access denials?
On Thu, Dec 14, 2000 at 12:21:19PM +0100, Jerome Alet wrote: a python traceback in there which should provide the information you're looking for... Great, I missed it. May I add: "... in an incredibly unreadable and hardly understandable format." ? Indeed. What am I supposed to do with that? Why is the 'title' property of the object unauthorized? (The object itself is viewable by Anonymous.) The relevant line seems to be: File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py, line 331, in eval (Object: title != '' and AUTHENTICATED_USER.has_permission('View',_.getitem('id',1))) (Info: title) and the full traceback is: You are not authorized to access emtitle/em. !-- Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, in publish File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, in publish File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in mapply (Object: Map) File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, in call_object (Object: Map) File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: Map) File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: Map) File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py, line 146, in render (Object: aq_parent) File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__ (Object: recurseFolder) File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: recurseFolder) File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: objectItems(['Folder'])) File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py, line 331, in eval (Object: title != '' and AUTHENTICATED_USER.has_permission('View',_.getitem('id',1))) (Info: title) File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: Map) File /usr/share/zope/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/share/zope/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in validate Unauthorized: (see above) -- I had to drop most of my DTML methods for the experimental sites I use to "sell" Zope to other people, they're too hard to use. DTML methods brings me back to sendmail.cf editing: great in theory but only a few people (after an agreement with the devil?) can do what they want with it. ___ 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, Dec 14, 2000 at 06:25:19PM +0100, Max M wrote: Some things are pretty hard to do in zope, because of the header/footer principle. Making a global look to a site can be pretty difficult if it doesn't fit nicely into a header/footer structure, with a main area being the pages' unique content. Although I agree that Zope misses real templates (like in M4 or, to take a more Web-centric example, in WML http://www.engelschall.com/sw/wml/, there are several workarounds: 1) if you need "standard" elements between header and footer, a bit of discipline from the page authors (which can be helped by tools like HTML-kit, where you can define a template for the new and empty page): dtml-var header ... Content here dtml-var inbetween .. More content here dtml-var footer 2) DTML methods allow you to replace a lot of what would be document-specific elements (such as context-dependant navigation bars), helping to stay in the header/footer paradigm. On the other hand, they are very complicated to use properly. ___ 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] Installing a DA for PostgreSQL (RedHat)
[Stupid subject changed.] On Thu, Dec 14, 2000 at 05:46:09PM +0100, Paolo Quaglia wrote: I m trying to setup a linux box (Redhat 6.1) with PostGress 6.5 What DA shall I use? On a RedHat 6.2 (BTW, 6.1 has several known security bugs, be careful if you have a direct link to the Internet), with PostgreSQL 6.5.3, I have ZPoPy and it works fine (I use it only for light tasks). I have tried the ZPyGreSQLDA-0.3-rjr2.tar.gz, but the product result BROKEN PRODUCT!! You have to install the Python interface, not only the Zope product. I have tried some ZPopyDA but some error occours Difficult to help without more details :-) Remember to install both the Zope product (ZPoPy) and the Python adapter (PoPy). AFAIK, there is no RPM :-( To compile PoPy, you need the postgresql-devel package. Give the traceback (in the Products Management window) if there is an error in Zope. Or use a Debian :-) ___ 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] Lost with navigation using objectValues
I just try to automatically get a list of subfolders, following the example in the ZopeBook http://www.zope.org/Members/michel/ZB/SimpleExamples.html. Here is my code, in a DTML method in the root folder: ul dtml-in expr="objectValues('Folder')" lia href="dtml-var absolute_url" dtml-var title_or_id/a/li /dtml-in /ul If I call it from /index_html, it works fine. If I call it from any other document anywhere, I just get ul/ul (so I'm sure the method has been called) but nothing else as if objectValues sent nothing (no need to say that I *have* subfolders an I also tried without the 'Folder' restriction, with the same result). Any advice? Zope RPM 2.2.2 on RedHat 6.2. Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform: linux-i386 Process ID: 17906 (4101) Running for: 2 hours 55 min 45 sec ___ 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] Lost with navigation using objectValues
On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote: Are you sure you put it in a DTML Method and not a DTML Document? Well, viewing the object through the management interface says so. To be sure, I created a new object from scratch and changed the standard_html_header to use it. Same problem. Could it be an error in the calling code? I just say: dtml-var navbar [That's a problem I often have with Zope. Things which seems very basic suddenly become blocking problems.] ___ 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] Lost with navigation using objectValues
On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote: Are you sure you put it in a DTML Method and not a DTML Document? OK, I get you: my code is in a DTML method but it was ultimately called by DTML documents, which produced the wrong result. If I create a DTML method, it works. After reading the excellent "DTML documents vs DTML methods" HOWTO, it makes sense but it is quite surprising. Does it mean I have to turn all my DTML documents into DTML methods if I want them to call DTML methods, even if they are only content? ___ 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] duplicate column name
On Thursday 7 December 2000, at 13 h 15, the keyboard of Olaf Zanger [EMAIL PROTECTED] wrote: - select adr.id,fac.id from fac, adr It is legal SQL but -error type: value error -error value: duplicate column name,id I believe Zope (not PostgreSQL) needs different names for columns. Otherwise, how would it choose the name of DTML variables? Try renaming the columns with AS in the ZSQL method. ___ 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] FTP for ZClass hierarchies
On Tuesday 5 December 2000, at 9 h 4, the keyboard of Jim Welch [EMAIL PROTECTED] wrote: have been disappointed to discover that while I can access, via FTP, the methods of a top-level ZClass, I can't access any methods of ZClasses defined inside of a top-level ZClass. Many objects are not editable that way :-( And this is a big problem with Zope for me (I will certainly not use the browser form). A friendly Zopatista sent me a patch on Zope (which I will submit to the Collector) to be able to edit ZQSL methods. May be you can patch the patch for your purpose? ___ 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] FTP in HTML-Kit? (Or other editor on MS-Windows)
Searching a tool to edit DTML on MS-Windows, I read: http://www.zope.org/Members/cba/HTML_Kit It says that HTML-Kit can edit files through FTP. I found that it can only retrieve files, without being able to browse directories, and that it cannot save back files with FTP. Absolutely not a competitor for GNU Emacs. Or did I miss something? ___ 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] A new Zope Product for the documentation of databases...
On Friday 1 December 2000, at 16 h 41, the keyboard of Frederic Quin [EMAIL PROTECTED] wrote: It is open-source and for non-commercial use only... ... If you try it, let me know what you think about this product I think that "Open Source" really means nothing if people start to use it that way. Check the Open Source Definition, item 6 http://www.opensource.org/osd.html. ___ 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+PostgreSQL
On Tuesday 28 November 2000, at 19 h 2, the keyboard of Robert Senger [EMAIL PROTECTED] wrote: The ZPoPyDA module refuses to work properly. Give at least your operating system and the traceback you get (I had good help from the list because I gave the details). ZPyGreSQL works fine for me, on Debian (easily, thanks to the package) and on Tru64 (more difficult, but now I know the trick). ___ 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] Rookie Question - Syntax
On Wednesday 29 November 2000, at 8 h 20, the keyboard of Eric Walstad [EMAIL PROTECTED] wrote: I like to let javascript handle the validation, it lightens the load a little on the server. You still need server-side validation, otherwise, a rogue user can set up a form which will allow invalid entries (or he can simply disable Javascript). ___ 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] Fast Access.
On Tuesday 28 November 2000, at 19 h 19, the keyboard of "Jason C. Leach" [EMAIL PROTECTED] wrote: Is there a faster way to access Zope? I find I wate too long for page refreshing and updates. Several are documented. I like the Squid accelerator. http://www.zope.org/Members/htrd/howto/squid http://www.zope.org/Members/htrd/howto/caching ___ 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] [BUG] [Zserver] GET and HEAD give different MIME types
On Tuesday 28 November 2000, at 21 h 18, the keyboard of Martijn Pieters [EMAIL PROTECTED] wrote: Note that you don't want the DTML code to be called on a HEAD request; it may have side effects a mere tpc_abort won't roll back. I understand but this seems a deviation (I don't say a violation since the RFC says SHOULD and not MUST) from the RFC on HTTP (2616): 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. It is certainly a big problem for debugging or for robots which assume they can test with HEAD. ___ 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] Editing SQL methods from Emacs (+ FTP server)?
All the texts explaining the wonders of Zope tell that you can edit your DTML files from (X)Emacs, and not from the lame editor you get from your browser with the default HTML form. It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL methods ("File exists but cannot be read"). Is there a solution, besides writing it offline and uploading it into Zope? ___ 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] Editing SQL methods from Emacs (+ FTP server)?
On Thursday 30 November 2000, at 0 h 19, the keyboard of Anthony Baxter [EMAIL PROTECTED] wrote: I added a patch for ftp-enabling SQL Methods to either the collector or the zopeshell patch manager on sourceforge (I forget which right now, and it's late and I'm going to bed right now...) If you can't find it, email me and I'll dig it up. No change in zopeshell for three months and I cannot find the collector on SourceForge? ___ 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] ZPyGreSQLDA on Tru64?
On Friday 24 November 2000, at 22 h 1, the keyboard of Dieter Maurer [EMAIL PROTECTED] wrote: Try "import _pg" in an interactive Python interpreter. I remember that in some cases I got a better error message that indicated precisely, what was missing. Not here: wallis:~ python Python 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] on osf1V4 Type "copyright", "credits" or "license" for more information. import _pg Traceback (most recent call last): File "stdin", line 1, in ? ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so If it does not, then you may try "ldd _pgmodule.so" This program does not exist on Tru64, v4. (It appeared on v5 but I don't plan to upgrade right now.) I hope, that one of these approaches will reveal what is wrong. Otherwise, it would probably be a missing symbol. But it is quite difficult to detect which one. OK, I'll try Zope another time. ___ 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] ZPyGreSQLDA on Tru64?
On Friday 24 November 2000, at 16 h 1, the keyboard of Stephane Bortzmeyer [EMAIL PROTECTED] wrote: Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken No longer : the path to the PostgreSQL library was not put in the shared library object so I had to add: # PostgreSQL LD_LIBRARY_PATH=/local/pgsql/lib export LD_LIBRARY_PATH to the Zope start script and now it works fine. Thanks for those who searched. Suggestion: to improve the error message: "libpq not found" would have been more than enough to diagnose the problem. ___ 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] ZPyGreSQLDA on Tru64?
Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken and yields the following trace: ZPyGreSQLDA Import Traceback Traceback (most recent call last): File "/local/src/Zope-2.2.2-src/lib/python/OFS/Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/local/zope/lib/python/Products/ZPyGreSQLDA/__init__.py", line 89, in ? import sys, os, Globals, DA File "/local/zope/lib/python/Products/ZPyGreSQLDA/DA.py", line 91, in ? from db import DB File "/local/zope/lib/python/Products/ZPyGreSQLDA/db.py", line 89, in ? import _pg, regex, sys, types ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so but : wallis:/local/zope ls -l /usr/local/lib/python2.0/site-packages/_pgmodule.so -r-xr-xr-x 1 root system 65536 Nov 24 15:50 /usr/local/lib/python2.0/site-packages/_pgmodule.so Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] System Platform: osf1V4 Process ID: 9128 (5381388672) Running for: 1 min 52 sec ___ 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 )