Author: jmorliaguet
Date: Fri May 12 21:44:43 2006
New Revision: 3113

Modified:
   z3ecm/trunk/src/ecm/cpsskins/example7/portlet.py
   z3ecm/trunk/src/ecm/cpsskins/example7/widgets.py

Log:

- cosmetic



Modified: z3ecm/trunk/src/ecm/cpsskins/example7/portlet.py
==============================================================================
--- z3ecm/trunk/src/ecm/cpsskins/example7/portlet.py    (original)
+++ z3ecm/trunk/src/ecm/cpsskins/example7/portlet.py    Fri May 12 21:44:43 2006
@@ -33,7 +33,6 @@
 
 class INewsPortlet(IPortlet):
     """Interface for the News portlet"""
-
     rss_url = TextLine(title=u'RSS feed url')
 
 class NewsPortlet(Portlet):
@@ -49,16 +48,15 @@
         """Set the portlet data.
         """
         rss_url = self.rss_url
-
         data = cache.query(CACHE_ID, {'key': rss_url}, None)
         if data is None:
             data = getRSSData(rss_url)
             cache.set(data, CACHE_ID, {'key': rss_url})
-
         info.data = NewsData(header=data['header'], items=data['items'])
 
 def getRSSData(url):
-
+    """Get data from the feed.
+    """
     def textOf(node, tag):
         children = node.getElementsByTagName(tag)
         if len(children):
@@ -71,7 +69,6 @@
         return {'header': u'Please set the RSS feed URL', 'items': []}
 
     xml = parse(file)
-
     channel_def = xml.getElementsByTagName('channel')[0]
     channel_title = textOf(channel_def, 'title')
 
@@ -83,5 +80,4 @@
             'description': textOf(item_def, 'description'),
             'date': textOf(item_def, 'pubDate'),
         })
-
     return {'header': channel_title, 'items': items}

Modified: z3ecm/trunk/src/ecm/cpsskins/example7/widgets.py
==============================================================================
--- z3ecm/trunk/src/ecm/cpsskins/example7/widgets.py    (original)
+++ z3ecm/trunk/src/ecm/cpsskins/example7/widgets.py    Fri May 12 21:44:43 2006
@@ -52,10 +52,6 @@
 
     implements(INewsBox)
 
-    def __init__(self, context, request):
-        self.context = context
-        self.request = request
-
     def __call__(self, markup, info, **kw):
         return self.template(markup=markup, info=info, **kw)
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to