Ignore:
Timestamp:
11/08/08 16:39:03 (3 years ago)
Author:
yuta
Message:

copy method from version 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ATGoogleMaps/branches/for-plone30/content/GMap.py

    r193 r196  
    2727from Products.ATGoogleMaps.LatLngField import LatLngField 
    2828from Products.ATGoogleMaps.LatLngWidget import LatLngWidget 
     29 
     30zoom_vocaburary = range(18) 
     31zoom_vocaburary.reverse() 
    2932 
    3033##code-section module-header #fill in your manual code here 
     
    7275        name='zoom', 
    7376        default=15, 
     77        vocabulary=zoom_vocaburary, 
    7478        widget=SelectionWidget( 
    7579            label="Zoom", 
     
    8892            description="Select a direction and zoom control type.", 
    8993            i18n_domain="googlemaps", 
    90             description_msgid='ATGoogleMaps_help_mapControl', 
     94            description_msgid='help_mapControl', 
    9195        ), 
    9296        schemata="googlemaps_control", 
     
    134138            label="Display Overview Control", 
    135139            label_msgid="label_overview_control", 
     140            description_msgid="help_overview_control", 
    136141            i18n_domain="googlemaps", 
    137142        ), 
     
    168173    # Methods 
    169174 
     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 
    170197 
    171198registerType(GMap, PROJECTNAME) 
Note: See TracChangeset for help on using the changeset viewer.