Skip to content

Commit

Permalink
EIOPA: update Filer manual checks per Bartosz.
Browse files Browse the repository at this point in the history
  • Loading branch information
Herm Fischer authored and Herm Fischer committed Jun 23, 2015
1 parent d72569a commit 4b14ab6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arelle/plugin/xbrlDB/XbrlDpmSqlDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ def insertInstanceToDB(self, isStreaming=False):
self.moduleId = moduleId[0] # only column in row returned
break
else:
self.modelXbrl.error("sqlDB:multipeSchemaRefs",
self.modelXbrl.error(("EBA.1.5","EIOPA.S.1.5.a"),
_("Loading XBRL DB: Multiple schema files referenced: %(schemaRef)s"),
modelObject=self.modelXbrl, schemaRef=refDoc.uri)
if not self.moduleId:
raise DpmDBException("xpgDB:MissingModuleEntry",
raise DpmDBException(("EBA.1.5","EIOPA.S.1.5.a"),
_("A ModuleID could not be found in table mModule for instance schemaRef {0}.")
.format(_instanceSchemaRef))
self.modelXbrl.profileActivity("dpmDB 01. Get ModuleID for instance schema", minTimeToShow=0.0)
Expand Down Expand Up @@ -470,11 +470,11 @@ def validateFactSignature(self, dpmSignature, fact): # omit fact if checking at
_metQname = _met[4:-1]
if _metQname not in self.metricsForFilingIndicators:
if isinstance(fact, ModelFact):
self.modelXbrl.error("sqlDB:factQNameError",
self.modelXbrl.error(("EBA.1.7.1", "EIOPA.1.7.1"),
_("Loading XBRL DB: Fact QName not allowed for filing indicators %(qname)s, contextRef %(context)s, value: %(value)s"),
modelObject=fact, dpmSignature=dpmSignature, qname=fact.qname, context=fact.contextID, value=fact.value)
elif isinstance(fact, (tuple,list)): # from database dFact record
self.modelXbrl.error("sqlDB:factQNameError",
self.modelXbrl.error(("EBA.1.7.1", "EIOPA.1.7.1"),
_("Loading XBRL DB: Fact QName not allowed for filing indicators %(qname)s, value: %(value)s"),
modelObject=self.modelXbrl, dpmSignature=dpmSignature, qname=_metQname, value=self.dFactValue(fact))
else:
Expand Down

0 comments on commit 4b14ab6

Please sign in to comment.