Menu

#3 Workitem should inherit SimpleItem

open
nobody
None
5
2002-03-27
2002-03-27
No

workitem.py should inherit from OFS.SimpleItem
instead of just Persistent. This allows
easy access to attributes of workitem objects
(in my case I just wanted to access the id
of a workitem, and wanted to add support
for the getId() method).

2c2
< from Globals import Persistent
---
> from OFS.SimpleItem import SimpleItem
4c4
< class workitem(Persistent):
---
> class workitem(SimpleItem):

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.