Author: reinhard
Date: 2010-12-02 16:27:05 -0600 (Thu, 02 Dec 2010)
New Revision: 10258

Modified:
   trunk/gnue-forms/
   trunk/gnue-forms/src/GFParser.py
Log:
Deprecate old style grids (using rows=), and documented target version for
removal of deprecated features.



Property changes on: trunk/gnue-forms
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2010-12-02 21:46:05.552000046 +0100
committer: Reinhard Müller <[email protected]>
properties: 
        branch-nick: forms

   + timestamp: 2010-12-02 23:25:47.417999983 +0100
committer: Reinhard Müller <[email protected]>
properties: 
        branch-nick: forms

Name: bzr:file-ids
   - src/GFObjects/GFBlock.py   
1...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFObjects%2FGFBlock.py

   + src/GFParser.py    
1...@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-forms:src%2FGFParser.py

Name: bzr:revision-id:v4
   - 3116 [email protected]
3117 [email protected]
3118 [email protected]
3119 [email protected]
3120 [email protected]
3121 [email protected]
3122 [email protected]
3123 [email protected]
3124 [email protected]
3125 [email protected]
3126 [email protected]
3127 [email protected]
3128 [email protected]
3129 [email protected]
3130 [email protected]
3131 [email protected]
3132 [email protected]
3133 [email protected]
3134 [email protected]
3135 [email protected]
3136 [email protected]
3137 [email protected]
3138 [email protected]
3139 [email protected]
3140 [email protected]
3141 [email protected]
3142 [email protected]
3143 [email protected]
3144 [email protected]
3145 [email protected]
3146 [email protected]
3147 [email protected]
3148 [email protected]
3149 [email protected]
3150 [email protected]
3151 [email protected]
3152 [email protected]
3153 [email protected]
3154 [email protected]
3155 [email protected]
3156 [email protected]
3157 [email protected]
3158 [email protected]
3159 [email protected]
3160 [email protected]
3161 [email protected]
3162 [email protected]
3163 [email protected]
3164 [email protected]
3165 [email protected]

   + 3116 [email protected]
3117 [email protected]
3118 [email protected]
3119 [email protected]
3120 [email protected]
3121 [email protected]
3122 [email protected]
3123 [email protected]
3124 [email protected]
3125 [email protected]
3126 [email protected]
3127 [email protected]
3128 [email protected]
3129 [email protected]
3130 [email protected]
3131 [email protected]
3132 [email protected]
3133 [email protected]
3134 [email protected]
3135 [email protected]
3136 [email protected]
3137 [email protected]
3138 [email protected]
3139 [email protected]
3140 [email protected]
3141 [email protected]
3142 [email protected]
3143 [email protected]
3144 [email protected]
3145 [email protected]
3146 [email protected]
3147 [email protected]
3148 [email protected]
3149 [email protected]
3150 [email protected]
3151 [email protected]
3152 [email protected]
3153 [email protected]
3154 [email protected]
3155 [email protected]
3156 [email protected]
3157 [email protected]
3158 [email protected]
3159 [email protected]
3160 [email protected]
3161 [email protected]
3162 [email protected]
3163 [email protected]
3164 [email protected]
3165 [email protected]
3166 [email protected]

Name: bzr:text-parents
   - 
   + src/GFParser.py    
[email protected]


Modified: trunk/gnue-forms/src/GFParser.py
===================================================================
--- trunk/gnue-forms/src/GFParser.py    2010-12-02 22:25:01 UTC (rev 10257)
+++ trunk/gnue-forms/src/GFParser.py    2010-12-02 22:27:05 UTC (rev 10258)
@@ -351,14 +351,16 @@
                'Typecast': GTypecast.whole,
                'Description': 'Any widgets inside the block will display this '
                               'number of copies in a verticle column. 
Simulates '
-                              'a grid entry system.'},
+                              'a grid entry system.',
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8.
             'rowSpacer': {
                'Typecast': GTypecast.whole,
                'Label': _('Row Spacing'),
                'Description': 'Adjusts the vertical gap of this number of rows 
'
                               'between duplicated widgets. Serves the same '
                               'purpose as some of the gap attributes on '
-                              'individual widgets.' },
+                              'individual widgets.' ,
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8.
             'startup': {
                 'Label': u_("Startup state"),
                 'Description': u_(
@@ -441,7 +443,7 @@
             'restrictDelete':{
                'Typecast': GTypecast.boolean,
                'Default': False,
-               'Deprecated': 'Use deletable="N"',
+               'Deprecated': 'Use deletable="N"',       # Remove with 0.8.
                'Label': _('Prevent Deletes'),
                'Description': 'If set then the user will be unable to request '
                                'that a record be deleted via the user 
interface.' },
@@ -449,7 +451,7 @@
                'Typecast': GTypecast.boolean,
                'Default': False,
                'Label': _('Prevent Inserts'),
-               'Deprecated': 'Use insertable="N"',
+               'Deprecated': 'Use insertable="N"',      # Remove with 0.8.
                'Description': 'If set then the user will be unable to request '
                               'that new records be inserted into the block.' },
             'datasource': {
@@ -493,12 +495,14 @@
             'rows': {
                'Typecast': GTypecast.whole,
                'Description': 'Overrides the rows setting defined at the '
-                              'block level. ' },
+                              'block level. ' ,
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8.
             'rowSpacer': {
                'Typecast': GTypecast.whole,
                'Label': _('Row Spacing'),
                'Description': 'Overriders the rowSpace setting defined at the '
-                              'block level.' } },
+                              'block level.' ,
+               'Deprecated': "Use a <grid> instead."}}, # Remove with 0.8.
          'Positionable': True,
          'ParentTags': ('page','box','hbox','vbox'),
          'Label': u_('Label'),
@@ -566,7 +570,7 @@
                 'Default': False},
             'maxLength': {
                'Typecast': GTypecast.whole,
-               'Deprecated': 'Use length'},
+               'Deprecated': 'Use length'},     # Remove with 0.8.
             'minLength': {
                'Typecast': GTypecast.whole,
                'Label': _('Min Text Length'),
@@ -575,21 +579,21 @@
                'Default': 0 },
             'max_length': {
                'Typecast': GTypecast.whole,
-               'Deprecated': 'Use length',
+               'Deprecated': 'Use length',      # Remove with 0.8.
                'Description': 'The maximum number of characters the user is '
                               'allowed to enter into the entry.' },
             'min_length': {
                'Typecast': GTypecast.whole,
-               'Deprecated': 'Use minLength',
+               'Deprecated': 'Use minLength',   # Remove with 0.8.
                'Description': 'The minimum number of characters the user must '
                               'enter into the entry.',
                'Default': 0 },
             'typecast': {
                'Typecast': GTypecast.name,
-               'Deprecated': 'Use "type".'},
+               'Deprecated': 'Use "datatype".'},        # Remove with 0.8.
             'value': {
                'Typecast': GTypecast.text,
-               'Deprecated': 'Use default="..." instead',
+               'Deprecated': 'Use default="..." instead',   # Remove with 0.8.
                'Description': 'Deprecated' },
             'fk_source': {
                'References': 'datasource.name',
@@ -744,12 +748,14 @@
             'rows': {
                'Typecast': GTypecast.whole,
                'Description': 'Overrides the rows setting defined at the '
-                              'block level.'},
+                              'block level.',
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8.
             'rowSpacer': {
                'Typecast': GTypecast.whole,
                'Label': _('Row Spacing'),
                'Description': 'Overrides the rowSpacer setting at the '
-                              'block level.' },
+                              'block level.' ,
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8.
             'navigable': {
                'Typecast': GTypecast.boolean,
                'Description': 'If false, the user will be unable to navigate '
@@ -759,7 +765,7 @@
             'hidden': {
                'Typecast': GTypecast.boolean,
                'Default': False,
-               'Deprecated': 'Use a field without entry instead'},
+               'Deprecated': 'Use a field without entry instead'}, # Remove 
with 0.8.
             'style': {
                'Typecast': GTypecast.name,
                'ValueSet': {
@@ -827,7 +833,8 @@
          'ParentTags': ('page','vbox','hbox','box'),
          'Label': u_('Scrollbar'),
          'Description': 'A scrollbar is a visual element that lets the user '
-                        'move vertically layout elements linked to it.' },
+                        'move vertically layout elements linked to it.',
+         'Deprecated': "Use a <grid> instead."},        # Remove with 0.8
 
       'vbox': {
          'BaseClass': GFObjects.GFVBox,
@@ -909,10 +916,7 @@
                'Description': 'The block for this grid.' },
             'rows': {
                'Typecast': GTypecast.whole,
-               'Description': u_('Overrides the rows setting defined at the '
-                                 'block level.')},
-
-            },
+               'Description': "Number of rows displayed"}},
          'Positionable': True,
          'ParentTags': ('page','box','hbox','vbox'),
          'Label': u_('Grid'),
@@ -1056,12 +1060,14 @@
             'rows': {
                'Typecast': GTypecast.whole,
                'Description': 'Overrides the rows setting defined at the '
-                              'block level. ' },
+                              'block level. ',
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8
             'rowSpacer': {
                'Typecast': GTypecast.whole,
                'Label': _('Row Spacing'),
                'Description': 'Overriders the rowSpace setting defined at the '
-                              'block level.' },
+                              'block level.',
+               'Deprecated': "Use a <grid> instead."},  # Remove with 0.8
             'focusorder': {
                'Typecast': GTypecast.whole,
                'Description': 'Defines what order the focus moves through '
@@ -1122,7 +1128,7 @@
                'Description': 'TODO' } },
          'MixedContent': True,
          'SingleInstance': True,
-         'Deprecated': 'Use the <form> attribute "title" instead.',
+         'Deprecated': 'Use the <form> attribute "title" instead.',     # 
Remove with 0.8
          'ParentTags': ('options',),
          'Label': u_('Form Title'),
          'Description': 'TODO' },
@@ -1272,7 +1278,7 @@
                 'Typecast': GTypecast.text},
             'type': {
                 'Typecast': GTypecast.name,
-                'Deprecated': 'Use "datatype" instead.'}},
+                'Deprecated': 'Use "datatype" instead.'}},      # Remove with 
0.8.
          'ParentTags':  ('form','dialog'),
          'Label': u_('Parameter'),
          'Description': 'A form can get parameters from the outer world '


_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to