[Zope-Checkins] CVS: Products/AdaptableStorage - Zope2SQL.py:1.9

Shane Hathaway shane@zope.com
Tue, 7 Jan 2003 00:08:06 -0500


Update of /cvs-repository/Products/AdaptableStorage
In directory cvs.zope.org:/tmp/cvs-serv22801

Modified Files:
	Zope2SQL.py 
Log Message:
- Added SQLUserList.  All tests pass again.

- Refactored Zope 2 tests to share a common implementation,
Zope2TestBase.


=== Products/AdaptableStorage/Zope2SQL.py 1.8 => 1.9 ===
--- Products/AdaptableStorage/Zope2SQL.py:1.8	Mon Jan  6 18:17:39 2003
+++ Products/AdaptableStorage/Zope2SQL.py	Tue Jan  7 00:07:30 2003
@@ -20,7 +20,7 @@
 from mapper.public import ObjectGateway
 from gateway_sql.public import PsycopgConnection, SQLClassification, \
      SQLFolderItems, SQLItemId, SQLKeychainGenerator, SQLObjectData, \
-     SQLProperties, SQLRemainder
+     SQLProperties, SQLRemainder, SQLUserList
 
 from Zope2Mapper import createZope2Mapper
 
@@ -77,6 +77,13 @@
 
     # image gateway is identical
     root_mapper.getSubMapper('OFS.Image.Image').setGateway(g)
+
+    # user folder gateway
+    g = ObjectGateway()
+    g.addGateway('data', SQLUserList(conn))
+    g.addGateway('id', item_id_gw)
+    g.addGateway('remainder', remainder_gw)
+    root_mapper.getSubMapper('AccessControl.User.UserFolder').setGateway(g)
 
     # anyfolder object gateway
     g = ObjectGateway()