root/cpsskins/branches/paris-sprint-2006/locations/configure.zcml

Revision 3547, 1.4 kB (checked in by jmorliaguet, 3 years ago)

- added missing ITerms view for the data source

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <configure
2     xmlns="http://namespaces.zope.org/zope"
3     xmlns:browser="http://namespaces.zope.org/browser">
4
5   <class class=".location.Location">
6
7     <require
8         permission="zope.Public"
9         interface=".interfaces.ILocation"
10     />
11
12     <require
13         permission="zope.ManageContent"
14         set_schema=".interfaces.ILocation"
15     />
16
17   </class>
18
19   <!-- factory -->
20   <utility
21       name="cpsskins.location"
22       component="cpsskins.locations.location.Location"
23       provides="zope.component.interfaces.IFactory"
24   />
25
26   <utility
27      provides="zope.schema.interfaces.IVocabularyFactory"
28      component=".sources.scopesVocabulary"
29      name="location scopes"
30   />
31
32   <!-- Typing -->
33   <interface
34       interface=".interfaces.ILocation"
35       type="cpsskins.elements.interfaces.IElementType"
36   />
37
38   <interface
39       interface=".interfaces.ILocation"
40       type="cpsskins.setup.interfaces.IResourceType"
41   />
42
43   <interface
44       interface=".interfaces.ILocation"
45       type="zope.app.content.interfaces.IContentType"
46   />
47
48   <interface
49       name="location"
50       interface=".interfaces.ILocation"
51       type="cpsskins.setup.interfaces.INameType"
52   />
53
54   <!-- views -->
55   <browser:view
56       provides="zope.app.form.browser.interfaces.ITerms"
57       for="cpsskins.locations.sources.IDataSource"
58       class="cpsskins.locations.sources.DataTerms"
59       permission="zope.ManageContent"
60   />
61
62 </configure>
Note: See TracBrowser for help on using the browser.