Re: [Zope-dev] Buildout - including per-user site-packages dir.
Hi again, I got the same error with zpasswd, so had to repeat the process with that section of buildout.cfg, too... Thought I'd explain the specifics, while I remember... On Tue, 25 Jun 2013 19:44:48 +0100, Alex Leach albl...@york.ac.uk wrote: The buildout configuration that seemed to fix this, was to add 'recipe = zc.recipe.egg:scripts' to my package's section, and 'allowed-eggs-from-site-packages = peak' to the `[buildout]` section. I found the documentation on these options, unsurprisingly on the zc.recipe.egg and z3c.recipe.scripts PyPi pages. ('allowed-eggs-from-site-packages = peak' is not what I thought it was yesterday, so please ignore it). I don't think I had edited the zpasswd section before yesterday, so it should have been exactly as it was, when initially generated by `grokproject`: [zpasswd] recipe = z3c.recipe.scripts eggs = my_package zope.password entry-points = zpasswd=zope.password.zpasswd:main I'm not entirely sure why zpasswd has to import every module in my_package, but it seems to try. So the above configuration causes zpasswd to fail, when a required package is installed into the user's site-packages folder. It's worth mentioning, if you're unfamiliar with the user's site-packages folder, that it is supported by every Python build system I've tried: distutils, distutils2, numpy.distutils and setuptools. The following setup.py command, which works on all of these build systems, installs a package into the user's site-packages folder:- $ python setup.py install --user With the documentation in front of my, I added these options to zpasswd, but none of these add the user's site-packages folder to the search path:- include-site-packages = true exec-sitecustomize = true relative-paths = true extra-paths = ${buildout:directory}/eggs interpreter = python-console However, changing the recipe does: recipe = zc.recipe.egg:script So, my conclusion is that it's a feature / limitation / regression in z3c.recipe.scripts. I only say regression, because on the z3c.recipe.scripts PyPi page, I've just read:- The script recipe installs eggs into a buildout eggs directory, exactly like zc.recipe.egg [...]. Well, not exactly... This is one difference. I'll continue to use zc.recipe.egg, as that works as desired in this situation, but it feels like I'm downgrading, which is never fun... Hope that clarifies things, anyway. Kind regards, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Buildout - including per-user site-packages dir.
Hi, I'm trying to configure buildout.cfg so that paster looks for eggs in my home folder's site packages directory, as per PEP 370[1]. In buildout.cfg, I have the line: include-site-packages = true But packages I've installed in my home folder aren't found when my app is run (with paster). Is there an extra buildout option, which will allow searching of home folders? Alternatively, I just noticed I have an empty sitecustomize.py file in parts/etc/, but I have no 'sitecustomize.py.in' file in etc/. If I do add a 'sitecustomize.py.in' file to etc/, what extra steps will be required, for 'sitecustomize.py.in' to get copied over to 'parts/etc/'? Cheers, Alex p.s. versions.cfg in use: http://grok.zope.org/releaseinfo/1.5.5/versions.cfg [1]: http://www.python.org/dev/peps/pep-0370/ ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Buildout - including per-user site-packages dir.
Hi, I'm trying to configure buildout.cfg so that paster looks for eggs in my home folder's site packages directory, as per PEP 370[1]. In buildout.cfg, I have the line: include-site-packages = true But packages I've installed in my home folder aren't found when my app is run (with paster). Is there an extra buildout option, which will allow searching of home folders? Alternatively, I just noticed I have an empty sitecustomize.py file in parts/etc/, but I have no 'sitecustomize.py.in' file in etc/. If I do add a 'sitecustomize.py.in' file to etc/, what extra steps will be required, for 'sitecustomize.py.in' to get copied over to 'parts/etc/'? Cheers, Alex [1]: http://www.python.org/dev/peps/pep-0370/ p.s. versions.cfg in use: http://grok.zope.org/releaseinfo/1.5.5/versions.cfg ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Buildout - including per-user site-packages dir.
Hi Johannes, Thanks for the reply. On Tue, 25 Jun 2013 19:13:15 +0100, Johannes Raggam raggam...@adm.at wrote: AFAIK, you just need to create a .buildout directory in your home directory, put the file default.cfg in it with this content: [buildout] eggs-directory = /home/YOURS/.buildout/eggs download-cache = /home/YOURS/.buildout/downloads extends-cache = /home/YOURS/.buildout/extends and create the directories referenced here. I saw that, but the packages I've installed into '~/.local/lib/python...' aren't (yet) on PyPi, so this isn't really what I need. I've actually got it working now, without any new sitecustomize.py file.. I think changing the package recipe in buildout.cfg fixed it, but it could have been something I did in configure.zcml.in, as I've been separating some things out into other namespace packages recently, and that was one file that needed tweaking. The buildout configuration that seemed to fix this, was to add 'recipe = zc.recipe.egg:scripts' to my package's section, and 'allowed-eggs-from-site-packages = peak' to the `[buildout]` section. That second one also helped resolve some dependency / conflict issues I was having with PasteScript - I also have it installed system-wide for some reason - and seems to reduce the need for duplicating some system packages. I like it :) Thanks again, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Porting Zope to Python 3 Update
On 2013-03-02 00:34:04 +, Stephan Richter said: Hi everyone, as the week ends, I thought I might give a brief update on the Python 3 porting effort. According to the Unofficial Zope on Python 3 status page[1], about 110 packages are ported to Python 3.3. Hanno and I worked this week on updating the ZTK configuration files and I am happy to announce that the ZTK passes all tests on Python 3.3! So once the ZODB is ported, we can start on finalizing all releases, which would pave the way for a ZTK 2.0 release. Marius has made great efforts on finishing the port of ZODB. All the tests pass now on the py3 branch for Python 2.6, 2.7 and 3.3. He has also removed all resource warnings (he started at 400+). The final task will be to integrate zodbpickle. zodbpickle needs some changes to properly enable the noload() method. Luckily this work will entail rewriting the dump/load of persistent ids to be more efficient and compatible with cPickle 2.7 pickles. (We are working hard on making Python 2 pickles load on Python 3!) On Wednesday, I was able to run a first Zope 3 (or should I say Bluebream?) app on Python 3.3. Thanks to Andrey and Albertas for porting some of the complex application packages. The sample application can be found in ``zope.paste``[2]. Note the short ZCML[3] and Paster[4] files. Thanks goes to everyone who helped breaking unnecessary and circular dependencies to make this work so well! In the process of all of the above, we have also started moving all packages that we are ported to Python 3 over to GitHub. I have also ported the core packages for Zope 2/4 and Grok already. So what's next? I am in the process of trying to port a rather large demo application[5] to Python 3. We are about 20 packages (that we control) away from that goal. Andrey is currently working on porting zope.testbrowser to Python 3 by changing its internal implementation from mechanize to WebTest (since it is too hard to deal with mechanize). Also, we will have a serious look at ZEO. I hope I got some of you interested in thinking about porting applications to Python 3. Yes! Very exciting update, thank you. And speaking of old libraries supporting Python 3, in case anyone needs PIL with their Python 3 Zope apps, I could use some help testing the soon-to-be-released Pillow 2.0 (PIL fork) with Python 3 support: git://github.com/python-imaging/Pillow.git. [1] http://zope3.pov.lt/py3/ [2] https://github.com/zopefoundation/zope.paste [3] https://github.com/zopefoundation/zope.paste/blob/master/src/zope/paste/test_app/app.zcml [4] https://github.com/zopefoundation/zope.paste/blob/master/src/zope/paste/test_app/app.ini [5] https://github.com/CipherHealth/cipher.uibuilderdemo Regards, Stephan -- Alex Clark · http://about.me/alex.clark ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebSockets API
Hi, just sending again to the list... On Tuesday 27 Nov 2012 16:51:13 Andreas Jung wrote: Use the right tool for each problem. Zope is really not the right choice for implementing a websocket server. Why is it the wrong tool for the job? I read up a bit on asyncore, and see it's supposedly a single threaded server. Is that part of the problem? The way I see it, zope's got its own web server and framework that handles HTTP requests; WebSockets initially connect over HTTP, before upgrading to a WebSocket connection. If the 'upgrade' request was recognised by zope, then couldn't it just forward the connection on to any WebSocket server? It wouldn't even need to do the handshake, but a compatible proxy would no doubt need to be implemented. There are dozens of better solutions for Python like http://autobahn.ws/ The dependencies of all other Python-based WebSocket implementations all require a completely different application stack. Twisted, which autobahn uses, looks very powerful for low-level networking and the such, but it's a beast and I've never used it before, in favour of making templated web apps with grok.. Also, wouldn't the front-end socket of autobahn conflict with any other running HTTP server? Sure, I could set it up on an alternative port, and use a front-end webserver to proxy requests appropriately, based on URL paths and patterns, like I do now with grok and Apache. But that adds another two complications, when it comes to initially setting up the server. Installation instructions for potential users would become even more off-putting than they already are. The zope server already has a good system for URL parsing and dispatching. Would zope.proxy be any good at proxying WebSocket requests based on the URL? Don't try to misuse a framework for a purpose that it has not been invented for. WebSockets hadn't been invented back then, but HTTP was always meant to be bidirectional. Get with the times :b (jk) So, I think I understand that zope might not be great for managing simultaneous bidirectional traffic, which is basically a requirement of a WebSocket server. Could it not be a good proxy either? KR, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebSockets API
Hi, Thanks for the reply. On Tuesday 27 Nov 2012 09:04:11 Wolfgang Schnerring wrote: I'm not too familiar with WebSocket internals, but one thing that stuck with me is that you'll need to keep *lots* of open connections, which is only feasible with an eventloop-based server (which zope.server, for one, isn't). Oh. That's an interesting point... I'm no expert either, but have seen them mentioned a lot recently, and started looking through the RFC the other day. Apart from that, I'm not sure what features remain, and where a proper home in the ZTK world would be. As I use grok, I had a little dig in grok's dependencies, and thought that zope.publisher.ws could be an appropriate home. I branched zope.publisher from Launchpad / bazaar and started copying stuff over from zope.publisher. [interfaces.]http. I thought that might be a nice way to start things going. At our company we've scheduled a project to integrate WebSockets into a large Zope3-based application for early next year, so we'll definitely will be doing *something* in that space -- we just don't know what, yet. ;) Same here really. I just thought I'd try and start playing with WebSockets, as they sound quite fun, persistent and fast. What functionality did you have in mind that the ZTK might grow? Good question. The main feature I thought ZTK would benefit from, is managing the handshake, and forwarding the connection to the relevant socket. I see no reason why the server endpoint needs to be a Zope application (could be a completely separate application, written in C++ for example), but Zope would still need to recognise the URL prefix (ws:// or wss://) and to connect the endpoints. In the grok world, I thought a conf file might be an appropriate way of configuring the server socket port numbers and whether to start a listener on (or forwarder for) that port. As the initial handshake is done over HTTP, Zope would mainly need a way of recognising the WebSocket request and to delegate it appropriately. In terms of public methods for a developer, this would be optional on whether Zope / grok manages the endpoint or not. If it did have control of the server- side WebSocket (e.g. localhost:), it would need a write method and methods for parsing WebSocket frames for Content-Length etc (see Section 5.2 of RFC6455), and to return only the payload data. I haven't any experience with bit-wise operations, so could do with some help with parsing that first byte of the frame. Finally, I think testing will be a bit of b*tch, as Zope would also need a WebSocket client to perform the testing... Hope that helps. Cheers, Alex Wolfgang -- Alex Leach BSc. MRes. Department of Biology University of York York YO10 5DD United Kingdom www: http://bioltfws1.york.ac.uk/~albl500 EMAIL DISCLAIMER: http://www.york.ac.uk/docs/disclaimer/email.htm___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebSockets API
On Tuesday 27 Nov 2012 10:07:03 Adam GROSZER wrote: Some investigations and trials showed about half a year ago that a Autobahn + Twisted + pyramid combination worked. YMMV Thanks. That is a completely different and separate application stack cf. the standard grok dependencies. I've written quite a lot of Grok-specific code already, and going down that route would seem to add a lot to my list of dependencies... Something which is already getting quite out of hand. Cheers, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] WebSockets API
On Tuesday 27 Nov 2012 07:04:43 Jim Fulton wrote: Actually, it is. zope.server is based on asyncore. Having said that, my impression is that web sockets is largely (or completely) orthogonal to WSGI and the HTTP-based publishing infrastructure. From the RFC: The WebSocket Protocol attempts to address the goals of existing bidirectional HTTP technologies in the context of the existing HTTP infrastructure; as such, it is designed to work over HTTP ports 80 and 443 as well as to support HTTP proxies and intermediaries, even if this implies some complexity specific to the current environment. However, the design does not limit WebSocket to HTTP, and future implementations could use a simpler handshake over a dedicated port without reinventing the entire protocol. This last point is important because the traffic patterns of interactive messaging do not closely match standard HTTP traffic and can induce unusual loads on some components. ZTK is only relevant to the extent that it's a bag of useful libraries maintained by the Zope community. It is a bag of useful libraries :) Is there anything that would ease the development of a WebSockets server, though? I would have thought there is, and that it would be at least possible, if not simple, to implement from existing base classes... KR, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] WebSockets API
Hi, I was wondering if anyone has implemented a WebSockets server API using the zope toolkit? I've just submitted a blueprint on Launchpad (https://blueprints.launchpad.net/zopetoolkit-project/+spec/websockets-api), but thought it might be quicker and easier to discuss how one could do this here. In theory (and practice, e.g. http://popdevelop.com/2010/03/a-minimal-python- websocket-server/), only a very small amount of code is needed to deploy a secure WebSockets server. I'd be happy to have a go at doing this myself, but thought it would be better to implement upstream, within one of the zope packages. I've been developing with grok, so I'm not too familiar with the internals of zope publishing, though. Please could someone point me in the right direction, with regards to modules and base classes responsible for parsing requests and performing handshakes? Cheers, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] unofficial svn mirror on github
On 2012-10-05 08:47:25 +, johannes raggam said: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/05/2012 10:39 AM, Jens Vagelpohl wrote: On Oct 5, 2012, at 10:21 , johannes raggam raggam...@adm.at wrote: I placed a note in the description, that the github repository is a unofficial mirror from svn.zope.org. I think about cloning even more relevant repositories from svn.zope.org, create a script to automatically sync it once per day and move it over to github, maybe a organisation called github.com/ZopeMirror What do you think about this? Hi Johannes, The board has decided to allow GitHub hosting for Zope Foundation projects at the last board meeting, the minutes are still in the approval process. We are working on the implementation. Please don't create anything that will confuse people looking for canonical Zope Foundation repositories. There's no need to duplicate an effort that is progressing already. Thanks, this are good news. There is some experience with moving the SVN repository from the Plone community (http://collective.github.com/). Let me know if I can help here. There is also: - https://github.com/plone/svn-migrate But if you are doing it by hand, it's roughly: - Create authors.txt file (with mapping: svnuser = Git User g...@user.org) - $ svn2git -v --no-minimize-url --authors=authors.txt svn+ssh://svn.zope.org/repos/main/target_repo - $ git remote add origin g...@github.com:ZopeCommunity/new_repo.git - $ git push -u origin master# track the remote repo locally - $ git push --all# push all the branches - $ git push --tags# push all the tags Alex Johannes Thanks! jens ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) - -- programmatic web development di(fh) johannes raggam / thet python plone zope development mail: off...@programmatic.pro web: http://programmatic.pro http://bluedynamics.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBunp0ACgkQW4mNMQxDgAfXaACgs9YuiSw9+yS2hKBUvteOoFXD CL8An3oEEVC5zak9u28vk0VOk+zhCc9f =loJm -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zc.buildout semi-resolution
Hi, FWIW I spoke with Jim on #buildout this a.m. and he decided to revert my commit because people need it. I.e. Some folks rely on trunk/bootstrap existing for their builds. While I don't necessarily agree that's a good idea, the argument because people need it makes 1000x more sense to me than Please revert with no explanation. Or with a legal explanation I don't understand. I apologize to Jens and Tres if I was stubborn about this, but I did and still do feel strongly the commit I made was reasonable, and not reverting it until we could better understand the circumstances was reasonable too. To clear up any remaining confusion: - In the Plone community, it is quite common to make this type of change to indicate active development takes place somewhere else. We leave tags (and branches) in place in case people need them. I did not remove, or move the zc.buildout project, nor did I intend to disrupt development in any way. I simply wanted to leave a message on behalf of the work Jim and Domen were doing. - Personally, I use an extension called buildout.bootstrap to always download the latest bootstrap.py file. Removing trunk broke my builds, at which point I cut a new release of buildout.bootstrap containing the new URL: - http://pypi.python.org/pypi/buildout.bootstrap/1.4.2 I hope the discussion on GitHub and Bitbucket, and other vendor services continues. Alex -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
Hi Tres, On 2012-08-19 15:52:52 +, Tres Seaver said: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/18/2012 09:58 PM, Alex Clark wrote: Hi, On 2012-08-19 01:24:31 +, Lennart Regebro said: On Sat, Aug 18, 2012 at 11:03 PM, Tres Seaver tsea...@palladion.com wrote: Because the ability to check into svn.zope.org is based on a chain of custody managed by the ZF (web account, verified e-mail address, and SSH key). J. Random Hacker's account on Github has no such chain. Sure, but Random J Hacker shouldn't have write permission to the repository, so I don't understand why that makes a difference. IANAL but from my perspective the legitimate issue here is that Domen Ko?ar has not signed the Zope Contributor's Agreement, but Jim has added him to the Buildout organization on GitHub and he has been committing fixes. If I were the ZF, I would either: - Make sure everyone in any ZF organizations on GitHub (e.g. buildout) has signed the contributor agreement, or - Declare that nothing on GitHub (or at least in the buildout organization) is a valid contribution to the work. In either case, AFAICT zc.buildout development has stopped on svn.zope.org and started on GitHub so let us let the commit stand to reflect this real world circumstance. Alex, please revert the commit removing the ZF's copy of the code in SVN. I don't really feel comfortable doing that (for a variety of reasons). But if you or anyone else wants to do it, I won't object. Would you mind doing it for me, if you feel that strongly about it? Probably something like: $ svn cp -r127509 svn+ssh://svn.zope.org/repos/main/zc.buildout/trunk svn+ssh://svn.zope.org/repos/main/zc.buildout/trunk Thank you and sorry for the trouble, Alex Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAxC9QACgkQ+gerLs4ltQ7gOgCfd+h0SnF8jVLNTaJIldH4qbQV +pEAoK7Qc7WVZ2whyA1UOSCYqQc1cNp3 =6T6l -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
Hi Jens, On 2012-08-18 07:49:59 +, Jens Vagelpohl said: Hi Alex, Please revert this checkin. You can't just take core software pieces from Zope Foundation-hosted repositories and move them somewhere else. Thanks! I think you are confused. I would suggest you ask Jim Fulton about it, as he moved Buildout to GitHub months ago. Both 1.6.x and 2.x are under active development there. Further, I committed the *message* about the move and I removed trunk to avoid confusion, I didn't personally move anything (Jim moved 2.x and Domen Kožar moved trunk to the 1.6.x branch). Also please see the distutils-sig list for more information about recent zc.buildout 1.6.x development. Alex jens On Aug 18, 2012, at 3:09 , J. Alexander Clark cvs-ad...@zope.org wrote: Log message for revision 127519: Moved to github Changed: A zc.buildout/README_MOVED_TO_GITHUB.txt D zc.buildout/trunk/ -=- Added: zc.buildout/README_MOVED_TO_GITHUB.txt === --- zc.buildout/README_MOVED_TO_GITHUB.txt (rev 0) +++ zc.buildout/README_MOVED_TO_GITHUB.txt 2012-08-18 01:09:06 UTC (rev 127519) @@ -0,0 +1 @@ +https://github.com/buildout/buildout/tree/1.6.x ___ checkins mailing list check...@zope.org https://mail.zope.org/mailman/listinfo/checkins ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
Hi On 2012-08-18 22:01:51 +, Alex Clark said: Hi Jens, On 2012-08-18 07:49:59 +, Jens Vagelpohl said: Hi Alex, Please revert this checkin. You can't just take core software pieces from Zope Foundation-hosted repositories and move them somewhere else. Thanks! I think you are confused. I would suggest you ask Jim Fulton about it, as he moved Buildout to GitHub months ago. Both 1.6.x and 2.x are under active development there. Further, I committed the *message* about the move and I removed trunk to avoid confusion, I didn't personally move anything (Jim moved 2.x and Domen Kožar moved trunk to the 1.6.x branch). Also please see the distutils-sig list for more information about recent zc.buildout 1.6.x development. And… sorry. Using a new client and I missed the ongoing thread :-) Alex Alex jens On Aug 18, 2012, at 3:09 , J. Alexander Clark cvs-ad...@zope.org wrote: Log message for revision 127519: Moved to github Changed: A zc.buildout/README_MOVED_TO_GITHUB.txt D zc.buildout/trunk/ -=- Added: zc.buildout/README_MOVED_TO_GITHUB.txt === --- zc.buildout/README_MOVED_TO_GITHUB.txt (rev 0) +++ zc.buildout/README_MOVED_TO_GITHUB.txt 2012-08-18 01:09:06 UTC (rev 127519) @@ -0,0 +1 @@ +https://github.com/buildout/buildout/tree/1.6.x ___ checkins mailing list check...@zope.org https://mail.zope.org/mailman/listinfo/checkins ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
Hi, On 2012-08-19 01:24:31 +, Lennart Regebro said: On Sat, Aug 18, 2012 at 11:03 PM, Tres Seaver tsea...@palladion.com wrote: Because the ability to check into svn.zope.org is based on a chain of custody managed by the ZF (web account, verified e-mail address, and SSH key). J. Random Hacker's account on Github has no such chain. Sure, but Random J Hacker shouldn't have write permission to the repository, so I don't understand why that makes a difference. IANAL but from my perspective the legitimate issue here is that Domen Kožar has not signed the Zope Contributor's Agreement, but Jim has added him to the Buildout organization on GitHub and he has been committing fixes. If I were the ZF, I would either: - Make sure everyone in any ZF organizations on GitHub (e.g. buildout) has signed the contributor agreement, or - Declare that nothing on GitHub (or at least in the buildout organization) is a valid contribution to the work. In either case, AFAICT zc.buildout development has stopped on svn.zope.org and started on GitHub so let us let the commit stand to reflect this real world circumstance. Alex //Lennart ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zope.formlib - Overriding default widget attributes
Dear Zope Devs, I'm trying to remove a couple of default attributes from the rendered version of the schema.Text widget, namely cols and rows. I tried overriding the widgets attributes with None, which didn't work. I then found in renderTag, in zope.formlib-4.0.6-py2.7.egg/zope/formlib/widget.py:603 that if a value of one of the keyword arguments (**kw) is set to None, then the value is set to the key, and a deprecation warning is issued. In my case, this therefore produces HTML with attributes like cols=cols, and rows=rows. I don't like that at all, as all my styles are defined in CSS and jQuery, and this overrides them! So, please can this be replaced with a `continue` flow statement instead?? Suggested patch:- zope.formlib-4.0.6-py2.7.egg/formlib diff widget.py widget.py.orig 600c600,602 for key, value in sorted(kw.items()): --- items = kw.items() items.sort() for key, value in items: 602c604,611 continue --- warnings.warn( None was passed for attribute %r. Passing None as attribute values to renderTag is deprecated. Passing None as an attribute value will be disallowed starting in Zope 3.3. % key, DeprecationWarning, stacklevel=2) value = key In fact, I'd also get rid of the `if kw:` line, as it seems unnecessary... Cheers, Alex ps. Sorry if this is a duplicate. I think my original message got rejected as I hadn't subscribed... -- Alex Leach Department of Biology University of York York YO10 5DD United Kingdom www: http://bioltfws1.york.ac.uk/~albl500 EMAIL DISCLAIMER: http://www.york.ac.uk/docs/disclaimer/email.htm -- Alex Leach BSc. MRes. Department of Biology University of York York YO10 5DD United Kingdom www: http://bioltfws1.york.ac.uk/~albl500 EMAIL DISCLAIMER: http://www.york.ac.uk/docs/disclaimer/email.htm ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 4 release management
On 2/1/12 6:08 AM, Jens Vagelpohl wrote: On Feb 1, 2012, at 00:05 , Alex Clark wrote: Bottom line: Zope stands to benefit greatly if the current active developers keep an open mind about how/where/when development of Zope software should occur. There are plenty of people that still think Zope software is cool, and plenty of skilled developers on github that could potentially help move it forward. This discussion seems to unnecessarily combine at least two distinct issues: - what RCS software to use - where to host it It may be easier if we disentangled them. Traditionally it was easier, but now-a-days with github and bitbucket they are harder to disentangle. Speaking purely as a developer, I'm leaning to Git when it comes to the RCS software decision between Subversion and Git. But I can use both equally well. Where it is hosted, well, purely as a developer it doesn't matter to me, unless I need to give up too much personal data to get access. From the perspective as a Zope Foundation member the RCS software decision is a technical detail that doesn't matter much. I'm more concerned with the where question, though. The Zope Foundation is tasked with safeguarding the software released under the Zope Foundation umbrella, and it is tasked with enforcing the contributor agreements everyone signed. Commits can only be made by signed contributors, and contributors are specifically disallowed to take outside code they don't own and commit it to the repository. We already have the technical infrastructure in place for most of this, such as ZF-controlled logins on svn.zope.org, access only via SSH key, etc. Our current where can be fully trusted, so to speak, and the people tasked with maintaining this infrastructure are known, accountable, and part of the foundation. My third role is secretary of the Zope Foundation Board of Directors and in that role I collect and maintain contributor applications and the (private) data associated with it. I can vouch that our current means of storing this data is reasonably secure. I can't make that assertion if the data is stored somewhere out of Zope Foundation control. My last role is admin for the ZF infrastructure and servers. In that role I would be involved in executing any changes in repository hosting. If only the RCS software changes that's a chunk of work, but doable. Git service can be added to the ZF infrastructure and packages can be migrated into Git repositories, probably on a as-needed basis. Most of the current authentication and safety infrastructure could stay in place. On balance and taking all my roles into account, sticking with SVN and the current hosting is the most attractive option. Moving to Git in the current hosting environment is doable, it means work, but I feel I've done my job keeping the software, access to it, and contributor data as secure as possible. Any option that involves moving to a different host altogether not only makes me feel I haven't done my job, it may also throw up legal questions. Fair enough, all of this sounds reasonable. My only point was that it should be someone's role in the ZF to take a look around at the available options in today's software development ecosystem. If github.com is attractive to you, great. If it's not and you are happy with the status quo, also fine. But like anything else, there are pros and cons associated with either approach. E.g. Plone's move to github has been a challenge for a lot of people, and we continue to struggle with it everyday; but I know it was the right move for the software and the project so I feel good about what we are doing. Alex jens ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 4 release management
On 2/1/12 8:21 AM, Lennart Regebro wrote: On Wed, Feb 1, 2012 at 13:03, Alex Clarkacl...@aclark.net wrote: - what RCS software to use - where to host it It may be easier if we disentangled them. Traditionally it was easier, but now-a-days with github and bitbucket they are harder to disentangle. It is entangled, but it is important to notice that they are separate concerns. I do think the big issue is where to host it. Yes, fine, people have opinions on git vs svn vs hg, etc. But that boils down to 25% technical arguments, 25% what you are used to 25% what everyone else uses and then 30% religion to make sure the bucket overflows. But where to host it is a tricky issue. Ownership and control is one big argument for having our own servers. Githubs forking/merging process a big argument for going to github. Should you then decide that github is the place to host it, well, then git is the software to use. Actually, they introduced improved Subversion client support late last year: - https://github.com/blog/966-improved-subversion-client-support (they've supported import-from-svn and limited svn client support for longer) To be honest I see little point in just setting up our own git repository. Yeah, maybe git is better from some technical standpoints, but it's also harder to use, and the question then becomes just religion. What we would like to do, of course, is to have a self-hosted github. :-) (And that exists. Buuut... it costs $250 per commiter and year, so that's not an option, obviously.) //Lennart ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2 WSGI investigation
On 1/11/12 5:59 AM, Sylvain Viollon wrote: Op 9 jan 2012, om 12:44 heeft Marius Gedminas het volgende geschreven: On Mon, Jan 09, 2012 at 10:01:29AM +0100, Sylvain Viollon wrote: You can't set a virtual path with the Host header, it is not valid if you want to follow the RFC. After as well, you can include the port in it, but I think you are not sure if you can't really know if you should create https URL or not, you don't have this information (this is not required only to be on port 443, and if it is I am not even sure the port is correctly added in the Host header). In the WSGI world it's usual to use the X-Forwarded-Scheme header to determine the scheme (http or https), AFAIU. I have nothing against using those headers, even if there disparities between some of the implementations. See e.g. http://pythonpaste.org/wsgiproxy/#the-proxy http://pythonpaste.org/deploy/modules/config.html#paste.deploy.config.PrefixMiddleware http://packages.python.org/Deliverance/proxy.html http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment/nginx.html FWIW I tried to get Zope2's WSGI working recently with repoze.vhm and failed: http://stackoverflow.com/questions/8865349/mod-wsgi-zope2-plone-virtual-hosting-configuration, though the concept of using HTTP_X_VHM_* seemed to make sense at the time. Alex Regards, Sylvain, -- Alex Clark · http://pythonpackages.com ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 4 release management
Hi, Late chime-in below: On 11/17/11 2:45 PM, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2011 01:01 PM, Martin Aspeli wrote: On 17 November 2011 16:32, Tres Seavertsea...@palladion.com wrote: * Zope 4 will not have a release cycle independent of Plone. Zope 4 only exists as a transitional path for Zope 2 based applications and experience has shown that Zope 2 releases not used in any Plone release do not receive the same level of ongoing maintenance. I would actually argue that Zope4 have no real release cycle at all: instead, the individual pieces which make up Zope should have their own cycles, with perhaps a ZTK-like tracking set that Plone and others use as platform targets. -1 - we'll need something to amalgamate this into a release and we'll need a way to manage and number those releases. That is what the ZTK does now: it is an amalgamation of releases of separately-managed packages, which periodically gets a versioned release itself, mapped as an index or a 'versions.cfg' file. We want to encourage all features to be developed on separate feature branches so we can maintain a stable trunk. Before these feature branches are merged they should be posted to the mailing list for review. This process will necessitate a lot of merging, so I want to propose that we move to Git for development (something we found very helpful at our recent San Francisco Zope 4 sprint.) Note that this question is *not* suitable for loudest voice on zope-dev wins ressolution. The software belongs to the Zope Foundation, which will make any such decision. The work done on github by the Zope4 sprinters in SF should be seen as scratchpads for work which will be migrated back into the canonical repository for each project. A couple of points for consideration: - - bzr and hg are pretty much isomorphic to git WRT this kind of practice. Both have claims on our community which Git does not (hg because it is the tool of choice for Python, bzr because we already use Launchpad). Note that I use Git daily, and the others somewhat less frequently: I'm not speaking from ignorance here. - - Merging feature branches in SVN is not *that* difficult, typically: I've done scores of such merges myself with almost no pain (and the really painful ones would have been pretty much as bad with git / bzr / hg). In the Plone community, we held a poll. GitHub won hands-down. The second choice was staying with self-hosted SVN Again, this is a choice to be made by the foundation: any polling will be done by the members of the foundation (this might be the biggest non-election item on the agenda for the next annual meeting). GitHub is a big leap forward in software project support. It's also rapidly becoming a de-facto place for many people to look for software. We win if the people we want to encourage to fix bugs or contribute features have a low barrier to entry. github's biggest wins, compared to self-hosted git or SVN, are for casual contributors submitting easy-to-merge patches. Given that the new-old Zope is explicitly avoiding marketing itself to new developers, I don't find that win all that convincing: there is no point in having machinery for pull requests from folks who could push the changes themselves. Note that this also includes Plone developers working on Plone at this stage, since Plone has now moved to GitHub. So, my personal vote would be for Zope to use GitHub (with a backup mirror), allowing me to have a more integrated toolchain. Personally, I find GitHub substantially better than BitBucket, especially for collaboration, and Launchpad nearly unusable. I'd encourage you to look at usage and growth statistics for the three main hosting/collaboration services. I don't think what everybody else is doing is all that relevant: this isn't a popularity contest, and Zope has permanently lost its standing with the shiny-obsessed cool kids. We need to choose on the basis of enabling the currently active developers to work together productively. -1, I feel it's at least somewhat relevant for the Zope community to occasionally examine its environment, if for no other reason than to see how it can benefit from what others are doing. I was just thinking the other day how I'd really like to do some zc.buildout dev/maintenance (motivated in part by Ross Patterson's recent work) and immediately thought I hope they move everything to github. And I'm delighted to see that this discussion has actually begun. Bottom line: Zope stands to benefit greatly if the current active developers keep an open mind about how/where/when development of Zope software should occur. There are plenty of people that still think Zope software is cool, and plenty of skilled developers on github that could potentially help move it forward. Alex I don't have any opinion on where the canonical repository should be hosted - I know some people have strong opinions
Re: [Zope-dev] Missing Zope2 tarballs
On 10/11/11 3:17 AM, Jens Vagelpohl wrote: On Oct 11, 2011, at 03:33 , Alex Clark wrote: Hi, Anyone notice these missing tarballs? - http://old.zope.org/Products/Zope/2.9.12/Zope-2.9.12-final.tgz/ - http://old.zope.org/Products/Zope/2.10.13/Zope-2.10.13-final.tgz/ - http://old.zope.org/Products/Zope/2.11.4/Zope-2.11.4-final.tgz/ Hi Alex, With the help of Jim, who produced a tarball containing the spidered content of old.zope.org, the site has been converted to a static site. There will inevitably be issues here and there. I'll take a look to see if I can find the original files from the old app server. Thanks Jens, I know I occasionally need to build old Plone sites, as far back as 2.1 but also sometimes 2.5.x and 3.{0,1,2}.x all of which use the old tarballs ranging from Zope 2.8 - 2.11 (I think). Building these sites will require at least the final from each series to continue working. Ultimately, I'd love to be able to access all the old tarballs e.g. similar to: - http://dist.plone.org/archive/ But I realize this may require some significant bit of effort! Thanks again for the effort, Alex jens ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Missing Zope2 tarballs
Hi, Anyone notice these missing tarballs? - http://old.zope.org/Products/Zope/2.9.12/Zope-2.9.12-final.tgz/ - http://old.zope.org/Products/Zope/2.10.13/Zope-2.10.13-final.tgz/ - http://old.zope.org/Products/Zope/2.11.4/Zope-2.11.4-final.tgz/ (sorry for the redundant post, I posted this on plone-dev a bit earlier…) Alex -- Alex Clark · http://aclark.net ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)
Hi Jens, On 5/11/11 1:54 AM, Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/11/11 02:04 , Alex Clark wrote: Hi, On 5/10/11 5:38 AM, Lennart Regebro wrote: On Tue, May 10, 2011 at 09:15, Jens Vagelpohlj...@dataflake.org wrote: I strongly disagree on the term Zope 2. Now is a great time to finally stop the Zope2/3 confusion: Kill that name and start using a more sensible name, such as the Zope application server. Right. However I'm not convinced this is something you can agree/disagree on. Zope 2 exists. Zope 3 does not (it was split apart and renamed). As such, I don't see a problem with referring to it (Zope 2) by name (it's not Voldemort, after all). Someday it will die; but that day is not today. And until that day comes (or it gets renamed, heaven forbid) I would strive for clear and consistent branding (and in this case, I think I would also try to make it clear that Zope 2 is legacy software). Zope 2 was never a brand. It only existed to have a name for the older application server when Zope 3 existed. It led to confusion and still does. The name must go away. It is now the only application server with the Zope name left, and that's a simple, clear and consistent brand. We can help make the Zope 2 name go away by stopping its use on official community sites like the new zope.org. That's a good point. And I didn't mean to suggest Zope2 itself was a brand, just that the Zope brand could be improved by clarifying its offerings. Anyway, I can probably live with Zope being synonymous for Zope 2 application server (like regebro says, it is the status quo.) In which case, the brand becomes synonymous with its most famous offering. Alex jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk3KJIkACgkQRAx5nvEhZLKBOACffi+SkGRq9/3Ars6S4XzJmRV7 tzUAnii+Et4rAsqUcUHRVO8k3WDne3EE =Shk6 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net/training ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)
Hi, On 5/10/11 5:38 AM, Lennart Regebro wrote: On Tue, May 10, 2011 at 09:15, Jens Vagelpohlj...@dataflake.org wrote: I strongly disagree on the term Zope 2. Now is a great time to finally stop the Zope2/3 confusion: Kill that name and start using a more sensible name, such as the Zope application server. Right. However I'm not convinced this is something you can agree/disagree on. Zope 2 exists. Zope 3 does not (it was split apart and renamed). As such, I don't see a problem with referring to it (Zope 2) by name (it's not Voldemort, after all). Someday it will die; but that day is not today. And until that day comes (or it gets renamed, heaven forbid) I would strive for clear and consistent branding (and in this case, I think I would also try to make it clear that Zope 2 is legacy software). Yup. That or just Zope. That is what people mean when they say Zope anyway. I don't think they know what they mean :-) Alex -- Alex Clark · http://aclark.net/training ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] beta.zope.org (www.zope.org relaunch project)
Hi, On 5/10/11 12:55 AM, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I am happy to announce that we have made progress with the zope.org relaunch project. The first public version of the new site is now available under http://beta.zope.org The basic idea behind the project is: - a minimalistic www.zope.org site giving a short overview about what Zope is - including all related app servers, CMSes, frameworks etc. which links to the related project sites (micro-site approach) - no more member contents on www.zope.org - the current www.zope.org will be stripped down to the current member contents and stuff that has to be preserved. www.zope.org will be renamed to old.zope.org later Constructive criticism and feedback is welcome _now_. Looks great, well done all! Thanks for putting in the effort. My one (very minor) nit would be that we try to over-emphasize and over-clarify what Zope is (and is not), anywhere and everywhere possible. And by that, I mean: - Zope is: a brand, a term for any Zope-related technology, a general term. It no longer refers to anything specific. It is all-encompassing. - Zope 2 is the original web application server. - Bluebream is the former-Zope 3 web application server. - ZTK is a set of re-usable libraries. And so on. Alex I hope that we can fix the outstanding issues and integrate further feedback over the next few week in order to roll out the new site in the first half of June (2011 of course). Many thanks to my team (doing the real work): - - Michael Haubenwaller - - Kai Mertens - - Johannes Raggam Andreas Jung Zope Foundation -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJNyMVOAAoJEADcfz7u4AZjTgoLvigFQqPKlnn9J97+wrQRJkdr 8ErOiV6LCmpQeNLGDVodq0Y4JGnfQELu0ByzRz+xdig3NDAY9WyKTcxjJqu7DJ4H NnZ49dK47uvZaYbfq0kKjzIw9/FX092t5+lyVdiYst1d3JGEphz1iDsl+rySu4m1 xf3Zq5/+HH0xl2NPQ391dqPuoka+93ydygBfqR7TbBxr4t1GcbFs6vMhN5/13I7c g/Q6CWCKlBOfdSnof+p1M/EHtLelst7LPHXluB5tLSQcbpbhd3vtV2x19+InNBWs 3vbaWz9EFPQVdgrAc8f3Npw6+t1tn2JMBlLEJtwLmaErqjgDA4MMEmOmJPqNDqYo 7fyVWy0+OFeJdrGtO6MOZvmkgTxp+DBYjCOqzhzBijoHGaBQz1RsfH8IrWqhI+Av PRihsjM6ZBEhVcHyW/FIQfSvsYJCsim+xxcfkmUhUjXSD6j2h4BBjNnnyI2JRHkq iu0A27ANzqZrHx8rRipFcU9gJqLtBfA= =8/ed -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net/training ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] What happens when a KGS changes?
Folks, How do we handle a situation like the one I'm about to describe w/4.1a3 and c.xdv? I've been tracking 4.1 on aclark.net and in order to get the latest alpha to fly (i.e. install via buildout) I had to add a couple custom pins: - https://github.com/aclark4life/aclark_net_website/blob/master/buildout.cfg#L76 Should these go in: http://good-py.appspot.com/release/collective.xdv/1.0 ? (i.e. should the KGS be edited/changed). Or do we need a new KGS (e.g. http://good-py.appspot.com/release/collective.xdv/1.1 for 4.1)? Or what… I'm just curious about the process here. Thanks for any thoughts, Alex -- Alex Clark · http://aclark.net/help-me-help-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] What happens when a KGS changes?
On 2/17/11 12:35 PM, Hanno Schlichting wrote: On Thu, Feb 17, 2011 at 6:27 PM, Alex Clarkacl...@aclark.net wrote: How do we handle a situation like the one I'm about to describe w/4.1a3 and c.xdv? Did you mean to sent this to the plone-dev list? Hah, yup. Sorry for the noise, all! Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net/help-me-help-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] GenericSetup sans (Python) package?
Hi all, I floated an idea in a blog entry recently (here: http://blog.aclark.net/2011/01/19/new-website-for-2011/#todo) and I'm wondering if it's an attainable goal, or just a pipe dream: --- I want to add GenericSetup (GS) profiles outside Python packages (i.e. in the buildout via ZCML). Currently GenericSetup expects to be passed a context which is (I think) the old-style Zope 2 product object in the ZODB. But I can’t think of a reason why GS couldn’t be made to work sans that requirement (I’m just speculating though, I haven’t looked at the code yet). --- Should I bother checking out the Products.GenericSetup source code to see if something like this is possible? I really, really, really, don't want to create a Python package just so I can save a couple settings in my (Plone) site. Any thoughts appreciated, Alex -- Alex Clark · http://aclark.net Author · http://aclark.net/admin ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Hanno, please update the ZTK
On 2010-05-03, Wichert Akkerman wich...@wiggy.net wrote: On 5/3/10 15:41 , Martijn Faassen wrote: Lennart Regebro wrote: On Mon, May 3, 2010 at 13:22, Martijn Faassenfaas...@startifact.com wrote: Wichert Akkerman wrote: If we're going to make cheap shots: that's still a lot faster than the grok release cycle. Guys, please, this is like watching your parents fight ;-) Can't we all just get along? :-) As someone looking in from the outside (Plone), and hoping to become more active in the Zope community in the future, I wonder what it's going to take to restore some harmony and direction in here? It seems like I've been reading various flames for months now. To put things in perspective, for folks in here who may be too close to it, the Zope ecosystem is *really* starting to shape up IMO (i.e. leaving the Zope 3 confusion in the past, etc.). I think I understand it now (after years of study), and can actually explain it to others! So let's try to keep up the *great* work and let the little things slide… 2cents, Alex Wichert. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net Author of Plone 3.3 Site Administration · http://aclark.net/plone-site-admin ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope2 ZMI and HTML5
On 2010-02-04, Charlie Clark charlie.cl...@clark-consulting.eu wrote: Am 04.02.2010, 13:13 Uhr, schrieb Tres Seaver tsea...@palladion.com: I think perhaps Robert meant to say that Zope2 would[ no longer use DTML for any part of the ZMI, rather than removing the code which allows users applications to use DTML. This is something I would like to contribute to as it matches my skillset and interests pretty well. From the responses so far it seems that most people are so used to the ZMI that no change feels necessary and, let's face it, it works well enough. However, for new people coming to Zope the 1990nish of it is a bit off-putting: we've got all this cool technology underneath but you wouldn't believe it when you look at it. And I don't think much is required beyond dropping frames, the table-based layout using PageTemplates rather than DTML. I have an open ticket on much the same for CMFDefault which is where I will start from (from the point of view of separating markup from layout). But my work rate isn't brilliant so it would be good to have a sparring partner or two. +1, works fine as is or will be dead before long are not the best approaches IMO, factoring out the ZMI functionality in to something that folks can maintain and contribute to in the future if they want to, is. Charlie -- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Where is the position of BlueBream in Zope ecosystem ?
On 2010-01-22, Lennart Regebro rege...@gmail.com wrote: On Fri, Jan 22, 2010 at 04:55, Alex Clark acl...@aclark.net wrote: We certainly have not reached the goal of helping newcomers understand the Zope ecosystem in any other way to date, IMO.) If this is so, then I'm surprised. It seems perfectly clear to me. Ah! This is tremendously helpful, thanks. Just a few questions/comments. 1. In the beginning there is Python, the language. 2. Then you get ZCA a component architecture for Python. It has nothing to do with Web whatsoever. E.g. zope.component and one or two others? 3. Then we have ZTK. A toolkit for building web frameworks. This is where you lose me. What's an example of a ZTK package? I can't think of one off the top of my head… ah ok, I just found this: - http://docs.zope.org/zopetoolkit/releases/packages-trunk.html So ZTK is ZCA plus the bits that make it suitable for building web frameworks. And is it fair to say I can just build any web app with the ZTK? I don't need any of the frameworks that are already built, I'm free to reinvent the wheel if I choose too. 4. On top of that we have Zope 2, BlueBream and Grok. I.e. The Frameworks™ 5. There is also BFG, which doesn't include/build on the ZTK (as the others do). Right, it's loosely coupled with the ZCA, but you can throw that out too, if you like? It's pretty clear to me. Notice the almost complete lack of naming confusion, and the plethora of marketable names and TLA's. The paper pushers like these kinds of graphs (although I think we need something prettier, I might try do do something this weekend, but I'm no designer...) And when it comes to separating the frameworks it obviously becomes more complex. So we need to explain this, what the different framworks are good at in a clear way. I see it like this, but I could be wrong: * Zope 2 is the granddaddy of the frameworks. It's not really built on top of ZTK, but includes it. You basically only use Zope 2 if you are using some sort of software that builds on it, like Plone, Silva, or something custom. To build on my earlier car analogy: Zope 2 is an old pickup truck. You can get it to do anything. You can drop it from the top of a building and it will run. When it breaks you whack it with a hammer until it's not broken anymore. But it's diesel engine kinda stinks. * BlueBream used to be called Zope 3 and is a component based enterprise kick-ass do everything framework. Everything is configurable and it doesn't just include batteries, but a whole power plant. Which admittedly can be tricky to run. BlueBream is a train. Fast, big and pulls heavy loads, and good for the environment. If that's what you need, you know it. * Grok is an easier to use (and at least in the future also smaller/lighter) framework than BlueBream, while retaining the flexibility. Instead of having to configure everything, you have sensible defaults. Less typing, and it doesn't feel like J2EE. Inspired by frameworks like Django and Turbogears, you get the nice Python framework feeling with the power of ZTK behind you. Grok is a an hybrid minibus. Easy to drive, infinitely reconfigurable just by switching the seats around. * BFG is a minimalistic web framework built on Zope ideas and experiences, but as a part of it's minimalistic nature does not include *anything* of the ZTK, it just builds on the ZCA. But you can use the ZTK, if you want to, you are just not required to do so. It's for the purist, for the guy who wants to build his own streamlined speedmonster. BFG is a frame with four wheels and an big engine. The rest is up to you. Right, and the apps built with those frameworks, e.g. Plone, Cyn.in, Zenoss, etc. Would be very helpful to include these in a discussion about this, IMO. -- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Where is the position of BlueBream in Zope ecosystem ?
On 2010-01-22, Hermann Himmelbauer du...@qwer.tk wrote: Am Freitag 22 Januar 2010 14:46:16 schrieb Lennart Regebro: On Fri, Jan 22, 2010 at 04:55, Alex Clark acl...@aclark.net wrote: We certainly have not reached the goal of helping newcomers understand the Zope ecosystem in any other way to date, IMO.) If this is so, then I'm surprised. It seems perfectly clear to me. 1. In the beginning there is Python, the language. 2. Then you get ZCA a component architecture for Python. It has nothing to do with Web whatsoever. 3. Then we have ZTK. A toolkit for building web frameworks. 4. On top of that we have Zope 2, BlueBream and Grok. 5. There is also BFG, which doesn't include/build on the ZTK (as the others do). It's pretty clear to me. Notice the almost complete lack of naming confusion, and the plethora of marketable names and TLA's. The paper pushers like these kinds of graphs (although I think we need something prettier, I might try do do something this weekend, but I'm no designer...) No problem that you are no designer, if the concept is clearly communicated, there will be people around who can prettify it. And when it comes to separating the frameworks it obviously becomes more complex. So we need to explain this, what the different framworks are good at in a clear way. I see it like this, but I could be wrong: The above list (and http://wiki.zope.org/bluebream/relationship-after.png, which resembles the list) pretty much explains and structures things. Personally, I think that Plone (and maybe other applications, e.g. Silva?) are missing in the big picture (not necessary for explaining BlueBream, though). +1 The problem I see is where to go from this graph/list. I personally would expect to be able to advance from there to project home pages. This is true for grok/zope2/bluebream (in .zope.org), and also for BFG (bfg.repoze.org). What I can't find is some entry page for ZTK (at least I find http://docs.zope.org/zopetoolkit). Nice would be something like ztk.zope.org which could be similar to zope2.zope.org. +1 When it gets to ZCA, I can't find anything, except for Baiju's book and maybe somewhere some document about the Zope Component Architecture. If we introduce the word ZCA, I would recommend to put up a simple page on e.g. zca.zope.org, where people can learn what this is, links to a documentation and maybe has some download/install information and some tutorial. Right, I see http://pypi.python.org/pypi/zope.component/3.9.1 wrt to ZCA. Best Regards, Hermann -- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Where is the position of BlueBream in Zope ecosystem ?
On 2010-01-21, Hermann Himmelbauer du...@qwer.tk wrote: I think such things indeed matter to some degree: It's interesting that even people who are not that new (like Baiju or me) can't easily draw a picture of the Zope ecosystem, for instance neither of us knew that BFG sits on ZCA and not on ZTK, whereas I would not have distinguished between ZCA and ZTK in the first place. So - if even we have problems understanding, how would things look like for complete newbies? +1 FWIW I think of the ZCA as: The abstract concepts that define modern Zope programming e.g. component, adapter, interface, view, utility, etc. which is most often compared and contrasted with old style Zope 2 programming, e.g. acquisition, traversal, etc. As such, I make a pretty big distinction between the ZCA and the rest, e.g. Zope 2, the ZTK, BlueBream, Grok, BFG, Plone et al. The former is a concept, the latter are implementations of that concept, to varying degrees. I don't know or particularly care what packages make up the particular products/frameworks/whatever. (In fact, I find the whole ZTK concept a bit confusing. If the ZTK is just a collection of packages why argue over which packages? Why not declare every damn Zope-ish package part of the ZTK? That would include Chris's BFG, which implements CA concepts. So why not? Who cares? :-) We certainly have not reached the goal of helping newcomers understand the Zope ecosystem in any other way to date, IMO.) With that in mind, I can view the ecosystem very much like: http://wiki.zope.org/bluebream/BlueBreamName. But I might draw it like this: # Zope Ecosystem # == # #.--. #|ZCA (abstract concepts) | #| .-. | #| |ZTK (a bunch of Zope-ish packages that may or may not || #| | be useful to you)|| #| | - ------- || #| | | || | | | | ||| #| | |BlueBream|| Grok | | BFG | | Zope2 ||| #| | | || | | | | ||| #| | - ------- || #| | || #| | -- || #| | | repoze.zope2*| || #| | -- || #| `-` | #| | #`--` So I guess the point is, you can draw BFG with a line pointing directly to the ZCA and explicitly avoiding the ZTK, but I'm not buying it, personally ;-) Why? Because I consider BFG and whatever packages it consists of to be part of the general set of tools I may use as a Python/Zope loving web developer. And what's a good name for a set of tools that I may use to build something? Wait for it… a toolkit! Alex P.S. *Merge me back to Zope 2 Hanno, please! Best Regards, Hermann -- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] New Zope 3 name: BlueBream
On 2010-01-04, Baiju M mba...@zeomega.com wrote: Hi All, I am proposing to call Zope 3 - the web frame work as BlueBream. The main use for name is documentation. But the package named bluebream will not provide any part of framework code by itself. All the framework code will be in zope and zope.app namespaces. FWIW, getting in a late vote here: +1. BTW, the original meaning of BlueBream is same as that of Zope: http://en.wikipedia.org/wiki/Abramis_ballerus Cute! FTR, I will be shortening BlueBream to BB. I agree that the nickname Bream is OK, but that the full name should be BlueBream. Lastly I'll say, We are BlueBream consultants has a nice ring to it. I.e. it's marketable. ;-) Regards, Baiju M ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory
On 2010-01-03, Baiju M mba...@zeomega.com wrote: On Sun, Jan 3, 2010 at 9:20 PM, Andreas Jung li...@zopyx.com wrote: How is this different from ZopeSkel? Well, it's just yet another PasteScript project template. BlueBream provides a slightly different layout compared to basic_zope . Another obvious question (sorry ;-), why not just contribute to ZopeSkel (which is currently in need of some active contributors, IIRC)? Here are few features: 1. BlueBream project package includes ZTK + few additional packages which was part of Zope 3. 2. Runnable Buildout 3. Functional testing enabled by default using z3c.testsetup 4. Use PasteDeploy 5. Create a namespace package by default. To use: $ easy_install bluebream $ paster create -t bluebream testproject $ cd testproject $ python bootstrap.py $ ./bin/buidout $ ./bin/test $ ./bin/paster serve debug.ini Nice! Can I suggest adding that last bit to the PyPI page? E.g. $ cd testproject $ python bootstrap.py $ ./bin/buidout $ ./bin/test $ ./bin/paster serve debug.ini Also, there are a few installation issues (fixed by running `mkdir -p` by hand): http://pastie.org/765137 http://pastie.org/765140 And runtime issues (I think?): http://pastie.org/765143 Otherwise, it works as expected :-) Alex Regards, Baiju M ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) --- Alex Clark · http://aclark.net Practical Plone 3 · http://tinyurl.com/practical-plone ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] European On-line Store - C1al1s 9150 Taste new life 74196 Maxaman
Title: ... links: #1 #2 #3 #4 #5 links: #1 #2 #3 #4 #5 links: #1 #2 #3 #4 #5 links: #1 #2 #3 #4 #5 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: The bleak Future of Zope?!
Hi, On Wed, 21 Apr 2004 19:04:34 +0200, Maik Jablonski [EMAIL PROTECTED] wrote: Zope2 isn't maintained very well anymore due to limited ressources(bug fixes, documentation, see mail from Andreas), but Zope3 isn'tproduction ready at all. So if you talk to people making the decisionsin the IT-business they say: Zope2 seems to be a dead horse, Zope3is just a child which learns to run... Agree. Here is my point of view, as 'site manager'. We are creating small sites for end-users, and we try to use Zope in many cases, recommending this platform to end users. Many customers refuse to use Zope because of one simple reason: they look at http://www.zope.org web site, and then get back to us asking us how we could recommend this product. In my opinion the most important fixes to web site are: - Web site (zope.org) is very slow, and contains outdated documentation, links. Not well organized. Does not look professional way.I have no idea why zope.org site is slow and dying, but if it is because hardware or any kind of misconfiguration problem it must be fixed a.s.a.p. Just tried to open home page of http://www.zope.org - my Opera shows 1 min 11 sec to load. (compare, www.php.org loads in 5 seconds). This makes our customers to make false decision that Zope is a way too slow. Most of customers refused to work with Zope because they tell: all sites we looked at seems to be really slow. - Look at Zope powered sites:http://www.zope.org/Resources/ZopePowered/. At first 4 sites are not enought to convience any commercial customer. Even total of 11 links found on the page is not enought. I suggest to have submit a site form on this page so end users will submit their sites URLs and the list will be growing. Inactive sites should be removed after some time. - I do not understand the link to Zope CMF which leads me to http://cmf.zope.org/ and where I read ATTENTION! ... Please don't add new content here What this site is about, if it should not be used. Is Zope CMF dead? I see it is not, but this link makes me confused. - Zope HowTos contain all documents made in 1999. Most of people (including me) will never read such old documents because most probably many things described there are outdated. - Zope Development Guide full of comments since 2002. This should be refactored once a month, at least once a 3 months (I've seen the effort to rewrite ZDG has been started). - Bug tracking system (issue tracker) is not very comfortable to use. Better to use bugzilla, foxbugs, even 'trac' project will be a way much better and easier to use. And intruducing a better bug tracking could lead to better and faster bug resolution. So, I think zope.org needs good refactoring, but it seems there are no single person working on the site constantly, only from time to time (like plone integration event). Does anyone have any suggestions how this could be fixed? I can try to help, but as you have probably noticed I am not native English speaker, so my help with editing texts will not be very useful. But we can try to find out the problem with hardware/software setup of zope.org to find out why its slow. Possible we can install bugzilla or some other thing. I just need to know if anybody else interested into better look of zope.org site? And how this could be done... -- Alex V. Koval ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.X Session problems
Hi Chris, On Wed, 21 Apr 2004 11:36:59 -0400, Chris McDonough [EMAIL PROTECTED] wrote: What do you have the transient object timeout set for? Do you mean this (/temp_folder/session_data): Data object timeout value in minutes: 20 Also, here is a part of zope.conf for your reference: # from Chris zodb_db temporary # Temporary storage database (for sessions) filestorage path $INSTANCE/var/Sessions.fs /filestorage mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db Regards. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.X Session problems
Hi Chris, On Tue, 20 Apr 2004, Chris McDonough wrote: I am using new Transience.py, and my temp_folder is on Sessions.fs ZODB now. I have one problem with it - it does not seems that this way it deletes old expired Sessions. The number of objects grow and grow, and today we reached limit. You reached a disk space limit? Or a number of session objects limit? We have more then 10gb of free disk space. No, I reached the session objects limit. It was set as 1, now I set it as 5, and the counter is going higher every day. I think I have to delete Sessions.fs every night and restart Zope. Is it expected expected behavior when using file storage? I was thinking that only problem of this kind of storage is the need to pack the database sometimes. That was the intent. You did pack and it didn't reduce the file size? Yes, I packed it, size reduced, but the number of session objects still the same. And keep growing. Today morning stats (nobody works now, people still slepping at England): 12567 items are in this transient object container. Data object timeout value in minutes: 20 Maximum number of subobjects: 5 Yesterday there was only 1 session objects. Now, I am packing ZODB: --- before pack --- Database Location: /home/zope/current2/var/Sessions.fs Database Size: 6.2M Transient Object Container at /temp_folder/session_data 12568 items are in this transient object container. --- after pack Database Location: /home/zope/current2/var/Sessions.fs Database Size: 59.8K Transient Object Container at /temp_folder/session_data 12570 items are in this transient object container. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.X Session problems
Hi Chris, On Wed, 3 Mar 2004, Chris McDonough wrote: Great, I'm going to consider that a resounding endorsement and check it in soon; please do let me know if you see anything odd come up. If anyone else has been having issues with the old Transience module, and would like to provide feedback on the newer implementation, please get this file: http://cvs.zope.org/*checkout*/Products/Transience/Transience.py?rev=1.32.12.2.2.2only_with_tag=chrism-sessiongeddon ... and temporarily replace Zope's lib/python/Transience/Transience.py with this newer version to help test it out, and report back the results here. I am using new Transience.py, and my temp_folder is on Sessions.fs ZODB now. I have one problem with it - it does not seems that this way it deletes old expired Sessions. The number of objects grow and grow, and today we reached limit. I think I have to delete Sessions.fs every night and restart Zope. Is it expected expected behavior when using file storage? I was thinking that only problem of this kind of storage is the need to pack the database sometimes. -- Forwarded message -- Date: Tue, 20 Apr 2004 08:52:00 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: test failed: http://www.chalkface.com/catalog/html/custom/index.html?c_category_id=1 Testing URL http://www.chalkface.com/catalog/html/custom/index.html?c_category_id=1 ... test #1 - failure, code 500 test #2 - failure, code 500 [Details] --- Site Error An error was encountered while publishing this resource. MaxTransientObjectsExceeded Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 163, in publish_module_standard * Module Products.iHotfix, line 80, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Zope.App.startup, line 203, in zpublisher_exception_hook * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module OFS.DTMLDocument, line 128, in __call__ DTMLDocument instance at 41156d40 URL: http://www.chalkface.com/custom/index.html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index.html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 4114fa40 URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manag e_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_htm l_header * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: cart_functions * Module string, line 1, in expression * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 318, in _exec * Module None, line 16, in setSessionByRequest.py PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessio nByRequest.py Line 16 * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 93, in getSessionData * Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject * Module Products.Transience.Transience, line 494, in new_or_existing * Module Products.Transience.Transience, line 300, in __setitem__ MaxTransientObjectsExceeded: 1 exceeds maximum number of subobjects 1 (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. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Hi Chris, On Tue, 9 Mar 2004, Chris McDonough wrote: But it seems I forget to install new Transience module to the new Zope instance. Should I? Yes, please! Sorry, it does not seems to work on my first attempt: Traceback (innermost last): * Module ZPublisher.Publish, line 163, in publish_module_standard * Module Products.iHotfix, line 80, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Zope.App.startup, line 203, in zpublisher_exception_hook * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module OFS.DTMLDocument, line 128, in __call__ DTMLDocument instance at 411643b0 URL: http://www.chalkface.com/custom/index_html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index_html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41164110 URL: http://www.chalkface.com/custom/index.html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index.html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41173080 URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_html_header * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: cart_functions * Module string, line 1, in expression * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 318, in _exec * Module None, line 16, in setSessionByRequest.py PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessionByRequest.py Line 16 * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 93, in getSessionData * Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject * Module Products.Transience.Transience, line 504, in new_or_existing * Module Products.Transience.Transience, line 332, in get * Module Products.Transience.Transience, line 204, in _move_item * Module Products.Transience.Transience, line 359, in _roll AttributeError: _max_timeslice -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Hi Chris, On Fri, 05 Mar 2004 13:08:01 -0500, Chris McDonough [EMAIL PROTECTED] wrote: I am monitoring site now, and will tell you about the results. OK, many thanks! Running For: 3 days 4 hours 28 min 29 sec. I have enabled 400 error_log ex exceptions to keep, and during 3 days I got 2 errors on the site: TimeUsername (User Id) Exception 16:35:01Anonymous User (None) KeyError: 1078763620 21:59:05Anonymous User (None) KeyError: 1078696720 But it seems I forget to install new Transience module to the new Zope instance. Should I? -- Alex V. Koval http://www.halogen-dg.com http://www.zwarehouse.orgTraceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.DTMLDocument, line 128, in __call__ - DTMLDocument instance at 41c05e90 - URL: http://www.chalkface.com/custom/index_html/manage_main - Physical Path: /www.chalkface.com/ZWarehouse_0.8/custom/index_html Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 121, in __call__ - DTMLDocument instance at 41c0a440 - URL: http://www.chalkface.com/custom/index.html/manage_main - Physical Path: /www.chalkface.com/ZWarehouse_0.8/custom/index.html Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module OFS.DTMLDocument, line 121, in __call__ - DTMLDocument instance at 41be5290 - URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manage_main - Physical Path: /www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_html_header Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Util, line 201, in eval - __traceback_info__: cart_functions Module string, line 1, in expression Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 318, in _exec Module None, line 16, in setSessionByRequest.py - PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessionByRequest.py - Line 16 Module ZPublisher.HTTPRequest, line 1218, in __getattr__ Module ZPublisher.HTTPRequest, line 1178, in get Module Products.Sessions.SessionDataManager, line 93, in getSessionData Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject Module Products.Transience.Transience, line 176, in new_or_existing Module Products.Transience.Transience, line 809, in get KeyError: 1078696720 Traceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.DTMLDocument, line 128, in __call__ - DTMLDocument instance at 41c0a440 - URL: http://www.chalkface.com/custom/index.html/manage_main - Physical Path: /www.chalkface.com/ZWarehouse_0.8/custom/index.html Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module OFS.DTMLDocument, line 121, in __call__ - DTMLDocument instance at 41be5290 - URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manage_main - Physical Path: /www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_html_header Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Util, line 201, in eval - __traceback_info__: cart_functions Module string, line 1, in expression Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 318, in _exec Module None, line 16, in setSessionByRequest.py - PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessionByRequest.py - Line 16 Module ZPublisher.HTTPRequest, line 1218, in __getattr__ Module ZPublisher.HTTPRequest, line 1178, in get Module Products.Sessions.SessionDataManager, line 93, in getSessionData Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject Module Products.Transience.Transience, line 176, in new_or_existing Module Products.Transience.Transience, line 809, in get KeyError: 1078763620 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Hi Chris, On Wed, 3 Mar 2004, Chris McDonough wrote: (boldly crossposting this to zodb-dev, please respond on one list or the other but not both) That error *appears* to be caused by reaching a state that is impossible to reach. The code in question is: for key in list(self._data.keys(None, max_ts)): assert(key = max_ts) STRICT and _assert(self._data.has_key(key)) for v in self._data[key].values(): to_notify.append(v) del self._data[key] I was not working yesterday, now I found a big thread about the problem here :) Thats good that people are interested into resolving of this bug. I will read all the mails now, and will try to help to resolve it, since we have system where the high load causes such problems. By the way, just a few minutes ago I have found another session error, with a little different traceback then reported ago, so I am posting it here, just in case it helps you understand the prob. I am still thinking may be something wrong with my code? -- traceback -- Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 163, in publish_module_standard Module Products.iHotfix, line 80, in new_publish Module ZPublisher.Publish, line 127, in publish Module Zope.App.startup, line 203, in zpublisher_exception_hook Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.DTMLDocument, line 128, in __call__ DTMLDocument instance at 41bcf6e0 URL: http://www.chalkface.com/custom/index_html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index_html Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41bcf5f0 URL: http://www.chalkface.com/custom/index.html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index.html Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41b5d770 URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/ manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/catalog/html/ zwarehouse_html_header Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: cart_functions Module string, line 1, in expression Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 318, in _exec Module None, line 16, in setSessionByRequest.py PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/ setSessionByRequest.py Line 16 Module ZPublisher.HTTPRequest, line 1218, in __getattr__ Module ZPublisher.HTTPRequest, line 1178, in get Module Products.Sessions.SessionDataManager, line 93, in getSessionData Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject Module Products.Transience.Transience, line 494, in new_or_existing Module Products.Transience.Transience, line 304, in __setitem__ KeyError: 1078473960 (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. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Hi Chris, On Wed, 3 Mar 2004, Chris McDonough wrote: With this text: zodb_db temporary # Temporary storage database (for sessions) filestorage path $INSTANCE/var/Sessions.fs /filestorage mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db Installed. I had to install new zope instance first, then import old content via zexp recreate manually all admins. Because when you change the running zope config in Zope 2.7.0 it has no impact on temp_folder - Sessions.fs is not created when the temporary storage was already in place. Lets see, next test will be on Monday, many users come only on working days. I also got many complatins from customer, so I wrote a test suite which is logging to a site each 2 minutes, and if there are problem, it sends emails to all of admins, so they come and restart zope. With prev. Transience, when this keyError appear, it was seen only by 1,2,3 users. With new Transience, when error starts to appear, nobody is able to see any page which uses Session - all sessions became broken. I am monitoring site now, and will tell you about the results. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please
Chris, No, just a few minutes ago I got this again: Time2004/03/03 07:45:04.662 GMT User Name (User Id) Anonymous User (None) Request URL http://www.chalkface.com/catalog/html/custom/index_html Exception Type KeyError Exception Value 1078236460 Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module OFS.DTMLDocument, line 128, in __call__ DTMLDocument instance at 41c33890 URL: http://www.chalkface.com/custom/index_html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index_html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41c337a0 URL: http://www.chalkface.com/custom/index.html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index.html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41c2b080 URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_html_header * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: cart_functions * Module string, line 1, in expression * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 318, in _exec * Module None, line 16, in setSessionByRequest.py PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessionByRequest.py Line 16 * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 93, in getSessionData * Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject * Module Products.Transience.Transience, line 491, in new_or_existing * Module Products.Transience.Transience, line 322, in get * Module Products.Transience.Transience, line 198, in _move_item * Module Products.Transience.Transience, line 419, in _gc KeyError: 1078236460 On Wed, 3 Mar 2004, Chris McDonough wrote: Great, I'm going to consider that a resounding endorsement and check it in soon; please do let me know if you see anything odd come up. If anyone else has been having issues with the old Transience module, and would like to provide feedback on the newer implementation, please get this file: http://cvs.zope.org/*checkout*/Products/Transience/Transience.py?rev=1.32.12.2.2.2only_with_tag=chrism-sessiongeddon ... and temporarily replace Zope's lib/python/Transience/Transience.py with this newer version to help test it out, and report back the results here. Thanks! - C On Wed, 2004-03-03 at 02:14, [EMAIL PROTECTED] wrote: Hi Chris, Until now, we did not got any errors with new Transience.py :) It just works, no problems found under high load. Alex On Mon, 1 Mar 2004, Chris McDonough wrote: I installed new Transience.py. During my little test it works fine. But real test will be on Monday when students start logging in as complete classes, sometimes there are hundreds of them logging on simultaneously, so we will see. Any news? ;-) -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please
Hi Chris, Well, I was also shamed into creating a new implementation of the sessioning stuff that might work better under higher load. Thank you very much for a fast fix/replacement of Transience :) The people that are now having problems should try to replace the file in their Zope software home named lib/python/Products/Transience/Transience.py with this one: http://cvs.zope.org/*checkout*/Zope/lib/python/Products/Transience/Transience.py?rev=1.32.12.2.2.1 (be sure to make a backup of the original file first) I installed new Transience.py. During my little test it works fine. But real test will be on Monday when students start logging in as complete classes, sometimes there are hundreds of them logging on simultaneously, so we will see. I copied original file, so in case of problems, I will put it back and restart Zope. After putting the new file in place, restart Zope and see what happens. This stuff was just checked in, so there's sure to be some edge case bugs, but all the unit tests pass and the UI still works. Please report results back here, if possible. I will report if any problem occurs. Alex On Sun, 29 Feb 2004, Chris McDonough wrote: Thanks! - C On Sun, 2004-02-29 at 01:11, Santi Camps wrote: When we started using Zope sessions, we experienced a set of session problems. I started fixing them, but it turned out that the implementation was very ambitious, too ambitious to get it safe. I, therefore, switched plans and implemented an alternative Transience module -- much simpler and less ambitious. We use it since then in a medium load production environment and did not see any more problems. I asked my boss whether I can release this implementation as Open Source. He said sure. I still have to hash out a few organisational questions but I expect the module will be available within 2 weeks. Oh, these are really good news !! Please, announce it very high :-) Thanks a lot -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please
Hi On Tue, 24 Feb 2004, Chris McDonough wrote: Yes, it's still broke. No, there is no fix. Sorry. Thanks Cris. Thats very bad. It is very bad from end-user perspective that such critical bug has been found more then year ago, and nobody at Zope has fixed their code during a year time. I am trying to read all the things you have discussed in March 2003, but it is very difficult to understand how to fix that. Also, I am in doubt I will be able to do that, because if Zope-experienced developers can not fix it, my chances are low. I just have no choice - we already developed a product for Zope, so I have to support it. Even if it requires hacking of application server itself. I see that fix: #db.klass = LowConflictConnection but it does not work for us. At least we keep seeing the session errors with any Zope version - we tries Zope 2.6.4, Zope 2.7.0 with same results. So, as far I you see, as soon as Zope starts using sessions, and when there are many customers, the site is dead for some users. Once 'get' error occurs to a specific Session, the customer is blocked and is not able to see any page on the site: all pages produce this get error. That is very critital and 'blocker' bug for Zope. I do not understand how people could use Zope on a sites with high load.. The only thing which works is asking customer to delete all Cookies, so session ends, and new one starts. This is very ugly fix, you understand... I am not Zope hacker itself, we are just building sites, we are not developers of Server solutions in most of time, so it takes time to study the Zope code to be able to fix that... I will try to work on this more and more, but ... Its just very difficult. Anybody, experienced with Zope developmnet could help me? I am sure, this problem could happend to anyone running a big Zope site. Is anybody interested in helping to resolve this blocker Zope+Sessions issue? As soon as you start getting more hits to any Zope based site, the more customers will not see it because of Session problem. I do not know how many customers of our site getting this, but we do get it everyday several times a day / person. So, in my understanding Zope Session is completely broken. It works fine for a several customers/ hour, but when things come to 1000 visits/ hour, it just stops functionaning properly. I will be trying to study Zope code That is what Open Source for, and I am a big fun of that. But of course, it does not help much if you are not experienced with product itself. It takes time to learn it. But I will try. If anybody interested in help, it would be great. at the current moment I am trying to stable reproduce the prob, but it seems it only happends on a site with high load. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ - C On Tue, 2004-02-24 at 11:43, [EMAIL PROTECTED] wrote: I see Chris post at: http://mail.zope.org/pipermail/zope-dev/2003-March/019116.html As far I see, this bug still existing in Zope 2.6.4, Zope 2.7.0. Its strange because into Changes histore of Zope it seems to be fixed into 2.6.2: Zope 2.6.2 beta 2 Bugs Fixed * TemporaryStorage (which is used by TemporaryFolder, and thus the default sessioning configuration) no longer uses a LowConflictConnection database connection. This fixes a bug in which data structures used for session housekeeping data could become desynchronized; the symptom for this was KeyErrors being raised from TransientObjectContainer's get method. As a result, many more conflicts will be raised under high session load, but desynchronization will not occur. Could you please at least point me where I can dig to get it fixed? I will try to read Python code in Transience.Transience but I am not sure in my qualification in this area. Bug reported at zope.org as: http://zope.org/Collectors/Zope/848 but until now there were no comments which help me to fix this. may be something needs to be changed into my code? in the beginning of many scripts I have the following: request=container.REQUEST session=request.SESSION please give me a hint. Thanks. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please
Hi As far I understand the error happends in this code Question to Python developers: As far I understand, index does contain b, and data does not contain 'b'. Simple question: why does the line: v = self._data[b].get(k, notfound) throw KeyError at any case? get does have next argument, and if key is not found, ti will return [], right? It seems I do not understand Python code at this place. Please advice. Alex - [ code from Transience.py --- def get(self, k, default=_marker): self.lock.acquire() try: DEBUG and TLOG('get: called with k=%s' % k) notfound = [] current = self._getCurrentBucket() DEBUG and TLOG('get: current is %s' % current) if default is _marker: default=None index = self._getIndex() b = index.get(k, notfound) if b is notfound: # it's not here, this is a genuine miss DEBUG and TLOG('bucket was notfound for %s' %k) return default else: v = self._data[b].get(k, notfound) if v is notfound: DEBUG and TLOG( 'get: %s was not found in index bucket (%s)' % (k, b)) return default - [ end code from Transience.py -- [error] * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 93, in getSessionData * Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject * Module Products.Transience.Transience, line 176, in new_or_existing * Module Products.Transience.Transience, line 809, in get KeyError: 1077572580 -- [end of error] - -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.6.X, 2.7.x sesssion problems, please help (fwd)
Hi, I am not sure, but it if Locking is global thing, I think, that if could happend the following way: 1. some function makes self.lock.acquire() 2. it calls another function, which have 2 calls: self.lock.acquire() self.lock.release() since the locking is done globally, most probably, it will mean that call to _getIndex for example will release the lock, and the processin in upper function will continue with undefined results (most possible _housekeep in different threat will delete the key same time we are trying to read the data). May be I am wrong... Most important now to understand for me why the error persists. It means, that once a user see the Session key Error, the user will keep getting it all the time, on all site, until _ZopeId cookie is deleted for the Session. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.6.X, 2.7.x sesssion problems, please help (fwd)
I see Chris post at: http://mail.zope.org/pipermail/zope-dev/2003-March/019116.html As far I see, this bug still existing in Zope 2.6.4, Zope 2.7.0. Its strange because into Changes histore of Zope it seems to be fixed into 2.6.2: Zope 2.6.2 beta 2 Bugs Fixed * TemporaryStorage (which is used by TemporaryFolder, and thus the default sessioning configuration) no longer uses a LowConflictConnection database connection. This fixes a bug in which data structures used for session housekeeping data could become desynchronized; the symptom for this was KeyErrors being raised from TransientObjectContainer's get method. As a result, many more conflicts will be raised under high session load, but desynchronization will not occur. Could you please at least point me where I can dig to get it fixed? I will try to read Python code in Transience.Transience but I am not sure in my qualification in this area. Bug reported at zope.org as: http://zope.org/Collectors/Zope/848 but until now there were no comments which help me to fix this. may be something needs to be changed into my code? in the beginning of many scripts I have the following: request=container.REQUEST session=request.SESSION please give me a hint. Thanks. -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] ZEO Server Crashed
We have been running our web site with Zope 2.4.2 and ZEO (I'm unsure of the version, can't seem to find it anywhere) for about 5 months. We are running it on Solaris 8 w/ Python 2.1.2. The other day we had a major crash and this was left in the ZEO_Server.log: 2002-04-09T16:36:49 ERROR(200) ZEO Server uncaptured python exception, closing channel StorageServer listening :5800 at 47a074 (exceptions.OSError:[Errno 24]Too many open files [/opt/Lang/Python-2.1.2/lib/python2.1/asyncore.py|poll|92] [/opt/Lang/Python-2.1.2/lib/python2.1/asyncore.py|handle_read_event|380] [/opt/WWW/ZopeInstallation/Zope_software_home/lib/python/ZEO/StorageServer.py|handle_accept|189] [/opt/WWW/ZopeInstallation/Zope_software_home/lib/python/ZEO/StorageServer.py|__init__|238] [/opt/WWW/ZopeInstallation/Zope_software_home/lib/python/ZEO/trigger.py|__init__|133]) Any clues as to what caused this? Or any information about making sure this doesn't happen again? Thanks Alex Kelly Internet System Administrator Franklin University ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Another Signal 11 Question
This problem still hasn't been resolved. I am using a source distribution of Zope. On our production machine, I only recompiled Python. Since the ZMI was reporting the new Python, I figured that was enough to fix the problem. I suppose I could alleviate one other possibility by recompiling Zope too. Alex Daniel Duclos wrote: Em Quinta 15 Novembro 2001 13:34, Alex Kelly escreveu: I too have been having a lot of restarts with error code 11. After reading some other comments relating to this, I recompiled Python 2.1.1 with the --without-pymalloc option. I have not yet seen any problems from doing this, but my questions are: Is this the preferred method to fix the Sig 11 restarts? Are there any other options? Are there any consequences to running zope without py_malloc? Hello Alex! Are you using source or binary Zope? Did you recompile Zope AND Python or just Python?? How you resolved this? Thanx! ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Another Signal 11 Question
I too have been having a lot of restarts with error code 11. After reading some other comments relating to this, I recompiled Python 2.1.1 with the --without-pymalloc option. I have not yet seen any problems from doing this, but my questions are: Is this the preferred method to fix the Sig 11 restarts? Are there any other options? Are there any consequences to running zope without py_malloc? Thanks, Alex Kelly ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Error code 4?
I have been working on fixing our Error code: 11 problems, however we also have about the same amount of Error Code: 4 entries in our debug.log. Does anyone know what that is, and what I can do to clear that one up too? For the record we are running: Solaris 8 on a sparc Python 2.1.1 (compiled from source) Zope 2.4.2 (compiled from source) Thanks, Alex Kelly ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How long below the radar? [off-topic]
On Tuesday, July 10, 2001, at 03:26 , Jerry Spicklemire wrote: Maybe that is the natural state for a rapidly maturing Open Source project. After all, Linux itself was a labor in obscurity sort of amateur project for nearly a decade. By the time Linux hit the popular press it was well entrenched in corporate DNS, email and web servers. On the other hand, if you like myself remain mystified that Zope hasn't made a massive splash in the Application Server market, then maybe it's time to think about the grand plan. Does Zope really need to make a big splash anywhere? Zope will get adopted by word of mouth. People who use it will end up developing their commissioned works in it, and the installed base will grow exactly as fast as it can be supported. Alex Alex Satrapa tSA Consulting Group Pty Limited ICQ: 5691434 1 Hall Street, Lyneham, Canberra 2603 PGP Key 0x4C178C9Cfx: +61 2 6257 7311 ph: +61 2 6257 7111 PGP Fingerprint E4FA ADE6 97A4 3610 E008 A466 A03E 3D01 4C17 8C9C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] aq_inContextOf attribute error
Hello All ! After installing latest stable version of Zope (2.2.4) I tried to install ZFormulator version 0.2. And as result got 2 problems with permissions system. First was in ZFormulator itself, and was corrected: __roles__ = ('manager',) was changed to __roles__ = ('Manager',) but this bug correction worked fine for previous versions of Zope, and in current version adding of field produced error: Attribute Error: aq_inContextOf in line 231 of lib/python/AccessControl/User.py I am nor Zope nor Python hacker, but I tried to correct this line a little, and this worked for me. Please advice did I made it correct way or not. User.py line 231: Here was the original code (which produced error): if not parent.aq_inContextOf(self.aq_parent.aq_parent,1): Here is replacement (added check is attribute exists): if hasattr(parent, 'aq_inContextOf') and not parent.aq_inContextOf(self.aq_parent.aq_parent,1): After this correction everything works fine, but since I am not Zope/Python guru, but just a user which wanted some program to start working, I keeping changed locally, but of course I am interested was this correction OK. Regards. -- Alex V. Koval ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Repeating a piece of HTML code
Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars would appear: 1 - * 2 - ** 3 - *** 4 - 5 - * Is there any way to do so in Zope? Does the dtml-in tag anything to do with it? Thank you! = Saludos!! _-/Txapulin\-_ [EMAIL PROTECTED] O \ / ---\ / O http://www.geocities.com/txapulin \/ | \/ / |XAP\ || || __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )