MCPcopy Create free account
hub / github.com/EasyIME/PIME / init

Method init

python/server.py:33–41  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

31 self.service = None
32
33 def init(self, msg):
34 self.guid = msg["id"]
35 self.isWindows8Above = msg["isWindows8Above"]
36 self.isMetroApp = msg["isMetroApp"]
37 self.isUiLess = msg["isUiLess"]
38 self.isUiLess = msg["isConsole"]
39 # create the text service
40 self.service = textServiceMgr.createService(self, self.guid)
41 return (self.service is not None)
42
43 def handleRequest(self, msg): # msg is a json object
44 method = msg.get("method")

Callers 5

handleRequestMethod · 0.95
TooltipFunction · 0.45
PopoverFunction · 0.45
cFunction · 0.45
YFunction · 0.45

Calls 1

createServiceMethod · 0.80

Tested by

no test coverage detected