item by oshash

This commit is contained in:
j 2012-01-12 14:19:08 +05:30
parent 95e57d9ad3
commit a31d4737f8

View file

@ -64,6 +64,8 @@ def parseCondition(condition, user):
elif k == 'filename' and (user.is_anonymous() or \
not user.get_profile().capability('canSeeFiles')):
return Q(id=0)
elif k == 'oshash':
return Q(files__oshash=v)
elif k == 'resolution':
q = parseCondition({'key': 'width', 'value': v[0], 'operator': op}, user) \
& parseCondition({'key': 'height', 'value': v[1], 'operator': op}, user)