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