@@ -379,7 +379,8 @@ get defined as so:
379379 if cstruct is null:
380380 cstruct = u ' '
381381 quoted = cgi.escape(cstruct, quote = ' "' )
382- return u ' <input type="text" value="%s ">' % quoted
382+ return (' <input type="text" name="%s " value="%s ">' %
383+ (field.name, quoted))
383384
384385 Note that every ``serialize `` method is responsible for returning a
385386serialization, no matter whether it is provided data by its caller or
@@ -451,7 +452,9 @@ attached.
451452 def serialize (self , field , cstruct , readonly = False ):
452453 if cstruct is null:
453454 cstruct = u ' '
454- return ' <input type="text" value="%s ">' % cgi.escape(cstruct)
455+ quoted = cgi.escape(cstruct, quote = ' "' )
456+ return (' <input type="text" name="%s " value="%s ">' %
457+ (field.name, quoted))
455458
456459 def deserialize (self , field , pstruct ):
457460 if pstruct is null:
@@ -494,7 +497,9 @@ class:
494497 def serialize (self , field , cstruct , readonly = False ):
495498 if cstruct is null:
496499 cstruct = u ' '
497- return ' <input type="text" value="%s ">' % cgi.escape(cstruct)
500+ quoted = cgi.escape(cstruct, quote = ' "' )
501+ return (' <input type="text" name="%s " value="%s ">' %
502+ (field.name, quoted))
498503
499504 def deserialize (self , field , pstruct ):
500505 if pstruct is null:
0 commit comments