#17645: load("object.sobj") is broken in the new sagenb
-------------------------------------------------+-------------------------
       Reporter:  novoselt                       |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  blocker                        |    Milestone:  sage-6.5
      Component:  notebook                       |   Resolution:
       Keywords:                                 |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  Reported upstream. Developers  |  Work issues:
  acknowledge bug.                               |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by jdemeyer):

 I believe this commit is responsible:
 {{{
 #!diff
 commit 2ea8adb1158ffb5048610552ad36df55fd7ee417
 Author: kcrisman <[email protected]>
 Date:   Wed Dec 3 14:29:38 2014 -0500

     Make init.sage work

     Ideally, this would later be changed to use `attach` again.

 diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
 index 53048a1..6507341 100644
 --- a/sagenb/notebook/worksheet.py
 +++ b/sagenb/notebook/worksheet.py
 @@ -3044,7 +3044,8 @@ sage.misc.latex.EMBEDDED_MODE=True
  # gets removed from the sage library.
  from sagenb.notebook.all import *
  try:
 -    attach(os.path.join(os.environ['DOT_SAGE'], 'init.sage'))
 +    from sage.misc.preparser import load
 +    load(os.path.join(os.environ['DOT_SAGE'], 'init.sage'),
 globals(),attach=True)
  except (KeyError, IOError):
      pass
      """ % (os.path.join(os.path.abspath(self.data_directory()),''),
 misc.DIR)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17645#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.

Reply via email to