commit-gnue
[Top][All Lists]
Advanced

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

gnue/reports/src GRLayout.py GRRun.py


From: Jason Cater
Subject: gnue/reports/src GRLayout.py GRRun.py
Date: Mon, 16 Sep 2002 15:22:15 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/09/16 15:22:15

Modified files:
        reports/src    : GRLayout.py GRRun.py 

Log message:
        [ticket #86] removed Unix getpass dependencies; uses getpass module 
only if present

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/src/GRLayout.py.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/src/GRRun.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gnue/reports/src/GRLayout.py
diff -c gnue/reports/src/GRLayout.py:1.38 gnue/reports/src/GRLayout.py:1.39
*** gnue/reports/src/GRLayout.py:1.38   Mon Sep 16 12:18:00 2002
--- gnue/reports/src/GRLayout.py        Mon Sep 16 15:22:15 2002
***************
*** 401,409 ****
      GDebug.printMesg(10,"Repeating Section %s" % self._name)
      structuralComment(dest,"<!--[section:%s]-->" % self._name)
      nextSection = self.processChildren(dest, mapper, isfirst, islast, 
firstSection, nextSection)
! 
!     if self.name!=None:
!       mapper.sectionMap[string.lower(self.name)].clearSummaries()
  
      structuralComment(dest,"<!--[/section:%s]-->" % self._name)
      GDebug.printMesg(10,"Leaving section %s" % self._name)
--- 401,411 ----
      GDebug.printMesg(10,"Repeating Section %s" % self._name)
      structuralComment(dest,"<!--[section:%s]-->" % self._name)
      nextSection = self.processChildren(dest, mapper, isfirst, islast, 
firstSection, nextSection)
!     
!     try:
!       mapper.sectionMap[self.name].clearSummaries()
!     except KeyError:
!       pass
  
      structuralComment(dest,"<!--[/section:%s]-->" % self._name)
      GDebug.printMesg(10,"Leaving section %s" % self._name)
Index: gnue/reports/src/GRRun.py
diff -c gnue/reports/src/GRRun.py:1.16 gnue/reports/src/GRRun.py:1.17
*** gnue/reports/src/GRRun.py:1.16      Mon Jun  3 15:09:37 2002
--- gnue/reports/src/GRRun.py   Mon Sep 16 15:22:15 2002
***************
*** 238,244 ****
  # This is a (temporary?) solution to getting a login
  #
  from gnue.common import GLoginHandler
! import getpass
  class LoginHandler(GLoginHandler.LoginHandler):
  
    defaults = {'_username': None, '_password': None}
--- 238,249 ----
  # This is a (temporary?) solution to getting a login
  #
  from gnue.common import GLoginHandler
! 
! try:
!   import getpass
! except:
!   getpass = None
! 
  class LoginHandler(GLoginHandler.LoginHandler):
  
    defaults = {'_username': None, '_password': None}
***************
*** 261,267 ****
               quietprint ( self.defaults[prompt[0]] )
             val[prompt[0]] = self.defaults[prompt[0]]
           else:
!            if prompt[2]:
               val[prompt[0]] = getpass.getpass("  %s: " % prompt[1])
             else:
               val[prompt[0]] = raw_input("  %s: " % prompt[1])
--- 266,272 ----
               quietprint ( self.defaults[prompt[0]] )
             val[prompt[0]] = self.defaults[prompt[0]]
           else:
!            if prompt[2] and getpass:
               val[prompt[0]] = getpass.getpass("  %s: " % prompt[1])
             else:
               val[prompt[0]] = raw_input("  %s: " % prompt[1])




reply via email to

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