Changeset 196 for ATGoogleMaps/branches/for-plone30/content/GMap.py
- Timestamp:
- 11/08/08 16:39:03 (3 years ago)
- File:
-
- 1 edited
-
ATGoogleMaps/branches/for-plone30/content/GMap.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ATGoogleMaps/branches/for-plone30/content/GMap.py
r193 r196 27 27 from Products.ATGoogleMaps.LatLngField import LatLngField 28 28 from Products.ATGoogleMaps.LatLngWidget import LatLngWidget 29 30 zoom_vocaburary = range(18) 31 zoom_vocaburary.reverse() 29 32 30 33 ##code-section module-header #fill in your manual code here … … 72 75 name='zoom', 73 76 default=15, 77 vocabulary=zoom_vocaburary, 74 78 widget=SelectionWidget( 75 79 label="Zoom", … … 88 92 description="Select a direction and zoom control type.", 89 93 i18n_domain="googlemaps", 90 description_msgid=' ATGoogleMaps_help_mapControl',94 description_msgid='help_mapControl', 91 95 ), 92 96 schemata="googlemaps_control", … … 134 138 label="Display Overview Control", 135 139 label_msgid="label_overview_control", 140 description_msgid="help_overview_control", 136 141 i18n_domain="googlemaps", 137 142 ), … … 168 173 # Methods 169 174 175 # Added after code-generation 176 177 content_icon = 'gmap_icon.gif' 178 portal_type = 'GMap' 179 meta_type = 'GMap' 180 archetype_name = 'GMap' 181 default_view = 'gmap_view' 182 immediate_view = 'gmap_view' 183 suppl_views = () 184 typeDescription = 'Google maps document' 185 typeDescMsgId = 'description_edit_gmap' 186 187 # Allow images and files to be uploaded into this containerish object 188 allowed_content_types = ['GMarker','GPolyline'] 189 190 # Get the standard actions (tabs) 191 #actions = ATCTContent.actions 192 193 #__implements__ = (ATFolder.__implements__) 194 195 def canSetDefaultPage(self): 196 return False 170 197 171 198 registerType(GMap, PROJECTNAME)
Note: See TracChangeset
for help on using the changeset viewer.
