Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
40220b0b
Commit
40220b0b
authored
Jul 10, 2015
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type: id_as_reference.__migrate is now dead code, remove it
parent
e58efba6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
product/ERP5Type/id_as_reference.py
product/ERP5Type/id_as_reference.py
+0
-16
No files found.
product/ERP5Type/id_as_reference.py
View file @
40220b0b
...
@@ -44,22 +44,6 @@ def IdAsReferenceMixin(suffix):
...
@@ -44,22 +44,6 @@ def IdAsReferenceMixin(suffix):
def
cb_isMoveable
(
self
):
def
cb_isMoveable
(
self
):
return
self
.
cb_userHasCopyOrMovePermission
()
return
self
.
cb_userHasCopyOrMovePermission
()
def
__migrate
(
self
):
if
self
.
id
[
suffix_index
:]
!=
suffix
:
new_id
=
self
.
__dict__
.
get
(
'default_reference'
)
+
suffix
parent
=
self
.
getParentValue
()
if
parent
.
has_key
(
new_id
):
LOG
(
"IdAsReferenceMixin"
,
WARNING
,
"Skipping migration of %r in %r"
" property sheet, due to ID conflict"
%
(
new_id
,
parent
.
getId
()))
else
:
try
:
self
.
setId
(
new_id
)
del
self
.
default_reference
except
ActivityPendingError
:
LOG
(
"IdAsReferenceMixin"
,
WARNING
,
"Skipping migration of %r in %r"
" property sheet, due to pending activities"
%
(
new_id
,
parent
.
getId
()))
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getIdAsReferenceSuffix'
)
'getIdAsReferenceSuffix'
)
@
staticmethod
@
staticmethod
...
...
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