Here is my code:
class fs_sync(object):
def check_source(self, id):
src = fb.get('/sources', id)
return src
def main():
...
src = check_source(data['source_id'])
if __name__ == "__main__":
main()
I can't get the check_source function to be recognized. I get global name 'check_source' is not defined
error. If I call it using self.check_source
then I get an error global name 'self' is not defined
.
How can call a simple function within a class?