--- a/OSSEval/analysis/models.py
+++ b/OSSEval/analysis/models.py
@@ -527,7 +527,6 @@
self.methodology_version = MethodologyVersion.objects.get(pk=xmlMinidom.getNaturalAttribute(xmldoc, 'MethodologyVersionId'))
self.user_login = xmlMinidom.getStringAttribute(xmldoc, 'UserLogin')
self.visible = xmlMinidom.getStringAttribute(xmldoc, 'Visible')
- self.protected = xmlMinidom.getStringAttribute(xmldoc, 'Protected')
#self.weight_scenario
xml_weight_scenario = xmldoc.getElementsByTagName('WeightScenario')[0]
ws = WeightScenario()
@@ -552,7 +551,7 @@
str_xml += instance.to_xml()
str_xml += "</Instances>"
- return '<Analysis Id="' + str(self.id) + '" MethodologyVersionId="' + str(self.methodology_version.id) + '" Name="' + self.name + '" Created="' + str(self.created) + '" Visible="' + str(self.visible) + '" Protected="' + str(self.protected) + '" UserLogin="' + self.user_login + '">' + str_xml + "</Analysis>"
+ return '<Analysis Id="' + str(self.id) + '" MethodologyVersionId="' + str(self.methodology_version.id) + '" Name="' + self.name + '" Created="' + str(self.created) + '" Visible="' + str(self.visible) + '" UserLogin="' + self.user_login + '">' + str_xml + "</Analysis>"
class Instance(models.Model):
"""