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
4a426f76
Commit
4a426f76
authored
Jan 18, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a simple item specific objectValues, etc., to prevent recursion
in tree tags.
parent
521ddffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+10
-3
No files found.
lib/python/OFS/SimpleItem.py
View file @
4a426f76
...
...
@@ -89,18 +89,19 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.2
7 1998/12/04 20:15:30 jim
Exp $'''
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.2
8 1999/01/18 15:30:01 brian
Exp $'''
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
import
regex
,
sys
,
Globals
,
App
.
Management
from
DateTime
import
DateTime
from
CopySupport
import
CopySource
from
string
import
join
,
lower
from
types
import
InstanceType
,
StringType
from
webdav.resource
import
Resource
HTML
=
Globals
.
HTML
class
Item
(
CopySource
,
App
.
Management
.
Tabs
):
class
Item
(
CopySource
,
App
.
Management
.
Tabs
,
Resource
):
"""A simple Principia object. Not Folderish."""
isPrincipiaFolderish
=
0
isTopLevelPrincipiaApplicationObject
=
0
...
...
@@ -214,6 +215,12 @@ class Item(CopySource, App.Management.Tabs):
" "
raise
'Redirect'
,
"%s/manage_main"
%
URL1
# This keeps simple items from acquiring their parents
# objectValues, etc., when used in simple tree tags.
def
objectValues
(
self
,
spec
=
None
):
return
()
objectIds
=
objectItems
=
objectValues
class
Item_w__name__
(
Item
):
"""Mixin class to support common name/id functions"""
...
...
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