source: lliurex-store/trunk/fuentes/README.md

Last change on this file was 8703, checked in by Juanma, 4 weeks ago

sync with git

File size: 1.4 KB
Line 
1# Lliurex Store
2<p>Software store for Lliurex.</p>
3<p>
4Offers support for Lliurex's zomandos, snaps, appimage and software repositories.<br>
5It can be also be installed on a non-Lliurex system and it shall enable or disable plugins if any of them isn't supported on the base system</p>
6
7More info:
8
9[Valencian](http://wiki.lliurex.net/tiki-index.php?page=LliureX+Store_va)
10
11[Spanish](http://wiki.lliurex.net/tiki-index.php?page=LliureX+Store)
12
13
14
15## Lliurex Store plugin system
16<p>
17Plugins must provide one register method and return a dictionary with "data" and "status" keys.<br>
18The basic structure of a plugin is provided at the example.py plugin.
19
20[example.py](python3-lliurex-store.install/usr/share/lliurexstore/plugins/example.py)
21</p>
22
23### Available public methods
24<ul>
25<li>
26<b>execute_action(str(action_name))</b>
27<p>
28Executes "action" in a thread. When action is finished it will publish the result through the get_results method.
29</p>
30</li>
31<li>
32<b>get_progress(str(action_name) or None)</b>
33<p>
34Gets the current progress of a running action or of all actions launched
35</p>
36</li>
37<li>
38<b>get_result(str(action_name))</b>
39<p>
40Gets the result of action. This function will join the action till it's finished
41</p>
42</li>
43<li>
44<b>get_status(str(action_name) or None)</b>
45<p>
46Gets the return status of an action
47</p>
48</li>
49<li>
50<b>set_debug(bool(debug))</b>
51<p>
52Enables or disables debug
53</p>
54</li>
55</ul>
Note: See TracBrowser for help on using the repository browser.