Switching to pygazelle

This commit is contained in:
Aaron Cohen
2012-09-22 21:08:14 -07:00
parent 84aec7778d
commit 3d066d7e5b
14 changed files with 945 additions and 1495 deletions
+13
View File
@@ -0,0 +1,13 @@
class InvalidCategoryException(Exception):
pass
class Category(object):
def __init__(self, id, parent_api):
self.id = id
self.parent_api = parent_api
self.name = None
self.parent_api.cached_categories[self.id] = self # add self to cache of known Category objects
def __repr__(self):
return "Category: %s - id: %s" % (self.name, self.id)