summaryrefslogtreecommitdiff
path: root/doc/Hooks
blob: e0469e94d5e798f233d530f654df54e9bdf5f06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
List of hooks currently being supported by Portato
==================================================

emerge:
-------
Called: When emerge or every other command given by e.g. the synccmd preference is being called.
Parameters:
	- string[] packages: Packages to emerge (includes "world", "system").
	- string[] command: The exact command to execute.
	- portato.gui.wrapper.Console console: The console the output will be written to.
	- function(string) -> None title_update: Function which updates the console title in the GUIs.

Return if override: Nothing


after_emerge:
-------------
Called: When the emerge process (or other - see emerge hook) is finished. 
Parameters:
	- string[] packages: The list of cpv's (plus "world", "system") which have been emerged. (Or not if it failed.)
	- int retcode: The return code of the command.

Return if override: Nothing
Comment: This uses an extra hook as emerge is started in an extra thread and thus all plugins being wanting to come "after" will be called while emerge is still running.

open_ebuild:
------------
Called: When an ebuild window is opened.
Parameters:
	- portato.backend.Package package: The current package whose is going to be displayed.
	- Window parent: The parent window. Exact type depends on the frontend.

Return if override: Window-object which can be called by the frontends. Please see the explicit code to see what is expected.
Comment: If you want to override - do this only for ONE specific frontend.
2020-07-24Revert "Remove translation hack"René 'Necoro' Neumann1-1/+7 This reverts commit 6600ae0674bc685c4756a040b4db47e927f2e15e. 2020-07-24length validators for string fieldsRené 'Necoro' Neumann4-3/+9 2020-07-24Fix handling of prefilling the description field on adding a new expense.René 'Necoro' Neumann1-9/+6 2020-07-24Remove translation hackRené 'Necoro' Neumann1-7/+1 2020-07-24Improved debuggingRené 'Necoro' Neumann2-1/+2 2020-07-23RestructureRené 'Necoro' Neumann51-2/+3 2020-07-22Do not write bytecode for local debug runningRené 'Necoro' Neumann1-1/+4 2020-07-22Remove left over mention of jquery-uiRené 'Necoro' Neumann1-6/+1 2020-07-22Add simplejson as a dependencyRené 'Necoro' Neumann1-0/+1 2020-07-22Settings splittingRené 'Necoro' Neumann2-5/+3 2020-07-22Add flipflopRené 'Necoro' Neumann1-0/+1