Changeset 308

Show
Ignore:
Timestamp:
06/24/08 15:33:17 (7 months ago)
Author:
matt
Message:

Remove the line ending (\r\n) from the Tuple->string process so that
Sequence(Tuple()) works correctly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/formal/converters.py

    r307 r308  
    193193        out = StringIO() 
    194194        csv.writer(out, delimiter=self.type.delimiter).writerow(row) 
    195         return out.getvalue().decode("utf-8") 
     195        # Return the first line only (the CSV module adds "\r\n"). 
     196        return out.getvalue().decode("utf-8").splitlines()[0] 
    196197 
    197198    def toType(self, value): 
  • trunk/setup.py

    r307 r308  
    33setup( 
    44    name='formal', 
    5     version='0.19', 
     5    version='0.19.1', 
    66    description='HTML forms framework for Nevow', 
    77    author='Matt Goodall',