@property
    def addon_serialized_urls(self):
        node = self.node_settings.owner
        user_settings = self.node_settings.user_settings or self.user_settings

        result = {
            'accounts': node.api_url_for('s3_account_list'),
            'create_bucket': node.api_url_for('create_bucket'),
            'import_auth': node.api_url_for('s3_import_auth'),
            'create': node.api_url_for('s3_add_user_account'),
            'deauthorize': node.api_url_for('s3_deauthorize_node'),
            'bucket_list': node.api_url_for('s3_folder_list'),
            'set_bucket': node.api_url_for('s3_set_config'),
            'files': node.web_url_for('collect_file_trees'),
        }
        if user_settings:
            result['owner'] = web_url_for('profile_view_id',
                uid=user_settings.owner._id)
        return result
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/s3/serializer.py/S3Serializer.addon_serialized_urls/original