Google Calendar Coupling
- better location in gcal events (lat,long) - more verbose instruction, howto use - bugfixes in event tabular view
This commit is contained in:
@@ -108,10 +108,17 @@ def buildGCalEvent( event, timezone="Europe/Berlin" ):
|
||||
else:
|
||||
endTime = datetime.time( 22, 30 )
|
||||
|
||||
gLocation = unicode(event.location)
|
||||
if event.map_location:
|
||||
# Map location has the following format: latitude,longitude,zoomlevel
|
||||
# the first two are needed
|
||||
s = event.map_location.split(",")
|
||||
gLocation = unicode ( "%s,%s" % (s[0],s[1] ) )
|
||||
|
||||
return {
|
||||
'summary': unicode(settings.GCAL_COUPLING['eventPrefix'] + event.title),
|
||||
'description': unicode(event.desc),
|
||||
'location': unicode(event.location),
|
||||
'location': gLocation,
|
||||
'start': createDateTimeObj( startDate, startTime ),
|
||||
'end' : createDateTimeObj( endDate, endTime ),
|
||||
'extendedProperties': {
|
||||
|
||||
Reference in New Issue
Block a user