Changes between Version 20 and Version 21 of S3/S3Model


Ignore:
Timestamp:
01/24/14 08:40:53 (8 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model

    v20 v21  
    213213
    214214
    215 ==== Utility functions ====
     215==== Defining functions ====
    216216
    217217The {{{S3Model}}} base class implements a number of useful helper functions to implement models, among others:
     
    221221- {{{configure}}} to define table configuration settings
    222222
    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:
     223These functions should not be overwritten in the subclass.
     224
     225To avoid name collisions, names of additional functions (i.e. besides {{{model()}}} and {{{defaults()}}}) should always start with the module prefix:
    224226
    225227{{{#!python
     
    231233   def defaults(self):
    232234
    233    # Use the module prefix in function names to avoid overriding of superclass functions:
     235   # Use the module prefix in function names to avoid accidental overrides of superclass functions:
    234236   def my_additional_function(self, param1, param2):
    235237       ...