- Timestamp:
- 10 Nov 2011, 13:37:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7063 r7067 134 134 grok.implements(IFileStoreNameChooser) 135 135 136 def checkName(self, name=None ):136 def checkName(self, name=None, attr=None): 137 137 """Check whether the given name is a valid file id for the context. 138 138 139 139 Returns ``True`` only if `name` equals the result of 140 140 :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. 141 145 """ 142 146 return name == self.chooseName() 143 147 144 def chooseName(self, name=None ):148 def chooseName(self, name=None, attr=None): 145 149 """Get a valid file id for applicant context. 146 150 … … 160 164 If the context applicant has no parent, ``'_default'`` is used 161 165 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 162 171 """ 163 172 parent_name = getattr(
Note: See TracChangeset for help on using the changeset viewer.