#NEWLINE# def loadApplication( filename , kind , passphrase = None ) : #NEWLINE# #INDENT# '\n    Load Application from a given file.\n\n    The serialization format it was saved in should be given as\n    C{kind}, and is one of C{pickle}, C{source}, C{xml} or C{python}. If\n    C{passphrase} is given, the application was encrypted with the\n    given passphrase.\n\n    @type filename: C{str}\n    @type kind: C{str}\n    @type passphrase: C{str}\n    ' #NEWLINE# if ( kind == 'python' ) : #NEWLINE# #INDENT# application = sob . loadValueFromFile ( filename , 'application' , passphrase ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# application = sob . load ( filename , kind , passphrase ) #NEWLINE# #UNINDENT# return application