Exemple #1
0
 def __init__(self, context):
   """The constructor of the SecurityDBApi creates a SiteDBApi, connects to the sitedb instance
       and puts it on the context so that it is available for others to use
   """
   self.api = SiteDBApi (context)
   self.api.connect ()
   context.addService (self.api)
Exemple #2
0
from Framework import Context
from Framework.Logger import Logger

from Tools.SiteDBCore import SiteDBApi

context = Context()
context.addService(Logger("sitedbtest"))
api = SiteDBApi(context)

api.connect()
print api.getTierList()