Home | Trees | Index | Help |
|
---|
Package openid :: Module message :: Class Message |
|
object
--+
|
Message
Method Summary | |
---|---|
Create an empty Message | |
__eq__(self,
other)
| |
__ne__(self,
other)
| |
__repr__(self)
| |
copy(self)
| |
delArg(self,
namespace,
key)
| |
Create a Message from a KVForm string (Class method) | |
Construct a Message from a parsed KVForm message (Class method) | |
Construct a Message containing a set of POST arguments (Class method) | |
getAliasedArg(self,
aliased_key,
default)
| |
str or the type of default |
Get a value for a namespaced key. |
dict |
Get the arguments that are defined for this namespace URI |
Get the key for a particular namespaced argument | |
getOpenIDNamespace(self)
| |
hasKey(self,
namespace,
ns_key)
| |
isOpenID1(self)
| |
isOpenID2(self)
| |
Set a single argument in this namespace | |
setOpenIDNamespace(self,
openid_ns_uri)
| |
Return all namespaced arguments, failing if any non-namespaced arguments exist. | |
str or unicode |
Generate HTML form markup that contains the values in this message, to be HTTP POSTed as x-www-form-urlencoded UTF-8. |
Generate a KVForm string that contains the parameters in this message. | |
Return all arguments with openid. | |
Generate a GET URL with the parameters in this message attached as query parameters. | |
Generate an x-www-urlencoded string | |
Set multiple key/value pairs in one call | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
ns_args : two-level dictionary of the values in this message, grouped by
namespace URI. |
Class Variable Summary | |
---|---|
list |
allowed_openid_namespaces = ['http://openid.net/signon/1...
|
namespaces : A dictionary specifying specific namespace-URI to alias mappings that
should be used when generating namespace aliases. |
Instance Method Details |
---|
__init__(self,
openid_namespace=None)
Create an empty Message
|
getArg(self, namespace, key, default=None)Get a value for a namespaced key.
|
getArgs(self, namespace)Get the arguments that are defined for this namespace URI
|
getKey(self, namespace, ns_key)Get the key for a particular namespaced argument |
setArg(self, namespace, key, value)Set a single argument in this namespace |
toArgs(self)Return all namespaced arguments, failing if any non-namespaced arguments exist. |
toFormMarkup(self, action_url, form_tag_attrs=None, submit_text='Continue')Generate HTML form markup that contains the values in this message, to be HTTP POSTed as x-www-form-urlencoded UTF-8.
|
toKVForm(self)Generate a KVForm string that contains the parameters in this message. This will fail if the message contains arguments outside of the 'openid.' prefix. |
toPostArgs(self)Return all arguments with openid. in front of namespaced arguments. |
toURL(self, base_url)Generate a GET URL with the parameters in this message attached as query parameters. |
toURLEncoded(self)Generate an x-www-urlencoded string |
updateArgs(self, namespace, updates)Set multiple key/value pairs in one call
|
Class Method Details |
---|
fromKVForm(cls, kvform_string)Create a Message from a KVForm string |
fromOpenIDArgs(cls, openid_args)Construct a Message from a parsed KVForm message |
fromPostArgs(cls, args)Construct a Message containing a set of POST arguments |
Instance Variable Details |
---|
ns_argstwo-level dictionary of the values in this message, grouped by namespace URI. The first level is the namespace URI. |
Class Variable Details |
---|
allowed_openid_namespaces
|
namespacesA dictionary specifying specific namespace-URI to alias mappings that should be used when generating namespace aliases. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Dec 14 16:10:53 2007 | http://epydoc.sf.net |