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.
b226e31b19d923c4f06c71db5940bd169c7da38&follow=1'>Merged loopChimrod1-16/+11 2011-08-30Set timeout for feed fetchingChimrod3-7/+19 2011-02-18gem: include executable wrappers in bin/*Eric Wong1-0/+3 2011-02-18httpfetcher: accept gzip encoding from serversEric Wong1-5/+14 2011-02-18add "parts" config optionEric Wong3-10/+40 2011-01-08fix typo breaking debug-updated optionLucas Nussbaum1-2/+2 2010-12-01Add a vim-modeline for the config example.René 'Necoro' Neumann1-0/+2 2010-12-01Encode the folder in UTF7Lucas Nussbaum1-1/+17 2010-12-01robustify config parsingLucas Nussbaum1-11/+22 2010-11-30Also add reupload_if_updated for MaildirsLucas Nussbaum1-1/+4 2010-11-30Add a reupload_if_updated option (default: true)Lucas Nussbaum4-8/+20 2010-07-05Patch to use feed item pubDate in Maildir file namesBernie Maier1-6/+10 2010-04-18update websiteLucas Nussbaum2-2/+15 2010-04-18prepare releaseLucas Nussbaum4-5/+5 2010-04-18provide a way to disable SSL certificate verificationLucas Nussbaum4-1/+12 2010-04-18update changelogLucas Nussbaum1-0/+4 2010-04-18Update rubyimap.rbLucas Nussbaum1-5/+38 2010-03-17Document the maildir targetSandra Snan3-5/+5 2009-12-26Avoid using "acme.com"Lucas Nussbaum4-10/+19 2009-09-04fix to use Message-Id instead of X-CacheIndexLucas Nussbaum1-5/+2 2009-09-03added the forth arg to ConfigFeed::new for maildirLucas Nussbaum1-1/+1