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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
7587f7df
Commit
7587f7df
authored
Apr 28, 2022
by
Jérome Perrin
Committed by
Cédric Le Ninivin
May 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message: drop load/dump methods
parent
4a7790cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
product/ERP5Type/Message.py
product/ERP5Type/Message.py
+0
-19
No files found.
product/ERP5Type/Message.py
View file @
7587f7df
...
@@ -81,7 +81,6 @@ if 1: # BBB
...
@@ -81,7 +81,6 @@ if 1: # BBB
getGlobalTranslationService
=
GlobalTranslationService
getGlobalTranslationService
=
GlobalTranslationService
from
Products.ERP5Type
import
Globals
from
Products.ERP5Type
import
Globals
from
cPickle
import
dumps
,
loads
from
string
import
Template
from
string
import
Template
from
base64
import
b64encode
,
b64decode
from
base64
import
b64encode
,
b64decode
...
@@ -102,24 +101,6 @@ class Message(Persistent):
...
@@ -102,24 +101,6 @@ class Message(Persistent):
default
=
message
default
=
message
self
.
default
=
default
self
.
default
=
default
security
.
declarePublic
(
'dump'
)
def
dump
(
self
):
"""
Return a pickle version of the object
"""
return
b64encode
(
dumps
(
self
,
2
))
security
.
declarePublic
(
'load'
)
def
load
(
self
,
string
):
"""
Get properties from pickle version
"""
o
=
loads
(
b64decode
(
string
))
self
.
message
=
o
.
message
self
.
domain
=
o
.
domain
self
.
mapping
=
o
.
mapping
self
.
default
=
o
.
default
def
translate
(
self
):
def
translate
(
self
):
"""
"""
Return the translated message. If the original is a string object,
Return the translated message. If the original is a string object,
...
...
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