/[papo]/papo/forms/printing.py
ViewVC logotype

Diff of /papo/forms/printing.py

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

revision 1.8 by mhepp, Thu May 22 14:44:03 2003 UTC revision 1.9 by apronotti, Mon Jun 2 15:33:49 2003 UTC
# Line 4  def printField (field,size,justif='l'): Line 4  def printField (field,size,justif='l'):
4      # trunc the string to no more than size chars      # trunc the string to no more than size chars
5      field= str(field)[:size]      field= str(field)[:size]
6      if justif.lower() == 'l':      if justif.lower() == 'l':
7          return field.ljust(size)          field = field.ljust(size)
8      elif justif.lower() == 'r':      elif justif.lower() == 'r':
9          return field.rjust(size)          field = field.rjust(size)
10      else:      else:
11          return field.center(size)          field = field.center(size)
12        return field
13    
14  def printAccount (field,size):  def printAccount (field,size):
15      if field >= 0:      if field >= 0:

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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