Ignore:
Timestamp:
22 Mar 2012, 07:00:06 (13 years ago)
Author:
Henrik Bettermann
Message:

checkUpdateRequirements is even better than checkConstraints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r7938 r7950  
    188188        raise NotImplementedError('method not implemented')
    189189
    190     def checkConstraints(self, obj, row, site):
    191         """Checks constraints the object must fulfill when being updated.
     190    def checkUpdateRequirements(self, obj, row, site):
     191        """Checks requirements the object must fulfill when being updated.
    192192
    193193        This method is not used in case of deleting or adding objects.
    194194
    195         Returns error messages as strings in case of constraint
     195        Returns error messages as strings in case of requirement
    196196        problems.
    197197        """
     
    337337                        "Cannot update: no such entry.")
    338338                    continue
    339                 update_errors = self.checkConstraints(obj, row, site)
     339                update_errors = self.checkUpdateRequirements(obj, row, site)
    340340                if update_errors is not None:
    341341                    num_warns += 1
Note: See TracChangeset for help on using the changeset viewer.