summaryrefslogtreecommitdiff
path: root/openid/association.py
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-08-02 23:26:48 +0000
committerJosh Hoyt <josh@janrain.com>2006-08-02 23:26:48 +0000
commitcc886e212f8342b99b3420d39390182c38f7d0ec (patch)
tree125e3831485275bfae7ea6144d470f1dea19ea8d /openid/association.py
parent8af5c97764b7850ba99d3ef12880488e501a17d4 (diff)
downloadopenid-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.py3
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."""