root/qPloneGoogleMaps/trunk/__init__.py

Revision 534 (checked in by piv, 2 years ago)

added tests, used adapter and browser in maps_topic_view, DEPENDENCY.txt, version.txt, HISTORY.txt and README.txt,

  • Property svn:eol-style set to native
Line 
1 from AccessControl import allow_module
2
3 from Products.CMFCore.DirectoryView import registerDirectory
4 from Products.CMFCore import utils
5
6 from Products.Archetypes.public import process_types
7 from Products.Archetypes import listTypes
8
9 from Products.qPloneGoogleMaps.config import *
10
11 from Products.validation import validation
12
13 from Products.qPloneGoogleMaps.validator import MapFieldValidator
14 validation.register(MapFieldValidator('isLocation'))
15
16 allow_module('Products.qPloneGoogleMaps.config')
17 allow_module('Products.qPloneGoogleMaps.utility')
18
19 registerDirectory(SKINS_DIR, GLOBALS)
20
21 def 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 browser.