Log message for revision 29868:
  Added configuration of class factory.
  

Changed:
  U   Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt

-=-
Modified: Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt
===================================================================
--- Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt 2005-04-04 
11:03:48 UTC (rev 29867)
+++ Zope/branches/jim-fix-zclasses/lib/python/ZClasses/_pmc.txt 2005-04-04 
11:03:57 UTC (rev 29868)
@@ -63,8 +63,13 @@
     >>> C._p_changed
     False
 
-Now, we can store the class in a database:
+Now, we can store the class in a database. We have to be careful,
+however, to use the ZClass-aware class factory so that we can find
+ZClasses, which are stored in the database, rather than in modules:
 
+    >>> import Zope2.App.ClassFactory
+    >>> some_database.classFactory = Zope2.App.ClassFactory.ClassFactory
+
     >>> connection = some_database.open()
     >>> connection.root()['C'] = C
     >>> import transaction

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to