first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
from Config import *
|
||||
import sys
|
||||
import datetime
|
||||
from FlowerServices import Flower,SuperFlower
|
||||
from AccessControl import Access
|
||||
|
||||
file1 = open('pins.csv', 'r')
|
||||
Lines = file1.readlines()
|
||||
|
||||
newuser = 'janine'
|
||||
newhush = 'demaat196'
|
||||
|
||||
# create user in the db.
|
||||
f = SuperFlower(newuser, newhush)
|
||||
if f.createNewTable():
|
||||
# login as new user
|
||||
u = Flower(newuser, newhush)
|
||||
|
||||
count = 0
|
||||
# Strips the newline character
|
||||
for line in Lines:
|
||||
count += 1
|
||||
line=line.strip()
|
||||
print(line)
|
||||
(org, date, id, name, pwd) = line.split('","',5)
|
||||
org = org[1:]
|
||||
pwd = pwd[:-2]
|
||||
u.add(org, name, id, pwd, 0, date)
|
||||
Reference in New Issue
Block a user