~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/user.py

  • Committer: Matt Giuca
  • Date: 2009-02-24 04:44:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1119.
  • Revision ID: matt.giuca@gmail.com-20090224044452-km2gcpvsqsoud0up
image-source/title.svg: Shrunk title to 42px (not 50px). This allows us to
    shrink the whole top bar.
ivle/webapp/coremedia/images/chrome/title.png: Updated from SVG.
ivle/webapp/coremedia/ivle.css: Shrunk header bar to 4em from 5.3em.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        user['local_password'] = self.context.passhash is not None
55
55
        return user
56
56
 
57
 
    @require_permission('edit')
58
 
    def PATCH(self, req, data):
59
 
        # XXX Admins can set extra fields
60
 
        # Note: Cannot change password here (use change_password named op)
61
 
 
62
 
        for f in user_fields_list:
63
 
            try:
64
 
                field = data[f]
65
 
                if isinstance(field, str):
66
 
                    field = unicode(field)
67
 
                setattr(self.context, f, field)
68
 
            except KeyError:
69
 
                continue
70
 
 
71
57
class UserSettingsView(XHTMLView):
72
58
    template = 'user-settings.html'
73
59
    appname = 'settings'