Commit 57e0b92f authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Meaningless to remove ZODB Components migrated from FS.

This will not work when there are several nodes anyway, so just display a
message to the user instead.
parent 7224e39d
...@@ -71,7 +71,7 @@ if failed_import_dict:\n ...@@ -71,7 +71,7 @@ if failed_import_dict:\n
\n \n
message = "The following component could not be imported: " + \', \'.join(failed_import_formatted_list)\n message = "The following component could not be imported: " + \', \'.join(failed_import_formatted_list)\n
else:\n else:\n
message = "All components were successfully imported from filesystem to ZODB."\n message = "All components were successfully imported from filesystem to ZODB. You can now delete them from your instance home."\n
\n \n
return context.Base_redirect(\'view\',\n return context.Base_redirect(\'view\',\n
keep_items={\'portal_status_message\': message})\n keep_items={\'portal_status_message\': message})\n
......
2013-06-24 arnaud.fontaine
* Meaningless to remove ZODB Components migrated from FS. This will not work when there are several nodes anyway, so just display a message to the user.
2013-06-19 arnaud.fontaine 2013-06-19 arnaud.fontaine
* Add 'does' to the closed-class words list in naming convention checking script. * Add 'does' to the closed-class words list in naming convention checking script.
......
...@@ -383,7 +383,4 @@ class ComponentMixin(PropertyRecordableMixin, Base): ...@@ -383,7 +383,4 @@ class ComponentMixin(PropertyRecordableMixin, Base):
# straightaway as there should be no error # straightaway as there should be no error
new_component.validate() new_component.validate()
# Remove now useless Component on filesystem
os.remove(path)
return new_component return new_component
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