changeset 3673:bcb50d97d2ef

user object: renamed 'loaded' attribute to '_loaded' so it does not get stored to disk
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Jun 2008 16:48:17 +0200
parents fee546fba271
children 8772197c9262
files MoinMoin/user.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Fri Jun 06 23:02:06 2008 +0200
+++ b/MoinMoin/user.py	Sat Jun 07 16:48:17 2008 +0200
@@ -326,7 +326,7 @@
         self.tz_offset = int(float(self._cfg.tz_offset) * 3600)
         self.language = ""
         self.real_language = "" # In case user uses "Browser setting". For language-statistics
-        self.loaded = False
+        self._loaded = False
         self.date_fmt = ""
         self.datetime_fmt = ""
         self.quicklinks = self._cfg.quicklinks_default
@@ -495,7 +495,7 @@
             self.valid = 1
 
         # Mark this user as loaded from disk, so UserCreatedEvent is not sent
-        self.loaded = True
+        self._loaded = True
 
         # If user data has been changed, save fixed user data.
         if changed:
@@ -627,7 +627,7 @@
         if not self.disabled:
             self.valid = 1
 
-        if not self.loaded:
+        if not self._loaded:
             event = events.UserCreatedEvent(self._request, self)
             events.send_event(event)