Menu

#593 PloneSurvey 1.0

open
nobody
None
5
2006-08-08
2006-08-08
amitrane
No

We tried to add a new survey...but the following error
turned up...tried debugging but it didnot help...please
help me out with this

AttributeError
Sorry, a site error occurred.

Traceback (innermost last):

* Module ZPublisher.Publish, line 175, in
publish_module_standard
* Module
Products.PlacelessTranslationService.PatchStringIO,
line 51, in new_publish
* Module ZPublisher.Publish, line 132, in publish
* Module Zope.App.startup, line 204, in
zpublisher_exception_hook
* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module
Products.CMFFormController.FSControllerPageTemplate,
line 98, in __call__
* Module
Products.CMFFormController.BaseControllerPageTemplate,
line 42, in _call
* Module Shared.DC.Scripts.Bindings, line 306, in
__call__
* Module Shared.DC.Scripts.Bindings, line 343, in
_bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 191,
in _exec
* Module Products.CMFCore.FSPageTemplate, line 124,
in pt_render
* Module Products.PTProfiler.ProfilerPatch, line
69, in __patched_render__
* Module Products.PageTemplates.PageTemplate, line
96, in pt_render
<FSControllerPageTemplate at /survey/base_edit
used for /survey/survey/survey.2006-08-08.7257404793>
* Module TAL.TALInterpreter, line 190, in __call__
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 650, in
do_defineMacro
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 460, in
do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in
evaluate
Line 1, Column 0
Expression: <PythonExpr [key for key in
schematas.keys() if (key != 'metadata') and
(schematas[key].editableFields(here, visible_only=True))]>
Names:

{'container': <PloneSite instance at 2aaab2dee580>,
'context': <Survey instance at 2aaab2e10b20>,
'default': <Products.PageTemplates.TALES.Default
instance at 0x2aaab10fcb90>,
'here': <Survey instance at 2aaab2e10b20>,
'loop': <SafeMapping instance at 2aaab5494fd0>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x2aaab10fcbd8>,
'nothing': None,
'options': {'state': <ControllerState instance
at 2aaab3875348>, 'args': ()},
'repeat': <SafeMapping instance at 2aaab5494fd0>,
'request': <HTTPRequest,
URL=http://denali.cs.uh.edu/survey/survey/survey.2006-08-08.7257404793/base_edit>,
'root': <Application instance at 2aaab2b27760>,
'template': <FSControllerPageTemplate at
/survey/base_edit used for
/survey/survey/survey.2006-08-08.7257404793>,
'traverse_subpath': [],
'user': amit}

* Module Products.PTProfiler.ProfilerPatch, line
28, in __patched_call__
* Module Products.PageTemplates.ZRPythonExpr, line
47, in __call__
__traceback_info__: [key for key in
schematas.keys() if (key != 'metadata') and
(schematas[key].editableFields(here, visible_only=True))]
* Module Python expression "[key for key in
schematas.keys() if (key != 'metadata') and
(schematas[key].editableFields(here,
visible_only=True))]", line 1, in <expression>
* Module Products.Archetypes.Schema, line 116, in
editableFields

AttributeError: 'int' object has no attribute 'get'
(Also, an error occurred while attempting to render the
standard error message.)

Discussion