new player view

This commit is contained in:
rlx 2011-01-17 21:12:52 +00:00
commit 80d94e7da8
3 changed files with 149 additions and 64 deletions

View file

@ -36,6 +36,13 @@ def parseCondition(condition, user):
exclude = True
else:
exclude = False
if k == 'id':
v = v.split('/')
if len(v) == 2:
q = Q(user__username=v[0], name=v[1])
else:
q = Q(id__in=[])
return q
if k == 'subscribed':
key = 'subscribed_users__username'
v = user.username

View file

@ -39,13 +39,14 @@
{"id": "info", "title": "Info"},
{"id": "statistics", "title": "Statistics"},
{"id": "clips", "title": "Clips"},
{"id": "player", "title": "Player"},
{"id": "timeline", "title": "Timeline"},
{"id": "map", "title": "Map"},
{"id": "calendar", "title": "Calendar"},
{"id": "files", "title": "Files", "admin": true}
],
"layers": [
{"id": "privatenotes", "title": "Private Notes", "type": "text"},
{"id": "privatenotes", "title": "Private Notes", "type": "text", "private": true},
{"id": "publicnotes", "title": "Public Notes", "type": "text"}
],
"listViews": [
@ -171,6 +172,7 @@
"section": "items",
"sections": ["my", "public", "featured"],
"showAnnotations": true,
"showControls": true,
"showGroups": true,
"showInfo": true,
"showMovies": true,
@ -182,7 +184,8 @@
"showSidebar": true,
"sidebarSize": 256,
"sitePage": "home",
"theme": "modern"
"theme": "modern",
"videoSize": "fit"
},
"username": ""
}