[KSS-checkins] r49302 - in kukit/kss.zope/trunk/kss: core core/pluginregistry zope/bbb
reebalazs at codespeak.net
reebalazs at codespeak.net
Sun Dec 2 21:24:54 CET 2007
Author: reebalazs
Date: Sun Dec 2 21:24:54 2007
New Revision: 49302
Removed:
kukit/kss.zope/trunk/kss/core/kss.core-meta.zcml
kukit/kss.zope/trunk/kss/core/pluginregistry/
Modified:
kukit/kss.zope/trunk/kss/core/configure.zcml
kukit/kss.zope/trunk/kss/core/meta.zcml
kukit/kss.zope/trunk/kss/zope/bbb/configure.py
kukit/kss.zope/trunk/kss/zope/bbb/directives.py
kukit/kss.zope/trunk/kss/zope/bbb/meta.zcml
Log:
Move zcml registry for selectors to bbb.
Modified: kukit/kss.zope/trunk/kss/core/configure.zcml
==============================================================================
--- kukit/kss.zope/trunk/kss/core/configure.zcml (original)
+++ kukit/kss.zope/trunk/kss/core/configure.zcml Sun Dec 2 21:24:54 2007
@@ -5,10 +5,6 @@
<include file="permission.zcml"/>
-
- <!-- This include MUST come first! -->
- <include package=".pluginregistry"/>
-
<!-- javascript testing support
XXX disabled during the transition process
-->
Deleted: /kukit/kss.zope/trunk/kss/core/kss.core-meta.zcml
==============================================================================
--- /kukit/kss.zope/trunk/kss/core/kss.core-meta.zcml Sun Dec 2 21:24:54 2007
+++ (empty file)
@@ -1,3 +0,0 @@
-
-<include package="kss.core" file="meta.zcml" />
-
Modified: kukit/kss.zope/trunk/kss/core/meta.zcml
==============================================================================
--- kukit/kss.zope/trunk/kss/core/meta.zcml (original)
+++ kukit/kss.zope/trunk/kss/core/meta.zcml Sun Dec 2 21:24:54 2007
@@ -1,8 +1,8 @@
<configure
xmlns="http://namespaces.zope.org/meta">
- <!--include package=".configfeature" file="meta.zcml"/-->
-
- <include package=".pluginregistry" file="meta.zcml"/>
+ <!--XXX Noe needed any more. It is left to allow-
+ inclusion from packages like plone.app.kss.
+ -->
</configure>
Modified: kukit/kss.zope/trunk/kss/zope/bbb/configure.py
==============================================================================
--- kukit/kss.zope/trunk/kss/zope/bbb/configure.py (original)
+++ kukit/kss.zope/trunk/kss/zope/bbb/configure.py Sun Dec 2 21:24:54 2007
@@ -26,11 +26,13 @@
registerEventType = registerFor('eventtype')
registerAction = registerFor('action')
registerParamProvider = registerFor('paramprovider')
+registerSelectorType = registerFor('selectortype')
# XXX TODO more meaningful messages here?
## Don't BBB yet. Uncommenting the next three lines will activate BBB.
##registerEventType = deprecated_directive('kss:eventtype', 'use python level registry instead', when)(registerEventType)
##registerAction = deprecated_directive('kss:action', 'use python level registry instead', when)(registerAction)
##registerParamProvider = deprecated_directive('kss:paramprovider', 'use python level registry instead', when)(registerParamProvider)
+##registerSelectorType = deprecated_directive('kss:selectortype', 'use python level registry instead', when)(registerSelectorType)
class BBBKSSRegistrationError(Exception):
pass
Modified: kukit/kss.zope/trunk/kss/zope/bbb/directives.py
==============================================================================
--- kukit/kss.zope/trunk/kss/zope/bbb/directives.py (original)
+++ kukit/kss.zope/trunk/kss/zope/bbb/directives.py Sun Dec 2 21:24:54 2007
@@ -106,3 +106,18 @@
description=u"The interface that does the adaptation on the view for this set",
required=True,
)
+
+class IRegisterSelectorTypeDirective(Interface):
+ 'Register a KSS selector type'
+
+ name = TextLine(
+ title=u"Name",
+ description=u"The name of the selector type plugin.",
+ required=True,
+ )
+
+ jsfile = Path(
+ title=u"Javascript file",
+ description=u"The path of the javascript file that defines the plugin",
+ required=False,
+ )
Modified: kukit/kss.zope/trunk/kss/zope/bbb/meta.zcml
==============================================================================
--- kukit/kss.zope/trunk/kss/zope/bbb/meta.zcml (original)
+++ kukit/kss.zope/trunk/kss/zope/bbb/meta.zcml Sun Dec 2 21:24:54 2007
@@ -27,6 +27,12 @@
handler=".configure.registerCommandSet"
/>
+ <directive
+ name="selectortype"
+ schema=".directives.IRegisterSelectorTypeDirective"
+ handler=".configure.registerSelectorType"
+ />
+
</directives>
</configure>
More information about the Kukit-checkins
mailing list