Re: [Zope-dev] [Fwd: [Squishdot] global name 'MessageDialog' is not defined]
On 25 Oct 2005, at 07:19, Chris Withers wrote: Hi All, Has MessageDialog gone away or has it just moved? cheers, Chris grep is your friend? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Re: Gadfly (was: Collector #556: sqlvar now returns 'null' rather than 'None'.)
On 10 Oct 2005, at 08:58, Chris Withers wrote: Andreas Jung wrote: Argh...there is also a gadfly package coming from Zope 3. So when we remove it from the Zope 2 core we get it back with Zope 3 :-) Well, having a lightweight semi-functional rdb engine in the distro has always seemed handy for me, mainly for testing rdb-related components with the certainty that the rdb engine you're testing with will always be there... Maybe we should move it to the testing package? You're just moving the problem around with that. What's the point? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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 trunk OFS tests failing
Both those tests point to a wrong user running them, most likely due to some tests switching users and then not cleaning up properly. jens On 4 Oct 2005, at 11:38, Florent Guillaume wrote: The OFS.testObjectManager tests are failing when run in isolation on the Zope 2 trunk (also on the 2.8 branch). Any idea? I'll look at it anyway, but if someone's seen this already... bin/zopectl test -v --libdir lib/python --dir lib/python/OFS testObjectManager EF. == ERROR: test_delObject_exception_debug_manager (OFS.tests.testObjectManager.ObjectManagerTests) -- Traceback (most recent call last): File /Users/fguillaume/zope/zope2/lib/python/OFS/tests/ testObjectManager.py, line 290, in test_delObject_exception_debug_manager om._delObject(ob.getId()) File /Users/fguillaume/zope/zope2/lib/python/OFS/ ObjectManager.py, line 350, in _delObject if not getSecurityManager().getUser().has_role('Manager'): AttributeError: 'NoneType' object has no attribute 'has_role' == FAIL: test_setObject_set_owner_with_emergency_user (OFS.tests.testObjectManager.ObjectManagerTests) -- Traceback (most recent call last): File /Users/fguillaume/zope/zope2/lib/python/OFS/tests/ testObjectManager.py, line 104, in test_setObject_set_owner_with_emergency_user , om._setObject, 'should_fail', si ) File /usr/local/lib/python2.3/unittest.py, line 295, in failUnlessRaises raise self.failureException, excName AssertionError: EmergencyUserCannotOwn -- Ran 19 tests in 0.077s Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope-Dev maillist - Zope-Dev@zope.org 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 - Zope-Dev@zope.org 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] Re: Strange security issue with Zope 2.8.1
My understanding (and the way we use it when monkey patching for instance) is that whenevery you apply new security to a class, you create a new ClassSecurityInfo on it. It only defines new stuff to do. The real synthesized security is still stored in __ac_permissions__. Yes, your understanding matches what I know now. Part of my earlier diagnosis was wrong, the behavior of class_init has not changed between Zope 2.7 and Zope 2.8, just the behavior of Archetypes. What Archetypes seems to do is to generate a new ClassSecurityInfo during the call to registerType, which does not contain added information, but information about every single method on the class. It does try to look at the already existing __ac_permissions__ to make sure already set permissions don't get stomped, but when a name is declared private or public it will not be part of __ac_permissions__ and Archetypes will gladly stomp all over it. I have applied a patch locally (and submitted it on the Archetypes bug tracker on sf.net) that seems to solve the problem. I honestly don't know if there are other dangerous consequences because the way Archetypes works is just really dark magic which I don't want to get into too far. Basically, at the point where it tries to find already- set permissions, I am also trying to find a name method__roles__ to determine if something has already been declared private or public, and then re-declare it private or public on the ClassSecurityInfo object that Archetypes creates: Index: Archetypes/ClassGen.py === --- Archetypes/ClassGen.py (revision 6167) +++ Archetypes/ClassGen.py (working copy) @@ -103,6 +103,8 @@ perm = _modes[mode]['security'] perm = getattr(field, perm, None) +method__roles__ = getattr(klass, '%s__roles__' % methodName, 0) + # Check copied from SecurityInfo to avoid stomping over # existing permissions. if security.names.get(methodName, perm) != perm: @@ -112,6 +114,10 @@ 'permission declared is the correct one and ' 'has preference over the permission declared ' 'on the field.' % methodName) +elif method__roles__ is None: +security.declarePublic(methodName) +elif method__roles__ == (): +security.declarePrivate(methodName) else: security.declareProtected(perm, methodName) jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Strange security issue with Zope 2.8.1
I have found a strange security issue with Zope 2.8.1 that seems to stem from code not doing what it was supposed to do in Zope 2.7.x, but which works in 2.8.1 and then causes other side effects in code that relied on the broken behavior. Symptom: In Zope 2.8.1 it is *impossible* to override a ClassSecurityInfo security declaration in an Archetypes-derived content item. (I have a small set of unit tests that proves the behavior under Zope 2.8.1 if anyone is interested) A little background: When you register an Archetypes-derived content type, it will do all the generated accessor/setter method magic and then call InitializeClass a second time. The code in lib/python/App/class_init.py has changed between Zope 2.7.x and Zope 2.8 in order to support new-style classes. To be more precise, instead of manipulating the class __dict__ directly we now use setattr/delattr/etc. This change seems to have un-broken code which did not do what the code comments suggest. Namely, when a class is sent through class_init.default_class_init__ (better known as Globals.InitializeClass) the class __dict__ is searched to find objects that look like ClassSecurityInfo instances in order to read and apply the security settings. After finding the ClassSecurityInfo instance, it is force-deleted from the object (the comments say, out of paranoia). However, somehow this did not work correctly in Zope 2.7.x, where the deletion call looked like... del dict[key] (dict being the class __dict__, and key being the name of the ClassSecurityInfo instance). Under Zope 2.8, it looks like this: delattr(self, key) (self being the class object). Under Zope 2.7, the security object *would still be there* when hitting InitializeClass for the second time via Archetypes' registerType, which in turn meant Archetypes would not instantiate its own ClassSecurityInfo instance and stuff it with the declarations from whatever Archetypes-derived base class you used. In Zope 2.8, the deletion actually works as intended - but due to that fact Archetypes will instantiate its own ClassSecurityInfo and populate it with the declarations from the base class that I am trying to override. So the overridden settings are all overwritten again by the base class declaration. My question is, what is the reasoning behind deleting the ClassSecurityInfo object from the class after it has been read the first time? How can this be implemented in a sane way so that custom security declarations can be retained? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: ZServer response RFC compliance improvement
On 22 Aug 2005, at 21:55, Michael Dunstan wrote: On 8/22/05, Tres Seaver [EMAIL PROTECTED] wrote: Are we sure that we won't be breaking the rather large possible set of installed servers running behind Apache 1.3.x with the bug for which adding the content length was a workaround? I understand that this bug was resolved in Apache 1.3.27 [1]. Which is a few years old now. And outdated by several security releases since then. From my reading of http://www.apacheweek.com/issues/02-10-04 this issue only existed in 1.3.26: In 1.3.26, a null or all-blank Content-Length triggers an error although previous versions would silently ignore it and assume 0 length. 1.3.27 restores this previous behaviour. The other content-length-related issue actually seems to imply it is better to leave the header out of 304 responses, because Apache would mis-use the header and apply its value to cached content: Some fixes to mod_proxy. The cache was incorrectly updating the Content-Length from 304 responses when doing validation. Also fix a problem where headers from other modules were added to the response headers when this was done in the core already. Also OFS.Image been patched as of Zope 2.7.1 [2] in such a way that it would have already tripped a combination of old-ish Apache and new-ish Zope. Though ZServer was still throwing in a Content-Length: 0. (Which I read as sufficient to provoke the bug in Apache 1.3.27.) Yes, both issues mentioned above actually, from the way I read that text. This setting could be manipulated via a zope.conf directive, but from the evidence it seems the maintenance/administrative annoyance of adding yet another knob for something that seems to carry no risk might not be worth it. I'd still plead for including it the way it is. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Python 2.4 with zope 2.7.6, on Windows
On 22 Aug 2005, at 07:53, Aruna Kathiria wrote: Hello Everyone: Is it possible to use Python 2.4 with Zope 2.7.6 on windows plateform? I come to know how to use them on UNIX from /doc/INSTALL.txt but don't know how to install and use Python 2.4 and Zope 2.7.6 on windows platform. By default Zope 2.7.6 is bundled with Python 2.3.5. For some reasons I want to use Python 2.4 with Zope 2.7.6 on Windows. This is a FAQ: No, it is not recommended. Stick with the version of Python that is specified in the docs. jens ___ 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] ZServer response RFC compliance improvement
Hi everyone, I'd like to get the zserver-content-length.patch createed by dunny in this collector issue: http://www.zope.org/Collectors/Zope/1866/collector_issue_contents merged into the Zope 2.7/2.8 branches and the trunk. It ensures that certain classes of responses (e.g. 304) correctly leave out the content-length header. Can anyone seee a valid reason for not merging it in? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Username/userid separation
On 4 Aug 2005, at 01:01, Leonardo Rochael Almeida wrote: Hi, I've started the lra-userid_username_separation-branch (from Zope-2_8-branch to start from a stable point) in order to implement proper userid/username separation in Zope. Chris McDonough did most of that for Zope 2.7 already a long long time ago. There might be cleanups needed here and there, but for all practical purposes the separation exists and works. The standard user folder implementation doesn't support it AFAIK. Where specifically do you see it not work? I've been using it for the LDAPUserFolder for ages where you can specify different attributes for the ID and the login, and change the login value at will. And, like Tino mentioned, PAS uses it as well. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Skipping beta releases?
On 3 Jul 2005, at 15:16, Chris McDonough wrote: On Sun, 2005-07-03 at 09:13 +0200, Andreas Jung wrote: Alpha and beta releases are fine for major releases. Beta releases for a minor release can be made if there are some changes or fixes that must be tested by people. Any comments? +1 It's a sad state of affairs that the wailing and gnashing of teeth only ever happens after a third-dot final release and few people bother with the betas. In the light of the effort needed to produce a Zope beta I support the decision. I personally would still continue doing betas for things like CMF, but then again the work needed to put together a release is a lot less. And I still live under the illusion that those betas see a modicum of testing ;) jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Extending Zope's ZConfig Schema in a Product?
On 1 Jul 2005, at 04:58, Fred Drake wrote: Since using an additional configuration file is possible (and quite easy in Zope 2, since the location of the instance is so easy to discern, I'm not convinced it's actually important to support embedding the configuration for 3rd-party components into zope.conf. If you want something you can use now, using a product-specific configuration file, with an appropriate schema, will do quite well. It also doesn't require hacking (or monkey-patching) Zope or ZConfig, so it would be easy to deploy in a variety of situations. That just has the disadvantage that you're increasing the number of configuration files to maintain in an instance. If it's imported and used in zope.conf at leaast there's just one file to deal with... jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] 2.9 goals
On 1 Jul 2005, at 17:15, Florent Guillaume wrote: Here's something else that would be nice: PAS. Although it hasn't been tested much, so we should include it as early as possible in the 2.9 cycle (i.e., why not now ? :) Maybe not right at this moment... but I would like to see that, too. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] SAP SSO for Zope/CookieCrumbler/LDAPUserFolder
On 27 Jun 2005, at 22:27, Dirk Datzert wrote: Hi, this is my solution for SSO for Zope by accepting SAP-SSO-Ticket. Apart from the fact that directly patching an existing product is never a good idea (subclass and override as needed is a much better solution) the creation of external HTTP requests within the product code is dangerous. Every time the request hangs (unforeseen network hiccup, server unavailable, etc, simple everyday stuff that is beyond anyone's control) you will have a hung thread. Four of them and you have a hung Zope. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: SAP SSO feature for Zope/LDAPUserFolder
On 26 Jun 2005, at 14:57, Dirk Datzert wrote: One question about PAS/LDAPMultiPlugin and LDAPUserFolder/ LDAPUserSatellite: We work a lot with LDAPUserSatellite in different Folders, which will change local roles of users. Is this also possible with PAS/LDAPMultiPlugin ? No it is not. It requires cooperation from the user class emitted by the user folder. PAS uses its own user class which does not have the needed hooks. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] SAP SSO feature for Zope/LDAPUserFolder
I'm looking now for the best way to integrate/rewrite CookieCrumbler/LDAPUserFolder to take the validated Login-Name and read the roles of the user out of the LDAP-directory. What *specifically* does not work? Have you tried it and developed a list of features that are missing for it to work? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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.9 goals
I'd be happy if this was *all* that changed in Zope 2.9. This way we can release Zope 2.9 in the forseeable future, like, late this year. If Zope 3 is on track there will already be a Zope 3.2 release imminent by then, but I'm okay with Zope 2.x running a version behind in the name of getting things out of the door to the developers. +10 on a less ambitious change set than what we had for 2.8... Concentration on consolidation and bug fixing in the massive 2.8 change set would be a very worthy goal for 2.9. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: [Proposal] Drop Mount.py from ZODB 3.5
On 4 Jun 2005, at 08:07, Balazs Ree wrote: Now I would like to pose a question to all of you. I am of course not worried if Mount.py is getting phased out completely, since I would be able to take over the code from it into my subclass. But according to my use case described above, am I on the right track with my implementation? Or (supposing that Mount.py disappears) what would be the canonical way of achieving what I want from within Zope? For a migration situation like yours I would highly suggest you use a simple script that acts as a ZEO client to two ZEO servers, one holding the old data and one serving a fresh storage that becomes the migration target. The old and new product directories must be stitched into the PYTHONPATH so both codebases can be located. This isn't all that hard. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: mechanism for license boilerplate?
On May 30, 2005, at 20:39, Chad Whitacre wrote: Thanks, that's what I figured. ;-) IIRC the last time I did something like that (moving CMF to ZPL 2.1) I wrote a python script to replace the text appropriately... sed and awk are also good tools for that when you're good at shell scripting. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: Refresh and dumping the cache
On May 13, 2005, at 10:30, Andreas Jung wrote: --On Freitag, 13. Mai 2005 18:02 Uhr +1000 Dylan Jay [EMAIL PROTECTED] wrote: I guess its not critical but its unhelpful due to a) Its nicer to users to upgrade products via refresh rather to bounce the server Refresh is a tool thought for development only - but not for upgrading products. Refresh is not a solution for all and everything. So your approach is wrong :-) +1 Refresh works by doing some nasty magic that you really don't want to know about and which has its own problems. Do not take whatever behavior you see with it as some kind of normal production site behavior, that's useless. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: [Interested?] New use for Zope+CMF+Archetypes -- startup time improvements
On May 14, 2005, at 02:10, Simon Michael wrote: Go Dieter! Hey Simon, Dieter isn't looking for a fan club, he is looking for champions in the right places to integrate his work so it benefits a wider audience! ;) jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Online test tool
On May 10, 2005, at 12:06, Zope User wrote: Is there a zope product that will allow me to create an online test tool? Thanks! RT Hi Zope User, online test tool is a very meaningless description. I suggest you describe in more detail what you're looking for. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Windows Binaries for 2.8b1
On Apr 26, 2005, at 2:22, Florent Guillaume wrote: Tim Peters [EMAIL PROTECTED] wrote: Technical details of permanent failure: PERM_FAILURE: SMTP Error (state 9): 553 5.3.0 Spam blocked see: http://spamcop.net/bl.shtml?64.233.184.203 Yeah this goes to show that you have to be extremely careful in choosing your RBL sources... And that spamcop is definitely not a good one. Not true. I've been using SpamCop for years now and had exactly four addresses that required me to create exceptions for them because their SMTP server got listed. I see what gets rejected because my Postfix sends me email about it, so I retain full control over the situation. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: 2.8.0b1 issues with plone 2.0.5
On Apr 25, 2005, at 20:46, Christian Heimes wrote: Tim Hicks wrote: Apologies if this is already known about... I just installed 2.8.0b1 (using python 2.3.5), fired it up, then tried to add a 'plone site' (2.0.5). The plone site actually did get added, but here's what I got as well: For the notes: Latest versions of Plone 2.1 and CMF 1.4 are mostly working with Zope 2.8. There are some issues due some changes in the ZCatalog api. Christian, could you comment on this issue and let me know what the status is: http://www.zope.org/Collectors/CMF/321 Thanks! jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Re: [Zope-Coders] BTreeFolder2 for Zope 2.8?
On Apr 23, 2005, at 14:30, Andreas Jung wrote: Any objections to move BTreeFolder2 into the Zope core for Zope 2.8? BTF is widely used in the Zope, CMF Plone world and it would not hurt to ship it with Zope. +1 jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Turning off product installation in zope.conf on all zeo clients?
On Apr 20, 2005, at 15:50, Chris Withers wrote: Jens Vagelpohl wrote: From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already installed (e.g. by a client who is allowed to do so) then you can instantiate instances of your new product. So if not clients do the installation, I would not be able to instantiate objects? Yes, and the new product will not show up under Control_Panel/Products, that's my understanding. Should be easy to test, though. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Turning off product installation in zope.conf on all zeo clients?
On Apr 18, 2005, at 16:25, Chris Withers wrote: Jens Vagelpohl wrote: What happens if you turn this off in all zeo clients? New products don't get installed..? Okay, but what does installed mean? Would it actually stop new instances of object classes provided by the product being instantiated, or would it just prevent help pages and other conflict-error-on-startup-y things from happening? From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already installed (e.g. by a client who is allowed to do so) then you can instantiate instances of your new product. The setting does not prevent that. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] CMF TypesTool breaks id
On Apr 15, 2005, at 18:38, Alan Milligan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm astounded that nobody has come across this before, but the CMFCore.TypesTool.constructContent() function is supposed to return the object id in the event that no RESPONSE is passed in - at least according to CMFPlone.PloneFolder.invokeFactory(). Presently, it in fact returns nothing - breaking this implicit contract. Huh? Since when does a software package that builds on top of a core framework define contracts to be fulfilled by the core framework? Excuse me while I chuckle. First of all, the issue really belongs on [EMAIL PROTECTED] That's where CMF issues are discussed. Second of all, if you had taken a look at the current CMF-1_5-branch and HEAD in CVS you would have noticed it's already in there. After someone filed a collector issue a while ago and asked for it. What happens on the unsupported and obsolete CMF-1_4-branch, to which Plone still clings, is at this point up to the hardy souls from the Plone community who have stepped forward to maintain it. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Turning off product installation in zope.conf on all zeo clients?
On Apr 8, 2005, at 11:00, Chris Withers wrote: Hi, There's an option to turn off prudct installation in zope.conf. What happens if you turn this off in all zeo clients? New products don't get installed..? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] SiteRoot and VHM
On Apr 7, 2005, at 1:45, Florent Guillaume wrote: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's a virtual host monster, it should take precedence (and deactivates) any further SiteRoot. I think it's a good idea. Wouldn't that fall under Unexpected new behavior? VHMs have always been inert objects that don't do anything unless you specifically use the Mappings tab or you hand them magic URL path elements. That was their beauty as opposed to the dangerous SiteRoot. Now you propose adding magic. Magic is BAD, IMHO. -0 on the trunk, but -1 for any maintenance branch. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] I want Zope 2.9 to use Zope 3's security architecture.
On Apr 7, 2005, at 6:50, Andreas Jung wrote: Even small modifications to the security machinery tend to end up in lots of problems. The latest prominent example: the changes introduced with Zope 2.7.3: It took two releases (until 2.7.5) and more than 6 months (at least in my memory) before everything worked again as it should... I don't know exactly to which changes do you refer. Either little people that this problem or people did not use these releases or people did not test enough or people did not contribute enough to fix this bug in time *wink*. This is probably in reference to some overeager security checks that caused login boxes in unexpected places. Jim and Tres fixed that for 2.7.5. I thought that problem was older than 2.7.3, though. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] SiteRoot and VHM
On Apr 7, 2005, at 9:08, Tino Wildenhain wrote: Am Donnerstag, den 07.04.2005, 01:45 +0200 schrieb Florent Guillaume: After spending an hour helping someone debug a site that had an hidden SiteRoot somewhere that prevented a virtual host monster from working, it was suggested to me that if there's a virtual host monster, it should take precedence (and deactivates) any further SiteRoot. I think it's a good idea. Better yet, it should just display a warning (and change its icon/title or so) to display the problem and let the user decide the action to take. That's an excellent idea, and one that I would +1 on all branches ;) jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Can't import objects in Zope 2.8a2
On Apr 6, 2005, at 14:11, Santi Camps wrote: Hi all, I'm just trying recent Zope 2.8 a2 and I'm not able to import any .zexp file. At the begin I thought that it could be caused by the zexp I was trying to import, but default Examples.zexp also cause the same error. I've tried with and without ZEO, and with and without debug mode, always the same result.I'm doing something wrong or this could be a bug ? LOL looks like someone left a pdb.set_trace() in the ZODB.Connection.modifiedInVersion method... jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Can't import objects in Zope 2.8a2
On Apr 6, 2005, at 15:00, Tim Peters wrote: LOL looks like someone left a pdb.set_trace() in the ZODB.Connection.modifiedInVersion method... Yup, that got checked in by mistake during the recent ZODB sprint at PyCon. It's repaired on Zope trunk / ZODB 3.4a2, so try the trunk instead. Another thing it proves is that Zope's test suite is somewhat lacking wink. So I was clicking through svn.zope.org trying to find the ZODB code in question but couldn't, simply because I did not know what tag/branch the version stitched into Zope 2.8a2 is. How can you tell from looking at the Zope code on http://svn.zope.org which ZODB branch/tag is stitched in during checkout? jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Can't import objects in Zope 2.8a2
On Apr 6, 2005, at 17:50, Tim Peters wrote: [Jens Vagelpohl] So I was clicking through svn.zope.org trying to find the ZODB code in question but couldn't, simply because I did not know what tag/branch the version stitched into Zope 2.8a2 is. How can you tell from looking at the Zope code on http://svn.zope.org which ZODB branch/tag is stitched in during checkout? Never tried before, and don't think you can. From the root of a Zope checkout, you can do: svn proplist -v utilities lib/python Well, I was trying to *avoid* making a checkout to see that detail, that's all... jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] ZPT: defer expression fix
On Mar 28, 2005, at 21:03, Christian Heimes wrote: PageTemplates have an undocumented features called defer:. It's a kind of lazy initialization of variables. I've fixed to issues in my tiran-zpt-pydefer branch (svn): * DeferWrappers weren't working inside a python expression because PythonExpr didn't know about them * DeferWrapper didn't cache the result of the expression like ordinary vars do. I would like to merge my branch into 2.7 and 2.8 if I get an ok. +1 I'm assuming the unit tests still run successfully and you added unit tests for your changes. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: Zope on Windows - REQUEST for volunteers
* I realize Zope 2.7.x is clearly a maintenance branch (from Zope's POV), but also a trunk branch from the POV of Plone (and therefore from mine wink) At this point we all know that Zope 2.8 will bring *a lot of changes*. There might be quite a few people (including the whole Plone community) who will wait out the first few point releases of 2.8 and stick with 2.7. I currently count myself in that group. It sounds reasonable to me to be a tad less stringent on the feature vs bug fix on the Zope-2_7-branch at this point. I have to admit I really don't care about Windows myself, but it's sad that good and reasonable fixes like Mark's Windows patches are languishing. To me they would be good candidates not just for CVS HEAD but also the Zope-2_7-branch. Just my 2 cents from my sysadmin perspective - I'd be hopping mad if I had to administer a system where these fundamental issues that still exist on the Windows port were not solved. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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: [Zope3-dev] Clarification re: Zope X3.1, 2.8
- It *will be* the responsibility of the Zope 2 devs to make sure Z2 works with the version of Z3 bundled at the time. snip It'd be great if active Z3 developers could actually help make new releases of Z2 once Five is integrated but the above makes it sound like a we'll throw it over the wall and you make it work sort of thing. If it's the latter, maybe as devil's advocate, I need to ask what the point is here? It came across the same way for me. Not only we Z3 people will go along on our merry way, let the Z2 people deal with the problems, it's also about bundling a version of Z3 that is apparently not within the Z3 developers' path anymore (at least from the description). I didn't answer until I read Chris' post because I work on CMF when I work on Zope, so I don't do much as far as checkins to Zope goes. He says what I only thought, and I had the same thing in the back of my mind: If this becomes an obstacle I just won't touch it anymore. Yes, I will get into Z3 at some point myself, but preferably at a time of my own choosing... It appears there is an assumption that merging Z2 and Z3 code within Z2 itself is an unmitigated good thing, but IMHO, each is complicated enough in their own right that I'd personally prefer to be dealing with one or the other at any given time and not both. This isn't exactly idle whining either, I need to do this when I maintain Z4I code, and it's definitely not a walk in the park; it's moderately difficult to do and also difficult find people who have the skills to help too. Right on. Now, I have no idea how similar or different the Z3-Z2 marriage in 2.8 is to that unholy alliance that is used for Z4I, but working on it for Z4I is an exercise in frustration every time I had to do it. jens ___ Zope-Dev maillist - Zope-Dev@zope.org 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] encrypted _ac_name _ac_password
The easiest way to solve that is to let the cookie be only a random ticked. That way the userame and password is only sent when actually logging in. This gives as much security as your solution, but it's easier to implement. PluggableUserFolder does, and I think PAS does it do (or at least it will do that soon). PAS can do it currently by e.g. combining a CookieAuthHelper with a SessionAuthHelper. The CookieAuthHelper only intercepts the initial login page and gets the credentials (it does not set a cookie), and only the SessionAuthHelper is called as a CredentialsUpdater - the credentials thus end up in the session and the standard sessioning cookie is the random ticket. jens --- Jens Vagelpohl [EMAIL PROTECTED] Software Engineer +49-(0)441-36 18 14 38 Zetwork GmbHhttp://www.zetwork.com/ ___ Zope-Dev maillist - Zope-Dev@zope.org 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] getUserById
On Dec 13, 2004, at 17:15, Florent Guillaume wrote: Can we have instead: def getUserById(self, id, default=_marker): Return the user corresponding to the given id. Raises a KeyError if the user does not exist and no default is provided. user = self.getUser(id) if user is not None: return user if default is not _marker: return default raise KeyError(id) What is the advantage of throwing a KeyError over simply returning None? I don't see the reason for getUser and getUserById behaving in different ways here. They should both behave similar. jens ___ 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 and Python 2.4
However, RedHat have now released Python 2.4 in the Fedora development stream and it will ship with FC4. Does ZC have an official position upon this yet? Speaking as Zope release manager but not as official of ZC: Python 2.3.4 will likely be the recommended Python version for Zope 2.7. I am personally running Zope 2.7.3 with Plone since some weeks under Python 2.4b1 but I am doing this at my own risk. Python 2.4 might be of interest for Zope 2.8. Going for Python 2.4 just because Fedora ships with it is not really an argument. Add to that the fact that it is *not advisable* most of the time to use the Python interpreter that comes with the system. The reasons have been laid out before, like the fact that the interpreter is most likely compiled with strange flags, and that updating a system-level Python with vendor-supplied packages can have bad consequences for your Zope install. The vendor-supplied Python is (probably) tested with vendor-supplied packages that use it, but certainly not with third party software such as Zope is in this case. jens ___ 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: Zope and Python 2.4
However, having to fork off the main Fedora branch in regard to Python dependencies (which directly affect Anaconda, up2date, GTK, and most of the desktop applets) has major implications for how we maintain our distro. As Andreas said, there is no forking involved. You should have a separate Python that's used by Zope only, and not by the other Python-based tools. It's like the old Zope binary releases - they all came with their own Python. jens ___ 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] Guidelines for using Speedpack with Zope products
Also if this is the wrong list for this topic please tell me which is the correct list. Since SpeedPack is a Plone-related add-on I would assume your question belongs on a Plone mailing list. See http://www.plone.org. jens ___ 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] RFC: Proposed backward-compatibility policy
On Oct 27, 2004, at 15:49, Jim Fulton wrote: Below is a proposed policy on backward compatibility for Zope. Zope Policy on Backward Compatibility = snip +1, even regardless of its actual content. Having a policy at all is a lot better than the I gotta ask X people policy that seemed to be in use so far. jens ___ 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] Referencing a python method from a product page template
On Oct 20, 2004, at 11:37, Coletti Massimo wrote: Solved ! There are some wrong info in Zope Developers Book. The solution is here: http://mail.zope.org/pipermail/zope/2004-May/thread.html#149569 I've corrected it in the 2.7 book: http://www.plope.com/Books/2_7Edition/AdvZPT.stx#3-95 jens --- Jens Vagelpohl [EMAIL PROTECTED] Software Engineer Zope - done medium rare Zetwork GmbHhttp://www.zetwork.com/ ___ 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] Python2.4 and Zope 2.7
On Oct 17, 2004, at 18:13, Matt Hamilton wrote: Hi All, I'm having some trouble getting python2.3.4 running on FreeBSD 5.3b7 on an AMD Opteron, so for kicks tried python2.4rc3. It managed to pass the recursion regex test in test_re.py that was causing python2.3.4 to barf, but in trying to start Zope with python2.4rc3 I get the error below. Does anyone here know if Zope 2.7.0 should work with python 2.4? AFAIK no one has tested it or made any claims it does. More interesting than testing 2.7.0 would be a *recent* 2.7 version (the latest 2.7.3 beta) and maybe 2.8 - unless you're looking for production-quality software. jens ___ 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] 2.7 branch: attribute permission problems
Tres is in Austria at the Plone conference. Don't expect any quick turnaround... jens On Sep 21, 2004, at 3:04, Richard Jones wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/09/2004, at 1:00 PM, Chris McDonough wrote: I'd just stick the code back in there for now and we'll see what Tres says. No word from Tres, 2.7 branch release coming up... Richard -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBT34orGisBEHG6TARAsnUAJ9AFw/zOZ5gpXJIKNR837OcGiv62ACfRzXU +4k+jkEV0WFzU7RuiMXnScE= =mH5+ -END PGP SIGNATURE- ___ 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 ) --- Jens Vagelpohl [EMAIL PROTECTED] Software Engineer Zope - done medium rare Zetwork GmbHhttp://www.zetwork.com/ ___ 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] Renabled ViewCVS at svn.zope.org
Loads nice and fast right now for me. But then again it's 2 AM EST... jens On Sep 9, 2004, at 23:59, Jim Fulton wrote: After updating all of the relevent libraries, I decided to try reenabling ViewCVS for a while to see if the behavior is any more stable. Jim ___ 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] New function for error log
That's an interesting question. What is the unit test policy if I change/improve a part of the Zope code that has no unit tests at all. Would I be expected to create unit tests for the whole thing all of a sudden? In another post Tres' likened doing so to supererogation (http://www.iep.utm.edu/s/superero.htm) which I think means to imply that doing so will get you points in programmer heaven (well, depending on your programmer dogma I suppose) but isn't strictly required. I try to create at least *one* unit test for something that isn't tested at all if I add a feature to it, testing my feature. ;-) At least then it gives people somewhere else to start. OK, I supererogated and checked in a few unit tests ;) jens ___ 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] New function for error log
On Aug 29, 2004, at 16:03, Christian Theune wrote: Am So, den 29.08.2004 schrieb Christian Theune um 15:37: Ack. Stuff is on it's way. Done. The error log improvement is there. Thanks for the quick support. You published your nagios scripts somewhere, right? I'm interested. jens ___ 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] New function for error log
Due to the fact that this is a feature and the code provides no unit test infrastructure (and I don't have the time to start doing that for the error log) I'd like to know what the general rule for Zope 2 is, If I want to make improvements to existing code that isn't covered by unit tests at all. That's an interesting question. What is the unit test policy if I change/improve a part of the Zope code that has no unit tests at all. Would I be expected to create unit tests for the whole thing all of a sudden? I'm interested in seeing this patch in the core myself. jens ___ 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: any limits on object number?
Even using BTreeFolder to store all objects I was getting 300s delay to show a single object (ok, it's an archetypes-based one, containing 50 fields, splitted into 7 schematas, with lots of fancy stuff...). So I made a directory hash structure based on UID from each object (an AT UID is md5, so we have a hex base). My own experience with BTreeFolder2 does not support your diagnosis. I do not believe BTreeFolder2 is the problem here. On a CMF-based CMS that I helped develop the largest BTreeFolder2-based containers held ca. 60,000 items at the top level, meaning we did not use a directory structure to restrict the number of items per folder. There was zero delay retrieving singe items and even stepping into the ZMI where it shows 1000 ids at a time was sub-2 second response time. jens ___ 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] any limits on object number?
When we tried to upload objects from wikipedia's sqldump of after about 40,000 objects in a folder the script went for a toss. roughly each time we ran the script the same problem. even to visit the folder of even 1000 objects through ZMI is a pain. I think that is where BTreeFolder2 will be very useful. Your observations make sense in the context of the standard Zope folder. BTreeFolder2 will help. I am assuming whatever script you use to populate the folder(s) commits the transaction ever N objects, right? I am also thinking to use a squid cache style of storing objects in zodb, where the objects go into many subfolders (i dont know what is this method called technically) with several sub folders with names alphabetized/numbered. this way i can store large number within zodb though not in the same folder/BTreefolder2. Should I use both methods? I would definitely use the subfolder method. Not related to Zope, but what about filesystems? there must be a limit on the number of files within one folder depending on which filesystem one uses. The ZODB, in case you use the standard FileStorage, is one monolithic file. So there is no large number of files on the server file system regardless of how many objects you store. For files on the file systems your choice of file system depends not just on the number of objects but also its size. To re-use your earlier example of Squid cache files, which are numerous and mostly small, ReiserFS is normally recommended. It deals much better with large quantities of files in one folder. jens ___ 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] Segfault and Deadlock
Am 2. Mai 2004 um 13:28 schrieb Dieter Maurer: Willi Langenberger wrote at 2004-5-2 17:10 +0200: ... The reason is the way python handles threads on some systems (RedHat-7.3, kernel 2.4.20, without NPTL). What is NPTL? The native posix thread library or something like that. It's a new threading implementation that was introduced with an update to RedHat9. Fedora Core hast it by default, as does RH Enterprise Server 3 I believe. jens smime.p7s Description: S/MIME cryptographic signature ___ 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] Site Error
On Apr 2, 2004, at 7:06, AP Meyer wrote: Is this a known bug? Working without automatic refresh is very unhandy ;-) thanks Andre Refresh is *not* a solution for everything because of the gyrations it has to go through to force the refreshing effect. Not everything will work with it, period. If you see weirdness then disable it and see if that helps. jens smime.p7s Description: S/MIME cryptographic signature ___ 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] Bug in ZTUtil.Batch solved
Please post this in the Collector at http://zope.org/Collectors/Zope jens On Mar 22, 2004, at 7:09, AP Meyer wrote: Hi Zopers It seems that there is a bug in ZTUtil.Batch: when the batch should be the length of the batch and there are exactly as many orphans as there would fit on one page the length of the batch becomes size instead of size+orphans. Here are the numbers: no of batchesstartendorphanlengthsequence_length 1 112 3 1212 1 110 3 1013 WRONG * 2 110 3 1014 * end and length should be 13 in this case, 3 items are omitted length=12 length=13 length=14 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 10 11 11 | second batch 12 12 | 13 | 14 | So, there is a jump on the edge where there should be one batch of the length sequence_length == length+orphans. At that point 3 (in the above case) items disappear. I have looked at the code in ZTUtils.Batch.py and found the following solution (line 109): 94 def opt(start,end,size,orphan,sequence): 95 if size 1: 96 if start 0 and end 0 and end = start: 97 size=end+1-start 98 else: size=7 99 100 if start 0: 101 102 try: sequence[start-1] 103 except IndexError: start=len(sequence) 104 105 if end 0: 106 if end start: end=start 107 else: 108 end=start+size-1 109 #try: sequence[end+orphan-1] 110 try: sequence[end+orphan] # replace above with this 111 except IndexError: end=len(sequence) 112 ... Can somebody confirm that this solution is correct and modify it in the CVS, please? NB This has been run in Zope 2.7 with Python 2.3.3. thanks Andre -- --- --- The disclaimer that applies to e-mail from TNO Physics and Electronics Laboratory can be found on: http://www.tno.nl/disclaimer/email.html --- --- ___ 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 ) smime.p7s Description: S/MIME cryptographic signature ___ 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] server for new protocol?
write server itself not very hard, i simply don't want patch ZServer/components.xml is there any way don't touch Zserver? probably not. jens smime.p7s Description: S/MIME cryptographic signature ___ 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] ESI support
Zope does not need ESI support - You can write ESI statements in your templates without specific support from Zope. jens On Jan 12, 2004, at 8:57, Bjorn Stabell wrote: Any news on Zope support for ESI? http://mail.zope.org/pipermail/zope-dev/2003-January/018619.html http://www1.cn.squid-cache.org/mail-archive/squid-dev/200208/0047.html From what little I can gather from the Squid mailing lists, it looks like ESI support is materializing in Squid. Bye, -- smime.p7s Description: S/MIME cryptographic signature ___ 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] ESI support
Zope does not need ESI support - You can write ESI statements in your templates without specific support from Zope. jens Does ZC use ESI in production? Maybe some experiences regarding caching? Not yet, no. We are waiting for more stable Squid releases before using Squid3. We're also working with Robert Collins to hopefully jumpstart the release schedule. jens smime.p7s Description: S/MIME cryptographic signature ___ 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] ESI support
Dunno about any such plans right now, but that doesn't mean it won't happen, especially when it has become stable in Squid itself. jens On Jan 12, 2004, at 20:08, Bjorn Stabell wrote: Jens: Zope does not need ESI support - You can write ESI statements in your templates without specific support from Zope. Yes, but I think they were planning to make it easier from DTML/ZPT, a la JSP's ESI library. smime.p7s Description: S/MIME cryptographic signature ___ 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] SMPT Authorization support
But I realized that what you actually might want is to have different login and password for each user, that is a possibility to pass username + password to send(). And maybe you want a setting to allow this or not. Or is this overkill? What do you think? IMHO, YAGNI. Besides, a lot of userfolders have encrypted passwords, including Zope's default. Correct, complete overkill. jens smime.p7s Description: S/MIME cryptographic signature ___ 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.7.0 b3 regressions
If you need anything CMF specific use the portal_url tool. I do not see why a basic infrastructure method like absolute_url() should know anything about portals at all. I have to admit I did not look deeply, but Stefan's notion that absolute_url is a basic infrastructure method that should not have to know about portals is correct. The portal_url tool was specifically created to provide you with paths and URLs that are relevant to the CMF site - if there are any problems the URLTool needs to be extended or fixed to address that. jens smime.p7s Description: S/MIME cryptographic signature ___ 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] CVS Server unresponsive?
cvs.zope.org seems to have locked up, we're looking into it jens On Oct 27, 2003, at 12:39, Sidnei da Silva wrote: Howdy folks, Im trying to cvs up and get the latest changes on CMF 1.4, but it just does time out. Any clue? [EMAIL PROTECTED]:~/src/cmf/1_4$ cvs up ssh: connect to host cvs.zope.org port 22: Connection timed out cvs [update aborted]: end of file from server (consult above messages if any) []'s -- Sidnei da Silva [EMAIL PROTECTED] dreamcatching :: making your dreams come true http://awkly.org A LISP programmer knows the value of everything, but the cost of nothing. -- Alan Perlis ___ 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 )
[Zope-dev] cvs.zope.org outage and maintenance
cvs.zope.org had a problem with its hardware RAID controller today that required manual intervention. In order to solve what we think is the main cause we are going to have a downtime from 4PM EST until about 4:30 PM EST today to remove some dodgy hard drives. jens ___ 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] cvs.zope.org back up
... disk removal took a little longer than expected but we're back to normal now. jens ___ 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] New location for Zope Collectors
Hi everyone, The issue collectors formerly hosted on collector.zope.org have been migrated to the main zope.org website and are now available at the following address:: http://www.zope.org/Collectors/ I have tried to find all links to these collectors, but there might be old links in various places that still point to collector.zope.org. The hostname collector.zope.org will, once the DNS change has propagated, point to www.zope.org. jens ___ 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] New location for Zope Collectors
Already fixed. jens On Thursday, Oct 23, 2003, at 14:58 US/Eastern, Andreas Jung wrote: When I look at the default search results for the Zope collector then the latest pending issue has been filed in May which is nearly impossible. There must be something wrong. Andreas ___ 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] cvs.zope.org down
Just a quick heads-up: This morning we noticed some odd activity on cvs.zope.org that looked like someone had broken into the machine. We have shut the machine down completely and are in the process of installing new drives and doing a fresh install from the ground up. Then we will start restoring the data from the old drives. We're trying to get at least the basic services (ViewCVS site, CVS anonymous pserver access) up and running by tonight. Migrating the privileged user information to allow checkins will probably be done tomorrow. The collector.zope.org web site, which was served from the same machine, will probably end up being integrated into www.zope.org tomorrow and cease to exist as a separate Zope instance. jens ___ 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] Etag support in page templates
In the case of empty Etags, I think that sending an empty header has been shown to be the wrong choice. I suggest it should be removed from the head and the 2_7 branch. For future reference to any committers: if you modify any HTTP headers sent by Zope, you very likely ought to discuss it before checking it in. Shane +1 Along with that the MS Author Via header garbage should at least be governed by some configuration flag. jens ___ 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] Etag support in page templates
Jens Vagelpohl wrote: Along with that the MS Author Via header garbage should at least be governed by some configuration flag. No, no, no, you're not seeing the bigger picture... you don't need configuration flags for any of that stuff. It just shouldn't exist, period. If people need to clutter the protocol to make their clients work then they should do so with another filter program. In zserver's case thats going to be the proxy HTTP daemon that it talks to. I'm not looking at the big picture. I'm trying to avoid complaints from people that for one reason or another use those broken M$ clients. jens ___ 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] AW: Caching prob with AHCM and headers
I know, I was just trying to figure out how this was supposed to work. Currently setting Last-Modified seems to be the only way to get something cached in Apache; Expires alone is no good, and adding an Etag header doesn't seem to have any effect either. Maybe this should be classified as an Apache problem? Shouldn't Apache cache pages that have Expires? Please keep in mind that **Apache is not a cache server**, it has caching attached more like an afterthought to the mod_proxy. If you want predictable caching you will need to use real caching software such as Squid. I personally have moved away from Apache even for small websites since there are some other issues with Apache caching, such as zero-length responses in some cases. jens ___ 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] Very severe memory leak
Well, to at least reduce the immediate pressure, why don't you throw more RAM into that server? Memory is cheap. jens On Friday, Aug 22, 2003, at 17:38 US/Eastern, Leonardo Rochael Almeida wrote: Hi, For a long time now, one of our clients, running Zope 2.5.1, has been experiencing memory leaks. For a time this has been relieved by restarting Zope every day at 4am. Lately this was not enough, however, as Zope started taking more and more memory, to the point that it frequently required more than one restart during the day. The machine this is running on is a Xeon 500 MHz with 512 Mb of memory. Zope is a very memory intensive application, but 512Mb used to be enough for a medium sized portal. This Zope site makes very heavy use of both ZClasses and ZCatalog, and it appears to me that this worsening of perfomance and memory consumption was being caused by the increase in content, which caused an increase in the size of the ZCatalog and in the number of ZClass instances. A total of 6796 ZClass instances representing News Items are cataloged. There are other ZCatalogs and ZClass instances representing calendar events and other stuff (this is a very old Zope portal coded by hand in ZClasses, no CMF, no Plone, not even Pagina1, our ZClass based CMS) Fiddling with the cache parameters in the control panel showed that while we could keep the memory consumption to a point where the daily restart would be enough (say, with 10k objects per thread), we would get constant thrashing of cache objects, specially DateTime objects due to the ZCatalog queries, and the machine performance would be close to intolerable, whereas if the cache parameters where set to allow a fast performance (with 50k objects per thread) the machine would run out of memory in 3 to 4 hours. Needless to say this was with heavy use of RAMCacheManagers, not counting the accelerator proxy in front of it. Without the RAMCaches, the machine would go down in under 5 minutes of work hour load. Even with the caches on, the load would never go down from 2.0 during work hours. Last tuesday we decided no longer to wait for 2.6.2 and migrated the site to 2.6.1. We dealt with the ObjectManager-based-ZClass issue, reformed the ZCatalogs to replace the DateTime FieldIndexes with DateTimeIndexes and then had a working testing environment, which we stress tested lightly without detecting any problems and quickly moved to production. This was late at night The next morning we were surprised to notice the machine very quickly ran out of memory. The memory leak was *far more severe* than before. Zope needed a restart every 15m or so before it would send the machine into heavy swaping. In a very non-intuitive hunch I suggested we shut down all RAMCaches and, amazingly enough, this made the situation a bit more manageable. We're now restarting every 45 minutes. To our relief, disabling the RAMCaches had only a barely noticeable effect on performance. The site kept churning out pages really fast, a testatment to the optimization job done in the 2.6 series. The load on the machine is rarely above 0.8, except when it goes into swap :-) The number of DateTime refcounts in the Control_Panel, although much smaller than in Zope 2.5.1 is very high and, mostly importantly, constantly increasing, as far as I can tell. After 12 minutes of uptime, the top refcounts are: DateTime.DateTime.DateTime: 96168 BTrees._IOBTree.IOBucket: 43085 BTrees._IIBTree.IIBTree: 40400 BTrees._IIBTree.IIBucket: 23696 OFS.DTMLDocument.DTMLDocument: 23190 BTrees.OIBTree.OIBucket: 14582 BTrees._IIBTree.IISet: 12479 BTrees._IIBTree.IITreeSet: 10823 BTrees.OOBTree.OOBucket: 7088 OFS.Image.Image: 6860 OFS.DTMLMethod.DTMLMethod: 5894 DocumentTemplate.DT_Util.Eval: 3250 OFS.Image.File: 2796 BTrees._IOBTree.IOBTree: 2761 ZClasses.Method.MWp: 1592 In time, DateTime refcounts eventually dwarves the second place by an order of magnitude. I think this is related to the fact that DateTime instances are stored as metadata, even though the date indexes have been converted to DateTime indexes. The question is, why aren't those instances being released? What is holding on to them? I tried installing the LeakFinder product but discovered it didn't work before stumbling in a message in the archives that told me exactly that :-) The RefCounts view in the LeakFinder object fails with the following traceback: Traceback (innermost last): [...] Module DocumentTemplate.DT_Util, line 201, in eval - __traceback_info__: REQUEST Module string, line 0, in ? Module Products.LeakFinder.LeakFinder, line 240, in manage_getSample Module Products.LeakFinder.LeakFinder, line 163, in getControlledRefcounts Module Products.LeakFinder.LeakFinder, line 188, in resetCache TypeError: function takes at most 2 arguments (3 given) The code in question is: def resetCache(c, gc): cache = c._cache if gc: cache.minimize(3) # The minimum that actually performs gc.
Re: [Zope-dev] Authenticating with acl_users
what exactly is it you are trying to achieve? maybe someone can help if you let us know what the real motivation is. jens On Saturday, Mar 8, 2003, at 11:42 US/Eastern, Sondre Rønjom wrote: Ive been looking through AccessControl/User.py to understand the validate() methods paramteres. Im not sure what to put inside the request, and how to do it. I have been testing around, but I can only manage to do authenticate(), but this only tells if the user is valid and has the right password. The thing is, I also want to set AUTHENTICATED_USER, but not sure how to to this, but I have the idea validate() does all this for you, if you pass the right parameters. I have been searching at zope.org and google.com for a long time now, but cant find very much useful. The only parameters I have put in the REQUEST are __ac_user and __ac_password, but I know I also need object value and physical container of the object, but dont know how to find this. /Sondre ___ 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: Security internals, was Re: [Zope-dev] LOTS of roles?
hm... i could have told you that the LDAPUser class in the LDAPUserFolder product can do that but i had the whole thread mostly tuned out. initially it did not look like anything i could help with and the first posting was very long if i remember correctly. jens On Thursday, Mar 6, 2003, at 17:13 US/Eastern, Paul Winkler wrote: On Fri, Mar 07, 2003 at 08:56:59AM +1100, Adrian van den Dries wrote: (/me revisits LDAPUserFolder) Looks like the work is already done for you anyway: allowed() and friends check if the context has an attribute acl_satellite, and queries it for any additional roles, and it even keeps a cache. !! OMG !!! thank you - for some obscure reason it never would have occurred to me in a million years that LDAPUserFolder already does this. Well, duh. Huzzah open-source software! Amen! -- Paul Winkler ___ 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] ZLDAP and replication
the ZLDAPConnection product has not seen any active maintenance in more than 2 years now. i am sure it does not handle referrals. jens On Wednesday, Feb 26, 2003, at 02:51 US/Eastern, Jean Jordaan wrote: Hi Jeffrey all I'd just like to check something .. When running LDAP in a master/slave setup, if a client of the slave tries to update the directory, the slave returns a referral (pointing at the master) to the client, and the client has to retry the update at the master. That's steps 3 and 4 in this diagram: http://www.openldap.org/doc/admin20/ guide.html#Replicated%20Directory%20Service It doesn't look like ZLDAPConnection does this, or am I being obtuse? -- Jean Jordaan ___ 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] AIX
i think in general you will not get much support from anybody when it comes to exotic unices like AIX. there isn't many people who try to make it work. jens On Friday, Feb 21, 2003, at 21:12 US/Eastern, Jamie Heilman wrote: There never was an answer from anybody. Thats probably because nobody wants to admit to running AIX. ___ 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] consistent naming in ZEO releases
how about you change your code so it attempts to download both .tgz and .tar.gz? jens On Monday, Nov 25, 2002, at 09:03 US/Eastern, Andrew Sydelko wrote: On Mon, 25 Nov 2002 13:56:34 + Chris Withers [EMAIL PROTECTED] wrote: Andrew Sydelko wrote: Ok, whoever is in charge of zope.com releases of things like DCOracle2, Zope and ZEO need to decide if the release file names are going to end in .tar.gz or .tgz. Why does it matter? I have a script that builds zope. And part of that script is going to get the tarballs. When they change the name I have to go and change the URL (normally I just set the version number). Here's an example: version['ZEO']='1.0' [snipped lots of other installs] package = 'ZEO' if version.has_key(package): ver = version[package] install(package=package, dir='src', url='http://www.zope.org/Products/ZEO/ZEO-%s.tgz' % (ver), checkfile='src/ZEO-%s' % (ver)) install is a function that uses the parameters in it to decide what to do. You'll see that when I switched to ZEO 2.0 I had to change the URL. And I shouldn't have to go look up the URL every time to make sure it's the same... That's the whole point of my script. --andy. ___ 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 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] PathIndex unindex fix
+1 from me... most other PluginIndexes already fail gracefully when something to be unindexed has disappeared. IMHO all indexes should behave that way. jens On Thursday, Nov 21, 2002, at 08:24 US/Eastern, seb bacon wrote: Anyone object to me changing PathIndex so it swallows exceptions and logs them when unindexing content? On upgrading to Zope 2.6 some if the unindex paths seem to have got hosed, and I don't want this breaking my site. ___ 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] What catalog/index to use ...
Depends on your needs. ZCTextIndex is very easy to use and supports relevance ranking, TextIndexNG is supposed to be some kind of eier-legende-wollmilch-sau. Compare the features and make your choice. -aj isn't TextIndexNG much better with international character encodings and that stuff? and it has a lot more stemmers for various languages. jens ___ 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] Non Bloating Page Counter
I would like to create a Page Counter product that doesn't bloat. If a product is created that doesn't subclass History or UndoSupport does it still bloat? those have nothing to do with the fact that every time that hit counter fires some object will get updated and thus saved again. Zope is transactional, but products like ZLDAPConnection have the ability to be non-transactional what does this mean? Could I use this in my counter? the meaning of transactional as employed by the ZLDAPConnection has nothing to do with your concern about ZODB bloat. the ZLDAPConnection tried (it never got successfully finished) to hook into the ZODB transaction machinery to make sure writes to LDAP only happen if the whole transaction was indeed successful. i personally don't see a way to completely avoid ZODB bloat with a counter product stored in the ZODB itself. IMHO it is inherently bad to use ZODB-based hit counters in general for that very reason. jens ___ 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] LDAPRoleTwiddler / BasicUserFolder
why is that code no longer referring to the real userfolder anymore? it should not make calls to authorize/identify/authorize on self but on the LDAPUserFolder it is using as the user source. jens On Thursday, Oct 17, 2002, at 03:39 US/Eastern, Dirk Datzert wrote: Hi all, I try to solve some problems with LDAPRoleTwiddler an inherited version from BasicUserFolder I currently use a validate()-function which I saw similar in BasicUserFolder and in LDAPRoleExtender (modifications from Shane) My problem is that if self.authorize(user, a, c, n, v, roles): return user.__of__(self) in validate() does not work, but return user.__of__(self) work better, but does not the same as the API (which I don't know) expect. Can anybody give a hint ? Regards, Dirk used python code: # This must stay accessible to everyone def validate( self, request, auth='', roles=_noroles ): The main engine v = request['PUBLISHED'] # the published object a, c, n, v = self._getobcontext(v, request) name, password = self.identify(auth) user = self.authenticate(name, password, request) if user is not None: if user is not None: # On my Test-System it works with authorize() # On my Integration-System it works only without authorize() #if self.authorize(user, a, c, n, v, roles): return user.__of__(self) # Could not twiddle a user. Defer to other user folders. return None def authenticate(self, name, password, request): super = self._emergency_user if name is None: return None if super and name == super.getUserName(): user = super else: user = self.getUser(name, password) if user is not None and user.authenticate(password, request): return user else: return None Dirk Datzert.vcf ___ 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] LDAPRoleTwiddler / BasicUserFolder
being explicit is almost always better. you are relying on internal magic and it's not apparent from looking at the code you wrote. the validate implementation in the LDAPRoleExtender is the most correct one. shane worked on it for a while to make sure it does the most correct thing possible, and if anyone knows about the vagaries of acquisition/security and all its possible permutations it is him. jens On Thursday, Oct 17, 2002, at 08:37 US/Eastern, Dirk Datzert wrote: Hi Jens, why is that code no longer referring to the real userfolder anymore? it should not make calls to authorize/identify/authorize on self but on the LDAPUserFolder it is using as the user source. self.identify() should be the same as if getLUF().identify() since LDAPUserFolder and LDAPRoleTwiddler both inherited this from BasicUserFolder. self.authenticate() does a self.getUser() which refers to getLUF().getUser() and does twiddling in one step and return the right user-object which the API would expect. I think that self.authorize(user,...) is better than self.getLUF().authorize(user,...) because the authorize does the following in 1st line: def authorize(self, user,... ): (inherited from BasicUserFolder) user = getattr(user, 'aq_base', user).__of__(self) this would be different for self.authorize, where self would be the LRT and self.getLUF().authorize() where self would be the LUF. The user is seen in 2 different contexts by .__of__(self) . Maybe I'm think too complicated, Your opinion ? Regards, Dirk ___ 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] Debugging conflict errors? Hints please!
conflict errors do not imply conflicting writes by definition. there is a thing called read conflict, which is probably what happens to you. jens On Friday, Oct 11, 2002, at 07:47 US/Eastern, Stefan H. Holek wrote: Hi All! I am experiencing a lot of 'ZODB conflict error at ...' that I can reliably reproduce by hitting my browser's Refresh button at a high rate. The bad news is that the conflicts happen on pages that are not supposed to change anything in the ZODB but only display results of some SQL queries. My question is now how to find out what actually is causing the conflicts. The log entry refers to the page being served ('/very/long/path/detail_view'). As a matter of fact I am not even sure whether the log entry means that the 'detail_view' document has changed (which of course it hasn't), or something along the traversal path caused a ZODB write. Zope 2.5.1, ZEO 1.0 Any hints on how I could find the culprit appreciated. Thanks, Stefan ___ 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] find unused objects: hopefully the last misunderstanding...
extremely expensive. you would have to... - assemble a list of all objects IDs in the ZODB and then... - parse all contents of all objects and check against that ID list. you would probably need a little counter for every single ID that gets incremented upon finding its ID referenced, and all those that are left over with the counter at 0 in the end would probably be candidates for removal. this schema will fall down the moment your object IDs are not unique across the whole ZODB. besides, every object is potentially different in how you access and read its contents. if your whole intent is to have a cleaner ZODB and there is no pressing reason to do this cleanup, i would just forget about it. jens On Friday, Aug 30, 2002, at 07:48 US/Eastern, [EMAIL PROTECTED] wrote: * Starting at root, check all objects if they are referenced, * and produce a list of those which are not, for cleanup purposes. * Packing the database cleans up in this manner. Oh well. Third try: I know about the 'pack database' button. Garbage collection of this kind is not my problem. I have lots of scripts, dtml methods etc. everywhere which are perfectly well-known to the ZODB, nothing wrong with that, but which are simply not used by me anymore. No usage from other scripts nor methods nor documents. And these buggers I'd like to find. Finally unmistakeable? Tobias Herp ___ 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] Fix broken python on Mac OS X version 10.2
sorry for the crossposting, here's a little heads-up for the mac OS X crowd: upon upgrading to 10.2 (jaguar) you will most likely find that your python binary (along with most other self-compiled software) is broken. in the case of python a simple re-build (if you compiled from source, that is) fixes this. i added explicit instructions to the Zope and Python on Mac OS X HowTo at http://www.zope.org/Members/jens/docs/zope_osx i highly recommend re-building zope after that as well. jens ___ 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] Fix broken python on Mac OS X version 10.2
well, the basic cause is worse than that: they moved symbols around between system libraries. jens On Monday, Aug 26, 2002, at 12:11 US/Eastern, Barry A. Warsaw wrote: JV == Jens Vagelpohl [EMAIL PROTECTED] writes: JV sorry for the crossposting, here's a little heads-up for the JV mac OS X crowd: JV upon upgrading to 10.2 (jaguar) you will most likely find that JV your python binary (along with most other self-compiled JV software) is broken. I think the basic cause of this is that 10.2 upgraded gcc, and that's what breaks self-compiled binaries. -Barry ___ 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] Fix broken python on Mac OS X version 10.2
... which doesn't help people trying to run a current zope source release all that much... jens On Monday, Aug 26, 2002, at 17:13 US/Eastern, Jeffrey P Shell wrote: On 8/26/02 11:49 AM, Jens Vagelpohl [EMAIL PROTECTED] wrote: well, the basic cause is worse than that: they moved symbols around between system libraries. jens But nicely, they include Python (2.2, not even 2.2.1) on the Developer Tools CD. Finally. -- Jeffrey P Shell www.cuemedia.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 )
Re: [Zope-dev] limit to number of operations in a transaction?
in your script you must commit a transaction once in a while with get_transaction().commit(). when you use xml-rpc then every call to zope will end up being its own transaction and you will not have this problem. jens On Sunday, Aug 25, 2002, at 10:12 US/Eastern, Christopher N. Deckard wrote: Hello, So I've run into a problem. I had the need to migrate our a database of people from an old storage format to a new one. The old format uses Folders and Properties to store information about a person. Name, phone, email, address, etc. The new format uses a Product that I wrote which stores said data in a ParsedXML document. I have roughly 1,500 people in the database. I wrote a script to migrate the people. Basically it does getProperty for each property on each person folder, then creates the new person object which uses XML. Zope apparently cannot handle this number of operations in one transaction. Zope gets slower and slower and eventually becomes on responsive. It looks like the script has completed, but nothing is ever committed to the ZODB, and since Zope is unresponsive it must be restarted. This, as expected, kills that entire transaction which was never committed. Is it known that large numbers of operations, such as above, in a single transaction can cause problems? A transaction, of course, being a request, and an operation being something like manage_addProduct. I've solved the problem by using xmlrpc and for person in people calling my migrate_person script for only one person at a time. This is SO MUCH FASTER. I previously ran the script that migrates all of the people, and after 8 hours it still had not completed. Thoughts? -Chris ___ 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] Re: Zope 2.4.3 patched Python 2.1.3 @ FreeBSD crashing
this will probably not help with zope 2.4.3 since that has other crash-bugs not covered by the python patch. upgrade to 2.4.4 or 2.5.1 instead. jens On Tuesday, July 16, 2002, at 02:11 , Myroslav Opyr wrote: Hi, In past times I was advised to apply a patch and increase stack size for pthreads of FreeBSD. I did and it helped for Zope 2.5.0 CMF 1.2 + PageTemplates. It was moderately stable situation but it appears to crash again. For other site (with other Zope version)... Zope Version(Zope 2.4.3 (source release, python 2.1, linux2),python 2.1.3, freebsd4) Python Version 2.1.3 (#4, May 15 2002, 17:31:48) [GCC 2.95.320010315 (release) [FreeBSD]] System Platform freebsd4 If portions (PT) of a web-page are rendered everything is ok. Management screens either has no problems. But rendering a compound PT-based page makes Zope crash with assertion STACK_LEVEL() = f-f_stacksize failed: file Python/ceval.c , line 695 on console. What is suggested solution? Increase pthreads stacksize? it was THREAD_STACK_SIZE=0x2 as advised... Thanks, m. -- Myroslav Opyr zope.net.ua http://zope.net.ua/ Ukrainian Zope Hosting e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] cell: +380 50.3174578 ___ 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] Restricted Compiler issues on FreeBSD? (Core Dumps...waaa!)
have you read about the python crash-bug stemming from tiny thread stack sizes on freebsd and applied the patch? the mailing list archives should tell you what to do. jens On Tuesday, July 16, 2002, at 09:43 , Jeffrey P Shell wrote: For a while now, Tracker has been core dumping on my with Zope 2.5.1 with both Python 2.1.2 and 2.1.3 on FreeBSD 4.5 (Intel). The culprit seems to be expressions that are heavy on parenthesis. For example, the following works: !--#let val=(init or (type == 'simple' and (_['sequence-key'] not in ['requester', 'supporter', 'priority', 'stage']) )) and _['sequence-item']-- But it core dumps when changed to: !--#let val=((init or (type == 'simple' and (_['sequence-key'] not in ['requester', 'supporter', 'priority', 'stage']) )) and _['sequence-item'])-- Don't ask me what this expression does - I just kept whittling at it until the crashes stopped. Then I went and found quite a few others. I made a lot of fixes by turning complex expressions into many smaller ones inside a single 'let' tag. Does anyone know other possible fixes for this issue? Is there some Python stack size setting I can set at compile time? I have some other code that has not survived the move to Zope 2.5.x/Python 2.1.x/FreeBSD. FWIW, the Python 2.1.2 used was from the BSD Ports, while the 2.1.3 was compiled by hand. -- Jeffrey P Shell www.cuemedia.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 ) ___ 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] IIS / login bug
There is a bug in IIS[1] which causes cookies to be dropped during a redirect. a bug in IIS??? no way...:P Should my approach work? Are there better workarounds? i don't know your situation exactly, but if IIS is not a pressing requirement you can use apache for windows. jens ___ 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] re: First call to external method after restart fails
casey duncan put a fix into CVS for what you might be experiencing. it will probably show up with the first 2.6 betas. jens On Wednesday, June 5, 2002, at 11:11 , Emile van Sebille wrote: I found this post from Ted Skolnick but saw no follow-ups, and I am having the same problems. Ted, did you get this resolved? I have an external method that takes 3 params. After I restart Zope ( running on Linux ), I get the following error on my first call... Error Type: TypeError Error Value: rmlToPDF() takes at least 3 arguments (0 given) All subsequent calls work fine (i.e. a refresh in my browser, and no more error, my external method works ). I restart Zope as root. Anyone ever see this before? I just upgraded an account from 2.4.x to 2.5 binary on linux. -- Emile van Sebille [EMAIL PROTECTED] - ___ 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] Zope crash restart
I did. What is standard procedure if the situation like the one I've met appears? What is scenarion from bug report to product release without the bug found? i don't know. the people on the python-dev mailing list could help you with that question. jens ___ 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] Zope crash restart
add your comment, encouragement, flames et to the sourceforge bug tracker issue. i guess that would help most. jens On Wednesday, May 15, 2002, at 10:55 , Myroslav Opyr wrote: Hi, it look like it works! I have to give site some time to run to be sure. Where I can vote for a bug or to give comments? On SF.tracker issue? to make it go into release. As far as I understand the patch is quick-hack to make it work and do not solve the issue completely, just increase the stack size... There should be better solution, isn't it? Will it go into Python-2.1.4? m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: [EMAIL PROTECTED] cell: +380 50.3174578 On Wed, 15 May 2002, Behrens Matt - Grand Rapids wrote: Myroslav Opyr wrote: As far as I remember the issue was solved in Python 2.1.3, wasn't it? Or it was GC patch? No. Try my patch, that solves the problem Jens is talking about. ___ 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] Zope crash restart
this particular issue is *not* solved in 2.1.3 jens On Wednesday, May 15, 2002, at 10:00 , Myroslav Opyr wrote: As far as I remember the issue was solved in Python 2.1.3, wasn't it? Or it was GC patch? Ok, I'll try to patch sources... m. -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: [EMAIL PROTECTED] cell: +380 50.3174578 On Wed, 15 May 2002, Jens Vagelpohl wrote: python has a crashbug under FreeBSD due to FreeBSDs *tiny* thread stack size. search the mailing list, there were posts with workarounds. unfortunately, those workarounds involve patching python sources and recompiling. jens On Wednesday, May 15, 2002, at 09:50 , Myroslav Opyr wrote: Hi, There is installation: Zope Version (Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.3, freebsd4) Python Version 2.1.3 (#1, May 5 2002, 06:29:09) [GCC 2.95.3 20010315 (release) [FreeBSD]] System Platform freebsd4 ZODB contains an instance of modified CMFSite (translated in Ukrainian, CMFSiteUA). System works perfectly well even on Zope 2.5.0 on Win32 platform but crashes on FreeBSD. Site was Exported (from Win32) and Imported (to FreeBSD). Local Filesystem View folders were deleted and recreated manually. As soon as somebody tries to touch that CMFSiteUA Zope crashes and restarts. Workaround found is: to enter management interface somwhere deeper, for example /Examples/manage or /Control_Panel/manage. Then Zope loads parts of the system into RAM and appears possibility to run the site. Sooner or later, when there is sufficient time-frame to unload all objects out of the RAM cache (no user activity), system turns back into unusable state and again there is need to bring it up with /Control_Panel/manage. . . Any hints? BTW, there is absolutely no output in debug mode. Just usual INFO(0) messages on startup. Crash and again usual messages. Watchdow process remains into memory but new child performing requests processinf are respawned. And again INFO(0) messages are flushed into stdout... Any help would be appreciated. Regards, Myroslav -- Myroslav Opyr zope.net.ua * Ukrainian Zope Hosting e-mail: [EMAIL PROTECTED] cell: +380 50.3174578 ___ 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 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 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] DB.py: pool_size
there is a common misconception that the number of threads and the pool_size defined in ZODB/DB.py are the same. they are not. number of threads is just that: the maximum number of threads the zope process will spawn (excluding extra threads, such as those used for zDaemon). the pool_size in ZODB/DB.py sets the number of ZODB database connections that are used by the application to interact with the ZODB. increasing the number of threads alone does not make much sense because no work can be done if a thread does not have a database connection out of the pool. you might try to carefully and slowly increase both numbers *in a sandbox, not on your live site* and test to see if it helps. jens On Saturday, May 4, 2002, at 01:00 , HoYin Au wrote: We've been experiencing some extreme lag on our Zope site lately, and have noticed that the bottleneck seems to be the 7 thread limit placed on ZODB. I was wondering if there are any remifications on increasing the pool_size variable in lib/python/ZODB/DB.py ? -Hoyin Au ___ 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] LDAPUserFolder
the LDAPUserFolder-tailored solution is already available: http://www.dataflake.org/software/ldaproletwiddler jens On Friday, May 3, 2002, at 05:00 , Stefan H. Holek wrote: On Wed, 1 May 2002, Dirk Datzert wrote: We decide to install only one LDAPUserFolder in the Root-Folder and configure him to do the authentications against LDAP. In the subfolders we want to install 'LDAPUserFolders' which should not be configured again, but use the top-level LDAPUserFolder. In this 'LDAPUserFolders' there would be done the Groups Management on an base of LDAP-Group to Zope-Role mapping. Might the Slave User Folder help you? http://www.zope.org/Members/srichter/Products/SlaveUserFolder Stefan ___ 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] LDAPUserFolder
well, if all the user folders are configured the same way *except* for the groups-to-role bit then you should get the functionality you need. it's not trivial to program something that would allow retrieval of a user object at the root and then somehow mangle the list of roles based on where you are in the site. you might be able to patch the folder class so that local roles are computed instead of just looked up, but that's hackish. jens On Wednesday, May 1, 2002, at 08:32 , Dirk Datzert wrote: Hi Jens, one question about possibilities of LDAPUserFolder: We decide to install only one LDAPUserFolder in the Root-Folder and configure him to do the authentications against LDAP. In the subfolders we want to install 'LDAPUserFolders' which should not be configured again, but use the top-level LDAPUserFolder. In this 'LDAPUserFolders' there would be done the Groups Management on an base of LDAP-Group to Zope-Role mapping. Do you think it is possible to split this feature from LDAPUserFolder (with a little programming) ? Where should I look on programming and what need I take care about ? Regards, Dirk ___ 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] LDAPUserFolder
i guess what you would need is an object that looks like a user folder but most calls are redirected to a second, real, user folder. this object would need to implement the typical user folder API and redirect most calls, but override those methods that retrieve/compute the roles for a given user. jens On Wednesday, May 1, 2002, at 08:59 , Dirk Datzert wrote: Jens Vagelpohl schrieb: well, if all the user folders are configured the same way *except* for the groups-to-role bit then you should get the functionality you need. Yes, I expect that. but what if you have 100 user-folders configured and need to change one option ? a lot or work. it's not trivial to program something that would allow retrieval of a user object at the root and then somehow mangle the list of roles based on where you are in the site. What is about the following: Have a central point of Configure, LDAP Schema, Custom Forms for all LDAPUserFolders and Caches, Users, Groups are local ? And do lookups again, not computed. you might be able to patch the folder class so that local roles are computed instead of just looked up, but that's hackish. jens On Wednesday, May 1, 2002, at 08:32 , Dirk Datzert wrote: Hi Jens, one question about possibilities of LDAPUserFolder: We decide to install only one LDAPUserFolder in the Root-Folder and configure him to do the authentications against LDAP. In the subfolders we want to install 'LDAPUserFolders' which should not be configured again, but use the top-level LDAPUserFolder. In this 'LDAPUserFolders' there would be done the Groups Management on an base of LDAP-Group to Zope-Role mapping. Do you think it is possible to split this feature from LDAPUserFolder (with a little programming) ? Where should I look on programming and what need I take care about ? Regards, Dirk ___ 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 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] LDAPUserFolder
log in with the superuser account (create one using the zpasswd utility if needed), then you can delete the root user folder and create a new one. user folders are one of the few things that can be owned by the superuser. jens On Tuesday, April 30, 2002, at 09:40 , Dirk Datzert wrote: Hi, how do I replace a acl_users folder in the Root by an working LDAPUserFolder ? Regards, Dirk ___ 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] _v_ and ZEO
Ive never looked at LDAPUserFolder so this may be irrelevant, but is it possible for LDAPUserFolder to validate that the cached _v_ information is still fresh? If that validation is quicker than fetching a new copy then this is still an overall win. yes it does have a very rough way of validating the cache. there's a timeout on the cached objects. and yes, it's a *big* performance win. jens ___ 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 )