16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2001 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# GComm.py |
# GComm.py |
44 |
raise InvalidAdapter, mesg |
raise InvalidAdapter, mesg |
45 |
|
|
46 |
if not (hasattr(driver,'CLIENT') and driver.CLIENT): |
if not (hasattr(driver,'CLIENT') and driver.CLIENT): |
47 |
raise NoClientAdapter, \ |
tmsg = _("GComm adapter '%s' does not support clients") % interface |
48 |
_("GComm adapter '%s' does not support clients") % interface |
raise NoClientAdapter, tmsg |
49 |
|
|
50 |
adapter = driver.ClientAdapter(params) |
adapter = driver.ClientAdapter(params) |
51 |
|
|
112 |
raise InvalidAdapter, mesg |
raise InvalidAdapter, mesg |
113 |
|
|
114 |
if not (hasattr(driver,'SERVER') and driver.SERVER): |
if not (hasattr(driver,'SERVER') and driver.SERVER): |
115 |
raise NoServerAdapter, \ |
tmsg = _("GComm adapter '%s' does not support servers") % interface |
116 |
_("GComm adapter '%s' does not support servers") % interface |
raise NoServerAdapter, tmsg |
117 |
|
|
118 |
adapter = driver.ServerAdapter(mapping, bindings, params) |
adapter = driver.ServerAdapter(mapping, bindings, params) |
119 |
servers[interface] = adapter |
servers[interface] = adapter |