commit-gnue
[Top][All Lists]
Advanced

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

r6562 - trunk/gnue-reports/src/client


From: johannes
Subject: r6562 - trunk/gnue-reports/src/client
Date: Mon, 25 Oct 2004 05:10:42 -0500 (CDT)

Author: johannes
Date: 2004-10-25 05:10:42 -0500 (Mon, 25 Oct 2004)
New Revision: 6562

Modified:
   trunk/gnue-reports/src/client/GRRunUI.py
Log:
check parameter type correctly


Modified: trunk/gnue-reports/src/client/GRRunUI.py
===================================================================
--- trunk/gnue-reports/src/client/GRRunUI.py    2004-10-25 10:00:17 UTC (rev 
6561)
+++ trunk/gnue-reports/src/client/GRRunUI.py    2004-10-25 10:10:42 UTC (rev 
6562)
@@ -279,11 +279,11 @@
 
       pType = current ['pType']
 
-      if pType == ['boolean']:
+      if pType == 'boolean':
         current ['style']   = 'checkbox'
         current ['dLength'] = 1
 
-      elif pType == ['date', 'time', 'datetime']:
+      elif pType in ['date', 'time', 'datetime']:
         current ['typecast'] = 'date'
         masks = ['%x', '%X', '%x %X']
         current ['format']  = masks [['date', 'time', 'datetime'].index 
(pType)]





reply via email to

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