Platform Team/Server Kit/sugar-unit: Difference between revisions
m →Actions |
|||
| Line 28: | Line 28: | ||
=== Actions === | === Actions === | ||
The building | The building blocks of sugaroid scenarios are actions. Actions are objects of classes inherited from {{Code|libsugaroid.context.Action}}. Action classes represent one particular aspect of sugar client behaviour, e.g., activation or backup. | ||
The simple scenario looks like: | The simple scenario looks like: | ||
from libsugaroid.actions import Activation, Registration, Presence, Backup | from libsugaroid.actions import Activation, Registration, Presence, Backup | ||
def main(context, args): | def main(context, args): | ||
context.call(Activation) | context.call(Activation) | ||