[ZODB-Dev] RelStorage 1.4 beta 3 and Plone 4.0 alpha 4

Encolpe Degoute encolpe.degoute at free.fr
Thu Feb 18 07:53:56 EST 2010


Hello,

I'm trying to have these two early versions working together.

I enable relstorage and blob are store in ZODB.

It seems that we need to add a specific temp_folder parameter
to get relstorage works with File content type:

Type d'erreur
     AttributeError
Valeur de l'erreur
     'NoneType' object has no attribute 'temp_dir'

Traceback (innermost last):

     * Module ZPublisher.Publish, line 127, in publish
     * Module ZPublisher.mapply, line 77, in mapply
     * Module ZPublisher.Publish, line 47, in call_object
     * Module Products.CMFPlone.FactoryTool, line 424, in __call__
     * Module ZPublisher.mapply, line 77, in mapply
     * Module ZPublisher.Publish, line 47, in call_object
     * Module Products.CMFFormController.FSControllerPageTemplate, line 
91, in __call__
     * Module Products.CMFFormController.BaseControllerPageTemplate, 
line 28, in _call
     * Module Products.CMFFormController.ControllerBase, line 231, in 
getNext
     * Module Products.CMFFormController.Actions.TraverseTo, line 38, in 
__call__
     * Module ZPublisher.mapply, line 77, in mapply
     * Module ZPublisher.Publish, line 47, in call_object
     * Module Products.CMFFormController.FSControllerPythonScript, line 
107, in __call__
     * Module Products.CMFFormController.ControllerBase, line 231, in 
getNext
     * Module Products.CMFFormController.Actions.TraverseTo, line 38, in 
__call__
     * Module ZPublisher.mapply, line 77, in mapply
     * Module ZPublisher.Publish, line 47, in call_object
     * Module Products.CMFFormController.FSControllerPythonScript, line 
105, in __call__
     * Module Products.CMFFormController.Script, line 145, in __call__
     * Module Products.CMFCore.FSPythonScript, line 130, in __call__
     * Module Shared.DC.Scripts.Bindings, line 324, in __call__
     * Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
     * Module Products.PythonScripts.PythonScript, line 344, in _exec
     * Module script, line 1, in content_edit
       <FSControllerPythonScript at /site/content_edit used for 
/site/documents-administratifs/portal_factory/File/file.2010-02-18.1366336319>
       Line 1
     * Module Products.CMFCore.FSPythonScript, line 130, in __call__
     * Module Shared.DC.Scripts.Bindings, line 324, in __call__
     * Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
     * Module Products.PythonScripts.PythonScript, line 344, in _exec
     * Module script, line 13, in content_edit_impl
       <FSPythonScript at /site/content_edit_impl used for 
/site/documents-administratifs/portal_factory/File/file.2010-02-18.1366336319>
       Line 13
     * Module Products.Archetypes.BaseObject, line 658, in processForm
     * Module Products.Archetypes.BaseObject, line 648, in _processForm
       __traceback_info__: (<plone.app.blob.content.ATBlob object at 
0xe942f2c>, <Field file(blob:rw)>, <function mutator at 0xdc86e64>)
     * Module Products.Archetypes.utils, line 152, in mapply
     * Module archetypes.schemaextender.field, line 38, in mutator
     * Module plone.app.blob.subtypes.file, line 16, in set
     * Module plone.app.blob.field, line 231, in fixAutoId
     * Module transaction._manager, line 99, in savepoint
     * Module transaction._transaction, line 253, in savepoint
     * Module transaction._transaction, line 250, in savepoint
     * Module transaction._transaction, line 647, in __init__
     * Module ZODB.Connection, line 1128, in savepoint
     * Module ZODB.Connection, line 606, in _commit
     * Module ZODB.Connection, line 651, in _store_objects
     * Module ZODB.Connection, line 1292, in storeBlob
     * Module ZODB.Connection, line 1321, in _getBlobPath
     * Module ZODB.Connection, line 1334, in temporaryDirectory
     * Module relstorage.storage, line 1296, in temporaryDirectory

AttributeError: 'NoneType' object has no attribute 'temp_dir'

-- 
Encolpe DEGOUTE
http://encolpe.degoute.free.fr/
Logiciels libres, hockey sur glace et autres activités cérébrales



More information about the ZODB-Dev mailing list