Commit 50430b60 authored by Jim Fulton's avatar Jim Fulton

Fixed typo preventing repair of module names with trailing ".pyc".

Thanks to Gisle Aas.
parent 000da166
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
This product provides support for external methods, which allow This product provides support for external methods, which allow
domain-specific customization of web environments. domain-specific customization of web environments.
""" """
__version__='$Revision: 1.38 $'[11:-2] __version__='$Revision: 1.39 $'[11:-2]
from Globals import Persistent, HTMLFile, MessageDialog, HTML from Globals import Persistent, HTMLFile, MessageDialog, HTML
import OFS.SimpleItem, Acquisition import OFS.SimpleItem, Acquisition
from string import split, join, find, lower from string import split, join, find, lower
...@@ -195,7 +195,7 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit, ...@@ -195,7 +195,7 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit,
self.title=title self.title=title
if module[-3:]=='.py': module=module[:-3] if module[-3:]=='.py': module=module[:-3]
elif module[-4:]=='.py': module=module[:-4] elif module[-4:]=='.pyc': module=module[:-4]
self._module=module self._module=module
self._function=function self._function=function
self.getFunction(1,1) self.getFunction(1,1)
......
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