[ckan-changes] commit/ckanext-disqus: rgrp: [home][s]: remove comment stream from front page (if wanted should be added by theme developer not by plugin).

Bitbucket commits-noreply at bitbucket.org
Wed Aug 17 10:30:20 UTC 2011


1 new changeset in ckanext-disqus:

http://bitbucket.org/okfn/ckanext-disqus/changeset/029d7f06fe60/
changeset:   029d7f06fe60
user:        rgrp
date:        2011-08-17 12:24:18
summary:     [home][s]: remove comment stream from front page (if wanted should be added by theme developer not by plugin).

* TODO: add a helper function to lib/helpers for recent comment stream.
affected #:  1 file (312 bytes)

--- a/ckanext/plugins/disqus/__init__.py	Wed Jun 15 12:24:17 2011 +0100
+++ b/ckanext/plugins/disqus/__init__.py	Wed Aug 17 10:24:18 2011 +0000
@@ -56,12 +56,5 @@
             stream = stream | Transformer('body//div[@id="comments"]')\
                 .append(HTML(html.COMMENT_CODE % data))
         
-        if routes.get('controller') == 'home' and \
-            routes.get('action') == 'index':
-            data = {'name': self.disqus_name}
-            stream = stream | Transformer('body//\
-                div[@id="main"]//ul[@class="xoxo"]')\
-                .append(HTML(html.LATEST_CODE % data))
-        
         return stream

Repository URL: https://bitbucket.org/okfn/ckanext-disqus/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list