Re: Exiting Activity started from Home returns to Journal view or another Activity view

2010-08-28 Thread Frederick Grose
On Sat, Aug 28, 2010 at 3:05 AM, Tabitha Roder tabi...@tabitha.net.nz
 wrote:

 Testing summary - Auckland New Zealand, 28 August 2010



{...}



Does this build default to Journal view after you close activities? Instead
 of Home view?


See this from
http://www.mail-archive.com/sugar-de...@lists.sugarlabs.org/msg15409.html :

On Tue, Aug 3, 2010 at 12:46 AM, Frederick Grose fgr...@gmail.com wrote:

 Sugar 0.84.x seems to have a regression in behavior from 0.82
 See http://dev.laptop.org/ticket/10264

 http://dev.laptop.org/ticket/10264Perhaps someone knows of a quick fix
 for this. Efforts to pin the cause have not been fruitful so far.

 An Activity launched from the Home view, when exited, returned focus to the
 Journal view. This was an unexpected change of context not experienced on
 build 802.

 Testing with SoaS-Strawberry (Sugar 0.84.2) revealed that
 if the Activity had no previous entry in the Journal
 the focus would return to Home view on exit.
 else
 the focus would return to the Journal or another running Activity, if
 present.

 On Sugar 0.88.1 (Xephyr window in Fedora)
 the focus returns to the Home view if launched from there
 or to the Journal if launched from there.

 The 0.88   0.82 behavior seem correct (as there is no surprise about where
 you end up on leaving an Activity).

 --Fred

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-configure

2010-08-28 Thread Bernie Innocenti
Sorry for the long delay, I had overlooked this unreplied message.

El Sat, 14-08-2010 a las 14:35 -0500, Jerry Vonau escribió:
 On Sat, 2010-08-14 at 15:15 -0400, Bernie Innocenti wrote:
  Since you get en_US.UTF-8 either way, I would tend not to bother fixing
  this bug neither in olpc-configure nor in your mfg-data.
 
 I don't want en_US.UTF-8, I want what I set in os-builders'
 base/ksmain.10.core.inc file, I'm changing the install language there.
 Is there a reason not to do that? Now that you can switch between gnome
 and sugar, though that might be a good way to keep the two in sync.

The lang option in ksmain.10.core.inc gets stored
into /etc/sysconfig/i18n by imgcreate.

Regardless of the contents of the manifacturing data, olpc-configure
will *always* override /etc/sysconfig/i18n on first boot.

To prevent this, you could touch /.olpc-configure from olpc-os-builder.
Take care to also perform the rest of the initialization usually done by
olpc-configure.

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[Server-devel] oatslite: Report stolen and fix

2010-08-28 Thread Martin Langhoff
Working in LR, fixed a bug in oatslite, plus minor improvements. Maybe
we are looking at the wrong repo or otherwise using stale code?

The code as-is could not have worked as it's missing a \n that is
required in the format...

cheers,


m
-- 
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
From ba7ed795d9874dce629f3693357662d42efb842d Mon Sep 17 00:00:00 2001
From: Martin Langhoff mar...@laptop.org
Date: Fri, 27 Aug 2010 20:36:08 -0300
Subject: [PATCH] Report stolen msgs to syslog

---
 oatslite |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/oatslite b/oatslite
index a459eec..db4ef91 100755
--- a/oatslite
+++ b/oatslite
@@ -137,6 +137,7 @@ def stolen_hash(sn, nonce):
 			uuid = line[len(srch):]
 			tag = %s:%s:STOLEN % (uuid,nonce)
 			print Reporting stolen machine:, sn
+			syslog.syslog(Reporting stolen - %s % sn)
 			break
 
 	if tag is None:
-- 
1.7.2.1

From c8c1dbffee539185ed94f784f0457922736facec Mon Sep 17 00:00:00 2001
From: Martin Langhoff mar...@laptop.org
Date: Fri, 27 Aug 2010 19:43:53 -0300
Subject: [PATCH] Fix msg signing, fix STOLEN tag

The signature part of the OAT messsage was missing
its trailing newline. Fixed.

The STOLEN tag was somehow being represented as an int.
Ensure sane treatment as string.
---
 oatslite |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/oatslite b/oatslite
index 089fdab..a459eec 100755
--- a/oatslite
+++ b/oatslite
@@ -106,6 +106,7 @@ def make_credential(sn, obj):
 		buf_sig = pysign.sign_buffer(priv, buf)
 		sig = pysign.sig01(pub, buf_sig)
 
+	sig = sig+\n
 	return ('sig', 1, [sig])
 
 def get_lease(sn):
@@ -133,17 +134,18 @@ def stolen_hash(sn, nonce):
 	for line in stolen_list:
 		if line.startswith(srch):
 			line = line.rstrip()
-			tag = line[len(srch):] + : + nonce + :STOLEN
+			uuid = line[len(srch):]
+			tag = %s:%s:STOLEN % (uuid,nonce)
 			print Reporting stolen machine:, sn
 			break
 
 	if tag is None:
 		# not found in list
 		# we don't know the UUID so we can't follow the spec and return a hash
-		# of UUID:nonce, so we'll just return a random hash.
+		# of UUID:nonce, so we'll just return some other hash.
 		# it's important to always return a tag (even if not stolen) so that
 		# OATS messages including the tag can't be simply dropped by a filter
-		tag = str(random.getrandbits(64))
+		tag = %s:%s % (sn,nonce)
 
 	return hashlib.sha256(tag).hexdigest()
 
-- 
1.7.2.1

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel