Re: Script python pour affecter un grou pe à un utilisateur

"DAVID STAVASIUS" <[email protected]> Fri, 18 Sep 2009 12:08:21 +0200
Newsgroups gmane.comp.web.zope.cps.general.french
Message-ID <[email protected]>
--===============0618677808==
Content-Type: multipart/alternative; boundary="=__PartC8E33C05.0__="

--=__PartC8E33C05.0__=
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


En ex=E9cutant l'External Method, j'ai le message d'erreur suivant :
 argument 2 to map() must support iteration
=20
Traceback (innermost last):  Module ZPublisher.Publish, line 113, in =
publish  Module ZPublisher.mapply, line 88, in mapply  Module ZPublisher.Pu=
blish, line 40, in call_object  Module Products.ExternalMethod.ExternalMeth=
od, line 225, in __call__
__traceback_info__: ((<Folder at /portail/portal_skins/custom>,), {}, =
None)  Module /usr/local/portail/webpages/cps/Extensions/directories.py, =
line 47, in setSomeGroupToSomeUsers  Module Products.CPSDirectory.BaseDirec=
tory, line 462, in editEntry  Module Products.CPSSchemas.DataModel, line =
314, in _commit  Module Products.CPSSchemas.DataModel, line 340, in =
_commitData  Module Products.CPSSchemas.StorageAdapter, line 138, in =
setData  Module Products.CPSDirectory.MembersDirectory, line 352, in =
_setData  Module Products.CPSDirectory.MemberToolsPatch, line 323, in =
setMemberProperties  Module Products.LDAPUserGroupsFolder.LDAPUser, line =
406, in setProperties  Module Products.LDAPUserGroupsFolder.LDAPUserFolder,=
 line 2535, in manage_editUser  Module Products.LDAPUserGroupsFolder.LDAPDe=
legate, line 401, in modifyTypeError: argument 2 to map() must support =
iteration
=20

=20
=20
Cordialement,
______________________________________________
David STAVASIUS
Webmestre
H=F4pital Saint - Jean
Service Informatique
Tel.  04-68-61-66-06
Fax. 04-68-61-62-21
Portail: http://10.0.0.53
Site Internet: http://www.ch-perpignan.fr


--=__PartC8E33C05.0__=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type=
>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18812"></HEAD>
<BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Tahoma"><PRE><P>En =
ex=E9cutant l'External Method, j'ai le message d'erreur suivant :<P>&nbsp;<=
PRE>argument 2 to map() must support iteration</PRE><P>&nbsp;<P>Traceback =
(innermost last):
<UL>

<LI>  Module ZPublisher.Publish, line 113, in publish

<LI>  Module ZPublisher.mapply, line 88, in mapply

<LI>  Module ZPublisher.Publish, line 40, in call_object

<LI>  Module Products.ExternalMethod.ExternalMethod, line 225, in =
__call__<BR>
__traceback_info__: ((&lt;Folder at /portail/portal_skins/custom&gt;,), =
{}, None)

<LI>  Module /usr/local/portail/webpages/cps/Extensions/directories.py, =
line 47, in setSomeGroupToSomeUsers

<LI>  Module Products.CPSDirectory.BaseDirectory, line 462, in editEntry

<LI>  Module Products.CPSSchemas.DataModel, line 314, in _commit

<LI>  Module Products.CPSSchemas.DataModel, line 340, in _commitData

<LI>  Module Products.CPSSchemas.StorageAdapter, line 138, in setData

<LI>  Module Products.CPSDirectory.MembersDirectory, line 352, in _setData

<LI>  Module Products.CPSDirectory.MemberToolsPatch, line 323, in =
setMemberProperties

<LI>  Module Products.LDAPUserGroupsFolder.LDAPUser, line 406, in =
setProperties

<LI>  Module Products.LDAPUserGroupsFolder.LDAPUserFolder, line 2535, in =
manage_editUser

<LI>  Module Products.LDAPUserGroupsFolder.LDAPDelegate, line 401, in =
modify

</LI></UL>TypeError: argument 2 to map() must support iteration
<P></P></PRE>
<DIV style=3D"COLOR: #000000">&nbsp;</DIV>
<DIV style=3D"COLOR: #000000"><BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV style=3D"COLOR: #000000">Cordialement,<BR>____________________________=
__________________<BR>David STAVASIUS<BR>Webmestre<BR>H=F4pital Saint - =
Jean<BR>Service Informatique<BR>Tel.&nbsp; 04-68-61-66-06<BR>Fax. =
04-68-61-62-21<BR>Portail: <A href=3D"http://10.0.0.53">http://10.0.0.53</A=
><BR>Site Internet: <A href=3D"http://www.ch-perpignan.fr">http://www.ch-pe=
rpignan.fr</A></DIV></BODY></HTML>

--=__PartC8E33C05.0__=--

--===============0618677808==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

_______________________________________________
cps-users-fr
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-user=
s-fr>

--===============0618677808==--