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
caaf835f
Commit
caaf835f
authored
May 10, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidated management functions related to tabs/views (from here to)
App.Management.Tabs.
parent
a184cb88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+5
-24
No files found.
lib/python/OFS/SimpleItem.py
View file @
caaf835f
...
@@ -89,15 +89,15 @@ Aqueduct database adapters, etc.
...
@@ -89,15 +89,15 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
This module can also be used as a simple template for implementing new
item types.
item types.
$Id: SimpleItem.py,v 1.5
0 1999/05/07 19:54:38 kl
m Exp $'''
$Id: SimpleItem.py,v 1.5
1 1999/05/10 16:32:04 ji
m Exp $'''
__version__
=
'$Revision: 1.5
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
import
regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
from
webdav.Resource
import
Resource
from
webdav.Resource
import
Resource
from
ExtensionClass
import
Base
from
ExtensionClass
import
Base
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
CopySupport
import
CopySource
from
CopySupport
import
CopySource
from
string
import
join
,
lower
,
find
from
string
import
join
,
lower
,
find
,
split
from
types
import
InstanceType
,
StringType
from
types
import
InstanceType
,
StringType
from
ComputedAttribute
import
ComputedAttribute
from
ComputedAttribute
import
ComputedAttribute
...
@@ -138,29 +138,9 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
...
@@ -138,29 +138,9 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
# Default propertysheet info:
# Default propertysheet info:
__propsets__
=
()
__propsets__
=
()
__ac_permissions__
=
(
(
'View management screens'
,
(
'manage_workspace'
,)),
)
manage_info
=
Globals
.
HTMLFile
(
'App/manage_info'
)
manage_info
=
Globals
.
HTMLFile
(
'App/manage_info'
)
manage_options
=
()
manage_options
=
()
def
manage_workspace
(
self
,
REQUEST
):
"""Dispatch to first interface in manage_options
"""
try
:
m
=
self
.
manage_options
[
0
][
'action'
]
if
m
==
'manage_workspace'
:
raise
TypeError
except
:
return
'This object has no management interface'
if
find
(
m
,
'/'
):
raise
'Redirect'
,
(
"%s/%s"
%
(
REQUEST
[
'URL1'
],
m
))
return
getattr
(
self
,
m
)(
self
,
REQUEST
)
def
title_or_id
(
self
,
st
=
type
(
''
)):
def
title_or_id
(
self
,
st
=
type
(
''
)):
"""
"""
Utility that returns the title if it is not blank and the id
Utility that returns the title if it is not blank and the id
...
@@ -339,7 +319,8 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
...
@@ -339,7 +319,8 @@ class Item(Base, Resource, CopySource, App.Management.Tabs):
if
not
r
!=
(
not
wannaBe
):
REQUEST
.
response
.
notFoundError
()
if
not
r
!=
(
not
wannaBe
):
REQUEST
.
response
.
notFoundError
()
return
r
return
r
Globals
.
default__class_init__
(
Item
)
Globals
.
default__class_init__
(
Item
)
...
...
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