[Checkins] SVN: z3c.vcsync/trunk/ Make this work with Grok 0.11 (with a specially upgraded Martian to solve

Martijn Faassen faassen at infrae.com
Wed Nov 21 08:31:41 EST 2007


Log message for revision 81952:
  Make this work with Grok 0.11 (with a specially upgraded Martian to solve
  a problem).
  

Changed:
  U   z3c.vcsync/trunk/buildout.cfg
  U   z3c.vcsync/trunk/src/z3c/vcsync/README.txt

-=-
Modified: z3c.vcsync/trunk/buildout.cfg
===================================================================
--- z3c.vcsync/trunk/buildout.cfg	2007-11-21 09:05:31 UTC (rev 81951)
+++ z3c.vcsync/trunk/buildout.cfg	2007-11-21 13:31:41 UTC (rev 81952)
@@ -1,11 +1,14 @@
 [buildout]
 develop = .
 parts = test devpython
+extends = http://grok.zope.org/releaseinfo/grok-0.11.cfg
+versions = versions
 
+[versions]
+martian = 0.9.2
+
 [test]
 recipe = zc.recipe.testrunner
-# replace this with your own path to zope 3's library
-extra-paths=/home/faassen/buildout/z331-lp/lib/python
 eggs = z3c.vcsync
 
 # installs bin/devpython to do simple interpreter tests

Modified: z3c.vcsync/trunk/src/z3c/vcsync/README.txt
===================================================================
--- z3c.vcsync/trunk/src/z3c/vcsync/README.txt	2007-11-21 09:05:31 UTC (rev 81951)
+++ z3c.vcsync/trunk/src/z3c/vcsync/README.txt	2007-11-21 13:31:41 UTC (rev 81952)
@@ -62,8 +62,8 @@
 
 Let's first grok this package::
 
-  >>> import grok
-  >>> grok.grok('z3c.vcsync')
+  >>> import grok.testing
+  >>> grok.testing.grok('z3c.vcsync')
 
 Serialization
 -------------
@@ -104,7 +104,7 @@
 
 Let's register the adapter::
 
-  >>> grok.grok_component('ItemSerializer', ItemSerializer)
+  >>> grok.testing.grok_component('ItemSerializer', ItemSerializer)
   True
 
 We can now use the adapter::
@@ -339,7 +339,7 @@
   ...         f.write('\n')
   ...     def name(self):
   ...         return self.context.__name__ + '.other'
-  >>> grok.grok_component('OtherItemSerializer', OtherItemSerializer)
+  >>> grok.testing.grok_component('OtherItemSerializer', OtherItemSerializer)
   True
 
 Note that the extension we serialize to is ``.other``.
@@ -393,7 +393,7 @@
   ...   def __call__(self, path):
   ...       payload = int(path.read())
   ...       return Item(payload)
-  >>> grok.grok_component('ItemFactory', ItemFactory)
+  >>> grok.testing.grok_component('ItemFactory', ItemFactory)
   True
 
 Now for containers. They are registered for an empty extension::
@@ -403,7 +403,7 @@
   ...   def __call__(self, path):
   ...       container = Container()
   ...       return container
-  >>> grok.grok_component('ContainerFactory', ContainerFactory)
+  >>> grok.testing.grok_component('ContainerFactory', ContainerFactory)
   True
 
 We need to maintain a list of everything modified or added, and a list



More information about the Checkins mailing list