problem portal_catalog and internally_published
Encolpe Degoute
encolpe.degoute at ingeniweb.com
Thu Oct 18 11:15:09 UTC 2007
Julien Bessiere a écrit :
> So I thought, I could try to get the state by doing this:
> ----------------------------------------------------------------------
> for presult in folder.portal_catalog(portal_type_operator="or",
> portal_type=
> ['Event','ATEvent'],
> path='/'.join
> (folder.getPhysicalPath())):
> obj = presult.getObject()
> info(obj)
> info(obj.review_state)
> ----------------------------------------------------------------------
> This way, I've got all my events.
> But I've got a message : error Attribute. obj does not have an
> review_state attribute.
>
> Any idea how I could find out the exact review state of my
> internally_published events ?
On the brain: presult.review_state
Regards,
--
Encolpe Degoute
INGENIWEB (TM) - S.A.S 50000 Euros - RC B 438 725 632
17 rue Louise Michel - 92300 Levallois Perret - France
web : www.ingeniweb.com - « les Services Web Ingénieux »
Tel : 01.78.15.24.08 / Fax : 01 47 57 39 14
More information about the Product-Developers
mailing list