Switch to unified view
a/OSSEval/entity/models.py | b/OSSEval/entity/models.py | ||
---|---|---|---|
... |
... |
||
14 | # I save so I get the ID (if insert == True) |
14 | # I save so I get the ID (if insert == True) |
15 | self.save() |
15 | self.save() |
16 | def to_xml(self): |
16 | def to_xml(self): |
17 | return '<Entity Id="' + str(self.id) + '" Name="' + self.name + '" ActualEntityClass="' + self.actual_entity_class + '" ActualEntityApp="' + self.actual_entity_app + '"/>' |
17 | return '<Entity Id="' + str(self.id) + '" Name="' + self.name + '" ActualEntityClass="' + self.actual_entity_class + '" ActualEntityApp="' + self.actual_entity_app + '"/>' |
18 | 18 | ||
19 | def __unicode__(self):
|
19 | def __str__(self):
|
20 | return self.name |
20 | return self.name |
21 | 21 | ||
22 | 22 | ||
23 | class SearchConfiguration(models.Model): |
23 | class SearchConfiguration(models.Model): |
24 | proxy_url = models.CharField(max_length=300) |
24 | proxy_url = models.CharField(max_length=300) |