Changeset 7067


Ignore:
Timestamp:
10 Nov 2011, 13:37:32 (13 years ago)
Author:
uli
Message:

Update applicants file name chooser to comply with changed interface
definition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py

    r7063 r7067  
    134134    grok.implements(IFileStoreNameChooser)
    135135
    136     def checkName(self, name=None):
     136    def checkName(self, name=None, attr=None):
    137137        """Check whether the given name is a valid file id for the context.
    138138
    139139        Returns ``True`` only if `name` equals the result of
    140140        :meth:`chooseName`.
     141
     142        The `attr` parameter is not taken into account for
     143        :class:`Applicant` context as the single passport image is the
     144        only file we store for applicants.
    141145        """
    142146        return name == self.chooseName()
    143147
    144     def chooseName(self, name=None):
     148    def chooseName(self, name=None, attr=None):
    145149        """Get a valid file id for applicant context.
    146150
     
    160164        If the context applicant has no parent, ``'_default'`` is used
    161165        as parent name.
     166
     167        The `attr` parameter is not taken into account for
     168        :class:`Applicant` context as the single passport image is the
     169        only file we store for applicants.
     170
    162171        """
    163172        parent_name = getattr(
Note: See TracChangeset for help on using the changeset viewer.