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

2008-12-01 Thread Ross Patterson
Tres Seaver <[EMAIL PROTECTED]> writes: > yuppie wrote: >> Hi! >> >> >> Laurence Rowe wrote: >>> yuppie wrote: David Glick wrote: > Does anyone have an objection to me adding 'context' as an alias for > 'object' in the expression context that is built when executing CMF > acti

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

2008-11-30 Thread Ross Patterson
yuppie <[EMAIL PROTECTED]> writes: > David Glick wrote: >> Does anyone have an objection to me adding 'context' as an alias for >> 'object' in the expression context that is built when executing CMF >> action expressions (in getExprContext in CMFCore/Expression.py)? This >> would remove one co

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

2008-11-23 Thread Ross Patterson
Tres Seaver <[EMAIL PROTECTED]> writes: > Ross Patterson wrote: >> Tres Seaver <[EMAIL PROTECTED]> writes: >> >>> Andreas Jung wrote: >>>> On 23.11.2008 11:57 Uhr, Charlie Clark wrote: >>>>> Am 23.11.2008 um 09:24 schrieb Andreas

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

2008-11-23 Thread Ross Patterson
Tres Seaver <[EMAIL PROTECTED]> writes: > Andreas Jung wrote: >> On 23.11.2008 11:57 Uhr, Charlie Clark wrote: >>> Am 23.11.2008 um 09:24 schrieb Andreas Jung: >>> This issue is independent of the client-side. ab2 and cmf/plone were running on the same (fast) machine. >>> >>> Is this rea

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

2008-11-19 Thread Ross Patterson
Martin Aspeli <[EMAIL PROTECTED]> writes: > yuppie wrote: >> Hi Dieter! >> >> >> 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 fir

[Zope-CMF] Registering CMF Content Types in ZCML

2008-11-11 Thread Ross Patterson
The CMF 2.1 change logs indicate it's possible to register content in ZCML but I'm not having any luck finding any examples or documentation. I know I've seen it in use in the wild before but I can't remember where that was. Any help would be great, thanks! Ross _

[Zope-CMF] LP #254576: CMFCore.exportimport.content doesn't index results of .properties

2008-09-13 Thread Ross Patterson
>From https://bugs.launchpad.net/zope-cmf/+bug/254576: In CMFCore/exportimport/content.py:201, the title and description for the newly created content are set but nothing is done to reindex the objects so that the catalog will reflect the new values. It seems that the solution migh

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

2008-06-30 Thread Ross Patterson
Laurence Rowe <[EMAIL PROTECTED]> writes: > Ross Patterson wrote: >> Tres Seaver <[EMAIL PROTECTED]> writes: >> >>> Martijn Pieters wrote: >>>> On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >>>>> &q

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

2008-06-28 Thread Ross Patterson
Tres Seaver <[EMAIL PROTECTED]> writes: > Martijn Pieters wrote: >> On Fri, Jun 27, 2008 at 6:53 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >>> "Martijn Pieters" <[EMAIL PROTECTED]> writes: >>>> But the code never does that. When clo

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

2008-06-27 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 10:08 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >> But since the FSObjects provide IPersistent, they can be added to a >> connection. If they're added to a connection, the object

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

2008-06-26 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 7:15 PM, Ross Patterson <[EMAIL PROTECTED]> wrote: >>> I think because they are also used to create TTW skin objects; hit >>> 'customize' on one such object in the skins di

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

2008-06-26 Thread Ross Patterson
"Martijn Pieters" <[EMAIL PROTECTED]> writes: > On Thu, Jun 26, 2008 at 5:26 AM, Ross Patterson <[EMAIL PROTECTED]> wrote: >> This seems wrong in that the object subclasses >> Persistent but is being used in a way that doesn't allow it to be stored

[Zope-CMF] five.intid and DirectoryView

2008-06-25 Thread Ross Patterson
I've run into an interaction between five.intid and Products.CMFCore.DirectoryView a couple of times now. DirectoryView stores instances of Persistent classes (like FSPageTemplate) in a global registry and thus counts on those instances never being added to a ZODB connection. When added to a ZODB

[Zope-CMF] Re: getUtility(ISiteRoot) bug?

2007-03-08 Thread Ross Patterson
yuppie <[EMAIL PROTECTED]> writes: > I'm stuck. In CMFCore.Expression.getExprContext I tried to replace:: > > utool = getUtility(IURLTool) > portal = utool.getPortalObject() > > by:: > > portal = getUtility(ISiteRoot) > > > I can't get this working. The lookup from within g

[Zope-CMF] Re: Abusing GenericSetup during traditional installs

2006-12-05 Thread Ross Patterson
I got tired of reindexing large indexes that were cleared unintelligently by the index import adapters so I wrote the following exportimport.pluginindexes and overrides.zcml. I'm posting them here in case anyone wants to use the code. This doesn't handle reindexing indexes when it's needed but it