Commit aa3e9a03 authored by 's avatar

merge from branch

parent d7105d0c
......@@ -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.84 2001/01/25 17:43:41 brian Exp $'''
__version__='$Revision: 1.84 $'[11:-2]
$Id: SimpleItem.py,v 1.85 2001/01/26 16:02:45 brian Exp $'''
__version__='$Revision: 1.85 $'[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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment