Пример #1
0
def add_tag(self, tag=None, cancel=False, reset=False, details=True):
    # ToDo remove when taggable use random object
    if not tag:
        tag = Tag(display_name='Cost Center 001',
                  category=Category(display_name='Cost Center'))
    Taggable.add_tag(self,
                     tag=tag,
                     cancel=cancel,
                     reset=reset,
                     details=details)
    return tag
Пример #2
0
def remove_tag(self, tag, cancel=False, reset=False, details=True):
    Taggable.remove_tag(self,
                        tag=tag,
                        cancel=cancel,
                        reset=reset,
                        details=details)
Пример #3
0
def add_tag(self, tag=None, cancel=False, reset=False, details=True):
    return Taggable.add_tag(self,
                            tag=tag,
                            cancel=cancel,
                            reset=reset,
                            details=details)
Пример #4
0
def get_tags(self, tenant="My Company Tags"):
    return Taggable.get_tags(self, tenant=tenant)
Пример #5
0
def get_tags(self, tenant="My Company Tags"):
    return Taggable.get_tags(self, tenant=tenant)
Пример #6
0
def remove_tag(self, tag, cancel=False, reset=False, details=True):
    Taggable.remove_tag(self, tag=tag, cancel=cancel, reset=reset, details=details)
Пример #7
0
def add_tag(self, tag=None, cancel=False, reset=False, details=True):
    return Taggable.add_tag(self, tag=tag, cancel=cancel, reset=reset, details=details)