Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Copyright (c) 2009 - Paulo Cabido <paulo.cabido@gmail.com> 3 # 4 # This program is free software: you can redistribute it and/or modify it under 5 # the terms of the GNU General Public License as published by the Free Software 6 # Foundation, either version 3 of the License, or (at your option) any later 7 # version. 8 # 9 # This program is distributed in the hope that it will be useful, but WITHOUT 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 11 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 12 # details. 13 # 14 # You should have received a copy of the GNU General Public License along with 15 # this program. If not, see <http://www.gnu.org/licenses/>. 16 17 import random 1827 34 377739 return self.Accumulator()40 41 # execute the slots43 accum = self.create_accumulator() 44 for conn in xrange(len(self.__slots)): 45 if not self.__slots[conn][1](accum, *args, **kwargs): 46 break 47 return accum.finalize()4850 for i in xrange(len(self.__slots)): 51 if self.__slots[i][0] == conn: 52 return i 53 54 return -155 56 # create the connection name58 value = 0 59 while self.find(value) >= 0: 60 value = random.randint(1, 100000000) 61 return value62 67 68 # disconnect a slot 73 74 # disconnect all slots
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Aug 26 23:13:45 2009 | http://epydoc.sourceforge.net |