correctly select events traversing the end of a month
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4110 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									a94f3b9f40
								
							
						
					
					
						commit
						1d5342c4c7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -180,7 +180,8 @@ class CalendarInfo(NodeView): | |||
|             relViews = (view.childViewFactory(r, self.request, contextIsSecond=True) | ||||
|                             for r in tEvent.getChildRelations([hasType], sort=None)) | ||||
|             events = sorted((rv for rv in relViews | ||||
|                             if rv.adapted.start >= start and rv.adapted.start < end), | ||||
|                             #if rv.adapted.start >= start and rv.adapted.start < end), | ||||
|                             if rv.adapted.end >= start and rv.adapted.start <= end), | ||||
|                         key=lambda x: (x.adapted.start, x.adapted.end)) | ||||
|             for ev in events: | ||||
|                 startDay = ev.adapted.start.day | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm