RE: [Zope-CMF] Access rule for setting skin

2005-04-04 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-4-4 11:37 -0400: ... As I think I'd mentionned, I get the Zope default home home page (Welcome to Zope, etc ...), but with a big warning at the top telling me that I don't have an administrative user setup and so on ... Which is obviously not true :) Fine. But, I

[Zope-CMF] [Performance] listFilteredActionsFor unnecessarily expensive

2005-04-05 Thread Dieter Maurer
In our regular profiles, listFilteredActionsFor belongs to the top consumers of CPU time. Recently, I found the main culprit (in CMF 1.4): It is the completely unnecessary: if not action in catlist: In our case, listFilteredActionsFor spends about 70 percent of its complete time in

Re: [Zope-CMF] Re: [dev] failing tests and other unit test issues

2005-04-05 Thread Dieter Maurer
yuppie wrote at 2005-4-4 20:59 +0200: ... 2.) I prefer to see the correct import in each file and to use utils just for the fallback. But, then you get a nasty try: ... except: in hundred of files rather than just a single one. -- Dieter ___

Re: [Zope-CMF] Re: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-05-03 Thread Dieter Maurer
Florent Guillaume wrote at 2005-4-22 17:17 +0200: Chris Withers [EMAIL PROTECTED] wrote: ... Yes we do! I really really really want to know if: - I have a catalog entry that points to an object that no longer exists. This can ONLY happen due to a bug somewhere and needs to be fixed - I have

Re: [Zope-CMF] How to use typesTool.manage_addTypeInformation ?

2005-05-06 Thread Dieter Maurer
KLEIN Stéphane wrote at 2005-5-5 19:40 +0200: ... typesTool.manage_addTypeInformation( add_meta_type = factory_type_information['meta_type'], id = factory_type_information['id'] ) ... File

Re: [Zope-CMF] Multiple User Folders

2005-05-17 Thread Dieter Maurer
Chris Crownhart wrote at 2005-5-16 10:28 -0600: ... I am building a CMF site that will have many organizations (could be up to 200 or 300). Each organization will have it's own set of users, and probably it's own set of roles, although most of the roles will be the same across all

Re: [Zope-CMF] Re: [CMF-checkins] CVS: Products/CMFCore - DirectoryView.py:1.47.2.7

2005-05-26 Thread Dieter Maurer
Chris Withers wrote at 2005-5-26 08:12 +0100: ... My personal hate of it comes from seeing a thoroughly useless warning coming from the old SearchIndex stuff for years and never being able to figure out exactly what was causing the problem. You asked for this a long time ago and I responded (a

Re: [Zope-CMF] Re: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-05-27 Thread Dieter Maurer
Florent Guillaume wrote at 2005-5-27 13:30 +0200: ... Let's not go into too much semantics here. Note that WARNING is an alias of PROBLEM. zLOG defines these levels as: PROBLEM=100 -- This isn't causing any immediate problems, but deserves attention. ERROR=200-- This

Re: [Zope-CMF] Re: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-06-03 Thread Dieter Maurer
Raphael Ritz wrote at 2005-6-3 09:40 +0200: Chris Withers wrote: [..] That said, I'm also aware that there are currently 4 of us talking about this, 2 on each side. What does the rest of the community think? Since you ask so explicitly ;-) I agree with Florent: Your site's _USERES_ should

Re: [Zope-CMF] Problem

2005-06-17 Thread Dieter Maurer
Maya Angelova wrote at 2005-6-17 10:26 +0200: I have a the following problem by restarting a plone site under zope. Could anybody give me a hint. would be very grateful sh plone2 restart plone2: line 156: plone2 : command not found plone2: line 158: plone2 : command not found These are problems

Re: [Zope-CMF] Re: Conflict between PortalFolder and CMFBTreeFolder

2005-06-20 Thread Dieter Maurer
Julien Anguenot wrote at 2005-6-20 11:19 +0200: Christian Heimes wrote: ... I'm proposing to change PortalFolder in the following way: * Revert PortalFolder to be subclassed from Folder * Create an OrederedPortalFolder as subclass from OrderedFolder * Subclass all classes in CMF from

Re: [Zope-CMF] CMFSetup: non-ascii text

2005-07-01 Thread Dieter Maurer
Florent Guillaume wrote at 2005-7-1 17:19 +0200: In many places, CMFSetup exports and imports things like titles and descriptions. For instance, for the workflow states and transitions. These fields can often, outside the USA, contain non-ascii strings. How do we export and reimport them ? 1.

Re: [Zope-CMF] undo_form - no content

2005-07-27 Thread Dieter Maurer
David Chandek-Stark wrote at 2005-7-27 09:51 -0400: I got no reply from plone-user on this issue -- I believe it's really a CMF issue anyway. Add CMF 1.4.7 to the version info below. Probably, because your question is not too clear... ... In my site the undo form is always blank. In the ZMI,

[Zope-CMF] Re: undo_form - no content

2005-07-28 Thread Dieter Maurer
David Chandek-Stark wrote at 2005-7-27 16:10 -0400: Sorry, this is a Plone site. There is a Plone skin template undo_form which calls container.portal_undo.listUndoableTransactionsFor(here) to get the undoable transactions. Not sure, whether Plone uses its own UndoTool. The CMFCore UndoTool

Re: [Zope-CMF] Re: undo_form - no content

2005-07-29 Thread Dieter Maurer
Sam Brauer wrote at 2005-7-29 08:19 -0700: I've recently encountered a similar problem, and I'm not using Plone. I'm in the process of migrating some CMF sites to Zope 2.7.7 and CMF 1.5.2, from Zope 2.7.2 and CMF-1.4.8. With the newer software, I find that users who are defined in the site's

Re: [Zope-CMF] Re: Plone participation in the CMF list

2005-08-02 Thread Dieter Maurer
Geoff Davis wrote at 2005-8-1 12:53 -0400: ... * Are there any particular things in Plone that you think should be pushed down into CMF? PloneBatch seems quite useful. I do not use Plone (due to its GPL) but I found the FactoryTool useful. Because it is GPL, I studied its functionality and then

Re: [Zope-CMF] Re: CachingPolicyManager improvements

2005-09-05 Thread Dieter Maurer
yuppie wrote at 2005-9-5 14:06 +0200: ... PortalTestCase is in the wrong layer. It makes assumptions about the way CMF works. Changes to the CMF might break PortalTestCase and create a dependency on a new Zope release. (We saw that problem already with the _refreshSkinData changes in CMF 1.5)

Re: [Zope-CMF] [dev] Topic changes: problems with revision 38002

2005-09-22 Thread Dieter Maurer
yuppie wrote at 2005-9-21 18:10 +0200: ... File Products/CMFDefault/Portal.py, line 26, in ? from Products.CMFTopic import Topic ImportError: cannot import name Topic In a similar situation (with Archetypes) something like import Products.CMFTopic.Topic; Topic =

Re: [Zope-CMF] Re: IE Cache Bug and CachingPolicyManager

2005-09-29 Thread Dieter Maurer
Geoff Davis wrote at 2005-9-28 13:31 -0400: On Wed, 28 Sep 2005 12:47:06 -0400, Tres Seaver wrote: Thanks for the analysis, and the fix (sorry for the earlier, premature reply). No problem. P-J Grizel suggested offline that the problem might be due to IE not parsing the time zone string at

Re: [Zope-CMF] DCWorkflow + Acqusition

2005-10-16 Thread Dieter Maurer
Victor Safronovich wrote at 2005-10-11 14:04 +0600: I have a question about DCWorkflow, WorkflowTool and Acqusition. My object, during change state, move to another folder and should change acqusition wrapper. workflow_tool = getToolByName( my_object, 'portal_workflow')

Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-16 Thread Dieter Maurer
Tres Seaver wrote at 2005-10-11 08:58 -0400: ... 'call_with_ns' should be invoked only for objects with either a '__render_with_namespace__' attribute (PythonScripts fit here) or those with 'isDocTemp' true. Its only real purpose is to set up the namespace before calling a DTMLMethod; I don't

Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-19 Thread Dieter Maurer
Tres Seaver wrote at 2005-10-16 14:22 -0400: ... Probably, because they can bind the DTML namespace... I knew that they *could* bind it; it just don't understand why anyone would *want* that feature, given the availability of the other, non-ambiguous bindings. I know that I used it

Re: [Zope-CMF] CMF 1.5 manage_afterAdd co

2005-11-09 Thread Dieter Maurer
Florent Guillaume wrote at 2005-11-9 16:17 +0100: ... To make sure that CMF 1.5.5 will play well with Five 1.2, I have to make sure that no method manage_afterAdd redoes a recursion that one of its base classes was doing, as we have to be prepared to have the base class monkey-patched to

Re: [Zope-CMF] Re: Proposal for hooking rendering

2005-11-30 Thread Dieter Maurer
Paul Winkler wrote at 2005-11-30 10:33 -0500: ... When you customize a FSPageTemplate, you get a plain ZopePageTemplate. So you'll need to find a way to post-process the output of those without requiring a change to core Zope, or this becomes a Zope proposal. Unfortunately I haven't a clue how

Re: [Zope-CMF] Re: Proposal for hooking rendering

2005-12-02 Thread Dieter Maurer
Sidnei da Silva wrote at 2005-11-30 18:26 -0200: On Wed, Nov 30, 2005 at 08:24:56PM +0100, Dieter Maurer wrote: | Paul Winkler wrote at 2005-11-30 10:33 -0500: | ... | Instead, you change the makeZODBClone (or similar method) | of FSPageTemplate and create a (new) CMFPageTemplate. | (rather than

Re: [Zope-CMF] Re: VIRTUAL_URL and ACTUAL_URL (was Re: Collector Issues)

2005-12-04 Thread Dieter Maurer
Alexander Limi wrote at 2005-12-3 14:27 -0800: ... Except, the implementation did not end up including the query string - which was the whole idea in the first place, to have ACTUAL_URL be what is in the address bar right now, so things like anchors work (did you know there is no proper way

Re: [Zope-CMF] Re: VIRTUAL_URL and ACTUAL_URL (was Re: Collector Issues)

2005-12-05 Thread Dieter Maurer
Alexander Limi wrote at 2005-12-4 20:04 -0800: On Sun, 04 Dec 2005 10:23:25 -0800, Dieter Maurer [EMAIL PROTECTED] wrote: What have anchors to do with the query string? As I understand it, anchors (fragments in the URL) are a client only concept: fragments are not transfered to the server

Re: [Zope-CMF] FS Skins and Last-Modified

2006-01-26 Thread Dieter Maurer
Doyon, Jean-Francois wrote at 2006-1-25 15:51 -0500: ... FSDTMLMethods ... But, for some reason, now it seems bobobase_modification_time comes out wrong :( It's stuck at some date in October, even though the files are far more recent. Note that the methods (like bobobase_modification_time)

Re: [Zope-CMF] [DCWorkflow]Problem with initial state

2006-03-07 Thread Dieter Maurer
Encolpe Degoute wrote at 2006-3-7 20:33 +0100: I found something funny yesterday that makes me spend some hours: If you delete the state marked as initial state the variable initial_sate always contains its id. Any workflow needs an initial state. Thus, maybe, you should mark a new state as

Re: [Zope-CMF] Classes whose instances appear in ZODB

2006-03-08 Thread Dieter Maurer
George Lee wrote at 2006-3-8 10:17 -0500: If I want a class to appear in the ZODB, is that just a matter of subclassing SimpleItem? Usually, classes do not appear in the ZODB -- just their instances. SimpleItem is the base class of all (what I call) Zope site building objects -- the term Zope

Re: [Zope-CMF] Implicit and Acquirer

2006-03-11 Thread Dieter Maurer
George Lee wrote at 2006-3-11 00:41 -0500: ... What is the difference between Implicit and Acquirer? Between Explicit and Acquirer? An acquirer is an object with two components aq_self and aq_parent. If asked for an attribute, any acquirer passes the request on to aq_self and returns the result

Re: [Zope-CMF] Implicit and Acquirer

2006-03-12 Thread Dieter Maurer
George Lee wrote at 2006-3-12 00:05 -0500: ... Other than understanding how Python wraps C classes -- is there anyway of seeing where the classes are defined, understanding the methods + method definitions, in a Python-looking way? The DocFinder (or DocFinderTab) shows you the modules classes

[Zope-CMF] Re: [dev] characters allowed in content IDs

2006-03-22 Thread Dieter Maurer
yuppie wrote at 2006-3-21 21:12 +0100: There was a clear result: make the id checker policy configurable -- as Zope 3 does. Well. That's right but doesn't help us much. We don't have a volunteer for implementing that new feature. And we don't have a consensus what the default policy should

Re: [Zope-CMF] problem in setting local roles for newly created object

2006-04-01 Thread Dieter Maurer
Bartek Gorny wrote at 2006-3-29 11:50 +0200: ... I have a script which creates a new instance of a certain portal_type by a method constructContent, and then calls manage_setLocalRoles. And I get an exception: Module AccessControl.Role, line 362, in manage_setLocalRoles AttributeError: __hash__

[Zope-CMF] [Optimization] listFilteredActionsFor

2006-04-02 Thread Dieter Maurer
Yuppie already has considerable sped up listFilteredActionsFor for CMF 1.5. However, even after his optimizations listFilteredActionsFor can still consume lots of time. I found simple situations where it had spend more then 10 percent of total request time in testCondition. I propose to make the

Re: [Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Dieter Maurer
Bert Vanderbauwhede wrote at 2006-4-5 15:19 +0200: ... I'm currently setting up a CMF site for testing purposes. While configuring the CachingPolicyManager, I discovered that it didn't work for the Image and File content types. However, it worked perfectly for the Document content type. I only

Re: [Zope-CMF] [dev] 'request' in expression context

2006-04-27 Thread Dieter Maurer
yuppie wrote at 2006-4-26 18:25 +0200: In createExprContext 'request' is currently set to getattr(object, 'REQUEST', None). 'object' might be None, making 'request' None as well. Would anybody mind if I change that to getattr(portal, 'REQUEST', None)? AFAICS portal is always available and can

Re: [Zope-CMF] Re: Products-less python package support for CMF 1.6

2006-06-05 Thread Dieter Maurer
yuppie wrote at 2006-6-4 18:12 +0200: ... AFAIK registerDirectory and registerProfile work only inside of Products. At least in CMF 1.5, registerDirectory works outside Products, too. Due to some bad design, it stops working when Products is somewhere inside the path (even if not a complete

Re: [Zope-CMF] CachingPolicy

2006-06-22 Thread Dieter Maurer
LESUEUR Frédéric wrote at 2006-6-22 15:08 +0200: i have a question about the _setCacheHeaders methods inside this file CMFCore/utils.py. Why content is set to aq_parent and not the object itself ? The model (underlying the caching policy manager) is that templates (views) access content objects.

Re: [Zope-CMF] CachingPolicy

2006-06-23 Thread Dieter Maurer
Frédéric LESUEUR wrote at 2006-6-23 10:03 +0200: Le Jeudi 22 Juin 2006 20:00, vous avez écrit : LESUEUR Frédéric wrote at 2006-6-22 15:08 +0200: This, meanwhile (CMF 1.5 and up) should have been fixed. ok thanks, this is what i'm thinking, it fail with object that are call without view (like

[Zope-CMF] Re: DirectoryView, GenericSetup/skins, CMF 2.1

2006-07-14 Thread Dieter Maurer
yuppie wrote at 2006-7-14 11:30 +0200: ... We have a Zope version where package resources (such as skins) can come together with the package from a zip archive (this is a function similar to the newer egg Python function). We identify such resources via pypackage urls which have the form

Re: [Zope-CMF] Re: returning case insensitive matches for portal_membership.searchMembers()

2006-08-05 Thread Dieter Maurer
Norbert Marrale wrote at 2006-8-4 17:53 -0400: ... Which brings me to my original Q... Is there a better way than the two-step approach I'm following: emails = context.portal_membership.searchMembers('email','') and then iterate over emails to find the matches if

Re: [Zope-CMF] strange problem fixed by _owner

2006-08-11 Thread Dieter Maurer
Miles Waller wrote at 2006-8-11 16:17 +0100: ... I stepped through the code and somehow it thinks the user 'admin' is the owner. I think this is being acquired from somewhere (not sure where). I added the line _owner = None at the class level in CMFCore.DTMLMethod (analagous to that in

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-9-13 09:15 +0200: ... It is a long-standing bug that the CMFDefault File index_html (and download, which is obsolete in newer CMF versions) simply defers to index_html from OFS.File. That one doesn't know anything about Cache Policy Managers, it only deals with

Re: [Zope-CMF] CachingPolicyManager

2006-10-11 Thread Dieter Maurer
Miles Waller wrote at 2006-10-11 16:34 +0100: ... output_page_2: == h2Here is the subtitle from template 2/h2 2. Add a rule to the cpm as follows: id: template_test predicate: view.endswith('_2') etag: string:template_test 3. Make a request for yoursite/output_page_1 4. Note

Re: [Zope-CMF] CachingPolicyManager

2006-10-13 Thread Dieter . Maurer
Jens Vagelpohl wrote at 2006-10-11 12:03 -0400: ... I'm not sure this can be called a bug. It is true (and perfectly normal) that rendering a filesystem page template will always call the CPM. You're rendering both here. Since output_page_2 is rendered last as it's calles from output_page_1

Re: [Zope-CMF] [dev] _checkEmail issues

2006-10-20 Thread Dieter Maurer
Charlie Clark wrote at 2006-10-20 15:50 +0200: ... There is a module for testing domains against a DNS which is much more reliable. Regarding the rest I normally check with the responsible MX server as negatives are usually reliable. DNS queries can take quite a long time -- and we have seen

[Zope-CMF] [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager

2006-12-17 Thread Dieter Maurer
Crosspost: 'Reply-To' set to 'zope-cmf'. We nearly escaped a catastrophy: a page with sensitive personal information ended in a shared cache and was delivered to arbitrary people. This happened despite the fact that the template generating the page contained a response.setHeader('Cache-Control',

Re: [Zope-CMF] [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager

2006-12-18 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-12-17 19:57 +0100: ... I don't know if it is possible to have any sane policy about what to do if the response already has caching headers. First of all, when should this exception policy trigger? Which headers should tell the CPM that someone else already

Re: [Zope-CMF] [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager

2006-12-18 Thread Dieter Maurer
Wichert Akkerman wrote at 2006-12-18 08:38 +0100: Previously Dieter Maurer wrote: The description indicates in what direction the CPM should get fixed: * If the response already provides cache control, the CPM should not override it, as it is likely that the specific information

Re: [Zope-CMF] Re: [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager

2006-12-18 Thread Dieter Maurer
Miles Waller wrote at 2006-12-18 12:57 +: ... At the moment, the CPM fires after rendering, so setting it's own headers and overwriting any headers set in the template. If it fired before rendering, then a template would be free to set whatever policy it wanted. Is there a special reason

Re: [Zope-CMF] Re: [CMF 2.1] FSPageTemplate Unicode

2007-01-07 Thread Dieter Maurer
Martin Aspeli wrote at 2007-1-6 22:06 +: Hanno Schlichting wrote: The idea is to use a specialized persistent component registry, that does the needed AQ-wrapping. This will however only give us AQ-wrapped local utilities, whereas those registered with the global component registry

Re: [Zope-CMF] Re: [CMF 2.1] FSPageTemplate Unicode

2007-01-08 Thread Dieter Maurer
Hanno Schlichting wrote at 2007-1-7 23:42 +0100: Thus, the proposal exhibits an essential example that local utilities should be returned acquisition wrapped (if the have an '__of__' method). Maybe a compromise would be to only return those utilities back acquisition wrapped that where

Re: [Zope-CMF] Re: [CMF 2.1] FSPageTemplate Unicode

2007-01-08 Thread Dieter Maurer
Martin Aspeli wrote at 2007-1-7 23:40 +: ... Why not do it a more Zope3 ish way: class ICMFTool(Interface): Marker for any CMF tool and then in the subclass of the local component registry: local_utility = if ICMFTool.providedBy(local_utility): local_utility =

Re: [Zope-CMF] Re: [CMF 2.1] FSPageTemplate Unicode

2007-01-10 Thread Dieter Maurer
Martin Aspeli wrote at 2007-1-9 20:48 +: - It's an explicit declaration of support As is the definition of __of__. Well, not in a formal sense. I could have some non-Zope python object that I wanted to register as a local utility (to override a global one, say) that could have

Re: [Zope-CMF] Re: Adding python packages to ProductsPath

2007-01-24 Thread Dieter Maurer
yuppie wrote at 2007-1-23 18:55 +0100: ... Yes, I object. This is a hack that resolves the issue just for some special use cases. We need a solution that works with python packages anywhere in the python path. And packageresources

Re: [Zope-CMF] Removing ancient LoginManager-compatibility code

2007-03-12 Thread Dieter Maurer
Jens Vagelpohl wrote at 2007-3-12 10:11 +0100: There's some LoginManager compatibility code in CMFCore.MembershipTool (see __getPUS and addMember) that I would like to remove. LoginManager has gone the way of the Dodo several years ago, I'd say at least 4 years ago. IMHO with this stuff

Re: [Zope-CMF] Derived Content Types WebDAV

2007-03-27 Thread Dieter Maurer
Charlie Clark wrote at 2007-3-27 13:28 +0200: having made my own content type which is derived from Document with three additional attributes, I've moved onto the exciting world of editing content via webDAV. It seems some methods have to be extended/ overwritten for this to work so I have

Re: [Zope-CMF] Re: Delete trouble

2007-03-29 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-3-28 08:16 +0200: ... What makes you think you can make that assumption? This is Zope 2 all over again, where things just have to be there. That won't help making things more flexible. Hiding exceptions (or avoiding them at all costs) might be seen as

Re: [Zope-CMF] Re: [dev] unresolved site manager related issues

2007-04-12 Thread Dieter Maurer
Alec Mitchell wrote at 2007-4-12 06:59 -0700: ... ... deprecation of getToolByName ... which is that there's no practical reason other than aesthetics to deprecate getToolByName at this point. A very good point: let's deprecate deprecations done just for aethetical reasons :-) This still

Re: [Zope-CMF] Re: [dev] unresolved site manager related issues

2007-04-25 Thread Dieter Maurer
Martin Aspeli wrote at 2007-4-15 16:45 +0100: ... Aesthetics were not the original reason for moving down this route, so it's a little unfair to cast it in that light. The main drivers, as I recall, were to encourage API usage that would allow us to move tools out of content space eventually

Re: [Zope-CMF] Re: [dev] unresolved site manager related issues

2007-04-26 Thread Dieter Maurer
Martin Aspeli wrote at 2007-4-25 19:58 +0100: ... If the root of your CMF/Plone site contains content items, they need to avoid collision with magical objects that are there primarily to make our lives easier as programmers (since you can acquire them, and they interact with Zope security

Re: [Zope-CMF] reindexObject updates modification time?

2007-05-29 Thread Dieter Maurer
Darryl Dixon - Winterhouse Consulting wrote at 2007-5-28 22:30 +1200: Which lends even more weight to my original query - why on earth does reindexObject() update the modification time? I can see utterly no reason why it should... When the object is changed, the modification time should be

Re: [Zope-CMF] is there a conflict error resistent index

2007-06-17 Thread Dieter Maurer
Joachim Schmitz wrote at 2007-6-16 13:35 +0200: ... during our recent search for the cause of the many conflict errors, we discovered that nearly all of them where caused during indexing the portal_catalog, when the same values are indexed. This can happen easily with date_indexes, since the

Re: [Zope-CMF] Re: SVN: CMF/branches/2.1/C - changed the way skins are set up, using __before_publishing_traverse__ instead of __of__

2007-06-19 Thread Dieter Maurer
yuppie wrote at 2007-6-18 11:29 +0200: ... Please let me know if you think this checkin causes too much trouble and should be reverted. We are using portals and their skins widely in scripts executed outside of Zope. Especially, they do not use the ZPublisher to traverse to the objects but use

Re: [Zope-CMF] is there a conflict error resistent index

2007-06-19 Thread Dieter Maurer
Perry wrote at 2007-6-18 13:56 +0200: ... I didn't find any application specific conflict resolution in the fieldindex ? Are you saying, that once there is one document created within a review_state, conflict errors for that review_state are very unlikely, even under heavy load. Yes. Due to

RE: [Zope-CMF] Design approach questions: unique content-ish items?

2007-09-17 Thread Dieter Maurer
Doyon, Jean-Francois wrote at 2007-9-17 15:10 -0400: ... But, its more generic purpose is essentially as a utility for the site, at least conceptually. The only difference might be that it's NOT placeless. But utilities for a site have a natural location: the site root. A utility you place

[Zope-CMF] Re: [Zope3-dev] Re: Known working sets II [was: Eggification redux]

2007-09-25 Thread Dieter Maurer
Martijn Faassen wrote at 2007-9-25 17:22 +0200: ... Should we then encourage everyone to hardcode version numbers in their setup.py's dependencies list? I think this goes against building applications from components -- as it drastically increases the probability of conflicts. Components should

Re: [Zope-CMF] Controlling permissions for actions

2007-09-28 Thread Dieter Maurer
Charlie Clark wrote at 2007-9-27 21:33 +0200: ... I'm used to restrictions in the ZODB: I usually put these kind of things in a folder with I then restrict. Can you tell me more about metadata? I always look at the unit tests for the syntax:

Re: [Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

2007-10-19 Thread Dieter Maurer
Joachim Schmitz wrote at 2007-10-19 10:03 +0200: If one iterates over the result of a portal_catalog search, for each brain there are about 8 datetime objects loaded (one for each dateindex), which quickly fills the memory. how can I access only the brain id You can get the brain id via

Re: [Zope-CMF] Move CMF collector to Launchpad (redux)

2007-10-27 Thread Dieter Maurer
Jens Vagelpohl wrote at 2007-10-25 12:37 +0200: ... I personally had one remaining issue, namely the fact that my main browser (OmniWeb) could not display Launchpad at all due to a CSS bug in OW itself. I still have a similar issue: in my browser (Mozilla 1.5), launchpad pages are

Re: [Zope-CMF] Move CMF collector to Launchpad (redux)

2007-10-27 Thread Dieter Maurer
Andreas Jung wrote at 2007-10-27 21:01 +0200: ... I still have a similar issue: in my browser (Mozilla 1.5), launchpad pages are unreadable: almost the complete page is covered by red signs of the form --\. You can solve this by upgrading to a more recent browser. But, I probably will not

Re: [Zope-CMF] change ownership on Zope objects

2008-02-06 Thread Dieter Maurer
Marie Robichon wrote at 2008-2-6 08:42 +0100: One of the administrators of our Plone site has changed services. Given that our user authentication is via LDAP and that this person has write access to some parts of our site I now want to change the ownership of the pages he created in order to

Re: [Zope-CMF] Re: What is the status of GS wiping catalog indexes on catalog.xml import?

2008-02-28 Thread Dieter Maurer
Andreas Jung wrote at 2008-2-28 07:13 +0100: --On 27. Februar 2008 21:59:58 + Maurits van Rees [EMAIL PROTECTED] wrote: greenman, on 2008-02-27: So, for the catalog.xml importer, why can't the trigger for reindexing an index be a flag on the catalog index declaration itself? Is it really

Re: [Zope-CMF] Re: What is the status of GS wiping catalog indexes on catalog.xml import?

2008-02-29 Thread Dieter Maurer
Andreas Jung wrote at 2008-2-29 06:43 +0100: ... When the export handler is able to extract all relevant configuration parameters for an index, why should the import handler not be able to check the configuration parameters in a profile against an existing index and determine that it needs to

Re: [Zope-CMF] How does Zope know the name of the session cookie it should refer to?

2008-04-09 Thread Dieter Maurer
Alex Man wrote at 2008-4-8 13:37 -0700: My apologies if this isn't the correct mailing list I should post this question to. Please let me know if I should post on another list. I'm using Shibboleth as the authentication system in Plone Maybe, the Plone mailing list might be better. and is

[Zope-CMF] CMFCore badly registered on PyPI

2008-05-17 Thread Dieter Maurer
I tried to easy_install CMFCore from PyPI -- this failed. Apparently, CMFCore is only registered on PyPI, not uploaded (this is okay). Moreover, the url registered as home page (http://www.zope.org/Products/CMFCore;) apparently does not exist. I do not think that this is a good sign... --

[Zope-CMF] [GenericSetup] easy_install reports SyntaxError

2008-05-17 Thread Dieter Maurer
easy_installing the current PyPI version of Products.GenericSetup (1.4.0) reports: File /home/dieter/z211/z11python/lib/python2.4/site-packages/Products.GenericSetup-1.4.0-py2.4.egg/Products/GenericSetup/doc/SampleSite/profiles/default/siteroot/bar.py, line 22 return printed SyntaxError:

Re: [Zope-CMF] Re: five.intid and DirectoryView

2008-07-03 Thread Dieter Maurer
Ross Patterson wrote at 2008-6-30 10:34 -0700: ... Creating a savepoint seems to do the trick: from persistent import Persistent import transaction app.pob = Persistent() app.pob._p_oid is None True s = transaction.savepoint() app.pob._p_oid '\x00\x00\x00\x00\x00\x00E\xfa' Would that

Re: [Zope-CMF] CMFActionIcons vs. new-style actions

2008-09-18 Thread Dieter Maurer
yuppie wrote at 2008-9-18 11:13 +0200: ... I personally prefer to move all type info Actions to the actions tool. I can't see a need to specify separate 'view', 'edit' or 'metadata' Actions for each content type. That just makes it necessary to maintain a lot of redundant configuration data.

Re: [Zope-CMF] [dev] 'add' actions and views - a proposal

2008-09-30 Thread Dieter Maurer
yuppie wrote at 2008-9-21 13:48 +0200: ... Proposed CMFCore TypesTool changes -- 7.) listActions of the types tool returns add actions for *all* portal types. +1 - this change is already done, right? Yes. Checked in yesterday. But hopefully, the

Re: [Zope-CMF] MembershipTool: Using traversal to look up the Members folder?

2008-10-11 Thread Dieter Maurer
Jens Vagelpohl wrote at 2008-10-8 14:57 +0200: ... As far as the feature itself is concerned, I've never seen a situation where this is useful or needed. As so often -- we need it :-) Our MembershipTool instance is (together with the portal) in a read only mounted storage while the Members

Re: [Zope-CMF] MembershipTool: Using traversal to look up the Members folder?

2008-10-12 Thread Dieter Maurer
Jens Vagelpohl wrote at 2008-10-11 09:21 +0200: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Oct 11, 2008, at 08:16 , Dieter Maurer wrote: Jens Vagelpohl wrote at 2008-10-8 14:57 +0200: ... As far as the feature itself is concerned, I've never seen a situation where this is useful

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-17 Thread Dieter Maurer
Wichert Akkerman wrote at 2008-11-17 08:21 +0100: ... I'm sure CMF import/export steps are fine. The CMF tools are not, and third party products use those in their steps. That is exactly the problem we where seeing in Plone, and which is why I removed the utility registration. Zope is a Web

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-19 Thread Dieter Maurer
yuppie wrote at 2008-11-18 12:00 +0100: Dieter Maurer wrote: Thus, why do local utilities registered by Five (i.e. these utilities are for Zope2 use) do not provide access to the request in the normal Zope2 way? That's what we tried first. But it turned out that Zope 3's site manager code

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-19 Thread Dieter Maurer
Martin Aspeli wrote at 2008-11-18 16:25 +: ... This won't solve this particular problem, but it may be worth looking at how other frameworks work. Pylons, for example, has the request available as global variable - actually a thread-local. Zope could set the request as a thread local in

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-23 Thread Dieter Maurer
Charlie Clark wrote at 2008-11-20 20:33 +0100: ... Agreed. If third party tools have problems, then they should provide the solutions. The Plone people are much more open to integrate third party solutions (a good thing in principle). But, they have only limited control over third party

Re: [Zope-CMF] CMF write performance as poor as Plone?

2008-11-23 Thread Dieter Maurer
Andreas Jung wrote at 2008-11-21 07:31 +0100: ... write performance ... However the transaction size does not seem to have any impact on the number of simulataneous writes. Have you profiled an individual request to learn what the time is spent for? If the time is dominated by client side

Re: [Zope-CMF] CMF write performance as poor as Plone?

2008-11-23 Thread Dieter Maurer
Andreas Jung wrote at 2008-11-23 09:24 +0100: ... Have you profiled an individual request to learn what the time is spent for? If the time is dominated by client side activity, you need client side skaling to increase the throughput significantly. If, on the other hand, the time is heavily

Re: [Zope-CMF] adding 'context' as an alias for 'object' in action expressions

2008-12-01 Thread Dieter Maurer
Ross Patterson wrote at 2008-11-30 11:25 -0800: ... I'm not really up on the historical considerations, but I'm definitely in favor of context and definitely opposed to object. object is too generic, the request is an object after all, everything is an object. context reads more like what it

Re: [Zope-CMF] Charsets

2008-12-15 Thread Dieter Maurer
Charlie Clark wrote at 2008-12-14 12:32 +0100: Am 13.12.2008 um 18:40 schrieb Charlie Clark: Hi, I'm struggling with the way formlib forms handle decoding from forms. It looks like this gets set in BrowserView using an IUserPreferredCharsets adapter. The default adapter seems to be in

Re: [Zope-CMF] Charsets

2008-12-19 Thread Dieter Maurer
Charlie Clark wrote at 2008-12-19 11:35 +0100: ... Usually, the client will use the charset it has found in the page containing the form. Thus, unless this charset has been determined automatically from the Accept-Charset header, it is merely accidental when the client preferences

Re: [Zope-CMF] Cleaning up imports, question about odd feature

2009-01-06 Thread Dieter Maurer
Charlie Clark wrote at 2008-12-30 13:17 +0100: Am 29.12.2008 um 19:20 schrieb Tres Seaver: As Jens noted, this change is for FSProperties and FSSQLMethods only. Yep, and these aren't generally objects that need to be changed frequently in the FS. But if possible, all FS* objects should

Re: [Zope-CMF] Charsets

2009-01-18 Thread Dieter Maurer
Charlie Clark wrote at 2009-1-18 15:49 +0100: ... I would suggest that we work towards enforcing UTF-8 in where possible but at the very least add the accept-charset attribute to forms and use the portal's default_charset for this. I'd very much appreciate your comments on this. The

Re: [Zope-CMF] Charsets

2009-01-19 Thread Dieter Maurer
yuppie wrote at 2009-1-19 11:32 +0100: Charlie Clark wrote: Am 18.01.2009 um 23:00 schrieb yuppie: I agree that there shouldn't be implemented in a different way than for Zope 3. And if we can solve the problems by fixing form encoding I'm happy. Although I'd like to see UTF-8 always the

Re: [Zope-CMF] Charsets

2009-01-19 Thread Dieter Maurer
Charlie Clark wrote at 2009-1-18 22:30 +0100: Am 18.01.2009 um 20:36 schrieb Dieter Maurer: ... From the current HTML specification: accept-charset = charset list [CI] This attribute specifies the list of character encodings for input data that is accepted by the server processing this form

Re: [Zope-CMF] Charsets

2009-01-24 Thread Dieter Maurer
yuppie wrote at 2009-1-19 22:54 +0100: ... Products.Five.browser.decode.setPageEncoding sets the response content type charset based on zope.publisher.http.HTTPCharsets. And setPageEncoding is called by the update method of formlib forms in Zope 2. So in this case the response encoding has

Re: [Zope-CMF] [dev] five.localsitemanager: dependencies

2009-02-14 Thread Dieter Maurer
Charlie Clark wrote at 2009-2-14 16:22 +0100: ... I'm not that familiar with Buildout but I would have thought that any direct import dependencies should be listed - and zope.location doesn't seem to be (neither are zope.event or zope.site for that matter). OTOH the condition = seems to be

Re: [Zope-CMF] [dev] five.localsitemanager: dependencies

2009-02-16 Thread Dieter Maurer
Tres Seaver wrote at 2009-2-14 20:31 -0500: ... For all its flaws, setuptools fixes a lot of what is horribly broken in distutils: most of the flaws arise from the choice to stay pseudo-compatible with distutils, and reuse it, rather than starting from scratch. But the dependancy handling is

Re: [Zope-CMF] [Checkins] SVN: Products.CMFCalendar/trunk/setup.py - dependency cleanup

2009-02-16 Thread Dieter Maurer
Jens Vagelpohl wrote at 2009-2-16 13:48 +0100: ... Does anyone else have a specific opinion for this case, disregarding the five.localsitemanager discussion? Dependancies should be as loose as possible. If a component uses CMFDefault but only indirectly CMFCore, it should specify

  1   2   >