murano/murano
Stan Lagun 8fb4eb7ac2 Allow static methods to detect calls on object
Static methods can be called both on on class instance
and on the type object. With this refactoring it is now
possible in Python static/class methods to distinguish
which way it was called and in case of instance call
get the instance.

This commit also reworks ResourceManager to use new
functionality. Now all ResourceManager methods
are static so no class instance is necessary. If resources
belonging to some other type are required it is possible
to provide the type object explicitly to each method.
However it is still possible to create ResourceManager
instance and call statics as a normal methods. In this
case they will recognize it and will operate that were
captured at class construction. Thus it is still possible
to create ResourceManager at one place and pass it to
another class in another package so that it will access
resources of the package where the instance was created
rather than that where it used.

Change-Id: Ib47be86a99eb7903f7d3f7e1c5f2570df819c2d8
2016-02-24 21:51:02 +00:00
..
api Add the max length check for environment update 2016-02-14 02:42:56 +00:00
cmd Major refactoring of how OS clients are created and managed 2016-02-20 17:59:11 +03:00
common Major refactoring of how OS clients are created and managed 2016-02-20 17:59:11 +03:00
db Major refactoring of how OS clients are created and managed 2016-02-20 17:59:11 +03:00
dsl Allow static methods to detect calls on object 2016-02-24 21:51:02 +00:00
engine Allow static methods to detect calls on object 2016-02-24 21:51:02 +00:00
hacking Python3: Replace basestring by six.string_types 2016-01-18 23:48:37 -08:00
locale Imported Translations from Zanata 2016-01-16 06:15:06 +00:00
packages Migration to yaql 1.1 2016-02-18 12:00:59 +00:00
policy Major refactoring of how OS clients are created and managed 2016-02-20 17:59:11 +03:00
services Remove arguments "{}" and "[]" in function definitions 2015-12-19 01:10:30 +08:00
tests Allow static methods to detect calls on object 2016-02-24 21:51:02 +00:00
__init__.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00
context.py Fix import order of modules 2016-01-24 23:34:03 -08:00
opts.py Major refactoring of how OS clients are created and managed 2016-02-20 17:59:11 +03:00
utils.py Allow murano to run under windows 2016-02-01 16:58:01 +03:00
version.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00