Comment 14 for bug 1602422

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

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