From 027e8c98e7b464465ad66c2a4a25c8af458f8267 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 1 Feb 2007 15:28:33 +0000
Subject: [PATCH] get format argument from request

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12503 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/OOoTemplate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py
index db9cfc4467..e1518613c6 100644
--- a/product/ERP5OOo/OOoTemplate.py
+++ b/product/ERP5OOo/OOoTemplate.py
@@ -456,7 +456,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
       # Convert if necessary
       opts = extra_context.get("options", None)
       if opts is not None:
-        format=opts.get("format",None)
+        format = opts.get('format', request.get('format', None))
         if format is not None:
           return self._asFormat(ooo, format, request)
 
-- 
2.30.9