Ticket #1630 (new defect)

Opened 13 years ago

Last modified 13 years ago

KeyError 'Value' in widget_autocompletion_string_render.pt

Reported by: tracguest Owned by: tziade
Priority: P1 Milestone: CPS 3.5.7
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

comment:1 Changed 13 years ago by tracguest

  • Milestone changed from CPS 3.2.5 to CPS 3.4.1

comment:2 Changed 13 years ago 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

comment:3 Changed 13 years ago by ybastide

  • Owner changed from tziade to fguillaume
  • Keywords autocompletion widget added
  • 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

comment:4 Changed 13 years ago by ybastide

"owner changed from tziade to fguillaume."

Hu? I never selected Reassign. Sorry about trac.

comment:5 Changed 13 years ago by fguillaume

  • Owner changed from fguillaume to tziade
Note: See TracTickets for help on using tickets.