def list_content(self, content_type=None, iface=None, **kwargs): """ use base listing, but filter out temp objects """ result = HitmanBaseFolder.list_content( self, content_type, iface, **kwargs) # filter out temp objects result = [r for r in result if not ITemporaryObject.providedBy(r)] return result
def __init__(self, context, request): BaseView.__init__(self, context, request) self.context = context assert ITemporaryObject.providedBy(context), \ "This object is not in a temporary state" self.form = self.context.__form__(request) pyramidformview.__init__(self, self.context, request, self.form, retrieve_data=True)