[Checkins] SVN: lovely.tag/trunk/src/lovely/tag/browser/tag.py Moved the getCloud to the mix in class

Jürgen Kartnaller juergen at kartnaller.at
Wed Oct 4 01:47:16 EDT 2006


Log message for revision 70515:
  Moved the getCloud to the mix in class

Changed:
  U   lovely.tag/trunk/src/lovely/tag/browser/tag.py

-=-
Modified: lovely.tag/trunk/src/lovely/tag/browser/tag.py
===================================================================
--- lovely.tag/trunk/src/lovely/tag/browser/tag.py	2006-10-04 04:29:19 UTC (rev 70514)
+++ lovely.tag/trunk/src/lovely/tag/browser/tag.py	2006-10-04 05:47:16 UTC (rev 70515)
@@ -39,28 +39,28 @@
     def tagging(self):
         return ITagging(self.context)
 
-    
+    def getCloud(self, maxTags=100):
+        """returns a tag cloud"""
+        cloud = self.engine.getCloud()
+        return normalize(cloud, maxTags)
+
+
 class TaggingView(BrowserView, TaggingMixin):
     """Show the tags of the context as a cloud"""
 
     cloud       = ViewPageTemplateFile('tagcloud.pt')
     linkedcloud = ViewPageTemplateFile('linkedtagcloud.pt')
-    
+
     def __init__(self, context, request):
         super(TaggingView, self).__init__(context, request)
 
-    def getCloud(self, maxTags=100):
-        """returns a tag cloud"""
-        cloud = self.engine.getCloud()
-        return normalize(cloud, maxTags)
 
-    
 class RelatedView(BrowserView, TaggingMixin):
     """Show related tags as a cloud"""
 
     cloud       = ViewPageTemplateFile('tagcloud.pt')
     linkedcloud = ViewPageTemplateFile('linkedtagcloud.pt')
-    
+
     def __init__(self, context, request):
         super(RelatedView, self).__init__(context, request)
 



More information about the Checkins mailing list