예제 #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
예제 #2
0
파일: vistrail.py 프로젝트: cjh1/VisTrails
 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
예제 #3
0
파일: vistrail.py 프로젝트: cjh1/VisTrails
 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
예제 #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
예제 #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
예제 #6
0
파일: version.py 프로젝트: Nikea/VisTrails
 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
예제 #7
0
 def match(self, entity):
     if entity.description:
         plainNotes = extract_text(entity.description)
         return self.content.search(plainNotes)
     return False
예제 #8
0
파일: search.py 프로젝트: cjh1/VisTrails
 def match(self, entity):
     if entity.description:
         plainNotes = extract_text(entity.description)
         return self.content.search(plainNotes)
     return False
예제 #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
예제 #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