STATE_TRANSITIONS dictionary values are changed to strings.
Our assumption that Python's functions and methods are first class members
and using the method names directly as dictionary values doesn't seem to
work. So we are using method names as strings in STATE_TRANSITIONS
dictionary and getting the method object using getattr.
#!/bin/bash# Generates epydoc for $target to $outdir, while ignoring $exclude# WARNING: The contents of $outdir are -deleted- before the running epydoc# This way there are no 'stale files' when the script finishes. outdir="../../wiki/html/epydoc" target="../app ../tests"exclude="django"echo "Cleaning out $outdir..."rm -f $outdir/*echo "Done."echoecho "Running epydoc..."echo "$target -> $outdir"echo "================="epydoc --html -v --show-private --inheritance=included --graph=all \ --parse-only --exclude=$exclude -o $outdir $targetecho "================="echo "Done."echoecho "Goodbye."