<s> from datetime import datetime <EOL> from actstream . managers import ActionManager , stream <EOL> class MyActionManager ( ActionManager ) : <EOL> @ stream <EOL> def testfoo ( self , obj , time = None ) : <EOL> if time is None : <EOL> time = datetime . now ( ) <EOL> return obj . actor_actions . filter ( timestamp__lte = time ) <EOL> @ stream <EOL> def testbar ( self , verb ) : <EOL> return { '<STR_LIT>' : verb } </s>
