List tags and attach links.
977785
public function UpdateTagsWithLinks()
    {
        $tags = $this->UpdateTags();

        $processed = ArrayList::create();

        foreach ($tags as $tag) {
            // Build the link - keep the tag, and date range, but reset month, year and pagination.
            $link = HTTP::setGetVar('tag', $tag->ID, null, '&');
            $link = HTTP::setGetVar('month', null, $link, '&');
            $link = HTTP::setGetVar('year', null, $link, '&');
            $link = HTTP::setGetVar('start', null, $link, '&');

            $tag->Link = $link;
            $processed->push($tag);
        }

        return $processed;
    }
990287
def add_tags(self, *tags):
        
        for _tag in tags:
            self.tags.get_or_create(name=_tag)
18911
def list_tags(self):
        
        from highton.models.tag import Tag
        return fields.ListField(
            name=self.ENDPOINT,
            init_class=Tag
        ).decode(
            self.element_from_string(
                self._get_request(
                    endpoint=self.ENDPOINT + '/' + str(self.id) + '/' + Tag.ENDPOINT,
                ).text
            )
        )
776409
def tags(self):
     """"""
     if self._tags: return self._tags
     tags = {}
     if not tags: return {}
     for m in [[y.group(1),y.group(2),y.group(3)] for y in [re.match('([^:]{2,2}):([^:]):(.+)$',x) for x in self.entries.optional_fields.split("\t")]]:
        if m[1] == 'i': m[2] = int(m[2])
        elif m[1] == 'f': m[2] = float(m[2])
        tags[m[0]] = TAGDatum(m[1],m[2])
     self._tags = tags
     return self._tags
138422
def addTags(self, tags):
        
        method = 'flickr.photos.addTags'
        if isinstance(tags, list):
            tags = uniq(tags)

        _dopost(method, auth=True, photo_id=self.id, tags=tags)
        #load properties again
        self._load_properties()
1088848
def handle_tags(repo, **kwargs):
    """"""
    log.info('tags: %s %s' %(repo, kwargs))
    return [str(t) for t in repo.tags(**kwargs)]
1268719
def _indexable_tags(self):
        """"""
        tags = current_app.extensions.get("tags")
        if not tags or not tags.supports_taggings(self):
            return ""

        default_ns = tags.entity_default_ns(self)
        return [t for t in tags.entity_tags(self) if t.ns == default_ns]
1301696
def tag_toggle(self, *tags):
        
        return View({**self.spec, 'tag': list(set(self.tags) ^ set(tags))})
599673
def add_tags(self):
        """"""
        if self.tags is None:
            self.tags = VCFLACDict()
            self.metadata_blocks.append(self.tags)
        else:
            raise FLACVorbisError("a Vorbis comment already exists")
1302116
def _addTags(tags, objects):
    
    for t in tags:
        for o in objects:
            o.tags.add(t)

    return True
9179
def list(context, verbose):
    
    result = tag.list(context)
    utils.format_output(result, context.format, verbose=verbose)
568644
def list_links(self, *args, **kwargs):
        
        print("Links in the current page:")
        for l in self.links(*args, **kwargs):
            print("    ", l)
456015
def set_tags(self, tags):
        

        c_old_tags = []
        old_tags = []
        c_new_tags = []
        new_tags = []

        to_remove = []
        to_add = []

        tags_on_server = self.get_tags()

        for tag in tags_on_server:
            c_old_tags.append(tag.get_name().lower())
            old_tags.append(tag.get_name())

        for tag in tags:
            c_new_tags.append(tag.lower())
            new_tags.append(tag)

        for i in range(0, len(old_tags)):
            if not c_old_tags[i] in c_new_tags:
                to_remove.append(old_tags[i])

        for i in range(0, len(new_tags)):
            if not c_new_tags[i] in c_old_tags:
                to_add.append(new_tags[i])

        self.remove_tags(to_remove)
        self.add_tags(to_add)
1195307
def tag(*tags):
    '''
    
    '''
    def dfn(fn):
        _tags = getattr(fn, 'tags', set())
        _tags.update(tags)
        fn.tags = _tags
        return fn
    return dfn
343508
def list_nodes_with_tag(tag):
    """"""
    lib.print_nodes(lib.get_nodes_with_tag(tag, env.chef_environment,
                                           littlechef.include_guests))
897267
def all_tags(self):
        """"""
        tags = set()
        for post in self:
            tags.update(post.tags)
        return list(tags)
1065995
def tags(self, value): # pylint: disable-msg=E0102
        """"""
        if not isinstance(value, list):
            raise TypeError
        self._config['tags'] = value