[Checkins] SVN: z3c.form/trunk/s Use zope.browserresource instead of zope.app.publisher

Hano Schlichting cvs-admin at zope.org
Mon May 21 20:41:14 UTC 2012


Log message for revision 126417:
  Use zope.browserresource instead of zope.app.publisher
  

Changed:
  U   z3c.form/trunk/setup.py
  U   z3c.form/trunk/src/z3c/form/browser/README.txt

-=-
Modified: z3c.form/trunk/setup.py
===================================================================
--- z3c.form/trunk/setup.py	2012-05-21 20:38:01 UTC (rev 126416)
+++ z3c.form/trunk/setup.py	2012-05-21 20:41:11 UTC (rev 126417)
@@ -106,6 +106,7 @@
     install_requires=[
         'setuptools',
         'zope.browser',
+        'zope.browserresource',
         'zope.component',
         'zope.configuration',
         'zope.contentprovider',

Modified: z3c.form/trunk/src/z3c/form/browser/README.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/browser/README.txt	2012-05-21 20:38:01 UTC (rev 126416)
+++ z3c.form/trunk/src/z3c/form/browser/README.txt	2012-05-21 20:41:11 UTC (rev 126417)
@@ -498,13 +498,11 @@
   ...     resource, (None, None), ITraversable, name="resource")
 
   # New absolute URL adapter for resources, if available
-  >>> import zope.app.publisher.browser.resource
-  >>> if hasattr(zope.app.publisher.browser.resource, 'AbsoluteURL'):
-  ...     zope.component.provideAdapter(
-  ...         zope.app.publisher.browser.resource.AbsoluteURL)
+  >>> from zope.browserresource.resource import AbsoluteURL
+  >>> zope.component.provideAdapter(AbsoluteURL)
 
   # Register the "pressme.png" resource
-  >>> from zope.app.publisher.browser.resource import Resource
+  >>> from zope.browserresource.resource import Resource
   >>> testing.browserResource('pressme.png', Resource)
 
 Now we are ready to instantiate the widget:



More information about the checkins mailing list