ActiveState Powered by ActiveState

ActiveState Community


Launch Komodo's about:config

Posted by jeffg on 2007-04-23 14:37
OS: All / Any

If you are hacking Komodo Macro / Extension code it can be handy to look at the about? page, but it isn't obvious how to get there:

1. preview some html file 'in a new tab'
2. type 'about?' into the uri field

Here is a quick macro that automagically does this for you:

try {
gViewMgr.loadViewFromURI('about:config','browser');
} catch(e) { alert(e); }
try {
gViewMgr.loadViewFromURI('about:config','browser');
} catch(e) { alert(e); }

Update: I changed this to use Shane's code because mine doesn't work anymore.

AttachmentSize
aboutconfig.kpz746 bytes

shanec | Wed, 2007-04-25 20:08

gViewMgr.loadViewFromURI('about:config','browser');
gViewMgr.loadViewFromURI('about:config','browser');

=)
jeffg | Wed, 2007-04-25 22:08

Nice one. Where are the api docs for gViewMgr again?

--
JeffG

shanec | Thu, 2007-04-26 09:59

gViewMgr did not make it into the ko namespace properly. You can see the class layout by looking at ko.views.viewManager (4.1 beta 2), but autocompletion will not be available on gViewMgr. I should fix that for beta 3 I guess :)

bevan@drupal.org | Thu, 2007-06-21 02:05

are revisions intentionally made accessible by authenticated users (with no roles) in this site? Or is that a slip up in drupal ACLs?

jeffg | Thu, 2007-06-21 08:15

I can't think of a reason why revisions shouldn't be public, except possibly that it is visual clutter and, considering most revisions are created to correct spelling mistakes, not that useful. Ok, I turned it off.

--
JeffG

shanec | Thu, 2007-07-05 10:27

You should be using "about:config" or "about:"

shanec | Thu, 2007-07-05 10:31

Some change must have occurred, possibly during the drupal update, that changed the text to about?. I've changed it to the correct about:config uri.

Odd
jeffg | Thu, 2007-07-05 11:09

I did run an update script specifically on posts with code blocks in them, maybe mysql_real_escape_string() did something funky to the semi-colon?

I'm still waiting for api docs on gViewMgr, reading the IDLs and the JS is like tracking Billy in a Family Circus. =)

--
JeffG

-->