#NEWLINE# def startService( self ) : #NEWLINE# #INDENT# log . msg ( 'Loading index' ) #NEWLINE# try : #NEWLINE# #INDENT# f = file ( self . _makeFilename ( 'index' ) , 'rb' ) #NEWLINE# d = pickle . load ( f ) #NEWLINE# self . _index = d [ 'index' ] #NEWLINE# self . _nextOid = f [ 'nextOid' ] #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# self . _index = [ ] #NEWLINE# self . _nextOid = 1