[Zope-dev] Manuel Beta

Chris Withers chris at simplistix.co.uk
Wed Jun 24 17:06:22 EDT 2009


Benji York wrote:
> I'm interested in any feedback and/or questions you may have be it
> technical, documentation, or "marketing" (i.e., how do I describe what
> Manuel does and what benefits it has).

Hi Benji,

This looks really great :-)

One thing you may have solved already, but if not would make a fantastic 
addition is a plugin that writes matching sections to a file.

So, rather than having the following in a doctest:

 >>> f = open(os.path.join('mytempdir','myfile.zcml'),'w')
 >>> f.write('''
 >>> <configure xmlns="http://namespaces.zope.org/zope">
 >>> blah blah blah
 >>> </configure>
 >>> '''.strip())
 >>> f.close()
 >>> zope.configuration.xmlconfig.file(join('mytempdir','myfile.zxml'))

I could have:

.. file:: myfile.zcml

<configure xmlns="http://namespaces.zope.org/zope">
blah blah blah
</configure>

 >>> zope.configuration.xmlconfig.file(join('mytempdir','myfile.zxml'))

...with bonus points for telling me how to get this to render nicely 
with Sphinx into a box with the file contents in it and a caption of the 
file name :-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list