[Zope-Checkins] CVS: Zope/lib/python/Products/ExternalMethod - ExternalMethod.py:1.45.16.4

Shane Hathaway shane@cvs.zope.org
Thu, 1 Aug 2002 14:01:27 -0400


Update of /cvs-repository/Zope/lib/python/Products/ExternalMethod
In directory cvs.zope.org:/tmp/cvs-serv27937

Modified Files:
      Tag: Zope-2_5-branch
	ExternalMethod.py 
Log Message:
Only call manage_main if REQUEST is provided.

=== Zope/lib/python/Products/ExternalMethod/ExternalMethod.py 1.45.16.3 => 1.45.16.4 ===
     
     i=ExternalMethod(id,title,module,function)
     self._setObject(id,i)
-    return self.manage_main(self,REQUEST)
+    if REQUEST is not None:
+        return self.manage_main(self,REQUEST)
 
 class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit,
                      AccessControl.Role.RoleManager, Navigation):