I have a Sage server since 2 years; I am switching to 4.4 and sagenb-0.8.14. I must patch the notebook to make ldap identification.
I tried to reproduce exactly what I did one year ago with sage 4-5.2 and sagenb-0.8.2. The idea is to add a script notebook_ldap.py which do the job, and pach avatars.py to use it. 1) I patch avatars.py in sagenb-0.8-14. I add one line at the begining of avatars.py (the line is from notebook_ldap import *): ##################################################################### # Copyright (C) 2007 Alex Clemesha <cleme...@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ ##################################################################### # added for ldap identification from notebook_ldap import * import crypt import os from random import randint 2) the file notebook_ldap.py is in the same directory as avatars.py (./src/sagenb/sagenb/notebook/). 3) the I rebuild a spkg: tar cf sagenb-0.8.14.spkg sagenb-0.8.14 (yes sagenb-0.8.14.spkg is changed). 4)then I do: sage -f sagenb-0.8.14.spkg everything seems ok. 5) lets go: >sage >sage: notebook() I get: sage2/Build/sage-4.7/devel/sagenb/sagenb/notebook/avatars.py in <module>() 10 # added for ldap identification 11 ---> 12 from notebook_ldap import * 13 import crypt 14 import os ImportError: No module named notebook_ldap So what happens ? I think I did the same thing 1 yers ago.... 6) After that I did: sage -upgrade no change. my script notebook_ldap.py is simple: "" Simple ldap identification. """ import sys,ldap class notebook_ldap: def __init__(self): .... def start(self): # we want to test the connection; thus all this cannot go # in __init__ ... and so on. WHY avatars.py does not find notebook_ldap.py ? Thank you in advance ! t.d. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
<<attachment: tdumont.vcf>>