Commit Graph
12 Commits
Author SHA1 Message Date
Mike C. Fletcher 96ab3a10fe More code to handle service-offline cases and log messages to tell the
user/admin what's going on.
2007-04-22 00:31:32 -04:00
Mike C. Fletcher a7af5b06cd Try to avoid Sugar's shell just crashing and leaving a blank X server
when the PresenceService isn't available on the back-end for whatever
reason, whether mis-configuration, corrupted installation, unexpected
circumstances, or what have you.

This patch makes as few changes as possible to the code,
simply replacing the _ps member with a property that re-attempts
connection on each access until an attempt is successful.
2007-04-22 00:23:19 -04:00
Mike C. Fletcher a0ee487a40 Restructure to not execute code on speculative import
Add logging messages at "info" level to provide feedback
while launching in order to make debugging unsuccessful
launches easier.
2007-04-21 23:01:56 -04:00
Mike C. Fletcher 2848dc97ab Documentation patch from Amanda Yilmaz (services/clipboard/typeregistry.py) 2007-04-21 15:34:39 -04:00
Mike C. Fletcher df4919de2f Merge branch 'master' of git+ssh://[email protected]/git/sugar 2007-04-21 14:05:08 -04:00
Mike C. Fletcher e571b3bff9 Fix a few syntax errors so that compileall can process the module 2007-04-15 00:35:49 -04:00
Mike C. Fletcher 8635a702c6 Documentation for the activity and buddy presence objects 2007-04-15 00:27:48 -04:00
Mike C. Fletcher 0fc5e67dcc More documentation, mostly for the sugar.presence.presenceservice
module.
2007-04-14 23:38:21 -04:00
Mike C. Fletcher 5efe3ef532 Initial documentation pass for the sugar.clipboard.clipboardservice module. 2007-04-14 02:00:51 -04:00
Mike C. Fletcher 2ca12e9da2 Overall roles and operation of the activity classes.
Note on return value for factory service.
2007-04-14 01:17:59 -04:00
Mike C. Fletcher 8302be4544 A few more docstrings 2007-04-09 23:56:14 -04:00
Mike C. Fletcher 3f10890319 Docstrings for modules all over sugar and shell.
These are just the doc strings I created as I was spelunking
through to see how Sugar manages launching applications.  The
resulting auto-documentation is neither polished or finished,
but it should help people reading the code somewhat.

There are a few minor code cleanups:

  * activityhandle (replacing C idiom for initialisation with
    a Python one)
  * bundle registry (using a parameterised directory name so
    that it shows up in the documentation)
  * validate_activity_id function, use isinstance( item, (str,unicode))
    for the query, rather than two separate checks with isinstance
2007-04-09 22:47:37 -04:00