Author: reinhard Date: 2005-04-18 16:28:14 -0500 (Mon, 18 Apr 2005) New Revision: 7404
Modified: trunk/gnue-common/src/datasources/GDataSource.py Log: Added function to find the master datasource. Modified: trunk/gnue-common/src/datasources/GDataSource.py =================================================================== --- trunk/gnue-common/src/datasources/GDataSource.py 2005-04-18 21:21:39 UTC (rev 7403) +++ trunk/gnue-common/src/datasources/GDataSource.py 2005-04-18 21:28:14 UTC (rev 7404) @@ -393,6 +393,22 @@ # --------------------------------------------------------------------------- + # Get the master datasource of this datasource + # --------------------------------------------------------------------------- + + def getMaster (self): + return self.__master + + + # --------------------------------------------------------------------------- + # Return True if this datasource is a detail + # --------------------------------------------------------------------------- + + def hasMaster (self): + return self.__master is not None + + + # --------------------------------------------------------------------------- # Reference a bound field # --------------------------------------------------------------------------- @@ -462,14 +478,6 @@ # --------------------------------------------------------------------------- - # Return True if this datasource is a detail - # --------------------------------------------------------------------------- - - def hasMaster (self): - return self._dataObject != None and self._dataObject.hasMaster() - - - # --------------------------------------------------------------------------- # Create a result set # --------------------------------------------------------------------------- _______________________________________________ Commit-gnue mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/commit-gnue
