Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Etienne Nadji
PyScribus
Commits
8cc22ee3
Commit
8cc22ee3
authored
Nov 29, 2020
by
Etienne Nadji
Browse files
Cleaner debug logs
modifié : common/xml.py modifié : pageobjects.py
parent
94fc3cad
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/pyscribus/common/xml.py
View file @
8cc22ee3
...
...
@@ -477,7 +477,7 @@ def all_undocumented_to_xml(
msg
=
msg
.
strip
()
undocstr
=
"Undoc. XML attributes
in
{}
: "
.
format
(
msg
)
undocstr
=
"Undoc. XML attributes
:
{}: "
.
format
(
msg
)
if
logger
:
logger
.
debug
(
...
...
source/pyscribus/pageobjects.py
View file @
8cc22ee3
...
...
@@ -692,7 +692,7 @@ class PageObject(xmlc.PyScribusElement):
try
:
xml
,
undoc_attribs
=
xmlc
.
all_undocumented_to_xml
(
xml
,
self
.
undocumented
,
True
,
self
.
ptype
+
"
frame '"
+
self
.
name
+
"'"
,
self
.
ptype
+
"
'{}'"
.
format
(
self
.
name
.
strip
())
,
# FIXME This disable debug for path, copath attributes
# ["path", "copath"]
logger
=
logs
.
getLogger
()
...
...
@@ -1257,7 +1257,7 @@ class TableObject(PageObject):
try
:
xml
,
undoc_attribs
=
xmlc
.
all_undocumented_to_xml
(
xml
,
self
.
undocumented
,
True
,
self
.
ptype
+
"
frame '"
+
self
.
name
+
"'"
,
self
.
ptype
+
"
'{}'"
.
format
(
self
.
name
.
strip
())
,
logger
=
logs
.
getLogger
()
)
...
...
@@ -1449,7 +1449,7 @@ class GroupObject(PageObject):
try
:
xml
,
undoc_attribs
=
xmlc
.
all_undocumented_to_xml
(
xml
,
self
.
undocumented
,
True
,
self
.
ptype
+
"
frame '"
+
self
.
name
+
"'"
,
self
.
ptype
+
"
'{}'"
.
format
(
self
.
name
.
strip
())
,
logger
=
logs
.
getLogger
()
)
...
...
@@ -1800,7 +1800,7 @@ class TextObject(PageObject):
try
:
xml
,
undoc_attribs
=
xmlc
.
all_undocumented_to_xml
(
xml
,
self
.
undocumented
,
True
,
self
.
ptype
+
"
frame '"
+
self
.
name
+
"'"
,
self
.
ptype
+
"
'{}'"
.
format
(
self
.
name
.
strip
())
,
logger
=
logs
.
getLogger
()
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment