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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
37266051
Commit
37266051
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
5c36a25d
Changes
1
Hide 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 @
37266051
...
...
@@ -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