def mdt_read_call_valid(self):
        if not self.docrule_id:
            return False
        try:
            int(self.docrule_id)
            str(self.docrule_id)
            return True
        except Exception, e:  # FIXME
            log.error(e)
            return False
Simple type validation of docrule_id provided.
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/couchapps/mdt_manager.py/MetaDataTemplateManager.mdt_read_call_valid