# Path: simpleapi/message/common.py
# class SAException(Exception):
#     def __init__(self, msg=None):
#     def _get_message(self):
#     def _set_message(self, message):
#     def __repr__(self):


from simpleapi.message.common import json, SAException
from response import UnformattedResponse
            functions = {}
            for cls in ('forms', 'direct'):
                functions[cls] = []
                for fn in function_map.iterkeys():
                    if len(function_map[fn]['args']['all']) > 0:
                        fnlen = 1
                    else:
                        fnlen = 0

                    functions[cls].append({
                        'name': fn,
                        'len': fnlen,
                        'formHandler': cls == 'forms',
                    })

            result = {
                'actions': {
                    self.request.route.name: functions['direct'],
                    u'%s_forms' % self.request.route.name: functions['forms'],
                }
            }

            result['type'] = 'remoting'
            result['url'] = u'%s?_wrapper=extjsdirect' % \
                self.session.request.path_info
            if namespace:
                result['namespace'] = namespace
            return UnformattedResponse(
                content=u'%s.%s_REMOTING_API = %s;' %\
                    (provider, self.request.route.name.upper(),

# Path: simpleapi/message/common.py
# class SAException(Exception):
#     def __init__(self, msg=None):
#     def _get_message(self):
#     def _set_message(self, message):
#     def __repr__(self):


# Path: simpleapi/server/namespace.py
from simpleapi.message.common import json, SAException
from response import UnformattedResponse

            functions = {}
            for cls in ('forms', 'direct'):
                functions[cls] = []
                for fn in function_map.iterkeys():
                    if len(function_map[fn]['args']['all']) > 0:
                        fnlen = 1
                    else:
                        fnlen = 0

                    functions[cls].append({
                        'name': fn,
                        'len': fnlen,
                        'formHandler': cls == 'forms',
                    })

            result = {
                'actions': {
                    self.request.route.name: functions['direct'],
                    u'%s_forms' % self.request.route.name: functions['forms'],
                }
            }

            result['type'] = 'remoting'
            result['url'] = u'%s?_wrapper=extjsdirect' % \
                self.session.request.path_info
            if namespace:
                result['namespace'] = namespace
            return UnformattedResponse(
                content=u'%s.%s_REMOTING_API = %s;' %\
                    (provider, self.request.route.name.upper(),

                     json.dumps(result)),