@@ -379,7 +379,8 @@ get defined as so:
379
379
if cstruct is null:
380
380
cstruct = u ' '
381
381
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))
383
384
384
385
Note that every ``serialize `` method is responsible for returning a
385
386
serialization, no matter whether it is provided data by its caller or
@@ -451,7 +452,9 @@ attached.
451
452
def serialize (self , field , cstruct , readonly = False ):
452
453
if cstruct is null:
453
454
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))
455
458
456
459
def deserialize (self , field , pstruct ):
457
460
if pstruct is null:
@@ -494,7 +497,9 @@ class:
494
497
def serialize (self , field , cstruct , readonly = False ):
495
498
if cstruct is null:
496
499
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))
498
503
499
504
def deserialize (self , field , pstruct ):
500
505
if pstruct is null:
0 commit comments