Re: [Plone] Problem mit Archetypes und Workflow

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13.01.2009 10:00 Uhr, Stefan Palme wrote:
>> if context.portal_workflow.getInfoFor(page, 'review_state', '') == 'visible':
>>   context.portal_workflow.doActionFor(page, 'hide')
>>
>> Wie gesagt, eingeloggt funktioniert alles prima, nur wenn ich nicht
>> authentifiziert bin bekomme ich folgenden Fehler:
> 
> Die "hide"-Action ist standardmäßig nur für Owner (und nicht Manager)
> erlaubt. Das heißt, Du müsstest im portal_workflow entweder die 
> "Required Roles" für die hide-Transition ändern oder Deinem Script
> zusätzlich die Proxy-Rolle Owner geben.

Das wäre die Lösung.
> 
> Davon abgesehen bin ich gar nicht sicher, ob das überhaupt funktioniert.
> Ich kann mich dunkel erinnern, dass einige Teile der Workflow-Engine
> resistent gegen Proxy-Rollen sind, 

Der Bug (oder Feature wie immer man es sieht) ist aber hier nicht
relevant. So wie ich Stefan verstanden habe hat er ein "normales"
PythonScript.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsWooACgkQCJIWIbr9KYwtmQCggBCbi3v4q/kuAajV7aVurdcc
p0oAnjQOjzh7DYXPt28dLmQ6cqatSgsJ
=Cull
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.