Fixed erroneous alias-assigments in tutorial_world that caused tracebacks. Resolves Issue 423.

This commit is contained in:
Griatch 2013-08-30 20:53:38 +02:00
parent 0a42b73824
commit 839a78ca8d
5 changed files with 12 additions and 32 deletions

View file

@ -371,7 +371,7 @@ class AttributeHandler(object):
attr_obj.value = value
def remove(self, key, raise_exception=True, category=None, accessing_obj=None, default_access=True):
def remove(self, key, raise_exception=False, category=None, accessing_obj=None, default_access=True):
"""Remove attribute or a list of attributes from object.
If accessing_obj is given, will check against the 'attredit' lock. If not given, this check is skipped.
@ -514,8 +514,8 @@ class TagHandler(object):
# this will only create tag if no matches existed beforehand (it will overload
# data on an existing tag since that is not considered part of making the tag unique)
tagobj = Tag.objects.create_tag(key=tagstr, category=category, data=data)
print tagstr
print tagobj
#print tagstr
#print tagobj
_GA(self.obj, self._m2m_fieldname).add(tagobj)
def get(self, key, category="", return_obj=False):