23 Nov
2003
23 Nov
'03
7:25 p.m.
alice wrote at 2003-11-23 17:25 +0700:
... if (monkey_name == existing_monkeys[i]): if (container.monkey_name == password): ... The problem is: 'container.monkey_name'
If the script is run with monkey_name = Heidi. What we want is the file: container.Heidi
Use "getattr(container,monkey_name)", maybe with an optional (third) default value. -- Dieter