X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=callbackbase.pyx;h=a6ef6b7ecf0450445d55257180aafd42be7a891c;hp=5f6291e2426682d8f1769f7295532115280a104d;hb=e5ebb86780b3aaa049d510bfa0c9ce265ba5ebb5;hpb=0a6492a9288f6b1e6ec82e17ef0bbde9a014de6b diff --git a/callbackbase.pyx b/callbackbase.pyx index 5f6291e..a6ef6b7 100644 --- a/callbackbase.pyx +++ b/callbackbase.pyx @@ -1,10 +1,27 @@ -import purple -import ecore +# +# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia +# +# This file is part of python-purple. +# +# python-purple is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# python-purple is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# class CallBackBase: def __init__(self, dict_cbs): self.cbs = dict_cbs - + def add_callback(self, name, func): self.cbs[name] = func