Skip to content

Commit a121beb

Browse files
author
Daniela Butano
authored
Merge pull request #86 from danielabutano/ci
template holds the view_types
2 parents ebec0e4 + 71c9b0e commit a121beb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

intermine/query.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,7 @@ def __init__(self, *args, **kwargs):
18351835
super(Template, self).__init__(*args, **kwargs)
18361836
self.constraint_factory = constraints.TemplateConstraintFactory()
18371837
self.title = ''
1838+
self.view_types = []
18381839

18391840
@classmethod
18401841
def from_xml(cls, xml, *args, **kwargs):
@@ -1869,6 +1870,8 @@ def from_xml(cls, xml, *args, **kwargs):
18691870
"Found %d" % len(templates))
18701871
t = templates[0]
18711872
obj.title = t.getAttribute('title')
1873+
for data_type in t.getAttribute('dataTypes').split(' '):
1874+
obj.view_types.append(data_type)
18721875

18731876
obj.verify()
18741877

0 commit comments

Comments
 (0)