Commit Graph

19 Commits

Author SHA1 Message Date
Dan Williams
28637c098e Fix activity creation ID collisions 2007-05-08 11:19:30 -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
Dan Williams
4cf8f321f0 Fix activity ID generation logic 2007-04-09 15:08:04 -04:00
Dan Williams
bc083dae5a Cut over to new PresenceService 2007-04-09 14:40:56 -04:00
Marco Pesenti Gritti
e25c95ebaf My brain is dead, it really is. Actually setup gettext on the server... 2007-03-23 17:57:36 +01:00
Marco Pesenti Gritti
dd6b0c0b7e Remove debug code 2007-03-23 17:46:55 +01:00
Marco Pesenti Gritti
ba242f34b7 Fix locale path handling 2007-03-23 17:43:40 +01:00
Marco Pesenti Gritti
d17e733677 Add support to read linfo.
Refactor locale to actually use gettext.
2007-03-23 17:27:31 +01:00
Tomeu Vizoso
4fbfd1625c Make create_activity_id() a public function. 2007-03-15 12:47:10 +01:00
Marco Pesenti Gritti
d3493aea9e Smarter sugar-activity which can make itself the factory and open
one instance.
2007-03-09 16:35:53 +01:00
John (J5) Palmieri
b21f1a3b80 workaround to fix blocking when launching activities
* set follow_name_owner_changes to true when creating a proxy for an activity
  which causes proxies to be late bound and not make a blocking call to
  start a service
2007-03-05 16:14:11 -05:00
Tomeu Vizoso
d027761209 Added create_with_object_id() func. 2007-03-02 22:22:19 +01:00
Marco Pesenti Gritti
5f288b68c9 Typo 2007-02-27 23:19:02 +01:00
Marco Pesenti Gritti
1b5ac988d7 Put exec back, I forgot it was used by the camera.
Helper method to create an activity with an uri.
2007-02-22 01:23:58 +01:00
Marco Pesenti Gritti
0b6b6cd6ac Cleanup the Activity API, code needs more love. 2007-02-22 00:57:49 +01:00
Marco Pesenti Gritti
0d7bdeb20a Improve handle marshalling. Add an uri to the handle. 2007-02-22 00:41:26 +01:00
Marco Pesenti Gritti
5cf2b49cc1 Add an handle argument to the factory and to the activity constructor. 2007-02-22 00:07:08 +01:00
Marco Pesenti Gritti
9ba487fa1f Generate the id in ActivityFactory. I want it to be easy to
run activities without using the shell. Some regression in
the debug messages, which I'll fix as part of further
refactoring.
2007-02-21 20:56:14 +01:00
Marco Pesenti Gritti
ef3f861954 Fix caps 2007-02-21 20:20:36 +01:00