[Sugar-devel] Sugar web activity wait 1 minute at startup

Gonzalo Odiard godiard at sugarlabs.org
Thu Jan 30 07:53:13 EST 2014


On Thu, Jan 30, 2014 at 9:41 AM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:

> This seems something we should apply in any case.
>
>
At least looks right :)

I am waiting a little to see if we can find the solution to the problem
Lionel found,
but anyway I will send the patch.

Gonzalo


>
> On 28 January 2014 21:06, Gonzalo Odiard <godiard at sugarlabs.org> wrote:
>
>> Lionel,
>> Can you try this patch?
>>
>> diff --git a/src/sugar3/activity/webkit1.py
>> b/src/sugar3/activity/webkit1.py
>> index deaaa12..dfd0a50 100644
>> --- a/src/sugar3/activity/webkit1.py
>> +++ b/src/sugar3/activity/webkit1.py
>> @@ -46,6 +46,8 @@ class LocalRequestHandler(BaseHTTPRequestHandler):
>>          new_path = self.server.path + '/' + self.path
>>          if not os.path.exists(new_path):
>>              logging.error('file %s not found.', new_path)
>> +            self.send_response(404)
>> +            self.end_headers()
>>              return False
>>
>>          with open(new_path) as f:
>>
>> Gonzalo
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140130/932e792b/attachment.html>


More information about the Sugar-devel mailing list