Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-11 Thread Gonzalo Odiard
Check the environment for the process in both cases. Sugar initialize the locale on main.py setup_locale(), maybe is related. Gonzalo On Sun, Aug 10, 2014 at 12:54 AM, Puneet Kaur wrote: > strange enough ... > > _default_lang = '%s.%s' % locale.getdefaultlocale() doesnot work in > apisocket.p

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-09 Thread Puneet Kaur
strange enough ... _default_lang = '%s.%s' % locale.getdefaultlocale() doesnot work in apisocket.py while it does work in sugar/extensions/cpsection/language/model.py -> the reason being when I log _default_lang in the model.py file , it correctly outputs the locale value while no value is output

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-08 Thread Puneet Kaur
okay On Sat, Aug 9, 2014 at 2:57 AM, Gonzalo Odiard wrote: > Hi Puneet, > Please do a little more research from your part. > Check in the control panel code the information about the language, and > verify if need be converted > to get the format needed by Cordoba. > You already have informatio

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-08 Thread Gonzalo Odiard
Hi Puneet, Please do a little more research from your part. Check in the control panel code the information about the language, and verify if need be converted to get the format needed by Cordoba. You already have information about how to get the network device, if need more information, the Networ

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-08 Thread Puneet Kaur
also how to get the the BCP 47 compliant locale identifier string in sugar ? need it for - http://cordova.apache.org/docs/en/3.3.0/cordova_globalization_globalization.md.html#globalization.getLocaleName On Sat, Aug 9, 2014 at 2:30 AM, Puneet Kaur wrote: > when I checked : this the error I get

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-08 Thread Puneet Kaur
when I checked : this the error I get : File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/cordova/network.py", line 23, in nm_status proxy = bus.get_object(_DBUS_SERVICE, _DBUS_PATH) File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 241, in get_obje

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-07 Thread Puneet Kaur
Thanks, seems close to whats required, will try out and see if can fit in well. On Fri, Aug 8, 2014 at 7:43 AM, Walter Bender wrote: > Perhaps you want something like this? > > https://github.com/walterbender/training/blob/master/utils.py#L1102 > > > On Tue, Aug 5, 2014 at 2:47 PM, Puneet Kaur

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-07 Thread Walter Bender
Perhaps you want something like this? https://github.com/walterbender/training/blob/master/utils.py#L1102 On Tue, Aug 5, 2014 at 2:47 PM, Puneet Kaur wrote: > ( a specific function from the jarabe.model.network which can be used or a > particular line ) > > > On Wed, Aug 6, 2014 at 12:16 AM, P

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-05 Thread Puneet Kaur
( a specific function from the jarabe.model.network which can be used or a particular line ) On Wed, Aug 6, 2014 at 12:16 AM, Puneet Kaur wrote: > I am unable to figure out how to fetch the connection details ( the type > of network connection ) > > Can someone please point me to that ? > > > O

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-08-05 Thread Puneet Kaur
I am unable to figure out how to fetch the connection details ( the type of network connection ) Can someone please point me to that ? On Wed, Jul 30, 2014 at 8:04 PM, Puneet Kaur wrote: > > > > On Wed, Jul 30, 2014 at 4:58 PM, Gonzalo Odiard > wrote: > >> Maybe you can return a empty list ri

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-30 Thread Puneet Kaur
On Wed, Jul 30, 2014 at 4:58 PM, Gonzalo Odiard wrote: > Maybe you can return a empty list right now, > and we can add support later if possible. > ok > > Gonzalo > > > On Wed, Jul 30, 2014 at 5:05 AM, Puneet Kaur > wrote: > >> >> >> >> On Wed, Jul 30, 2014 at 2:50 AM, Gonzalo Odiard >> wrot

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-30 Thread Gonzalo Odiard
Maybe you can return a empty list right now, and we can add support later if possible. Gonzalo On Wed, Jul 30, 2014 at 5:05 AM, Puneet Kaur wrote: > > > > On Wed, Jul 30, 2014 at 2:50 AM, Gonzalo Odiard > wrote: > >> Is this a requirement? >> I am not sure if the concept of Contact map well w

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-30 Thread Puneet Kaur
On Wed, Jul 30, 2014 at 2:50 AM, Gonzalo Odiard wrote: > Is this a requirement? > I am not sure if the concept of Contact map well with the collaboration > stuff in Sugar. > > nope. We are still in the stage of experimenting things out. If contact doesnt map well to the friends incase of sugar ,

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-30 Thread Puneet Kaur
On Wed, Jul 30, 2014 at 2:39 AM, James Cameron wrote: > On Tue, Jul 29, 2014 at 09:19:53PM +0530, Puneet Kaur wrote: > > On Tue, Jul 29, 2014 at 1:27 PM, James Cameron wrote: > > > > On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur wrote: > > > On Tue, Jul 29, 2014 at 2:16 AM, Gonza

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-29 Thread Gonzalo Odiard
Is this a requirement? I am not sure if the concept of Contact map well with the collaboration stuff in Sugar. Gonzalo On Tue, Jul 29, 2014 at 12:49 PM, Puneet Kaur wrote: > > > > On Tue, Jul 29, 2014 at 1:27 PM, James Cameron wrote: > >> On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-29 Thread James Cameron
On Tue, Jul 29, 2014 at 09:19:53PM +0530, Puneet Kaur wrote: > On Tue, Jul 29, 2014 at 1:27 PM, James Cameron wrote: > > On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur wrote: > > On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard > wrote: > >     On Mon, Jul 28, 2014 at 4:30

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-29 Thread Puneet Kaur
On Tue, Jul 29, 2014 at 1:27 PM, James Cameron wrote: > On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur wrote: > > On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard > wrote: > > On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur > > > wrote: > > > > 5. Fetching the friends details

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-29 Thread James Cameron
On Tue, Jul 29, 2014 at 12:59:48PM +0530, Puneet Kaur wrote: > On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard wrote: > On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur > wrote: > > 5. Fetching the friends details > > What information is needed in this case?  > > the names of a

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-29 Thread Puneet Kaur
On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard wrote: > > > > On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur > wrote: > >> Hi all, >> >> As I was developing other cordova plugins, I require some information >> from sugar about the following : >> >> 1. Network connection - need to know what type o

Re: [Sugar-devel] require some information from sugar to develop other plugins

2014-07-28 Thread Gonzalo Odiard
On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur wrote: > Hi all, > > As I was developing other cordova plugins, I require some information from > sugar about the following : > > 1. Network connection - need to know what type of network the device is > connected to - wifi, cellular, no connection >

[Sugar-devel] require some information from sugar to develop other plugins

2014-07-28 Thread Puneet Kaur
Hi all, As I was developing other cordova plugins, I require some information from sugar about the following : 1. Network connection - need to know what type of network the device is connected to - wifi, cellular, no connection 2. Battery status - Watch the percentage of battery charged 3. Geol