def _item_path(item):
 try:
  path = item.path
 except AttributeError:
  path = u''
 return path

def _item_path ( item ) : try : path = item . path except AttributeError : path = u'' return path
return the items path .