[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7404 - trunk/gnue-common/src/datasources
From: |
reinhard |
Subject: |
[gnue] r7404 - trunk/gnue-common/src/datasources |
Date: |
Mon, 18 Apr 2005 16:28:15 -0500 (CDT) |
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
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7404 - trunk/gnue-common/src/datasources,
reinhard <=