<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function <EOL> __all__ = [ '<STR_LIT>' ] <EOL> from django . utils import timezone <EOL> from sentry . models import Activity , Release <EOL> class ReleaseHook ( object ) : <EOL> def __init__ ( self , project ) : <EOL> self . project = project <EOL> def start_release ( self , version , ** values ) : <EOL> values . setdefault ( '<STR_LIT>' , timezone . now ( ) ) <EOL> Release . objects . create_or_update ( <EOL> version = version , <EOL> project = self . project , <EOL> values = values , <EOL> ) <EOL> def finish_release ( self , version , ** values ) : <EOL> values . setdefault ( '<STR_LIT>' , timezone . now ( ) ) <EOL> Release . objects . create_or_update ( <EOL> version = version , <EOL> project = self . project , <EOL> values = values , <EOL> ) <EOL> Activity . objects . create ( <EOL> type = Activity . RELEASE , <EOL> project = self . project , <EOL> ident = version , <EOL> data = { '<STR_LIT:version>' : version } , <EOL> datetime = values [ '<STR_LIT>' ] , <EOL> ) <EOL> def handle ( self , request ) : <EOL> raise NotImplementedError </s>
