[Zope-Annce] CMF 1.5.2beta released
Zope Corporation is pleased to announce the release of version 1.5.2beta of the Zope Content Management Framework (CMF). This release is intended for testing purposes only; we do not recommend deploying it to production servers. The final release of version 1.5.2 is expected mid-July 2005. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.2beta Points of interest include: - Windows ZIP file, http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.zip - Unix tar/gzip archive, http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.tar.gz . - Release notes, http://zope.org/Products/CMF/CMF-1.5.2beta/README.txt - Change history, http://zope.org/Products/CMF/CMF-1.5.2beta/CHANGES.txt - Installation instructions, http://zope.org/Products/CMF/CMF-1.5.2beta/INSTALL.txt Where do I go to learn more? The CMF mailing list ([EMAIL PROTECTED]) has many participants who are active in supporting the CMF. ...to report bugs? The CMF Collector:http://zope.org/Collectors/CMF is the place to report bugs (please search for existing reports of your issue first!) ___ 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 )
[Zope-Coders] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Mon Jun 27 11:01:02 2005 UTC to Tue Jun 28 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:24:26 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002455.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:25:56 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002456.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:27:26 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002457.html Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:28:56 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002458.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:30:27 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002459.html Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:31:57 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002460.html Subject: OK : Zope-trunk Python-2.3.5 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:33:27 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002461.html Subject: OK : Zope-trunk Python-2.4.1 : Linux From: Zope Unit Tests Date: Mon Jun 27 23:34:57 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-June/002462.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
[Zope] Re: WebDAV
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luiz Fernando B. Ribeiro wrote: I'm using webdav to update to access files from Dreamweaver and it is working fine but when I try to use windows web folders feature it fails with the following error in zope log. It seems that windows is requesting the PROPFIND before authenticating. Any clues? Zope Version (Zope 2.7.5-final, python 2.3.5, linux2) Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12)] System Platform linux2 Time 2005/06/27 15:05:48.973 GMT-3 User Name (User Id) Anonymous User (None) Request URL http://my.server/clientes/PROPFIND Exception Type Unauthorized Exception Value strongYou are not authorized to access this resource./strong Traceback (innermost last): * Module ZPublisher.Publish, line 92, in publish * Module ZPublisher.BaseRequest, line 449, in traverse * Module ZPublisher.HTTPResponse, line 680, in unauthorized Unauthorized: strongYou are not authorized to access this resource./strong Thanks in advance, The Windows WebFolder implementation has been non-compliant with the DAV spec from the beginning, and further broken in various ways in each version. The usual recommendation is to buy an alternative, e.g. Enfold Systems' PloneDesktop, or WebDrive. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCwQL2+gerLs4ltQ4RAnrIAJ0dZsPX9iTFm10B4eEnqEkWWPY7EACfc7FK Ne1wmNpjfv+dVcp+9U2u0Lo= =HYFw -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] Re: WebDAV
On Tue, 2005-06-28 at 03:57 -0400, Tres Seaver wrote: The Windows WebFolder implementation has been non-compliant with the DAV spec from the beginning, and further broken in various ways in each version. The usual recommendation is to buy an alternative, e.g. Enfold Systems' PloneDesktop, or WebDrive. The bug may be shallower than that. Luiz, have you tried using the URL syntax that includes a username and password when using open as webfolder? http://user:[EMAIL PROTECTED]:port/ Webfolders do work against Zope, just not very reliably. MS breaks them every so often in subtle fun ways. For instance, I read a blog post somewhere that said an update to Win 2K in January broke Webfolders against Zope completely... I haven't had such luck, my web folders still work sometimes wink. - C ___ 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] CMF 1.5.2beta released
Zope Corporation is pleased to announce the release of version 1.5.2beta of the Zope Content Management Framework (CMF). This release is intended for testing purposes only; we do not recommend deploying it to production servers. The final release of version 1.5.2 is expected mid-July 2005. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.2beta Points of interest include: - Windows ZIP file, http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.zip - Unix tar/gzip archive, http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.tar.gz . - Release notes, http://zope.org/Products/CMF/CMF-1.5.2beta/README.txt - Change history, http://zope.org/Products/CMF/CMF-1.5.2beta/CHANGES.txt - Installation instructions, http://zope.org/Products/CMF/CMF-1.5.2beta/INSTALL.txt Where do I go to learn more? The CMF mailing list ([EMAIL PROTECTED]) has many participants who are active in supporting the CMF. ...to report bugs? The CMF Collector:http://zope.org/Collectors/CMF is the place to report bugs (please search for existing reports of your issue first!) ___ 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: Sharing global data between threads / locking a method
Dieter Maurer wrote: Max M wrote at 2005-6-27 15:53 +0200: ... So in a external method/module I have a function like this: BUSY_STATE = 0 def sync_in_progress(busy=None): global BUSY_STATE if busy is None: return BUSY_STATE else: BUSY_STATE = busy Note that this is likely to fail. The module containing an External Method is maintained in the ZODB cache. As a consequence, each worker gets its own copy and you cannot synchronize via global variables of such modules. Use a true Python module (note that Zope does not import the source file of an External Method; therefore, it is not inside a module in the Python sense) when you need synchronization via global module level variables. I wrote a small tool and ended up with this: BUSY_STATE = 0 def sync_in_progress(busy=None): global BUSY_STATE print '' print 'BUSY_STATE:', BUSY_STATE, 'busy:', busy print '' if not busy is None: BUSY_STATE = busy return BUSY_STATE class Syncer(UniqueObject, PropertyManager, SimpleItem.SimpleItem, ActionProviderBase): def redirect(self, url): self.REQUEST.RESPONSE.redirect(url) def reset(self): reset return repr(sync_in_progress(0)) def sync(self): Syncs print '##' print 'sync start' if not sync_in_progress(): sync_in_progress(1) self.redirect('%s/sync_action' % self.absolute_url()) else: return 'SYNC: in progress' def sync_action(self): sync_action # do stuff sync_in_progress(1) self.sync_calendar() self.sync_email() sync_in_progress(0) return 'SYNC: done' It doesn't seem to work without the redirect. Which is the reason for having both a sync and a sync_action method. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science ___ 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] Tweaking Zope DB- and connection parameters
Hello everyone, I'm trying to figure out what I can set all (I know) Zope Parameters to to get a good overall performance on our old live installation. We have a new System with upgraded Zope and the like in the making but untill then I'm trying to keep what is up smooth and stable. Machine: Dual Pentium with 4Gig Ram running on Suse Linux. Zope 2.7.2 with Python 2.3.4 and ZMS for the Sites. There's a recent Apache 1.3.x in Front for caching and like 25 Sites running on the system, some very rarely visited some more loaded. While running the system with out-of-the-box-parameters at times of high load the RAM went full, the machine started swapping and spiraling down so I started to set limits in Apache and Zope. I was mostly just guessing! Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db With this settings the machine tops at load around 1.8 - 2 and no swapping takes place *puuh* but still users sometimes, too often for users taste, get to wait a minute and longer for their page. For me it tastes like a garbage collection or whatnot because after 5-20 minutes everything is fine again for an hour or two... - Apaches MaxClients is set for general limit - zserver-threads: How many ppl, approx., can connect with this set to 5? Would be good to synchronize this with the apache settings somehow? - cache-size: This is per DB connection (pool-size) as I have learned, I did set this down to limit memory usage - pool-size: number of concurrent DB-Connections as I learned. Does every concurrent connection have to have it's own db-connection or do N zserver-threads share one? What I'm looking for is general advice how these parameters work and can be set for best cooperation. Or if there are other Params that I have missed yet ;) E.g. every zserver-thread uses one db-connection and can server one user so for 50 concurrent users you have to set everything to 50 and tweak cache-size according to 'Cache Parameters' in the Zope config and your RAM-load behaves Which is nonsense I bet but something like that would help me great time. Thanks in Advance for any Help! /Carsten Carsten Germer Deutsches Elektronen Synchrotron (Web-Office, IT) phone: +49-40-8998-1661Notkestr. 85 web: http://wof.desy.de22607 Hamburg e-mail: [EMAIL PROTECTED] Germany ___ 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] Tweaking Zope DB- and connection parameters
zserver-threads and pool-size should be almost the same. Each HTTP request from Apache to Zope uses a Connection object bound to a Transaction object. As each Connection object has its own cache, then if the connection pool size is much higher than the number of zsever threads, you could end up using new connections with empty cache when it's not necessary... This will make the request response time slower (cause the connection will need to get all objects from ZODB) and will end up using unecessary memory (cause all connection caches will be caching objects). I would recommend pool-size 8 if you keep zserver-threads to 5. (I don't know why pool-size must be a little higher than threads, but the default configuration is 4 threads and 7 connections, so...) Then try increasing the cache size, because if you have lots of different websites, caching 500 objects will probably cause each connection to often load objects from ZODB (cache miss). To monitor that you can use Control Panel - Database Management - Main - Cache Parameters For each connection, if the number of active objects hits your 500 limit, then it may be a good idea to increase it. But of course this will depend oh the available memory you have. Hope this helps. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Germer, Carsten Envoyé : mardi 28 juin 2005 11:32 À : zope list user Objet : [Zope] Tweaking Zope DB- and connection parameters Hello everyone, I'm trying to figure out what I can set all (I know) Zope Parameters to to get a good overall performance on our old live installation. We have a new System with upgraded Zope and the like in the making but untill then I'm trying to keep what is up smooth and stable. Machine: Dual Pentium with 4Gig Ram running on Suse Linux. Zope 2.7.2 with Python 2.3.4 and ZMS for the Sites. There's a recent Apache 1.3.x in Front for caching and like 25 Sites running on the system, some very rarely visited some more loaded. While running the system with out-of-the-box-parameters at times of high load the RAM went full, the machine started swapping and spiraling down so I started to set limits in Apache and Zope. I was mostly just guessing! Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db With this settings the machine tops at load around 1.8 - 2 and no swapping takes place *puuh* but still users sometimes, too often for users taste, get to wait a minute and longer for their page. For me it tastes like a garbage collection or whatnot because after 5-20 minutes everything is fine again for an hour or two... - Apaches MaxClients is set for general limit - zserver-threads: How many ppl, approx., can connect with this set to 5? Would be good to synchronize this with the apache settings somehow? - cache-size: This is per DB connection (pool-size) as I have learned, I did set this down to limit memory usage - pool-size: number of concurrent DB-Connections as I learned. Does every concurrent connection have to have it's own db-connection or do N zserver-threads share one? What I'm looking for is general advice how these parameters work and can be set for best cooperation. Or if there are other Params that I have missed yet ;) E.g. every zserver-thread uses one db-connection and can server one user so for 50 concurrent users you have to set everything to 50 and tweak cache-size according to 'Cache Parameters' in the Zope config and your RAM-load behaves Which is nonsense I bet but something like that would help me great time. Thanks in Advance for any Help! /Carsten Carsten Germer Deutsches Elektronen Synchrotron (Web-Office, IT) phone: +49-40-8998-1661Notkestr. 85 web: http://wof.desy.de22607 Hamburg e-mail: [EMAIL PROTECTED] Germany ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ Zope maillist - Zope@zope.org
RE: [Zope] Tweaking Zope DB- and connection parameters
Ahh, this clarifies so far, thanks. But about how many zserver-threads would one need for approx. 50 concurrent connections? /Carsten -Original Message- From: Pascal Peregrina [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 11:54 AM To: Germer, Carsten; zope list user Subject: RE: [Zope] Tweaking Zope DB- and connection parameters zserver-threads and pool-size should be almost the same. Each HTTP request from Apache to Zope uses a Connection object bound to a Transaction object. As each Connection object has its own cache, then if the connection pool size is much higher than the number of zsever threads, you could end up using new connections with empty cache when it's not necessary... This will make the request response time slower (cause the connection will need to get all objects from ZODB) and will end up using unecessary memory (cause all connection caches will be caching objects). I would recommend pool-size 8 if you keep zserver-threads to 5. (I don't know why pool-size must be a little higher than threads, but the default configuration is 4 threads and 7 connections, so...) Then try increasing the cache size, because if you have lots of different websites, caching 500 objects will probably cause each connection to often load objects from ZODB (cache miss). To monitor that you can use Control Panel - Database Management - Main - Cache Parameters For each connection, if the number of active objects hits your 500 limit, then it may be a good idea to increase it. But of course this will depend oh the available memory you have. Hope this helps. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Germer, Carsten Envoyé : mardi 28 juin 2005 11:32 À : zope list user Objet : [Zope] Tweaking Zope DB- and connection parameters Hello everyone, I'm trying to figure out what I can set all (I know) Zope Parameters to to get a good overall performance on our old live installation. We have a new System with upgraded Zope and the like in the making but untill then I'm trying to keep what is up smooth and stable. Machine: Dual Pentium with 4Gig Ram running on Suse Linux. Zope 2.7.2 with Python 2.3.4 and ZMS for the Sites. There's a recent Apache 1.3.x in Front for caching and like 25 Sites running on the system, some very rarely visited some more loaded. While running the system with out-of-the-box-parameters at times of high load the RAM went full, the machine started swapping and spiraling down so I started to set limits in Apache and Zope. I was mostly just guessing! Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db With this settings the machine tops at load around 1.8 - 2 and no swapping takes place *puuh* but still users sometimes, too often for users taste, get to wait a minute and longer for their page. For me it tastes like a garbage collection or whatnot because after 5-20 minutes everything is fine again for an hour or two... - Apaches MaxClients is set for general limit - zserver-threads: How many ppl, approx., can connect with this set to 5? Would be good to synchronize this with the apache settings somehow? - cache-size: This is per DB connection (pool-size) as I have learned, I did set this down to limit memory usage - pool-size: number of concurrent DB-Connections as I learned. Does every concurrent connection have to have it's own db-connection or do N zserver-threads share one? What I'm looking for is general advice how these parameters work and can be set for best cooperation. Or if there are other Params that I have missed yet ;) E.g. every zserver-thread uses one db-connection and can server one user so for 50 concurrent users you have to set everything to 50 and tweak cache-size according to 'Cache Parameters' in the Zope config and your RAM-load behaves Which is nonsense I bet but something like that would help me great time. Thanks in Advance for any Help! /Carsten --- - Carsten Germer Deutsches Elektronen Synchrotron (Web-Office, IT) phone: +49-40-8998-1661 Notkestr. 85 web: http://wof.desy.de 22607 Hamburg e-mail: [EMAIL PROTECTED] Germany --- - ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received
Re: [Zope] Debugging a python routine
Dieter Maurer escribió: John Poltorak wrote at 2005-6-27 16:45 +0100: Can anyone suggest how I would go about debugging a Python routine like this through Zope? It depends what type of object you want to debug, how much money you are ready to invest and how much comfort you need. At one endpoint is pdb (the Python debugger): * part of Python's runtime libary (no costs) * archaic user interface, (almost) without any comfort * after code changes able to debug trusted code (and untrusted Python Scripts once you used the appropriate allow_module and allow_class) if Zope runs in the foreground. The code change is adding a import pdb; pdb.set_trace() At another endpoint is e.g. the commercial (!) WingIDE: * costs money, needs installation * comfortable, menu driven user interface * debugging of trusted code and untrusted PythonScripts * no code changes necessary Hi all! Dieter: can you send us some info about debug PythonScripts with WingIDE? All: WingIDE is free if you develop open source. Rencently I ask them for some licences but I can't demostrate I'm working on open source and they send me 2 180 days licences (I have windows and mac plataforms). If you can demostrate you are developing open source (they only ask for the project's url) they send you permanent licences Cheers -- Mis Cosas http://blogs.sistes.net/Garito/ ___ 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] OFS.SimpleItem problem with maximum recursion depth exceeded Error
Hi: I have a simple schema based on the Article ArchExample schema which uses the RichWidget for file upload. The product worked fine in Zope2.6.1/Plone1 but does not work in zope2.7.5-final/Plone2.0.5. I am getting a RuntimeError: maximum recursion depth exceeded error while trying to view the uploaded file --- Traceback (innermost last): Module ZPublisher.Publish, line 175, in publish_module_standard Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish Module ZPublisher.Publish, line 132, in publish Module Zope.App.startup, line 204, in zpublisher_exception_hook Module ZPublisher.Publish, line 95, in publish Module Zope.App.startup, line 258, in recordMetaData Module OFS.SimpleItem, line 333, in getPhysicalPath Module OFS.SimpleItem, line 76, in lambda Module OFS.SimpleItem, line 310, in getId Module OFS.SimpleItem, line 76, in lambda ... ... Module OFS.SimpleItem, line 310, in getId Module OFS.SimpleItem, line 76, in lambda RuntimeError: maximum recursion depth exceeded (Also, an error occurred while attempting to render the standard error message.) - END Traceback I googled and found that it is zope bug (issue# 1253, URL:http://www.zope.org/Collectors/Zope/1253). I also, found similar this error is documented in Bug#928693 909894 in Plone2. Diater suggested a workaround (in zope Issue# 1253) which I don't quite understand being a python newbie. From Dieter: This is a bug in OFS.SimpleItem.Item_w__name__. In its base class, __name__ is defined as ComputedAttribute(lambda self: self.getId()) and it defines getId() to return self.__name__. Apparently, this is an infinite recursion. Please file a bug report to http://www.zope.org/Collectors/Zope http://www.zope.org/Collectors/Zope/1253/. You can fix this problem by giving Item_w__name__ a default class level attribute or __name__ = ''. You can work around the bug by assigning an id for your object with its _setId method (this overrides __name__). Could someone please tell me where/what code I should make this changes? I posted this before in Plone list but did not get any response, may be because it is a Zope issue. My platform details: Zope Version (Zope 2.7.5-final, python 2.3.4, freebsd5) Python Version 2.3.4 (#2, Oct 21 2004, 17:49:27) [GCC 3.3.3 [FreeBSD] 20031106] Plone version: 2.0.5 Archetype version: 1.2.5-rc5 Any help is greatly appreciated. Gautam ___ 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] loading an url from a restricted python script
hello I'm writting a restricted python script (in the zmi) and I wish to load an url that the user gives to me in order to diplay it back, inside my web page. is there a zope method that I can use, or must I relay on an external python script and use urllib ? thanks ___ 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] loading an url from a restricted python script
--On 28. Juni 2005 16:53:35 +0200 santiago [EMAIL PROTECTED] wrote: hello I'm writting a restricted python script (in the zmi) and I wish to load an url that the user gives to me in order to diplay it back, inside my web page. is there a zope method that I can use, or must I relay on an external python script and use urllib ? This is a FAQ: use filesystem based code. -aj pgpu6ow4bEzNt.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] loading an url from a restricted python script
On Tue, Jun 28, 2005 at 04:56:07PM +0200, Andreas Jung wrote: --On 28. Juni 2005 16:53:35 +0200 santiago [EMAIL PROTECTED] wrote: hello I'm writting a restricted python script (in the zmi) and I wish to load an url that the user gives to me in order to diplay it back, inside my web page. is there a zope method that I can use, or must I relay on an external python script and use urllib ? This is a FAQ: use filesystem based code. Also note that you may find existing third-party code that does what you want. Have a look at KebasData. -PW -- Paul Winkler http://www.slinkp.com ___ 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] plone site dreamweaver
Hello! I need to use dreamweaver to manage a plone site but I cannot find a detailed howto. Any help? thank you, stefano. ___ 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] Re: External editor for ZMI
I've been following this discussion with some interest as I have never been able to get ExternalEditor to work for me. Now, that said, I have it confiured enough that it will present me with an editor and a file (WinWord) by clicking on the pencil. But I am confused on two points: 1.) When Word opens a document it presents me with text without any formatting. Also gives me metadata, URL, cookie info etc. Is this how it is supposed to work? No... sounds like there may be a mismatch between the version of external editor on your server and the version on your client. At least that's all I can think of. 2.) When I save the work, I don't know where is goes or how to get it back to my plone site. It's supposed to save on top of whatever document you clicked on. ___ 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] Tweaking Zope DB- and connection parameters
Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db I will note that a cache-size of 500 is ridiculously low. (Even though old versions of Zope shipped configured like this!) It needs to be at least 5000. Frankly, 5 wouldn't be bad for a large, busy site. To optimize your cache-size param, watch the ZODB read/write graph, and keep increasing the cache-size until (a) there's no more effect on reads or (b) you run into memory trouble. Of course, the optimization will slip a little as site usage patterns change. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com ___ 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] CMFFormController doubts
cla wrote at 2005-6-27 17:10 +0100: I'am trying to add one more field in the edit_news_form(plone) but when i execute the script that probably stores the object information of this new field aren't stored. It would have been better to send this question to the Plone-users mailing list. Of course, changing the form is not enough. You must also define a new property for the content class and change the action such that it take the value from the new form control into the new property. -- 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] Debugging a python routine
Garito wrote at 2005-6-28 13:22 +0200: ... Dieter: can you send us some info about debug PythonScripts with WingIDE? No, I cannot -- colleagues of mine use it (and are quite satisfied); I am using the archaic pdb :-) But, I am sure, you find information on the respective web site... All: WingIDE is free if you develop open source. Even better: download it and look at its documentation... -- 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] Problem with ZSQLMethods/MySQL after update
Ragnar Beer wrote at 2005-6-27 18:50 +0200: After upgrading Zope from version 2.6.4 to 2.8.0 and mysqlpython from 0.9.2 to 1.2.0 I cannot add or edit ZSQLMethods anymore, although there is an open (MySQL)db-Connection that works just fine with the same ZSQLMethods that cannot be edited or with external methods. The error I'm getting is: There are no SQL database connections. You need to add a Zope SQL database connection before you can edit a Zope SQL Method. Almost surely, your ZMySQLDA instances are broken (and then do not behave as SQL database connection instances). Check your Zope logfile for messages of the form could not install product -- 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] WebDAV
Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300: I'm using webdav to update to access files from Dreamweaver and it is working fine but when I try to use windows web folders feature it fails with the following error in zope log. It seems that windows is requesting the PROPFIND before authenticating. Any clues? Zope Version (Zope 2.7.5-final, python 2.3.5, linux2) Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12)] System Platform linux2 Time 2005/06/27 15:05:48.973 GMT-3 User Name (User Id)Anonymous User (None) Request URLhttp://my.server/clientes/PROPFIND Exception Type Unauthorized Exception ValuestrongYou are not authorized to access this resource./strong This, by itself, is completely normal. MS WebDAV Access should in this case show a login dialog. After providing the correct authentication info, you should be able to access the folder. The MS WebDAV Access in my Windows XP Professional behaves in this way. -- 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] OFS.SimpleItem problem with maximum recursion depth exceeded Error
Gautam Saha wrote at 2005-6-28 09:51 -0500: I have a simple schema based on the Article ArchExample schema which uses the RichWidget for file upload. The product worked fine in Zope2.6.1/Plone1 but does not work in zope2.7.5-final/Plone2.0.5. I am getting a RuntimeError: maximum recursion depth exceeded error while trying to view the uploaded file ... Module OFS.SimpleItem, line 76, in lambda RuntimeError: maximum recursion depth exceeded (Also, an error occurred while attempting to render the standard error message.) This is a bug in OFS.SimpleItem.Item which defined getId in terms of __name__ and __name__ in terms of getId (which obviously is unhealthy). The bug it triggered when an item is constructed that neither got an explicit id nor __name__. ... Could someone please tell me where/what code I should make this changes? OFS.SimpleItem.Item_w_Name uses the Python hierarchical access syntax. This translates into the file path OFS/SimpleItem.py (the module part of the Python access path) and there the object Item_w_Name (a class in 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] RE: ZopeProfiler issue (found root cause)
Pascal Peregrina wrote at 2005-6-27 20:50 +0200: Well, what about : try: p= gP() except: return ;) It travels to your server. It might even get a return value (in case, it is a Zope server) but not necessarily what we expect. I hate unrestricted try: ... except: They often tend to obscure bugs that should be revealed. They are unsafe when persistent objects are affected. I will test your patch, not sure about the +s_class = getattr(s, '__class__', None) +gpp_class = getattr(s, '__class__', None) The second is definitely wrong. The s needs to be gP. The 3 lines should check whether s and s.getPhysicalPath have the same class (as is the case when s is an xmlrpclib._Method). -- 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] loading an url from a restricted python script
I don't understand still : what I am looking for is a way to read a url whitout having to write an external method. the point is I belived that reading a url in a web application like zope should not require such powerfull tool as external methods or dedicated products.. Andreas Jung wrote: You answered your question already with our question. Filesystem-based code=trusted code=External methods or Zope products. -aj --On 28. Juni 2005 17:05:42 +0200 santiago [EMAIL PROTECTED] wrote: sorry, I don't understand: what is th 'filesystem based code' ? Andreas Jung wrote: --On 28. Juni 2005 16:53:35 +0200 santiago [EMAIL PROTECTED] wrote: hello I'm writting a restricted python script (in the zmi) and I wish to load an url that the user gives to me in order to diplay it back, inside my web page. is there a zope method that I can use, or must I relay on an external python script and use urllib ? This is a FAQ: use filesystem based code. -aj ___ 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] loading an url from a restricted python script
santiago wrote: I don't understand still : what I am looking for is a way to read a url whitout having to write an external method. the point is I belived that reading a url in a web application like zope should not require such powerfull tool as external methods or dedicated products.. There is nothing special about either. They are simply how you do things that are not anticipated by the framework (and screen-scraping isn't that common). Many people seem to have placed artificial walls around the use of External Methods, but there's no good reason for this; they take about 10 seconds more to set up than TTW Python scripts. Look at KebasData: if it works for you it may save you a lot of time. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com ___ 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] Sequencing pages
John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? I presume that under normal circumstances that sequence would be in alphabetical order of object ID. The standard folder lists its contents in unspecified order. In practice, it's in order of creation (I think.) You can get ordered folders, which support changing the order. In fact, one ships with Zope in recent versions. Look for Folder (Ordered). What I did before ordered folders was to give each object a property (like 'sort_order') with an integer value designating it's place, and then sort the list on that property. Not terribly efficient, though using the catalog would help. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com ___ 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] Breadcrumb dilemma
My apologies if this is easily found in the mail-list archives (I found no easy way to search that wealth of information). I feel silly asking this collective about such a simple question, but for the life of me, I'm completely stumped. I have implemented a Plone 2.x site for our public website, and have completely replaced all the standard Plone skin. When I felt comfortable with the front page design, I wanted to use the same look and feel for my subfolders. I created a new folder (company), added the appropriate images etc., and *voila* the new section has the section specific content I want. However, the breadcrumb trail will only display you are here: home. I simply cannot figure out what I haven't included (or what I killed when I created my new skin) that will make the breadcrumb pick up the new folder (you are here: home company). Thanks for any insight! Steve ___ 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] Breadcrumb dilemma
On 28 Jun 2005, at 23:50, Adamo, Steven wrote: However, the breadcrumb trail will only display you are here: home. I simply cannot figure out what I haven't included (or what I killed when I created my new skin) that will make the breadcrumb pick up the new folder (you are here: home company). Since that is probably specific Plone functionality you might be better off asking on the Plone lists. jens ___ 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] merging the contents of two acl_users folders
Maybe you've already solved this but I know that the IssueTrackerProduct has a Issue User Folder which when instanciated has an option to convert existing acl_users users. You might want to dig into its source code where it picks up old users. On 6/23/05, Jim Abramson [EMAIL PROTECTED] wrote: Can it be done? If not that, the ability to move selected users from one acl_users to another would be a decent plan B. This is a one-time move, so I consider any effective solution viable, even if some manual hacking is involved. Thanks for any help, Jim ___ 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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ 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] WebDAV
Dieter Maurer wrote: Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300: I'm using webdav to update to access files from Dreamweaver and it is working fine but when I try to use windows web folders feature it fails with the following error in zope log. It seems that windows is requesting the PROPFIND before authenticating. Any clues? Zope Version (Zope 2.7.5-final, python 2.3.5, linux2) Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12)] System Platform linux2 Time2005/06/27 15:05:48.973 GMT-3 User Name (User Id) Anonymous User (None) Request URL http://my.server/clientes/PROPFIND Exception Type Unauthorized Exception Value strongYou are not authorized to access this resource./strong This, by itself, is completely normal. MS WebDAV Access should in this case show a login dialog. After providing the correct authentication info, you should be able to access the folder. The MS WebDAV Access in my Windows XP Professional behaves in this way. Hi Dieter, The login dialog is show but even with my manager password it's not able to login. The error message above is repeated after each atempt. With Netdrive or Dreamweaver it works fine but windows web folders is a good feature for simple users. I thought that some kind of workaround was available. Even with Chris sugestion to use full url with user and password has failed. I'm using Windows XP SP2. Thanks, Luiz Fernando B. Ribeiro Engenho Soluções para a Internet ___ 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] WebDAV
Note that MS has a Webfolders fixer program, see: http://chapters.marssociety.org/webdav (beginning Some Windows XP machines have a broken Web Folders installation. Microsoft includes a Web Folders repair utility built in to Windows to correct the problem. Use the following steps to fix the problem:) See also http://teyc.editthispage.com/2005/06/02 - C On Wed, 2005-06-29 at 01:19 -0300, Luiz Fernando B. Ribeiro wrote: Dieter Maurer wrote: Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300: I'm using webdav to update to access files from Dreamweaver and it is working fine but when I try to use windows web folders feature it fails with the following error in zope log. It seems that windows is requesting the PROPFIND before authenticating. Any clues? Zope Version (Zope 2.7.5-final, python 2.3.5, linux2) Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12)] System Platform linux2 Time2005/06/27 15:05:48.973 GMT-3 User Name (User Id) Anonymous User (None) Request URL http://my.server/clientes/PROPFIND Exception Type Unauthorized Exception Value strongYou are not authorized to access this resource./strong This, by itself, is completely normal. MS WebDAV Access should in this case show a login dialog. After providing the correct authentication info, you should be able to access the folder. The MS WebDAV Access in my Windows XP Professional behaves in this way. Hi Dieter, The login dialog is show but even with my manager password it's not able to login. The error message above is repeated after each atempt. With Netdrive or Dreamweaver it works fine but windows web folders is a good feature for simple users. I thought that some kind of workaround was available. Even with Chris sugestion to use full url with user and password has failed. I'm using Windows XP SP2. Thanks, Luiz Fernando B. Ribeiro Engenho Soluções para a Internet ___ 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 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] Problem with ZSQLMethods/MySQL after update
I could be totally wrong, but just a thought You might remove the Zmysqlda 2.0.8 you have and download and install the 2.0.9b3. Do some reading before, and maybe you can simply reinstall 2.0.8. I cant remember what it was that needed 2.0.9, maybe it was just having mysqlpython 1.2.0. (because of mysql 4.1.x or new python, cant remember) Ok I am just thinking outloud now, sorry. But heck, if it helps. :) Greg On 6/28/05, Dieter Maurer [EMAIL PROTECTED] wrote: Ragnar Beer wrote at 2005-6-27 18:50 +0200: After upgrading Zope from version 2.6.4 to 2.8.0 and mysqlpython from 0.9.2 to 1.2.0 I cannot add or edit ZSQLMethods anymore, although there is an open (MySQL)db-Connection that works just fine with the same ZSQLMethods that cannot be edited or with external methods. The error I'm getting is: There are no SQL database connections. You need to add a Zope SQL database connection before you can edit a Zope SQL Method. Almost surely, your ZMySQLDA instances are broken (and then do not behave as SQL database connection instances). Check your Zope logfile for messages of the form could not install product -- 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 ) -- Greg Fischer 1st Byte Solutions http://www.1stbyte.com ___ 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 )