minor cleanups stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 14:28:22 +0100
branchstable
changeset 6684 b8bd0ecced2e
parent 6683 68cfebd3b9f3
child 6685 eeedb3575d25
minor cleanups
utils.py
web/views/basecontrollers.py
web/views/bookmark.py
--- a/utils.py	Fri Nov 05 14:28:07 2010 +0100
+++ b/utils.py	Fri Nov 05 14:28:22 2010 +0100
@@ -201,6 +201,7 @@
     def pop(self, i):
         self._size -= 1
 
+
 class UStringIO(list):
     """a file wrapper which automatically encode unicode string to an encoding
     specifed in the constructor
--- a/web/views/basecontrollers.py	Fri Nov 05 14:28:07 2010 +0100
+++ b/web/views/basecontrollers.py	Fri Nov 05 14:28:22 2010 +0100
@@ -253,6 +253,7 @@
     # we receive unicode keys which is not supported by the **syntax
     return dict((str(key), value) for key, value in extraargs.iteritems())
 
+
 class JSonController(Controller):
     __regid__ = 'json'
 
--- a/web/views/bookmark.py	Fri Nov 05 14:28:07 2010 +0100
+++ b/web/views/bookmark.py	Fri Nov 05 14:28:22 2010 +0100
@@ -24,8 +24,8 @@
 
 from cubicweb import Unauthorized
 from cubicweb.selectors import is_instance, one_line_rset
-from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
-from cubicweb.web import action, component, uicfg, formwidgets as fw
+from cubicweb.web import (action, component, uicfg, htmlwidgets,
+                          formwidgets as fw)
 from cubicweb.web.views import primary
 
 _abaa = uicfg.actionbox_appearsin_addmenu
@@ -105,7 +105,7 @@
                 label = '<div>%s %s</div>' % (dlink, label)
             self.append(label)
         if self.can_edit:
-            menu = BoxMenu(req._('manage bookmarks'))
+            menu = htmlwidgets.BoxMenu(req._('manage bookmarks'))
             linkto = 'bookmarked_by:%s:subject' % ueid
             # use a relative path so that we can move the instance without
             # loosing bookmarks