Re: [Sugar-devel] mime types when moving files from journal to usb
On Fri, Feb 11, 2011 at 4:17 PM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: Excerpts from Erik Blankinship's message of Fri Feb 11 21:08:20 +0100 2011: I noticed there were two svg icons in the physics activity directory: application-x-physics-project.svg and activity-physics.svg. Is there now a way to assign an icon to the files generated/used by my activity based on their extension type? You already discovered that way. If you ship your icons as activity/primary_type-subtype.svg Sugar will automatically install them [1]. Thank you for your help as I try to get this to work. I must be doing something wrong with mimetypes.xml. Here is a very small activity that let's you click a button to save your game state. https://github.com/jedierikb/supes.activity Things broken with this activity: (1) The icon application-x-supes-saved.svg is not used in the journal for saved game files. (2) Activity instance files dragged to usb are not given the extension *.superduper (3) Saved game files dragged to usb are not given the extension *.superduper_saved [note: trying this on olpc 10.1.3, sugar 84, but would like it to work with sugar 84+] ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] tomorrow's design meeting
Thanks for accommodating the time switch. I just arrived in Lima, but my morning is broken up by meetings. I presume everyone has seen the agenda Sascha has constructed? http://lists.sugarlabs.org/archive/sugar-devel/2011-February/029938.html regards. -walter On 2/12/11, Gary Martin garycmar...@googlemail.com wrote: On 12 Feb 2011, at 16:40, Walter Bender walter.ben...@gmail.com wrote: On Sat, Feb 12, 2011 at 11:24 AM, Christian Marc Schmidt christianm...@gmail.com wrote: 9am (I assume you mean EST?) will work for me... Christian On Sat, Feb 12, 2011 at 11:07 AM, Walter Bender walter.ben...@gmail.com wrote: I may be late (or, if possible, could we start at 9am instead?) Yes. EST. If it works for Gary, let's do it. I can be there (14:00 GMT), but watch out, the last few emails on this thread fell off the public mail-list, we may have folks turning up at the wrong time. --Gary thanks. -walter -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org -- anyth...@christianmarcschmidt.com 917/ 575 0013 http://www.christianmarcschmidt.com http://www.linkedin.com/in/christianmarcschmidt http://twitter.com/cms_ -- Walter Bender Sugar Labs http://www.sugarlabs.org -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Presentation
Sounds great. See you in #sugar !! -walter On 2/13/11, Yader Velásquez yajo...@gmail.com wrote: Hi everybody. My name is Yader Velásquez, I'm 18 years old and I'm from Nicaragua. It's a great honor for me, colaborate for sugar. Besides of develop activities, I'll begin to package activities for Fedora (rpm) I've been developed calendario http://wiki.sugarlabs.org/go/Activities/calendario Regards -- GNU/Linux User # 480207 http://yadervblog.drupalgardens.com/ https://fedoraproject.org/wiki/User:Yaderv * ¡Desde abajo y a la izquierda!* -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ANNOUNCE] git.sugarlabs.org update
Hi all, There is git.sugalabs.org change in CIA.org plugin behaviour. For commits to forked repositories, the project name on CIA is: ~git.sugarlabs.org-user-login/parent-project The reason is that many forked projects are not regular and people rebase/merge them from time to time, thus spam to #sugar by resending already (from original project) sent commits. -- Aleksey ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [off topic] OLPCs running on XP?
There are 3000 XO-1 running XP in Uruguay, department of Treinta y Tres, secondary and technical schools. This was a joint donation by Microsoft and OLPC for a Plan Ceibal's pilot program of which we haven't heard anymore. Regards, Gabriel 2011/2/12 Nagarjuna G nagar...@gnowledge.org: Where on earth are OLPCs running on XP? What percent of the OLPCs actually are running on XP? I know there are very few, possibly in Peru. Do any of you know any other places? If any of you even direct me to a place where I can get some info on this, that will help. I am sending some answers to someone, and if my reply is accurate that will help. -- GN ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [off topic] OLPCs running on XP?
So it seems that where it is being deployed, it is on the order of 1% of the deployments? -walter On 2/13/11, Gabriel Eirea gei...@gmail.com wrote: There are 3000 XO-1 running XP in Uruguay, department of Treinta y Tres, secondary and technical schools. This was a joint donation by Microsoft and OLPC for a Plan Ceibal's pilot program of which we haven't heard anymore. Regards, Gabriel 2011/2/12 Nagarjuna G nagar...@gnowledge.org: Where on earth are OLPCs running on XP? What percent of the OLPCs actually are running on XP? I know there are very few, possibly in Peru. Do any of you know any other places? If any of you even direct me to a place where I can get some info on this, that will help. I am sending some answers to someone, and if my reply is accurate that will help. -- GN ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On 10 Feb 2011, at 15:46, Anish Mangal wrote: Hi, Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test for internet connectivity and maybe reflect that by displaying a small globe overlaid on the 'Network' icon? If the technical issues of actually testing for a working Internet connection can be solved reliably/globally, perhaps that extra information could be placed in the device pop-up palette as a text item? There are a number of different possible network device svg icons that would all need to work well with an extra visual globe overlay, I'm not convinced we could make one clear enough but closest would likely be a minimal fill/stroke circle in one corner. Certainly would need a line of text in the palette to aid discoverability/clarity. Obviously would need to be clear exactly what was being tested to come up with wording/design (ping of some agreed server/s, working http get, etc). --Gary -- Anish ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Thu, Feb 10, 2011 at 10:46 AM, Anish Mangal an...@activitycentral.org wrote: Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test for internet connectivity and maybe reflect that by displaying a small globe overlaid on the 'Network' icon? I like the idea, but worry also about how to do it. Some thoughts - make it hit a configurable (from olpc-os-builder) host, make it also easy to disable from olpc-os-builder - add a similar feature that pings 'schoolserver' and indicates we have an XS within reach cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Thu, 10 Feb 2011 at 12:46:18 -0300, Anish Mangal an...@activitycentral.org wrote: Hi, Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test for internet connectivity and maybe reflect that by displaying a small globe overlaid on the 'Network' icon? Folks, Speaking as someone who has spent a fair bit of time thinking through a few of the narrow technical issues [1], I'd like to gently suggest that we might get better design ideas from our design team if we focused a bit more on the core UI problem before diving into a long thread on the relative merits of HTTP vs. ICMP sensors. Therefore, with this gentle suggestion in mind, what do you all think of the following design thesis: The Sugar UI should make network health discoverable. In particular, is this the core issue? If so, what kinds of affordances does it suggest? If not, then what, in your words, is the core issue? Regards, Michael [1]: http://wiki.laptop.org/go/Network2/Paper#Self-Test_Algorithm ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Dextrose] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Sun, Feb 13, 2011 at 5:38 PM, Michael Stone mich...@laptop.org wrote: On Thu, 10 Feb 2011 at 12:46:18 -0300, Anish Mangal an...@activitycentral.org wrote: Hi, Currently, the 'network' icon on the frame tells us whether we're connected to a network or not. Would it make sense for it to test for internet connectivity and maybe reflect that by displaying a small globe overlaid on the 'Network' icon? Folks, Woot. A good design meeting this morning. Looks like the NZTesters will step up as a.sl.o editors to QA activities before making them available for download. Now Michael jumping in on this thread:) (I've been trying to convince Michael and some of the other original Sugar/OLPC developers to lead a RD team at AC.) As we look at this issues let's remember to focus on our core competencies. 1. Anish, Tch, (Dextrose) are creating something to solve a problem that teachers and formadores are have today. 2. Michael (upstream Sugar developer) has put a lot of though into the original design of the network. 3. Gary (upstream Sugar design)knows UI. 4. Simon and Silbe (sugar maintainers) juggle these needs. you guys rock. david Speaking as someone who has spent a fair bit of time thinking through a few of the narrow technical issues [1], I'd like to gently suggest that we might get better design ideas from our design team if we focused a bit more on the core UI problem before diving into a long thread on the relative merits of HTTP vs. ICMP sensors. Therefore, with this gentle suggestion in mind, what do you all think of the following design thesis: The Sugar UI should make network health discoverable. In particular, is this the core issue? If so, what kinds of affordances does it suggest? If not, then what, in your words, is the core issue? Regards, Michael [1]: http://wiki.laptop.org/go/Network2/Paper#Self-Test_Algorithm ___ Dextrose mailing list dextr...@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/dextrose ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Sun, Feb 13, 2011 at 6:38 PM, Michael Stone mich...@laptop.org wrote: The Sugar UI should make network health discoverable. Good point in general. To what is trying to get solved, I'd word it as Sugar UI should make network _affordances_ discoverable. We can get a rough initial version with a ping to 'schoolserver', and a ping to a configurable internet host. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
For the schoolserver (and other jabber-based environments), wouldn't the best check be to see if there is a working gabble connection and that we are not on salut? It seems like a lot of people are trying to guess how deployments like to configure their networks (DNS, ICMP ping support to gateway and/or Internet, HTTP, etc.). As at least a few deployments have shown us (hidden SSIDs, HTTP Proxies, cellular modem routing requests, MAC-based network restrictions limited to XOs, etc.), our initial guesses are often wrong. Personally, I think we might want to separate this out into a basic icon sort of check in the frame, and a more advanced control panel for adults/teachers which can do tests and explain things in more detail. On 2/13/2011 7:41 PM, Martin Langhoff wrote: On Sun, Feb 13, 2011 at 6:38 PM, Michael Stonemich...@laptop.org wrote: The Sugar UI should make network health discoverable. Good point in general. To what is trying to get solved, I'd word it as Sugar UI should make network _affordances_ discoverable. We can get a rough initial version with a ping to 'schoolserver', and a ping to a configurable internet host. m ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Sun, Feb 13, 2011 at 8:00 PM, Samuel Greenfeld greenf...@laptop.org wrote: For the schoolserver (and other jabber-based environments), wouldn't the best check be to see if there is a working gabble connection and that we are not on salut? That only works _after_ you've registered. So no. I'd be interested in your thoughts on -testing- this stuff. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Read patch: get back epub support
This patch get back epub support and the lost pdf functionalities. I moved all the code specific to a viewer from readactivity, readtoolbar and readtopbar, to a different class (EpupViewer and EvinceViewer) for backend. The idea is add another backend to text files. Gonzalo From 5aa984020832ee87513570c5f5593b6f721c9eea Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard godi...@sugarlabs.org Date: Sat, 12 Feb 2011 18:32:21 -0300 Subject: [PATCH] Get back functionalities in EPUB framework - TOC, zoom and find are working in epub - All the code specific to a backend is moved outsude of readactivity.py, readtoolbar.py and readtopbar.py - Rename adapter classes to avoid confusion --- activity/activity.info |2 +- epubadapter.py | 68 ++- epubview/epubview.py | 46 +++--- epubview/jobs.py |2 +- evinceadapter.py | 221 readactivity.py| 172 + readtoolbar.py | 87 ++-- readtopbar.py | 19 ++--- 8 files changed, 393 insertions(+), 224 deletions(-) create mode 100644 evinceadapter.py diff --git a/activity/activity.info b/activity/activity.info index a6dcfac..35bff87 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -4,6 +4,6 @@ bundle_id = org.laptop.sugar.ReadActivity icon = activity-read exec = sugar-activity readactivity.ReadActivity show_launcher = no -activity_version = 78 +activity_version = 88 mime_types = application/pdf;image/vnd.djvu;image/x.djvu;image/tiff;application/x-cbz;application/x-cbr;application/epub+zip license = GPLv2+ diff --git a/epubadapter.py b/epubadapter.py index a11cdd7..2d4a913 100644 --- a/epubadapter.py +++ b/epubadapter.py @@ -3,15 +3,52 @@ import logging import epubview - _logger = logging.getLogger('read-activity') -class View(epubview.EpubView): +class EpubViewer(epubview.EpubView): def __init__(self): epubview.EpubView.__init__(self) +def setup(self, activity): +self.set_screen_dpi(activity.dpi) +self.connect('selection-changed', +activity._view_selection_changed_cb) + +activity._hbox.pack_start(self, expand=True, fill=True) +self.show_all() + +def load_document(self, file_path): +self.set_document(EpubDocument(self, file_path.replace('file://', ''))) + +def load_metadata(self, activity): +pass + +def update_metadata(self, activity): +pass + +def zoom_to_width(self): +pass + +def zoom_to_best_fit(self): +pass + +def zoom_to_actual_size(self): +pass + +def can_zoom_to_width(self): +return False + +def connect_zoom_handler(self, handler): +self._zoom_handler = handler +self._view_notify_zoom_handler = \ +self.connect('notify::scale', handler) +return self._view_notify_zoom_handler + +def connect_page_changed_handler(self, handler): +self.connect('page-changed', handler) + def _try_load_page(self, n): if self._ready: self._load_page(n) @@ -23,6 +60,7 @@ class View(epubview.EpubView): return def find_set_highlight_search(self, set_highlight_search): +#TODO : what is this? return def set_current_page(self, n): @@ -38,12 +76,32 @@ class View(epubview.EpubView): def get_current_page(self): return int(self._loaded_page - 1) +def update_toc(self, activity): +if self._epub.has_document_links(): +activity._navigator_toolbar_button.show() +activity._navigator.show_all() + +activity._toc_model = self._epub.get_links_model() +activity._navigator.set_model(activity._toc_model) +activity._navigator.set_active(0) +return True +else: +return False + def find_changed(self, job, page=None): self._find_changed(job) def handle_link(self, link): self._load_file(link) +def setup_find_job(self, text, updated_cb): +self._find_job = JobFind(document=self._epub, +start_page=0, n_pages=self.get_pagecount(), +text=text, case_sensitive=False) +self._find_updated_handler = self._find_job.connect('updated', +updated_cb) +return self._find_job, self._find_updated_handler + class EpubDocument(epubview.Epub): @@ -63,5 +121,7 @@ class EpubDocument(epubview.Epub): class JobFind(epubview.JobFind): -def __init__(self, document, start_page, n_pages, text, case_sensitive=False): -epubview.JobFind.__init__(self, document, start_page, n_pages, text, case_sensitive=False) +def __init__(self, document, start_page, n_pages, text, +case_sensitive=False): +epubview.JobFind.__init__(self, document, start_page, n_pages, text, +case_sensitive=False) diff
Re: [Sugar-devel] [DESIGN] Reflect internet connectivity in the 'Network' frame icon
On Sun, 13 Feb 2011 at 19:41:32 -0500, Martin Langhoff martin.langh...@gmail.com wrote: On Sun, Feb 13, 2011 at 6:38 PM, Michael Stone mich...@laptop.org wrote: The Sugar UI should make network health discoverable. Good point in general. (Thanks! :) To what is trying to get solved, I'd word it as Sugar UI should make network _affordances_ discoverable. So what network affordances [1, 2] are we supposed to make discoverable? :) In particular: a) are we trying to expose affordances that are useful when the network is working perfectly or are we more interested in making discoverable those affordances that will be useful when things are broken? b) are we more interested in making indicators (whose status is automatically updated) or in sensors that can be activated to learn about the world? We can get a rough initial version with a ping to 'schoolserver', and a ping to a configurable internet host. For the sake of concreteness, here are some examples of how these considerations might affect Anish's general idea: 1) Let's make an autonomous binary internet indicator to be displayed on the frame and in the network-view. The sensor driving the indicator will periodically make HTTP HEAD requests at a deployment-configured rate against a URL chosen uniformly at random from a deployment-configured list. The indicator will be happy when the most recent request succeeded with status code 200 and will be sad otherwise. 2) Let's make a three-state autonomous indicator to be displayed on the frame and in the network view. The sensor driving the indicator will periodically run a complete network diagnostic procedure which, at a minimum, checks that we: 1) have a network interface, 2) that is up, 3) with an IP address, 4) that the interface IP is pingable 5) with default route configured 6) that the default route is pingable 7) with a nameserver entry in resolv.conf 8) that is pingable 9) that successfully resolves a list of test addresses 10) such that the resolved IPs are pingable 11) such that there are HTTP servers running on port 80 on the IPs returned from a configured subset of the resolved names that that return status code 200 for HTTP 1.0 HEAD requests for url / The indicator will be happy if all tests past in the most recent test run. The indicator will be sad if any hard tests failed. The indicator will be worried if all hard tests passed but some soft tests failed. If the indicator is sad or worried, then hovering or clicking on the indicator will display a modal dialog or palette listing all tests, showing their pass/fail status, and showing folded blocks of logs for all tests. Thoughts? Michael [1]: As background, I'm going to assume that an affordance is a quality of an object, or an environment, that allows an individual to perform an action (http://en.wikipedia.org/wiki/Affordance). Please correct me if you prefer a different definition. [2]: For example, are all these opportunities included? * to join a shared activity * to send an object to a friend * to store or to load a backup and * to browse the web How about these? * to join #sugar-devel * to host a web page * to copy an activity from a friend's journal Or these? * to ping a default route? * to resolve names to IP addresses? * to send IP packets to and to receive packets from public IPs? * to communicate without interference from middlepeople? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [off topic] OLPCs running on XP?
On Sun, Feb 13, 2011 at 8:07 PM, Gabriel Eirea gei...@gmail.com wrote: There are 3000 XO-1 running XP in Uruguay, department of Treinta y Tres, secondary and technical schools. This was a joint donation by Microsoft and OLPC for a Plan Ceibal's pilot program of which we haven't heard anymore. I found a recent (May 2010) report of Plan CEIBAL here..olpcnews.com/countries/uruguay/plan_ceibal_a_better_designed.html There is no mention if these are running XP. I wanted to ask on the page, but I get an error when I post a question. -- GN ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release Write-73
Activity Homepage: http://activities.sugarlabs.org/addon/4201 Sugar Platform: 0.82 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27216/write-73.xo Release notes: Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [off topic] OLPCs running on XP?
On Sun, Feb 13, 2011 at 9:41 AM, Walter Bender walter.ben...@gmail.comwrote: So it seems that where it is being deployed, it is on the order of 1% of the deployments? I also think that 1% is the right approximate percentage. -walter On 2/13/11, Gabriel Eirea gei...@gmail.com wrote: There are 3000 XO-1 running XP in Uruguay, department of Treinta y Tres, secondary and technical schools. This was a joint donation by Microsoft and OLPC for a Plan Ceibal's pilot program of which we haven't heard anymore. Regards, Gabriel 2011/2/12 Nagarjuna G nagar...@gnowledge.org: Where on earth are OLPCs running on XP? What percent of the OLPCs actually are running on XP? I know there are very few, possibly in Peru. Do any of you know any other places? If any of you even direct me to a place where I can get some info on this, that will help. I am sending some answers to someone, and if my reply is accurate that will help. -- GN ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel