'Convert a User and associated data to a dictionary representation.'

def __init__(self, app):

    super(UserSerializer, self).__init__(app)
    self.user_manager = self.manager
    self.default_view = 'summary'
    self.add_view('summary', ['id', 'email', 'username'])
    self.add_view('detailed', ['is_admin', 'total_disk_usage', 'nice_total_disk_usage', 'quota_percent', 'quota', 'deleted', 'purged', 'preferences', 'tags_used'], include_keys_from='summary')
