Commit 22833d08 authored by Gabriel Monnerat's avatar Gabriel Monnerat

remove code. clean up one module is forbidden

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44483 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a4f5be9
...@@ -53,14 +53,6 @@ ...@@ -53,14 +53,6 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
ung_website = portal.web_site_module.ung\n ung_website = portal.web_site_module.ung\n
\n \n
def cleanUpModule(module):\n
object_list = module.searchFolder()\n
\n
for object in object_list:\n
real_object = context.restrictedTraverse(object.getPath())\n
module.deleteContent(real_object.getId())\n
\n
\n
pad_list = portal.portal_catalog(portal_type="Knowledge Pad",\n pad_list = portal.portal_catalog(portal_type="Knowledge Pad",\n
publication_section_uid=ung_website.getUid())\n publication_section_uid=ung_website.getUid())\n
\n \n
...@@ -75,9 +67,6 @@ for person in person_list:\n ...@@ -75,9 +67,6 @@ for person in person_list:\n
person_object = context.restrictedTraverse(person.getPath())\n person_object = context.restrictedTraverse(person.getPath())\n
portal.person_module.deleteContent(person_object.getId())\n portal.person_module.deleteContent(person_object.getId())\n
\n \n
cleanUpModule(portal.web_page_module)\n
cleanUpModule(portal.event_module)\n
\n
return True\n return True\n
</string> </value> </string> </value>
</item> </item>
......
34 35
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment