I am writing a script that can be used to export (and eventually import)
all/some of the content in a Plone site to comma separated values (CSV)
files.[1] My question is, what would be the best approach for testing
the package? The package requires a Plone site, but is not part of a
Plone site since it is a script outside of Plone.
More about the package in question...
The package uses/requires a Plone site with the wsapi4plone package
installed.[2] The short definition of the wsapi4plone package is, "an
XML-RPC web services API for communicating with a Plone site." So the
exporter script uses the wsapi4plone package to communicate with Plone
via XML-RPC calls; and therefore does not reside inside a Plone site,
which puts it outside of the scope of the typical PloneTestCase.
How could I somehow make a fake Plone site with the various calls
provided by the wsapi4plone package without actually running a Plone site?
As a side note... I want to eventually be able to import/export to a MS
Excel friendly format using xlrd.[3] Also, in the distant future, the
import/export scripts could possibly provide other formats like YAML and
XML.
-Michael Mulich (pumazi)
[1]
https://weblion.psu.edu/trac/weblion/browser/users/mrm41/PloneBatcher/trunk
[2] https://weblion.psu.edu/trac/weblion/wiki/WebServicesApiPlone
[3] http://pypi.python.org/pypi/xlrd
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers