Re: getattr problem

2009-12-02 Thread Bruno Desthuilliers
Victor Subervi wrote: (NB : answering to the OP - the post didn't show up on clpy) Hi; I have the following code that execute without a problem: Fine. But it fails to execute here - ImportError on the 3rd line ("options"), NameErrors on the 4th line ("addStore") and 5th line ("optionTables

Re: getattr problem

2009-12-01 Thread Victor Subervi
On Tue, Dec 1, 2009 at 3:17 PM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > Victor Subervi wrote: > >> Hi; >> I have the following code that execute without a problem: >> >> import sys,os >> sys.path.append(os.getcwd()) >> import options >> storesTables = [] >> junkStores = string.joi

Re: getattr problem

2009-12-01 Thread Jean-Michel Pichavant
Victor Subervi wrote: Hi; I have the following code that execute without a problem: import sys,os sys.path.append(os.getcwd()) import options storesTables = [] junkStores = string.join(addStore(), ', ') for table in optionsTables(): if table not in ('particulars', junkStores): storesTables

getattr problem

2009-12-01 Thread Victor Subervi
Hi; I have the following code that execute without a problem: import sys,os sys.path.append(os.getcwd()) import options storesTables = [] junkStores = string.join(addStore(), ', ') for table in optionsTables(): if table not in ('particulars', junkStores): storesTables.append(table) for table