Author: jmorliaguet Date: Fri May 5 09:21:47 2006 New Revision: 3047 Modified: cpsskins/branches/paris-sprint-2006/setup/README.txt
Log: - test update to make sure that the binary got exported Modified: cpsskins/branches/paris-sprint-2006/setup/README.txt ============================================================================== --- cpsskins/branches/paris-sprint-2006/setup/README.txt (original) +++ cpsskins/branches/paris-sprint-2006/setup/README.txt Fri May 5 09:21:47 2006 @@ -496,11 +496,12 @@ >>> from cpsskins.setup.interfaces import IDOMAdapter - >>> def toXML(obj, title=u'resources', attributes=(), ignored=()): + >>> def toXML(obj, title=u'resources', attributes=(), ignored=(), + ... archive=None): ... document = dom.createDocument(None, title, None) ... doc = document.documentElement ... exporter = getMultiAdapter((obj, doc), IDOMAdapter) - ... exporter.archive = {} + ... exporter.archive = archive ... exporter.document = document ... exporter.fields_as_attributes = attributes ... exporter.ignored_fields = ignored @@ -713,7 +714,9 @@ >>> getImageInfo(portlet.data) ('image/png', 120, 120) - >>> print toXML(portlet, u'portlets') + >>> archive = {} + + >>> print toXML(portlet, u'portlets', archive=archive) <?xml version="1.0" encoding="utf-8"?> <portlets> <portlet id="12345" type="standard.image"> @@ -725,6 +728,9 @@ </portlets> <BLANKLINE> + >>> archive[u'12345_data_120x120.png'] == portlet.data + True + Resolving URIs ============== -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins