Re: [Zope] new user, teething problems
On 8/4/06, Gabriel Genellina [EMAIL PROTECTED] wrote: Page Templates are easier to use instead of DTML.True, but this is just starting off, to make sure it works. File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_var.py, line 207, in render raise KeyError(name)KeyError: u'date'Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error.This error says that there is nothing known as date.date was just a DHTML page that had a static string saying 'this would be a date'. Have you defined it anywhere?If you just want to show the current date, try: dtml-var expr=DateTime()Yep, even that doesn't work (see below). Oddly, when I created a page with pure HTML as index_html at the very top level, it didn't get seen as an index page. I just get a management view when I go to the top level port. Traceback (most recent call last): File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py, line 138, in publish result = publication.callObject(request, object) File /tmp/Zope- 3.2.1/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py, line 161, in callObject return mapply(ob, request.getPositionalArguments(), request) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4 /zope/publisher/publish.py, line 113, in mapply return debug_call(object, args) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py, line 119, in debug_call return object(*args) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/browser.py, line 26, in index return template.render(REQUEST, **kw) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/dtmlpage.py, line 49, in render return self.template(self.__parent__, request, REQUEST=request, **kw) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/untrusted/untrusted.py, line 66, in __call__ ProxyFactory(mapping), File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_string.py, line 484, in __call__ result = render_blocks(self._v_blocks, md) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4 /zope/documenttemplate/pdocumenttemplate.py, line 282, in render_blocks section = section(md) File /tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_util.py, line 86, in eval d) File UntrustedHTML, line 1, in _expression_NameError: name 'DateTime' is not defined ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] SERVER CRASHED! VHM/Apache2 Arrrgghh!!!
Help! Second day server's been down!! I tried to upgrade from apache 1.3.3 to 2.2.3 and now nothing works. Can't remember or find anything I changed on the old apache but that won't come up either. The problem is in proxying. I use VHM. I had to comment out the following lines in order to get Apache2 to come up: # Reverse proxy params CacheRoot /tmp/proxy/shop.2012.vi # CacheSize 10 # CacheGcInterval 2 # CacheLastModifiedFactor 0.1 # CacheDefaultExpire 1 # CacheDirLength 2 Of course, then nothing in Zope works, because it's all based on VHM! I've been googling my brains out with no luck! Did the cache rules get rewritten in Apache2? Is there new syntax I should use? Here's my configure command: ./configure --enable-so --enable-expires --enable-vqadmin --enable-speling --enable-rewrite --enable-cache --enable-deflate --enable-disk-cache --enable-mime-magic --enable-mods-shared=proxy proxy_http proxy_ftp proxy_connect headers Please help. This is my FOURTH POST, second to Zope, and NOBODY has responded to the first three! TIA, beno ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SERVER CRASHED! VHM/Apache2 Arrrgghh!!!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4 Aug 2006, at 08:09, beno wrote: Please help. This is my FOURTH POST, second to Zope, and NOBODY has responded to the first three! Maybe because your post is *off topic* because it has nothing at all to do with Zope? Please take this to a Apache list or a BSD list where it belongs. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFE0znpRAx5nvEhZLIRAjqIAJ4po17oIwTE9/84bTsjYAADc3t0pgCfUegg 36/fDPbyL1MBbTYgAjkpRNY= =6gwB -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SERVER CRASHED! VHM/Apache2 Arrrgghh!!!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4 Aug 2006, at 08:25, [Zope] Mailing List wrote: Jens Vagelpohl wrote: Maybe because your post is *off topic* because it has nothing at all to do with Zope? VHM is Zope. This is NOT off topic! The problem is getting VHM to work with Apache! Please take this to a Apache list or a BSD list where it belongs. Two of the other posts were to Apache and NOBODY responded. Look, MY SERVER'S DOWN!!! This is not off topic, and I hope to heck somebody will help me because I can't google up the answer and I'm at a loss and I've got clients that are pissed! I hope you will help me. Your clients *should* be pissed. You upgraded an important piece of software, apparently without any testing, and apparently without any emergency backup plan. I don't use BSD and I never build Apache by hand, I use packages provide by my Linux distribution. I cannot help with building Apache by hand, sorry. And even though you claim that this is a Zope problem, I maintain it isn't - the fact that you need Apache to access Zope does not make this a Zope issue. You're failing to build and configure Apache correctly. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFE00A3RAx5nvEhZLIRAlQLAKCgYg3rSjVscFS7lDx/CAOuqBxm9wCfbTv5 X27yrqBheSHIMfAtLdhokWc= =oAKW -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: SERVER CRASHED! VHM/Apache2 Arrrgghh!!!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 beno wrote: Help! Second day server's been down!! I tried to upgrade from apache 1.3.3 to 2.2.3 and now nothing works. Can't remember or find anything I changed on the old apache but that won't come up either. The problem is in proxying. I use VHM. I had to comment out the following lines in order to get Apache2 to come up: # Reverse proxy params CacheRoot /tmp/proxy/shop.2012.vi # CacheSize 10 # CacheGcInterval 2 # CacheLastModifiedFactor 0.1 # CacheDefaultExpire 1 # CacheDirLength 2 Of course, then nothing in Zope works, because it's all based on VHM! I've been googling my brains out with no luck! Did the cache rules get rewritten in Apache2? Is there new syntax I should use? Here's my configure command: ./configure --enable-so --enable-expires --enable-vqadmin --enable-speling --enable-rewrite --enable-cache --enable-deflate --enable-disk-cache --enable-mime-magic --enable-mods-shared=proxy proxy_http proxy_ftp proxy_connect headers Please help. This is my FOURTH POST, second to Zope, and NOBODY has responded to the first three! Perhaps your question is not phrased in such a way that anybody on this list can see how to help? Problems building or running Apache are *not* on-topic here; The possibly on-topic stuff for this list would relate purely to the question, How do I configure Apache2 to do virtual hosting against Zope? If you google for apache2 zope virtual hosting, you will find a bunch of useful information, mostly having to do with configuring 'mod_rewrite' for the various named virtual hosts. WRT the caching directives: I have never used Apache as a caching proxy (I use Squid for that), and I doubt many others here have either. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE00qg+gerLs4ltQ4RAuLpAJ48Qgend0eQDLi8t6R/BJZ3ZRTHugCg2BTQ q1QNK1q2Fep7Pnm4eXD64Wk= =gkF1 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Miquel Rodriguez está ausente de la oficina.
Estaré ausente de la oficina desde el Vie 04/08/2006 y no volveré hasta el Dom 03/09/2006 . Responderé a su mensaje cuando regrese. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] autorefresh a web page every x minutes
Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. Cheers, Alan -- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] autorefresh a web page every x minutes
--On 4. August 2006 15:32:26 +0100 Alan [EMAIL PROTECTED] wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. This is not a Zope question. Google for meta refresh tag. -aj pgpgHGnKHPBCB.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] autorefresh a web page every x minutes
This is Client-Pull web question, not Zope related. Here is an example of what needs to be in the head of the page: meta HTTP-EQUIV=Refresh CONTENT=5; URL=http://www.foo.com/foo.html; where 5 is seconds, so 300 would be 5 minutes, and the URL is the next url, leave out URL=http://www.foo.com/foo.html to refresh the same page. Cliff Alan wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. Cheers, Alan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Re: [Zope] autorefresh a web page every x minutes
Thanks a lot! Cheers, Alan On 04/08/06, Joerg Baach [EMAIL PROTECTED] wrote: Hi Alan, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? head meta http-equiv=refresh content=42; template_id /head replace 42 with the number of secs to refresh, template_id with the id of the ZPT. or do a meta http-equiv=refresh tal:attributes='content string:42;; URL=${template/id}' Cheers, Joerg -- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] adding product-based objects programmatically
Gabriel Genellina wrote at 2006-8-3 20:58 -0300: At Thursday 3/8/2006 15:51, Kees de Brabander wrote: dispatcher.Destination()._setObject(id, nQ) I remembered and checked: it was taken from the Zope Developer's Guide 2.4 edition on zope.org!! I would delete that from zope.org site. It's far too old and outdated, and confuses people. The Zope Developer's Guide is still useful. We should keep it until we got something better... -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] adding product-based objects programmatically
Kees de Brabander wrote at 2006-8-3 20:39 +0200: ... adding additional objects ... Thanks anyway, problem solved, even when done in the __init__ of Queryset. Would manage_afterAdd a more sensible place for it? You cannot do it in __init__ when the object needs a correct acquisition chain (which is not the case in __init__). This is the case, for example, when the object needs to be indexed. When you add further objects in manage_afterAdd, you have to be aware, that manage_afterAdd is not only called when the object is initially created but also for rename/move/copy. In all those cases, your objects are likely to be already there. This means that you have explicitely to check for this case. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] maximum recursion depth exceeded - SimpleUserFolder
Remy Pinsonnault wrote at 2006-8-3 16:53 -0400: I have a SimpleUserFolder 0.9.0 inside a GRUF folder. I am running on a Plone 2.1.3 instance. If I change the SimpleUserFolder to the newest version (1.1.2), I get a maximum recursion depth exceeded error (see traceback). What is wrong?? ... - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in getUserNames - Module Products.GroupUserFolder.GroupUserFolder, line 245, in getUserIds - Module Products.GroupUserFolder.GroupUserFolder, line 216, in getUserNames - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in getUserNames - Module Products.GroupUserFolder.GroupUserFolder, line 245, in getUserIds - Module Products.GroupUserFolder.GroupUserFolder, line 216, in getUserNames - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in getUserNames ... I think I have seen a corresponding warning in GRUF. But, I forgot the details. The traceback shows you that the infinite loop is SimpleUserFolder.getUserNames -- GroupUserFolder.getUserIds -- GroupUserFolder.getUserNames -- SimpleUserFolder.getUserNames Almost surely, SimpleUserFolder requires that a customization method getUserIds is present. Apparently, it is missing. Therefore, it is acquired -- and this enters an infinite loop... -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] new user, teething problems
At Friday 4/8/2006 05:21, John P. Looney wrote: On 8/4/06, Gabriel Genellina mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Page Templates are easier to use instead of DTML. True, but this is just starting off, to make sure it works. if it=='Zope': print It works! KeyError: u'date' Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error. This error says that there is nothing known as date. date was just a DHTML page that had a static string saying 'this would be a date'. What is a DHTML page here? In Zope you have DTML Methods and DTML Documents. Both are OBJECTS, not PAGES. Zope is *not* PHP nor ASP not ..., it's an object-oriented application server used to PUBLISH objects on the web. Please read the Zope Book (Zope3 version available at http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book), then came again if you have any questions. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] autorefresh a web page every x minutes
Andreas Jung wrote: --On 4. August 2006 15:32:26 +0100 Alan [EMAIL PROTECTED] wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. This is not a Zope question. Google for meta refresh tag. or google for real headers :-) context.REQUEST.RESPONSE.setHeader('refresh','60') for example. Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Using the Tree Widget
Is it possible to use the DTML tree widget to build a tree from non-Zope Object items? I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects. Does anyone have any experience in this area, or can you point me to some web site that may be able to help me? Thanks. -- David VanKirk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using the Tree Widget
- Original Message - From: David VanKirk [EMAIL PROTECTED] To: Zope Mailing List zope@zope.org Sent: Friday, August 04, 2006 4:53 PM Subject: [Zope] Using the Tree Widget Is it possible to use the DTML tree widget to build a tree from non-Zope Object items? I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects. Does anyone have any experience in this area, or can you point me to some web site that may be able to help me? This may help: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using the Tree Widget
- Original Message - From: David VanKirk [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Sent: Friday, August 04, 2006 6:23 PM Subject: Re: [Zope] Using the Tree Widget Unfortunately, I've already read over all of that. It does tell about all the features of the widget, but it doesn't seem to give me that connection to make this widget useful, aside from listing objects in Zope. I had a quick look at the dtml tree doc (i have never used it, so am just going on what i read), but it seems that you can specify methods that are called in order to obtain branch elements and there is an attribute 'expr' which allows you to provide an 'expression' which provides the value to be displayed, so it sounds as if you should be able to write your own routines to pull the info out of your db. Jonathan P.S. pls keep your posts on the list (that way others can help too!) Thanks though. On 8/4/06, Jonathan [EMAIL PROTECTED] wrote: - Original Message - From: David VanKirk [EMAIL PROTECTED] To: Zope Mailing List zope@zope.org Sent: Friday, August 04, 2006 4:53 PM Subject: [Zope] Using the Tree Widget Is it possible to use the DTML tree widget to build a tree from non-Zope Object items? I'd like to be able to build a tree from information I have stored in a database, unfortunately, the only information and examples I can find on the tree widget shows how to make a tree from Zope Objects. Does anyone have any experience in this area, or can you point me to some web site that may be able to help me? This may help: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan -- David VanKirk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )