[Zope-CVS] CVS: Packages/JobBoardEx - Job.py:1.5
Jeremy Hylton
jeremy@zope.com
Wed, 20 Mar 2002 14:31:52 -0500
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv21699
Modified Files:
Job.py
Log Message:
Make id into a simple attribute.
summary.pt depends on the existence of an id attribute. It broke when
id became a property.
There is no current requirement to prevent id from being set more than
once.
=== Packages/JobBoardEx/Job.py 1.4 => 1.5 ===
self.contactURL = contactURL
self.contactEmail = contactEmail
- self.__id = None
+ self.id = None
self.state = JobState.PendingApproval
-
- def _get_id(self):
- return self.__id
-
- def _set_id(self, id):
- if self.__id is not None:
- raise ValueError("cannot change id once set")
- self.__id = id
-
- id = property(_get_id, _set_id,
- doc="Unique identifier within the job list.")
def approve(self):
"""Moves the job state to approved"""