Author: reinhard
Date: 2008-02-21 08:08:20 -0600 (Thu, 21 Feb 2008)
New Revision: 9853
Modified:
trunk/gnue-common/src/datasources/GDataSource.py
Log:
Datasources with joins are always readonly.
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2008-02-21 13:12:52 UTC
(rev 9852)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2008-02-21 14:08:20 UTC
(rev 9853)
@@ -629,6 +629,10 @@
cond = GConditions.combineConditions (cond, mastercond)
+ # If it is a join, make it readonly.
+ if self.type == 'object' and self.table.find(' ') >= 0:
+ readOnly = True
+
resultset = self.__newResultSet (readOnly, masterRecord)
fields = self.__get_fields(readOnly)
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue