Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #116 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

Entry point for registering widgets

Reported by: kevin Owned by: anonymous
Priority: normal Milestone: 0.9a1
Component: TG Widgets Version:
Severity: normal Keywords:


Need to define a setuptools entry point for registering modules of widgets. This will allow the Toolbox to display all widgets in the system.

Change History

comment:1 Changed 14 years ago by ianb@…

Some open issues I can think of:

  • What do the entry point names mean? Can widgets be looked up by name alone? This can save an import sometimes, but has namespace sharing issues (or you can allow fully-qualified Package#name in addition to name alone). Or you can ignore names.
  • Do entry points describe one widget, or a set of widgets?
  • Widgets should have groups; so if they are individually enumerated they should still have some attribute that allows you to group them.
  • Maybe groups and packages are orthogonal, as a package might add something to a group. I imagine groups like... oh, I dunno. I think there's groups in there somewhere.

Widgets should also have all the metadata needed to describe them; documentation, available options, etc. That makes browsing useful.

comment:2 Changed 14 years ago by Splee

Entry points are described  here.

comment:3 Changed 14 years ago by kevin

  • Keywords develix added

comment:4 Changed 14 years ago by kevin

  • Keywords develix removed

comment:5 Changed 13 years ago by kevin

  • Milestone changed from 0.9 to 0.9a1

This entry point is very simple. It's just a module or set of modules that need importing. WidgetDescriptions? are automatically registered as soon as they're created, so just importing the module is enough.

comment:6 Changed 13 years ago by alberto

committed at r799

comment:7 Changed 13 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.