[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5777 - trunk/gnue-common/src/datasources
From: |
jcater |
Subject: |
r5777 - trunk/gnue-common/src/datasources |
Date: |
Mon, 3 May 2004 19:47:48 -0500 (CDT) |
Author: jcater
Date: 2004-05-03 19:47:47 -0500 (Mon, 03 May 2004)
New Revision: 5777
Modified:
trunk/gnue-common/src/datasources/GDataSource.py
Log:
added sql support to DataSourceWrapper
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2004-05-04 00:39:51 UTC
(rev 5776)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2004-05-04 00:47:47 UTC
(rev 5777)
@@ -577,9 +577,14 @@
# Wrapper for standalone DataSources
# (i.e., not in context of a GObj tree)
#
-def DataSourceWrapper(connections=None, fields=(), attributes={}, init=1,
unicodeMode=0):
+def DataSourceWrapper(connections=None, fields=(), attributes={}, init=1,
unicodeMode=0, sql=""):
source = _DataSourceWrapper()
+ if sql:
+ s = GSql(source)
+ s.__content__ = sql
+
+
if connections:
source.setConnectionManager(connections)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5777 - trunk/gnue-common/src/datasources,
jcater <=