[gnue] r9853 - trunk/gnue-common/src/datasources

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.