import stuff from where it belongs
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 06 Aug 2010 10:01:47 +0200
changeset 219 852e7c11f252
parent 218 45510a9bb345
child 220 72715685d5e3
import stuff from where it belongs
views/boxes.py
--- a/views/boxes.py	Thu Aug 05 19:31:27 2010 +0200
+++ b/views/boxes.py	Fri Aug 06 10:01:47 2010 +0200
@@ -10,10 +10,10 @@
 from logilab.mtconverter import xml_escape
 
 from cubicweb.selectors import one_line_rset, is_instance
-from cubicweb.web.htmlwidgets import BoxLink, BoxWidget
-from cubicweb.web.views import boxes
+from cubicweb.web import box
+from cubicweb.web.htmlwidgets import BoxLink, BoxWidget, BoxHtml
 
-class BlogArchivesBox(boxes.BoxTemplate):
+class BlogArchivesBox(box.BoxTemplate):
     """blog side box displaying a Blog Archive"""
     __regid__ = 'blog_archives_box'
     __select__ = boxes.BoxTemplate.__select__ & is_instance('Blog','BlogEntry','MicroBlogEntry')
@@ -26,11 +26,11 @@
         count_blogentry = self._cw.execute('Any COUNT(B) WHERE B is BlogEntry')
         if count_blogentry[0][0] > 0:
             box = BoxWidget(self._cw._(self.title), id=self.__regid__, islist=False)
-            box.append(boxes.BoxHtml(self._cw.view('blog_archive', None, maxentries=12)))
+            box.append(BoxHtml(self._cw.view('blog_archive', None, maxentries=12)))
             box.render(self.w)
 
 
-class BlogsByAuthorBox(boxes.BoxTemplate):
+class BlogsByAuthorBox(box.BoxTemplate):
     __regid__ = 'blog_summary_box'
     __select__ = boxes.BoxTemplate.__select__ & is_instance('Blog','BlogEntry','MicroBlogEntry')
     title = _('boxes_blog_summary_box')
@@ -49,7 +49,7 @@
         box.render(self.w)
 
 
-class LatestBlogsBox(boxes.BoxTemplate):
+class LatestBlogsBox(box.BoxTemplate):
     """display a box with latest blogs and rss"""
     __regid__ = 'latest_blogs_box'
     __select__ = boxes.BoxTemplate.__select__ & is_instance('Blog','BlogEntry','MicroBlogEntry')