|
Bonjour, j'ai rencontré une difficulté avec la
création de document de type fichiers sur un CPS 3.4
En sélectionnant le type fichier, puis le fichier
à ajouter dans le formulaire et en validant, vous trouverez ci-dessous le
Traceback que j'ai eu en retour.
J'ai mis une rustine sur CPS, mais je ne trouve
pas çà propre :
def
setAsAttribute(self, ob, field_id, value): if
value:
for k in getattr(ob, field_id,
()):
if
k.startswith('_'):
continue
try:
delattr(ob,
k)
except (AttributeError,
KeyError):
pass
setattr(ob, field_id,
tuple(value.keys()))
for k, v in
value.items():
if
k.startswith('_'):
continue
setattr(ob, k, v)
Avez vous une meilleure idée ? Existe-t-il un
patch connu pour cette erreur ?
Cordialement
| AttributeError |
| Error Value: |
'NoneType' object has no attribute 'keys' |
| Traceback: |
Traceback (innermost last):
- Module ZPublisher.Publish, line 115, in publish
- Module ZPublisher.mapply, line 88, in mapply
- Module ZPublisher.Publish, line 41, in call_object
- Module Products.CMFCore.FSPythonScript, line 108, in __call__
- Module Shared.DC.Scripts.Bindings, line 311, in __call__
- Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
- Module Products.CMFCore.FSPythonScript, line 164, in _exec
- Module None, line 26, in cpsdocument_create
<FSPythonScript at /cps/cpsdocument_create used for /cps/workspaces>
Line 26
- Module Products.CMFCore.FSPythonScript, line 108, in __call__
- Module Shared.DC.Scripts.Bindings, line 311, in __call__
- Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
- Module Products.CMFCore.FSPythonScript, line 164, in _exec
- Module None, line 23, in cpsdocument_create_do
<FSPythonScript at /cps/cpsdocument_create_do used for /cps/workspaces>
Line 23
- Module Products.CPSCore.CPSTypes, line 60, in invokeFactory
- Module Products.CPSWorkflow.workflowtool, line 306, in invokeFactoryFor
- Module Products.CPSWorkflow.workflowtool, line 442, in _createObject
- Module Products.CPSCore.ProxyTool, line 167, in createRevision
- Module Products.CPSCore.ObjectRepositoryTool, line 133, in createRevision
- Module Products.CPSCore.CPSTypes, line 112, in constructContent
- Module Products.CPSDocument.FlexibleTypeInformation, line 233, in _constructInstance
- Module Products.CPSSchemas.DataModel, line 334, in _commit
- Module Products.CPSSchemas.DataModel, line 360, in _commitData
- Module Products.CPSSchemas.StorageAdapter, line 146, in setData
- Module Products.CPSSchemas.StorageAdapter, line 181, in _setData
- Module Products.CPSSchemas.StorageAdapter, line 249, in _setFieldData
- Module Products.CPSSchemas.BasicFields, line 740, in setAsAttribute
AttributeError: 'NoneType' object has no attribute 'keys'
|
Cédric
Marfil Concepteur Réalisateur Intégrateur Confirmé Tél.
direct: 03.20.65.34.82 Mail: [EMAIL PROTECTED]
Capgemini 181
rue Jules Delcenserie 59700 Marcq en Baroeul
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
|
|