version 1.63, 2007/09/26 19:32:00
|
version 1.64, 2007/10/04 14:15:33
|
Line 442 class VLP_collection(ECHO_collection):
|
Line 442 class VLP_collection(ECHO_collection):
|
litid = str(found.reference) |
litid = str(found.reference) |
foundCol=self.ZopeFind(self,obj_ids=[litid]) |
foundCol=self.ZopeFind(self,obj_ids=[litid]) |
if foundCol: |
if foundCol: |
logging.debug("generateSubCollections: recreating collection %s"%found.reference) |
logging.debug("generateSubCollections: deleting collection %s"%found.reference) |
self.manage_delObjects([foundCol[0][0]]) |
self.manage_delObjects([foundCol[0][0]]) |
|
|
|
logging.debug("generateSubCollections: creating collection %s"%found.reference) |
manage_addVLP_subCollection(self,litid,found.titlerefdisplay,found.titlerefdisplay) |
manage_addVLP_subCollection(self,litid,found.titlerefdisplay,found.titlerefdisplay) |
#getattr(self,found.reference).generateSubCollectionFromDB() |
#getattr(self,found.reference).generateSubCollectionFromDB() |
|
|
#teste ob es Images auf dem Server gibt mit gleichem Namen (frontmatter) |
#teste ob es Images auf dem Server gibt mit gleichem Namen (frontmatter) |
if os.path.exists(os.path.join(self.vlp_basis,litid)): |
if os.path.exists(os.path.join(self.vlp_basis,litid)): |
logging.debug("generateSubCollections: found collection dir %s"%litid) |
logging.debug("generateSubCollections: found collection dir %s"%litid) |
Line 456 class VLP_collection(ECHO_collection):
|
Line 458 class VLP_collection(ECHO_collection):
|
metalink=self.REQUEST['URL1']+"/"+litid+"/"+litid+"/index_meta" |
metalink=self.REQUEST['URL1']+"/"+litid+"/"+litid+"/index_meta" |
newObj=VLP_resource(litid,'',metalink,litid,litid,litid,'generated','book','','','','','','') |
newObj=VLP_resource(litid,'',metalink,litid,litid,litid,'generated','book','','','','','','') |
obj._setObject(litid,newObj) |
obj._setObject(litid,newObj) |
|
|
genObj=getattr(obj,litid) |
genObj=getattr(obj,litid) |
genObj.createIndexFile() |
genObj.createIndexFile() |
|
|