From ee16f19167dba96287aab8f89d92b1d07f75a3f4 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Thu, 22 Aug 2019 16:35:20 +0200
Subject: [PATCH] better __dir__

---
 pybis/src/python/pybis/dataset.py | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/pybis/src/python/pybis/dataset.py b/pybis/src/python/pybis/dataset.py
index 0945838fff6..53b57cc7921 100644
--- a/pybis/src/python/pybis/dataset.py
+++ b/pybis/src/python/pybis/dataset.py
@@ -96,25 +96,16 @@ class DataSet(
 
     def __dir__(self):
         return [
-            'permId',
-            'kind',
-            'props', 
             'get_parents()', 'get_children()', 'get_components()', 'get_contained()', 'get_containers()',
             'add_parents()', 'add_children()', 'add_components()', 'add_contained()', 'add_containers()', 
             'del_parents()', 'del_children()', 'del_components()', 'del_contained()', 'del_containers()',
             'set_parents()', 'set_children()', 'set_components()', 'set_contained()', 'set_containers()',
-            'sample', 
-            'experiment', 
-            'collection', 
-            'dataStore',
-            'physicalData',
-            'linkedData',
-            'tags', 'set_tags()', 'add_tags()', 'del_tags()',
+            'set_tags()', 'add_tags()', 'del_tags()',
             'add_attachment()', 'get_attachments()', 'download_attachments()',
             "get_files(start_folder='/')", 'file_list',
             'download(files=None, destination=None, wait_until_finished=True)', 
-            'status', 'size', 'archive()', 'unarchive()' 
-        ]
+            'archive()', 'unarchive()' 
+        ] + super().__dir__()
 
     def __setattr__(self, name, value):
         if name in ['folder']:
-- 
GitLab