Title: Theory / Unimportant / CS / Softw / SRS / Anki; / Add-ons / 2.1
Tags: hasNotNewEffectReturnsMeaning some_instruction FromVariables FromInstruction computer_to_instruction automatedNewLineAfterCommaSpace
On every note of this deck, unless a note says otherwise:
Chapter: https://apps.ankiweb.net/docs/addons21.html
Chapter: https://apps.ankiweb.net/docs/addons21.html

Question: Anki's 2.1.x's QT version
Answer: 5.9
Chapter: https://apps.ankiweb.net/docs/addons21.html
Section: Overview

Variable: addons21/addonName/__init__.py
Meaning: The initial file run by anki when executing addonName
Section: Addo-on folders
Typ: Folder

Implementation: A dictionnary from field's name to its value
Section: The Collection
Chapter: https://apps.ankiweb.net/docs/addons21.html
Name: Note

Implementation: Returns the set of cards satysfying the query in mw
Section: The Collection
Chapter: https://apps.ankiweb.net/docs/addons21.html
Variables: col a collectio
Name: col.findCards(query)

Instruction: col.db.executemany(query,data)
Effect: For each elements [var_1, ..., var_n] of the array data, run col.db.execute(query,var_1, ..., var_n)
Section: The Database
Variables: col a collection

Name: A hook
Definition: Take some arguments and return no value
Chapter: https://apps.ankiweb.net/docs/addons21.html
Section: Hooks
Context: anki

Name: A filter
Definition: Take an argument and return it, possibly modified
Chapter: https://apps.ankiweb.net/docs/addons21.html
Section: Hooks

Name: Monkey patching
Definition: Modify a function that does not already have a hook
Chapter: https://apps.ankiweb.net/docs/addons21.html
Section: Hooks

Instruction: wrap(
  function,
  function2,"around"
)
Section: Hooks
Returns: A function, executing function2 before and after function

Variable: onUpdateHook
Meaning: Javascript hook which fires after the new card has been placed in the dom, but before it is shown
Section: Hooks

Variable: onShownHook
Meaning: Javascript's hook which fires after the card has faded in
Section: Hooks

Variable: anki/
Meaning: all the "backend" code - opening collections, fetching and answering cards, and so on. It is used by Anki’s GUI, and can also be included in command line programs to access Anki decks without the GUI.
Section: Overview
Typ: Folder

Variable: aqt/
Meaning: the UI part of Anki
Section: Overview
Typ: Folder

Variable: addons21/
Meaning: The folder of add-ons for anki 2.1.x
Section: Overview
Typ: Folder

Variable: addons21/addonName/meta.json
Meaning: Informations regarding the origine of the add-on
Section: Add-on folders
Typ: File

Instruction: col.sched.answerCard(card,ease)
Effect: Answer card card from mv with ease
Section: The Collection
Variables: col a collection,

Instruction: col.db.execute(
  query,
  var_1,...,var_n
)
Effect: Execute the query in col, replacing the i-th ? by var_i
Section: The Database
Variables: col a collection

Instruction: addHook(hookName, function)
Effect: Add function as hook on hookName
Section: Hooks

Instruction: wrap(
  function,
  function2
)
Section: Hooks
Returns: A function, executing function and then function2

Instruction: wrap(
  function,
  function2,"before"
)
Section: Hooks
Returns: A function, executing function2 and then function

Variable: /addons21/addonName/config.json
Meaning: A list of variables, used by the python code, editable in the add-on manager
Section: Hooks
Typ: File

Instruction: mw.addonManager.getConfig(name)
Effect: Obtain the variables in config.json of the addon name
Section: Hooks

Variable: _keyName
Meaning: Variable reserved for Anki future use
Section: Hooks

Variable: addons21/addonName/user_files
Meaning: Files that are not replaced when update appens
Section: Hooks
Typ: File

Instruction: aqt.utils.showInfo
Effect: Write information for debugging purpose
Section: Debugging

Name: tooltip
Definition: Some information over some thing, such as
Page: http://zetcode.com/gui/pyqt5/firstprograms/
Context: QT
French: info bulle