[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/vproposal.py
added getter and setter to all attributes
Volker Bachschneider
vbachs at dzug.org
Wed Oct 13 08:27:47 EDT 2004
Log message for revision 28069:
added getter and setter to all attributes
Changed:
U zversioning/trunk/src/versioning/demo/vproposal.py
-=-
Modified: zversioning/trunk/src/versioning/demo/vproposal.py
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-13 12:02:04 UTC (rev 28068)
+++ zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-13 12:27:45 UTC (rev 28069)
@@ -28,4 +28,45 @@
title=property(getTitle,setTitle)
-
\ No newline at end of file
+ def setUseCase(self, usecase):
+ """Set proposal usecase."""
+ #if usecase == 'foo': usecase = "bar" #a simple precondition
+ self.__dict__['usecase'] = usecase
+
+ def getUseCase(self):
+ """Get proposal usecase."""
+ return self.__dict__['usecase']
+
+ usecase=property(getUseCase,setUseCase)
+
+ def setConcept(self, concept):
+ """Set proposal concept."""
+ self.__dict__['concept'] = concept
+
+ def getConcept(self):
+ """Get proposal concept."""
+ return self.__dict__['concept']
+
+ concept=property(getConcept,setConcept)
+
+ def setTodo(self, todo):
+ """Set proposal todo."""
+ self.__dict__['todo'] = todo
+
+ def getTodo(self):
+ """Get proposal todo."""
+ return self.__dict__['todo']
+
+ todo=property(getTodo,setTodo)
+
+ def setIssues(self, issues):
+ """Set proposal issues."""
+ self.__dict__['issues'] = issues
+
+ def getIssues(self):
+ """Get proposal issues."""
+ return self.__dict__['issues']
+
+ issues=property(getIssues,setIssues)
+
+
More information about the Zope-CVS
mailing list