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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
be0b1907
Commit
be0b1907
authored
Sep 19, 2019
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "WIP"
This reverts commit
bcd22bf2
.
parent
6bd69911
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
27 deletions
+0
-27
product/CMFCategory/CategoryTool.py
product/CMFCategory/CategoryTool.py
+0
-12
product/ERP5Type/Accessor/Alias.py
product/ERP5Type/Accessor/Alias.py
+0
-3
product/ERP5Type/Accessor/Value.py
product/ERP5Type/Accessor/Value.py
+0
-8
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+0
-4
No files found.
product/CMFCategory/CategoryTool.py
View file @
be0b1907
...
...
@@ -624,18 +624,6 @@ class CategoryTool(BaseTool):
to filter the object on
"""
"""
self = <erp5.portal_type.Category Tool object at 0x7f19b1b14758 oid 0xd7 in <Connection at 7f19b6084f10>>
context = <erp5.portal_type.Person object at 0x7f19b0065f50>
base_category_list = subordination
category_list = <erp5.portal_type.Organisation object at 0x7f19ab059d70>
base = 0
keep_default = 0
spec = ()
filter = None
checked_permission = None
kw = {'portal_type': ()}
"""
# LOG("CategoryTool, setCategoryMembership", 0 ,
# 'category_list: %s' % str(category_list))
# XXX We must use filters in the future
...
...
product/ERP5Type/Accessor/Alias.py
View file @
be0b1907
...
...
@@ -27,7 +27,6 @@
##############################################################################
from
Base
import
Setter
from
zLOG
import
LOG
# Creation of default constructor
class
func_code
:
pass
...
...
@@ -54,8 +53,6 @@ class Reindex(Setter):
self
.
_accessor_id
=
accessor_id
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
LOG
(
"NICOLAS-Alias"
,
0
,
instance
,
args
,
kw
)
instance
.
log
(
'NICOLAS log: %s %s %s %s'
%
(
self
,
instance
,
args
,
kw
))
method
=
getattr
(
instance
,
self
.
_accessor_id
)
modified_object_list
=
method
(
*
args
,
**
kw
)
# private methods can return a list of modified objects that this
...
...
product/ERP5Type/Accessor/Value.py
View file @
be0b1907
...
...
@@ -48,8 +48,6 @@ class SetSetter(BaseSetter):
self
.
_warning
=
warning
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
if
instance
.
getTitle
()
==
'NW'
:
import
pdb
;
pdb
.
set_trace
()
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Setter Id:"
,
0
,
self
.
_id
)
instance
.
_setValue
(
self
.
_key
,
set
(
args
[
0
]),
...
...
@@ -69,8 +67,6 @@ class ListSetter(SetSetter):
_need__name__
=
1
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
#if Base not in value.__class__.__mro__:
# raise TypeError('Value setter only takes ERP5 objects as parameters')
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Setter Id:"
,
0
,
self
.
_id
)
instance
.
_setValue
(
self
.
_key
,
args
[
0
],
...
...
@@ -92,7 +88,6 @@ class DefaultSetter(SetSetter):
_need__name__
=
1
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
LOG
(
"NICOLAS"
,
0
,
instance
,
*
args
,
**
kw
)
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Setter Id:"
,
0
,
self
.
_id
)
instance
.
_setDefaultValue
(
self
.
_key
,
args
[
0
],
...
...
@@ -233,7 +228,6 @@ class UidSetSetter(BaseSetter):
self
.
_warning
=
warning
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
LOG
(
"NICOLAS"
,
0
,
instance
,
*
args
,
**
kw
)
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Getter Id:"
,
0
,
self
.
_id
)
instance
.
_setValueUidList
(
self
.
_key
,
set
(
args
[
0
]),
...
...
@@ -250,7 +244,6 @@ class UidListSetter(UidSetSetter):
_need__name__
=
1
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
LOG
(
"NICOLAS"
,
0
,
instance
,
*
args
,
**
kw
)
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Getter Id:"
,
0
,
self
.
_id
)
instance
.
_setValueUidList
(
self
.
_key
,
args
[
0
],
...
...
@@ -270,7 +263,6 @@ class UidDefaultSetter(UidSetSetter):
_need__name__
=
1
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
LOG
(
"NICOLAS"
,
0
,
instance
,
*
args
,
**
kw
)
if
self
.
_warning
:
LOG
(
"ERP5Type Deprecated Getter Id:"
,
0
,
self
.
_id
)
instance
.
_setDefaultValueUid
(
self
.
_key
,
args
[
0
],
...
...
product/ERP5Type/Base.py
View file @
be0b1907
...
...
@@ -29,7 +29,6 @@
from
struct
import
unpack
from
copy
import
copy
import
inspect
import
warnings
import
types
import
thread
,
threading
...
...
@@ -1834,8 +1833,6 @@ class Base( CopyContainer,
# categories
def
_setValue
(
self
,
id
,
target
,
spec
=
(),
filter
=
None
,
portal_type
=
(),
keep_default
=
1
,
checked_permission
=
None
):
from
zLOG
import
LOG
LOG
(
"NICOLAS-Base_setValue"
,
0
,
id
,
target
)
getRelativeUrl
=
self
.
getPortalObject
().
portal_url
.
getRelativeUrl
def
cleanupCategory
(
path
):
...
...
@@ -2122,7 +2119,6 @@ class Base( CopyContainer,
# Private accessors for the implementation of categories
def
_setCategoryMembership
(
self
,
*
args
,
**
kw
):
self
.
log
(
'NICOLAS_setCategoryMembership'
)
self
.
_getCategoryTool
().
_setCategoryMembership
(
self
,
*
args
,
**
kw
)
#self.activate().edit() # Do nothing except call workflow method
# XXX This is a problem - it is used to circumvent a lack of edit
...
...
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