[Zope-CMF] faster way of getting review state of an object ?

Romain Slootmaekers romain@zzict.com
Wed, 23 Apr 2003 10:59:26 +0200


Yo,
I'm trying to list only published items from a list of CMFContent types 
and currently, I'm using this code:

result=[]
for item in myListOfCMFContentTypes:
  reviewState=item.workflow_history['plone_workflow'][-1]['review_state']
  if not reviewState == 'published':
         result.append(item)


It works fine,
but there must be an easier way to find out if an object is published, no?

TIA,

Romain.