Module ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Return Call NameLoad keyword NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Return Call Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list
N/A swift.common.swob Request Response swift.common.utils register_swift_info CrossDomainMiddleware N/A object N/A N/A 
    Cross domain middleware used to respond to requests for cross domain
    policy information.

    If the path is /crossdomain.xml it will respond with an xml cross domain
    policy document. This allows web pages hosted elsewhere to use client
    side technologies such as Flash, Java and Silverlight to interact
    with the Swift API.

    To enable this middleware, add it to the pipeline in your proxy-server.conf
    file. It should be added before any authentication (e.g., tempauth or
    keystone) middleware. In this example ellipsis (...) indicate other
    middleware you may have chosen to use::

        [pipeline:main]
        pipeline =  ... crossdomain ... authtoken ... proxy-server

    And add a filter section, such as::

        [filter:crossdomain]
        use = egg:swift#crossdomain
        cross_domain_policy = <allow-access-from domain="*.example.com" />
            <allow-access-from domain="www.example.com" secure="false" />

    For continuation lines, put some whitespace before the continuation
    text. Ensure you put a completely blank line to terminate the
    cross_domain_policy value.

    The cross_domain_policy name/value is optional. If omitted, the policy
    defaults as if you had specified::

        cross_domain_policy = <allow-access-from domain="*" secure="false" />


     __init__ N/A N/A self app conf N/A args kwargs N/A N/A N/A self app app N/A N/A self conf conf N/A default_domain_policy <allow-access-from domain="*" secure="false" /> N/A N/A self cross_domain_policy N/A N/A N/A self conf get cross_domain_policy default_domain_policy N/A GET N/A N/A self req N/A N/A N/A Returns a 200 response with cross domain policy information  N/A body N/A <?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd" >
<cross-domain-policy>
%s
</cross-domain-policy> N/A self cross_domain_policy N/A N/A Response request req body body content_type application/xml N/A __call__ N/A N/A self env start_response N/A N/A N/A req N/A Request env N/A N/A N/A N/A req path /crossdomain.xml N/A N/A req method GET N/A N/A N/A N/A N/A self GET req env start_response N/A N/A N/A N/A self app env start_response N/A N/A filter_factory N/A N/A global_conf N/A local_conf N/A N/A conf N/A N/A global_conf copy N/A N/A N/A conf update local_conf N/A N/A register_swift_info crossdomain crossdomain_filter N/A N/A app N/A N/A N/A N/A CrossDomainMiddleware app conf N/A N/A crossdomain_filter N/A