def user_packages(self, user):
        session = DBSession()
        owned = Package.by_owner(session, user)
        maintained = Package.by_maintainer(session, user)
        owned = [('Owner', p.name) for p in owned]
        maintained = [('Maintainer', p.name) for p in maintained]
        return owned + maintained
Retrieve a list of [role_name, package_name] for a given username.
dataset/ETHPy150Open mardiros/pyshop/pyshop/views/xmlrpc.py/PyPI.user_packages