cubicweb/web/formfields.py
changeset 11870 3a84a79c4ed5
parent 11767 432f87a63057
child 11910 af969080e7e6
--- a/cubicweb/web/formfields.py	Thu Nov 24 16:58:27 2016 +0100
+++ b/cubicweb/web/formfields.py	Thu Nov 24 16:58:50 2016 +0100
@@ -1,4 +1,4 @@
-# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -111,6 +111,7 @@
     result += sorted(partresult)
     return result
 
+
 _MARKER = nullobject()
 
 
@@ -361,7 +362,6 @@
             if callable(self.value):
                 return self.value(form, self)
             return self.value
-        formattr = '%s_%s_default' % (self.role, self.name)
         if self.eidparam and self.role is not None:
             if form._cw.vreg.schema.rschema(self.name).final:
                 return form.edited_entity.e_schema.default(self.name)