~nacl/wicd/1.6-urwid-0.9.9-compat

« back to all changes in this revision

Viewing changes to wicd/netentry.py

  • Committer: Andrew Psaltis
  • Date: 2009-08-06 21:03:46 UTC
  • mfrom: (202.26.85 1.6)
  • Revision ID: ampsaltis@gmail.com-20090806210346-viyd6kbxnu22ccqb
Merge r450 of mainline 1.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
            
656
656
    def add_profile(self, widget):
657
657
        """ Add a profile to the profile list. """
658
 
        print "adding profile"
659
 
 
660
658
        response = string_input("Enter a profile name", "The profile name " +
661
659
                                  "will not be used by the computer. It " +
662
660
                                  "allows you to " + 
663
661
                                  "easily distinguish between different network " +
664
 
                                  "profiles.", "Profile name:")
 
662
                                  "profiles.", "Profile name:").strip()
665
663
 
666
664
        # if response is "" or None
667
665
        if not response:
668
 
            return
 
666
            error(None, "Invalid profile name", block=True)
 
667
            return False
669
668
 
670
669
        profile_name = response
671
670
        profile_list = wired.GetWiredProfileList()