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 @@
<value> <string>portal = context.getPortalObject()\n
ung_website = portal.web_site_module.ung\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
publication_section_uid=ung_website.getUid())\n
\n
......@@ -75,9 +67,6 @@ for person in person_list:\n
person_object = context.restrictedTraverse(person.getPath())\n
portal.person_module.deleteContent(person_object.getId())\n
\n
cleanUpModule(portal.web_page_module)\n
cleanUpModule(portal.event_module)\n
\n
return True\n
</string> </value>
</item>
......
34
\ No newline at end of file
35
\ 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