Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/t/i/TicketTracker-HEAD/web/views.py   TicketTracker(Download)
			for task in story.task_set.all():
				if task.state != 'TO_CLOSED':
					story_action = models.StoryAction()
					story_action.action = 'TO_CLOSED'
					story_action.task = task
			for task in story.task_set.all():
				if task.state != 'TO_CLOSED':
					story_action = models.StoryAction()
					story_action.action = 'TO_CLOSED'
					story_action.task = task
			for task in story.task_set.all():
				if task.state == 'TO_CLOSED':
					story_action = models.StoryAction()
					if to_column == 'WAITING':
						story_action.action = 'TO_WAITING'
	state = 'TO_%s' % state.upper()
 
	story_action = models.StoryAction()
	story_action.action = state
	story_action.task = task