- Timestamp:
- 14 Jan 2010, 09:07:09 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-importers/src/waeup/interfaces.py
r4789 r4801 9 9 from waeup.permissions import RoleSource 10 10 11 class FatalCSVError(Exception): 12 """Some row could not be processed. 13 """ 14 pass 15 11 16 def SimpleWAeUPVocabulary(*terms): 12 17 """A well-buildt vocabulary provides terms with a value, token and … … 348 353 `clear_old_data` is set to True. 349 354 """ 350 355 356 class IImporter(Interface): 357 """A CSV file importer. 358 """ 359 name = schema.TextLine( 360 title = u'Importer name' 361 ) 362 363 mode = schema.Choice( 364 title = u'Import mode', 365 values = ['create', 'update', 'remove'] 366 ) 367 368 def doImport(path): 369 """Read data from ``path`` and update connected object. 370 """ 371 372 class ISchemaTypeConverter(Interface): 373 """A converter for zope.schema.types. 374 """ 375 def convert(string): 376 """Convert string to certain schema type. 377 """ 378 379 351 380 class IUserAccount(IWAeUPObject): 352 381 """A user account.
Note: See TracChangeset for help on using the changeset viewer.