Hi All,
Am I right in thinking there's no generic way to provide global
utilities that require configuration using zcml?
If I'm wrong, can someone please tell me how ;-)
Otherwise, would it be possible to get the following to work:
utility
factory=blah
paramabc/param
param
Nikolay Kim wrote:
you can create utility in python file and then use component=
for example utility.py:
class Utility(object):
pass
myUtility = Utility()
configure.zcml:
utility name=myUtility component=.utility.myUtility /
I'm aware of this but it kind of defeats the idea of
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
Chris
--
Simplistix - Content Management, Zope Python Consulting
-
Hi,
Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
disagree, that sounds
Robert Niederreiter wrote:
Hi,
Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
Summary of messages to the zope-tests list.
Period Mon Aug 4 11:00:00 2008 UTC to Tue Aug 5 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.
Tests passed OK
---
Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Mon Aug 4 20:53:42 EDT 2008
URL:
Chris Withers wrote:
Nikolay Kim wrote:
you can create utility in python file and then use component=
for example utility.py:
class Utility(object):
pass
myUtility = Utility()
configure.zcml:
utility name=myUtility component=.utility.myUtility /
I'm aware of this but it kind of
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
___
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross
Chris Withers wrote:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code
and configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
It's not. It's in fact relatively easy to write a custom utility
directive
I'm wondering why there are several versions of packages in
controlled-packages.cfg? Isn't the KGS supposed to point to a fixed set of
unique versions ?
I'm asking because I think it's completely impossible to test every combination
of packages:
Imagine the controlled-packages.cfg is
On Tue, Aug 05, 2008 at 04:05:07PM +0200, Christophe Combelles wrote:
I'm wondering why there are several versions of packages in
controlled-packages.cfg? Isn't the KGS supposed to point to a fixed set of
unique versions ?
I asked srichter on IRC about this, and my understanding is that
*
I have an interesting problem in the world of Zope 2 and zcml: CMFCore
registers an handleDynamicTypeCopiedEvent subscriber which does
something that I want to prevent at all costs, so I am trying to make
sure it is not subscriber. That appears to be impossible!
I can not unsubscribe it, since
Something seems to be wrong with zope.app.authentication 3.4.2 and
zope.app.container 3.5.5 eggs:
Test-module import failures:
Module: zope.app.authentication.tests
ValueError: line 13 of the docstring for principalfolder.txt has
inconsistent leading whitespace: '\r'
Module:
Marius Gedminas wrote:
Ideas? Eggs built on Windows? Missing svn:eol-style=native properties? Mixed
\n and \r\n line endings?
Probably mixed line endings.
It's a shame doctest is so fragile to this...
Chris
--
Simplistix - Content Management, Zope Python Consulting
-
Tres Seaver wrote:
Log message for revision 89399:
Pin / fix up dependencies based on comparison with monolith.
Thanks for picking this up!
I do, however, strongly object to pinning versions of dependencies in
setup.py like this. What's the point of eggifying Zope 2 in the first
place
Marius Gedminas a écrit :
Something seems to be wrong with zope.app.authentication 3.4.2 and
zope.app.container 3.5.5 eggs:
Test-module import failures:
Module: zope.app.authentication.tests
ValueError: line 13 of the docstring for principalfolder.txt has
inconsistent leading
Philipp von Weitershausen a écrit :
Tres Seaver wrote:
Log message for revision 89399:
Pin / fix up dependencies based on comparison with monolith.
Thanks for picking this up!
I do, however, strongly object to pinning versions of dependencies in
setup.py like this. What's the point of
Wichert Akkerman wrote:
I have an interesting problem in the world of Zope 2 and zcml: CMFCore
registers an handleDynamicTypeCopiedEvent subscriber which does
something that I want to prevent at all costs, so I am trying to make
sure it is not subscriber. That appears to be impossible!
I can
18 matches
Mail list logo