set _search_copy in segment so restoring using __setstate__ will have that attribute

This commit is contained in:
Rob McMullen 2016-04-12 19:57:28 -07:00
parent b3e5005b56
commit 19b90e9305

View File

@ -152,12 +152,12 @@ class DefaultSegment(object):
self.verbose_name = verbose_name self.verbose_name = verbose_name
self.page_size = -1 self.page_size = -1
self.map_width = 40 self.map_width = 40
self._search_copy = None
def set_raw(self, rawdata): def set_raw(self, rawdata):
self.rawdata = rawdata self.rawdata = rawdata
self.data = rawdata.get_data() self.data = rawdata.get_data()
self.style = rawdata.get_style() self.style = rawdata.get_style()
self._search_copy = None
def get_raw(self): def get_raw(self):
return self.rawdata return self.rawdata