diff -r aff75b69db92 -r 2c48c091b6a2 entities/__init__.py --- a/entities/__init__.py Tue Jul 02 17:09:04 2013 +0200 +++ b/entities/__init__.py Mon Jan 13 13:47:47 2014 +0100 @@ -1,4 +1,4 @@ -# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -33,6 +33,11 @@ __regid__ = 'Any' __implements__ = () + @classproperty + def cw_etype(cls): + """entity type as a string""" + return cls.__regid__ + @classmethod def cw_create_url(cls, req, **kwargs): """ return the url of the entity creation form for this entity type""" @@ -58,11 +63,6 @@ # meta data api ########################################################### - @classproperty - def cw_etype(self): - """entity Etype as a string""" - return self.__regid__ - def dc_title(self): """return a suitable *unicode* title for this entity""" for rschema, attrschema in self.e_schema.attribute_definitions():