Datasets:
File size: 296 Bytes
5eb110b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from zope.interface import Interface, Attribute, implementer
class IEmployee(Interface):
name = Attribute("Name of employee")
def do(work):
"""Do some work"""
@implementer(IEmployee)
class Employee:
name = 'Anonymous'
def do(self, work):
return work.start()
|