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
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
Paul Graydon
erp5
Commits
2c983927
Commit
2c983927
authored
Apr 20, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: Accessors: func_code => __code__.
parent
75ac38de
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
189 additions
and
189 deletions
+189
-189
product/ERP5Form/PreferenceTool.py
product/ERP5Form/PreferenceTool.py
+4
-4
product/ERP5Type/Accessor/Acquired.py
product/ERP5Type/Accessor/Acquired.py
+8
-8
product/ERP5Type/Accessor/AcquiredProperty.py
product/ERP5Type/Accessor/AcquiredProperty.py
+12
-12
product/ERP5Type/Accessor/Alias.py
product/ERP5Type/Accessor/Alias.py
+9
-9
product/ERP5Type/Accessor/Base.py
product/ERP5Type/Accessor/Base.py
+12
-12
product/ERP5Type/Accessor/Category.py
product/ERP5Type/Accessor/Category.py
+20
-20
product/ERP5Type/Accessor/Constant.py
product/ERP5Type/Accessor/Constant.py
+8
-8
product/ERP5Type/Accessor/Content.py
product/ERP5Type/Accessor/Content.py
+20
-20
product/ERP5Type/Accessor/ContentProperty.py
product/ERP5Type/Accessor/ContentProperty.py
+24
-24
product/ERP5Type/Accessor/List.py
product/ERP5Type/Accessor/List.py
+16
-16
product/ERP5Type/Accessor/Related.py
product/ERP5Type/Accessor/Related.py
+8
-8
product/ERP5Type/Accessor/RelatedValue.py
product/ERP5Type/Accessor/RelatedValue.py
+16
-16
product/ERP5Type/Accessor/Translation.py
product/ERP5Type/Accessor/Translation.py
+16
-16
product/ERP5Type/Accessor/Value.py
product/ERP5Type/Accessor/Value.py
+8
-8
product/ERP5Type/Accessor/WorkflowState.py
product/ERP5Type/Accessor/WorkflowState.py
+8
-8
No files found.
product/ERP5Form/PreferenceTool.py
View file @
2c983927
...
...
@@ -56,10 +56,10 @@ class func_code: pass
class
PreferenceMethod
(
Method
):
""" A method object that lookup the attribute on preferences. """
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
attribute
,
default
):
self
.
__name__
=
self
.
_preference_getter
=
attribute
...
...
product/ERP5Type/Accessor/Acquired.py
View file @
2c983927
...
...
@@ -38,10 +38,10 @@ class DefaultGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
default
,
acquisition_base_category
,
...
...
@@ -125,10 +125,10 @@ class ListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
default
,
acquisition_base_category
,
...
...
product/ERP5Type/Accessor/AcquiredProperty.py
View file @
2c983927
...
...
@@ -41,10 +41,10 @@ class Getter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
1
func_defaults
=
None
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
None
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
,
acquired_property
,
acquisition_base_category
,
...
...
@@ -127,10 +127,10 @@ class Setter(BaseSetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
2
func_defaults
=
None
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
None
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
,
acquired_property
,
acquisition_base_category
,
...
...
@@ -209,10 +209,10 @@ class Tester(BaseTester):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
,
acquired_property
,
acquisition_base_category
,
...
...
product/ERP5Type/Accessor/Alias.py
View file @
2c983927
...
...
@@ -43,10 +43,10 @@ class Reindex(Setter):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
)
# XXX - This part should be configurable at instanciation
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
)
# XXX - This part should be configurable at instanciation
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
accessor_id
):
self
.
_id
=
id
...
...
@@ -73,16 +73,16 @@ class Dummy(Reindex):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
accessor_id
):
self
.
_id
=
id
self
.
__name__
=
id
self
.
_accessor_id
=
accessor_id
# self.func_code = getattr(instance, self._accessor_id).func_code
# self.
__code__ =
func_code = getattr(instance, self._accessor_id).func_code
def
__call__
(
self
,
instance
,
*
args
,
**
kw
):
method
=
getattr
(
instance
,
self
.
_accessor_id
)
...
...
product/ERP5Type/Accessor/Base.py
View file @
2c983927
...
...
@@ -52,10 +52,10 @@ class Setter(Method):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -149,10 +149,10 @@ class Getter(Method):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
default
=
None
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -211,10 +211,10 @@ class Tester(Method):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
storage_id
=
None
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/Category.py
View file @
2c983927
...
...
@@ -41,10 +41,10 @@ class ListSetter(BaseSetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'category'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'category'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
@@ -71,10 +71,10 @@ class DefaultSetter(BaseSetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'category'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'category'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
@@ -119,10 +119,10 @@ class DefaultGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
@@ -143,10 +143,10 @@ class ListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
@@ -178,10 +178,10 @@ class ItemListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/Constant.py
View file @
2c983927
...
...
@@ -39,10 +39,10 @@ class PropertyGetter:
issues when we wish to make a property a method. For instance,
we would like to change from isIndexable=1 to a method isIndexable().
"""
func_code
=
func_code
()
func_code
.
co_varnames
=
()
func_code
.
co_argcount
=
0
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
()
__code__
.
co_argcount
=
0
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
value
=
None
):
self
.
_id
=
id
...
...
@@ -84,10 +84,10 @@ class Getter(Accessor):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
value
=
None
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/Content.py
View file @
2c983927
...
...
@@ -47,10 +47,10 @@ class ValueGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
self
.
_id
=
id
...
...
@@ -97,10 +97,10 @@ class ValueListGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
self
.
_id
=
id
...
...
@@ -134,10 +134,10 @@ class Getter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
self
.
_id
=
id
...
...
@@ -180,10 +180,10 @@ class ListGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
portal_type
=
None
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -216,10 +216,10 @@ class Tester(Method):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
storage_id
=
None
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/ContentProperty.py
View file @
2c983927
...
...
@@ -50,10 +50,10 @@ class ValueGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
...
...
@@ -93,10 +93,10 @@ class ValueListGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
...
...
@@ -132,10 +132,10 @@ class Getter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
,
default
=
None
):
...
...
@@ -175,10 +175,10 @@ class Setter(Base.Setter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
):
...
...
@@ -237,10 +237,10 @@ class ListGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
):
...
...
@@ -275,10 +275,10 @@ class Tester(Method):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
acquired_property
,
portal_type
=
None
,
storage_id
=
None
):
...
...
product/ERP5Type/Accessor/List.py
View file @
2c983927
...
...
@@ -47,10 +47,10 @@ class DefaultSetter(Base.Setter):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -111,10 +111,10 @@ class SetSetter(Base.Setter):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -166,10 +166,10 @@ class DefaultGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
default
=
None
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -219,10 +219,10 @@ class ListGetter(Base.Getter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
_list_type_list
=
tuple
,
list
,
set
...
...
product/ERP5Type/Accessor/Related.py
View file @
2c983927
...
...
@@ -41,10 +41,10 @@ class DefaultGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
@@ -76,10 +76,10 @@ class ListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/RelatedValue.py
View file @
2c983927
...
...
@@ -41,10 +41,10 @@ class DefaultGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
"""
...
...
@@ -83,10 +83,10 @@ class ListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
"""
...
...
@@ -123,10 +123,10 @@ class DefaultPropertyGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
@@ -160,10 +160,10 @@ class PropertyListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/Translation.py
View file @
2c983927
...
...
@@ -43,10 +43,10 @@ class TranslatedPropertyGetter(BaseGetter):
Get the translated property
"""
# This can be called from the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_id
,
property_type
,
language
,
default
=
None
,
warning
=
0
):
self
.
_id
=
id
...
...
@@ -99,10 +99,10 @@ class PropertyTranslationDomainGetter(BaseGetter):
_need__name__
=
1
# This can be called from the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_type
,
default
=
None
,
storage_id
=
None
):
self
.
_id
=
id
...
...
@@ -160,10 +160,10 @@ class TranslationPropertySetter(Accessor.Accessor):
# Generic Definition of Method Object
# This is required to call the method form the Web
# More information at http://www.zope.org/Members/htrd/howto/FunctionTemplate
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'value'
)
func_code
.
co_argcount
=
2
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'value'
)
__code__
.
co_argcount
=
2
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_id
,
property_type
,
language
):
self
.
_id
=
id
...
...
@@ -223,10 +223,10 @@ class TranslatedPropertyTester(Method):
_need__name__
=
1
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
property_id
,
property_type
,
language
,
warning
=
0
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/Value.py
View file @
2c983927
...
...
@@ -109,10 +109,10 @@ class DefaultGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
@@ -140,10 +140,10 @@ class ListGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
# XXX This does not work yet completely in URL mode
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,
'args'
,
'kw'
)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
,
warning
=
0
):
self
.
_id
=
id
...
...
product/ERP5Type/Accessor/WorkflowState.py
View file @
2c983927
...
...
@@ -44,10 +44,10 @@ class Getter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
@@ -69,10 +69,10 @@ class TitleGetter(BaseGetter):
# Generic Definition of Method Object
# This is required to call the method form the Web
func_code
=
func_code
()
func_code
.
co_varnames
=
(
'self'
,)
func_code
.
co_argcount
=
1
func_defaults
=
()
__code__
=
func_code
=
func_code
()
__code__
.
co_varnames
=
(
'self'
,)
__code__
.
co_argcount
=
1
__defaults__
=
func_defaults
=
()
def
__init__
(
self
,
id
,
key
):
self
.
_id
=
id
...
...
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