[Zope-Checkins] CVS: Zope/lib/python/Products/CallProfiler - CallProfiler.py:1.1.2.5
Ken Manheimer
klm@zope.com
Thu, 13 Jun 2002 14:42:49 -0400
Update of /cvs-repository/Zope/lib/python/Products/CallProfiler
In directory cvs.zope.org:/tmp/cvs-serv9144
Modified Files:
Tag: anthony-CallProfiler-branch
CallProfiler.py
Log Message:
Fix on-the-fly adding of new methods/modules.
.addMethod(): Make parameter 'method_name' instead of 'method', to
agree with both the module-global addMethod function and
configure.dtml (which was expecting method_name, probably because of
the module-global function).
=== Zope/lib/python/Products/CallProfiler/CallProfiler.py 1.1.2.4 => 1.1.2.5 ===
security.declareProtected('View management screens', 'addMethod')
- def addMethod(self, dotted_module, class_name, method):
+ def addMethod(self, dotted_module, class_name, method_name):
'''Add / replace a method "on the fly".
'''
- p = addMethod(dotted_module, class_name, method)
+ p = addMethod(dotted_module, class_name, method_name)
message = 'Module %s added.' % p.name
return self.configureForm(self, self.REQUEST,
manage_tabs_message=message)
@@ -501,6 +501,14 @@
#
# $Log$
+# Revision 1.1.2.5 2002/06/13 18:42:49 klm
+# Fix on-the-fly adding of new methods/modules.
+#
+# .addMethod(): Make parameter 'method_name' instead of 'method', to
+# agree with both the module-global addMethod function and
+# configure.dtml (which was expecting method_name, probably because of
+# the module-global function).
+#
# Revision 1.1.2.4 2002/05/21 03:14:45 anthony
# Icons are refreshed when the Configure screen lists modules. This works
# around the problem that when icon entries are first scanned (at boot time)