def __init__(self, name, host='127.0.0.1', port=27017):
        self.name = name
        self.host = host
        self.port = port
def poll(cls, context):
        userpref = context.user_preferences
        return (userpref.active_section == 'FILES')