config.py (2923:db8a876258df) config.py (3092:7ed45e2f407e)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 652 unchanged lines hidden (view full) ---

661 while not done:
662 obj = obj._parent
663 if not obj:
664 break
665 result, done = self.find(obj)
666
667 if not done:
668 raise AttributeError, \
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 652 unchanged lines hidden (view full) ---

661 while not done:
662 obj = obj._parent
663 if not obj:
664 break
665 result, done = self.find(obj)
666
667 if not done:
668 raise AttributeError, \
669 "Can't resolve proxy '%s' from '%s'" % \
670 (self.path(), base.path())
669 "Can't resolve proxy '%s' of type '%s' from '%s'" % \
670 (self.path(), self._pdesc.ptype_str, base.path())
671
672 if isinstance(result, BaseProxy):
673 if result == self:
674 raise RuntimeError, "Cycle in unproxy"
675 result = result.unproxy(obj)
676
677 return self._mulcheck(result)
678

--- 849 unchanged lines hidden ---
671
672 if isinstance(result, BaseProxy):
673 if result == self:
674 raise RuntimeError, "Cycle in unproxy"
675 result = result.unproxy(obj)
676
677 return self._mulcheck(result)
678

--- 849 unchanged lines hidden ---