<div dir="ltr">Check the environment for the process in both cases.<div><br></div><div>Sugar initialize the locale on main.py setup_locale(), maybe is related.</div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 12:54 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">strange enough ...<div><br></div><div>_default_lang = '%s.%s' % locale.getdefaultlocale() doesnot work in apisocket.py while it does work in sugar/extensions/cpsection/language/model.py<br></div><div>
<br></div><div>-> the reason being when I log _default_lang in the model.py file , it correctly outputs the locale value while no value is output in apisocket.py file.</div><div><br></div><div>any reason why is it so ?</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 10:44 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">okay</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Aug 9, 2014 at 2:57 AM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Puneet,<div>Please do a little more research from your part.</div><div>Check in the control panel code the information about the language, and verify if need be converted </div>
<div>to get the format needed by Cordoba.</div>
<div>You already have information about how to get the network device,</div><div>if need more information, the NetworkManager documentation can be useful.</div><span><font color="#888888"><div><br></div><div>
Gonzalo</div></font></span></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 6:05 PM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">also how to get the the BCP 47 compliant locale identifier string in sugar ? need it for - <a href="http://cordova.apache.org/docs/en/3.3.0/cordova_globalization_globalization.md.html#globalization.getLocaleName" target="_blank">http://cordova.apache.org/docs/en/3.3.0/cordova_globalization_globalization.md.html#globalization.getLocaleName</a> </div>
<div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 2:30 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">when I checked : this the error I get : <div><br></div><div><div> File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/cordova/network.py", line 23, in nm_status</div>
<div> proxy = bus.get_object(_DBUS_SERVICE, _DBUS_PATH)</div><div> File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 241, in get_object</div><div> follow_name_owner_changes=follow_name_owner_changes)</div>
<div> File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 248, in __init__</div><div> self._named_service = conn.activate_name_owner(bus_name)</div><div> File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 180, in activate_name_owner</div>
<div> self.start_service_by_name(bus_name)</div><div> File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 278, in start_service_by_name</div><div> 'su', (bus_name, flags)))</div><div> File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking</div>
<div> message, timeout)</div><div>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.sugarlabs.SugarServices was not provided by any .service files</div></div><div><br></div><div><br>
</div><div>Is it because I am testing on a non-xo ?</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 11:43 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, seems close to whats required, will try out and see if can fit in well.</div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 7:43 AM, Walter Bender <span dir="ltr"><<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps you want something like this?<div><br></div><div><a href="https://github.com/walterbender/training/blob/master/utils.py#L1102" target="_blank">https://github.com/walterbender/training/blob/master/utils.py#L1102</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, Aug 5, 2014 at 2:47 PM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">( a specific function from the jarabe.model.network which can be used or a particular line )</div>
<div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 12:16 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am unable to figure out how to fetch the connection details ( the type of network connection )<div><br>
</div><div>Can someone please point me to that ?</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 30, 2014 at 8:04 PM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Jul 30, 2014 at 4:58 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Maybe you can return a empty list right now,<div>and we can add support later if possible.</div></div></blockquote>
<div><br></div></div><div>ok</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><font color="#888888"><div><br>
</div><div>Gonzalo</div>
</font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 5:05 AM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Jul 30, 2014 at 2:50 AM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is this a requirement?<div>I am not sure if the concept of Contact map well with the collaboration stuff in Sugar.</div>
<span><font color="#888888"><div><br></div></font></span></div></blockquote></div><div>nope.</div><div><br></div><div>We are still in the stage of experimenting things out. If contact doesnt map well to the friends incase of sugar , then we would leave that out.</div>
<div><div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><font color="#888888"><div></div><div>Gonzalo<br><div><br>
</div></div></font></span></div><div class="gmail_extra"><div><div><br>
<br><div class="gmail_quote">On Tue, Jul 29, 2014 at 12:49 PM, Puneet Kaur <span dir="ltr"><<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Tue, Jul 29, 2014 at 1:27 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur wrote:<br>
> On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard <<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>> wrote:<br>
> On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur <<a href="mailto:puneet.gkaur@gmail.com" target="_blank">puneet.gkaur@gmail.com</a>><br>
> wrote:<br>
><br>
</div><div>> 5. Fetching the friends details<br>
><br>
> What information is needed in this case? <br>
><br>
> the names of a person's friends , and their details ( somewhat like<br>
> contacts we have in phone , map to the friends in sugar) <br>
<br>
</div>Why is this needed?<br>
<br>
What will it be used for?<br>
<br>
Who will have access to it?<br>
<span><font color="#888888"><br></font></span></blockquote><div><br></div></div></div><div>It is need to develop the contact cordova plugin : <a href="https://github.com/apache/cordova-plugin-contacts/blob/master/doc/index.md" target="_blank">https://github.com/apache/cordova-plugin-contacts/blob/master/doc/index.md</a></div>
<div><br></div><div>It will be used in case the cordova apps developed for some other platform are ported to sugar to be run as activities and in case they use the cordova contact plugin then the application should be able to perform on sugar the tasks it does on other platform ( we need to see which all can be supported in case of sugar - pick contact, find contact and create contact are a few method provided in the api )</div>
<div><br></div><div>The cordova application ( the sugar actiivity) would be able to have access by picking up a contact, finding one or creating it.</div><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span><font color="#888888">
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</font></span></blockquote></div></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div></div>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div><div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></div></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Walter Bender<br>Sugar Labs<br><a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>