Ticket #1630 (new defect)

Opened 2 years ago

Last modified 2 years ago

KeyError 'Value' in widget_autocompletion_string_render.pt

Reported by: tracguest Assigned to: tziade
Priority: P1 Milestone: CPS 3.5.0
Component: CPSSchemas Version: TRUNK
Severity: major Keywords: autocompletion widget
Cc:

Description

Using an Autocompletion widget with a new Type created with TypeMaker?, when we want to view an object of this type, a keyError value is raised. In the zpt file, '<input type="text" tal:attributes="id id;name id;size size;value value"/>' should be '<input type="text" tal:attributes="id id;name id;size size;value options/value"/>'

URL: file:CPSSchemas/skins/cps_schemas/widget_autocompletion_string_render.pt

Line 7, Column 4

Expression: standard:'value'

Names:

{'container': <CPSDefaultSite at /cps>,

'context': <CPSAutocompletionStringWidget at /cps/portal_layouts/simpletype_Projet_1/wNom>, 'default': <Products.PageTemplates?.TALES.Default instance at 0x017440F8>, 'here': <CPSAutocompletionStringWidget at /cps/portal_layouts/simpletype_Projet_1/wNom>, 'loop': <Products.PageTemplates?.TALES.SafeMapping? object at 0x047217D8>, 'modules': <Products.PageTemplates?.ZRPythonExpr._SecureModuleImporter instance at 0x01732670>, 'nothing': None, 'options': {'args': (),

'html_widget_id': 'widgetNom', 'mode': 'view', 'server_method': , 'size': 20, 'value': 'sdfd', 'widget_id': 'Nom'},

'repeat': <Products.PageTemplates?.TALES.SafeMapping? object at 0x047217D8>, 'request': <HTTPRequest, URL=http://localhost:8080/cps/workspaces/ezzezet/cpsdocument_view>, 'root': <Application at >, 'template': <FSPageTemplate at /cps/widget_autocompletion_string_render used for /cps/portal_layouts/simpletype_Projet_1/wNom>, 'traverse_subpath': [], 'user': <User 'admin'>}

Change History

05/02/06 11:25:10 changed by tracguest

  • milestone changed from CPS 3.2.5 to CPS 3.4.1.

05/19/06 17:09:52 changed by sfermigier

  • owner changed from fguillaume to tziade.
  • component changed from CPSSchemas to CPSTypeMaker.
  • milestone changed from CPS 3.4.1 to CPS 3.4.2.

06/14/06 14:23:35 changed by ybastide

  • keywords set to autocompletion widget.
  • owner changed from tziade to fguillaume.
  • component changed from CPSTypeMaker to CPSSchemas.

This is an eeasy one:

  <tal:block define="mode options/mode;
                     id here/getWidgetId;
                     name here/getHtmlWidgetId;
                     server_method options/server_method;
+                    value options/value;
                     size options/size;">

Two more things are needed for CPSAutocompletionStringWidget to work, though:

  • widget_autocompletion_string_render.pt uses an input instead of span in view mode
  • Ajax.Autocompleter's interface to server_method must be documented

06/14/06 14:32:43 changed by ybastide

"owner changed from tziade to fguillaume."

Hu? I never selected Reassign. Sorry about trac.

06/14/06 15:38:04 changed by fguillaume

  • owner changed from fguillaume to tziade.