~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/zope/app/zptpage/configure.zcml

  • Committer: Sidnei da Silva
  • Date: 2010-07-05 21:07:01 UTC
  • Revision ID: sidnei.da.silva@canonical.com-20100705210701-zmqhqrbzad1mhzsl
- Reduce deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<configure
2
 
    xmlns='http://namespaces.zope.org/zope'
3
 
    i18n_domain='zope'
4
 
    >
5
 
 
6
 
  <interface
7
 
      interface=".interfaces.IZPTPage"
8
 
      type="zope.app.content.interfaces.IContentType"
9
 
      />
10
 
 
11
 
  <class class=".zptpage.ZPTPage">
12
 
    <factory
13
 
        id="zope.app.content.ZPTPage"
14
 
        title="ZPT Page"
15
 
        description="A simple, content-based Page Template"
16
 
        />
17
 
    <require
18
 
        permission="zope.View"
19
 
        attributes="__call__ macros"
20
 
        />
21
 
    <require
22
 
        permission="zope.ManageContent"
23
 
        interface=".interfaces.IZPTPage"
24
 
        set_attributes="source expand evaluateInlineCode content_type"
25
 
        />
26
 
    <require
27
 
        permission="zope.View"
28
 
        interface=".interfaces.IRenderZPTPage"
29
 
        />
30
 
    <implements
31
 
        interface="zope.annotation.interfaces.IAttributeAnnotatable"
32
 
        />
33
 
  </class>
34
 
 
35
 
  <adapter
36
 
      for="zope.site.interfaces.IFolder"
37
 
      provides="zope.filerepresentation.interfaces.IFileFactory"
38
 
      name=".pt"
39
 
      factory=".zptpage.ZPTFactory"
40
 
      permission="zope.ManageContent"
41
 
      />
42
 
 
43
 
  <adapter
44
 
      for=".interfaces.IZPTPage"
45
 
      provides="zope.filerepresentation.interfaces.IReadFile"
46
 
      factory=".zptpage.ZPTReadFile"
47
 
      permission="zope.ManageContent"
48
 
      />
49
 
 
50
 
  <adapter
51
 
      for=".interfaces.IZPTPage"
52
 
      provides="zope.filerepresentation.interfaces.IWriteFile"
53
 
      factory=".zptpage.ZPTWriteFile"
54
 
      permission="zope.ManageContent"
55
 
      />
56
 
 
57
 
  <adapter
58
 
      for=".interfaces.IZPTPage"
59
 
      provides="zope.size.interfaces.ISized"
60
 
      factory=".zptpage.Sized"
61
 
      trusted="y"
62
 
      permission="zope.ManageContent"
63
 
      />
64
 
 
65
 
 
66
 
  <!-- include browser package -->
67
 
 
68
 
  <include package=".browser" />
69
 
 
70
 
</configure>