[Products.SilvaExternalSources][Emiliano D'Alterio] Changed Code...
[email protected] Wed, 28 Aug 2013 16:49:17 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Emiliano D'Alterio
date: Wed Aug 28 16:45:06 2013 +0200
revision: 1105:2c050a3aa086 in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=2c050a3aa086
modified: Products/SilvaExternalSources/CodeSourceService.py
added:
removed:
log: Changed Code Source update to deal with cases in that the entire CS
folder has been removed.
diffstat:
Products/SilvaExternalSources/CodeSourceService.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 6fbe8c869044 -r 2c050a3aa086 Products/SilvaExternalSources/CodeSourceService.py
--- a/Products/SilvaExternalSources/CodeSourceService.py Wed Aug 28 13:10:30 2013 +0200
+++ b/Products/SilvaExternalSources/CodeSourceService.py Wed Aug 28 16:45:06 2013 +0200
@@ -730,9 +730,12 @@
if ICodeSource.providedBy(source):
if update:
installable = source._get_installable()
- if installable is not None:
+ if (installable is not None and
+ os.path.isdir(installable._directory)):
installable.update(source, True)
message = _('Source updated.')
+ else:
+ message = _('Not updated. Folder missing.')
elif bind and not source.get_fs_location():
candidates = source.manage_getFileSystemLocations()
if len(candidates) == 1: