# for testing
from Modeling.KeyValueCoding import KeyValueCoding
from Book import Book
class Writer(KeyValueCoding):
def __init__(self, firstName='John', lastName='Cleese', age=30,
bookName='Flying Circus Diary'):
self.lastName=lastName
self.firstName=firstName
self.age=age
self.book=Book(bookName)
self.boss=None
def setBoss(self, aBoss):
self.boss=aBoss
def __str__(self):
return '<'+self.firstName+' '+self.lastName+' ('+str(self.age)+') >'
__repr__=__str__
|