Title: Documento sin título

 Hello readers.

I've been having problems with the publication of contents recursively. I get an Error when I publish a folder into another folder, the problem was in the script Products/CPSDefault/recursivepublish.py, in line 77-78, when it try to execute portal.restrictedTraverse with a path that doesn't exist. So I made the following modifications and it seems to work well.

I've changed the lines 77-78 for the following lines:

-    rmtool = context.portal_remote_controller
-    try:
-    target_section_parent = portal.restrictedTraverse(
-        target_section_parent_rpath)
-    except:
-    ids_folder = str(target_section_parent_rpath).split('/')
-    path_doc = 'sections'
-    for id_folder in ids_folder:
-        if str(id_folder) != 'sections':
-            path_doc += '/'+id_folder
-            logger.info('path: ' + str(path_doc))
-            exp_path = rmtool.createDocument('Section', {'Title':id_folder,'Language':'es',},str(path_doc).replace('/'+id_folder,''))
-
-            target_section_parent = portal.restrictedTraverse(path_doc)

Best regards,
David Macias

________________________________

 DAVID MACÍAS
Técnico I+D+i

C/Severo Ochoa 4,
Edificio Investigaciones Universitarias,
Parque Tecnológico de Andalucía, Málaga
[email protected]
Tel.: 902 995 246
Mol.: 696 324 142

www.yerbabuena.es
[email protected]

 




_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to