url controller updates, refactoring

This commit is contained in:
rolux 2011-09-28 17:32:03 +00:00
commit 1d894fc934
18 changed files with 287 additions and 427 deletions

View file

@ -98,7 +98,8 @@ def parseCondition(condition):
elif key_type == 'list':
q = Q(itemId=False)
l = v.split(":")
if len(l) == 2:
if len(l) >= 2:
l = (l[0], ":".join(l[1:]))
lqs = list(List.objects.filter(name=l[1], user__username=l[0]))
if len(lqs) == 1:
l = lqs[0]