#!/usr/bin/env python # -*- coding: utf-8 -*- ''' SampleAction.py This file contains a template to follow for creating new action classes. The filename should be exactly the same as the class name (excluding the .py extension). ''' from Action import Action from Exceptions import InvalidInput class Sample(Action.ActionNode): ''' The class must extend Action.ActionNode because the parent class has the load and save functions. ''' def __init__(self): ''' The instance variables will be set with a load function that uses set-attr, so put them equal to none below ''' self.sampleVar = None def execute(self): ''' Put the logic in here to do what you want to do. You may assume at this point that you have all the variables set, and DataManager will do type-checking, but you probably want to do your own custom checking past types.''' pass