source: products/qPloneGoogleMaps/tags/0.1.0/__init__.py

Last change on this file was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 998 bytes
Line 
1from AccessControl import allow_module
2
3from Products.CMFCore.DirectoryView import registerDirectory
4from Products.CMFCore import utils
5
6from Products.Archetypes.public import process_types
7from Products.Archetypes import listTypes
8
9from Products.qPloneGoogleMaps.config import *
10
11from Products.validation import validation
12
13from Products.qPloneGoogleMaps.validator import MapFieldValidator
14validation.register(MapFieldValidator('isLocation'))
15
16allow_module('Products.qPloneGoogleMaps.config')
17allow_module('Products.qPloneGoogleMaps.utility')
18
19registerDirectory(SKINS_DIR, GLOBALS)
20
21def initialize(context):
22    from content import Map, Marker, Overlay
23
24    content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME)
25
26    utils.ContentInit(PROJECTNAME + ' Content',
27        content_types      = content_types,
28        permission         = DEFAULT_ADD_CONTENT_PERMISSION,
29        extra_constructors = constructors,
30        fti                = ftis).initialize(context)
Note: See TracBrowser for help on using the repository browser.