Changes between Version 20 and Version 21 of S3/S3Model
- Timestamp:
- 01/24/14 08:40:53 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Model
v20 v21 213 213 214 214 215 ==== Utilityfunctions ====215 ==== Defining functions ==== 216 216 217 217 The {{{S3Model}}} base class implements a number of useful helper functions to implement models, among others: … … 221 221 - {{{configure}}} to define table configuration settings 222 222 223 These functions should not be overwritten in the subclass. To avoid collisions, names of additional functions (besides model() and defaults()) in S3Model subclasses should always start with the module prefix: 223 These functions should not be overwritten in the subclass. 224 225 To avoid name collisions, names of additional functions (i.e. besides {{{model()}}} and {{{defaults()}}}) should always start with the module prefix: 224 226 225 227 {{{#!python … … 231 233 def defaults(self): 232 234 233 # Use the module prefix in function names to avoid overridingof superclass functions:235 # Use the module prefix in function names to avoid accidental overrides of superclass functions: 234 236 def my_additional_function(self, param1, param2): 235 237 ...