web/views/cwproperties.py
changeset 7894 ad0eeb0f7a8d
parent 7868 39a54b88906d
parent 7879 9aae456abab5
child 8128 0a927fe4541b
--- a/web/views/cwproperties.py	Thu Sep 29 14:07:37 2011 +0200
+++ b/web/views/cwproperties.py	Thu Sep 29 14:47:04 2011 +0200
@@ -314,6 +314,7 @@
 
     def render(self, form, renderer):
         wdg = self.get_widget(form)
+        # pylint: disable=E1101
         wdg.attrs['tabindex'] = form._cw.next_tabindex()
         wdg.attrs['onchange'] = "javascript:setPropValueWidget('%s', %s)" % (
             form.edited_entity.eid, form._cw.next_tabindex())
@@ -349,7 +350,7 @@
         try:
             pdef = form._cw.vreg.property_info(entity.pkey)
         except UnknownProperty, ex:
-            self.warning('%s (you should probably delete that property '
+            form.warning('%s (you should probably delete that property '
                          'from the database)', ex)
             msg = form._cw._('you should probably delete that property')
             self.widget = NotEditableWidget(entity.printable_value('value'),