#5141: [with patch, needs work] tinymce should be disabled on published
worksheets
----------------------+-----------------------------------------------------
Reporter: jason | Owner: boothby
Type: defect | Status: reopened
Priority: major | Milestone: sage-3.3
Component: notebook | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Changes (by mabshoff):
* status: closed => reopened
* resolution: fixed =>
* summary: [with patch, positive review] tinymce should be disabled on
published worksheets => [with patch, needs
work] tinymce should be disabled on published
worksheets
Comment:
Ooops, this did break some doctests in cell.py:
{{{
sage -t -long "devel/sage/sage/server/notebook/cell.py"
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.alpha4/devel/sage/sage/server/notebook/cell.py",
line 175:
sage: C.html()
Exception raised:
Traceback (most recent call last):
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_9[3]>", line 1, in <module>
C.html()###line 175:
sage: C.html()
File "/scratch/mabshoff/sage-3.3.alpha4/local/lib/python2.5/site-
packages/sage/server/notebook/cell.py", line 184, in html
if JEDITABLE_TINYMCE and not self.worksheet().is_published():
AttributeError: 'NoneType' object has no attribute 'is_published'
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.alpha4/devel/sage/sage/server/notebook/cell.py",
line 178:
sage: C.html(do_math_parse=True)
Exception raised:
Traceback (most recent call last):
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/mabshoff/sage-3.3.alpha4/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_9[5]>", line 1, in <module>
C.html(do_math_parse=True)###line 178:
sage: C.html(do_math_parse=True)
File "/scratch/mabshoff/sage-3.3.alpha4/local/lib/python2.5/site-
packages/sage/server/notebook/cell.py", line 184, in html
if JEDITABLE_TINYMCE and not self.worksheet().is_published():
AttributeError: 'NoneType' object has no attribute 'is_published'
**********************************************************************
}}}
Shame on me for giving this a positive review :p
Reopened.
Cheers,
Michel
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5141#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---