Esempio n. 1
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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 5
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
Esempio n. 6
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
Esempio n. 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
Esempio n. 8
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