Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9650e0d

Browse files
author
Chris Glass
committed
Fixed logger definition still called "ho.pisa"
1 parent a2656a1 commit 9650e0d

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

demo/djangoproject/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from django.shortcuts import render_to_response
66
from django.template.loader import get_template
77
from django.template import Context
8-
import ho.pisa as pisa
8+
import xhtml2pdf.pisa as pisa
99
import cStringIO as StringIO
1010
import cgi
1111

xhtml2pdf/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
reportlab.rl_config.warnOnMissingFontGlyphs = 0
3939

40-
log = logging.getLogger("ho.pisa")
40+
log = logging.getLogger("xhtml2pdf")
4141

4242
sizeDelta = 2 # amount to reduce font size by for super and sub script
4343
subFraction = 0.4 # fraction of font size that a sub script should be lowered

xhtml2pdf/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# See the License for the specific language governing permissions and
2424
# limitations under the License.
2525

26-
log = logging.getLogger("ho.pisa")
26+
log = logging.getLogger("xhtml2pdf")
2727

2828
def pisaErrorDocument(dest, c):
2929
out = pisaTempFile(capacity=c.capacity)

xhtml2pdf/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838

39-
log = logging.getLogger("ho.pisa")
39+
log = logging.getLogger("xhtml2pdf")
4040

4141
rxhttpstrip = re.compile("https?://[^/]+(.*)", re.M | re.I)
4242

xhtml2pdf/pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from xhtml2pdf.util import pisaTempFile, getFile
1818

1919
import logging
20-
log = logging.getLogger("ho.pisa")
20+
log = logging.getLogger("xhtml2pdf")
2121

2222
class pisaPDF:
2323

xhtml2pdf/tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# See the License for the specific language governing permissions and
2121
# limitations under the License.
2222

23-
log = logging.getLogger("ho.pisa")
23+
log = logging.getLogger("xhtml2pdf")
2424

2525
def _width(value=None):
2626
if value is None:

xhtml2pdf/tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# See the License for the specific language governing permissions and
2929
# limitations under the License.
3030

31-
log = logging.getLogger("ho.pisa")
31+
log = logging.getLogger("xhtml2pdf")
3232

3333
def deprecation(message):
3434
warnings.warn("<" + message + "> is deprecated!", DeprecationWarning, stacklevel=2)

xhtml2pdf/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2")
4242
# print "***", reportlab.Version, REPORTLAB22, reportlab.__file__
4343

44-
log = logging.getLogger("ho.pisa")
44+
log = logging.getLogger("xhtml2pdf")
4545

4646
try:
4747
import cStringIO as StringIO

xhtml2pdf/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import StringIO
1919

2020
import logging
21-
log = logging.getLogger("ho.pisa.wsgi")
21+
log = logging.getLogger("xhtml2pdf.wsgi")
2222

2323
class Filter(object):
2424

xhtml2pdf/xhtml2pdf_reportlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646

4747

48-
log = logging.getLogger("ho.pisa")
48+
log = logging.getLogger("xhtml2pdf")
4949

5050
MAX_IMAGE_RATIO = 0.95
5151

0 commit comments

Comments
 (0)