Skip to content

Commit

Permalink
Merge branch 'development' into issue349_release05
Browse files Browse the repository at this point in the history
  • Loading branch information
PRemmen authored and PRemmen committed Apr 3, 2017
2 parents 10f85aa + 0a8e063 commit ebd1f56
Show file tree
Hide file tree
Showing 18 changed files with 3,035 additions and 310 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#####################
.cache/
__pycache__/
.coverage

#pip install #
#####################
Expand All @@ -48,4 +49,4 @@ dist
#ignore docs#
#####################

doc/_build
doc/_build
42 changes: 21 additions & 21 deletions teaser/data/bindings/v_0_4/project_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# NOTE: All namespace declarations are reserved within the binding
Namespace = pyxb.namespace.NamespaceForURI('http://teaser.project', create_if_missing=True)
Namespace.configureCategories(['typeBinding', 'elementBinding'])
Namespace.configureCategories(['typeBinding_04', 'elementBinding_04'])

def CreateFromDocument (xml_text, default_namespace=None, location_base=None):
"""Parse the given XML and use the document element to create a
Expand Down Expand Up @@ -103,7 +103,7 @@ class UseConditionType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.UseConditionType = UseConditionType
Namespace.addCategoryObject('typeBinding', 'UseConditionType', UseConditionType)
Namespace.addCategoryObject('typeBinding_04', 'UseConditionType', UseConditionType)


# Complex type {http://teaser.project}MaterialType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -171,7 +171,7 @@ class MaterialType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.MaterialType = MaterialType
Namespace.addCategoryObject('typeBinding', 'MaterialType', MaterialType)
Namespace.addCategoryObject('typeBinding_04', 'MaterialType', MaterialType)


# Complex type {http://teaser.project}LayerType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -215,7 +215,7 @@ class LayerType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.LayerType = LayerType
Namespace.addCategoryObject('typeBinding', 'LayerType', LayerType)
Namespace.addCategoryObject('typeBinding_04', 'LayerType', LayerType)


# Complex type {http://teaser.project}OuterWallType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -331,7 +331,7 @@ class OuterWallType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.OuterWallType = OuterWallType
Namespace.addCategoryObject('typeBinding', 'OuterWallType', OuterWallType)
Namespace.addCategoryObject('typeBinding_04', 'OuterWallType', OuterWallType)


# Complex type {http://teaser.project}RooftopType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -447,7 +447,7 @@ class RooftopType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.RooftopType = RooftopType
Namespace.addCategoryObject('typeBinding', 'RooftopType', RooftopType)
Namespace.addCategoryObject('typeBinding_04', 'RooftopType', RooftopType)


# Complex type {http://teaser.project}InnerWallType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -547,7 +547,7 @@ class InnerWallType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.InnerWallType = InnerWallType
Namespace.addCategoryObject('typeBinding', 'InnerWallType', InnerWallType)
Namespace.addCategoryObject('typeBinding_04', 'InnerWallType', InnerWallType)


# Complex type {http://teaser.project}CeilingType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -647,7 +647,7 @@ class CeilingType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.CeilingType = CeilingType
Namespace.addCategoryObject('typeBinding', 'CeilingType', CeilingType)
Namespace.addCategoryObject('typeBinding_04', 'CeilingType', CeilingType)


# Complex type {http://teaser.project}FloorType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -747,7 +747,7 @@ class FloorType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.FloorType = FloorType
Namespace.addCategoryObject('typeBinding', 'FloorType', FloorType)
Namespace.addCategoryObject('typeBinding_04', 'FloorType', FloorType)


# Complex type {http://teaser.project}GroundFloorType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -847,7 +847,7 @@ class GroundFloorType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.GroundFloorType = GroundFloorType
Namespace.addCategoryObject('typeBinding', 'GroundFloorType', GroundFloorType)
Namespace.addCategoryObject('typeBinding_04', 'GroundFloorType', GroundFloorType)


# Complex type {http://teaser.project}WindowType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -995,7 +995,7 @@ class WindowType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.WindowType = WindowType
Namespace.addCategoryObject('typeBinding', 'WindowType', WindowType)
Namespace.addCategoryObject('typeBinding_04', 'WindowType', WindowType)


# Complex type {http://teaser.project}ThermalZoneType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1127,7 +1127,7 @@ class ThermalZoneType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.ThermalZoneType = ThermalZoneType
Namespace.addCategoryObject('typeBinding', 'ThermalZoneType', ThermalZoneType)
Namespace.addCategoryObject('typeBinding_04', 'ThermalZoneType', ThermalZoneType)


# Complex type {http://teaser.project}BuildingAHUType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1243,7 +1243,7 @@ class BuildingAHUType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.BuildingAHUType = BuildingAHUType
Namespace.addCategoryObject('typeBinding', 'BuildingAHUType', BuildingAHUType)
Namespace.addCategoryObject('typeBinding_04', 'BuildingAHUType', BuildingAHUType)


# Complex type {http://teaser.project}BuildingType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1367,7 +1367,7 @@ class BuildingType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.BuildingType = BuildingType
Namespace.addCategoryObject('typeBinding', 'BuildingType', BuildingType)
Namespace.addCategoryObject('typeBinding_04', 'BuildingType', BuildingType)


# Complex type {http://teaser.project}OfficeType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1491,7 +1491,7 @@ class OfficeType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.OfficeType = OfficeType
Namespace.addCategoryObject('typeBinding', 'OfficeType', OfficeType)
Namespace.addCategoryObject('typeBinding_04', 'OfficeType', OfficeType)


# Complex type {http://teaser.project}ResidentialType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1615,7 +1615,7 @@ class ResidentialType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.ResidentialType = ResidentialType
Namespace.addCategoryObject('typeBinding', 'ResidentialType', ResidentialType)
Namespace.addCategoryObject('typeBinding_04', 'ResidentialType', ResidentialType)


# Complex type {http://teaser.project}InstituteType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1739,7 +1739,7 @@ class InstituteType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.InstituteType = InstituteType
Namespace.addCategoryObject('typeBinding', 'InstituteType', InstituteType)
Namespace.addCategoryObject('typeBinding_04', 'InstituteType', InstituteType)


# Complex type {http://teaser.project}Institute4Type with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1863,7 +1863,7 @@ class Institute4Type (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.Institute4Type = Institute4Type
Namespace.addCategoryObject('typeBinding', 'Institute4Type', Institute4Type)
Namespace.addCategoryObject('typeBinding_04', 'Institute4Type', Institute4Type)


# Complex type {http://teaser.project}Institute8Type with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1987,7 +1987,7 @@ class Institute8Type (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.Institute8Type = Institute8Type
Namespace.addCategoryObject('typeBinding', 'Institute8Type', Institute8Type)
Namespace.addCategoryObject('typeBinding_04', 'Institute8Type', Institute8Type)


# Complex type {http://teaser.project}ProjectType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -2063,11 +2063,11 @@ class ProjectType (pyxb.binding.basis.complexTypeDefinition):
__version.name() : __version
})
_module_typeBindings.ProjectType = ProjectType
Namespace.addCategoryObject('typeBinding', 'ProjectType', ProjectType)
Namespace.addCategoryObject('typeBinding_04', 'ProjectType', ProjectType)


Project = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Project'), ProjectType, location=pyxb.utils.utility.Location('D:\\GIT\\TEASER\\teaser\\data\\bindings\\schemas\\Project.xsd', 6, 2))
Namespace.addCategoryObject('elementBinding', Project.name().localName(), Project)
Namespace.addCategoryObject('elementBinding_04', Project.name().localName(), Project)



Expand Down
42 changes: 21 additions & 21 deletions teaser/data/bindings/v_0_5/project_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# NOTE: All namespace declarations are reserved within the binding
Namespace = pyxb.namespace.NamespaceForURI('http://teaser.project', create_if_missing=True)
Namespace.configureCategories(['typeBinding_05', 'elementBinding_05'])
Namespace.configureCategories(['typeBinding', 'elementBinding'])

def CreateFromDocument (xml_text, default_namespace=None, location_base=None):
"""Parse the given XML and use the document element to create a
Expand Down Expand Up @@ -103,7 +103,7 @@ class UseConditionType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.UseConditionType = UseConditionType
Namespace.addCategoryObject('typeBinding_05', 'UseConditionType', UseConditionType)
Namespace.addCategoryObject('typeBinding', 'UseConditionType', UseConditionType)


# Complex type {http://teaser.project}MaterialType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -171,7 +171,7 @@ class MaterialType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.MaterialType = MaterialType
Namespace.addCategoryObject('typeBinding_05', 'MaterialType', MaterialType)
Namespace.addCategoryObject('typeBinding', 'MaterialType', MaterialType)


# Complex type {http://teaser.project}LayerType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -215,7 +215,7 @@ class LayerType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.LayerType = LayerType
Namespace.addCategoryObject('typeBinding_05', 'LayerType', LayerType)
Namespace.addCategoryObject('typeBinding', 'LayerType', LayerType)


# Complex type {http://teaser.project}OuterWallType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -331,7 +331,7 @@ class OuterWallType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.OuterWallType = OuterWallType
Namespace.addCategoryObject('typeBinding_05', 'OuterWallType', OuterWallType)
Namespace.addCategoryObject('typeBinding', 'OuterWallType', OuterWallType)


# Complex type {http://teaser.project}RooftopType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -447,7 +447,7 @@ class RooftopType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.RooftopType = RooftopType
Namespace.addCategoryObject('typeBinding_05', 'RooftopType', RooftopType)
Namespace.addCategoryObject('typeBinding', 'RooftopType', RooftopType)


# Complex type {http://teaser.project}InnerWallType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -547,7 +547,7 @@ class InnerWallType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.InnerWallType = InnerWallType
Namespace.addCategoryObject('typeBinding_05', 'InnerWallType', InnerWallType)
Namespace.addCategoryObject('typeBinding', 'InnerWallType', InnerWallType)


# Complex type {http://teaser.project}CeilingType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -647,7 +647,7 @@ class CeilingType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.CeilingType = CeilingType
Namespace.addCategoryObject('typeBinding_05', 'CeilingType', CeilingType)
Namespace.addCategoryObject('typeBinding', 'CeilingType', CeilingType)


# Complex type {http://teaser.project}FloorType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -747,7 +747,7 @@ class FloorType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.FloorType = FloorType
Namespace.addCategoryObject('typeBinding_05', 'FloorType', FloorType)
Namespace.addCategoryObject('typeBinding', 'FloorType', FloorType)


# Complex type {http://teaser.project}GroundFloorType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -847,7 +847,7 @@ class GroundFloorType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.GroundFloorType = GroundFloorType
Namespace.addCategoryObject('typeBinding_05', 'GroundFloorType', GroundFloorType)
Namespace.addCategoryObject('typeBinding', 'GroundFloorType', GroundFloorType)


# Complex type {http://teaser.project}WindowType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -995,7 +995,7 @@ class WindowType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.WindowType = WindowType
Namespace.addCategoryObject('typeBinding_05', 'WindowType', WindowType)
Namespace.addCategoryObject('typeBinding', 'WindowType', WindowType)


# Complex type {http://teaser.project}ThermalZoneType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1127,7 +1127,7 @@ class ThermalZoneType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.ThermalZoneType = ThermalZoneType
Namespace.addCategoryObject('typeBinding_05', 'ThermalZoneType', ThermalZoneType)
Namespace.addCategoryObject('typeBinding', 'ThermalZoneType', ThermalZoneType)


# Complex type {http://teaser.project}BuildingAHUType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1243,7 +1243,7 @@ class BuildingAHUType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.BuildingAHUType = BuildingAHUType
Namespace.addCategoryObject('typeBinding_05', 'BuildingAHUType', BuildingAHUType)
Namespace.addCategoryObject('typeBinding', 'BuildingAHUType', BuildingAHUType)


# Complex type {http://teaser.project}BuildingType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1367,7 +1367,7 @@ class BuildingType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.BuildingType = BuildingType
Namespace.addCategoryObject('typeBinding_05', 'BuildingType', BuildingType)
Namespace.addCategoryObject('typeBinding', 'BuildingType', BuildingType)


# Complex type {http://teaser.project}OfficeType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1491,7 +1491,7 @@ class OfficeType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.OfficeType = OfficeType
Namespace.addCategoryObject('typeBinding_05', 'OfficeType', OfficeType)
Namespace.addCategoryObject('typeBinding', 'OfficeType', OfficeType)


# Complex type {http://teaser.project}ResidentialType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1615,7 +1615,7 @@ class ResidentialType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.ResidentialType = ResidentialType
Namespace.addCategoryObject('typeBinding_05', 'ResidentialType', ResidentialType)
Namespace.addCategoryObject('typeBinding', 'ResidentialType', ResidentialType)


# Complex type {http://teaser.project}InstituteType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1739,7 +1739,7 @@ class InstituteType (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.InstituteType = InstituteType
Namespace.addCategoryObject('typeBinding_05', 'InstituteType', InstituteType)
Namespace.addCategoryObject('typeBinding', 'InstituteType', InstituteType)


# Complex type {http://teaser.project}Institute4Type with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1863,7 +1863,7 @@ class Institute4Type (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.Institute4Type = Institute4Type
Namespace.addCategoryObject('typeBinding_05', 'Institute4Type', Institute4Type)
Namespace.addCategoryObject('typeBinding', 'Institute4Type', Institute4Type)


# Complex type {http://teaser.project}Institute8Type with content type ELEMENT_ONLY
Expand Down Expand Up @@ -1987,7 +1987,7 @@ class Institute8Type (pyxb.binding.basis.complexTypeDefinition):

})
_module_typeBindings.Institute8Type = Institute8Type
Namespace.addCategoryObject('typeBinding_05', 'Institute8Type', Institute8Type)
Namespace.addCategoryObject('typeBinding', 'Institute8Type', Institute8Type)


# Complex type {http://teaser.project}ProjectType with content type ELEMENT_ONLY
Expand Down Expand Up @@ -2063,11 +2063,11 @@ class ProjectType (pyxb.binding.basis.complexTypeDefinition):
__version.name() : __version
})
_module_typeBindings.ProjectType = ProjectType
Namespace.addCategoryObject('typeBinding_05', 'ProjectType', ProjectType)
Namespace.addCategoryObject('typeBinding', 'ProjectType', ProjectType)


Project = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'Project'), ProjectType, location=pyxb.utils.utility.Location('D:\\GIT\\TEASER\\teaser\\data\\bindings\\schemas\\Project.xsd', 6, 2))
Namespace.addCategoryObject('elementBinding_05', Project.name().localName(), Project)
Namespace.addCategoryObject('elementBinding', Project.name().localName(), Project)



Expand Down
2 changes: 1 addition & 1 deletion teaser/data/dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def load_mat_binding(self):
"""
try:
__xml_file_mat = open(self.path_mat, 'r+')
version_parse = et.parse(self.path_tb)
version_parse = et.parse(self.path_mat)
except:
__xml_file_mat = open(self.path_mat, 'w')
version_parse = False
Expand Down
Loading

0 comments on commit ebd1f56

Please sign in to comment.