Changeset 6261 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 1 Jun 2011, 13:39:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_converters.py
r6257 r6261 68 68 class IContact(Interface): 69 69 name = schema.TextLine( 70 title = u' name',70 title = u'Name', 71 71 default = u'Manfred' 72 72 ) 73 73 age = schema.Int( 74 title = u' age',74 title = u'Age', 75 75 default = 23, 76 76 required = True, 77 77 ) 78 78 city = schema.TextLine( 79 title = u' city',79 title = u'City', 80 80 required = True, 81 81 ) … … 94 94 conv = ISchemaTypeConverter(IContact) 95 95 input_data = dict(name='Foo') 96 input_data = dict(name='Foo', age='sweet sixteen') 96 97 err, inv_err, data = conv.applyRowData(input_data, context) 97 print context.name, context.age 98 print err, inv_err, data 98 #print context.name, context.age 99 #print err, inv_err, data 100 #import pdb; pdb.set_trace() 99 101 #val = conv._convertValueFromString('Foo', context=context) 100 102 #print field, conv
Note: See TracChangeset for help on using the changeset viewer.