Example #1
0
File: tag.py Project: fordream/me
 def json_dict(self, user):
     ret = {}
     ret['id'] = self.id
     ret['uid'] = escape_path(self.name)
     ret['name'] = self.name
     ret['count'] = self.count
     return ret
Example #2
0
File: tag.py Project: fordream/me
 def path(self):
     return '/tag/%s' % escape_path(self.name)