id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
2221	MotdResource gets stale in finger15.py	gfalcon	jerub	"In listings/finger/finger15.py, {{{MotdResource}}} is constructed by being passed a users dictionary object.

However, 30 seconds later, in {{{FingerService._read}}}, the dictionary is updated by throwing it away and constructing a new one.  {{{MotdResource}}} has no way of knowing this, and maintains a reference to the original, now-stale dictionary.

I think the easiest fix is to add the line

{{{self.users={} }}}

to {{{FingerService.__init__}}}, and replacing said line in {{{FingerService._read}}} with

{{{self.users.clear()}}},

modifying the singleton dictionary in place so that {{{MotdResource}}} dictionary reference remains fresh."	defect	closed	low		core	duplicate	documentation tutorial				
