version 1.75, 2008/09/05 16:08:30
|
version 1.77, 2008/09/08 18:41:34
|
Line 530 class VLP_collection(ECHO_collection):
|
Line 530 class VLP_collection(ECHO_collection):
|
|
|
if RESPONSE is not None: |
if RESPONSE is not None: |
self.REQUEST.RESPONSE.write("<p>%s</p>\n"%litid) |
self.REQUEST.RESPONSE.write("<p>%s</p>\n"%litid) |
|
logging.debug("<p>%s</p>\n"%litid) |
|
|
except: |
except: |
error=sys.exc_info()[0:2] |
error=sys.exc_info()[0:2] |
Line 568 class VLP_collection(ECHO_collection):
|
Line 569 class VLP_collection(ECHO_collection):
|
i+=1 |
i+=1 |
else: |
else: |
i=0 |
i=0 |
|
j=0 |
|
while j<5: |
|
try: |
transaction.get().commit() |
transaction.get().commit() |
|
j=6 |
|
except: |
|
logging.error("Commit: %s"%j) |
|
j+=1 |
|
|
RESPONSE.write("<p>committed</p>") |
RESPONSE.write("<p>committed</p>") |
if fileName[0:3]=="lit": |
if fileName[0:3]=="lit": |
metalink=self.REQUEST['URL1']+"/"+fileName+"/index_meta" |
metalink=self.REQUEST['URL1']+"/"+fileName+"/index_meta" |
Line 578 class VLP_collection(ECHO_collection):
|
Line 587 class VLP_collection(ECHO_collection):
|
logging.debug("updateCollection: new %s"%fileName) |
logging.debug("updateCollection: new %s"%fileName) |
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.write("<p>new: %s</p>\n"%fileName) |
RESPONSE.write("<p>new: %s</p>\n"%fileName) |
|
logging.debug("new: %s \n"%fileName) |
newObj=VLP_resource(fileName,'',metalink,fileName,fileName,fileName,'generated','book','','','','','','') |
newObj=VLP_resource(fileName,'',metalink,fileName,fileName,fileName,'generated','book','','','','','','') |
self._setObject(fileName,newObj) |
self._setObject(fileName,newObj) |
|
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.write("<p>got: %s "%fileName) |
RESPONSE.write("<p>got: %s "%fileName) |
|
|
|
logging.debug("got: %s "%fileName) |
genObj=getattr(self,fileName) |
genObj=getattr(self,fileName) |
logging.debug("updateCollection: inspecting %s"%fileName) |
logging.debug("updateCollection: inspecting %s"%fileName) |
# create index |
# create index |