Commit a6863194 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in handling of container.spam__doc__.

parent 3a592876
...@@ -370,7 +370,7 @@ Publishing a module using CGI ...@@ -370,7 +370,7 @@ Publishing a module using CGI
containing the module to be published) to the module name in the containing the module to be published) to the module name in the
cgi-bin directory. cgi-bin directory.
$Id: Publish.py,v 1.58 1997/10/22 14:49:06 jim Exp $""" $Id: Publish.py,v 1.59 1997/10/22 22:49:20 jim Exp $"""
#' #'
# Copyright # Copyright
# #
...@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.58 1997/10/22 14:49:06 jim Exp $""" ...@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.58 1997/10/22 14:49:06 jim Exp $"""
# See end of file for change log. # See end of file for change log.
# #
########################################################################## ##########################################################################
__version__='$Revision: 1.58 $'[11:-2] __version__='$Revision: 1.59 $'[11:-2]
def main(): def main():
...@@ -748,14 +748,14 @@ class ModulePublisher: ...@@ -748,14 +748,14 @@ class ModulePublisher:
try: try:
try: doc=subobject.__doc__ try: doc=subobject.__doc__
except: doc=getattr(subobject, entry_name+'__doc__') except: doc=getattr(object, entry_name+'__doc__')
if not doc: raise AttributeError, entry_name if not doc: raise AttributeError, entry_name
except: self.notFoundError("%s" % (entry_name)) except: self.notFoundError("%s" % (entry_name))
try: roles=subobject.__roles__ try: roles=subobject.__roles__
except: except:
if not got: if not got:
try: roles=getattr(object,entry_name+'__roles__') try: roles=getattr(object, entry_name+'__roles__')
except: except:
if (entry_name=='manage' or if (entry_name=='manage' or
entry_name[:7]=='manage_'): entry_name[:7]=='manage_'):
...@@ -1347,6 +1347,9 @@ def publish_module(module_name, ...@@ -1347,6 +1347,9 @@ def publish_module(module_name,
# #
# $Log: Publish.py,v $ # $Log: Publish.py,v $
# Revision 1.59 1997/10/22 22:49:20 jim
# Fixed bug in handling of container.spam__doc__.
#
# Revision 1.58 1997/10/22 14:49:06 jim # Revision 1.58 1997/10/22 14:49:06 jim
# Changed str method to use repr on dictionary keys. # Changed str method to use repr on dictionary keys.
# #
......
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