Did I find the right examples for you? yes no

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/l/a/labmanager-HEAD/labmanager/sample_data.py   labmanager(Download)
from .db import db_session, init_db
from .models import LtUser, PermissionToLt, Laboratory, PermissionToLtUser
from .models import LearningTool, RLMS, PermissionToCourse, BasicHttpCredentials, ShindigCredentials, Course
 
def add_sample_users():
    #    
 
    lt1 = LearningTool(full_name = u"Deusto Moodle (LTI)", name = "deusto",
                     url = u"http://alud2.deusto.es/")
    db_session.add(lt1)
 
 
    lt2 = LearningTool(full_name = u"Ilias Stuttgart (LTI)", name = "stuttgart",
                     url = u"https://ilias3.uni-stuttgart.de")
    db_session.add(lt2)
    #    
 
    lt3 = LearningTool(full_name = u"UNED aLF (HTTP)", name = "uned",
                     url = u"https://www.innova.uned.es/")
    db_session.add(lt3)
    #    
 
    lt4 = LearningTool(full_name = u"School 1 at Graasp", name = "school1", url = u"http://graasp.epfl.ch/")
    db_session.add(lt4)
 

src/l/a/labmanager-HEAD/labmanager/views/authn.py   labmanager(Download)
from labmanager.babel import gettext
from ..application import app
from ..models import LabManagerUser, LtUser, LearningTool
 
login_manager = LoginManager()