(app_doc, wrap_cls=None)
return cls.wrap(app_doc)
Will raise DocTypeError if it can't figure out the correct class
Will raise DocTypeError if it can't figure out the correct class
Will raise DocTypeError if it can t figure out the correct class
def wrap_app(app_doc, wrap_cls=None):
    """Will raise DocTypeError if it can't figure out the correct class"""
    from corehq.apps.app_manager.util import get_correct_app_class
    cls = wrap_cls or get_correct_app_class(app_doc)
    return cls.wrap(app_doc)
def wrap_app ( app_doc , wrap_cls = None ) : from corehq . apps . app_manager . util import get_correct_app_class cls = wrap_cls or get_correct_app_class ( app_doc ) return cls . wrap ( app_doc )