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
75e7c3b4
Commit
75e7c3b4
authored
Jun 09, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare __slots__ .
Also, inherit from "object" as __slots__ are a new-style-class feature.
parent
c6fab535
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+19
-2
No files found.
product/CMFActivity/ActivityTool.py
View file @
75e7c3b4
...
...
@@ -438,7 +438,16 @@ Named Parameters: %r
def
getExecutionState
(
self
):
return
self
.
is_executed
class
Method
:
class
Method
(
object
):
__slots__
=
(
'__portal_activities'
,
'__passive_self'
,
'__activity'
,
'__active_process'
,
'__kw'
,
'__method_id'
,
'__request'
,
)
def
__init__
(
self
,
portal_activities
,
passive_self
,
activity
,
active_process
,
kw
,
method_id
,
request
):
self
.
__portal_activities
=
portal_activities
...
...
@@ -461,7 +470,15 @@ class Method:
allow_class
(
Method
)
class
ActiveWrapper
:
class
ActiveWrapper
(
object
):
__slots__
=
(
'__portal_activities'
,
'__passive_self'
,
'__activity'
,
'__active_process'
,
'__kw'
,
'__request'
,
)
# Shortcut security lookup (avoid calling __getattr__)
__parent__
=
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