Fixed bug in taghandler that stopped tags.get from working correctly with unset categories.
This commit is contained in:
parent
14086e3b3d
commit
c73e013459
1 changed files with 2 additions and 2 deletions
|
|
@ -628,7 +628,7 @@ class TagHandler(object):
|
||||||
"""
|
"""
|
||||||
self.obj = obj
|
self.obj = obj
|
||||||
self._objid = obj.id
|
self._objid = obj.id
|
||||||
self._model = obj.__class__.__name__.lower()
|
self._model = obj.__dbclass__.__name__.lower()
|
||||||
self._cache = None
|
self._cache = None
|
||||||
|
|
||||||
def _recache(self):
|
def _recache(self):
|
||||||
|
|
@ -661,7 +661,7 @@ class TagHandler(object):
|
||||||
cachestring = "%s-%s" % (tagstr, category)
|
cachestring = "%s-%s" % (tagstr, category)
|
||||||
self._cache[cachestring] = tagobj
|
self._cache[cachestring] = tagobj
|
||||||
|
|
||||||
def get(self, key, category="", return_tagobj=False):
|
def get(self, key, category=None, return_tagobj=False):
|
||||||
"""
|
"""
|
||||||
Get the tag for the given key or list of tags. If
|
Get the tag for the given key or list of tags. If
|
||||||
return_data=True, return the matching Tag objects instead.
|
return_data=True, return the matching Tag objects instead.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue