def overwriteApi(self, api):
     _wrapFuncs(api,
                self._apid,
                self._wrapper,
                self._waitOnEvent,
                event=NamespaceWrapperController._event,
                debugger=self._debugger)
     self._wrapper.namespace().update(api)
Exemplo n.º 2
0
 def __init__(self, apid, ns, waitOnEvent=True, event=None, debugger=None):
     self._ns = ns
     self._apid = apid
     self._waitOnEvent = waitOnEvent
     self._debugger = debugger
     eNames = dir(self)
     for name in ns.keys():
         if name in eNames:
             raise MaskedAttributeError(name)
     _wrapFuncs(ns, apid, self, waitOnEvent=self._waitOnEvent, event=event, debugger=debugger)
 def insertApi(self, api):
     eNames = dir(self._wrapper)
     names = []
     newNames = api.keys()
     for name in newNames:
         if name in eNames:
             names.append(name)
     if len(names)>0:
         raise DuplicateApiMethodError(names, eNames)
     _wrapFuncs(api, self._apid, self._wrapper, self._waitOnEvent, event=NamespaceWrapperController._event, debugger=self._debugger)
     self._wrapper.namespace().update(api)
 def insertApi(self, api):
     eNames = dir(self._wrapper)
     names = []
     newNames = api.keys()
     for name in newNames:
         if name in eNames:
             names.append(name)
     if len(names) > 0:
         raise DuplicateApiMethodError(names, eNames)
     _wrapFuncs(api,
                self._apid,
                self._wrapper,
                self._waitOnEvent,
                event=NamespaceWrapperController._event,
                debugger=self._debugger)
     self._wrapper.namespace().update(api)
 def overwriteApi(self, api):
     _wrapFuncs(api, self._apid, self._wrapper, self._waitOnEvent, event=NamespaceWrapperController._event, debugger=self._debugger)
     self._wrapper.namespace().update(api)