def initialize(self, values): """ We check here form values to see if they are valid. Note that we check them through FROM variables, that already has been initialized by __init__ method of base class, before invoking this. """ if values: tools.checkValidBasename(self.baseName.value, self.lenName.num())
def initialize(self, values): """ We check here form values to see if they are valid. Note that we check them throught FROM variables, that already has been initialized by __init__ method of base class, before invoking this. """ if values: tools.checkValidBasename(self.baseName.value, self.lenName.num()) if int(self.memory.value) < 256: raise Service.ValidationException( _('The minimum allowed memory is 256 Mb'))