Changeset 0adc119c25eb7341fe2fb4e0f1275eaf2c2c9e34

Show
Ignore:
Timestamp:
05/30/07 10:26:56 (6 years ago)
Author:
iacopo <iacopo@…>
Children:
b6ca4f7b572c7c6263cca50968092fdf34575a4b
Parents:
37f5584b8cf05d997d8aa54f5365c007c5ef1190
git-committer:
iacopo <iacopo@…> (05/30/07 10:26:56)
Message:

Removed print.
Added log.debug()

git-svn-id:  https://labs.truelite.it/svn/octofuss/trunk@355 5a101938-5c21-0410-9b5a-a83d6f3706a9

Files:
12 modified

Legend:

Unmodified
Added
Removed
  • lib/octofuss/cluster/__init__.py

    r624195c r0adc119  
    1717 
    1818from octofuss.utils import hostup 
    19 from octofuss import art,config 
     19from octofuss import art,config,log 
    2020 
    2121 
     
    293293        def on_host_select(self,icon_view, clusterPath): 
    294294                selected = icon_view.get_selected_items() 
    295                 print selected 
    296295                if selected: 
    297296                        self.show_context_menu_host(None, (clusterPath,selected[0][0])) 
     
    397396                        self.change_app_content(s) 
    398397                except Exception, e: 
    399                         print e 
     398                        log.debug(str(e)) 
    400399                        self.restartRequired = True 
    401400                        self.__error_dialog(str(e)) 
     
    424423                cluster = res[0] 
    425424                host = res[1] 
    426                 print "Removing host "+host+" in cluster "+cluster 
     425                log.debug("Removing host "+host+" in cluster "+cluster) 
    427426                self.network[cluster].del_host(host) 
    428427                self.network.save() 
     
    524523                        pass 
    525524                except Exception, e: 
    526                         print e 
     525                        log.debug(str(e)) 
    527526 
    528527        def host_item_event(self,obj,event, cluster, clusterPath): 
     
    539538                        pass 
    540539                except Exception, e: 
    541                         print e 
     540                        log.debug(str(e)) 
    542541 
    543542                         
  • lib/octofuss/ldap/__init__.py

    r4f202e0 r0adc119  
    1616import octofuss.config as config 
    1717from octofuss.error import LdapError 
     18from octofuss import log 
    1819 
    1920CFGSEC = "LDAP" 
     
    5758                                result_set.append(result_data) 
    5859        if len(result_set) == 0: 
    59                 print "No Results." 
     60                log.debug("No Results.") 
    6061                end = False 
    6162                return None 
     
    7879                con.modify_s(dn,mod) 
    7980        else: 
    80                 print "Invalid dn entry to modify" 
     81                log.debug("Invalid dn entry to modify") 
    8182                raise LdapError("Invalid dn argument") 
    8283        return oldEntry 
  • lib/octofuss/packages/__init__.py

    r843f87b0 r0adc119  
    1515import gtk 
    1616import gobject 
     17from octofuss import log 
    1718from octofuss.error import DbEntry 
    1819from octofuss.cluster import * 
     
    205206             
    206207      def resp(self,response): 
    207             print response  
     208            log.debug(response) 
    208209 
    209210 
     
    351352                  numSel = selections[1][0][0] 
    352353            except IndexError: 
    353                   print "You must select a valid row!" 
     354                  log.debug("You must select a valid row!") 
    354355                  return 
    355356                               
     
    512513 
    513514      def changed(self , editable, treeview, entry): 
    514             print editable.get_chars(0,-1) 
     515            log.debug(editable.get_chars(0,-1)) 
    515516 
    516517      def insert(self, editable, treeview, entry): 
     
    595596            dict = {} 
    596597            dict =  [ adict[key] for key in self.dictSort(adict.keys()) ]  
    597             print dict.keys() 
     598            log.debug(dict.keys()) 
    598599            return dict 
    599600 
     
    624625 
    625626      def remove_clicked(self,button, treeview): 
    626             print "Da implementare" 
     627            log.debug("Da implementare") 
    627628       
    628629      def showDialog(self, message, type): 
  • lib/octofuss/packages/popolateDb.py

    rb09598d r0adc119  
    22from octofuss import config 
    33from octofuss import db 
     4from octofuss import log 
    45import sqlite 
    56from octofuss.packages.progressbar import * 
     
    3435      def updatePackages(self): 
    3536            """ Delete all packages and fill the Packages table  """ 
    36             print "Updating packages table..." 
     37            log.debug("Updating packages table...") 
    3738            self.cursor.execute("delete from packages") 
    3839            self.__insertPackages() 
  • lib/octofuss/packages/utils.py

    r843f87b0 r0adc119  
    1919from octofuss.error import DbEntry  
    2020from octofuss import db 
     21from octofuss import log 
    2122from octofuss.cluster import * 
    2223 
     
    4142                    cur.execute("insert into 'install_queue' (hostname,package,status,inserttime) values (%s,%s,%s,%s)", entry) 
    4243              else: 
    43                     print "Error inserting package." 
     44                    log.debug("Error inserting package.") 
    4445         
    4546    def get_install_queue(self): 
  • lib/octofuss/samba/config/__init__.py

    ra9fd8e2 r0adc119  
    1717from octofuss.error import MissingConfigurationFile 
    1818from octofuss.error import BadConfigurationFile 
     19from octofuss import log 
    1920 
    2021class ShareModel: 
     
    4950            name = shareObj.getName() 
    5051            if string.upper(name) in self.__serverParams: 
    51                   print "Share name must be different from samba params!" 
     52                  log.debug("Share name must be different from samba params!") 
    5253                  raise NameError("Share name must be different from samba params!") 
    5354                  return 
    5455            if self.__conf.isService(name): 
    55                   print "Share already exist!" 
     56                  log.debug("Share already exist!") 
    5657                  raise NameError("Share already exists") 
    5758                  return 
     
    6364                  self.__conf.Write(self.__sambaConfigFile) 
    6465            else: 
    65                   print "Share not valid!" 
     66                  log.debug("Share not valid!") 
    6667                  raise Error("Share not valid") 
    6768                     
     
    7374                  self.__conf.Write(self.__sambaConfigFile) 
    7475            else: 
    75                   print "You can't remove samba server params!"             
     76                  log.debug("You can't remove samba server params!") 
    7677 
    7778      def getAllServices(self): 
     
    107108                  self.__conf.Write(self.__sambaConfigFile) 
    108109            else: 
    109                   print "You can't modify samba server params!" 
     110                  log.debug("You can't modify samba server params!") 
    110111 
    111112      def printConf(self): 
  • lib/octofuss/samba/ui/__init__.py

    r6ecf068 r0adc119  
    33import string 
    44import os 
     5from octofuss import log 
    56from octofuss.samba import config 
    67#from octofuss import users 
     
    267268 
    268269            except Exception, e: 
    269                   print e 
     270                  log.debug(str(e)) 
    270271                  dialog = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, message_format="Check share options!", buttons=gtk.BUTTONS_OK)                          
    271272                  dialog.show_all() 
  • lib/octofuss/sshterm.py

    r0564122 r0adc119  
    1515import vte 
    1616import gtk 
     17from octofuss import log 
    1718 
    1819class SshTerm(vte.Terminal): 
     
    3334                self.fork_command("sh") 
    3435                self.feed_child("clear\n") 
    35                 print "SSH TO HOST:" , hostname 
     36                log.debug("SSH TO HOST:"+ hostname) 
    3637                command = "exec ssh -q -t %s\n" % hostname 
    3738                self.feed_child(command) 
  • lib/octofuss/users/__init__.py

    r56ad41b r0adc119  
    2626 
    2727from octofuss import ldap  
    28  
     28from octofuss import log 
    2929from octofuss.ldap import objectclass 
    3030from octofuss.ldap.objectclass import * 
     
    163163                        for attr in self.objectClass[objClass].required.keys():  # Each required attribute 
    164164                                if not self.objectClass[objClass].required[attr].check(): 
    165                                         print "REQ: "+ attr 
    166                                         print  self.objectClass[objClass].required[attr].getValue() 
     165                                        #log.debug(self.objectClass[objClass].required[attr].getValue()) 
    167166                                        return False 
    168167         
     
    170169                                if self.objectClass[objClass].optional[attr].getValue(): 
    171170                                        if not self.objectClass[objClass].optional[attr].check() and isSettable(): 
    172                                                 print "OPT: " +attr 
    173                                                 print self.objectClass[objClass].optional[attr].getValue() 
     171                                                #log.debug(self.objectClass[objClass].optional[attr].getValue()) 
    174172                                                return False 
    175173                                         
     
    332330 
    333331                groupList[groupName]=group  
    334                 #print "Unix group: ", group.getAttribute("cn").getValue(),  group.getAttribute("userPassword").getValue(),  group.getAttribute("gidNumber").getValue(),group.getAttribute("memberUid").getValue()  
     332                #log.debug("Unix group: "+ group.getAttribute("cn").getValue())  
    335333 
    336334 
     
    366364 
    367365                                except Exception, e: 
    368                                         print e 
     366                                        log.debug(str(e)) 
    369367                                        raise GroupError("Could not add ldap group: required attribute missing!") 
    370368 
     
    385383                                except: 
    386384                                        attrs_missing.append(param) 
    387                                         #print "Attribute %s not found"  % param 
    388  
    389                         #print "Ldap Group added: ", ldapgroup.getName().getValue() 
     385                                        log.debug("Attribute %s not found"  % param) 
     386 
     387                        log.debug("Ldap Group added: "+ ldapgroup.getName().getValue()) 
    390388 
    391389                except GroupError, e: 
    392                         print e 
     390                        log.debug(str(e)) 
    393391                        try: 
    394392                                p = "" 
    395393                                for i in attrs_missing: p = p +" "+ i 
    396                                 print "Group  not  added: option missing:\n"+p 
     394                                log.debug("Group  not  added: option missing:\n"+p) 
    397395 
    398396                        except: 
    399                                 print "eccezione" 
     397                                log.debug("eccezione") 
    400398                                pass 
    401399                        continue 
    402400                except NameError,e: 
    403                         print e 
    404                         print "Group not added: empty name" 
     401                        lgo.debug(str(e)) 
     402                        log.debug( "Group not added: empty name" ) 
    405403                        continue  
    406404                         
    407405                if grouplist.has_key(ldapgroup.getName().getValue()): 
    408                         print "Ldap group "+ldapgroup.getName().getValue()+" already present in system groups." 
     406                        log.debug( "Ldap group "+ldapgroup.getName().getValue()+" already present in system groups.") 
    409407                        continue  
    410408                if objectList.has_key(ldapgroup.getName().getValue()): 
     
    472470                                except: 
    473471                                        pass 
    474                                         #print "Attribute %s not found"  % param 
    475  
    476                         #print "Ldap User added: ", ldapuser.getName().getValue() 
     472                                        log.debug( "Attribute %s not found"  % param) 
     473 
     474                        log.debug( "Ldap User added: "+ ldapuser.getName().getValue()) 
    477475 
    478476                except UserError, e: 
    479                         print "Warning: User '"+ldapuser.getUid().getValue()+"' not added. Option missing: "+str(e) 
     477                        log.debug( "Warning: User '"+ldapuser.getUid().getValue()+"' not added. Option missing: "+str(e)) 
    480478                        continue 
    481479                except NameError, e: 
    482                         print e 
    483                         print "User not added: empty name" 
     480                        log.debug(str(e)) 
     481                        log.debug("User not added: empty name") 
    484482                        continue  
    485483 
     
    488486                        raise UserError("Incongruous ldap tree\nDuplicate user name in ldap server: "+ldapuser.getName().getValue()) 
    489487                if locallist.has_key(ldapuser.getName().getValue()): 
    490                         print "Ldap user "+ldapuser.getName().getValue()+" already present in system users." 
     488                        log.debug("Ldap user "+ldapuser.getName().getValue()+" already present in system users.") 
    491489                        continue  
    492490                objectList[ldapuser.getName().getValue()]=ldapuser 
     
    532530                        raise UserError("Duplicate user in unix user file") 
    533531                userlist[user.getName().getValue()]= user 
    534                 #print "Unix user: ", user.getAttribute("cn").getValue(),  user.getAttribute("userPassword").getValue(), user.getAttribute("uidNumber").getValue(), user.getAttribute("gidNumber").getValue() , user.getAttribute("gecos").getValue(),  user.getAttribute("homeDirectory").getValue(),user.getAttribute("loginShell").getValue()  
     532                #log.debug("Unix user: "+ user.getAttribute("cn").getValue()) 
    535533 
    536534 
     
    859857                                useradd = useradd + " -G "+ groups + " " 
    860858                        useradd = useradd + username 
    861                         print useradd 
     859                        log.debug(useradd + " added") 
    862860                        sts = os.system(useradd) 
    863861                        if sts != 0: 
     
    865863                        #sts = os.waitpid(p.pid, 0)                
    866864                        #if sts[1] != 0: 
    867                                 print "Removing user..." 
     865                                log.debug("Removing user...") 
     866                                 
    868867                                os.system("userdel "+username) 
    869868                                raise UserError("Problem adding user!") 
     
    11661165 
    11671166                except Exception, e: 
    1168                         print e 
     1167                        log.debug(str(e)) 
    11691168                        raise UserError("Could not change password") 
    11701169 
     
    12151214                                raise UserError("User passed is not a valid user") 
    12161215                except Exception, e: 
    1217                         print e 
     1216                        log.debug( str(e)) 
    12181217                        raise UserError("Problems: "+str(e)) 
    12191218 
     
    13411340                                for user in users: 
    13421341                                        if not self.isUser(user): 
    1343                                                 print "Warning: User \""+user+"\" doesn't exist but is in unix group."  
     1342                                                log.debug( "Warning: User \""+user+"\" doesn't exist but is in unix group.") 
    13441343                                                #TODO 
    13451344                                                #raise GroupError("User doesn't exist!") 
     
    13521351                                for user in users: 
    13531352                                        if not self.isUser(user): 
    1354                                                 print "Warning: User \""+user+"\" doesn't exist but is in unix group."  
     1353                                                log.debug("Warning: User \""+user+"\" doesn't exist but is in unix group." ) 
    13551354                                                #TODO: decide what to do 
    13561355                                                #raise GroupError("User doesn't exist!") 
     
    14401439                                # Exist a group with same name of user 
    14411440                                # User will be added to this group 
    1442                                 print "Warning: a group with this name already exists. User will be added to this group." 
     1441                                lgo.debug( "Warning: a group with this name already exists. User will be added to this group.") 
    14431442                                g = self.getGroup(l.getName().getValue()) 
    14441443 
     
    15741573                                        InheritableSingleton.instances['groupList'][group].removeUser(username) 
    15751574                                if group in groups: 
    1576                                         print "TRRR: "+group 
    15771575 
    15781576                                        InheritableSingleton.instances['groupList'][group].addUser(newname) 
     
    15821580                                        InheritableSingleton.instances['ldapGroupList'][group].removeUser(username) 
    15831581                                if group in groups: 
    1584                                         print "TRRR: "+group 
    15851582 
    15861583                                        InheritableSingleton.instances['ldapGroupList'][group].addUser(newname) 
     
    15901587                                        InheritableSingleton.instances['groupList'][group].removeUser(username) 
    15911588                                if group in groups: 
    1592                                         print "TRRR: "+group 
    15931589                                        InheritableSingleton.instances['groupList'][group].addUser(username) 
    15941590                                
     
    15971593                                        InheritableSingleton.instances['ldapGroupList'][group].removeUser(username) 
    15981594                                if group in groups: 
    1599                                         print "TRRR: "+group 
    16001595 
    16011596                                        InheritableSingleton.instances['ldapGroupList'][group].addUser(username) 
     
    16561651                                ret = conn.add_s(dn, modList) 
    16571652                        else: 
    1658                                 print "Not a valid Ldap Group!" 
     1653                                log.debug("Not a valid Ldap Group!") 
    16591654                except: 
    16601655                        raise LdapError("Error: group not added!") 
     
    16761671                curGroupGID = self.getGroup(groupname).getGid().getValue() 
    16771672                found = False 
    1678                 print curGroupGID  
     1673                log.debug(curGroupGID ) 
    16791674                #Because of usList doesn't contain users main group, we have to search it         
    16801675                for us in InheritableSingleton.instances['ldapList'].keys(): 
     
    16851680                                                                                                 
    16861681                         
    1687                 print usList 
     1682                 
    16881683                if not usList: 
    16891684                        if not found: 
     
    17351730                l.setUserList(users) 
    17361731                # Modify group  
    1737                 print l.getUsersList().getValue() 
    17381732                self.__modifyLdapGroup(l) 
    17391733 
     
    17521746                                ret = ldap.modifyEntry(dn,d)  
    17531747                        else: 
    1754                                 print "Not a valid Ldap Group!" 
     1748                                log.debug("Not a valid Ldap Group!") 
    17551749                except: 
    17561750                        raise LdapError("Error: could not modify group ")      
     
    17641758                                  ret = ldap.modifyEntry(dn,d)  
    17651759                          else: 
    1766                                   print "Not a valid Ldap Group!" 
     1760                                  log.debug( "Not a valid Ldap Group!") 
    17671761                  except: 
    17681762                          raise LdapError("Error: could not modify group ")      
     
    18721866                                ret = conn.add_s(dn, modList) 
    18731867                        else: 
    1874                                 print "Not a valid Ldap User!" 
     1868                                log.debug("Not a valid Ldap User!") 
    18751869                except Exception, e: 
    1876                         print e 
    1877                         print e.args 
     1870                        log.debug(str(e)) 
    18781871                        raise LdapError("Error: user not added!") 
    18791872                
     
    19341927                                else: 
    19351928                                        fileBackup = home + "-" + stringTime + ".bck" 
    1936                                 print fileBackup  
    19371929                                compress = self.dialogYesNo("Home backup in process\nDo you want to compress the backup and remove home directory?") 
    19381930                                if compress == -8: 
     
    19561948                                        showDialog("Backup done: "+fileBackup, gtk.MESSAGE_INFO) 
    19571949                        except Exception,e: 
    1958                                 print e 
     1950                                log.debug(str(e)) 
    19591951                                showDialog("Problems doing backup of "+username+"'s home directory!",gtk.MESSAGE_ERROR) 
    19601952                else: 
    1961                         print "Home doesn't exist" 
     1953                        log.debug("Home doesn't exist") 
    19621954 
    19631955                 
     
    20041996                                InheritableSingleton.instances['ldapList'][l.getName().getValue()]=l 
    20051997                        else: 
    2006                                 print "Not a valid Ldap User!" 
     1998                                log.debug("Not a valid Ldap User!") 
    20071999                         
    20082000                except: 
     
    21042096                                        del usersList[ind] 
    21052097                                        if username in usersList: 
    2106                                                 print "Warning: duplicate user in group" 
     2098                                                log.debug("Warning: duplicate user in group") 
    21072099                                newLine = groupSplit[0]+":"+groupSplit[1]+":"+groupSplit[2]+":"  
    21082100                                 
     
    22072199                                                InheritableSingleton.instances['groupList'][group].addUser(username) 
    22082200                except Exception, e: 
    2209                         print e.args 
    2210                          
    22112201                        raise UserError("Problem updating system groups:\n"+str(e)) 
    22122202 
  • lib/octofuss/users/ui/__init__.py

    r37f5584 r0adc119  
    1919from octofuss import art 
    2020from octofuss import users 
     21from octofuss import log 
    2122from octofuss.users import backendSingleton 
    2223from octofuss.users import Backend 
     
    275276  
    276277                        except Exception, e: 
    277                               print e  
     278                              log.debug(str(e))  
    278279                except TypeError,e: 
    279280                        pass 
    280281                except Exception, e: 
    281                         print e 
     282                        log.debug(str(e)) 
    282283 
    283284 
     
    320321  
    321322                        except Exception, e: 
    322                               print e  
     323                                log.debug(str(e))  
     324                                
    323325                except TypeError,e: 
    324326                        pass 
    325327                except Exception, e: 
    326                         print e 
     328                        e 
    327329 
    328330 
     
    569571                        pass 
    570572                except Exception,e: 
    571                         print e 
     573                        log.debug(str(e)) 
    572574 
    573575 
     
    632634                        pass 
    633635                except Exception,e: 
    634                         print e 
     636                        log.debug(str(e)) 
     637                         
    635638 
    636639                            
     
    875878                                        type = _("network")         
    876879                                else: 
    877                                         print "Warning: problem identifying group type!" 
     880                                        log.debug(_("Warning: problem identifying group type!")) 
    878881                        pix = art.get_pixbuf_from_name("stock_people") 
    879882 
     
    900903                                        type = _("network")         
    901904                                else: 
    902                                         print "Warning: problem identifying group type!" 
     905                                        log.debug(_("Warning: problem identifying group type!")) 
     906                                         
    903907                        model.set (iter, 0, item, 1, type ) 
    904908                return model 
     
    989993                        selectedItem = iconView.get_selected_items() 
    990994                         
    991                         print selectedItem 
    992995                        values = [] 
    993996                        for it in selectedItem: 
     
    10221025                                                         backend.deleteLdapUser2(value)         
    10231026                                                else: 
    1024                                                         print "Invalid user" 
     1027                                                        log.debug(_("Invalid user")) 
    10251028                                                
    10261029                        iconView.set_model(self.__create_user_model_icon())  
     
    10291032                        iconView.show() 
    10301033                except Exception, e: 
    1031                         print e.args  
    1032                         print type(e) 
    1033                         print dir(e) 
     1034                        log.debug(str(e)) 
    10341035                        self.showDialog(str(e),gtk.MESSAGE_ERROR) 
    10351036 
     
    10711072 
    10721073                                        else: 
    1073                                                 print "Invalid group" 
     1074                                                log.debug(_("Invalid group")) 
    10741075 
    10751076                                iconView.set_model(self.__create_group_model_icon())  
     
    11421143                        info.show() 
    11431144                except Exception, e: 
    1144                         print e  
     1145                        log.debug(str(e))  
    11451146                        self.showDialog("Invalid user!\n"+str(e),gtk.MESSAGE_ERROR) 
    11461147                         
     
    11941195                         
    11951196                except Exception, e: 
    1196                         print e 
     1197                        log.debug(str(e)) 
    11971198                         
    11981199 
     
    12261227                        info.show() 
    12271228                except Exception,e: 
    1228                         print e 
     1229                        log.debug(str(e)) 
    12291230 
    12301231class Info(gtk.Window): 
     
    13031304                                        mainTable.attach(buttonEnable,0,1,5,6,yoptions=gtk.SHRINK,ypadding=10,xpadding=5) 
    13041305                        else: 
    1305                                 print "Is enabled returned None, problems" 
     1306                                log.debug("Is enabled returned None, problems") 
    13061307                                mainTable.attach(buttonDisable,0,1,5,6,yoptions=gtk.SHRINK,ypadding=10,xpadding=5) 
    13071308 
     
    17751776                                        self.showDialog(_("Invalid characters in home directory field!"),gtk.MESSAGE_ERROR) 
    17761777                                        return 
    1777                                 print dir 
     1778                                log.debug("Dirrecotry: "+dir) 
    17781779                                n.setAttribute("homeDirectory",dir)  
    17791780                                 
     
    19311932                                        type = _("network")         
    19321933                                else: 
    1933                                         print "Warning: problem identifying group type!" 
     1934                                        log.debug(_("Warning: problem identifying group type!")) 
    19341935                        model.set (iter, 0, item, 1, type ) 
    19351936                return model 
     
    19621963                                        type = _("network")         
    19631964                                else: 
    1964                                         print "Warning: problem identifying group type!" 
     1965                                        log.debug(_("Warning: problem identifying group type!")) 
    19651966                        pix = art.get_pixbuf_from_name("stock_people") 
    19661967 
     
    24952496                                         
    24962497                except csv.Error, e: 
    2497                         print e.args 
     2498                        log.debug(str(e)) 
    24982499                        self.showDialog('file %s, line %d: %s' % (filename, reader.line_num, e),gtk.MESSAGE_ERROR) 
    24992500                except IndexError,e: 
     
    26422643                                        type = _("network")         
    26432644                                else: 
    2644                                         print "Warning: problem identifying group type!" 
     2645                                        log.debug(_("Warning: problem identifying group type!")) 
    26452646                        model.set (iter, 0, item, 1, type ) 
    26462647                return model 
     
    26712672                                        type = _("network")         
    26722673                                else: 
    2673                                         print "Warning: problem identifying group type!" 
     2674                                        log.debug(_("Warning: problem identifying group type!")) 
    26742675                        pix = art.get_pixbuf_from_name("stock_people") 
    26752676 
     
    27842785                                        type = _("network")         
    27852786                                else: 
    2786                                         print "Warning: problem identifying group type!" 
     2787                                        log.debug(_("Warning: problem identifying group type!")) 
    27872788                        model.set (iter, 0, item, 1, type ) 
    27882789                return model 
     
    28132814                                        type = _("network")         
    28142815                                else: 
    2815                                         print "Warning: problem identifying group type!" 
     2816                                        log.debug(_("Warning: problem identifying group type!")) 
    28162817                        pix = art.get_pixbuf_from_name("stock_people") 
    28172818 
  • lib/octofuss/utils/sshtunnel.py

    r8458a8c r0adc119  
    11#!/usr/bin/env python 
    22import os 
     3from octofuss import log 
    34 
    45class SSHTunnel: 
     
    1112        def run(self): 
    1213                '''activate the tunnel''' 
    13                 print "starting..." 
     14                log.debug("starting...") 
    1415                p = os.popen("ssh -Nf  -R %s:localhost:22 %s@%s && echo $!" %  (self.port, self.user,self.host),"r") 
    15                 print p.read() 
     16                log.debug(p.read()) 
    1617                p.close() 
    1718                 
    1819        def stop(self): 
    1920                '''close the tunnel''' 
    20                 print "stopping.." 
     21                log.debug("stopping..") 
    2122 
    2223        def check(self): 
    23                 print "checking.." 
     24                log.debug("checking..") 
    2425 
    2526 
  • test_env

    redfd3b3 r0adc119  
    33export OCTOFUSS_CONF_FILE=`pwd`/octofuss.conf.local 
    44export PYTHONPATH=`pwd`/lib/ 
     5#export OCTOFUSS_DEBUG=True