appobject.py
changeset 3678 29f74716fd70
parent 3453 e2572c9ca3ec
child 4013 f0d1038e5059
equal deleted inserted replaced
3677:acdba524bb8f 3678:29f74716fd70
   249 
   249 
   250         It must return the object that will be actually registered (this may be
   250         It must return the object that will be actually registered (this may be
   251         the right hook to create an instance for example). By default the
   251         the right hook to create an instance for example). By default the
   252         appobject is returned without any transformation.
   252         appobject is returned without any transformation.
   253         """
   253         """
   254         try:
   254         try: # XXX < 3.6 bw compat
   255             pdefs = cls.property_defs
   255             pdefs = cls.property_defs
   256         except AttributeError:
   256         except AttributeError:
   257             pdefs = getattr(cls, 'cw_property_defs', {})
   257             pdefs = getattr(cls, 'cw_property_defs', {})
   258         else:
   258         else:
   259             warn('property_defs is deprecated, use cw_property_defs in %s'
   259             warn('property_defs is deprecated, use cw_property_defs in %s'