Exemple #1
0
    def insert(self):

        lawrence = User()
        lawrence.display_name = "Lawrence L."
        lawrence.email = "*****@*****.**"
        lawrence.password = "******"
        lawrence.profile = Profile.TRUSTED_USER
        lawrence.config = UserConfig()
        self._session.add(lawrence)

        bob = User()
        bob.display_name = "Bob i."
        bob.username = "******"
        bob.email = "*****@*****.**"
        bob.password = "******"
        bob.profile = Profile.TRUSTED_USER
        bob.config = UserConfig()
        self._session.add(bob)

        reader = User()
        reader.display_name = "John Reader"
        reader.email = "*****@*****.**"
        reader.password = "******"
        reader.profile = Profile.USER
        reader.config = UserConfig()
        self._session.add(reader)
Exemple #2
0
 def insert(self):
     u = User()
     u.display_name = "Global manager"
     u.username = "******"
     u.email = "*****@*****.**"
     u.password = "******"
     u.profile = Profile.ADMIN
     u.config = UserConfig()
     self._session.add(u)