- Timestamp:
- 07/28/10 01:47:29 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/content/GPolyline.py
r318 r332 31 31 FloatField('opacity', 32 32 default=1.0, 33 widget=StringWidget( 34 label='Opacity', 35 label_msgid='label_opacity', 36 description_msgid='help_opacity', 37 i18n_domain='googlemaps', 38 size=8, 39 ) 33 40 ), 34 41 IntegerField('weight', 35 default=2, 42 default=5, 43 widget=StringWidget( 44 label='Weight', 45 label_msgid='label_weight', 46 description_msgid='help_weight', 47 i18n_domain='googlemaps', 48 size=8, 49 ) 36 50 ), 51 LinesField('coordinates', 52 widget=LinesWidget( 53 label='Coordinates', 54 label_msgid='label_path', 55 description_msgid='help_path', 56 i18n_domain='googlemaps', 57 ) 58 ), 37 59 ),) 38 60 gpolyline_schema = getattr(ATCTContent, 'schema', Schema(())).copy() + schema.copy() … … 59 81 return latlng 60 82 83 # return coordinates array string 84 def getCoordinatesArray(self): 85 coordinates_array = "[" 86 for coordinate in self.coordinates: 87 coordinates_array += "[%s]," % coordinate 88 coordinates_array = coordinates_array[:-1] + "]" 89 return coordinates_array 90 61 91 registerType(GPolyline, PROJECTNAME)
Note: See TracChangeset
for help on using the changeset viewer.
