>> Test if the folder already exists before creating it.
>> Kind regards,
>> Bas Roijen
Sorry, I forgot to mention, my view function checks if the contents were
already
created. The subfolders are only created once:
class HomePageView(BrowserView):
def createSubFolders(self):
if len(self.context.listFolderContents()) == 0:
self.context.createElMolinoSubFolders()
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers