<s> import groundstation . proto . channel_list_pb2 <EOL> from groundstation . gref import Gref <EOL> from groundstation import logger <EOL> log = logger . getLogger ( __name__ ) <EOL> def handle_newgreftip ( self ) : <EOL> proto_channels = groundstation . proto . channel_list_pb2 . ChannelList ( ) <EOL> proto_channels . ParseFromString ( self . payload ) <EOL> for channel in proto_channels . channels : <EOL> for gref in channel . grefs : <EOL> _gref = Gref ( self . station . store , channel . channelname , gref . identifier ) <EOL> tips = [ tip . tip for tip in gref . tips ] <EOL> self . station . update_gref ( _gref , tips , True ) </s>
