summaryrefslogtreecommitdiff
path: root/src/zope/traversing/browser/configure.zcml
blob: 197d0fe57527819ac89e528a16b3a06c4dc94bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser">

  <include file="meta.zcml" package="zope.component" />

  <view
      for="*"
      name="absolute_url"
      factory=".AbsoluteURL"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      permission="zope.Public"
      allowed_interface=".interfaces.IAbsoluteURL"
      />

  <view
      for="*"
      factory=".AbsoluteURL"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      permission="zope.Public"
      provides=".interfaces.IAbsoluteURL"
      />

  <view
      for="zope.location.interfaces.IRoot"
      name="absolute_url"
      factory=".SiteAbsoluteURL"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      permission="zope.Public"
      allowed_interface=".interfaces.IAbsoluteURL"
      />

  <view
      for="zope.location.interfaces.IRoot"
      factory=".SiteAbsoluteURL"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      permission="zope.Public"
      provides=".interfaces.IAbsoluteURL"
      />

  <view
      for="*"
      name="absolute_url"
      factory=".AbsoluteURL"
      type="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
      permission="zope.Public"
      />

  <class class=".AbsoluteURL">
    <allow interface=".interfaces.IAbsoluteURL" />
  </class>

  <view
      for="zope.location.interfaces.IRoot"
      name="absolute_url"
      factory=".SiteAbsoluteURL"
      type="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
      permission="zope.Public"
      />

  <class class=".SiteAbsoluteURL">
    <allow interface=".interfaces.IAbsoluteURL" />
  </class>

</configure>