Keyless BibTeX entries no longer being parsed

"Hamish Lawson" <hbl-T7IeVJDLM9PtNP1Hz/[email protected]> Tue, 6 Mar 2007 20:12:54 +0000
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
I previously downloaded the tar file for 1.3.3 from Sourceforge.
Recently I downloaded patch 76 (to take advantage of the semantic ISI
parser that had been added). Now I'm finding that BibTeX files without
citation keys are now failing to be parsed.

Previously the following entry would be successfully parsed:

----
@ARTICLE{
        AUTHOR             = {Fred Smith},
        JOURNAL            = {Some Journal},
        MONTH              = sep,
        NUMBER             = {40},
        PAGES              = {21--23},
        TITLE              = {Something about Nothing},
        YEAR               = {1993},
}
----

But now it produces the following error:

----
Traceback (most recent call last):
  File "dev/test_endnote_import.py", line 15, in ?
    reader.parse(publication_file, db)
  File "/usr/local/python/lib/python2.4/site-packages/pybliographer-1.3.3-py2.4.egg/Pyblio/Parsers/Syntax/BibTeX/__init__.py",
line 391, in parse
    self.record_parse (data)
  File "/usr/local/python/lib/python2.4/site-packages/pybliographer-1.3.3-py2.4.egg/Pyblio/Parsers/Syntax/BibTeX/__init__.py",
line 367, in record_parse
    self.record_end ()
  File "/usr/local/python/lib/python2.4/site-packages/pybliographer-1.3.3-py2.4.egg/Pyblio/Parsers/Semantic/BibTeX.py",
line 58, in record_end
    self.id_add('id', self.key)
  File "/usr/local/python/lib/python2.4/site-packages/pybliographer-1.3.3-py2.4.egg/Pyblio/Parsers/Syntax/BibTeX/__init__.py",
line 94, in id_add
    self.record [field] = [Attribute.ID(stream.flat())]
AttributeError: 'NoneType' object has no attribute 'flat'
----

The entry is successfully parsed if a citation key is provided:

@ARTICLE{fred-smith,
...


Hamish

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV