Rename bpkg_manager to just bpkg

This commit is contained in:
Ellwood Zwovic
2017-07-14 17:13:40 -07:00
parent acd0792b28
commit 093ec4b606
4 changed files with 27 additions and 0 deletions

View File

@@ -417,6 +417,30 @@ class USERPREF_PT_packages(bpy.types.Panel):
draw_package(pkg, row) draw_package(pkg, row)
# class WM_OT_package_expand(Operator):
# bl_idname = "wm.package_expand"
# bl_label = ""
# bl_description = "Display information and preferences for this package"
# bl_options = {'INTERNAL'}
#
# module = StringProperty(
# name="Module",
# description="Module name of the add-on to expand",
# )
#
# def execute(self, context):
# import addon_utils
#
# module_name = self.module
#
# mod = addon_utils.addons_fake_modules.get(module_name)
# if mod is not None:
# info = addon_utils.module_bl_info(mod)
# info["show_expanded"] = not info["show_expanded"]
#
# return {'FINISHED'}
#
class PackageManagerPreferences(bpy.types.AddonPreferences): class PackageManagerPreferences(bpy.types.AddonPreferences):
bl_idname = __package__ bl_idname = __package__

View File

@@ -174,6 +174,9 @@ class Repository:
self.set_from_dict({'url': url}) self.set_from_dict({'url': url})
self.log.debug("Initializing repository: %s", self.to_dict()) self.log.debug("Initializing repository: %s", self.to_dict())
# def cleanse_packagelist(self):
# """Remove empty packages (no bl_info), packages with no name"""
def refresh(self): def refresh(self):
""" """
Requests repo.json from URL and embeds etag/last-modification headers Requests repo.json from URL and embeds etag/last-modification headers