Ticket #3240: 3240_4.patch

File 3240_4.patch, 1.5 KB (added by TimothyClemans, 14 years ago)

fixes issue found by Tom

  • sage/server/notebook/notebook.py

    # HG changeset patch
    # User Timothy Clemans <timothy.clemans@gmail.com>
    # Date 1213505160 25200
    # Node ID 8a1d5764cedd13eee9e8bcf1e345c690ad4f30ec
    # Parent  fe2aa0ac46c385b01c3e3b74e0478a9804205e29
    #3240 fix issue found by Tom
    
    diff -r fe2aa0ac46c3 -r 8a1d5764cedd sage/server/notebook/notebook.py
    a b class Notebook(SageObject): 
    431431        else:
    432432            dirname = '0'
    433433
    434         W = worksheet.Worksheet(worksheet_name, dirname,
     434        W = worksheet.Worksheet(worksheet_name, dirname, self,
    435435                                system = self.system(username),
    436436                                owner=username,
    437437                                docbrowser = docbrowser,
  • sage/server/notebook/worksheet.py

    diff -r fe2aa0ac46c3 -r 8a1d5764cedd sage/server/notebook/worksheet.py
    a b def worksheet_filename(name, owner): 
    105105    return owner + '/' + _notebook.clean_name(name)
    106106
    107107class Worksheet:
    108     def __init__(self, name, dirname, system, owner, docbrowser=False, pretty_print=False, auto_publish=False):
     108    def __init__(self, name, dirname, notebook, system, owner, docbrowser=False, pretty_print=False, auto_publish=False):
    109109
    110110        # Record the basic properties of the worksheet
    111111        self.__system   = system