[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5054 - trunk/gnue-forms/src/GFObjects
From: |
jcater |
Subject: |
r5054 - trunk/gnue-forms/src/GFObjects |
Date: |
Thu, 29 Jan 2004 15:04:11 -0600 (CST) |
Author: jcater
Date: 2004-01-29 15:04:10 -0600 (Thu, 29 Jan 2004)
New Revision: 5054
Modified:
trunk/gnue-forms/src/GFObjects/GFBox.py
trunk/gnue-forms/src/GFObjects/GFButton.py
trunk/gnue-forms/src/GFObjects/GFComponent.py
trunk/gnue-forms/src/GFObjects/GFContainer.py
trunk/gnue-forms/src/GFObjects/GFDataSource.py
trunk/gnue-forms/src/GFObjects/GFEntry.py
trunk/gnue-forms/src/GFObjects/GFField.py
trunk/gnue-forms/src/GFObjects/GFImage.py
trunk/gnue-forms/src/GFObjects/GFLabel.py
trunk/gnue-forms/src/GFObjects/GFLayout.py
trunk/gnue-forms/src/GFObjects/GFLogic.py
trunk/gnue-forms/src/GFObjects/GFObj.py
trunk/gnue-forms/src/GFObjects/GFOption.py
trunk/gnue-forms/src/GFObjects/GFOptions.py
trunk/gnue-forms/src/GFObjects/GFPage.py
trunk/gnue-forms/src/GFObjects/GFParameter.py
trunk/gnue-forms/src/GFObjects/GFScrollBar.py
trunk/gnue-forms/src/GFObjects/GFTabStop.py
trunk/gnue-forms/src/GFObjects/GFValue.py
trunk/gnue-forms/src/GFObjects/__init__.py
Log:
more comments/cleanup
Modified: trunk/gnue-forms/src/GFObjects/GFBox.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBox.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFBox.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -18,13 +18,13 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Logical box support
+"""
# NOTES:
#
Modified: trunk/gnue-forms/src/GFObjects/GFButton.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFButton.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFButton.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,8 +22,9 @@
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Logical button support
+"""
# NOTES:
#
from GFTabStop import GFTabStop
@@ -36,7 +37,7 @@
GFTabStop.__init__(self, parent, 'GFButton')
self.label = ""
self._inits = [self.initialize]
- self._navigable = 1
+ self._navigable = True
self._validTriggers ={ 'ON-ACTION': 'On-Action',
'PRE-FOCUSOUT': 'Pre-FocusOut',
'POST-FOCUSOUT': 'Post-FocusOut',
Modified: trunk/gnue-forms/src/GFObjects/GFComponent.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFComponent.py 2004-01-29 20:52:10 UTC
(rev 5053)
+++ trunk/gnue-forms/src/GFObjects/GFComponent.py 2004-01-29 21:04:10 UTC
(rev 5054)
@@ -23,13 +23,12 @@
# GFComponent.py
#
# DESCRIPTION:
-# Component support (bonobo for gtk2, ole for win32, etc.)
+"""
+Component support (bonobo for gtk2, ole for win32, etc.)
+"""
#
# NOTES:
#
-# HISTORY:
-# Copyright (c) 2003 Free Software Foundation
-#
from GFValue import GFValue
from gnue.forms import GFDisplayHandler
@@ -86,7 +85,7 @@
self._form = self._block._form
- self._navigable = 0 # self.navigable
+ self._navigable = False # self.navigable
self._displayHandler = GFDisplayHandler.ComponentDisplayHandler(self,
self._form._instance.eventController)
Modified: trunk/gnue-forms/src/GFObjects/GFContainer.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFContainer.py 2004-01-29 20:52:10 UTC
(rev 5053)
+++ trunk/gnue-forms/src/GFObjects/GFContainer.py 2004-01-29 21:04:10 UTC
(rev 5054)
@@ -22,7 +22,9 @@
# GFContainer.py
#
# DESCRIPTION:
-# A base class for all GFObjects that can be containers
+"""
+A base class for all GFObjects that can be containers
+"""
from GFObj import GFObj
from GFTabStop import GFTabStop
Modified: trunk/gnue-forms/src/GFObjects/GFDataSource.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFDataSource.py 2004-01-29 20:52:10 UTC
(rev 5053)
+++ trunk/gnue-forms/src/GFObjects/GFDataSource.py 2004-01-29 21:04:10 UTC
(rev 5054)
@@ -23,8 +23,9 @@
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Logical datasource support
+"""
# NOTES:
#
# HISTORY:
@@ -64,13 +65,13 @@
try:
record.__firstModification
except NameError:
- record.__firstModification = 1
+ record.__firstModification = True
self._form.dispatchEvent('onRecordTouched', record=record)
- return 1
+ return True
def _onRecordLoaded(self, record):
self._form.dispatchEvent('onQueryNewRecord', record=record)
- return 1
+ return True
Modified: trunk/gnue-forms/src/GFObjects/GFEntry.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFEntry.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFEntry.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,8 +22,9 @@
# GFEntry.py
#
# DESCRIPTION:
-# The primary data entry widget in forms
-#
+"""
+The primary data entry widget in forms
+"""
# NOTES:
#
Modified: trunk/gnue-forms/src/GFObjects/GFField.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFField.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFField.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,8 +22,9 @@
# GFField.py
#
# DESCRIPTION:
-# The primary data entry widget in forms
-#
+"""
+The primary data entry widget in forms
+"""
# NOTES:
#
@@ -47,13 +48,13 @@
self.typecast="text"
self.case="mixed"
self.style="default"
- self.defaultToLast = 0
+ self.defaultToLast = False
# Runtime variables
- self._uppercase = 0
- self._lowercase = 0
- self._numeric = 0
- self._queryable = 1
+ self._uppercase = False
+ self._lowercase = False
+ self._numeric = False
+ self._queryable = True
self._inits = [self.initialize]
self._allowedValues = None
@@ -137,12 +138,12 @@
block._fieldList.append(self)
if self.typecast == 'number':
- self._numeric = 1
+ self._numeric = True
self._allowFormulas = gConfigForms("AllowNumericFormulas")
if self.case == 'upper':
- self._uppercase = 1
+ self._uppercase = True
elif self.case == 'lower':
- self._lowercase = 1
+ self._lowercase = True
## self._formatmask = ""
@@ -158,10 +159,10 @@
if not hasattr(self,'field') or not len(self.field):
self.field = "__GNUe__%s" % self.name
self._block._dataSourceLink.referenceUnboundField(self.field, default)
- self._bound = 0
+ self._bound = False
else:
self._block._dataSourceLink.referenceField(self.field, default)
- self._bound = 1
+ self._bound = True
# Initialize the foreign key lookup (if necessary)
if hasattr(self,'fk_source'):
Modified: trunk/gnue-forms/src/GFObjects/GFImage.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFImage.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFImage.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -23,8 +23,9 @@
# GFImage.py
#
# DESCRIPTION:
-# Image support
-#
+"""
+Logical image support
+"""
# NOTES:
#
# HISTORY:
@@ -85,7 +86,7 @@
self._form = self._block._form
- self._navigable = 0 # self.navigable
+ self._navigable = False # self.navigable
self._displayHandler = GFDisplayHandler.ImageDisplayHandler(self,
self._form._instance.eventController)
Modified: trunk/gnue-forms/src/GFObjects/GFLabel.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFLabel.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFLabel.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -23,13 +23,11 @@
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Logical label support
+"""
# NOTES:
#
-# HISTORY:
-# Copyright (c) 2000 Free Software Foundation
-#
from GFValue import GFValue
Modified: trunk/gnue-forms/src/GFObjects/GFLayout.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFLayout.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFLayout.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -18,13 +18,13 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFLayout.py
#
# DESCRIPTION:
-# Handles the <layout> tag.
-#
+"""
+Handles the <layout> tag.
+"""
# NOTES:
#
# HISTORY:
Modified: trunk/gnue-forms/src/GFObjects/GFLogic.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFLogic.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFLogic.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -23,8 +23,9 @@
# GFLogic.py
#
# DESCRIPTION:
-# Handles the <logic> tag.
-#
+"""
+Handles the <logic> tag.
+"""
# NOTES:
#
# HISTORY:
Modified: trunk/gnue-forms/src/GFObjects/GFObj.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFObj.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFObj.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -18,13 +18,13 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Base for all Form-related GObjects
+"""
# NOTES:
#
# HISTORY:
@@ -42,8 +42,8 @@
def __init__(self, parent=None, type='GFObj'):
GTriggerExtension.__init__(self)
GObj.__init__(self, parent, type)
- self.hidden = 0
- self.readonly = 0
+ self.hidden = False
+ self.readonly = False
self._visibleIndex = 0
self.name = "__%s__" % self
self._rows = 1
Modified: trunk/gnue-forms/src/GFObjects/GFOption.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFOption.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFOption.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,12 +22,11 @@
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Option support
+"""
# NOTES:
#
-# HISTORY:
-#
from gnue.common.definitions.GObjects import *
Modified: trunk/gnue-forms/src/GFObjects/GFOptions.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFOptions.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFOptions.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -18,18 +18,15 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Options container support
+"""
# NOTES:
#
-# HISTORY:
-# Copyright (c) 2000 Free Software Foundation
-#
from gnue.common.definitions.GObjects import *
Modified: trunk/gnue-forms/src/GFObjects/GFPage.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFPage.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFPage.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -18,13 +18,13 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Logical page support
+"""
# NOTES:
#
Modified: trunk/gnue-forms/src/GFObjects/GFParameter.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFParameter.py 2004-01-29 20:52:10 UTC
(rev 5053)
+++ trunk/gnue-forms/src/GFObjects/GFParameter.py 2004-01-29 21:04:10 UTC
(rev 5054)
@@ -23,8 +23,9 @@
# GFParameters.py
#
# DESCRIPTION:
-#
-#
+"""
+Parameter support
+"""
# NOTES:
#
Modified: trunk/gnue-forms/src/GFObjects/GFScrollBar.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFScrollBar.py 2004-01-29 20:52:10 UTC
(rev 5053)
+++ trunk/gnue-forms/src/GFObjects/GFScrollBar.py 2004-01-29 21:04:10 UTC
(rev 5054)
@@ -18,18 +18,15 @@
#
# Copyright 2000-2004 Free Software Foundation
#
-#
# FILE:
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
-#
+"""
+Implements logical scrollbar support
+"""
# NOTES:
#
-# HISTORY:
-# Copyright 2000-2004 Free Software Foundation
-#
from GFObj import GFObj
Modified: trunk/gnue-forms/src/GFObjects/GFTabStop.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFTabStop.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFTabStop.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,10 +22,12 @@
# GFContainer.py
#
# DESCRIPTION:
-# A base class for all GFObjects that can be containers
+"""
+A base class for all GFObjects that can be containers
+"""
from GFObj import GFObj
class GFTabStop(GFObj):
- _navigable = 1
+ _navigable = True
pass
Modified: trunk/gnue-forms/src/GFObjects/GFValue.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFValue.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/GFValue.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -22,7 +22,9 @@
# GFObjects.py
#
# DESCRIPTION:
-# The majority of the objects that make up a form
+"""
+Module for the majority of the objects that make up a form
+"""
#
# NOTES:
#
Modified: trunk/gnue-forms/src/GFObjects/__init__.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/__init__.py 2004-01-29 20:52:10 UTC (rev
5053)
+++ trunk/gnue-forms/src/GFObjects/__init__.py 2004-01-29 21:04:10 UTC (rev
5054)
@@ -1,3 +1,29 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or (at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+# FILE:
+#
+# DESCRIPTION:
+"""
+"""
+
__all__ = [
"GFBlock",
"GFDataSource",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5054 - trunk/gnue-forms/src/GFObjects,
jcater <=