Commit 2df02bcc authored by Andrey Golovizin's avatar Andrey Golovizin

Get rid of Entry.collection

parent c04ee331
......@@ -154,7 +154,6 @@ class BibliographyData(object):
if key in self.entries:
report_error(BibliographyDataError('repeated bibliograhpy entry: %s' % key))
return
entry.collection = self
entry.key = self.get_canonical_key(key)
self.entries[entry.key] = entry
try:
......@@ -391,10 +390,9 @@ class Entry(object):
The most often used roles are ``'author'`` and ``'editor'``.
"""
collection = None
"""A reference to the containing :py:class:`.BibliographyData` object. Used to resolve crossrefs."""
def __init__(self, type_, fields=None, persons=None, collection=None):
def __init__(self, type_, fields=None, persons=None):
if fields is None:
fields = {}
if persons is None:
......@@ -406,8 +404,6 @@ class Entry(object):
self.persons = OrderedCaseInsensitiveDict(persons)
self.collection = collection
# for BibTeX interpreter
self.vars = {}
......@@ -438,7 +434,6 @@ class Entry(object):
self.type,
fields=self.fields.lower(),
persons=self.persons.lower(),
collection=self.collection,
)
def _find_person_field(self, role):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment