root/storage/auth_file.py

Revision 58, 0.7 kB (checked in by ploum, 22 months ago)

First step to manage your BTS account !

Line 
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3import sys, string, xml.dom.minidom, os
4
5####### Storage of username/password for the BTS ########
6class user:
7
8        def __init__(self) :
9                self.auth_file ="auth.txt"
10               
11        def set_bts(self,name) :
12                self.bts_name = name
13
14        # If you want to provide another way to manage login/password
15        # you have to implement those functions
16        def login(self):
17                return("")
18
19        def password(self):
20                return("")
21
22        # Warning ! This function only change the stored login
23        # it does NOT change the login in the remote BTS
24        def change_login(self,string):
25                return("blabla")
26
27        # Warning ! This function only change the stored password
28        # it does NOT change the password in the remote BTS
29        def change_password(self,string):
30                return("blabla")
Note: See TracBrowser for help on using the browser.