Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
list out the to be rebased files so that the cursor object is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
BuzzTroll committed Dec 27, 2010
1 parent 31ac5ab commit 258f514
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions cumulus/authz/pynimbusauthz/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ def find_files_from_data(db_obj, pattern):

find_files_from_data = staticmethod(find_files_from_data)



def __str__(self):
return self.name + ":" + self.object_type + ":" + str(self.parent)

Expand Down
2 changes: 1 addition & 1 deletion cumulus/authz/pynimbusauthz/rebase.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def main(argv=sys.argv[1:]):

pattern = old_path + "%"

files = File.find_files_from_data(db_obj, pattern)
files = list(File.find_files_from_data(db_obj, pattern))
for f in files:
old_key = f.get_data_key()
new_key = old_key.replace(old_path, new_path, 1)
Expand Down

0 comments on commit 258f514

Please sign in to comment.