Commit 835d90b2 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in computation of transaction info that made user

authentication required.
parent 9d49fa3f
...@@ -518,7 +518,7 @@ Publishing a module using Fast CGI ...@@ -518,7 +518,7 @@ Publishing a module using Fast CGI
o Configure the Fast CGI-enabled web server to execute this o Configure the Fast CGI-enabled web server to execute this
file. file.
$Id: Publish.py,v 1.43 1997/05/14 15:07:22 jim Exp $""" $Id: Publish.py,v 1.44 1997/06/13 16:02:10 jim Exp $"""
#' #'
# Copyright # Copyright
# #
...@@ -572,7 +572,7 @@ $Id: Publish.py,v 1.43 1997/05/14 15:07:22 jim Exp $""" ...@@ -572,7 +572,7 @@ $Id: Publish.py,v 1.43 1997/05/14 15:07:22 jim Exp $"""
# #
# See end of file for change log. # See end of file for change log.
# #
__version__='$Revision: 1.43 $'[11:-2] __version__='$Revision: 1.44 $'[11:-2]
def main(): def main():
...@@ -825,16 +825,18 @@ class ModulePublisher: ...@@ -825,16 +825,18 @@ class ModulePublisher:
self.validate(groups,realm) self.validate(groups,realm)
# Attempt to start a transaction: # Attempt to start a transaction:
try: try: transaction=get_transaction()
transaction=get_transaction() except: transaction=None
if transaction is not None:
info="\t" + self.env('PATH_INFO') info="\t" + self.env('PATH_INFO')
try:
u=self.request['AUTHENTICATED_USER'] u=self.request['AUTHENTICATED_USER']
try: u="%s.%s" % (u, self.request['session__domain']) try: u="%s.%s" % (u, self.request['session__domain'])
except: pass except: pass
try: info=u+info try: info=u+info
except: pass except: pass
except: pass
transaction.begin(info) transaction.begin(info)
except: transaction=None
# Now get object meta-data to decide if and how it should be # Now get object meta-data to decide if and how it should be
# called: # called:
...@@ -1621,6 +1623,10 @@ def publish_module(module_name, ...@@ -1621,6 +1623,10 @@ def publish_module(module_name,
# #
# $Log: Publish.py,v $ # $Log: Publish.py,v $
# Revision 1.44 1997/06/13 16:02:10 jim
# Fixed bug in computation of transaction info that made user
# authentication required.
#
# Revision 1.43 1997/05/14 15:07:22 jim # Revision 1.43 1997/05/14 15:07:22 jim
# Added session domain to user id, for generating session info. # Added session domain to user id, for generating session info.
# #
......
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