Ignore:
Timestamp:
Nov 20, 2008 7:14:58 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
cfabc40
Parents:
c922f23
Message:

Unify the code for calling SOAP and XMLRPC services into a couple classes.
Before there were slightly different semantics everywhere.

Also make the handlers classes rather than the output of stub compiling
functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/service_error.py

    rc922f23 r058f58e  
    66class service_error(RuntimeError):
    77    access = 1
    8     proxy= 2
     8    protocol= 2
    99    req = 3
    1010    server_config = 4
     
    1414    code_str = {
    1515        access : "Access Denied",
    16         proxy : "Proxy Error",
     16        protocol : "Protocol Error",
    1717        req : "Badly Formed Request",
    1818        server_config: "Server Configuration Error",
     
    2323    str_code = dict([ (v, k) for k, v in code_str.iteritems() ])
    2424    client_errors = ( req )
    25     server_errors = ( access, proxy, server_config, internal)
     25    server_errors = ( access, protocol, server_config, internal)
    2626
    2727    def __init__(self, code=None, desc=None, from_string=None):
Note: See TracChangeset for help on using the changeset viewer.