*** ../mod_python-3.1.3/lib/python/mod_python/publisher.py Tue Feb 17 06:47:27 2004 --- lib/python/mod_python/publisher.py Sun Jan 30 15:42:18 2005 *************** *** 258,272 **** (period) to find the last one we're looking for. """ ! for obj_str in object_str.split('.'): ! obj = getattr(obj, obj_str) ! # object cannot be a module ! if type(obj) == ModuleType: raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND ! realm, user, passwd = process_auth(req, obj, realm, ! user, passwd) return obj --- 258,284 ---- (period) to find the last one we're looking for. """ ! parts = object_str.split('.') ! for n in range(len(parts)): ! ! obj = getattr(obj, parts[n]) ! obj_type = type(obj) ! ! # object cannot be a module or a class ! if obj_type in [ClassType, ModuleType]: raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND ! if n < (len(parts)-1): ! ! # all but the last object ... ! ! # ...must be instance ! if obj_type != InstanceType: ! raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND ! ! realm, user, passwd = process_auth(req, obj, realm, ! user, passwd) return obj