@parse_data
@set_database
def get_topic_update_nodes(parent=None, **kwargs):
 if parent:
  Parent = Item.alias()
  if (parent == 'root'):
   selector = Parent.parent.is_null()
  else:
   selector = (Parent.id == parent)
  values = Item.select(Item.title, Item.description, Item.available, Item.kind, Item.pk, Item.size_on_disk, Item.remote_size, Item.files_complete, Item.total_files, Item.id, Item.path, Item.youtube_id).join(Parent, on=(Item.parent == Parent.pk)).where((selector & (Item.total_files != 0)))
  return values

@ parse_data @ set_database def get_topic_update_nodes ( parent = None , ** kwargs ) : if parent : Parent = Item . alias ( ) if ( parent == 'root' ) : selector = Parent . parent . is_null ( ) else : selector = ( Parent . id == parent ) values = Item . select ( Item . title , Item . description , Item . available , Item . kind , Item . pk , Item . size_on_disk , Item . remote_size , Item . files_complete , Item . total_files , Item . id , Item . path , Item . youtube_id ) . join ( Parent , on = ( Item . parent == Parent . pk ) ) . where ( ( selector & ( Item . total_files != 0 ) ) ) return values
convenience function for returning a set of topic nodes with limited fields for rendering the update topic tree .