#17371: The rst contents directive does not work with sagenb (wrong anchors)
----------------------------+------------------------
Reporter: tmonteil | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: notebook | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by tmonteil):
The problem appears when i upload the rst file directly from the notebook.
For the table of contents directive, you can have a look at
http://docutils.sourceforge.net/docs/ref/rst/directives.html#table-of-
contents
Now i tried to translate it into a sws file first, and i get the following
error:
{{{
$ sage -rst2sws file.rst file.sws
Traceback (most recent call last):
File "/opt/sagemath/sage-6.3/src/bin/sage-rst2sws", line 136, in
<module>
W = nb.create_new_worksheet(title, 'admin')
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/notebook.py", line 459,
in create_new_worksheet
if username!='pub' and self.user_manager().user_is_guest(username):
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/user_manager.py", line
184, in user_is_guest
return self.user(username).is_guest()
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/user_manager.py", line
112, in user
return self._user(username)
File "/opt/sagemath/sage-6.3/local/lib/python2.7/site-
packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/user_manager.py", line
544, in _user
raise LookupError("no user '{}'".format(username))
LookupError: no user 'admin'
}}}
This problem seems unrelated to the `contents` directive. Not sure whether
i have to open another ticket for that.
--
Ticket URL: <http://trac.sagemath.org/ticket/17371#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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.