34 |
34 |
35 def apiFiles(language): |
35 def apiFiles(language): |
36 """ |
36 """ |
37 Module function to return the API files made available by this plugin. |
37 Module function to return the API files made available by this plugin. |
38 |
38 |
39 @param language language to get APIs for (string) |
39 @param language language to get APIs for |
40 @return list of API filenames (list of string) |
40 @type str |
|
41 @return list of API filenames |
|
42 @rtype list of str |
41 """ |
43 """ |
42 if language: |
44 if language: |
43 apisDir = os.path.join(os.path.dirname(__file__), "APIs", language) |
45 apisDir = os.path.join(os.path.dirname(__file__), "APIs", language) |
44 return glob.glob(os.path.join(apisDir, "*.api")) |
46 return glob.glob(os.path.join(apisDir, "*.api")) |
45 else: |
47 else: |
53 |
55 |
54 def __init__(self, ui): |
56 def __init__(self, ui): |
55 """ |
57 """ |
56 Constructor |
58 Constructor |
57 |
59 |
58 @param ui reference to the user interface object (UI.UserInterface) |
60 @param ui reference to the user interface object |
|
61 @type UserInterface |
59 """ |
62 """ |
60 super().__init__(ui) |
63 super().__init__(ui) |
61 self.__ui = ui |
64 self.__ui = ui |
62 |
65 |
63 def activate(self): |
66 def activate(self): |
64 """ |
67 """ |
65 Public method to activate this plugin. |
68 Public method to activate this plugin. |
66 |
69 |
67 @return tuple of None and activation status (boolean) |
70 @return tuple of None and activation status |
|
71 @rtype tuple of (None, bool) |
68 """ |
72 """ |
69 return None, True |
73 return None, True |
70 |
74 |
71 def deactivate(self): |
75 def deactivate(self): |
72 """ |
76 """ |
73 Public method to deactivate this plugin. |
77 Public method to deactivate this plugin. |
74 """ |
78 """ |
75 pass |
79 pass |
|
80 |
|
81 # |
|
82 # eflag: noqa = U200 |