mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Initial Commit
This commit is contained in:
commit
88daa3fb91
1311 changed files with 256240 additions and 0 deletions
13
lib/pygazelle/category.py
Normal file
13
lib/pygazelle/category.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue