Sune B. Woeller wrote at 2005-3-30 22:22 +0200:
> ...
>The script is set to be called after a transition.
>
>Without proxy roles the
>script runs fine.
>If this script gets the proxy role manager (or all roles except anonymous),
>it fails, it has not got access to 'object'.
> ...
>Unauthorized: The
[EMAIL PROTECTED] wrote at 2005-4-1 17:43 -0500:
> ...
>So for instance I have a CMF root at /site/atlas ... This works fine. The
>view is "root_view" (A FS based PT in the skins).
>
>If I do /site/atlas/en or /site/atlas/fr, I get something entirely
>unexpected.
It might help to explain what you
[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
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
Truong Trung Trang wrote at 2005-4-5 10:57 +0700:
> ...
>I'm doing a project of CMS with Zope and Plone. I'd like to understand
>clearly the architecture of Zope but I think that's a hard work for me. It
>will much easier if I have the documentation about how did Zope corporation
>design it, the mo
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
___
Zop
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
Petri Savolainen wrote at 2005-4-20 12:19 -0700:
> ...
>The question becomes, does CMF 1.4.x / do its content types fully
>support using unicode?
There is only very limited unicode support.
ZPublisher supports a set of "unicode" type conversions (causing
UTF-8 encoded data to be converted to uni
Duncan Booth wrote at 2005-4-12 13:38 +:
> ...
>>>Unauthorized: The owner of the executing script is defined outside the
>>>context of the object being accessed.
> ...
>A very expressive but not terribly useful error message!
>
>I just had exactly the same error message (except obviously for t
Konstantin E. Steuck wrote at 2005-4-21 16:20 +0700:
> ...
>While browsing thru DCWorkflow docs I thought I found perfect way to do
>this by creating state variable called 'user' and setting it to whatever
>I need. Then guard expression checks if current user is the one who has
>been assigned to
Tres Seaver wrote at 2005-4-25 15:11 -0400:
> ...
>> So it's hard to measure performance. But in general most time is spent
>> in expressions and in the WorkflowTool. Within the WorkflowTool,
>> worklists are by far the most expensive Actions.
>
>... because they involve catalog queries. We could
Konstantin E. Steuck wrote at 2005-5-6 18:12 +0700:
>Dieter Maurer wrote:
>> "WorkflowTool.getInfoFor" is the method designed to access
>> workflow variables.
>Thanks for your reply.
>Well, it doesn't work either. Whenever I put
>'python:state_change.wo
KLEIN Stéphane wrote at 2005-5-6 09:50 +0200:
>I'm intriged to how working the skin. When I call foo/index.html how/who
>call skins/plone_templates/index.pt ?
The "SkinsTool" manages a set of skins. Each skin
is a name lookup device consisting of various layes which
are themselves lookup devices.
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']
> )
> ...
>
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 organiz
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
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-
Dmitry S. Makovey wrote at 2005-6-2 10:27 -0600:
>I've got workflow which runs script upon transition. At some point In
>that script I'm trying to get info on what state I'm in via:
>st=getattr(state_change,'new_state')
>and it appears to be working only with 'Manager' role which mean that
>I hav
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
Carl Rendell wrote at 2005-6-3 10:53 -0700:
> ...
>In a multi CMF / Plone zope instance local acl_users are not getting
>any transaction history from which to undo (undo_form returns no
>results).
>
>So long as the user is in the acl_user folder at the parent level
>(main zope instance) they
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 p
Jens Vagelpohl wrote at 2005-6-20 11:48 +0100:
> ...
>I support that statement. In my opinion it is unacceptable to make
>this change on the CMF 1.5 branch at this point. If there is a
>problem, please change the software that relies on the old behavior
>instead.
The new behaviour was ill co
yuppie wrote at 2005-6-20 11:56 +0200:
> ...
>PortalFolder is not just a base class, it's *the* folder class used in
>CMFDefault. Subclasses can mix in OrderSupport, but that has no effect
>on PortalFolder instances.
Maybe, we should change this:
"PortalFolder" is not part of "CMFDefault" but
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 clas
Christian Heimes wrote at 2005-6-20 20:19 +0200:
>Dieter Maurer wrote:
>> The new behaviour was ill conceived (it missed the need
>> for portal folders without order support as exemplified
>> by "CMFBTreeFolder").
>>
>> We now notice this bug. It s
yuppie wrote at 2005-6-26 19:32 +0200:
> ...
>BTW: I'm not at all happy with the worklist Actions.
They are very useful.
>They are very
>expensive and specialized.
They can be made *MUCH* faster by using "ZCatalog.searchResults(catalog, ...)"
rather than "catalog.searchResults(...)" when "catal
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 ?
chris wrote at 2005-7-1 13:54 -0700:
>I'm trying to upgrade CMF, and when I try upgrading from CMF 1.2 to 1.3
>or later I start getting KeyError: portal_url. From what I gather, the
>CMF URL Tool was moved from CMF Default to CMF Core, and I need to
>delete the portal_url object and recreate it und
Florent Guillaume wrote at 2005-7-1 20:43 +0200:
> ...
>The problem is on import, you don't really know if a non-ascii string
>should be stored as unicode or as an encoded str. And the software
>may break if it gets something it doesn't expect...
That's why the whole Python world including Zop
Florent Guillaume wrote at 2005-7-4 15:01 +0200:
>Dieter Maurer <[EMAIL PROTECTED]> wrote:
>> Florent Guillaume wrote at 2005-7-1 20:43 +0200:
>> > ...
>> >The problem is on import, you don't really know if a non-ascii string
>> >should be
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
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 "UndoTo
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'
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 an
Florent Guillaume wrote at 2005-8-4 17:03 +0200:
>I'm willing to fix it if someone explains *why* the patch is needed.
>What code actually adds a username and space in the path. Is that part of
>what's written in the transaction description? Is it something CMF adds?
It is "Zope.App.startup.Transa
yuppie wrote at 2005-8-9 19:11 +0200:
> ...
>2.) Using different domains for different products:
>
>While 'cmf_default' should be used by the core products (CMFCore,
>CMFDefault, CMFTopic, CMFSetup) I'd like to use 'cmf_calendar' for
>CMFCalendar.
Can we give "CMFCore" its own domain?
We would
yuppie wrote at 2005-8-11 09:36 +0200:
> ...
>> Can we give "CMFCore" its own domain?
>>
>> We would like to use "CMFCore" without any reference to
>> "CMFDefault".
>>
>
>Are you concerned about imports from CMFDefault or do you see a need to
>ship CMFCore with its own translations?
We build ap
computing project wrote at 2005-8-19 23:03 +:
>I'd like to change the way that the catalog is implemented slightly, to
>allow tools other than the workflow tool to provide variables to the
>catalog. I'm happy to submit the code + tests if everyone's
>happy/interested.
I like your proposal.
Laurence Rowe wrote at 2005-8-22 17:04 +0100:
> ...
>I often define several skins, and after a while they get a little
>complicated (I'm using Plone ;-) So in order to make my life easier I
>thought it would be nice to be able to define a skin 'Foo' like:
>
>foo_skin
>
>
>This would then get expa
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
Florent Guillaume wrote at 2005-9-6 15:30 +0200:
> ...
>Of course if you directly serve content objects from the cache, which
>is explicitely unsupported and not recommended...
Where did you find this information ("*explicitely* unsupported").
--
Dieter
Jens Vagelpohl wrote at 2005-9-8 11:41 +0100:
>
>On 8 Sep 2005, at 11:08, yuppie wrote:
> ...
>Geoff, can you double-
>check that the email address you have in your zope.org membership is
>correct and then subscribe to the cmf-checkins list? That should make
>any further check-in messages appe
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 = Products.CMFTopi
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 stri
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')
>
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
Victor Safronovich wrote at 2005-10-17 13:10 +0600:
> ...
>By the way i think code:
>for w in wfs:
>w.notifySuccess(ob, action, res)
>if reindex:
>self._reindexWorkflowVariables(ob)
>in _invokeWithNotification should be turn upside-down to:
>if reind
yuppie wrote at 2005-10-17 15:24 +0200:
> ...
>I don't think so:
>
>1.) If you start rendering the default view before the controller has
>finished you need extra code to abort the rendering if necessary. E.g. a
>tal:condition that wraps the whole template.
>
>2.) A cleaner separation of controll
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 inte
Rui Gamito wrote at 2005-11-3 14:46 +:
> ...
> * Module Products.PluginIndexes.common.UnIndex, line 247, in
>_index_object
> * Module Products.PluginIndexes.common.UnIndex, line 205, in
>insertForwardIndexEntry
>AttributeError: _length
A migration bug introduced in Zo
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 t
Chris Withers wrote at 2005-11-11 09:05 +:
>Tres Seaver wrote:
>> Log message for revision 40036:
>> Avoid using __file__ where possible.
>
>Why? I use this all over the place so need to know why it's bad ;-)
Back in April, I implemented for our local Zope version
to be run from a Zip archiv
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 h
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&quo
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 prop
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
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_ti
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
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 "Z
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
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
cla
yuppie wrote at 2006-3-20 18:17 +0100:
> ...
>But I gave up my attempt to fix this in the Zope layer because the
>related discussion on zope-dev ended without a clear result.
There was a clear result: make the id checker policy configurable --
as Zope 3 does.
>I hope there are no objections agai
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 sh
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: _
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
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 onl
Jens Vagelpohl wrote at 2006-4-8 11:07 +0100:
> ...
>On 2 Apr 2006, at 20:36, Dieter Maurer wrote:
>
>> Yuppie already has considerable sped up "listFilteredActionsFor"
>> for CMF 1.5. However, even after his optimizations
>> "listFilteredActionsFor"
George Lee wrote at 2006-4-11 03:25 +:
> ...
>When I click on a link with href "#bluh" on a page, it often adds a /#bluh to
>the page.
I think, not Zope but the browsers are to blame.
The "uri" spec dictates that empty urls (apart from the fragment part)
reference the current document.
Browse
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
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 com
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 obj
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
Rocky Burt wrote at 2006-7-9 10:11 -0230:
> ...
>If we're changing how the keys look, why not simply use full package
>names in front with relative paths after the first slash (although I
>might prefer a colon or something in place of the first slash).
>
>So the new keys would be:
> "Products.MyPr
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 t
Norbert Marrale wrote at 2006-8-2 17:20 -0400:
>Is there a less expensive way to return case insensitive results when
>querying portal_membership? (Zope 2.7.5-final / CMF 1.5.5)
The easiest way is to already store the member names lowercase normalized...
--
Dieter
Norbert Marrale wrote at 2006-8-3 15:22 -0400:
>Upon their initial registration, many users entered their email address
>in upper or mixed case. The email > username(s) lookup is meant to
>alleviate the number of support requests, allowing members to receive
>password reminders even if they forg
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 (member==strin
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
Miles Waller wrote at 2006-8-14 09:41 +0100:
> ...
>This is definitely a bug: just returning the result of
>portal_actions.listFilteredActions( object ) yields different results
>depending on whether it is done in a python script or a dtml method.
It will not depend on the type of the object (Py
Florent Guillaume wrote at 2006-9-4 20:38 +0200:
>I'd say it would be cleaner to let the .metadata specify its own encoding,
>for instance with a
># coding: utf-8
>at the top, and pasrse that in FSMetadata.
I find this a good suggestions -- but would use the declaration syntax
used also in (e.g.)
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 w
Dmitry S. Makovey wrote at 2006-9-15 09:04 -0600:
> ...
>> I have defined CMF-aware ZODB object types. The one for "File"
>> looks like this:
>>
>> # DM 2005-11-02: added
>> """ CMF 'File' variant (CMF Cache Policy Manager aware)"""
>...skip...
>
>Dieter, are you saying that it's fixed somwhere in
Miles Waller wrote at 2006-10-11 16:34 +0100:
> ...
>output_page_2:
>==
>Here is the subtitle from template 2
>
>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 /output_page_1
>
>4. Not
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_pa
Wichert Akkerman wrote at 2006-10-13 15:48 +0200:
>Previously yuppie wrote:
>> Some people still use email clients that don't support utf-8. So you
>> might have a policy to send iso-8859-1 emails even if your content is
>> utf-8 encoded. At a later point you might want to change that policy.
>
>
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 s
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',
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
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
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
Andreas Jung wrote at 2006-12-20 19:34 +0100:
> ...
>Right. The pt_render() should return unicode only. Let's assume
>FSPageTemplates would use unicode internally and a customized copy (an
>instance of ZopePageTemplate) wouldn't then we would definitely run
>into UnicodeDecode errors. That's why
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 re
Martin Aspeli wrote at 2007-1-6 22:22 +:
>
> - Registering the portal as a utility that can be obtained by
>getUtility(IPortalRoot) is pretty good practice; in my estimation, that
>should solve all the use cases for utilities where acquisition is used
>now and where we're not really af
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 tha
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 =
Martin Aspeli wrote at 2007-1-8 21:35 +:
> ...
>No, no need, but I'd argue good reasons.
>
> - It's an explicit declaration of support
As is the definition of "__of__".
> - It's a lot less magic
I do not follow you:
Where is the magic with "if hasattr(local_utilitiy, '__of__')"
compar
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
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"
(http://www.handshake.de/~dieter/pyprojects/packageresourc
Miles wrote at 2007-2-14 14:10 +:
> ...
>I'd like my workflow to be notified when an object is deleted, so it has
>the chance to veto deletion, or do some tidy-up on related objects.
>However at the moment, the workflow tool is not wired up to react to
>deletion at all.
You might be able to
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 t
1 - 100 of 154 matches
Mail list logo