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

def PasswordResetTool::PasswordResetTool::PasswordResetTool::getExpirationTimeout (   self )
Get the length of time a reset request will be valid.

In hours, possibly fractional. Ignores seconds and shorter.

Definition at line 181 of file PasswordResetTool.py.

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

        In hours, possibly fractional. Ignores seconds and shorter."""
        try:
            if isinstance(self._timedelta,datetime.timedelta):
                return self._timedelta.days / 24
        except NameError:
            pass  # that's okay, it must be a number of hours...
        return self._timedelta


Generated by  Doxygen 1.6.0   Back to index