예제 #1
0
파일: wiki.py 프로젝트: DalavanCloud/allura
 def index(self):
     result = Snapshot.index(self)
     title = '%s (version %d)' % (self.original().title, self.version)
     result.update(title=title,
                   type_s='WikiPage Snapshot',
                   text=self.data.text)
     return result
예제 #2
0
 def index(self):
     result = Snapshot.index(self)
     result.update(title_s='Version %d of %s' %
                   (self.version, self.original().title),
                   type_s='WikiPage Snapshot',
                   text=self.data.text)
     return result
예제 #3
0
 def index(self):
     result = Snapshot.index(self)
     result.update(title_s='Version %d of %s' %
                   (self.version, self.original().summary),
                   type_s='Ticket Snapshot',
                   text=self.data.summary)
     return result
예제 #4
0
 def index(self):
     result = Snapshot.index(self)
     title = '%s (version %d)' % (self.original().title, self.version)
     result.update(
         title=title,
         type_s='WikiPage Snapshot',
         text=self.data.text)
     return result
예제 #5
0
파일: wiki.py 프로젝트: Bitergia/allura
 def index(self):
     result = Snapshot.index(self)
     result.update(
         title_s='Version %d of %s' % (
             self.version,self.original().title),
         type_s='WikiPage Snapshot',
         text=self.data.text)
     return result
예제 #6
0
파일: ticket.py 프로젝트: Bitergia/allura
 def index(self):
     result = Snapshot.index(self)
     result.update(
         title_s='Version %d of %s' % (
             self.version,self.original().summary),
         type_s='Ticket Snapshot',
         text=self.data.summary)
     return result
예제 #7
0
 def index(self):
     orig = self.original()
     if not orig:
         return None
     result = Snapshot.index(self)
     result.update(title='Version %d of %s' % (self.version, orig.summary),
                   type_s='Ticket Snapshot',
                   text=self.data.summary)
     # Tracker uses search with default solr parser. It would match only on
     # `text`, so we're appending all other field values into `text`, to match on it too.
     result['text'] += pformat(result.values())
     return result
예제 #8
0
파일: ticket.py 프로젝트: joequant/allura
 def index(self):
     orig = self.original()
     if not orig:
         return None
     result = Snapshot.index(self)
     result.update(
         title="Version %d of %s" % (self.version, orig.summary), type_s="Ticket Snapshot", text=self.data.summary
     )
     # Tracker uses search with default solr parser. It would match only on
     # `text`, so we're appending all other field values into `text`, to match on it too.
     result["text"] += pformat(result.values())
     return result