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
f8a09099
Commit
f8a09099
authored
Mar 25, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed manage_PropertiesForm to manage.
parent
2b2bf4c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+11
-8
No files found.
lib/python/OFS/PropertySheets.py
View file @
f8a09099
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
,
Globals
from
ZPublisher.Converters
import
type_converters
...
...
@@ -462,7 +462,10 @@ class PropertySheet(Persistent, Implicit):
# Web interface
manage_propertiesForm
=
HTMLFile
(
'properties'
,
globals
())
manage
=
HTMLFile
(
'properties'
,
globals
())
def
manage_propertiesForm
(
self
,
URL1
):
" "
raise
'Redirect'
,
URL1
+
'/manage'
def
manage_addProperty
(
self
,
id
,
value
,
type
,
REQUEST
=
None
):
"""Add a new property via the web. Sets a new property with
...
...
@@ -471,7 +474,7 @@ class PropertySheet(Persistent, Implicit):
value
=
type_converters
[
type
](
value
)
self
.
_setProperty
(
id
,
value
,
type
)
if
REQUEST
is
not
None
:
return
self
.
manage
_propertiesForm
(
self
,
REQUEST
)
return
self
.
manage
(
self
,
REQUEST
)
def
manage_changeProperties
(
self
,
REQUEST
=
None
,
**
kw
):
"""Change existing object properties by passing either a mapping
...
...
@@ -490,7 +493,7 @@ class PropertySheet(Persistent, Implicit):
return
MessageDialog
(
title
=
'Success!'
,
message
=
'Your changes have been saved.'
,
action
=
'manage
_propertiesForm
'
)
action
=
'manage'
)
def
manage_editProperties
(
self
,
REQUEST
):
"""Edit object properties via the web."""
...
...
@@ -501,7 +504,7 @@ class PropertySheet(Persistent, Implicit):
return
MessageDialog
(
title
=
'Success!'
,
message
=
'Your changes have been saved'
,
action
=
'manage
_propertiesForm
'
)
action
=
'manage'
)
def
manage_delProperties
(
self
,
ids
=
None
,
REQUEST
=
None
):
"""Delete one or more properties specified by 'ids'."""
...
...
@@ -509,11 +512,11 @@ class PropertySheet(Persistent, Implicit):
return
MessageDialog
(
title
=
'No property specified'
,
message
=
'No properties were specified!'
,
action
=
'./manage
_propertiesForm
'
,)
action
=
'./manage'
,)
for
id
in
ids
:
self
.
_delProperty
(
id
)
if
REQUEST
is
not
None
:
return
self
.
manage
_propertiesForm
(
self
,
REQUEST
)
return
self
.
manage
(
self
,
REQUEST
)
class
Virtual
:
...
...
@@ -684,7 +687,7 @@ class PropertySheets(Implicit, App.Management.Tabs):
# Management interface:
manage
_propertiesForm
=
Globals
.
HTMLFile
(
'propertysheets'
,
globals
())
manage
=
Globals
.
HTMLFile
(
'propertysheets'
,
globals
())
def
manage_options
(
self
):
"""Return a manage option data structure for me instance
...
...
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