Mercurial > public > sg101
comparison gpp/legacy/management/commands/import_old_users.py @ 294:254db4cb6a86
Changes / scripts to import forums. Other tweaks and moving other import scripts to the legacy application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 05 Jan 2011 04:09:35 +0000 |
parents | a6357f2bcbbc |
children |
comparison
equal
deleted
inserted
replaced
293:c92fb89dbc7d | 294:254db4cb6a86 |
---|---|
138 u.set_unusable_password() | 138 u.set_unusable_password() |
139 | 139 |
140 u.save() | 140 u.save() |
141 | 141 |
142 p = u.get_profile() | 142 p = u.get_profile() |
143 p.location = row['user_from'] | 143 p.location = row['user_from'].decode('latin-1') |
144 p.occupation = row['user_occ'] | 144 p.occupation = row['user_occ'].decode('latin-1') |
145 p.interests = row['user_interests'] | 145 p.interests = row['user_interests'].decode('latin-1') |
146 p.profile_text = u'' | 146 p.profile_text = u'' |
147 p.hide_email = True if row['user_viewemail'] != '1' else False | 147 p.hide_email = True if row['user_viewemail'] != '1' else False |
148 p.signature = self.to_markdown(row['user_sig']) if row['user_sig'] else u'' | 148 p.signature = self.to_markdown(row['user_sig']) if row['user_sig'] else u'' |
149 p.time_zone = TIME_ZONES.get(row['user_timezone'], 'US/Pacific') | 149 p.time_zone = TIME_ZONES.get(row['user_timezone'], 'US/Pacific') |
150 p.use_24_time = False | 150 p.use_24_time = False |