# Path: opennsa/database.py
# LOG_SYSTEM = 'opennsa.Database'
#     DT = psycopg2.extensions.new_type((timestamptz_oid,), "timestamptz", castDatetime)
#     HASMANY = ['SubConnections']
#     BELONGSTO = ['ServiceConnection']
#     TABLENAME = 'stp_authz'
#     TABLENAME = 'backend_connection_id'
# def adaptLabel(label):
# def adaptSecuritAttribute(label):
# def adaptDatetime(dt):
#     def make(self, values):
#     def make(self, values):
# def castDatetime(value, cur):
# def setupDatabase(database, user, password=None, host=None, connection_id_start=None):
# def getBackendConnectionId():
#     def gotResult(rows):
# class LabelComposite(CompositeCaster):
# class SecuritAttributeComposite(CompositeCaster):
# class ServiceConnection(DBObject):
# class SubConnection(DBObject):
# class STPAuthz(DBObject):
# class BackendConnectionID(DBObject):


from twisted.web import resource, server
from opennsa import database
Currently rather simple. No CSS, just raw html tables.

Author: Henrik Thostrup Jensen <htj@nordu.net>
Copyright: NORDUnet (2012)
"""




HTML_HEADER = """<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>%(title)s</title>
    </head>
    <body>
"""

HTML_FOOTER = """   </body>
</html>
"""


class ConnectionListResource(resource.Resource):

    def __init__(self):
        pass

    def render_GET(self, request):


# Path: opennsa/database.py
# LOG_SYSTEM = 'opennsa.Database'
#     DT = psycopg2.extensions.new_type((timestamptz_oid,), "timestamptz", castDatetime)
#     HASMANY = ['SubConnections']
#     BELONGSTO = ['ServiceConnection']
#     TABLENAME = 'stp_authz'
#     TABLENAME = 'backend_connection_id'
# def adaptLabel(label):
# def adaptSecuritAttribute(label):
# def adaptDatetime(dt):
#     def make(self, values):
#     def make(self, values):
# def castDatetime(value, cur):
# def setupDatabase(database, user, password=None, host=None, connection_id_start=None):
# def getBackendConnectionId():
#     def gotResult(rows):
# class LabelComposite(CompositeCaster):
# class SecuritAttributeComposite(CompositeCaster):
# class ServiceConnection(DBObject):
# class SubConnection(DBObject):
# class STPAuthz(DBObject):
# class BackendConnectionID(DBObject):


# Path: opennsa/viewresource.py
from twisted.web import resource, server
from opennsa import database

Currently rather simple. No CSS, just raw html tables.

Author: Henrik Thostrup Jensen <htj@nordu.net>
Copyright: NORDUnet (2012)
"""




HTML_HEADER = """<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>%(title)s</title>
    </head>
    <body>
"""

HTML_FOOTER = """   </body>
</html>
"""


class ConnectionListResource(resource.Resource):

    def __init__(self):
        pass

    def render_GET(self, request):


        d = database.ServiceConnection.find()