File: __init__.py

package info (click to toggle)
zope-zpatterns 0.4.3p2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 476 kB
  • ctags: 814
  • sloc: python: 2,817; ansic: 310; makefile: 52; sh: 39
file content (31 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (4)
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
import Rack, Specialists, Customizers, AttributeProviders, SheetProviders
import DataSkins, Agents, Providers, SkinScript

from zLOG import register_subsystem
register_subsystem('ZPatterns')


def initialize(context):

    for m in (
        Rack, Specialists, Customizers, DataSkins, 
        Providers, AttributeProviders, SheetProviders, Agents, SkinScript
        ):
            m.initialize(context)
        
    if hasattr(context,'registerHelp'):
        context.registerHelp()

# The only way to register extra permissions for a ZClass base at present
# Waaaa
__ac_permissions__ = (
    ('Delete rack-mounted objects', ()),
)


# Backward compatibility needed due to the way registerBaseClass makes
# ZClass meta-classes...

from DataSkins import _ZClass_for_DataSkin
_ZClass_for_RackMountable = _ZClass_for_DataSkin  # pre 0.4.0 compatibility