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 13:00:34 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jan Ischebeck <address@hidden>  02/05/06 13:00:33

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

Log message:
        better testing for the place of donuts.grpc

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

Patches:
Index: gnue/common/src/commdrivers/_test/server.py
diff -c gnue/common/src/commdrivers/_test/server.py:1.11 
gnue/common/src/commdrivers/_test/server.py:1.12
*** gnue/common/src/commdrivers/_test/server.py:1.11    Mon May  6 09:31:12 2002
--- gnue/common/src/commdrivers/_test/server.py Mon May  6 13:00:33 2002
***************
*** 40,56 ****
      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
  
  
    def requestDelivery(self,address):
--- 40,56 ----
      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
  
  
    def requestDelivery(self,address):
***************
*** 203,209 ****
    
  # 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()
--- 203,210 ----
    
  # do some tricks to get the path of donuts.grpc
  # get the local file name and cut of the last 9 chars: "server.py"
!   import string
!   grpcFile=__file__[:string.rfind(__file__,'/')]+"/donuts.grpc"
    
    server.setGrpcFile(grpcFile)
    server.run()



reply via email to

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