commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src/commdrivers/_test server.py


From: Jan Ischebeck
Subject: gnue/common/src/commdrivers/_test server.py
Date: Mon, 06 May 2002 09:31:12 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jan Ischebeck <address@hidden>  02/05/06 09:31:12

Modified files:
        common/src/commdrivers/_test: server.py 

Log message:
        get the right path for donuts.gprc

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/commdrivers/_test/server.py.diff?tr1=1.10&tr2=1.11&r1=text&r2=text

Patches:
Index: gnue/common/src/commdrivers/_test/server.py
diff -c gnue/common/src/commdrivers/_test/server.py:1.10 
gnue/common/src/commdrivers/_test/server.py:1.11
*** gnue/common/src/commdrivers/_test/server.py:1.10    Sun May  5 19:38:27 2002
--- gnue/common/src/commdrivers/_test/server.py Mon May  6 09:31:12 2002
***************
*** 40,53 ****
      self.flavor = flavor
      self.unitLocation = unitLocation
  
!   def get_flavor(self):
!     return self.flavor
  
!   def set_flavor(self, flavor):
!     self.flavor = flavor
  
!   def get_unitLocation(self):
!     return self.unitLocation
  
  #  def set_unitLocation(self, unitLocation):
  #    self.unitLocation = unitLocation
--- 40,53 ----
      self.flavor = flavor
      self.unitLocation = unitLocation
  
! #  def get_flavor(self):
! #    return self.flavor
  
! #  def set_flavor(self, flavor):
! #    self.flavor = flavor
  
! #  def get_unitLocation(self):
! #    return self.unitLocation
  
  #  def set_unitLocation(self, unitLocation):
  #    self.unitLocation = unitLocation
***************
*** 195,209 ****
  #
  def run():
  
! #  bind_xmlrpc()
!   bind_pw_xmlrpc()
  # bind_sockets()
    server=DonutServery()
    server.setTransports(transports)
- 
    
!   import os  #  detect own directory
!   server.setGrpcFile(os.path.abspath(os.getcwd())+"/donuts.grpc")
    server.run()
  
  
--- 195,211 ----
  #
  def run():
  
!   bind_xmlrpc()
! #  bind_pw_xmlrpc()
  # bind_sockets()
    server=DonutServery()
    server.setTransports(transports)
    
! # do some tricks to get the path of donuts.grpc
! # get the local file name and cut of the last 9 chars: "server.py"
!   grpcFile=__file__[:len(__file__)-9]+"donuts.grpc"
!   
!   server.setGrpcFile(grpcFile)
    server.run()
  
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]