Commit 4855fd6b authored by Vincent Pelletier's avatar Vincent Pelletier

Do not acquire guid.

Found by random code reading.
parent 0f060066
......@@ -2855,7 +2855,7 @@ class Base( CopyContainer,
full dns name + portal_name + uid + random
the guid should be defined only one time for each object
"""
if not hasattr(self, 'guid'):
if self.getGuid() is None:
guid = ''
# Set the dns name
guid += gethostbyaddr(gethostname())[0]
......@@ -2869,7 +2869,7 @@ class Base( CopyContainer,
"""
Get the global and unique id
"""
return getattr(self,'guid',None)
return getattr(aq_base(self), 'guid', None)
# Type Casting
def _getTypeBasedMethod(self, method_id, fallback_script_id=None,
......
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