funky annotation ids

This commit is contained in:
j 2011-08-18 13:53:38 +02:00
commit d1d03e02e4
3 changed files with 6 additions and 3 deletions

View file

@ -40,7 +40,9 @@ def parseCondition(condition, user):
return ~q
else:
return q
if k in ('id', 'places__id'):
if k == 'id':
v = ox.from32(v.split('/')[-1])
elif k in ('places__id', ):
v = ox.from32(v)
if isinstance(v, bool): #featured and public flag
key = k