[Modeling-cvs] ProjectModeling/Modeling DatabaseContext.py,1.14,1.15
Status: Abandoned
Brought to you by:
sbigaret
|
From: <sbi...@us...> - 2003-06-11 11:02:54
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv21793
Modified Files:
DatabaseContext.py
Log Message:
Added new adaptor layer for SQLite / sqlite is typeless: fixed objectsCountWithFetchSpecification() to convert result to integer
Index: DatabaseContext.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseContext.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** DatabaseContext.py 14 Mar 2003 11:40:07 -0000 1.14
--- DatabaseContext.py 11 Jun 2003 11:02:49 -0000 1.15
***************
*** 1433,1438 ****
for entityName in entitiesNames:
aFetchSpec.setEntityName(entityName)
! count+=channel.selectCountObjectsWithFetchSpecification(aFetchSpec,
anEditingContext)
return count
--- 1433,1439 ----
for entityName in entitiesNames:
aFetchSpec.setEntityName(entityName)
! c=channel.selectCountObjectsWithFetchSpecification(aFetchSpec,
anEditingContext)
+ count+=int(c) # SQLite
return count
|