[Checkins] SVN: zodbupdate/trunk/README.txt Document entry point usage for pre-defined rename rules.

Christian Theune ct at gocept.com
Tue Jun 23 03:20:56 EDT 2009


Log message for revision 101243:
  Document entry point usage for pre-defined rename rules.
  

Changed:
  U   zodbupdate/trunk/README.txt

-=-
Modified: zodbupdate/trunk/README.txt
===================================================================
--- zodbupdate/trunk/README.txt	2009-06-23 07:18:10 UTC (rev 101242)
+++ zodbupdate/trunk/README.txt	2009-06-23 07:20:56 UTC (rev 101243)
@@ -65,3 +65,20 @@
 And then running `zodbupdate` using:
 
     $ zodbupdate -c zeo.conf
+
+
+Pre-defined rename rules
+------------------------
+
+Rename rules can be defined using entry points::
+
+    setup(...
+          entry_points = """
+          [zodbupdate]
+          renames = mypackage.mymodule:rename_dict
+          """)
+
+Rename rules are dictionaries that map old class names to new class names::
+
+    renames = {'mypackage.mymodule ClassName':
+               'otherpackage.othermodule OtherClass'}



More information about the Checkins mailing list