Browse Source

Including email address with user object so that it shows up properly in the settings panel.

Dan Helfman 10 years ago
parent
commit
58d0450ff5
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      model/User.py
  2. 1
    0
      model/test/Test_user.py

+ 1
- 0
model/User.py View File

@@ -485,6 +485,7 @@ class User( Persistent ):
485 485
     d = Persistent.to_dict( self )
486 486
     d.update( dict(
487 487
       username = self.username,
488
+      email_address = self.__email_address,
488 489
       storage_bytes = self.__storage_bytes,
489 490
       group_storage_bytes = self.__group_storage_bytes,
490 491
       rate_plan = self.__rate_plan,

+ 1
- 0
model/test/Test_user.py View File

@@ -99,6 +99,7 @@ class Test_user( object ):
99 99
     d = self.user.to_dict()
100 100
 
101 101
     assert d.get( "username" ) == self.username
102
+    assert d.get( "email_address" ) == self.email_address
102 103
     assert d.get( "storage_bytes" ) == self.user.storage_bytes
103 104
     assert d.get( "group_storage_bytes" ) == self.user.group_storage_bytes
104 105
     assert d.get( "rate_plan" ) == self.user.rate_plan

Loading…
Cancel
Save