Estou com dificuldades em resolver um problema com mysql e archetypes, está
dando erro quando vou salvar no banco já procurei em varios lugares mas não
consigui resolver..
desde já agradeço a atenção..

Zope 2.9.6
Plone 2.5.3-final
Archetypes 1.4.4-final

O erro :

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.CMFPlone.FactoryTool, line 369, in __call__
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module Products.CMFFormController.FSControllerPageTemplate, line 90, in
__call__
 Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in
_call
 Module Products.CMFFormController.ControllerBase, line 245, in getNext
  - __traceback_info__: ['id = base_edit', 'status = success',
'button=None', 'errors={}', 'context=<Cadastro at
cadastro.2007-06-28.8549699557>', "kwargs={'portal_status_message': 'Changes
saved.'}", 'next_action=None', '']
 Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module Products.CMFFormController.FSControllerPythonScript, line 104, in
__call__
 Module Products.CMFFormController.Script, line 145, in __call__
 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 1, in content_edit
  - <FSControllerPythonScript at /Gabriel/Portal/content_edit used for
/Gabriel/Portal/portal_factory/Cadastro/cadastro.2007-06-28.8549699557>
  - Line 1
 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 7, in content_edit_impl
  - <FSPythonScript at /Gabriel/Portal/content_edit_impl used for
/Gabriel/Portal/portal_factory/Cadastro/cadastro.2007-06-28.8549699557>
  - Line 7
 Module Products.CMFPlone.FactoryTool, line 254, in doCreate
 Module Products.CMFCore.PortalFolder, line 408, in invokeFactory
 Module Products.CMFCore.TypesTool, line 934, in constructContent
 Module Products.CMFCore.TypesTool, line 343, in constructInstance
 Module Products.CMFCore.TypesTool, line 574, in _constructInstance
 Module Products.Cadastro.content.Cadastro, line 6, in addCadastro
 Module OFS.ObjectManager, line 333, in _setObject
 Module zope.event, line 23, in notify
 Module zope.app.event.dispatching, line 66, in dispatch
 Module zope.component, line 181, in subscribers
 Module zope.component.site, line 89, in subscribers
 Module zope.interface.adapter, line 481, in subscribers
 Module zope.app.event.objectevent, line 192, in objectEventNotify
 Module zope.component, line 181, in subscribers
 Module zope.component.site, line 89, in subscribers
 Module zope.interface.adapter, line 481, in subscribers
 Module OFS.subscribers, line 114, in dispatchObjectMovedEvent
 Module OFS.subscribers, line 137, in callManageAfterAdd
 Module Products.Archetypes.BaseContent, line 41, in manage_afterAdd
 Module Products.Archetypes.BaseObject, line 191, in manage_afterAdd
  - __traceback_info__: (<Cadastro at /Gabriel/Portal/cadastro.2007-
06-28.8549699557>, <Cadastro at /Gabriel/Portal/cadastro.2007-
06-28.8549699557>, <PloneSite at /Gabriel/Portal>)
 Module Products.Archetypes.BaseObject, line 206, in initializeLayers
 Module Products.Archetypes.Schema, line 329, in initializeLayers
 Module Products.Archetypes.SQLStorage, line 159, in initializeInstance
 Module Products.Archetypes.SQLStorage, line 124, in _query
 Module Products.Archetypes.SQLMethod, line 247, in __call__
  - __traceback_info__: insert into `Cadastro` set
UID='23c38ab989a1b2806348b5db459dc9a0', PARENTUID=null
UnboundLocalError: local variable 'result' referenced before assignment

Responder a