(self, xmlns, log_missing=True)
return forms
Return the forms with the given xmlns.
        This function could return multiple forms if there are shadow forms in the app.
Return the forms with the given xmlns.
        This function could return multiple forms if there are shadow forms in the app.
Return the forms with the given xmlns . This function could return multiple forms if there are shadow forms in the app .
def get_forms_by_xmlns(self, xmlns, log_missing=True):
        """
        Return the forms with the given xmlns.
        This function could return multiple forms if there are shadow forms in the app.
        """
        if xmlns == "http://code.javarosa.org/devicereport":
            return []
        forms = self.get_xmlns_map()[xmlns]
        if len(forms) < 1:
            if log_missing:
                logging.error('App %s in domain %s has %s forms with xmlns %s' % (
                    self.get_id,
                    self.domain,
                    len(forms),
                    xmlns,
                ))
            return []
        non_shadow_forms = [form for form in forms if form.form_type != 'shadow_form']
        assert len(non_shadow_forms) <= 1
        return forms
def get_forms_by_xmlns ( self , xmlns , log_missing = True ) : if xmlns == "http://code.javarosa.org/devicereport" : return [ ] forms = self . get_xmlns_map ( ) [ xmlns ] if len ( forms ) < 1 : if log_missing : logging . error ( 'App %s in domain %s has %s forms with xmlns %s' % ( self . get_id , self . domain , len ( forms ) , xmlns , ) ) return [ ] non_shadow_forms = [ form for form in forms if form . form_type != 'shadow_form' ] assert len ( non_shadow_forms ) <= 1 return forms