Author: eallen
Date: 2010-07-13 14:01:13 -0400 (Tue, 13 Jul 2010)
New Revision: 4109
Modified:
mgmt/newdata/rosemary/python/rosemary/model.py
Log:
Remove references to schema type.
Modified: mgmt/newdata/rosemary/python/rosemary/model.py
===================================================================
--- mgmt/newdata/rosemary/python/rosemary/model.py 2010-07-13 17:50:59 UTC (rev 4108)
+++ mgmt/newdata/rosemary/python/rosemary/model.py 2010-07-13 18:01:13 UTC (rev 4109)
@@ -59,11 +59,11 @@
attr = elem.get("package")
if attr:
- pkg = RosemaryPackage(self, attr, elem.get("type"))
+ pkg = RosemaryPackage(self, attr)
pkg.load(elem)
for child in elem.findall("package"):
- pkg = RosemaryPackage(self, child.get("name"), None)
+ pkg = RosemaryPackage(self, child.get("name"))
pkg.load(child)
def extend(self, elem):
@@ -76,7 +76,7 @@
pkg.init()
class RosemaryPackage(object):
- def __init__(self, model, name, type):
+ def __init__(self, model, name):
self._model = model
self._name = name
@@ -95,9 +95,6 @@
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()