Wednesday, January 27, 2010

Firefox extension. Thoughts.

While I try to see into Firefox Extension development, I found not evident things for me. And here I'll list'em.
  • You want to append event handler to created by you DOM-element somewhere in '1body' descendants. Don't try to use onclick or like it - you'll get a fail. Use addEventHandler method, and you'll get success :)

Tuesday, January 26, 2010

Django model field inheritance

To inherit model field in Django is not enough simply inherit a field class. It is needed to add attribute __metaclass__ = models.SubfieldBase. After that, you can overload any method you want.

Firefox extension. The first tries

I am developing the service which I'll describe further. And I decide to create a Firefox extension for it. And what I have dug:
  • To create a developer profile may that
    firefox -profilemanager
  • To run another -- development -- copy of Firefox
    firefox -no-remote -P <profile name>
And I assume firefox binary in your path.