Ejemplo n.º 1
0
 def __init__(self, number):
     Decorator.__init__(self)
     self.description = "A bank account"
     #log area for already processed resources
     self.log_area = {}
     #should it mask Machine.tag? decorated.tag = number?
     self.number = number
     self.restricted = False
     self.average_credit = 0
 def __init__(self, client, number):
     Decorator.__init__(self)
     self.description = "A bank account"
     #log area for already processed resources
     self.log_area = {}
     #should it mask Machine.tag? decorated.tag = number?
     self.number = number
     self.balance = 0
     self.restricted = False
     self.average_credit = 0
     client |should| be_decorated_by(ClientDecorator)
     self.client = client
     BankAccountDecorator.active_accounts.append(self)
Ejemplo n.º 3
0
 def save(self, *args, **kwargs):
     super(BankAccountDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 4
0
 def save(self, *args, **kwargs):
     super(EmployeeDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
 def __init__(self, register):
     Decorator.__init__(self)
     self.description = "An employee with credit analysis skills"
     self.register = register
     self.loan_limit = 0
 def __init__(self):
     Decorator.__init__(self)
     self.description = "Supplies the basis for representing employes"
Ejemplo n.º 7
0
 def __init__(self):
     Decorator.__init__(self)
     self.description = "Supplies the basis for representing employes"
 def __init__(self):
     Decorator.__init__(self)
     self.description = "An employee with attendant skills"
 def __init__(self, register):
     Decorator.__init__(self)
     self.description = "An employee with credit analysis skills"
     self.register = register
     self.loan_limit = 0
Ejemplo n.º 10
0
 def save(self, *args, **kwargs):
     self.self_decorate()
     super(EmployeeDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 11
0
 def save(self, *args, **kwargs):
     self.self_decorate()
     super(CreditAnalystDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 12
0
 def __init__(self):
     Decorator.__init__(self)
     self.description = "An employee with attendant skills"
Ejemplo n.º 13
0
 def __init__(self):
     Decorator.__init__(self)
Ejemplo n.º 14
0
 def setUp(self):
     self.a_node = Decorable()
     self.a_decorator = Decorator()
Ejemplo n.º 15
0
 def save(self, *args, **kwargs):
     super(CreditAnalystDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 16
0
 def save(self, *args, **kwargs):
     self.self_decorate()
     super(ContactDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 17
0
 def __init__(self):
     Decorator.__init__(self)
Ejemplo n.º 18
0
 def save(self, *args, **kwargs):
     self.self_decorate()
     super(BankAccountDecorator, self).save(*args, **kwargs)
     Decorator.__init__(self)
Ejemplo n.º 19
0
 def __init__(self):
     Decorator.__init__(self)
     self.some_attrib = None
 def __init__(self):
     Decorator.__init__(self)
     self.description = "Supplies the basis for representing clients"
     self.accounts = []