From ea0a839ab143ecb4c7f0f76c90d642f49a869e59 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 20 Apr 2013 23:23:07 +0000 Subject: [PATCH] [r22028]GrampsLocale: Replace gen.plug.utils gfloat() With GrampsLocale.float(). Also remove gen.plug.utils gformat(), which was written to work around string formatting with %f localizing the decimal point, which it doesn't do. locale.format() does, but it wasn't being used anyway. svn: r22045 --- gramps/gen/plug/docgen/stylesheet.py | 28 +++++----- gramps/gen/plug/report/_paper.py | 9 ++- gramps/gen/plug/utils.py | 28 ---------- gramps/gen/utils/grampslocale.py | 20 +++++++ gramps/plugins/docgen/psdrawdoc.py | 82 +++++++++++++--------------- 5 files changed, 77 insertions(+), 90 deletions(-) diff --git a/gramps/gen/plug/docgen/stylesheet.py b/gramps/gen/plug/docgen/stylesheet.py index df9f204bf..bc4a2ecc9 100644 --- a/gramps/gen/plug/docgen/stylesheet.py +++ b/gramps/gen/plug/docgen/stylesheet.py @@ -43,11 +43,11 @@ def escxml(string): # GRAMPS modules # #------------------------------------------------------------------------- -from ..utils import gformat, gfloat from .paragraphstyle import ParagraphStyle from .fontstyle import FontStyle from .tablestyle import TableStyle, TableCellStyle from .graphicstyle import GraphicsStyle +from gramps.gen.const import GRAMPS_LOCALE as glocale #------------------------------------------------------------------------- # @@ -182,12 +182,12 @@ class StyleSheetList(object): '