Closed
Bug 374851
Opened 19 years ago
Closed 14 years ago
add category registration to pyxpcom
Categories
(Other Applications Graveyard :: PyXPCOM, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: shanec, Unassigned)
References
Details
Attachments
(1 file)
|
2.03 KB,
patch
|
markh
:
review-
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•19 years ago
|
||
| Reporter | ||
Updated•19 years ago
|
Attachment #259263 -
Flags: review?(mhammond)
Comment 2•17 years ago
|
||
Any chance we could make the test component exercise this?
Updated•16 years ago
|
Component: XPCOM → PyXPCOM
Product: Core → Other Applications
QA Contact: xpcom → pyxpcom
Version: Trunk → unspecified
Comment 3•14 years ago
|
||
Comment on attachment 259263 [details] [diff] [review]
pyxpcom_category_registration.patch
No tests were forthcoming
Attachment #259263 -
Flags: review?(mhammond) → review-
Comment 4•14 years ago
|
||
Note: This category registry implementation has since been added to pyxpcom.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•