update video editor (places, events)

This commit is contained in:
rolux 2012-01-13 21:56:07 +05:30
commit 81548bba04
4 changed files with 18 additions and 2 deletions

View file

@ -103,10 +103,14 @@ class Annotation(models.Model):
if filter(lambda l: l['type'] == 'place' or l.get('hasPlaces'),
settings.CONFIG['layers']):
update_matching_places.delay(self.id)
#update_matching_places.delay(self.id)
#editAnnotations needs to be in snyc
update_matching_places(self.id)
if filter(lambda l: l['type'] == 'event' or l.get('hasEvents'),
settings.CONFIG['layers']):
update_matching_events.delay(self.id)
#update_matching_events.delay(self.id)
#editAnnotations needs to be in snyc
update_matching_events(self.id)
def json(self, layer=False, keys=None, user=None):
j = {

View file

@ -517,7 +517,9 @@
"user": {
"level": "guest",
"ui": {
"annotationsCalendarSize": 256,
"annotationsFont": "small",
"annotationsMapSize": 256,
"annotationsRange": "position",
"annotationsSize": 256,
"annotationsSort": "position",
@ -555,6 +557,8 @@
"page": "",
"section": "items",
"showAnnotations": true,
"showAnnotationsCalendar": true,
"showAnnotationsMap": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
"showFilters": true,