[Zope-Checkins] SVN: Zope/trunk/lib/python/ use a specific revision of the Zope 3 trunk for now until we have some sort of tag
Log message for revision 40048: use a specific revision of the Zope 3 trunk for now until we have some sort of tag available (e.g. a Zope 3.2 beta tag). Changed: _U Zope/trunk/lib/python/ _U Zope/trunk/lib/python/zope/ -=- Property changes on: Zope/trunk/lib/python ___ Name: svn:externals - ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/BTrees persistent svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZopeUndo zdaemon-r 39732 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon pytz svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz zodbcode svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode + ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1 BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/BTrees persistent svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/persistent ThreadedAsync svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ThreadedAsync transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/transaction ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZEO ZODB svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZODB ZopeUndo svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZopeUndo zdaemon-r 39732 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon pytz -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz zodbcode -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode Property changes on: Zope/trunk/lib/python/zope ___ Name: svn:externals - app svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/app cachedescriptors svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/cachedescriptors componentsvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/component configuration svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/configuration documenttemplate svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/documenttemplate eventsvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/event exceptions svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/exceptions hookable svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/hookable i18n svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18n i18nmessageid svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18nmessageid interfacesvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/interface modulealias svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/modulealias pagetemplate svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/pagetemplate proxysvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/proxy publishersvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/publisher schema svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/schema security svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/security server svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/server structuredtext svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/structuredtext tal svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tal talessvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tales testing -r39830 svn://svn.zope.org/repos/main/zope.testing/trunk/src/zope/testing thread svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/thread deprecation svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/deprecation dottedname svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/dottedname formlib svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/formlib indexsvn://svn.zope.org/repos/main/Zope3/trunk/src/zope/index + app -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/app cachedescriptors -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/cachedescriptors component-r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/component configuration-r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/configuration documenttemplate -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/documenttemplate event-r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/event exceptions -r 40034 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/exceptions hookable -r 40034
Re: [Zope] Zope 2.8 or 3.1?
En/na Jens Vagelpohl ha escrit: The only issues you might ever run into would be problems with the Python that comes with the OS. But then again if you run Zope in production you should never ever use the system Python and build your own instead. The system Python tends to be compiled with weird flags on RH-based distros to suit their own needs for the many Python-based scripts they have in the OS. Don't use it, build your own. I agree with your opinion, but I have to add that yesterday (that's why I follow-up now to this old thread) I had to build python 2.3.5 on a shiny new x86_64 machine and it's been a bitch to get right. Luckily I found the patches in the (mandriva) rpm for 2.3.4 that solved (or at least it seems so) the issues with lib/lib64 (there are still a couple of tests failing but zope seems to run fine). Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ 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] help with url rewriting
Faheem Mitha wrote: Why not just: /plone(.*) This is the way to go, I don't know what Sascha meant when he was talking about 2 rules. However, he did have a very good point about SSL. If you want Apache to do the SSL encryption and decryption, then you need to set up mod_ssl, sort out the certificates, etc. I have this working on a few of my servers but I'm working offline so can't really have a look to see what you're doing wrong... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] msSql and python
Floyd May a écrit : You can do it like this (inside the query): --8 dtml-if description WHERE description = dtml-sqlvar description type=string /dtml-if --8 Or like this: dtml-sqlgroup where dtml-if description dtml-sqltest description type=string /dtml-if /dtml-sqlgroup -- Bertrand Croq - FreesKop - Avenue Robert Schuman - 35170 BRUZ http://www.freeskop.com/ - Tel: 02 99 05 04 56 - Fax: 02 99 05 96 40 ___ 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] Problem Inserting zsql query result
Greetings, I would like to insert the results of a query into another table and am doing this from a python script. I am setting the results of a queryequal to a variable with the following: variable = container.zsql_method(paramater=value)[0][0] This gives the results I want (in this case 0), but when I try to insert this variable using another zsql method, I get the following error: MySQL server version for the right syntax to use near '0\n)' The value I want is there, but it has a newline character also. I try removing using .replace but then I get the following error: 'long' object has no attribute 'replace' I would greatly appreciate it if someone could point me in the right direction. Than you very much, Ivan ___ 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 Inserting zsql query result
On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Greetings, I would like to insert the results of a query into another table and am doing this from a python script. I am setting the results of a queryequal to a variable with the following: variable = container.zsql_method(paramater=value)[0][0] Try getting the field out by name, not number. Eg: variable = container.zsql_method(paramater=value)[0]['count'] or variable = container.zsql_method(paramater=value)[0]['age'] This gives the results I want (in this case 0), but when I try to insert this variable using another zsql method, I get the following error: MySQL server version for the right syntax to use near '0\n)' The value I want is there, but it has a newline character also. I try removing using .replace but then I get the following error: 'long' object has no attribute 'replace' I would greatly appreciate it if someone could point me in the right direction. Than you very much, Ivan ___ 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] Problem Inserting zsql query result
Peter, Thank you, but unfortunately I still get the same error due to the newline character being there and still cannot remove it with variable.replace. Can a long object be converted to a string or integer some way? On 11/12/05, Peter Bengtsson [EMAIL PROTECTED] wrote: On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Greetings,I would like to insert the results of a query into another table and am doing this from a python script. I am setting the results of a queryequal to a variable with the following:variable = container.zsql_method(paramater=value)[0][0]Try getting the field out by name, not number.Eg:variable = container.zsql_method(paramater=value)[0]['count'] orvariable = container.zsql_method(paramater=value)[0]['age']This gives the results I want (in this case 0), but when I try to insert this variable using another zsql method, I get the following error: MySQL server version for the right syntax to use near '0\n)'The value I want is there, but it has a newline character also. I try removing using .replace but then I get the following error: 'long' object has no attribute 'replace'I would greatly appreciate it if someone could point me in the right direction.Than you very much,Ivan ___ 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.comhome 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 )
[Zope] experience w/ filestorage mount points? maximum?
I am writing to tap the list's experience with running a single zope instance with a large number (30, 500, 2000?) of mount points. We're hosting a number of client sites, and for each client, e.g. clientX, we have a mount point: zodb_db clientX mount-point /clientX filestorage path $INSTANCE/var/clientX/Data.fs /filestorage /zodb_db Currently, we have about a dozen of these. This works well. Of course, more clients will increase server load, but so long as that is more or less linear and gradual, that's fine. Questions for the list: - What's the greatest number of mount points that folks have set up this way(50? 1000? more?) and what's been the experience, particularly with non-linear responses (e.g. it all goes to pot after n=100)? - Are there any theoretical limits on the number of mount points? 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 )
[Zope] Foundation status update
Hello everyone: We wanted to send an update on the status of the Zope Foundation. We circulated a number of documents to an advisory committee. The comments were excellent and precise. The comments also identified a number of documents that needed to be either developed or updated before we circulate the final set of documents to the community for review. This process is nearing completion. We will send the updated set of docs to the advisory committee, collect feedback, incorporated that feedback and then circulate those drafts to the community. Rough schedule: Nov 14: Circulate updated docs to advisory committee Nov 18: Feedback from committee collected Dec 25: Circulate doc set to community Thanks for your patience and attention! Regards, Rob -- Rob Page V: 540 361 1710 Zope Corporation F: 703 995 0412 ___ 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] help with url rewriting
On Fri, 11 Nov 2005, Chris Withers wrote: Faheem Mitha wrote: Why not just: /plone(.*) This is the way to go, I don't know what Sascha meant when he was talking about 2 rules. However, he did have a very good point about SSL. If you want Apache to do the SSL encryption and decryption, then you need to set up mod_ssl, sort out the certificates, etc. I have this working on a few of my servers but I'm working offline so can't really have a look to see what you're doing wrong... Yes, at least part of the problem is that I did not have SSL set up correctly, and I certainly didn't have certificates etc. I've done that now, so I'll try the Plone thing again. Sorry for my ignorance.Faheem. ___ 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 contents error
I have installed - Zope 2.7.0 - CMF: 1.4.2 - Plone CMFPlone-2.0-final I am trying to migrate to zope-2.8/plone-2.1.1, Whats happens that when I try to import the site that run in the oldest version is not making some things, for example, plone content. After I finished to install zope and plone, I added a new plone site from ZMI. Thats Ok, but, inside of new plone site I try to add one plone content. It adds, but when I try to visualize this plone content, I receive the following error: - Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 187, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 144, in publish * Module Zope2.App.startup, line 199, in zpublisher_exception_hook * Module ZPublisher.Publish, line 104, in publish * Module ZPublisher.BaseRequest, line 286, in traverse * Module Products.CMFPlone.PloneFolder, line 348, in __browser_default__ * Module Products.CMFPlone.PloneTool, line 1083, in browserDefault AttributeError: 'NoneType' object has no attribute 'getActionById' (Also, an error occurred while attempting to render the standard error message.) Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to error log. If the error persists please contact the site maintainer. Thank you for your patience. -- Thnx == Notificação: Esta mensagem é de uso exclusivo do indivíduo ou entidade para as quais está endereçado e pode conter informações que são privilegiadas, confidenciais e isentas de revelação. Se você não é o destinatário desta comunicação, observe que qualquer disseminação, distribuição ou cópia é estritamente proibida. Se você recebeu esta comunicação por engano, favor notificar imediatamente através do email [EMAIL PROTECTED] e destruir a mensagem original. Grato. == Prof. José Adalberto Façanha Gualeve http://www.ucb.br/prg/professores/gualeve UCB-Universidade Católica de Brasília CCT-Centro de Ciência e Tecnologia Bacharelado em Ciência da Computação e Sistemas de Informação. Sala B-108.10 - Fone: 61-3569313. CESMIC - Centro de Excelência em Servidores de Missão Crítica Sala M-115 - Fone: 61-3569686 Q. S. 07 - Lote 01 - EPCT - Águas Claras - DF 72.030-170 ___ Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.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] Problem Inserting zsql query result
What kind of a strange message is that? MySQL server version for the right syntax to use near '0\n)' Is that the ErrorValue? It can't be converted to a long or in because it contains a ) not because of the \n What's the SQL you're trying to use? (Only need to see the SELECT ... part) On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Peter, Thank you, but unfortunately I still get the same error due to the newline character being there and still cannot remove it with variable.replace. Can a long object be converted to a string or integer some way? On 11/12/05, Peter Bengtsson [EMAIL PROTECTED] wrote: On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Greetings, I would like to insert the results of a query into another table and am doing this from a python script. I am setting the results of a queryequal to a variable with the following: variable = container.zsql_method(paramater=value)[0][0] Try getting the field out by name, not number. Eg: variable = container.zsql_method(paramater=value)[0]['count'] or variable = container.zsql_method(paramater=value)[0]['age'] This gives the results I want (in this case 0), but when I try to insert this variable using another zsql method, I get the following error: MySQL server version for the right syntax to use near '0\n)' The value I want is there, but it has a newline character also. I try removing using .replace but then I get the following error: 'long' object has no attribute 'replace' I would greatly appreciate it if someone could point me in the right direction. Than you very much, Ivan ___ 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 ) -- 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] Problem Inserting zsql query result
Yes, the full error message is the following: ProgrammingError: (1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0\n)' at line 9) Here is the select portion of the query I am running: select count(*) as orderOn 11/12/05, Peter Bengtsson [EMAIL PROTECTED] wrote: What kind of a strange message is that?MySQL server version for the right syntax to use near '0\n)'Is that the ErrorValue?It can't be converted to a long or in because it contains a ) notbecause of the \n What's the SQL you're trying to use? (Only need to see the SELECT ... part)On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Peter,Thank you, but unfortunately I still get the same error due to the newline character being there and still cannot remove it with variable.replace. Can a long object be converted to a string or integer some way? On 11/12/05, Peter Bengtsson [EMAIL PROTECTED] wrote: On 11/11/05, Ivan Stout [EMAIL PROTECTED] wrote: Greetings, I would like to insert the results of a query into another table and am doing this from a python script. I am setting the results of a queryequal to a variable with the following: variable = container.zsql_method(paramater=value)[0][0] Try getting the field out by name, not number. Eg: variable = container.zsql_method (paramater=value)[0]['count'] or variable = container.zsql_method(paramater=value)[0]['age'] This gives the results I want (in this case 0), but when I try to insert this variable using another zsql method, I get the following error:MySQL server version for the right syntax to use near '0\n)' The value I want is there, but it has a newline character also. I try removing using .replace but then I get the following error:'long' object has no attribute 'replace' I would greatly appreciate it if someone could point me in the right direction.Than you very much,Ivan ___ 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-announcehttp://mail.zope.org/mailman/listinfo/zope-dev )--Peter Bengtsson, work www.fry-it.comhome www.peterbe.comhobby 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 )
[Zope] Schedule correction
Hello (again) everyone: Earlier I wrote: This process is nearing completion. We will send the updated set of docs to the advisory committee, collect feedback, incorporated that feedback and then circulate those drafts to the community. Rough schedule: Nov 14: Circulate updated docs to advisory committee Nov 18: Feedback from committee collected Dec 25: Circulate doc set to community That last date should be NOVEMBER 25 -- not Dec 25. My apologies for the confusion. Regards, Rob -- Rob Page V: 540 361 1710 Zope Corporation F: 703 995 0412 ___ 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: Adding permission to an action yields infinite recursion
Please stay on the list! Readded... Lars von Wedel wrote at 2005-11-10 10:49 +0100: ... I don't understand how or where this is taking place in my example. The page template called consists of static HTML only. Does the following action definition cause the problem? {'action': string:$object_url/view_available_books, 'category':object, 'id': 'view', 'name':'view_available_books', 'permissions': (VIEW_LIBRARY_PERMISSION,), 'condition' : 'python:1' }, Why does the problem only occur, if permissions for the action are _not_ granted? This action looks innocent. Look at the code causing the recursion to understand why it recurses ;-) -- 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 )
[Zope] Basket 0.1 (New Zope Packaging Regime Product) Released
Basket is a Zope 2 product which allows you to employ the Python Egg format to deploy other Zope 2 products. The Python Egg packaging format is described at http://peak.telecommunity.com/DevCenter/ setuptools . The development of Basket was funded by the Goldegg initiative described at http://www.goldeggstack.org . Basket forms the basis for a suggestion of how Zope 2 Products should be packaged by default starting in Zope 2.10, so it's likely interesting for existing Product developers. You can read about it and get it from: http://www.plope.com/software/Basket/Basket Have fun! - 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] Re: plone contents error
On Fri, 11 Nov 2005 10:37:15 -0800, José Adalberto F. Gualeve [EMAIL PROTECTED] wrote: After I finished to install zope and plone, I added a new plone site from ZMI. Thats Ok, but, inside of new plone site I try to add one plone content. It adds, but when I try to visualize this plone content, I receive the following error: Don't add CMF or Plone content from the ZMI. It will not be created correctly. -- _ Alexander Limi · Chief Architect · Plone Solutions · Norway Consulting · Training · Development · http://www.plonesolutions.com _ Plone Co-Founder · http://plone.org · Connecting Content Plone Foundation · http://plone.org/foundation · Protecting Plone ___ 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] Sessions and Persistence
Current configuration: Linux RH7.3 Zope 2.8.4 Python 2.4.2 (but the same is observed with Python 2.3.5) I continue to observe occasional failures of the Zope session variable mechanism. The problem manifests itself by a KeyError when accessing data in the session data container. We have recently moved to Zope 2.8.4 from Zope 2.7.6. The frequency of these errors aooears to have increased significantly; of late, we have occasionally seen error messages saying that an entire SESSION data container is missing. The session variable interface is very simple: a pair of Python Scripts, one that gets a session variable and another that sets it. Both use the copy-out/copy-in mechanism required for persistence. ## Script (Python) getSessionVariable ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=varname ##title= ## request=container.REQUEST session=request['SESSION'] return session[varname] # Script (Python) setSessionVariable ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=var, val ##title= ## request = container.REQUEST RESPONSE = request.RESPONSE session=request['SESSION'] session[var]=val request.set( 'SESSION', session ) Most of the information we store in session variables are simple numbers or strings. In a few instances, we store python lists, python tuples, or python dictionaries. I am beginning to suspect the source of my bug is a persistence problem perhaps triggered by a conflict error or garbage collection in the temporary store used to hold the session variables. I further suspect that lists and dictionaries stored in session variables need to be instances of PersistentDict and PersistentList and not ordinary python data structures. I'd appreciate confirmation on these two issues from someone who knows the persistence mechanism better than I. Neither PersistentDict nor PersistentList are exposed in the restricted namespace. Advice as to how to expose them would be helpful as well. If I have a complex data structure (a list of dictionaries) does all the substructure need to have persistence wrappers as well--that is, does it have to be turtles all the way down? Thanks in advance. -d ___ 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] help with url rewriting
On Fri, 11 Nov 2005, Faheem Mitha wrote: On Fri, 11 Nov 2005, Chris Withers wrote: Faheem Mitha wrote: Why not just: /plone(.*) This is the way to go, I don't know what Sascha meant when he was talking about 2 rules. However, he did have a very good point about SSL. If you want Apache to do the SSL encryption and decryption, then you need to set up mod_ssl, sort out the certificates, etc. I have this working on a few of my servers but I'm working offline so can't really have a look to see what you're doing wrong... Yes, at least part of the problem is that I did not have SSL set up correctly, and I certainly didn't have certificates etc. I've done that now, so I'll try the Plone thing again. Ok. I've now configured SSL correctly on my test machine, but am still getting errors. I suspect this is an apache misconfiguration, which is puzzling, since I have acess to a machine doing very similar things, also running Debian sarge, which is working. I'll list misc bits of info below, in the hope that this will help to narrow the problem. I'll also list the ssl config portion of my apache file at the bottom of this message for good measure. 1) Firstly, SSL is now working, certificates are offered and accepted, yada yada. 2) I can acess the page at http://127.0.0.1:9673/VirtualHostBase/https/%{HTTP_HOST}:443/test_plone/VirtualHostRoot/_vh_test_\plone$1 [L,P] fine, where I have to replace 127.0.0.1 with the IP address of the machine in question. This means the Virtual Host Monster is working correctly, right? 3) The rewriting is actually happening, because the rewriting log shows ** client_ip_address - - [11/Nov/2005:18:51:56 --0500] [server_ip_address/sid#81565f0][rid#81ce540/initial] (2) init rewrite engine with requested uri /test_plone/colophon_xhtml.png client_ip_address - - [11/Nov/2005:18:51:56 --0500] [server_ip_address/sid#81565f0][rid#81ce540/initial] (3) applying pattern '^/test_plone(.*)' to uri '/test_plone/colophon_xhtml.png' client_ip_address - - [11/Nov/2005:18:51:56 --0500] [server_ip_address/sid#81565f0][rid#81ce540/initial] (2) rewrite /test_plone/colophon_xhtml.png - http://127.0.0.1:9673/VirtualHostBase/https/server_ip_address:443/test_plone/VirtualHostRoot/_vh_test_plone/colophon_xhtml.png client_ip_address - - [11/Nov/2005:18:51:56 --0500] [server_ip_address/sid#81565f0][rid#81ce540/initial] (2) forcing proxy-throughput with http://127.0.0.1:9673/VirtualHostBase/https/server_ip_address:443/test_plone/VirtualHostRoot/_vh_test_plone/colophon_xhtml.png client_ip_address - - [11/Nov/2005:18:51:56 --0500] [server_ip_address/sid#81565f0][rid#81ce540/initial] (1) go-ahead with proxy request proxy:http://127.0.0.1:9673/VirtualHostBase/https/server_ip_address:443/test_plone/VirtualHostRoot/_vh_test_plone/colophon_xhtml.png [OK] *** This all looks pretty normal. 4) The error log is fairly unhelpful. Setting LogLevel to debug does not seem to give any helpful information. The main error is [Fri Nov 11 18:51:56 2005] [error] [client client_ip_address] client denied by server configuration: proxy:http://127.0.0.1:9673/VirtualHostBase/https/server_ip_address:443/test_plone/VirtualHostRoot/_vh_test_plone/colophon_anybrowser.png, referer: http://server_ip_address:9673/VirtualHostBase/https/server_ip_address:443/test_plone/VirtualHostRoot/_vh_test_plone 5) Here are the mods I have enabled. /etc/apache2/mods-enabled# ls -la drwxr-xr-x 3 root root 4096 2005-11-11 17:21 . drwxr-xr-x 10 root root 4096 2005-11-11 15:45 .. lrwxrwxrwx 1 root root 37 2005-11-10 16:52 cgid.conf - /etc/apache2/mods-available/cgid.conf lrwxrwxrwx 1 root root 37 2005-11-10 16:52 cgid.load - /etc/apache2/mods-available/cgid.load lrwxrwxrwx 1 root root 28 2005-11-11 17:21 proxy.conf - ../mods-available/proxy.conf lrwxrwxrwx 1 root root 28 2005-11-11 17:21 proxy.load - ../mods-available/proxy.load lrwxrwxrwx 1 root root 30 2005-11-11 17:19 rewrite.load - ../mods-available/rewrite.load lrwxrwxrwx 1 root root 26 2005-11-10 21:21 ssl.conf - ../mods-available/ssl.conf lrwxrwxrwx 1 root root 26 2005-11-10 21:21 ssl.load - ../mods-available/ssl.load lrwxrwxrwx 1 root root 40 2005-11-10 16:52 userdir.conf - /etc/apache2/mods-available/userdir.conf lrwxrwxrwx 1 root root 40 2005-11-10 16:52 userdir.load - /etc/apache2/mods-available/userdir.load These are included via the main config file. 6) I was wondering if there might be something wrong with the Proxy thing. I've kept proxy.conf at the Debian defaults. Included below. In particular ProxyRequest are off, but another Debian machine I have access to works fine with that setting. Thanks in advance for your help. Faheem.