<s> from couchforms . models import XFormInstance <EOL> from corehq . util . quickcache import quickcache <EOL> def _sizeof_fmt ( num ) : <EOL> for x in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] : <EOL> if num < <NUM_LIT> : <EOL> return "<STR_LIT>" % ( num , x ) <EOL> num /= <NUM_LIT> <EOL> @ quickcache ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , timeout = <NUM_LIT:30> ) <EOL> def forms_have_multimedia ( domain , app_id , xmlns ) : <EOL> """<STR_LIT>""" <EOL> startkey = [ domain , app_id , xmlns ] <EOL> rows = XFormInstance . get_db ( ) . view ( <EOL> '<STR_LIT>' , <EOL> startkey = startkey , <EOL> endkey = startkey + [ { } ] , <EOL> group_level = <NUM_LIT:3> , <EOL> reduce = True , <EOL> group = True <EOL> ) <EOL> return rows . count ( ) > <NUM_LIT:0> </s>
