def xmlrpc_syncdata(self): if self.newc.isclosed==1: self.newc=preparecontent() self.newc.sync() self.newc.close() self.newc=preparecontent() return defer.succeed(1)
def xmlrpc_insertdata(self, *args): """ Insert temp data from xmlrpc .""" if self.newc.isclosed==1: self.newc=preparecontent() if len(args)>2: url=args[0] title=args[1] content=args[2] self.newc.insertbufferlist(url,(title,content)) return defer.succeed(1)
def __init__ (self): Thread.__init__(self) self.lindexer=indexer.Contentprocess() self.newc=preparecontent()
def __init__(self,query): self.query=query self.newc=preparecontent() self.allowNone=1