Update of /cvsroot/docstring/dps/dps/transforms
In directory usw-pr-cvs1:/tmp/cvs-serv29793/dps/dps/transforms
Modified Files:
frontmatter.py
Log Message:
adjusted system_warning levels.
Index: frontmatter.py
===================================================================
RCS file: /cvsroot/docstring/dps/dps/transforms/frontmatter.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** frontmatter.py 2002/01/26 00:00:50 1.2
--- frontmatter.py 2002/02/06 02:51:57 1.3
***************
*** 261,265 ****
elif issubclass(biblioclass, nodes.abstract):
if abstract:
! field[-1] += self.doctree.reporter.error(
'There can only be one abstract.')
raise TransformError
--- 261,265 ----
elif issubclass(biblioclass, nodes.abstract):
if abstract:
! field[-1] += self.doctree.reporter.warning(
'There can only be one abstract.')
raise TransformError
***************
*** 282,286 ****
def check_empty_biblio_field(self, field, name):
if len(field[1]) < 1:
! field[-1] += self.doctree.reporter.error(
'Cannot extract empty bibliographic field "%s".' % name)
return None
--- 282,286 ----
def check_empty_biblio_field(self, field, name):
if len(field[1]) < 1:
! field[-1] += self.doctree.reporter.warning(
'Cannot extract empty bibliographic field "%s".' % name)
return None
***************
*** 289,297 ****
def check_compound_biblio_field(self, field, name):
if len(field[1]) > 1:
! field[-1] += self.doctree.reporter.error(
'Cannot extract compound bibliographic field "%s".' % name)
return None
if not isinstance(field[1][0], nodes.paragraph):
! field[-1] += self.doctree.reporter.error(
'Cannot extract bibliographic field "%s" containing anything '
'other than a single paragraph.'
--- 289,297 ----
def check_compound_biblio_field(self, field, name):
if len(field[1]) > 1:
! field[-1] += self.doctree.reporter.warning(
'Cannot extract compound bibliographic field "%s".' % name)
return None
if not isinstance(field[1][0], nodes.paragraph):
! field[-1] += self.doctree.reporter.warning(
'Cannot extract bibliographic field "%s" containing anything '
'other than a single paragraph.'
***************
*** 331,335 ****
docinfo.append(nodes.authors('', *authornodes))
except TransformError:
! field[-1] += self.doctree.reporter.error(
'Bibliographic field "%s" incompatible with extraction: '
'it must contain either a single paragraph (with authors '
--- 331,335 ----
docinfo.append(nodes.authors('', *authornodes))
except TransformError:
! field[-1] += self.doctree.reporter.warning(
'Bibliographic field "%s" incompatible with extraction: '
'it must contain either a single paragraph (with authors '
|