type_ = res.get('type')
if type_:
# guess by type, by default
type_icon = None
if type_ == 'file':
# for files we can further differentiate
type_icon = 'file-annex'
if res.get('key'):
type_icon = 'file-git'
Isn't it an annexed file that would have the key property. If so, and unless I'm misunderstanding, shouldn't that part of the code read:
type_icon = 'file-git'
if res.get('key'):
type_icon = 'file-annex'
While writing a test for
fsbrowser_item.py
, I saw this code inupdate_from_status_result()
:Isn't it an annexed file that would have the
key
property. If so, and unless I'm misunderstanding, shouldn't that part of the code read: