search for: find_own

Displaying 2 results from an estimated 2 matches for "find_own".

Did you mean: find_one
2006 Aug 15
5
Hard time understanding the differences between "def self.foo" and "def foo"
Hi guys, I''m having a little trouble understanding the differences and knowing when to use "def foo" and "def self.foo" in my models. I don''t quite understand them and was hoping someone could explain or give me examples on how to use the "self." properly. For example, I had "def foo" in my model "Account" and in one of
2015 Oct 09
3
Python version for scripts in LLVM?
...folder") exit(-1) # the path we are checking @@ -105,13 +106,13 @@ # check if this is real path if not os.path.exists(path): - print "path (" + path + ") does not exist" + print("path (" + path + ") does not exist") exit(-1) owners_name = find_owners(path) # be grammatically correct -print "The owner(s) of the (" + path + ") is(are) : " + str(owners_name) +print("The owner(s) of the (" + path + ") is(are) : " + str(owners_name)) exit(0) @@ -119,7 +120,7 @@ # not yet used root = "."...