[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5909 - trunk/gnue-designer/src/templates/forms
From: |
btami |
Subject: |
r5909 - trunk/gnue-designer/src/templates/forms |
Date: |
Wed, 7 Jul 2004 17:13:50 -0500 (CDT) |
Author: btami
Date: 2004-06-15 05:12:11 -0500 (Tue, 15 Jun 2004)
New Revision: 5909
Modified:
trunk/gnue-designer/src/templates/forms/FormBuilder.py
trunk/gnue-designer/src/templates/forms/Simple.py
Log:
fixed max length settings in form wizards
Modified: trunk/gnue-designer/src/templates/forms/FormBuilder.py
===================================================================
--- trunk/gnue-designer/src/templates/forms/FormBuilder.py 2004-06-15
09:24:15 UTC (rev 5908)
+++ trunk/gnue-designer/src/templates/forms/FormBuilder.py 2004-06-15
10:12:11 UTC (rev 5909)
@@ -464,11 +464,11 @@
'field': field.name,
'typecast': field.datatype }
- # If we have a length for the field, use this as the max_length
+ # If we have a length for the field, use this as the maxLength
# for the entry. Also, adjust the display width if necessary.
if hasattr(field,'length'):
- ln = max(min(field.length, 25),0) or 10
- attrs['max_length'] = ln
+ ln = max(min(field.length, 40),0) or 10
+ attrs['maxLength'] = ln
largestField = max(largestField, ln)
else:
largestField = max(largestField, 10)
@@ -504,7 +504,7 @@
# If label width is larger than entry width, center the entry
try:
- entryWidth = min(field['max_length'],25)
+ entryWidth = min(field['maxLength'],40)
except KeyError:
entryWidth = 10
if entryWidth < textLen:
@@ -582,10 +582,10 @@
'Char:y': y,
'Char:width': 10 }
- # If we have a length for the field, use this as the max_length
+ # If we have a length for the field, use this as the maxLength
# for the entry. Also, adjust the display width if necessary.
try:
- attrs['Char:width'] = min(field['max_length'], 25)
+ attrs['Char:width'] = min(field['maxLength'], 40)
except KeyError:
pass
Modified: trunk/gnue-designer/src/templates/forms/Simple.py
===================================================================
--- trunk/gnue-designer/src/templates/forms/Simple.py 2004-06-15 09:24:15 UTC
(rev 5908)
+++ trunk/gnue-designer/src/templates/forms/Simple.py 2004-06-15 10:12:11 UTC
(rev 5909)
@@ -253,13 +253,13 @@
'field': field.name,
'typecast': field.datatype }
- # If we have a length for the field, use this as the max_length
+ # If we have a length for the field, use this as the maxLength
# for the entry. Also, adjust the display width if necessary.
if hasattr(field,'length'):
- ln = max(min(field.length, 25),0) or 10
-
- ##ln = min(field.length, 25)
- attrs['max_length'] = ln
+ ln = max(min(field.length, 40),0) or 10
+
+ ##ln = min(field.length, 40)
+ attrs['maxLength'] = ln
largestField = max(largestField, ln)
else:
largestField = max(largestField, 10)
@@ -295,7 +295,7 @@
# If label width is larger than entry width, center the entry
try:
- entryWidth = min(field['max_length'],25)
+ entryWidth = min(field['maxLength'],40)
except KeyError:
entryWidth = 10
if entryWidth < textLen:
@@ -377,10 +377,10 @@
'Char:y': y,
'Char:width': 10 }
- # If we have a length for the field, use this as the max_length
+ # If we have a length for the field, use this as the maxLength
# for the entry. Also, adjust the display width if necessary.
try:
- attrs['Char:width'] = min(field['max_length'], 25)
+ attrs['Char:width'] = min(field['maxLength'], 40)
except KeyError:
pass
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5909 - trunk/gnue-designer/src/templates/forms,
btami <=