summaryrefslogtreecommitdiffstats
path: root/textw/network_text.py
Commit message (Collapse)AuthorAgeFilesLines
* Strip the network screen down to just setting the default hostname.Chris Lumens2009-02-091-54/+3
|
* Do not import unused modules.David Cantrell2008-12-231-1/+0
|
* Fix a few syntax error caugh by pycheckerHans de Goede2008-12-201-2/+2
| | | | Fix a few syntax error caugh by pychecker.
* Match textw/network_text.py strings to iw/network_gui.py (#470145)David Cantrell2008-12-021-26/+16
| | | | Match up the strings and dialog windows in the text mode interface.
* Make the textw network screen match the iw interface by only prompting for ↵David Cantrell2008-09-181-66/+29
| | | | | | | | | | hostname (#462592) Further shrink the textw network interface. Make it match the iw interface as much as possible (since we are string frozen, I left those as-is for now, will change them after rawhide opens for F11). Using network.getDefaultHostname() to populate the dialog box initially.
* Remove most of the network configuration from text mode as well (#462691).Chris Lumens2008-09-181-718/+13
|
* Use dbus in hasActiveNetDev() and _anyUsing()David Cantrell2008-08-251-2/+2
| | | | | | | Rewrote the hasActiveNetDev() and _anyUsing() function in network.py to talk to NetworkManager via dbus. Modified the calls in iw/network_gui.py and textw/network_text.py that use these functions.
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-1/+3
| | | | * po/sk.po: Typo fix.
* Preserve 'set the hostname' setting when going Next/Back (#443414)David Cantrell2008-04-251-2/+2
| | | | | | | | | | Better fix for #408921. Using network.overrideDHCPhostname to set the default behavior of requiring users to set a hostname. If the user changed that to 'use DHCP', clicked Next, then clicked Back, the network configuration screen would be back at manual for the hostname. Fixed that by honoring overrideDHCPhostname. Also took the opportunity to make overrideDHCPhostname a boolean since that's how we are using it.
* Have <F12> work in the network configuration stage (#250982)Joel Andres Granados2008-04-021-5/+7
|
* Fix another text mode network config traceback (#433475).Chris Lumens2008-02-191-1/+1
|
* Use the correct variables to get the ipv6 info. (#432035)Joel Andres Granados2008-02-111-3/+3
|
* In rescue mode, show interface configuration (#429953)David Cantrell2008-02-081-26/+35
| | | | | | | | On the first run of the chooseNetworkInterface() function in rescue mode, all network interfaces are shown as UNCONFIGURED regardless of their current configuration. This also affects text mode installations in the post-install configuration steps.
* Force users to set a hostname (#408921)David Cantrell2008-02-011-12/+2
| | | | | | | Setting a static hostname will prevent desktop weirdness and application hangs if the system is ever disconnected from the network. This change sets the default hostname option to manual entry.
* Revert "Initial support for network --bootproto=ask (#401531)."Chris Lumens2008-01-301-2/+2
| | | | This reverts commit 062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.
* Initial support for network --bootproto=ask (#401531).Chris Lumens2008-01-161-2/+2
| | | | | | | | This patch adds support for a new network bootproto. The point of this is to work around our basic assumption that no network line in the kickstart file means you get dhcp. Some environments may want the assumption that no network line means you get prompted for network configuration. That's what this patch adds.
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-3/+3
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* GPLv2+ license boilerplates for textw/*.py files.David Cantrell2007-12-171-9/+16
|
* Don't translate unnecessary stuff.Joel Andres Granados2007-11-161-6/+6
|
* Remove unused imports. Yes I know this is stupid nitpicky crap, but I likeChris Lumens2007-09-191-2/+0
| | | | it.
* * textw/network_text.py: Remove extra popWindow().David Cantrell2007-07-261-1/+0
|
* * textw/network_text.py (NetworkDeviceWindow): Make sure the extraDavid Cantrell2007-05-291-0/+4
| | | | | windows are removed when they need to be (patch from notting AT redhat DOT com, #241556).
* Remove extra screen.popWindow().David Cantrell2007-03-271-1/+0
|
* * textw/network_text.py: Do not call screen.popWindow() if we getDavid Cantrell2007-03-271-2/+8
| | | | | INSTALL_OK or INSTALL_BACK from chooseNetworkDevice() as that causes the next window to not be displayed.
* * textw/network_text.py: Added as a chooseNetworkDevice() method in theDavid Cantrell2007-03-121-42/+115
| | | | | | | | | NetworkDeviceWindow class. Handles systems with more than one NIC in a better way than before. Users are presented with a list (similar to iw mode) and can configure the NICs they want. Also closes a bug with rescue mode forcing users to configure _all_ NICs (#228512). * textw/constants_text.py: Added an 'Edit' button.
* Apply a patch to clean up strings (Paul W. Frields <stickster@gmail.com>,Chris Lumens2007-02-271-1/+1
| | | | #204564).
* * textw/network_text.py: If we got INSTALL_BACK from runIPv4Screen(),David Cantrell2007-02-131-1/+2
| | | | only decrement currentDev if it's greater than zero.
* * textw/network_text.py: Fix errors in the IPv6 configuration windowDavid Cantrell2007-02-131-6/+19
| | | | | | initialization. Also fix the Back button on IPv6 window so it takes you back to the main window or IPv4 window (whichever you were just at).
* Very minor changes to the textw network interface configuration screen. ↵David Cantrell2007-02-131-317/+413
| | | | Allows users to configure IPv4 and IPv6 independently.
* * textw/network_text.py: Reference useIPv4 and useIPv6 from theDavid Cantrell2007-01-171-6/+6
| | | | network device object (Elliot Peele).
* All hail the United States Navy. This bug report came from them as they ↵David Cantrell2006-11-281-8/+10
| | | | | | were trying to set up an all-IPv6 network with FC6 systems. They are actually using IPv6. Go figure. Anyways, we only do broadcast and network address calculation when IPv4 is enabled.
* * textw/network_text.py (NetworkDeviceWindow): Set IPv6 entry boxDavid Cantrell2006-10-121-3/+4
| | | | | sensitivity correctly. Fixes bizarre UI problems where unchecking DHCP and IPv6 would leave all the input boxes active.
* * textw/network_text.py (handleMissingOptionalIP): Added from theDavid Cantrell2006-10-121-6/+11
| | | | | | | | | iw netconfig screen. * textw/network_text.py (NetworkGlobalWindow): If gateway or primary DNS are missing, warn user via handleMissingOptionalIP() and continue. Just pass if secondary DNS is missing. This is consistent with the iw interface.
* * textw/network_text.py (handleIPError): Same change as forDavid Cantrell2006-10-041-23/+25
| | | | | | | | | | | | iw/network_gui.py (NetworkWindow.handleIPError) above. * textw/network_text.py (handleIPMissing): Remove the double quotes around the field description. * textw/network_text.py (NetworkDeviceWindow): Same change as for iw/network_gui.py (NetworkWindow) above. Added missing closing paren in an Invalid Prefix error dialog. Set checkbox initial checkbox values correctly.
* * isys/isys.py (inet_calcNetBroad): Umm, use ntohl() so it works on allDavid Cantrell2006-10-031-1/+5
| | | | | | | | | | | | platforms. * iw/network_gui.py (NetworkWindow.handleBroadCastError): Tell users the IPv4 information given is invalid, since this error message will occur when calculating the network and broadcast address using the IPv4 ip address and netmask. * textw/network_text.py (handleBroadCastError): Add missing error handling function for network and broadcast address calculation.
* * iw/network_gui.py (NetworkWindow): Use isys.netmask2prefix() andDavid Cantrell2006-10-031-1/+1
| | | | | | | | | | | | | | isys.prefix2netmask() correctly. * textw/network_text.py (NetworkDeviceWindow): Use isys.prefix2netmask() correctly. * isys/isys.c (doPrefixToNetmask): Renamed to a shorter function name and it somewhat matches what the isys.py passthrough is called. We also take an int as the argument now and return a string. * isys/isys.py (netmask2prefix): Added this function to replace the borken inet_convertNetmaskToPrefix() function.
* * isys/isys.py (inet_doConvertPrefixToNetmask): Removed since it doesDavid Cantrell2006-10-021-1/+1
| | | | | | | | | | | | not work right. Added prefix2netmask() passthrough to _isys. * isys/isys.c (doConvertPrefixToNetmask): When Python fails, use C. Added isys.prefix2netmask() for use in Python code to convert a CIDR prefix to a dotted-quad format netmask (#207845). * iw/network_gui.py (NetworkWindow): Use isys.prefix2netmask() * textw/network_text.py (NetworkDeviceWindow): Use isys.prefix2netmask()
* * textw/network_text.py (NetworkDeviceWindow): Display error messageDavid Cantrell2006-09-291-1/+3
| | | | if user unchecks IPv4 and IPv6 support.
* * iw/network_gui.py (NetworkWindow): Removed duplicate handleIPError()David Cantrell2006-09-291-31/+62
| | | | | | | | | | | | | | | | | | | | | function. Wrap ipv6prefix input validation to catch exception where the user left the field blank (ValueError). * textw/network_text.py: Added descr hash. Removed badIPDisplay(). * textw/network_text.py: Added handleIPError() and handleIPMissing() which work in the same way as the functions of the same name in the iw interface, but they are modified to use ButtonChoiceWindow. * textw/network_text.py (NetworkDeviceWindow): Replace all instances of self.intf.messageWindow with ButtonChoiceWindow. Call the handleIPError() and handleIPMissing() functions correctly. Catch ipv6prefix entry errors when the user left the field blank. * textw/network_text.py (NetworkGlobalWindow): Rewrote input validation for gateway, primary DNS, and secondary DNS. Use exceptions from network and handleIPError() and handleIPMissing() functions.
* * textw/network_text.py: Removed badIPDisplay() for now. RemovedDavid Cantrell2006-09-291-60/+42
| | | | | | | | | | | | | | sanityCheckIPString() because we can just use the one in network. * textw/network_text.py (NetworkDeviceWindow): Change instances of the boot variable to bootproto to make it more consistent with the iw interface code. Unset BOOTPROTO if the user has selected a manual network configuration. Use the value() method on the Entry boxes since get_text() is not available in snack. * textw/network_text.py (NetworkGlobalWindow): Increase size of entry boxes to 41 characters so they can hold IPv4 and IPv6 addresses. Removed third nameserver prompts.
* * textw/network_text.py (NetworkDeviceWindow): Input validation codeDavid Cantrell2006-09-281-35/+168
| | | | | is there for the text mode manual net config UI, but it's still under debugging.
* * textw/network_text.py: Space consistency changes.David Cantrell2006-09-281-148/+147
|
* * textw/network_text.py (NetworkDeviceWindow): Widgets are in placeDavid Cantrell2006-09-281-66/+117
| | | | | | in the text UI, so it now looks like the manual IP config UI in graphical stage 2. Nothing is hooked up yet, it's just all placed on the screen.
* * textw/network_text.py (NetworkDeviceWindow): First changes towardsDavid Cantrell2006-09-261-18/+29
| | | | making this screen look like the new iw one.
* 2006-07-26 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-07-261-1/+1
| | | | | | | * rescue.py (runRescue): Don't show onboot for rescue (#200237) * textw/network_text.py (NetworkGlobalWindow.__call__): Take (unused and optional) showonboot parameter
* Don't guess the gateway for consistency with loader's UI (#197578).Chris Lumens2006-07-121-20/+2
|
* 2006-06-23 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-231-12/+21
| | | | | * textw/network_text.py (sanityCheckIPString): Fix for internal API changes (#196154)
* 2006-05-15 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-05-151-3/+3
| | | | | * textw/network_text.py (NetworkGlobalWindow.__call__): Fix up some variable references
* Fixed up a couple references I forgot earlier.Chris Lumens2006-05-041-0/+1
|
* Make all UI steps use anaconda class. Add system-config-keyboard shim.Chris Lumens2006-05-041-22/+22
|