[Zope-Checkins] SVN: Zope/branches/jim-mproxy/ Added Mild proxies. These are variations on Zope 3 security proxies
Log message for revision 38828: Added Mild proxies. These are variations on Zope 3 security proxies that, we hope, will backward compatible. Changed: A Zope/branches/jim-mproxy/lib/python/Zope2/security/ A Zope/branches/jim-mproxy/lib/python/Zope2/security/_Zope2_security_mproxy.c A Zope/branches/jim-mproxy/lib/python/Zope2/security/__init__.py A Zope/branches/jim-mproxy/lib/python/Zope2/security/mproxy.py A Zope/branches/jim-mproxy/lib/python/Zope2/security/mproxy.txt A Zope/branches/jim-mproxy/lib/python/Zope2/security/tests.py U Zope/branches/jim-mproxy/setup.py -=- Added: Zope/branches/jim-mproxy/lib/python/Zope2/security/_Zope2_security_mproxy.c === --- Zope/branches/jim-mproxy/lib/python/Zope2/security/_Zope2_security_mproxy.c 2005-10-06 20:23:16 UTC (rev 38827) +++ Zope/branches/jim-mproxy/lib/python/Zope2/security/_Zope2_security_mproxy.c 2005-10-06 20:32:26 UTC (rev 38828) @@ -0,0 +1,261 @@ +/* +* +* Copyright (c) 2003, 2004 Zope Corporation and Contributors. +* All Rights Reserved. +* +* This software is subject to the provisions of the Zope Public License, +* Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +* THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED +* WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +* FOR A PARTICULAR PURPOSE. +* +** +Security Proxy Implementation + +$Id: _proxy.c 26705 2004-07-23 16:22:56Z jim $ +*/ + +#include Python.h + +static PyTypeObject *_Proxy = NULL; + +#define DECLARE_STRING(N) static PyObject *str_##N + +typedef struct { + PyObject_HEAD + PyObject *proxy_object; + PyObject *proxy_checker; +} MProxy; + +static PyObject * +mproxy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) +{ + static char *kwlist[] = {object, checker, 0}; + MProxy *self; + PyObject *object; + PyObject *checker; + + if (!PyArg_ParseTupleAndKeywords(args, kwds, + OO:_Proxy.__new__, kwlist, + object, checker)) +return NULL; + + if (checker == Py_None) +{ + PyErr_SetString(PyExc_ValueError, None passed as proxy checker); + return NULL; +} + + self = (MProxy *)type-tp_alloc(type, 0); + if (self == NULL) +return NULL; + Py_INCREF(object); + Py_INCREF(checker); + self-proxy_object = object; + self-proxy_checker = checker; + return (PyObject *)self; +} + +static PyObject * +clean_args(MProxy *self, PyObject *args, int l) +{ + PyObject *result; + int i; + + result = PyTuple_New(l); + if (result == NULL) +return NULL; + + for (i=0; i l; i++) +{ + PyObject *o; + + o = PyTuple_GET_ITEM(args, i); + if (o != NULL) +{ + if (o-ob_type == self-ob_type) +o = ((MProxy *)o)-proxy_object; + Py_INCREF(o); +} + PyTuple_SET_ITEM(result, i, o); +} + + return result; +} + +static PyObject * +clean_kwds(MProxy *self, PyObject *kwds) +{ + PyObject *result; + PyObject *k, *o; + int pos = 0; + + result = PyDict_New(); + if (result == NULL) +return NULL; + + while (PyDict_Next(kwds, pos, k, o)) +{ + if (o-ob_type == self-ob_type) +o = ((MProxy *)o)-proxy_object; + if (PyDict_SetItem(result, k, o) 0) +{ + Py_DECREF(result); + return NULL; +} +} + + return result; +} + +static PyObject * +mproxy_call(MProxy *self, PyObject *args, PyObject *kwds) +{ + PyObject *result = NULL; + + if (args != NULL) +{ + int i, l; + + l = PyTuple_Size(args); + if (l 0) +return NULL; + + Py_INCREF(args); + for (i=0; i l; i++) +{ + PyObject *o; + + o = PyTuple_GET_ITEM(args, i); + if (o != NULL o-ob_type == self-ob_type) +{ + Py_DECREF(args); + args = clean_args(self, args, l); + break; +} +} +} + + if (kwds != NULL) +{ + PyObject *k, *o; + int pos = 0; + + Py_INCREF(kwds); + while (PyDict_Next(kwds, pos, k, o)) +{ + if (o-ob_type == self-ob_type) +{ + Py_DECREF(kwds); + kwds = clean_kwds(self, kwds); + break; +} +} +} + + result = _Proxy-tp_call((PyObject*)self, args, kwds); + Py_XDECREF(args); + Py_XDECREF(kwds); + + return result; +} + +static char proxy_doc[] = +Mild security proxies.\n +\n +See mproxy.txt.\n +; + +statichere PyTypeObject +MProxyType = { + PyObject_HEAD_INIT(NULL) + 0, + Zope2.security.mproxy.MProxy, + sizeof(MProxy), + 0, + 0, + 0, /* tp_print
[Zope-Coders] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Wed Oct 5 11:01:02 2005 UTC to Thu Oct 6 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:23:44 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003255.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:25:14 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003256.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:26:44 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003257.html Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:28:14 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003258.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:29:44 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003259.html Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:31:14 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003260.html Subject: OK : Zope-trunk Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:32:44 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003261.html Subject: OK : Zope-trunk Python-2.4.1 : Linux From: Zope Unit Tests Date: Wed Oct 5 22:34:14 EDT 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003262.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
[Zope] New mailinglist for Zope 3 translators
Hello all, [Sorry for the cross-post, please CC replies to [EMAIL PROTECTED] only.] two months ago, I started an initiative [1] to translate Zope 3.1 using Ubuntu's Launchpad system [2]. Since then, I've received a lot of emails from numerous volunteers around the world and many of them made some excellent progress [3]. Thanks to everyone who contributed so far. A new mailinglist at [EMAIL PROTECTED] will now help translators and developers like me to coordinate their work. For example, all those translations will have to be integrated back into the Zope 3.1 repository at some point which has to be coordinated somehow. Also, translators themselves will want to coordinate the work among them. The mailinglist will serve as a forum for discussing and coordinating things like that. So, if you're involved into Zope 3 translations OR if you would like to contribute something to Zope 3 by helping to translate it into your language, please subscribe to the new list [4]. If you have any questions, feel free to email me or even better the new list. Best regards Philipp [1] http://mail.zope.org/pipermail/zope3-dev/2005-August/015113.html [2] https://launchpad.net [3] https://launchpad.net/products/zope/+series/zope3.1/+pots/zope [4] http://mail.zope.org/mailman/listinfo/zope3-i18n ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Mysql 5? Just curious.
Richard Smith wrote: A very quick test shows the basics work just fine (adding a record to a table and displaying the whole table). Just watch authentication - they've changed the password algorithms again as in the 3/4 upgrade. The work around is in the manual. rats, probably only an issue if someone's using MySQL encrypted passwords and SUF, and will require a patch to Zope. *sigh* Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: INSTALLING gcc (and ZOPE) on DEBIAN
$ which gcc /usr/bin/gcc After entering which gcc, I always get the following output: /usr/bin/gcc The whole error message is (after entering the make - command) : --- /usr/bin/python /Zope-2.7.5-final/setup.py\ build --build-base=/Zope-2.7.5-final/build-base/python-2.3 --build-lib=/Zope-2.7.5-finale/build-base/python-2.3/build-lib --build-scripts=/Zope-2.7.5-finale/build-base/python-2.3/build-scripts --build-temp=/Zope-2.7.5-final/build-base/python-2.3/build-temp running build running build_py running build_ext building 'ExtensionClass' extensions gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/Zope-2.7.5-final/lib/Components/ExtensionClass/src -I/usr/include/python2.3 -c ../Components/ExtensionClass/src/ExtensionClass.c -o /Zope-2.7.5-final/build-base/python-2.3/build-temp/../Components/ExtensionClass/src/ExtensionClass.o virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar error: command 'gcc' failed with exit status 1 make *** [build] Fehler 1 --- __ Erweitern Sie FreeMail zu einem noch leistungsstarkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: INSTALLING gcc (and ZOPE) on DEBIAN
On 6 Oct 2005, at 11:39, [EMAIL PROTECTED] wrote: The whole error message is (after entering the make - command) : --- /usr/bin/python /Zope-2.7.5-final/setup.py\ build --build-base=/Zope-2.7.5-final/build-base/python-2.3 -- build-lib=/Zope-2.7.5-finale/build-base/python-2.3/build-lib -- build-scripts=/Zope-2.7.5-finale/build-base/python-2.3/build- scripts --build-temp=/Zope-2.7.5-final/build-base/python-2.3/ build-temp running build running build_py running build_ext building 'ExtensionClass' extensions gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -fPIC -I/Zope-2.7.5-final/lib/Components/ExtensionClass/ src -I/usr/include/python2.3 -c ../Components/ExtensionClass/src/ ExtensionClass.c -o /Zope-2.7.5-final/build-base/python-2.3/build- temp/../Components/ExtensionClass/src/ExtensionClass.o virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar error: command 'gcc' failed with exit status 1 make *** [build] Fehler 1 Have you actually *read* the output? It tells you, quite clearly, even in German, that you don't have enough memory on that machine. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZOPE and DEBIAN INSTALLTION
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 06, 2005 5:58 AM Subject: Re: [Zope] ZOPE and DEBIAN INSTALLTION $ which gcc /usr/bin/gcc After entering which gcc, I always get the following output: /usr/bin/gcc The whole error message is (after entering the make - command) : --- /usr/bin/python /Zope-2.7.5-final/setup.py\ build --build-base=/Zope-2.7.5-final/build-base/python-2.3 --build-lib=/Zope-2.7.5-finale/build-base/python-2.3/build-lib --build-scripts=/Zope-2.7.5-finale/build-base/python-2.3/build-scripts --build-temp=/Zope-2.7.5-final/build-base/python-2.3/build-temp running build running build_py running build_ext building 'ExtensionClass' extensions gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/Zope-2.7.5-final/lib/Components/ExtensionClass/src -I/usr/include/python2.3 -c ../Components/ExtensionClass/src/ExtensionClass.c -o /Zope-2.7.5-final/build-base/python-2.3/build-temp/../Components/ExtensionClass/src/ExtensionClass.o virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar error: command 'gcc' failed with exit status 1 make *** [build] Fehler 1 --- I am just guessing, but it looks like your swap file is too small (you need to allocate more disk space to your swap file - this is an operating system modification, nothing to do with zope). hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Scalability
On 10/5/05, Andreas Jung [EMAIL PROTECTED] wrote: This would require how much RAM for the index? :-) It can hold 16 billion billion pointers, with each pointer being 48 bits, thats 96 exabytes (100 million terabytes). Just for the index. :) As an absolute minimum. Indexes normally being btrees or something like that, you would surely need several times that in practice. :) Sorry for any calculation errors, but I can be rather a lot off without it making a difference, so I can't be bothered to check. ;) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Mysql 5? Just curious.
Greg Fischer schrieb: This is totally unimportant, but I was just curious to know if anyone is running Mysql 5 on Zope right now. why should one? :) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Testing products: Testing all in one batch
Paul Winkler wrote: I have a python script that builds a big command line to test.py of the form: bin/zopectl test Products/Product1|Products/Products2|etc ...it's not pretty, but it does work, and lets you exclude geb0rken products like Archetypes from test runs... Aha, that's much like what I'm doing except that yours runs in one go and thus exposes tests that don't clean up after themselves. Which is a Good Thing if I can just find and fix all the nasty things... No, no, we have several batches above, where each batch contains only products that don't screw up each others' tests. There were some products, mainly from Plone, which we just had to remove from the test run altogether, because THEY SUCK! ;-) Irrelevant to this discussion, but A) it's hardly ancient, But CMF 1.6 is on the horizon now ;-) and B) upgrading to 1.5.x has been postponed indefinitely as it breaks a lot of old things (some mine, some third-party) and I have not had any time to devote a day or three to resolving the incompatibilities. Ah, the compatability trap :-S - Some of my own Product tests run fine in isolation but break when run alongside other installed product tests. Then either your tests or the other tests are leaving turds... Indeed. I wish it was easier to diagnose and resolve problems like this. Yup, I know of no other way that goign through case-by-case... The problem is that tests seem to be run in alphabetical order, I don't know of a way to force another order, go and get inside unittest.py and have a play... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Presentations Available
Hi Nick, Nick Davis wrote: I agree that 2+ years should have produced maturity. Zope seems to be a lot more stable than Plone. Well, Zope has had about 10 years to stabilise, versus Plone's 2 ;-) Maybe the reason people focus on your Plone talk is you touch a chord with people who too are wrestling with Plone. *grinz* I can but hope... Probably at least once a week the thought crosses our minds of ditching Plone and going back down to the Zope level, with some of our own stuff sitting on top of CMF. But then, Plone does provide some good things. Yep, that's a point I made while giving that talk :-S If only these things would work consistently and not keep changing. You REALLY want them to stay as bad as they were? ;-) Also while performance problems have been addressed in 2.1 No they haven't... there seem to still be migration problems and broken products which prevent people going to 2.1 yet. Yup. My colleague has spent a long time trying to migrate a Product he wrote, from Archetypes 1.2.5 to 1.3.4, due to the fact he had to hack around problems with references. Archetypes is the chief sinner in all of this, I'm afraid. It's trying to solve a very difficult problem, and one which needs tackling with structure and upfront and intuitive design rather than the organic tacking on of new bitz whenever anyone felt like it that AT has suffered through... My fear is as more features are added, what you describe as a shaky stack of complex fragile components will get ever more dependencies and therefore ever more complex and fragile. Yup. People often talk about the steep learning curve of Zope and Plone. When one is learning it, one tends to blame oneself for finding it difficult, and its a bad workman blames his tools. After a while though the question arises of why this seems to be harder to learn than say, some mathematical concept commonly considered hard to get your head around. The answer seems to be because its Plone's complexity and inconsistencies we are learning. This is not good and doesn't bode well for increasing mind share. Indeed. This is not actually any worse than the J2EE / Java / class explosion world, but isn't one of the points of open source and collaboration that it should be much much better? Well, that's a different discussion, and one best had over much beer... It is great that so many people are willing to contribute their own free time, effort and resources, to write code that they freely share. ...but, and this may seem harsh, but that doesn't, in itself, mean they're any good at writing quality software... It seems to me your recommendation to people to not use Plone at all, coming from someone who's been around in the Zope worldfor quite some time, is quite controversial but may in a roundabout way help if it forces people to make Plone more stable and mature. Moi? Controlversial? i'd never do such a thing ;-) *grinz* Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] How to prevent web access to specific folder ?
In my application built on top of Zope, there is a folder scripts/ which contains various python scripts. Some of these scrips invoke SQL methods and accept parameters. The DTML method (outside the scripts/ folder) calls first scripts to set parameters and then scripts which invoke SQL methods passing correct parameters. However, if users can call directly scripts with HTTP request to zope, they can pass any parameters they like. So, for security reasons it is important to deny direct access to scripts/ folder. Also, manager should be able to normally manage this folder from ZMI. I know this can be done by restricting View/Access Contents information privileges for folders/scripts to the specific role and then giving DTML methods proxy role. But, is there any other easier methods ? I've tried using access_rule, but the is to allow ZMI to work. At the time when access_rule is called user is not authenticated, so I cannot check if the current user is manager on not. If anybody has any ideas, I'll be gratefull, Vladimir ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: INSTALLING gcc (and ZOPE) on DEBIAN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: On 6 Oct 2005, at 11:39, [EMAIL PROTECTED] wrote: The whole error message is (after entering the make - command) : --- /usr/bin/python /Zope-2.7.5-final/setup.py\ build --build-base=/Zope-2.7.5-final/build-base/python-2.3 -- build-lib=/Zope-2.7.5-finale/build-base/python-2.3/build-lib -- build-scripts=/Zope-2.7.5-finale/build-base/python-2.3/build- scripts --build-temp=/Zope-2.7.5-final/build-base/python-2.3/ build-temp running build running build_py running build_ext building 'ExtensionClass' extensions gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict- prototypes -fPIC -I/Zope-2.7.5-final/lib/Components/ExtensionClass/ src -I/usr/include/python2.3 -c ../Components/ExtensionClass/src/ ExtensionClass.c -o /Zope-2.7.5-final/build-base/python-2.3/build- temp/../Components/ExtensionClass/src/ExtensionClass.o virtual memory exhausted: Nicht genügend Hauptspeicher verfügbar error: command 'gcc' failed with exit status 1 make *** [build] Fehler 1 Have you actually *read* the output? It tells you, quite clearly, even in German, that you don't have enough memory on that machine. I used to see errors similar to that one (but not in German ;) when building the Zope extension modules on a machine with a flaky RAM chip. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRUgF+gerLs4ltQ4RAo/bAJ9rQvvRtF2pIwJyE6UBpkfTTS4yjgCfWx4Q tV+YXyNiIxY6vxx+81x7M8s= =inNh -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Presentations Available
Chris Withers wrote: Nick Davis wrote: there seem to still be migration problems and broken products which prevent people going to 2.1 yet. Yup. this strikes me as a bit unfair. to quote stefan holek from a post on plone-dev earlier today, most reported migration problems are due to: - Upgrading to Zope 2.8 without reading the release notes. - Third party products that are not yet fully compatible with Plone 2.1 and/or Zope 2.8. - Sites that have customized parts of Plone they shouldn't have touched in the first place. - Plone Team stupidity. thus, while it's true that we have made mistakes (and will continue to, no doubt), most of the problems are issues beyond our control. as for the broken products, that is a pandemic within the open source community, hardly unique to plone. how many zope products are out there of dubious quality, or that are poorly maintained? whenever you get a large community of developers, you get a mixed bag of talent and of follow-through. the suggestion you make in your talk of having a peer rating process for add-on products is a good one, certainly, and one that's been discussed before, but getting there takes some effort. My colleague has spent a long time trying to migrate a Product he wrote, from Archetypes 1.2.5 to 1.3.4, due to the fact he had to hack around problems with references. Archetypes is the chief sinner in all of this, I'm afraid. It's trying to solve a very difficult problem, and one which needs tackling with structure and upfront and intuitive design rather than the organic tacking on of new bitz whenever anyone felt like it that AT has suffered through... My fear is as more features are added, what you describe as a shaky stack of complex fragile components will get ever more dependencies and therefore ever more complex and fragile. Yup. yes, AT is in many ways a mess. but, as you say, it's tackling a very difficult problem, and, like most attempts at tackling difficult problems, the first iterations were somewhat less than perfect. the same can be said for zope itself... there's a reason z3 was a complete rewrite. AT's problems are entirely recognized by those of us who use it heavily, and i can assure you that the AT developer pool has no intention of continuing to pile more cruft on top of a shaky stack. instead, we're looking at how we can break the framework apart into components that can all be glued together in a nice z3 fashion. there are a great many tools available to us now that were not available when AT was originally developed (adapters, events, views, etc.), and we have every intention of making use of them to improve the stack (by making it leaner and more efficient, NOT by adding features willy-nilly!). ideally, you'll be able to pick and choose from the various AT features, using adapters to glue the functionality you need (and only what you need) into your own products. the first iterations of this will probably also have some warts. but please don't assume that plone/AT developers don't see the same problems that you see, and that they aren't willing and able to learn from their mistakes. -r ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Packaging a zope application
Hello All, I have a zope application which operates on data in an external relational database (Firebird), as well as containing lots of folders, dtml docs, scripts, zsql methods etc within the zope db I would like to get suggestions on the best way to package the whole application so that it is easy to set up from scratch. Currently there is a three step process: 1. install correct version of zope 2. unzip a zip file which I maintain that contains all the added libraries, products, .zexp file, and external methods into their correct paths in the zope root folder on the filesystem, then restart zope 3. Log into zope as admin and import the .zexp file into the zope root folder in the zope db Any suggestions of easier / better ways to do this would be much appreciated. Regards, Josh ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope Digest, Vol 17, Issue 5
Hi, I´m new about Zope, I would like to know if does anybody can help me in develop a product zope, my idea are: make an engine search (like google), or make a translator for example translate a word to english-spanish or spanish-english, or make a personal agenda in zope, all should be products, so I would like to know if this is possible to develop in Zope this kind of ideas? or Can somebody help me in develop x product. Thanks. Regards. Diana Quoting [EMAIL PROTECTED]: Send Zope mailing list submissions to zope@zope.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.zope.org/mailman/listinfo/zope or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Zope digest... Today's Topics: 1. Re: Testing products: Testing all in one batch (Lennart Regebro) 2. Re: ZOPE and DEBIAN INSTALLTION (Andreas Pakulat) 3. Zope Scalability (Tom Wilde) 4. Re: Zope Scalability (Andreas Jung) 5. Re: Re: ZWiki RecentChanges as RSS feed (Peter Bengtsson) 6. MailingLogger 2.4.1 and 2.5.0 Released! (Chris Withers) 7. Re: Re: ZWiki RecentChanges as RSS feed (Simon Michael) 8. Re: Problem with hasattr() and Zope 2.8.1 (Doyon, Jean-Francois) 9. Re: Zope Scalability (Jens Vagelpohl) 10. Re: Re: Problem with hasattr() and Zope 2.8.1 (Paul Winkler) 11. Re: Re: Problem with hasattr() and Zope 2.8.1 (Paul Winkler) 12. RE: Zope Scalability (Matthew X. Economou) 13. Re: Zope Scalability (Jens Vagelpohl) 14. Re: Zope Scalability (Tim Peters) 15. Re: Zope Scalability (Andreas Jung) 16. Re: Zope Scalability (Jens Vagelpohl) 17. RE: Re: Problem with hasattr() and Zope 2.8.1 (Doyon, Jean-Francois) 18. Re: Zope Scalability (Tim Peters) 19. Re: need help python-zope (Jonathan Cyr) 20. Re: Re: DTML-tree Custom sort (J Cameron Cooper) 21. New mailinglist for Zope 3 translators (Philipp von Weitershausen) 22. Re: Mysql 5? Just curious. (Chris Withers) 23. Re: INSTALLING gcc (and ZOPE) on DEBIAN ([EMAIL PROTECTED]) 24. Re: Re: INSTALLING gcc (and ZOPE) on DEBIAN (Jens Vagelpohl) 25. Re: ZOPE and DEBIAN INSTALLTION (Jonathan) 26. Re: Zope Scalability (Lennart Regebro) 27. Re: Mysql 5? Just curious. (Tino Wildenhain) 28. Re: Testing products: Testing all in one batch (Chris Withers) 29. Re: Re: Presentations Available (Chris Withers) 30. How to prevent web access to specific folder ? (Vladimir Petrovic) -- Message: 1 Date: Wed, 5 Oct 2005 17:56:28 +0200 From: Lennart Regebro [EMAIL PROTECTED] Subject: Re: [Zope] Testing products: Testing all in one batch To: Jens Vagelpohl [EMAIL PROTECTED] Cc: Zope ML zope@zope.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 On 10/5/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: This is correct, but you're just papering over a deeper problem, namely bad cleanup in some unit tests. Sure, but that's how reality looks. It's unfortunate, but there ya go. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ -- Message: 2 Date: Wed, 5 Oct 2005 18:04:43 +0200 From: Andreas Pakulat [EMAIL PROTECTED] Subject: Re: [Zope] ZOPE and DEBIAN INSTALLTION To: zope@zope.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii On 05.10.05 17:09:45, [EMAIL PROTECTED] wrote: Hello, I tried to install ZOPE from sources via configure - make - make instance but unfortunately I always get the following error message when typing in the make command. command 'gcc' failed with exit status 1 -basherror:: command not found Could you please post the whole output that make produces? I just tested this on my box with zope-2.7.7 and it works. Do you have python-dev installed? Andreas -- So you're back... about time... -- Message: 3 Date: Wed, 05 Oct 2005 17:37:08 +0100 From: Tom Wilde [EMAIL PROTECTED] Subject: [Zope] Zope Scalability To: zope@zope.org Cc: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi folks, I've been using Zope for a while now and found it to be an excellent solution however I've got a few enterprise questions about the scalability of Zope that just need to be answered. [ nb: I'm using V2.72 at the moment, not having moved over to V3 ] ZODB size What is the maximum size of this file and/or maximum object ID? = just how many objects can the zodb hold? millions? tens of millions..?? billions...??? I have a feeling we'll run out of ram long before actually hitting the limit but it'd be nice to know the theoretical top limit. ExtFile Managed to serve 500,000 files through extfile - anybody come across an upper limit here? Planning to serve larger
[Zope-DB] Which objects can be stored in Data.fs
Hi After a successful Database packing (thanks to Dieter!), I compared the old and new sizes of my databases. From 26 GB, it was 320 Mb after packing. I thought there was too much difference between both. I watched closely at the progression of my new database, and realised it had gained 100 MB in just a day ! So I went to the undo part of the ZMI, and I saw that zope stored in the database every, EVERY transaction, that means even the simple fact of VIEWING a page. I began to understand why it increased so dramatically. So my questions are: 1) is it normal ? 2) is it possible to tell zope NOT to store some things in the database (for instance in zope.conf-I've looked but not too closely and found nothing) PS : I use zope 2.7.2 Thanks a lot ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Which objects can be stored in Data.fs
On 6 Oct 2005, at 14:00, [EMAIL PROTECTED] wrote: So I went to the undo part of the ZMI, and I saw that zope stored in the database every, EVERY transaction, that means even the simple fact of VIEWING a page. I began to understand why it increased so dramatically. So my questions are: 1) is it normal ? 2) is it possible to tell zope NOT to store some things in the database (for instance in zope.conf-I've looked but not too closely and found nothing) 1) It is not normal and usually caused by badly written software that you run on top of Zope. 2) No. jens ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
Re: [Zope-DB] Which objects can be stored in Data.fs
[EMAIL PROTECTED] After a successful Database packing (thanks to Dieter!), I compared the old and new sizes of my databases. From 26 GB, it was 320 Mb after packing. I thought there was too much difference between both. I watched closely at the progression of my new database, and realised it had gained 100 MB in just a day ! So I went to the undo part of the ZMI, and I saw that zope stored in the database every, EVERY transaction, that means even the simple fact of VIEWING a page. A transaction adds info to the database if and only if a persistent object was modified during the transaction -- and it's the _purpose_ of a database to keep track of changes to persistent objects, so that's necessary. Viewing a page alone should not be enough to modify the state of any persistent object. More must be going on than you currently know about. You can use fsdump.py to find out which objects are changing: http://zope.org/Wikis/ZODB/FileStorageBackup I began to understand why it increased so dramatically. So my questions are: 1) is it normal ? If and only if you're running applications that do excessive modification of persistent objects ;-) 2) is it possible to tell zope NOT to store some things in the database No, and it doesn't make sense (as above, it's the database's purpose to keep track of changes; if too many changes are happening, the cure is to find the software responsible for making those changes, and alter it to stop making so many changes). ... PS : I use zope 2.7.2 ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db
[Zope-DB] Re: Which objects can be stored in Data.fs
2) is it possible to tell zope NOT to store some things in the database (for instance in zope.conf-I've looked but not too closely and found nothing) Why don't you run a cron job that packs the database, let's say each month? You could also do a backup before packing; just in case you want to undo something later. Something that would be nice, would be to be able to store transactions in a separate file before packing, but I don't think it is posible in Zope. You may have to write something to do this. Regards, Josef ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db