Package openid :: Package yadis :: Module constants
[frames] | no frames]

Source Code for Module openid.yadis.constants

 1  __all__ = ['YADIS_HEADER_NAME', 'YADIS_CONTENT_TYPE', 'YADIS_ACCEPT_HEADER'] 
 2  from openid.yadis.accept import generateAcceptHeader 
 3   
 4  YADIS_HEADER_NAME = 'X-XRDS-Location' 
 5  YADIS_CONTENT_TYPE = 'application/xrds+xml' 
 6   
 7  # A value suitable for using as an accept header when performing YADIS 
 8  # discovery, unless the application has special requirements 
 9  YADIS_ACCEPT_HEADER = generateAcceptHeader( 
10      ('text/html', 0.3), 
11      ('application/xhtml+xml', 0.5), 
12      (YADIS_CONTENT_TYPE, 1.0), 
13      ) 
14