marvin_refactor: base classes for entity and factory

CloudStackEntity : represents the base entity. This is a placeholder for
future use. Right now it only implements version info

CloudStackBaseFactory: overloads AbstractFactory to provide custom hooks
for CloudStackEntity creation. The current creators for cloudstack
entities are any api actions that begin as create, deploy or register

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-09-03 16:27:19 +05:30
parent 03bb70904c
commit 8d16f03058
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
cloudstack_version = "4.1.0"
cloudstack_version = "4.2.0"
class CloudStackEntity(object):

View File

@ -18,7 +18,7 @@
import factory
import inspect
CREATORS = ["create", "deploy"]
CREATORS = ["create", "deploy", "register"]
class CloudStackBaseFactory(factory.Factory):