Author: eallen
Date: 2010-06-30 16:32:30 -0400 (Wed, 30 Jun 2010)
New Revision: 4061
Modified:
mgmt/newdata/rosemary/python/rosemary/model.py
Log:
Temp fix for non-persistent schemas
Modified: mgmt/newdata/rosemary/python/rosemary/model.py
===================================================================
--- mgmt/newdata/rosemary/python/rosemary/model.py 2010-06-30 20:30:26 UTC (rev 4060)
+++ mgmt/newdata/rosemary/python/rosemary/model.py 2010-06-30 20:32:30 UTC (rev 4061)
@@ -57,7 +57,7 @@
# XXX Change to load_elem, load_extended_elem
def load(self, elem):
- pkg = RosemaryPackage(self, elem.get("package"))
+ pkg = RosemaryPackage(self, elem.get("package"),
elem.get("type"))
pkg.load(elem)
def extend(self, elem):
@@ -70,7 +70,7 @@
pkg.init()
class RosemaryPackage(object):
- def __init__(self, model, name):
+ def __init__(self, model, name, type):
self._model = model
self._name = name
@@ -89,6 +89,9 @@
self._classes_by_lowercase_name = dict()
self.sql_schema = SqlSchema(self._model.sql_model, self._name)
+ if not type:
+ type = "persistant"
+ setattr(self.sql_schema, "type", type)
def load(self, elem):
groups_by_name = dict()