[Checkins] SVN: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/grokdoc.py fix topic URLs so that they root off HelpCenter

Kevin Teague kevin at bud.ca
Sun Jan 20 07:05:06 EST 2008


Log message for revision 82976:
  fix topic URLs so that they root off HelpCenter

Changed:
  U   gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/grokdoc.py

-=-
Modified: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/grokdoc.py
===================================================================
--- gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/grokdoc.py	2008-01-20 11:44:40 UTC (rev 82975)
+++ gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/grokdoc.py	2008-01-20 12:05:06 UTC (rev 82976)
@@ -25,6 +25,7 @@
 
     _template = ViewPageTemplateFile('phc_grok.pt')
 
+    # TODO: chucks an error?
     #@ram.cache(render_cachekey)
     def render(self):
         return xhtml_compress(self._template())
@@ -40,9 +41,9 @@
 
         context = self.context
         catalog = getToolByName(context, 'portal_catalog')
-        here_url  = context.absolute_url()
         phc = context.getPHCObject()
-
+        here_url = phc.absolute_url()
+        
         topics = phc.getSectionsVocab()
 
         # dict to save counts



More information about the Checkins mailing list