Changes

Jump to navigation Jump to search
m
Line 28: Line 28:  
=== Actions ===
 
=== Actions ===
   −
The building block of sugaroid scenarios are actions. These 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 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)

Navigation menu