Ticket #7376: trac_7376-search_by_username.patch

File trac_7376-search_by_username.patch, 882 bytes (added by mpatel, 10 years ago)

Search by publisher. Apply to sagenb repo.

  • sagenb/notebook/worksheet.py

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1258040440 28800
    # Node ID 1df877c15d90d8aff2eed0e77f1c1d29f29b93f1
    # Parent  ff64332e66b9b48659d454b8791518fe518b1b77
    #7376/notebook: Search published worksheets by user (publisher) name, too
    
    diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
    a b class Worksheet(object): 
    19731973        """
    19741974        # Load the worksheet data file from disk.
    19751975        filename = self.worksheet_html_filename()
    1976         r = (self.owner().lower() + ' ' + self.name().lower() + ' '
     1976        r = (self.publisher().lower() + ' ' + self.name().lower() + ' '
    19771977             + open(filename).read().lower())
    19781978        # Check that every single word is in the file from disk.
    19791979        for W in split_search_string_into_keywords(search):