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
Xiaowu Zhang
erp5
Commits
19a2dfcd
Commit
19a2dfcd
authored
Sep 25, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type: a missing docstrings on text_content_history
parent
4427a1ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
product/ERP5Type/mixin/text_content_history.py
product/ERP5Type/mixin/text_content_history.py
+6
-2
No files found.
product/ERP5Type/mixin/text_content_history.py
View file @
19a2dfcd
...
...
@@ -32,12 +32,16 @@ from Products.ERP5Type import Permissions
class
TextContentHistoryMixin
:
"""Mixin that provides access to history of edit of the text content property.
To be used with erp5_code_mirror
"""
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'getTextContentHistoryRevisionDictList'
)
def
getTextContentHistoryRevisionDictList
(
self
,
limit
=
100
):
"""
TODO
"""
Returns the history of edition as a list of dictionnaries.
"""
history_dict_list
=
self
.
_p_jar
.
db
().
history
(
self
.
_p_oid
,
size
=
limit
)
if
history_dict_list
is
None
:
...
...
@@ -66,7 +70,7 @@ class TextContentHistoryMixin:
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'getTextContentHistory'
)
def
getTextContentHistory
(
self
,
key
):
"""
TODO
"""
Returns the text content of a previous version of the document.
"""
from
struct
import
pack
from
OFS.History
import
historicalRevision
...
...
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