Changeset 6226 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 29 May 2011, 23:14:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r6209 r6226 12 12 """ 13 13 pass 14 15 class DuplicationError(Exception): 16 """An exception that can be raised when duplicates are found. 17 18 When raising :exc:`DuplicationError` you can, beside the usual 19 message, specify a list of objects which are duplicates. These 20 values can be used by catching code to print something helpful or 21 similar. 22 """ 23 def __init__(self, msg, entries=[]): 24 self.msg = msg 25 self.entries = entries 26 27 def __str__(self): 28 return '%r' % self.msg 14 29 15 30 def SimpleWAeUPVocabulary(*terms):
Note: See TracChangeset for help on using the changeset viewer.