Skip to content

Commit

Permalink
PyFEPDF: ajuste formato DBF (charset)
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed May 3, 2011
1 parent 180135e commit b3b60d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions formato_dbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def dar_nombre_campo(clave):
def leer(archivos=None):
"Leer las tablas dbf y devolver una lista de diccionarios con las facturas"
import dbf
dbf.encoding('cp850')
if DEBUG: print "Leyendo DBF..."
if archivos is None: archivos = {}
regs = {}
Expand Down Expand Up @@ -124,6 +125,7 @@ def leer(archivos=None):
def escribir(regs, archivos=None):
"Grabar en talbas dbf la lista de diccionarios con la factura"
import dbf
dbf.encoding('cp850')
if DEBUG: print "Creando DBF..."
if not archivos: filenames = {}

Expand Down
2 changes: 1 addition & 1 deletion pyfepdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
__author__ = "Mariano Reingart <reingart@gmail.com>"
__copyright__ = "Copyright (C) 2011 Mariano Reingart"
__license__ = "GPL 3.0"
__version__ = "1.02b"
__version__ = "1.02c"

DEBUG = False
HOMO = True
Expand Down

0 comments on commit b3b60d1

Please sign in to comment.