Oops, move get_root_tags into alphabetical position.

This commit is contained in:
voussoir 2018-05-02 17:41:46 -07:00
parent 4002cc660e
commit a8fc1206d9

View file

@ -796,6 +796,12 @@ class PDBTagMixin:
else: else:
raise exceptions.TagExists(existing_tag) raise exceptions.TagExists(existing_tag)
def get_root_tags(self):
'''
Yield Tags that have no parent.
'''
yield from self.get_root_things('tag')
def get_tag(self, name=None, id=None): def get_tag(self, name=None, id=None):
''' '''
Redirect to get_tag_by_id or get_tag_by_name. Redirect to get_tag_by_id or get_tag_by_name.
@ -855,12 +861,6 @@ class PDBTagMixin:
def get_tags_by_id(self, ids): def get_tags_by_id(self, ids):
return self.get_things_by_id('tag', ids) return self.get_things_by_id('tag', ids)
def get_root_tags(self):
'''
Yield Tags that have no parent.
'''
yield from self.get_root_things('tag')
@decorators.required_feature('tag.new') @decorators.required_feature('tag.new')
@decorators.transaction @decorators.transaction
def new_tag(self, tagname, description=None, *, author=None, commit=True): def new_tag(self, tagname, description=None, *, author=None, commit=True):