# HG changeset patch # User Sylvain Thénault # Date 1385586986 -3600 # Node ID 480600497e2d4af2a72267e03487a0bf7dafa04e # Parent 2519f8536b4596f8d2c131c8bfbd627006d3e828 cwetype is a *class* property, rename its argument accordingly diff -r 2519f8536b45 -r 480600497e2d entities/__init__.py --- a/entities/__init__.py Wed Nov 27 22:15:58 2013 +0100 +++ b/entities/__init__.py Wed Nov 27 22:16:26 2013 +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():