Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
4855fd6b
Commit
4855fd6b
authored
May 29, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not acquire guid.
Found by random code reading.
parent
0f060066
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+2
-2
No files found.
product/ERP5Type/Base.py
View file @
4855fd6b
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment