3 Commits

Author SHA1 Message Date
Pablo Andres Fuente
244b90609e Fixed pylint errors
Fixed two real pylint errors and two false positives were silenced.

Change-Id: Ic32918d3ba95fab578ce43a2565a060f633ecc03
Closes-Bug: #1334847
2014-06-27 16:58:00 -03:00
Nikolay Starodubtsev
ffe65876e8 Fix style errors close to new hacking update
This patch fix a bunch of errors which will arrive after we
will start use new hacking version.

Change-Id: I49721f1ba9f3f017da00212a9fdc5b87d5afaedf
Closes-Bug: #1330536
2014-06-18 13:51:54 -07:00
Sylvain Bauza
db86f57cf4 Create Statuses objects for Leases
In order to have statuses for leases, we need to add some fieds in the
Lease DB model, but we also need to define some handlers for managing
lease states and persistences in DB.

The proposal here is to have an in-memory object for managing lifecycles
of various Climate concepts (here Lease) with asynchronous method for
writing back the value in DB. By default, the behaviour is synchronous
(using the autosave=True parameter) but can be set to async if needed.

Uses of these State objects can be found in unittests.
Implementation within Climate code (ie. the 'calls') will happen in a
separate commit in order to ease reviews to small chunks (this one is
still big, I know...)

Partially implements: blueprint lease-state

Change-Id: I6e8e03a73c838e8e66a76d5242816dc222cb449b
2014-05-09 11:04:06 +02:00