[POS-commit] r3915 - stoqlib/trunk/docs/reporting

Henrique Romano henrique at async.com.br
Thu Jul 13 14:23:30 BRT 2006


Author: henrique
Date: Thu Jul 13 14:23:29 2006
New Revision: 3915

Modified:
   stoqlib/trunk/docs/reporting/clients_report.py

Log:
Minor change, adjusting column widths



Modified: stoqlib/trunk/docs/reporting/clients_report.py
==============================================================================
--- stoqlib/trunk/docs/reporting/clients_report.py	(original)
+++ stoqlib/trunk/docs/reporting/clients_report.py	Thu Jul 13 14:23:29 2006
@@ -22,11 +22,11 @@
 
     def get_cols(self):
         cols = [TC("Id", width=35),
-                TC("Name", width=170, truncate=1),
-                TC("District", width=80, truncate=1),
-                TC("City", width=80, truncate=1),
-                TC("State", width=40),
-                TC("Birth Date", width=70)]
+                TC("Name", expand=True),
+                TC("District", width=80),
+                TC("City", width=80),
+                TC("State", width=50),
+                TC("Birth Date", width=85)]
         return cols
 
     def get_rows(self):
@@ -46,5 +46,6 @@
         clients.sort()
         return clients
 
-report_filename = build_report(ClientsReport)
-print_preview(report_filename)
+if __name__ == "__main__":
+    report_filename = build_report(ClientsReport)
+    print_preview(report_filename)


More information about the POS-commit mailing list