def OnBreakInto(self, event): for node in self.getNodesForSelection(self.list.getMultiSelection()): props = node.properties zc = ZopeConnection() zc.connect(props['host'], props['httpport'], props['username'], props['passwd']) start_new_thread(self.breakpointInBackground, (zc, ))
def __init__(self, globClip, props): ExplorerNodes.ExplorerClipboard.__init__(self, globClip) self.clipRef = '' self.props = props self.zc = ZopeConnection() self.zc.connect(props['host'], props['httpport'], props['username'], props['passwd'])
def callControlPanelMethod(self, props, meth): zc = ZopeConnection() zc.connect(props['host'], props['httpport'], props['username'], props['passwd']) zc.call('/Control_Panel', meth)