Skip to content

Using mixins

dbradberry edited this page Feb 5, 2013 · 6 revisions

Mercury provides a number of Mixins that provide easy APIs to access commonly used functionality. These are available in the mwr.droidhg.modules.common package:

To use a mixin, your module class must extend it using Python’s multiple inheritance:

from mwr.droidhg.modules import common, Module

class GetInteger(Module, common.ClassLoader, common.PackageManager):
    pass
Clone this wiki locally