Closed Bug 374851 Opened 19 years ago Closed 14 years ago

add category registration to pyxpcom

Categories

(Other Applications Graveyard :: PyXPCOM, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shanec, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: This makes adding a python xpcom object to a category easy. prior to patch, you had to override registration and do it yourself. This allows: class pyXPCOMSomethingOrOther: _com_interfaces_ = [components.interfaces.nsIDoesntExist] _reg_desc_ = "My cool pyxpcom object" _reg_clsid_ = "{asdfasdf-asdf-asdf-asdf-asdfasdfasdf}" _reg_contractid_ = "@ask.com/whatthisdoes;1" _reg_categories_ = [ ("some-category", "My Custom Name"), ("app-startup", "Create me as a service on startup", True), ] Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attachment #259263 - Flags: review?(mhammond)
Blocks: 450553
Any chance we could make the test component exercise this?
Component: XPCOM → PyXPCOM
Product: Core → Other Applications
QA Contact: xpcom → pyxpcom
Version: Trunk → unspecified
Comment on attachment 259263 [details] [diff] [review] pyxpcom_category_registration.patch No tests were forthcoming
Attachment #259263 - Flags: review?(mhammond) → review-
Note: This category registry implementation has since been added to pyxpcom.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: