Fwd: Re: [Zope-CMF] multiple publish of Documents, Images
Jens Hauser
Jens Hauser" <hauser@jam-gmbh.de
Thu, 19 Sep 2002 11:14:06 +0200
Hi Chris,
due to the fact that I ran a version quite old (both Zope and CMF; never touch
a running system ;-), I upgraded to the actual version CMF 1.3 and Zope 2.5.1
and still get the same error as described below.
Any ideas?
Best regards,
Jens
==================BEGIN FORWARDED MESSAGE==================
Hi Chris,
On Wed, 18 Sep 2002 12:04:03 +0100, Chris Withers wrote:
>don't tell me, tell the list.
thought it was a too stupid question ...;-)
>include what version of CMF, Zope and DCWorkflow you are using.
Yes. It was stupid to forget that:
Zope Version (Zope 2.4.1 (binary release, python 2.1, linux2-x86), python
2.1.0, linux2)
Python Version 2.1 (#2, Jun 22 2001, 10:20:42) [GCC 2.7.2.3]
DC Workflow: 0.4.2
CMF: 1.1beta
Best regards,
Jens
>Jens Hauser wrote:
>> Hi Chris,
>>
>> On Wed, 18 Sep 2002 10:37:19 +0100, Chris Withers wrote:
>>
>>
>>>Hi Jens,
>>>
>>>Jens Hauser wrote:
>>>
>>>
>>>>I run this script through the following dtml method:
>>>
>>>Why on earth are you using DTML for this?!
>>
>> I remember why I used dtml to run this script. If I ran it directly (even your
>> script), I get the following error message:
>>
>> ########CUT
>> Zope Error
>> Zope has encountered an error while publishing this resource.
>>
>> Error Type: WorkflowException
>> Error Value: No workf
>> found.
>>
>>
>>
>> -------------------------------------------------------------------------------
>> -
>>
>> Troubleshooting Suggestions
>>
>> The URL may be incorrect.
>> The parameters passed to this resource may be incorrect.
>> A resource that this resource relies on may be encountering an error.
>> For more detailed information about the error, please refer to the HTML source
>> for this page.
>>
>> If the error persists please contact the site maintainer. Thank you for your
>> patience.
>>
>>
>> Traceback (innermost last):
>> File /opt/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module
>> File /opt/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
>> File /opt/zope/lib/python/Zope/__init__.py, line 226, in
>> zpublisher_exception_hook
>> (Object: LockableItem)
>> File /opt/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
>> File /opt/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
>> (Object: publish_site)
>> File /opt/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
>> (Object: publish_site)
>> File /opt/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in
>> __call__
>> (Object: publish_site)
>> File /opt/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in
>> _bindAndExec
>> (Object: publish_site)
>> File /opt/zope/lib/python/Products/PythonScripts/PythonScript.py, line 363,
>> in _exec
>> (Object: publish_site)
>> (Info: ({'script': <PythonScript instance at 8b197f0>, 'context':
>> <PortalFolder instance at 8bfba28>, 'container': <CMFSite instance at
>> 9633ab8>, 'traverse_subpath': []}, (), {}, None))
>> File Script (Python), line 4, in publish_site
>> (Object: guarded_getattr)
>> File /opt/zope/lib/python/Products/CMFCore/WorkflowTool.py, line 499, in
>> doActionFor
>> (Object: LockableItem)
>> WorkflowException: (see above)
>>
>> ########CUT
>>
>> Can you tell me what's wrong or missing?
>> Maybe a hint to a documentation I should read first?
>>
>> Best regards,
>>
>> Jens
>>
>>
>>
>>>Here's a python script that will do roughly what I think you want it to:
>>>
>>>wf_tool = context.portal_workflow
>>>stack = [context]
>>>for object in stack:
>>> wf_tool.doActionFor( object, 'publish', comment="Your comment" )
>>> if object.isPrincipiaFolderish:
>>> children = objects.contentValues()
>>> for child in children:
>>> if not id in ['allgemeines','img','pdf','aktuelles',
>>> 'Members','news','thumbs']:
>>> stack.append(child)
>>>
>>>
>>>Call is it using the following URL:
>>>http://www.zope-domain.de/kitchen-aid/publish_test
>>>..and it should publish all content, per your filtering, in your site.
>>>
>>>cheers,
>>>
>>>Chris
>>>
>>
>>
>>
>>
>
>
j.a.m. GmbH
Computer, Systemberatung, Webhosting, Softwareentwicklung
Eschersheimer Landstraße 471
60431 Frankfurt am Main
fon (069) 46 09 88 - 13
fax (069) 46 09 88 - 78
url http://www.jam-gmbh.de
Haben Sie schon Jamail probiert? Den eMailer für personalisierte Serien-Mails?
Jetzt testen: http://www.jamail.de
Already tried Jamail? Visit the personalized massmailer @
http://www.jamail.de/us/
-----------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
ist nicht gestattet.
===================END FORWARDED MESSAGE===================
j.a.m. GmbH
Computer, Systemberatung, Webhosting, Softwareentwicklung
Eschersheimer Landstraße 471
60431 Frankfurt am Main
fon (069) 46 09 88 - 13
fax (069) 46 09 88 - 78
url http://www.jam-gmbh.de
Haben Sie schon Jamail probiert? Den eMailer für personalisierte Serien-Mails? Jetzt testen: http://www.jamail.de
Already tried Jamail? Visit the personalized massmailer @ http://www.jamail.de/us/
-----------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.