Ejemplo n.º 1
0
def loginUser():
    return login.login(request.get_json(force=True))    
 def on_crawler_job_button_clicked(self):
     self.admin_login = login.login()
     #self.admin_login.show()
     #self.admin_login.exec_()
     if self.admin_login.exec_() == QtGui.QDialog.Accepted:
         self.stackedWidget.setCurrentIndex(2)
Ejemplo n.º 3
0
import unittest
from Login.login import login, tearDown

login()
tearDown()

if __name__ == '__main__':
    unittest.main()
Ejemplo n.º 4
0
from selenium import webdriver
from Login.login import login
from Login.register import register
from Village.fields import fields_scan

browser = webdriver.Chrome(executable_path="chromedriver.exe")

# Login Information
username = '******'
password = '******'
mail = '*****@*****.**'
tribe = 'roman'
location = '-+'
referrer = ''
register_on = False

# Upgrade Fields
upgradefields = 1
#upgrademode =



if register_on == True:
    register(browser, username, password, mail, tribe, location, referrer)
elif register_on == False:
        login(browser, username, password)


fields_scan(browser, upgradefields)
Ejemplo n.º 5
0
from DropDown import DropDown
from inventory import InventoryMenu
from patrol import PatrolMenu
from Contract import ContractMenu
from Affiche import AfficheMenu
from requirement import RequirmentMenu
from Asset import AssetMenu
from WorkOrder import WorkOrderMenu
from Energy import EnergyMenu
from Maintain import MaintainMenu
from Visitor import VisitorMenu
from inspection import InspectionMenu
from Knowledge import KnowledgeMenu
from payment import paymentMenu
login = login()
login.login()
a = login.login1()
sleep(2)
if a == "第一次登陆":
    project = project()
    project.project()
dow = download()
dow.download()
DropDown = DropDown()
# 公告
affiche = AfficheMenu()
# # 巡检
# inspection=PatrolMenu()
# # 服务台
# requirment=RequirmentMenu()
# # 工单(未走)
Ejemplo n.º 6
0
from Login import login

token = login.login()
headers = {
    "content-type": "application/json",
    "access_shop": "199",
    "access_version": "development",
    "access_token": token
}