comparison MoinMoin/user.py @ 3103:4ede355c6089

bugfix for renaming of users (/MoinMoinBugs/RenamingUserAllowsOldUsernameToLogin) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 23 Feb 2008 19:43:26 +0100
parents 65322abb0a33
children a7c1680aeaa0
comparison
equal deleted inserted replaced
3102:a78bf6977df8 3103:4ede355c6089
614 value = encodeDict(value) 614 value = encodeDict(value)
615 line = u"%s=%s\n" % (key, unicode(value)) 615 line = u"%s=%s\n" % (key, unicode(value))
616 data.write(line) 616 data.write(line)
617 data.close() 617 data.close()
618 618
619 arena = 'user'
620 key = 'name2id'
621 cache = caching.CacheEntry(self._request, arena, key, scope='wiki').remove()
622 try:
623 del self._request.cfg.cache.name2id
624 except:
625 pass
626
619 if not self.disabled: 627 if not self.disabled:
620 self.valid = 1 628 self.valid = 1
621 629
622 if not self.loaded: 630 if not self.loaded:
623 event = events.UserCreatedEvent(self._request, self) 631 event = events.UserCreatedEvent(self._request, self)