Marcos,

Sigo igual, me pasa lo mismo que cuando arme yo la query, excepto que ahora
le agregue el search_catalog como me indicaste.
El reference field me quedo asi:

    ReferenceField(
        name='Colaborador',
        widget=ReferenceBrowserWidget(
            startup_directory="/portal_memberdata",
            restrict_browsing_to_startup_directory="True",
            label='Colaborador',
            label_msgid='DesarrolloInformatico_label_Colaborador',
            i18n_domain='DesarrolloInformatico',
                        search_catalog = 'membrane_tool',
                        allow_browse="False",
                        base_query={'portal_type':'Miembro','getRoles': 
'Colaborador'}, 
        ),
        schemata="Equipo de desarrollo",
        multiValued=True,
        relationship='desarrolloinformatico_colaborador',
    ),

Lo que me sucede es que siempre muestra todos los elementos, incluso con el
allow_browse="False" (base_query (dict or name of method) = Defines query
terms that will apply to all searches, mainly useful to create specific
restrictions when allow_browse=0. Can be either a dictonary with query
parameters, or the name of a method or callable available in cotext that
will return such a dictionary.).
Podra ser por el tipo de indice? me fije en el indice "getRoles" que se
encuentra en membrane_tool (no el que habia creado yo) y es del tipo
fieldindex.

Seguire probando!
Gracias por tu continua ayuda
-- 
View this message in context: 
http://plone-regional-forums.221720.n2.nabble.com/ReferenceField-ReferenceBrowserWidget-tp5224362p5237045.html
Sent from the Plone - Cono Sur mailing list archive at Nabble.com.
_______________________________________________
Plone-ConoSur mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-conosur

Responder a