Beispiel #1
0
    def attemptLogin(self):
	    print "Stand back! We're going to attempt a login.\n"

	    username = self.ui.username.text()
	    password = self.ui.password.text()
	    
	    Logon.connectToPWSDrives(username,password)
Beispiel #2
0
    def attemptLogin(self):
	    print "Stand back! We're going to attempt a login.\n"

	    username = self.ui.username.text()
	    password = self.ui.password.text()
	    
	    Logon.connectToPWSDrives(username, password)
Beispiel #3
0
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU Affero General Public License for more details.
   *
   * You should have received a copy of the GNU Affero General Public License
   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   *
   */
"""

if __name__ != '__main__':
    import World
    sWorld = World.World()
    import Logon
    sLogon = Logon.Logon()
    import logging
    import logging.handlers
    slogger = logging.getLogger("FrostCore")
    ch = logging.StreamHandler()
    dh = logging.FileHandler("FrostCore.log")
    ch.setLevel(logging.INFO)
    dh.setLevel(logging.INFO)
    dhformatter = logging.Formatter(
        "%(asctime)s - %(module)s::%(funcName)s#%(lineno)s - %(message)s")
    chformatter = logging.Formatter("%(asctime)s: %(message)s", "%H:%M")
    ch.setFormatter(chformatter)
    dh.setFormatter(dhformatter)
    slogger.addHandler(ch)
    slogger.addHandler(dh)
    slogger.setLevel(logging.DEBUG)
Beispiel #4
0
#!/usr/bin/python
import sys
import Logon

from PySide import QtCore, QtGui
from gui.MainWindow import MainWindow

if __name__ == "__main__":
    # Basic initialising of the application, loading our main widget templates
    app = QtGui.QApplication(sys.argv)
    window = MainWindow()
    
    window.show()
    Logon.disconnectDrives()

    sys.exit(app.exec_())
Beispiel #5
0
#!/usr/bin/python
import sys
import Logon

from PyQt4 import QtCore, QtGui
from gui.MainWindow import MainWindow

if __name__ == "__main__":
    # Basic initialising of the application, loading our main widget templates
    app = QtGui.QApplication(sys.argv)
    window = MainWindow()

    window.show()
    Logon.disconnectDrives()

    sys.exit(app.exec_())