#NEWLINE# @ classmethod #NEWLINE# def parse_req( self , request , rqdata , **kw ) : #NEWLINE# #INDENT# '\n        Handle the request parameters issued by Ext.ensible CalendarPanel.\n        ' #NEWLINE# assert ( not ( 'filter' in kw ) ) #NEWLINE# fkw = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# endDate = rqdata . get ( constants . URL_PARAM_END_DATE , None ) #NEWLINE# if endDate : #NEWLINE# #INDENT# d = parsedate ( endDate ) #NEWLINE# fkw . update ( start_date__lte = d ) #NEWLINE# #UNINDENT# startDate = rqdata . get ( constants . URL_PARAM_START_DATE , None ) #NEWLINE# if startDate : #NEWLINE# #INDENT# d = parsedate ( startDate ) #NEWLINE# fkw . update ( start_date__gte = d ) #NEWLINE# #UNINDENT# fkw . update ( event_type__is_appointment = True ) #NEWLINE# flt = models . Q ( ** fkw ) #NEWLINE# me = ( request . subst_user or request . user ) #NEWLINE# for_me = models . Q ( user__isnull = True ) #NEWLINE# for_me |= models . Q ( user = me ) #NEWLINE# for_me |= models . Q ( assigned_to = me ) #NEWLINE# if me . partner : #NEWLINE# #INDENT# for_me = ( fkw | models . Q ( guest__partner = me . partner ) ) #NEWLINE# #UNINDENT# if False : #NEWLINE# #INDENT# flt = ( flt & for_me ) #NEWLINE# #UNINDENT# kw . update ( filter = flt ) #NEWLINE# return kw