Refactored user edit view

This commit is contained in:
Fergal Moran
2013-05-25 16:28:37 +01:00
parent 31447390c4
commit dee2201a4f
32 changed files with 330 additions and 865 deletions

View File

@@ -20,7 +20,7 @@ class UserProfileResource(BackboneCompatibleResource):
authentication = Authentication()
def _hydrateBitmapOption(self, source, comparator):
return "checked" if (source & comparator) != 0 else ""
return True if (source & comparator) != 0 else False
def hydrate(self, bundle):
if 'activity_sharing_likes' in bundle.data: