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:
Martin Bauer
2014-06-22 14:10:53 +02:00
parent 568376fbe7
commit 828901111e
6 changed files with 31 additions and 2 deletions

View File

@@ -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': {