Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
62fbb757
Commit
62fbb757
authored
Apr 02, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use C validate method.
parent
ae23306e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+6
-4
No files found.
lib/python/OFS/Document.py
View file @
62fbb757
"""Document object"""
__version__
=
'$Revision: 1.4
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
9
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
...
@@ -8,9 +8,11 @@ from AccessControl.Role import RoleManager
from
SimpleItem
import
Item_w__name__
from
Acquisition
import
Explicit
import
regex
,
Globals
,
sys
import
cDocumentTemplate
class
Document
(
HTML
,
Explicit
,
RoleManager
,
Item_w__name__
):
class
Document
(
cDocumentTemplate
.
cDocument
,
HTML
,
Explicit
,
RoleManager
,
Item_w__name__
,
):
""" """
meta_type
=
'Document'
icon
=
'p_/doc'
...
...
@@ -102,7 +104,7 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
if
RESPONSE
is
None
:
return
r
return
decapitate
(
r
,
RESPONSE
)
def
validate
(
self
,
inst
,
parent
,
name
,
value
,
md
):
def
old
validate
(
self
,
inst
,
parent
,
name
,
value
,
md
):
if
hasattr
(
value
,
'__roles__'
):
roles
=
value
.
__roles__
elif
inst
is
parent
:
...
...
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