Ticket #6856: trac_6856-fix_account_settings_cancel.patch

File trac_6856-fix_account_settings_cancel.patch, 931 bytes (added by wjp, 12 years ago)
  • sage/server/notebook/twist.py

    # HG changeset patch
    # User Willem Jan Palenstijn <wpalenst@math.leidenuniv.nl>
    # Date 1251817825 -7200
    # Node ID e975771207c6e8cfd306cae4e6ddafb145655721
    # Parent  b666039111833ca42320ee18f7f0c7130d8070e0
    Ticket #6856: set username template to account_settings.html to fix cancel button
    
    diff -r b66603911183 -r e975771207c6 sage/server/notebook/twist.py
    a b  
    10011001            return http.RedirectResponse('/home/%s' % self.username)
    10021002       
    10031003        template_dict = {}
     1004        template_dict['username'] = self.username
    10041005        template_dict['autosave_intervals'] = ((i, ' selected') if notebook.user(self.username)['autosave_interval']/60 == i else (i, '') for i in range(1, 10, 2))
    10051006        template_dict['email'] = notebook.conf()['email']
    10061007        if template_dict['email']: