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

def PasswordResetTool::PasswordResetTool::PasswordResetTool::getStats (   self )
Return a dictionary like so:
    {"open":3, "expired":0}
about the number of open and expired reset requests.

Definition at line 227 of file PasswordResetTool.py.

                      :
        """Return a dictionary like so:
            {"open":3, "expired":0}
        about the number of open and expired reset requests.
        """
        good = 0
        bad = 0
        for stored_user, expiry in self._requests.values():
            if self.expired(expiry): bad += 1
            else: good += 1

        return {"open":good, "expired":bad}
    

Generated by  Doxygen 1.6.0   Back to index