#7376: searching published worksheets does not work to just search for username
---------------------------+------------------------------------------------
Reporter: jason | Owner: boothby
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.3
Component: notebook | Keywords:
Work_issues: | Author:
Reviewer: | Merged:
---------------------------+------------------------------------------------
Comment(by mpatel):
It seems this will work:
{{{
#!diff
diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -1973,7 +1973,7 @@ class Worksheet(object):
"""
# Load the worksheet data file from disk.
filename = self.worksheet_html_filename()
- r = (self.owner().lower() + ' ' + self.name().lower() + ' '
+ r = (self.publisher().lower() + ' ' + self.name().lower() + ' '
+ open(filename).read().lower())
# Check that every single word is in the file from disk.
for W in split_search_string_into_keywords(search):
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7376#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---