Skip to content

Commit

Permalink
Show fullname of commontity 'Category/ItemName'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Gollesch committed Jul 6, 2016
1 parent 13a1779 commit 385a06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/edcd_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def check_local_edcd(self):
for itemTD in sorted(catTD.items, key=lambda x: x.dbname):
itemEDCD = self.edcdItems.get(itemTD.dbname, None)
if not itemEDCD:
tdenv.DEBUG0("Item '{}' not in EDCD", itemTD.dbname)
tdenv.DEBUG0("Item '{}' not in EDCD", itemTD.fullname)
else:
if catTD.dbname != itemEDCD.category.dbname:
tdenv.WARN("Item '{}' has different category "
Expand Down Expand Up @@ -114,7 +114,7 @@ def check_edcd_local(self):
itemEDCD.fdevID, itemEDCD.dbname, itemTD.dbname
)
else:
tdenv.NOTE("New Item '{}'", itemEDCD.dbname)
tdenv.NOTE("New Item '{}'", itemEDCD.fullname)
insColumns = [
"name",
"category_id",
Expand Down Expand Up @@ -152,11 +152,11 @@ def check_edcd_local(self):
if itemTD.fdevID != itemEDCD.fdevID:
tdenv.WARN(
"Item '{}' has different FDevID {} (TD) != {} (EDCD).",
itemTD.dbname, itemTD.fdevID, itemEDCD.fdevID
itemTD.fullname, itemTD.fdevID, itemEDCD.fdevID
)
if len(updColumns):
tdenv.NOTE("Update Item '{}' {} {}",
itemTD.dbname, updColumns, updValues
itemTD.fullname, updColumns, updValues
)
updValues.append(itemTD.ID)
sqlStmt = (
Expand Down

0 comments on commit 385a06a

Please sign in to comment.