[Zope3-checkins] SVN: Zope3/trunk/src/ Factory ids have to be real
ids now, i.e. they need to contain at
Philipp von Weitershausen
philikon at philikon.de
Wed Aug 11 14:09:32 EDT 2004
Log message for revision 27007:
Factory ids have to be real ids now, i.e. they need to contain at
least a dot or be a URI.
Changed:
U Zope3/trunk/src/bugtracker/configure.zcml
U Zope3/trunk/src/z3checkins/configure.zcml
U Zope3/trunk/src/zope/app/component/metadirectives.py
U Zope3/trunk/src/zope/app/component/tests/test_contentdirective.py
U Zope3/trunk/src/zope/app/component/tests/test_directives.py
U Zope3/trunk/src/zope/app/component/tests/test_factory.py
U Zope3/trunk/src/zope/app/dtmlpage/configure.zcml
U Zope3/trunk/src/zope/app/errorservice/configure.zcml
U Zope3/trunk/src/zope/app/folder/configure.zcml
U Zope3/trunk/src/zope/app/i18n/configure.zcml
U Zope3/trunk/src/zope/app/i18nfile/configure.zcml
U Zope3/trunk/src/zope/app/presentation/zpt.zcml
U Zope3/trunk/src/zope/app/principalannotation/configure.zcml
U Zope3/trunk/src/zope/app/rotterdam/ftests.py
U Zope3/trunk/src/zope/app/sqlscript/configure.zcml
U Zope3/trunk/src/zope/app/workflow/configure.zcml
U Zope3/trunk/src/zope/app/workflow/stateful/configure.zcml
U Zope3/trunk/src/zope/app/workflow/stateful/testobject.zcml
U Zope3/trunk/src/zope/app/zptpage/configure.zcml
-=-
Modified: Zope3/trunk/src/bugtracker/configure.zcml
===================================================================
--- Zope3/trunk/src/bugtracker/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/bugtracker/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -163,7 +163,7 @@
interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
<factory
- id="BugTracker"
+ id="bugtracker.BugTracker"
title="Bug Tracker"
description="A Bug Tracker" />
@@ -231,7 +231,7 @@
interface="zope.app.container.interfaces.IContentContainer" />
<factory
- id="Bug"
+ id="bugtracker.Bug"
title="Bug"
description="A Bug" />
@@ -309,7 +309,7 @@
interface="zope.app.annotation.interfaces.IAttributeAnnotatable"/>
<factory
- id="BugComment"
+ id="bugtracker.BugComment"
title="Comment"
description="A comment about the bug." />
Modified: Zope3/trunk/src/z3checkins/configure.zcml
===================================================================
--- Zope3/trunk/src/z3checkins/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/z3checkins/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -40,7 +40,7 @@
<require permission="zope.View"
interface=".interfaces.ICheckinFolderSchema" />
- <factory id="CheckinFolder"
+ <factory id="z3checkins.CheckinFolder"
title="Checkin Folder"
description="A checkin folder" />
Modified: Zope3/trunk/src/zope/app/component/metadirectives.py
===================================================================
--- Zope3/trunk/src/zope/app/component/metadirectives.py 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/component/metadirectives.py 2004-08-11 18:09:32 UTC (rev 27007)
@@ -255,7 +255,7 @@
required=True
)
- id = zope.schema.TextLine(
+ id = zope.schema.Id(
title=u"ID",
required=False
)
@@ -441,7 +441,7 @@
class IFactorySubdirective(zope.interface.Interface):
"""Specify the factory used to create this content object"""
- id = zope.schema.TextLine(
+ id = zope.schema.Id(
title=u"ID",
description=u"""
the identifier for this factory in the ZMI factory
Modified: Zope3/trunk/src/zope/app/component/tests/test_contentdirective.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/test_contentdirective.py 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/component/tests/test_contentdirective.py 2004-08-11 18:09:32 UTC (rev 27007)
@@ -146,15 +146,15 @@
<permission id="zope.Foo" title="Zope Foo Permission" />
<content class="zope.app.component.tests.exampleclass.ExampleClass">
- <factory
- id="Example"
+ <factory
+ id="test.Example"
title="Example content"
description="Example description"
- />
+ />
</content>
""")
xmlconfig(f)
- factory = zapi.getUtility(IFactory, 'Example')
+ factory = zapi.getUtility(IFactory, 'test.Example')
self.assertEquals(factory.title, "Example content")
self.assertEquals(factory.description, "Example description")
@@ -183,14 +183,14 @@
f = configfile("""
<content class="zope.app.component.tests.exampleclass.ExampleClass">
<factory
- id="Example"
+ id="test.Example"
title="Example content"
description="Example description"
/>
</content>
""")
xmlconfig(f)
- factory = zapi.getUtility(IFactory, 'Example')
+ factory = zapi.getUtility(IFactory, 'test.Example')
self.assert_(hasattr(factory, '__Security_checker__'))
Modified: Zope3/trunk/src/zope/app/component/tests/test_directives.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/test_directives.py 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/component/tests/test_directives.py 2004-08-11 18:09:32 UTC (rev 27007)
@@ -893,14 +893,14 @@
xmlconfig(StringIO(template % (
'''
<factory
- id="foo"
+ id="foo.bar"
component="zope.app.component.tests.factory.f"
/>
'''
)))
from factory import X
- self.assertEqual(zapi.createObject(None, 'foo').__class__, X)
+ self.assertEqual(zapi.createObject(None, 'foo.bar').__class__, X)
def test_suite():
return unittest.TestSuite((
Modified: Zope3/trunk/src/zope/app/component/tests/test_factory.py
===================================================================
--- Zope3/trunk/src/zope/app/component/tests/test_factory.py 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/component/tests/test_factory.py 2004-08-11 18:09:32 UTC (rev 27007)
@@ -57,13 +57,13 @@
<permission id="zope.Foo" title="Zope Foo Permission" />
<content class="zope.app.component.tests.exampleclass.ExampleClass">
<factory
- id="Example"
+ id="test.Example"
title="Example content"
description="Example description"
/>
</content>''')
xmlconfig(f)
- obj = createObject(None, 'Example')
+ obj = createObject(None, 'test.Example')
obj = removeAllProxies(obj)
self.failUnless(isinstance(obj, ExampleClass))
Modified: Zope3/trunk/src/zope/app/dtmlpage/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/dtmlpage/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -11,7 +11,7 @@
<content class=".dtmlpage.DTMLPage">
<factory
- id="DTMLPage"
+ id="zope.app.DTMLPage"
title="DTML Page"
description="A simple, content-based DTML Page"
/>
Modified: Zope3/trunk/src/zope/app/errorservice/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/errorservice/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/errorservice/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -9,7 +9,7 @@
<content class=".ErrorReportingService">
<factory
- id="ErrorLogging"
+ id="zope.app.ErrorLogging"
/>
<require
permission="zope.Public"
Modified: Zope3/trunk/src/zope/app/folder/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/folder/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/folder/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -10,7 +10,7 @@
<content class=".folder.Folder">
<factory
- id="Folder"
+ id="zope.app.content.Folder"
title="Folder"
description="Minimal folder"
/>
Modified: Zope3/trunk/src/zope/app/i18n/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18n/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/i18n/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -19,7 +19,7 @@
<content
class=".translationdomain.TranslationDomain">
<factory
- id="TranslationService"
+ id="zope.app.TranslationService"
/>
<implements
interface="zope.app.utility.interfaces.ILocalUtility"
@@ -60,8 +60,9 @@
</content>
<factory
- component="zope.app.i18n.messagecatalog.MessageCatalog"
- id="Message Catalog"/>
+ component="zope.app.i18n.messagecatalog.MessageCatalog"
+ id="zope.app.MessageCatalog"
+ />
<!-- Setup Export and Import Filters -->
Modified: Zope3/trunk/src/zope/app/i18nfile/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18nfile/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/i18nfile/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -20,7 +20,7 @@
<content class=".i18nfile.I18nFile">
<factory
- id="I18nFile"
+ id="zope.app.content.I18nFile"
title="I18n File"
description="An Internationalized File"
/>
@@ -47,7 +47,7 @@
<content class=".i18nimage.I18nImage">
<factory
- id="I18nImage"
+ id="zope.app.content.I18nImage"
title="I18n Image"
description="An Internationalized Image"
/>
Modified: Zope3/trunk/src/zope/app/presentation/zpt.zcml
===================================================================
--- Zope3/trunk/src/zope/app/presentation/zpt.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/presentation/zpt.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -8,8 +8,8 @@
<content class=".zpt.ZPTTemplate">
<factory
- title="ZPT Template"
- description="Page Template"
+ title="zope.app.ZPTTemplate"
+ description="Persistent View Page Template"
/>
<require
permission="zope.View"
Modified: Zope3/trunk/src/zope/app/principalannotation/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/principalannotation/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/principalannotation/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -9,7 +9,7 @@
<content class=".PrincipalAnnotationService">
<factory
- id="IPrincipalAnnotationService"
+ id="zope.app.PrincipalAnnotationService"
/>
<require
permission="zope.Public"
Modified: Zope3/trunk/src/zope/app/rotterdam/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/rotterdam/ftests.py 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/rotterdam/ftests.py 2004-08-11 18:09:32 UTC (rev 27007)
@@ -22,23 +22,23 @@
def testnavtree(self):
# Add some folders
response = self.publish("/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'First'})
self.assertEqual(response.getStatus(), 302)
response = self.publish("/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'S&econd'})
self.assertEqual(response.getStatus(), 302)
response = self.publish("/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'Third'})
self.assertEqual(response.getStatus(), 302)
response = self.publish("/First/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'Firsts"Folder'})
self.assertEqual(response.getStatus(), 302)
response = self.publish("/First/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'somesite'})
self.assertEqual(response.getStatus(), 302)
@@ -66,7 +66,7 @@
tree = minidom.parseString(response.getBody())
response = self.publish("/First/+/action.html", basic='mgr:mgrpw',
- form={'type_name':u'Folder',
+ form={'type_name':u'zope.app.content.Folder',
'id':u'Firsts2ndFolder'})
self.assertEqual(response.getStatus(), 302)
Modified: Zope3/trunk/src/zope/app/sqlscript/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/sqlscript/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/sqlscript/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -21,7 +21,7 @@
<content class=".sqlscript.SQLScript">
<factory
- id="SQLScript"
+ id="zope.app.content.SQLScript"
title="SQL Script"
description="A content-based script to execute dyanmic SQL."
/>
Modified: Zope3/trunk/src/zope/app/workflow/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/workflow/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/workflow/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -29,7 +29,7 @@
<content class="zope.app.workflow.definition.ProcessDefinition">
<factory
- id="ProcessDefinition"
+ id="zope.app.workflow.ProcessDefinition"
/>
<implements
interface="zope.app.utility.interfaces.ILocalUtility"
Modified: Zope3/trunk/src/zope/app/workflow/stateful/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/workflow/stateful/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -5,7 +5,7 @@
<content
class=".definition.StatefulProcessDefinition">
<factory
- id="StatefulProcessDefinition"
+ id="zope.app.workflow.StatefulProcessDefinition"
/>
<implements
interface="zope.app.utility.interfaces.ILocalUtility"
@@ -29,7 +29,7 @@
<content class=".definition.StatesContainer">
<factory
- id="StatefulStatesContainer"
+ id="zope.app.workflow.StatefulStatesContainer"
/>
<require
permission="zope.workflow.ManageProcessDefinitions"
@@ -44,7 +44,7 @@
<content class=".definition.State">
<factory
- id="StatefulState"
+ id="zope.app.workflow.StatefulState"
/>
<require
permission="zope.workflow.ManageProcessDefinitions"
@@ -64,7 +64,7 @@
<content class=".definition.TransitionsContainer">
<factory
- id="StatefulTransitionsContainer"
+ id="zope.app.workflow.StatefulTransitionsContainer"
/>
<require
permission="zope.workflow.ManageProcessDefinitions"
@@ -79,7 +79,7 @@
<content class=".definition.Transition">
<factory
- id="StatefulTransition"
+ id="zope.app.workflow.StatefulTransition"
/>
<require
permission="zope.workflow.ManageProcessDefinitions"
@@ -96,7 +96,7 @@
<content
class=".contentworkflow.ContentWorkflowsManager">
<factory
- id="ContentWorkflowsManager"
+ id="zope.app.workflow.ContentWorkflowsManager"
/>
<implements
Modified: Zope3/trunk/src/zope/app/workflow/stateful/testobject.zcml
===================================================================
--- Zope3/trunk/src/zope/app/workflow/stateful/testobject.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/workflow/stateful/testobject.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -12,7 +12,7 @@
"zope.app.workflow.interfaces.IProcessInstanceContainerAdaptable"/>
<factory
- id="TestObject"
+ id="zope.app.workflow.TestObject"
permission="zope.ManageContent"
title="Test Object"
description="Test Object" />
Modified: Zope3/trunk/src/zope/app/zptpage/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/zptpage/configure.zcml 2004-08-11 18:08:28 UTC (rev 27006)
+++ Zope3/trunk/src/zope/app/zptpage/configure.zcml 2004-08-11 18:09:32 UTC (rev 27007)
@@ -10,7 +10,7 @@
<content class=".zptpage.ZPTPage">
<factory
- id="ZPTPage"
+ id="zope.app.content.ZPTPage"
title="ZPT Page"
description="A simple, content-based Page Template"
/>
More information about the Zope3-Checkins
mailing list