Esempio n. 1
0
    def __init__(self, *args):
        QtGui.QWidget.__init__(self,None)
        self.ui = Ui_goodbyeWidget()
        self.ui.setupUi(self)

        lang = KGlobal.locale().language()

        if lang == "hu":
            self.helpPageUrl = "http://www.facebook.com/blackpantheros"
        else:
            self.helpPageUrl = "http://www.blackpantheros.eu"

        self.smoltUrl = "http://backend.blackpanther.hu"

        users = partition.allUsers()
        
        # ittkapcsoldki
        if not users:
            self.ui.migrationGroupBox.hide()
        #idaig

        self.ui.buttonSystemSettings_2.connect(self.ui.buttonSystemSettings_2, SIGNAL("clicked()"), self.startSmolt)
        self.ui.buttonMigration.connect(self.ui.buttonMigration, SIGNAL("clicked()"), self.startMigration)
        self.ui.buttonSystemSettings.connect(self.ui.buttonSystemSettings, SIGNAL("clicked()"), self.startSystemSettings)
        self.ui.buttonHelpPages.connect(self.ui.buttonHelpPages, SIGNAL("clicked()"), self.startHelpPages)
Esempio n. 2
0
    def __init__(self, *args):
        QtGui.QWidget.__init__(self, None)
        self.ui = Ui_goodbyeWidget()
        self.ui.setupUi(self)

        lang = KGlobal.locale().language()

        if lang == "tr":
            self.helpPageUrl = "http://www.pardus.org.tr/destek"
        else:
            self.helpPageUrl = "http://www.pardus.org.tr/eng/support"

        self.smoltUrl = "http://smolt.pardus.org.tr:8090"

        users = partition.allUsers()
        if not users:
            self.ui.migrationGroupBox.hide()

        self.ui.buttonSystemSettings_2.connect(self.ui.buttonSystemSettings_2,
                                               SIGNAL("clicked()"),
                                               self.startSmolt)
        self.ui.buttonMigration.connect(self.ui.buttonMigration,
                                        SIGNAL("clicked()"),
                                        self.startMigration)
        self.ui.buttonSystemSettings.connect(self.ui.buttonSystemSettings,
                                             SIGNAL("clicked()"),
                                             self.startSystemSettings)
        self.ui.buttonHelpPages.connect(self.ui.buttonHelpPages,
                                        SIGNAL("clicked()"),
                                        self.startHelpPages)
Esempio n. 3
0
    def addUsers(self):
        "Searches old users and adds them to UserListViewWidget"
        self.users = partition.allUsers()
        for user in self.users:
            part, parttype, username, userdir = user
            if parttype == "Windows XP":
                widget = UserItemWidget(self.ui.listUsers, unicode(username), unicode(part), iconXP)
            elif parttype =="Windows Vista":
                widget = UserItemWidget(self.ui.listUsers, unicode(username), unicode(part), iconVista)

            widget.setData(user)

            widgetItem = UserItemList(self.ui.listUsers, widget)
            self.ui.listUsers.setItemWidget(widgetItem, widget)
Esempio n. 4
0
    def addUsers(self):
        "Searches old users and adds them to UserListViewWidget"
        self.users = partition.allUsers()
        print "len(users)=%d" % len(self.users)
        for user in self.users:
            part, parttype, username, userdir = user
            if parttype == "Windows XP":
                widget = UserItemWidget(self.ui.listUsers, unicode(username), unicode(part), iconXP)
            elif parttype =="Windows Vista":
                widget = UserItemWidget(self.ui.listUsers, unicode(username), unicode(part), iconVista)

            widget.setData(user)

            widgetItem = UserItemList(self.ui.listUsers, widget)
            self.ui.listUsers.setItemWidget(widgetItem, widget)
Esempio n. 5
0
    def __init__(self, *args):
        QtGui.QWidget.__init__(self,None)
        self.ui = Ui_goodbyeWidget()
        self.ui.setupUi(self)

        lang = KGlobal.locale().language()

        if lang == "tr":
            self.helpPageUrl = "http://www.pardus.org.tr/destek"
        else:
            self.helpPageUrl = "http://www.pardus.org.tr/eng/support"

        self.smoltUrl = "http://smolt.pardus.org.tr:8090"

        users = partition.allUsers()
        if not users:
            self.ui.migrationGroupBox.hide()

        self.ui.buttonSystemSettings_2.connect(self.ui.buttonSystemSettings_2, SIGNAL("clicked()"), self.startSmolt)
        self.ui.buttonMigration.connect(self.ui.buttonMigration, SIGNAL("clicked()"), self.startMigration)
        self.ui.buttonSystemSettings.connect(self.ui.buttonSystemSettings, SIGNAL("clicked()"), self.startSystemSettings)
        self.ui.buttonHelpPages.connect(self.ui.buttonHelpPages, SIGNAL("clicked()"), self.startHelpPages)
Esempio n. 6
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2009 TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#

from migration.utils import partition

users = partition.allUsers()
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2009 TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#

from migration.utils import partition

print "Migration USER"
users = partition.allUsers()
print len(users)