(self, app_and_form_unique_id)
return form, app
Returns the form and app associated with the primary application
        document (i.e., not a build).
Returns the form and app associated with the primary application
        document (i.e., not a build).
Returns the form and app associated with the primary application document ( i . e . not a build ) .
def get_form_and_app(self, app_and_form_unique_id):
        """
        Returns the form and app associated with the primary application
        document (i.e., not a build).
        """
        error_msg = _("Please choose a form")
        try:
            app_id, form_unique_id = split_combined_id(app_and_form_unique_id)
            app = get_app(self.domain, app_id)
            form = app.get_form(form_unique_id)
        except:
            raise ValidationError(error_msg)

        return form, app
def get_form_and_app ( self , app_and_form_unique_id ) : error_msg = _ ( "Please choose a form" ) try : app_id , form_unique_id = split_combined_id ( app_and_form_unique_id ) app = get_app ( self . domain , app_id ) form = app . get_form ( form_unique_id ) except : raise ValidationError ( error_msg ) return form , app