Exemplo n.º 1
0
 def create_workflow_entity(self, workflow, action):
     entity = WorkflowEntity(workflow)
     self.children.append(entity)
     entity.parent = self
     if self.vistrail.has_notes(action.id):
         plain_notes = extract_text(self.vistrail.get_notes(action.id))
         entity.description = plain_notes
     else:
         entity.description = ''
     entity.user = action.user
     entity.mod_time = action.db_date
     entity.create_time = action.db_date
     locator = BaseLocator.from_url(self.url)
     locator.kwargs['version_node'] = action.id
     entity.url = locator.to_url()
     return entity
Exemplo n.º 2
0
 def create_workflow_entity(self, workflow, action):
     entity = WorkflowEntity(workflow)
     self.children.append(entity)
     entity.parent = self
     if self.vistrail.has_notes(action.id):
         plain_notes = extract_text(self.vistrail.get_notes(action.id))
         entity.description = plain_notes
     else:
         entity.description = ''
     entity.user = action.user
     entity.mod_time = action.date
     entity.create_time = action.date
     locator = BaseLocator.from_url(self.url)
     locator.kwargs['version_node'] = action.id
     entity.url = locator.to_url()
     return entity
Exemplo n.º 3
0
 def create_mashup_entity(self, trail_id, mashup, action):
     entity = MashupEntity(mashup)
     self.children.append(entity)
     entity.parent = self
     vt_version = mashup.version
     if self.vistrail.has_notes(vt_version):
         plain_notes = extract_text(self.vistrail.get_notes(vt_version))
         entity.description = plain_notes
     else:
         entity.description = ''
     entity.user = action.user
     entity.mod_time = action.date
     entity.create_time = action.date
     locator = BaseLocator.from_url(self.url)
     locator.kwargs['mashuptrail'] = trail_id
     locator.kwargs['mashup'] = action.id
     entity.url = locator.to_url()
     return entity
Exemplo n.º 4
0
 def create_mashup_entity(self, trail_id, mashup, action):
     entity = MashupEntity(mashup)
     self.children.append(entity)
     entity.parent = self
     vt_version = mashup.version
     if self.vistrail.has_notes(vt_version):
         plain_notes = extract_text(self.vistrail.get_notes(vt_version))
         entity.description = plain_notes
     else:
         entity.description = ''
     entity.user = action.user
     entity.mod_time = action.db_date
     entity.create_time = action.db_date
     locator = BaseLocator.from_url(self.url)
     locator.kwargs['mashuptrail'] = trail_id
     locator.kwargs['mashup'] = action.id
     entity.url = locator.to_url()
     return entity
Exemplo n.º 5
0
 def match(self, vistrail, action):
     if vistrail.has_notes(action.id):
         plainNotes = extract_text(vistrail.get_notes(action.id))
         return self._content_matches(plainNotes)
     return False
Exemplo n.º 6
0
 def match(self, vistrail, action):
     if vistrail.has_notes(action.id):
         plainNotes = extract_text(vistrail.get_notes(action.id))
         return self._content_matches(plainNotes)
     return False
Exemplo n.º 7
0
 def match(self, entity):
     if entity.description:
         plainNotes = extract_text(entity.description)
         return self.content.search(plainNotes)
     return False
Exemplo n.º 8
0
 def match(self, entity):
     if entity.description:
         plainNotes = extract_text(entity.description)
         return self.content.search(plainNotes)
     return False
Exemplo n.º 9
0
 def match(self, controller, action):
     notes = controller.get_notes(action.id)
     if notes:
         plainNotes = extract_text(notes)
         return self._content_matches(plainNotes)
     return False
Exemplo n.º 10
0
 def match(self, controller, action):
     notes = controller.get_notes(action.id)
     if notes:
         plainNotes = extract_text(notes)
         return self._content_matches(plainNotes)
     return False