[cwconfig] Add a docstring on available_cubes method 3.25
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Mar 2017 10:32:24 +0200
branch3.25
changeset 12116 3522b19f35d6
parent 12115 8d0127498a28
child 12117 49beb974888f
[cwconfig] Add a docstring on available_cubes method a renaming could be better at some point, but that's a start.
cubicweb/cwconfig.py
--- a/cubicweb/cwconfig.py	Tue Mar 28 15:03:15 2017 +0200
+++ b/cubicweb/cwconfig.py	Wed Mar 29 10:32:24 2017 +0200
@@ -511,6 +511,10 @@
 
     @classmethod
     def available_cubes(cls):
+        """Return a list of available cube names.
+
+        For cube as package, name is equal to python package's name.
+        """
         cubes = set()
         for entry_point in pkg_resources.iter_entry_points(
                 group='cubicweb.cubes', name=None):