Richard Jones avatar Richard Jones committed 721ac5c

fixes

Comments (0)

Files changed (2)

         sys.exit('user %r does not exist' % name)
     for key in user.keys():
         print '%s: %s' % (key, user[key])
-    for p in store.get_user_packages(user):
+    for p in store.get_user_packages(name):
         print '%s: %s' % (p['package_name'], p['role_name'])
 
 def nuke_nested_lists(store, confirm=False):
            name=%s and version=%s''', (name, version))
         return cursor.fetchall()
 
-    _Package_Roles = FastResultRow('role_name package_name')
+    _User_Packages_Roles = FastResultRow('role_name package_name')
     def get_user_packages(self, name):
         '''Fetch all packages and roles associated to user.'''
         cursor = self.get_cursor()
         safe_execute(cursor, '''select role_name, package_name from roles where
            user_name=%s''', (name,))
-        return Result(None, cursor.fetchall(), self._Package_Roles)
+        return Result(None, cursor.fetchall(), self._User_Packages_Roles)
 
     _Package_Roles = FastResultRow('role_name user_name')
     def get_package_roles(self, name):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.