entities/__init__.py
changeset 1889 874a055c373b
parent 1854 9302d0e66076
child 1977 606923dff11b
--- a/entities/__init__.py	Thu May 21 00:44:57 2009 +0200
+++ b/entities/__init__.py	Thu May 21 00:50:24 2009 +0200
@@ -57,16 +57,6 @@
             return '%s DESC' % var
         return None
 
-    @classmethod
-    def __initialize__(cls):
-        super(ANYENTITY, cls).__initialize__() # XXX
-        # set a default_ATTR method for rich text format fields
-        # XXX move this away once the old widgets have been dropped!
-        eschema = cls.e_schema
-        for metaattr, (metadata, attr) in eschema.meta_attributes().iteritems():
-            if metadata == 'format' and not hasattr(cls, 'default_%s' % metaattr):
-                setattr(cls, 'default_%s' % metaattr, cls._default_format)
-
     # meta data api ###########################################################
 
     def dc_title(self):
@@ -269,9 +259,6 @@
         from cubicweb.web.views.autoform import AutomaticEntityForm
         return AutomaticEntityForm.esrelations_by_category(self, categories, permission)
 
-    def _default_format(self):
-        return self.req.property_value('ui.default-text-format')
-
     def attribute_values(self, attrname):
         if self.has_eid() or attrname in self:
             try: