aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-02-27 18:05:21 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-02-27 19:14:38 +0100
commit2e43fd3f1c049dc6e8a1274ed5b3d500020afa9a (patch)
treedbdc89ae1b8f967bd2d2f607c703ab47845e21da /src/scripts/pyolian
parentPyolian: rename all_files_parse functions (diff)
downloadefl-2e43fd3f1c049dc6e8a1274ed5b3d500020afa9a.tar.gz
Pyolian: rename path/filename retrieval APIs
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/eolian.py16
-rw-r--r--src/scripts/pyolian/eolian_lib.py24
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py8
3 files changed, 24 insertions, 24 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 9258e629f4..4ca53e375f 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -447,20 +447,20 @@ class Eolian(Eolian_Unit):
return Eolian_Unit(c_unit) if c_unit else None
@property
- def all_eo_file_paths(self):
- return Iterator(_str_to_py, lib.eolian_all_eo_file_paths_get(self._obj))
+ def eo_file_paths(self):
+ return Iterator(_str_to_py, lib.eolian_state_eo_file_paths_get(self._obj))
@property
- def all_eot_file_paths(self):
- return Iterator(_str_to_py, lib.eolian_all_eot_file_paths_get(self._obj))
+ def eot_file_paths(self):
+ return Iterator(_str_to_py, lib.eolian_state_eot_file_paths_get(self._obj))
@property
- def all_eo_files(self):
- return Iterator(_str_to_py, lib.eolian_all_eo_files_get(self._obj))
+ def eo_files(self):
+ return Iterator(_str_to_py, lib.eolian_state_eo_files_get(self._obj))
@property
- def all_eot_files(self):
- return Iterator(_str_to_py, lib.eolian_all_eot_files_get(self._obj))
+ def eot_files(self):
+ return Iterator(_str_to_py, lib.eolian_state_eot_files_get(self._obj))
def directory_add(self, dir_path):
return bool(lib.eolian_state_directory_add(self._obj, _str_to_bytes(dir_path)))
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 436142c6fa..715e4cf83b 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -51,21 +51,21 @@ lib.eolian_state_free.restype = None
lib.eolian_file_parse.argtypes = [c_void_p, c_char_p]
lib.eolian_file_parse.restype = c_void_p
-# EAPI Eina_Iterator *eolian_all_eo_file_paths_get(const Eolian_State *state);
-lib.eolian_all_eo_file_paths_get.argtypes = [c_void_p,]
-lib.eolian_all_eo_file_paths_get.restype = c_void_p
+# EAPI Eina_Iterator *eolian_state_eo_file_paths_get(const Eolian_State *state);
+lib.eolian_state_eo_file_paths_get.argtypes = [c_void_p,]
+lib.eolian_state_eo_file_paths_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_all_eot_file_paths_get(const Eolian_State *state);
-lib.eolian_all_eot_file_paths_get.argtypes = [c_void_p,]
-lib.eolian_all_eot_file_paths_get.restype = c_void_p
+# EAPI Eina_Iterator *eolian_state_eot_file_paths_get(const Eolian_State *state);
+lib.eolian_state_eot_file_paths_get.argtypes = [c_void_p,]
+lib.eolian_state_eot_file_paths_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_all_eo_files_get(const Eolian_State *state);
-lib.eolian_all_eo_files_get.argtypes = [c_void_p,]
-lib.eolian_all_eo_files_get.restype = c_void_p
+# EAPI Eina_Iterator *eolian_state_eo_files_get(const Eolian_State *state);
+lib.eolian_state_eo_files_get.argtypes = [c_void_p,]
+lib.eolian_state_eo_files_get.restype = c_void_p
-# EAPI Eina_Iterator *eolian_all_eot_files_get(const Eolian_State *state);
-lib.eolian_all_eot_files_get.argtypes = [c_void_p,]
-lib.eolian_all_eot_files_get.restype = c_void_p
+# EAPI Eina_Iterator *eolian_state_eot_files_get(const Eolian_State *state);
+lib.eolian_state_eot_files_get.argtypes = [c_void_p,]
+lib.eolian_state_eot_files_get.restype = c_void_p
# EAPI Eina_Bool eolian_state_directory_add(Eolian_State *state, const char *dir);
lib.eolian_state_directory_add.argtypes = [c_void_p, c_char_p]
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 59f949ca55..92ff1350a0 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -54,19 +54,19 @@ class TestBaseObject(unittest.TestCase):
class TestEolianUnit(unittest.TestCase):
def test_file_listing(self):
- l = list(eolian_db.all_eo_file_paths)
+ l = list(eolian_db.eo_file_paths)
self.assertGreater(len(l), 400)
self.assertTrue(l[0].endswith('.eo'))
- l = list(eolian_db.all_eo_files)
+ l = list(eolian_db.eo_files)
self.assertGreater(len(l), 400)
self.assertTrue(l[0].endswith('.eo'))
- l = list(eolian_db.all_eot_file_paths)
+ l = list(eolian_db.eot_file_paths)
self.assertGreater(len(l), 10)
self.assertTrue(l[0].endswith('.eot'))
- l = list(eolian_db.all_eot_files)
+ l = list(eolian_db.eot_files)
self.assertGreater(len(l), 10)
self.assertTrue(l[0].endswith('.eot'))