'Generates a state string to be used in authorizations.'

def new_state(self):

    try:
        self._state = self.state()
        log.debug(u'Generated    new    state    %s.', self._state)
    except TypeError:
        self._state = self.state
        log.debug(u'Re-using    previously    supplied    state    %s.', self._state)
    return self._state
