Пример #1
0
#here check maybe ofelia-geni api collaboration

from foam.api import gapi2
gapi2_apih = gapi2.setup(app)  #Vasileios: get the returned api handlers

#modified by Vasileios, load afterwards
#from foam.api import legacyexpgapi2
#legexpgapi2_apih = legacyexpgapi2.setup(app) #Vasileios: get the returned api handlers

#modified by Vasileios, load afterwards
from foam.api import legacyexpedientapi  #Vasileios: get the returned api handlers
legacyexpedientapi_apih = legacyexpedientapi.setup(
    app)  #Vasileios: get the returned api handlers

from foam.api import sfaapi
sfaapi_apih = sfaapi.setup(app)

ConfigDB.commit()
GeniDB.commit()


def init(pm):
    pass
    #  for plugin in pm.getByInterface("foam.interface.rpc"):
    #  plugin.connect(app)


@request_started.connect_via(app)
def log_request(sender):
    app.logger.info("[REQUEST] [%s] <%s>" % (request.remote_addr, request.url))
Пример #2
0
geni_apih = geni.setup(app) #Vasileios: get the returned api handlers

#here check maybe ofelia-geni api collaboration

from foam.api import gapi2
gapi2_apih = gapi2.setup(app) #Vasileios: get the returned api handlers

#modified by Vasileios, load afterwards
#from foam.api import legacyexpgapi2
#legexpgapi2_apih = legacyexpgapi2.setup(app) #Vasileios: get the returned api handlers

#modified by Vasileios, load afterwards
from foam.api import legacyexpedientapi #Vasileios: get the returned api handlers
legacyexpedientapi_apih = legacyexpedientapi.setup(app) #Vasileios: get the returned api handlers

from foam.api import sfaapi
sfaapi_apih = sfaapi.setup(app)

ConfigDB.commit()
GeniDB.commit()

def init (pm):
  pass
  #  for plugin in pm.getByInterface("foam.interface.rpc"):
  #  plugin.connect(app)

@request_started.connect_via(app)
def log_request (sender):
  app.logger.info("[REQUEST] [%s] <%s>" % (request.remote_addr, request.url))