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
aa3e9a03
Commit
aa3e9a03
authored
Jan 26, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge from branch
parent
d7105d0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+2
-7
No files found.
lib/python/OFS/SimpleItem.py
View file @
aa3e9a03
...
...
@@ -89,8 +89,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.8
4 2001/01/25 17:43:41
brian Exp $'''
__version__
=
'$Revision: 1.8
4
$'
[
11
:
-
2
]
$Id: SimpleItem.py,v 1.8
5 2001/01/26 16:02:45
brian Exp $'''
__version__
=
'$Revision: 1.8
5
$'
[
11
:
-
2
]
import
ts_regex
,
sys
,
Globals
,
App
.
Management
,
Acquisition
,
App
.
Undo
import
AccessControl.Role
,
AccessControl
.
Owned
,
App
.
Common
...
...
@@ -140,11 +140,6 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
return
self
.
__name__
raise
AttributeError
,
'This object has no id'
def
_setId
(
self
,
id
):
if
hasattr
(
self
,
'id'
)
and
callable
(
self
.
id
):
raise
ValueError
,
'This object has an id method; id cannot be set'
self
.
id
=
id
# Alias id to __name__, which will make tracebacks a good bit nicer:
__name__
=
ComputedAttribute
(
lambda
self
:
self
.
getId
())
...
...
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