|
From: <jm...@so...> - 2001-10-08 14:10:43
|
Ok.
I suppose that also the AUTHENTICATED_USER.roles should be changed,
exactly the same way (but I haven't tested is, since without changing it
works with mysqluserfolder). I'll do it in the future.
On Mon, 8 Oct 2001, Vincenzo Di Somma wrote:
> Uhmm, good we`ll put it in the new release, 0.4.1 :)
>
>
> Juli=E1n Mu=F1oz Dom=EDnguez wrote:
>
> > Here are 2 simple patches, to substitute AUTHENTICATED_USER.name
> > by AUTHENTICATED_USER.getUserName(), as indicated in the Zope Book (API=
).
> >
> > Openflow didn't worked well with another kind of acl_users folder
> > (mysqluserfolder), no it works.
> >
> >
> >
> >
> >
> > -----------------------------------------------------------------------=
-
> >
> > *** workflow.py.original=09Fri Oct 5 10:10:37 2001
> > --- workflow.py=09Fri Oct 5 10:13:52 2001
> > ***************
> > *** 125,135 ****
> > result[process.id][activity.id]['assigned'] =3D s=
elf.loadTokensInDictionaryList(process,
> > =
activity,
> > =
activity.reportTokens(status=3D'assigned',
> > ! =
user=3DAUTHENTICATED_USE=
R.name))
> > result[process.id][activity.id]['active'] =3D sel=
f.loadTokensInDictionaryList(process,
> > =
activity,
> > =
activity.reportTokens(status=3D'active',
> > ! =
user=3DAUTHENTICATED_USE=
R.name))
> >
> > return result
> >
> > --- 125,135 ----
> > result[process.id][activity.id]['assigned'] =3D s=
elf.loadTokensInDictionaryList(process,
> > =
activity,
> > =
activity.reportTokens(status=3D'assigned',
> > ! =
user=3DAUTHENTICATED_USE=
R.getUserName()))
> > result[process.id][activity.id]['active'] =3D sel=
f.loadTokensInDictionaryList(process,
> > =
activity,
> > =
activity.reportTokens(status=3D'active',
> > ! =
user=3DAUTHENTICATED_USE=
R.getUserName()))
> >
> > return result
> >
> >
> >
> > -----------------------------------------------------------------------=
-
> >
> > *** todolist.dtml.original=09Thu Oct 4 18:28:09 2001
> > --- todolist.dtml=09Thu Oct 4 18:30:44 2001
> > ***************
> > *** 18,24 ****
> > =09name
> > </th>
> > <td>
> > ! =09<big><dtml-var "AUTHENTICATED_USER.name"></big>
> > </td>
> > </tr>
> > <tr>
> > --- 18,24 ----
> > =09name
> > </th>
> > <td>
> > ! =09<big><dtml-var expr=3D"AUTHENTICATED_USER.getUserName()"></big>
> > </td>
> > </tr>
> > <tr>
> >
>
>
>
--=20
__o
_ \<_
(_)/(_)
Saludos de Juli=E1n
EA4ACL
-.-
|