/[papo]/gnue/common/src/GComm.py
ViewVC logotype

Diff of /gnue/common/src/GComm.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by styxman, Fri Nov 15 15:32:54 2002 UTC revision 1.4.2.1 by anthonyl, Tue Mar 4 22:09:32 2003 UTC
# Line 16  Line 16 
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
# Line 44  def attach(interface, params): Line 44  def attach(interface, params):
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    
# Line 112  def bind(rpcdef, drivers, bindings): Line 112  def bind(rpcdef, drivers, bindings):
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

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26