[Zope-CMF] Plone: retract (hide) workflow

Brad Clements bkc@murkworks.com
Sun, 10 Mar 2002 14:46:21 -0500


After installing the latest plone skin.. I find that my Document objects default to Visible, 
and Everyone (even anonymous) can view those documents.

I changed the workflow/states/visible/permissions so anonymous can't view/access 
contents. Hope that's the right thing to do.

Anyway, there doesn't seem to be any way to Retract (make private) a document. I 
don't see the content_retract_form in the tabs..

If I manually tack on /content_retract_form I can see the form for my object.. But when I 
submit the form I get a traceback (shown below)

Perhaps the traceback occurs due to the improper forcing of the retract_form url.. But 
I'd like my objects to default to Private on creation (got that set in the workflow now), 
but I need to be able to change visibility..

WorkflowException
Sorry, a site error occurred. 
Traceback (innermost last):
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/ZPublisher/Publish.py, line 153, in 
publish_module
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/ZPublisher/Publish.py, line 117, in publish
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/Zope/__init__.py, line 158, in 
zpublisher_exception_hook
    (Object: Jython)
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: content_status_modify)
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: content_status_modify)
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in 
__call__
    (Object: content_status_modify)
  File /usr/local/Zope/Zope-2.5.0-linux2-
x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in 
_bindAndExec
    (Object: content_status_modify)
  File 
/usr/local/Zope/AdkWood/Products/CMFCore/FSPythonScript.py, line 
115, in _exec
    (Object: content_status_modify)
    (Info: ({'script': <FSPythonScript instance at 9309138>, 
'context': <PloneFolder instance at 8bab5b0>, 'container': 
<CMFSite instance at 96f4c78>, 'traverse_subpath': []}, 
('retract', '', None, None), {}, ('', None, None)))
  File Script (Python), line 8, in content_status_modify
  File /usr/local/Zope/AdkWood/Products/CMFCore/WorkflowTool.py, 
line 451, in doActionFor
    (Object: portal_workflow)
WorkflowException: No workflows found.


Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
AOL-IM: BKClements