#NEWLINE# def get_all_themes_archive( ) : #NEWLINE# #INDENT# themes = Theme . objects . filter ( moderating = False ) #NEWLINE# resultStream = StringIO ( ) #NEWLINE# archive = ZipFile ( resultStream , 'w' ) #NEWLINE# archive . writestr ( 'readme.txt' , 'Thank you!\r\n Your ideacolorthemes.org!' ) #NEWLINE# for theme in themes : #NEWLINE# #INDENT# ( name , data ) = get_theme_archive ( theme . id ) #NEWLINE# archive . writestr ( ( '%s.jar' % name ) , data ) #NEWLINE# #UNINDENT# archive . close ( ) #NEWLINE# return resultStream . getvalue ( )