When trying to use the
import-site-setup form of collective.themesitesetup manually in a test site, traversal to the import-site-setup form fails with the following code
portal.unrestrictedTraverse(directory_string + "/@@import-site-setup”). Manually navigating to the form page in a robot framework instance of phone seems to work fine. In an attempt to get the functionality working anyway, I copied the code executed to handle the form import into the test setup. However, only top-level content is created, with all content within folders not being created.
Stepping through the calls, it seems as through the adapter query to get the content creation factory in
None and so any child content which needs to be imported isn't created
Any suggestions as to why the themesitesetup behaves so differently when called from
setUpPloneSite within the test site setup compared to a running Plone instance?