diff options
author | Josh Hoyt <josh@janrain.com> | 2006-08-02 23:26:48 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-08-02 23:26:48 +0000 |
commit | cc886e212f8342b99b3420d39390182c38f7d0ec (patch) | |
tree | 125e3831485275bfae7ea6144d470f1dea19ea8d /openid/association.py | |
parent | 8af5c97764b7850ba99d3ef12880488e501a17d4 (diff) | |
download | openid-cc886e212f8342b99b3420d39390182c38f7d0ec.tar.gz |
[project @ Make the negotiator that the server or consumer gets a *copy* of the default negotiator, not the default negotiator itself]
Diffstat (limited to 'openid/association.py')
-rw-r--r-- | openid/association.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openid/association.py b/openid/association.py index 2795306..d894715 100644 --- a/openid/association.py +++ b/openid/association.py @@ -57,6 +57,9 @@ class SessionNegotiator(object): def __init__(self, allowed_types): self.allowed_types = allowed_types + def copy(self): + return self.__class__(list(self.allowed_types)) + def setAllowedTypes(self, allowed_types): """Set the allowed association types, checking to make sure each combination is valid.""" |