equal
deleted
inserted
replaced
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' |