Hi, I'm trying to create a plugin to recommend tags in Trac.
As a first step I need to have all tags in a list, so I can 'print'
that list.
I would like to use 'get_tags' method of TagSystem (in api.py module
of 'tractags'). This is my attempt:

from trac.core import *
from trac.core import ComponentManager
from tractags.api import TagSystem
#from tractags.macros import TagCloudMacro

class PopularTags(Component):

    def __init__(self):
        self.tag_system = TagSystem(self.env)

    def print_tags(self):
        tag_system = TagSystem(self)
        tag_frequency = tag_system.get_tags(req)
        print tag_frequency

comp_mgr = ComponentManager()
popular_tags = PopularTags(comp_mgr)

popular_tags.print_tags()


Obviously it doesn't work.
Can someone give me some advice?
Sorry but I am a beginner.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to