#1759 closed defect (fixed)
3G Support: show connection errors
Reported by: | Dcastelo | Owned by: | Dcastelo |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | |
Component: | Sugar | Version: | Git as of bugdate |
Severity: | Major | Keywords: | 3G GSM modem usb r+ |
Cc: | tomeu, tch, erikos, garycmartin | Distribution/OS: | Unspecified |
Bug Status: | New |
Description
This patch improves the feature 3G Support (added in 0.88).
Includes:
Show the connection errors
Apply Eben's Mockup: http://wiki.sugarlabs.org/go/File:3G_device.png
Attachments (13)
Change History (30)
comment:1 Changed 13 years ago by Dcastelo
comment:2 Changed 13 years ago by Dcastelo
I can't atach the patch:
Submission rejected as potential spam (Akismet says content is spam, Content contained these blacklisted patterns: 'LE*')
comment:3 Changed 13 years ago by sascha_silbe
I've configured Trac not to look at attachment content now. Please try attaching it again.
Changed 13 years ago by Dcastelo
Ebens Mockup for GSM Connection Palett. Improve feature to show connection errors
comment:4 Changed 13 years ago by erikos
- Bug Status changed from Unconfirmed to New
- Severity changed from Unspecified to Major
- Version changed from Unspecified to Git as of bugdate
Hi Daniel,
with landing #1768, your patch needs to be re-spinned to head :/
Did you run pylint and pep8 on the files affected by your patch. I think I saw a wrong indentation... For the NM_ERRORS, I guess I would only add the ones that we actually use. self.conn_info_box, please no abbreviation here.
Regards,
Simon
Changed 13 years ago by Dcastelo
comment:5 Changed 13 years ago by erikos
- Cc erikos added
comment:6 Changed 13 years ago by erikos
- Milestone changed from 0.88 to 0.88.x
I would suggest it as a bug fix update as Daniel stated that the deployments Uruguay and Paraguay woul dbe interested in getting this in.
comment:7 Changed 13 years ago by tomeu
- Keywords r! added; r? removed
The patch needs to address some comments made in http://lists.sugarlabs.org/archive/sugar-devel/2010-May/023972.html
comment:8 Changed 13 years ago by Dcastelo
Improves based on comments made by James Cameron (http://lists.sugarlabs.org/archive/sugar-devel/2010-May/023972.html)
Details about the corrections in http://lists.sugarlabs.org/archive/sugar-devel/2010-May/024182.html
Patch: 0001-Showing-Errors-Pallete-Mockup-V5.patch
comment:9 Changed 13 years ago by tch
Just tested "0001-Showing-Errors-Pallete-Mockup-V5.patch" and it works great :) Also looks very nice!
comment:10 Changed 13 years ago by erikos
- Keywords r? added; r! removed
comment:11 Changed 13 years ago by tomeu
- Keywords r! added; r? removed
Simon, thanks for correcting the flag.
I think this patch is pretty much ready for merging, with these comments:
- please run pylint
- initializing NM_DEVICE_STATE_REASON_DESCRIPTION like in the patch means calling gettext several times at startup. Better do it lazily as needed.
+ if (connection_time is not None):
+ self.props.secondary_text = _('Connected for ' + \
+ connection_time.strftime('%H:%M:%S'))
+ else:
+ self.props.secondary_text = _('Connected for ' \
+ + '00:00:00')
This won't get you the strings translated, try instead:
_('Connected for %s') % connection_time.strftime('%H:%M:%S')
A TRANS comment may be needed for translators to know better what they have to translate.
Remember that today is UI freeze.
Changed 13 years ago by erikos
New patch that does address Tomeu's comments and a slightly modified design (after discussion with Gary)
comment:12 Changed 13 years ago by erikos
- Keywords r? added; r! removed
comment:13 Changed 13 years ago by erikos
- Cc garycmartin added
http://bugs.sugarlabs.org/attachment/ticket/1759/gsm_error_1.png
http://bugs.sugarlabs.org/attachment/ticket/1759/gsm_error_2.png
Gary, the code had two parts for the alert (I did not see that yesterday): So we have an error message and a suggestion what changes could help. I made the title (Error) bold and do place the suggestion below it. What do you think - is that visually acceptable? The rest I changed like we discussed yesterday.
comment:14 Changed 13 years ago by erikos
- Keywords r+ added; r? removed
- Resolution set to fixed
- Status changed from new to closed
Got a 'r+' from Tomeu and a 'fab' from Gary via irc.
comment:15 Changed 13 years ago by erikos
Thanks Daniel for working on this! I thought I would champion it quickly so it does not miss another boat...
comment:16 Changed 13 years ago by Dcastelo
Thanks you for finish this issue !
This ticket applies over http://bugs.sugarlabs.org/ticket/1738