mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9891f149e1
commit
9beed389fe
@ -10,6 +10,7 @@ from collections.abc import MutableMapping, MutableSequence
|
|||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
from calibre.ebooks.metadata.book import STANDARD_METADATA_FIELDS
|
||||||
from calibre.ebooks.metadata.book.base import ALL_METADATA_FIELDS, NULL_VALUES, SIMPLE_GET, TOP_LEVEL_IDENTIFIERS, Metadata
|
from calibre.ebooks.metadata.book.base import ALL_METADATA_FIELDS, NULL_VALUES, SIMPLE_GET, TOP_LEVEL_IDENTIFIERS, Metadata
|
||||||
from calibre.ebooks.metadata.book.formatter import SafeFormat
|
from calibre.ebooks.metadata.book.formatter import SafeFormat
|
||||||
from calibre.utils.date import utcnow
|
from calibre.utils.date import utcnow
|
||||||
@ -387,7 +388,6 @@ class ProxyMetadata(Metadata):
|
|||||||
"Use the explicit methods such as all_field_keys()")
|
"Use the explicit methods such as all_field_keys()")
|
||||||
|
|
||||||
def has_key(self, key):
|
def has_key(self, key):
|
||||||
from calibre.ebooks.metadata.book import STANDARD_METADATA_FIELDS
|
|
||||||
return key in STANDARD_METADATA_FIELDS or key in ga(self, '_user_metadata')
|
return key in STANDARD_METADATA_FIELDS or key in ga(self, '_user_metadata')
|
||||||
|
|
||||||
def deepcopy(self, **kwargs):
|
def deepcopy(self, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user