Reviewed: https://review.openstack.org/421468 Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=9785f6a006ad0ef9d6a9a6e6436895401b0cbf7f Submitter: Jenkins Branch: master
commit 9785f6a006ad0ef9d6a9a6e6436895401b0cbf7f Author: Steve Martinelli <email address hidden> Date: Tue Jan 17 14:35:20 2017 -0500
switch @hybrid_property to @property
The purpose of hybrid is so that you can use your attribute at the class level in a query. At the instance level, it is identical to @property
A hybrid property is only needed when referenced at the class level, for instance.
class Wozzle(...)
@hybrid_property def foo(..)
If referencing Wozzle.foo, then you need a hybrid property, otherwise a regular @property will work just fine.
Change-Id: Ifd3ff9a888919e09b80e87282af829bc14693369 Closes-Bug: 1602422
Reviewed: https:/ /review. openstack. org/421468 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=9785f6a006a d0ef9d6a9a6e643 6895401b0cbf7f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9785f6a006ad0ef 9d6a9a6e6436895 401b0cbf7f
Author: Steve Martinelli <email address hidden>
Date: Tue Jan 17 14:35:20 2017 -0500
switch @hybrid_property to @property
The purpose of hybrid is so that you can use your attribute at the
class level in a query. At the instance level, it is identical to
@property
A hybrid property is only needed when referenced at the class level,
for instance.
class Wozzle(...)
@ hybrid_ property
def foo(..)
If referencing Wozzle.foo, then you need a hybrid property, otherwise
a regular @property will work just fine.
Change-Id: Ifd3ff9a888919e 09b80e87282af82 9bc14693369
Closes-Bug: 1602422