we have now actual classes in rwidgets tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 09 Apr 2009 14:36:47 +0200
branchtls-sprint
changeset 1321 c5655237f08a
parent 1320 c85f4d8eff8b
child 1322 92a2375b1de6
we have now actual classes in rwidgets
web/views/bookmark.py
--- a/web/views/bookmark.py	Thu Apr 09 14:32:18 2009 +0200
+++ b/web/views/bookmark.py	Thu Apr 09 14:36:47 2009 +0200
@@ -11,16 +11,16 @@
 from cubicweb import Unauthorized
 from cubicweb.selectors import implements
 from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
-from cubicweb.web.action import Action
+from cubicweb.web import action, formwidgets
 from cubicweb.web.box import UserRQLBoxTemplate
 from cubicweb.web.views.baseviews import PrimaryView
 from cubicweb.web.views.editforms import AutomaticEntityForm
 
 AutomaticEntityForm.rcategories.set_rtag('primary', 'path', 'subject', 'Bookmark')
-AutomaticEntityForm.rwidgets.set_rtag('StringWidget', 'path', 'subject', 'Bookmark')
+AutomaticEntityForm.rwidgets.set_rtag(formwidgets.TextInput, 'path', 'subject', 'Bookmark')
 
 
-class FollowAction(Action):
+class FollowAction(action.Action):
     id = 'follow'
     __select__ = implements('Bookmark')