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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
f5beb489
Commit
f5beb489
authored
Apr 18, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Constant.PropertyGetter a new style class
parent
14a90122
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/Accessor/Constant.py
product/ERP5Type/Accessor/Constant.py
+2
-2
No files found.
product/ERP5Type/Accessor/Constant.py
View file @
f5beb489
...
...
@@ -32,7 +32,7 @@ from Accessor import Accessor
# Creation of default constructor
class
func_code
:
pass
class
PropertyGetter
:
class
PropertyGetter
(
object
)
:
"""
This is class is mostly used in order to handle compatibility
issues when we wish to make a property a method. For instance,
...
...
@@ -43,7 +43,7 @@ class PropertyGetter:
func_code
.
co_argcount
=
0
func_defaults
=
()
def
__init__
(
self
,
id
,
value
=
None
):
def
__init__
(
self
,
id
=
None
,
value
=
None
):
self
.
_id
=
id
self
.
__name__
=
id
self
.
value
=
value
...
...
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