Removed unused ZCML file
authorThierry Florac <thierry.florac@onf.fr>
Wed, 20 May 2015 12:41:37 +0200
changeset 35 ff081a708652
parent 34 b70afbacf63b
child 36 7398e25bad99
Removed unused ZCML file
src/pyams_utils/configure.zcml
src/pyams_utils/text.py
src/pyams_utils/zmi/configure.zcml
--- a/src/pyams_utils/configure.zcml	Wed May 20 12:41:21 2015 +0200
+++ b/src/pyams_utils/configure.zcml	Wed May 20 12:41:37 2015 +0200
@@ -16,14 +16,10 @@
 	<include package="zope.dublincore" />
 	<include package="zope.site" />
 	<include package="zope.traversing" />
+	<include package="zope.location" />
 
 	<include package="z3c.form" />
 	<include package="z3c.pt" />
 	<include package="z3c.ptcompat" />
 
-
-	<configure zcml:condition="installed pyams_zmi">
-		<include package=".zmi" />
-	</configure>
-
 </configure>
--- a/src/pyams_utils/text.py	Wed May 20 12:41:21 2015 +0200
+++ b/src/pyams_utils/text.py	Wed May 20 12:41:37 2015 +0200
@@ -26,8 +26,7 @@
 # import packages
 from pyams_utils.adapter import ContextRequestViewAdapter, adapter_config
 from pyams_utils.request import check_request
-from zope.component import adapter
-from zope.interface import implementer, provider, Interface
+from zope.interface import provider, Interface
 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm, getVocabularyRegistry
 
 
@@ -113,7 +112,7 @@
 class HTMLTalesExtension(ContextRequestViewAdapter):
     """extension:html TALES expression"""
 
-    def render(self, context):
+    def render(self, context=None):
         if context is None:
             context = self.context
         renderer = self.request.registry.queryMultiAdapter((context, self.request, self.view), IHTMLRenderer)
--- a/src/pyams_utils/zmi/configure.zcml	Wed May 20 12:41:21 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-<configure
-		xmlns="http://pylonshq.com/pyramid">
-
-	<include package="pyramid_zcml" />
-
-</configure>