def open_spreadsheet(self, path, as_template=False, read_only=False):
extra = ()<EOL>if as_template:<EOL><INDENT>pv = uno.createUnoStruct('<STR_LIT>')<EOL>pv.Name = '<STR_LIT>'<EOL>pv.Value = True<EOL>extra += (pv,)<EOL><DEDENT>if read_only:<EOL><INDENT>pv = uno.createUnoStruct('<STR_LIT>')<EOL>pv.Name = '<STR_LIT>'<EOL>pv.Value = True<EOL>extra += (pv,)<EOL><DEDENT>url = uno.systemPathToFileUrl(os.path.abspath(path))<EOL>document = self._open_url(url, extra)<EOL>return SpreadsheetDocument(document)<EOL>
Opens an exiting spreadsheet document on the local file system.