def set_cred(self, cred):
        """Set stored credentials to cred.

        cred should be of the form:
          {'login': username, 'password': password}
        """
        self.cred = cred
        self.dirty = False
Set stored credentials to cred.

        cred should be of the form:
          {'login': username, 'password': password}
        
recipes/Python/578217_Cosign_Handler/recipe-578217.py