All pastes #71469 Raw Edit

mash

public python v1 · immutable
#71469 ·published 2006-06-25 20:26 UTC
rendered paste body
    def fetchRows(self, fetch):        #print "ummm", fetch        if fetch == 'sites':            return self.sites()        elif fetch == 'groups':            return self.groups()        elif fetch == 'addresses':            return self.addresses()it there a way to call            return self."fetch"()ie I want the fetch to be the function name