Logo Search packages:      
Sourcecode: zope-passwordresettool version File versions  Download package

def PasswordResetTool::PasswordResetTool::PasswordResetTool::setExpirationTimeout (   self,
  timedelta 
)

Implementation ##.

Set the length of time a reset request will be valid.

Takes a 'datetime.timedelta' object (if available, since it's
new in Python 2.3) or a number of hours, possibly
fractional. Since a negative delta makes no sense, the
timedelta's absolute value will be used.

Definition at line 171 of file PasswordResetTool.py.

00171                                              :
        """Set the length of time a reset request will be valid.

        Takes a 'datetime.timedelta' object (if available, since it's
        new in Python 2.3) or a number of hours, possibly
        fractional. Since a negative delta makes no sense, the
        timedelta's absolute value will be used."""
        self._timedelta = abs(timedelta)

    security.declarePublic('getExpirationTimeout')
    def getExpirationTimeout(self):


Generated by  Doxygen 1.6.0   Back to index