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
f2b9b795
Commit
f2b9b795
authored
Nov 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of cancel handling and, therefore the old dialog.
parent
42a2daa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+3
-7
No files found.
lib/python/OFS/Document.py
View file @
f2b9b795
"""Document object"""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
Globals
import
HTML
,
HTMLFile
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
from
AccessControl.Role
import
RoleManager
import
SimpleItem
,
regex
...
...
@@ -72,10 +72,6 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__):
return
self
.
manage_editForm
(
self
,
REQUEST
,
title
=
title
,
__str__
=
data
,
acl_type
=
acl_type
,
acl_roles
=
acl_roles
,
dtpref_cols
=
cols
,
dtpref_rows
=
rows
)
if
SUBMIT
==
'Cancel'
:
return
MessageDialog
(
title
=
'Changes Cancelled'
,
message
=
'Your changes have been discarded'
,
action
=
'%s/manage_main'
%
REQUEST
[
'URL2'
])
self
.
title
=
title
self
.
_setRoles
(
acl_type
,
acl_roles
)
...
...
@@ -91,7 +87,7 @@ the <!--#var title_and_id--> Folder.</P>
class
DocumentHandler
:
"""Document object handler mixin"""
meta_types
=
({
'name'
:
'Document'
,
'action'
:
'manage_addDocumentForm'
},)
#
meta_types=({'name':'Document', 'action':'manage_addDocumentForm'},)
manage_addDocumentForm
=
HTMLFile
(
'OFS/documentAdd'
)
...
...
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