<s> '''<STR_LIT>''' <EOL> from models import DatedMessage <EOL> from django . conf import settings <EOL> def messaging ( request ) : <EOL> if request . user . is_authenticated ( ) : <EOL> qs = DatedMessage . objects . get_messages_for_user ( <EOL> request . user ) . order_by ( '<STR_LIT>' ) [ : settings . NUM_CONTEXT_MSGS ] <EOL> l = list ( qs ) <EOL> else : <EOL> l = [ ] <EOL> return { "<STR_LIT>" : l } </s>
