def deactivate(self, args): """type-check inputs, call implementation, type-check outputs and return""" if not isinstance(args, dict): raise (UnmarshalException('arguments', 'dict', repr(args))) if not('dbg' in args): raise UnmarshalException('argument missing', 'dbg', '') dbg = args["dbg"] if not isinstance(dbg, str) and not isinstance(dbg, unicode): raise (TypeError("string", repr(dbg))) if not('uri' in args): raise UnmarshalException('argument missing', 'uri', '') uri = args["uri"] if not isinstance(uri, str) and not isinstance(uri, unicode): raise (TypeError("string", repr(uri))) if not('domain' in args): raise UnmarshalException('argument missing', 'domain', '') domain = args["domain"] if not isinstance(domain, str) and not isinstance(domain, unicode): raise (TypeError("string", repr(domain))) results = self._impl.deactivate(dbg, uri, domain) return results
def open(self, args): """type-check inputs, call implementation, type-check outputs and return""" if not isinstance(args, dict): raise (UnmarshalException('arguments', 'dict', repr(args))) if not('dbg' in args): raise UnmarshalException('argument missing', 'dbg', '') dbg = args["dbg"] if not isinstance(dbg, str) and not isinstance(dbg, unicode): raise (TypeError("string", repr(dbg))) if not('uri' in args): raise UnmarshalException('argument missing', 'uri', '') uri = args["uri"] if not isinstance(uri, str) and not isinstance(uri, unicode): raise (TypeError("string", repr(uri))) if not('persistent' in args): raise UnmarshalException('argument missing', 'persistent', '') persistent = args["persistent"] if not isinstance(persistent, bool): raise (TypeError("bool", repr(persistent))) results = self._impl.open(dbg, uri, persistent) return results