<s> from __future__ import absolute_import , with_statement <EOL> __all__ = [ '<STR_LIT>' ] <EOL> from treeio . events . models import Event <EOL> from treeio . events . forms import EventForm <EOL> from treeio . core . api . handlers import ObjectHandler <EOL> class EventHandler ( ObjectHandler ) : <EOL> "<STR_LIT>" <EOL> model = Event <EOL> form = EventForm <EOL> @ classmethod <EOL> def resource_uri ( cls , obj = None ) : <EOL> object_id = "<STR_LIT:id>" <EOL> if obj is not None : <EOL> object_id = obj . id <EOL> return ( '<STR_LIT>' , [ object_id ] ) <EOL> def check_create_permission ( self , request , mode ) : <EOL> return True <EOL> def flatten_dict ( self , request ) : <EOL> dct = super ( self . __class__ , self ) . flatten_dict ( request ) <EOL> dct [ "<STR_LIT:date>" ] = None <EOL> dct [ "<STR_LIT>" ] = None <EOL> return dct </s>
