Hello everybody,

 

I'm using CPS 3.3.8 and I've created a new CPS Tree Cache which I need to navigate in a subfolder of workspaces. I set all properties with the same values of workspaces tree but Root field which value is "workspaces/practices". The tree rebuilds perfectly this way, but when I try to run this code .getTree() returns an empty list.

 

The code is:

 

########################################################

root_uid='practices' ## The identifier of the new tree cache

current_uid='workspaces/practices/citizen'  ## Simulate this location

authorized_only = False

expand_all = True

object = context.portal_url.getPortalObject().workspaces.practices.citizen

 

try:

  nav = CPSNavigation(current_uid=current_uid,

    no_leaves=1,

    context = object,

    root_uid=root_uid,

    expand_all=expand_all,

    authorized_only=authorized_only)   

except KeyError:

  nav = None

 

print nav

print nav.dumpTree() ## Returns a list with elements

print nav.getTree()    ## Returns an empty list!!

print nav.getListing()  ## Returns a list with elements

return printed

#####################################

 

Can anyone help me?

 

Thank you very much.

JoseLuis de la Rosa Triviño
Becario Área de Sistemas de Información
FUNDACIÓN IAVANTE
[EMAIL PROTECTED]
Tel. 951 015 300

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

 

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to