~ubuntu-branches/ubuntu/karmic/ibus/karmic-updates

« back to all changes in this revision

Viewing changes to ibus/component.py

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-07-23 20:22:09 UTC
  • mfrom: (1.1.4 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090723202209-bmgqa80g1umg8l2p
Tags: 1.2.0.20090723-1
new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from observedpath import *
31
31
 
32
32
class Component(Serializable):
 
33
    __gtype_name__ = "PYIBusComponent"
33
34
    __NAME__ = "IBusComponent"
34
35
    def __init__ (self, name="", description="", version="", license="", author="", homepage="", _exec="", textdomain=""):
35
36
        super(Component, self).__init__()
120
121
        self.__observed_paths = map(deserialize_object, struct.pop(0))
121
122
        self.__engines = map(deserialize_object, struct.pop(0))
122
123
 
123
 
serializable_register(Component)
124
 
 
125
124
def test():
126
125
    text = Component("Hello", "", "", "", "", "", "", "")
127
126
    value = serialize_object(text)