viff

changeset 1341:31a1534f6b77

runtime: Priorize mixins over base runtime. Otherwise, BasicActiveRuntime.get_triple() overwrites get_triple() of the chosen mixin.
author Marcel Keller <mkeller@cs.au.dk>
date Tue, 27 Oct 2009 20:45:20 +0100
parents 614c32bfe8fb
children 3a87b4d84eb6
files viff/runtime.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/runtime.py	Tue Oct 27 19:59:42 2009 +0100
     1.2 +++ b/viff/runtime.py	Tue Oct 27 20:45:20 2009 +0100
     1.3 @@ -950,7 +950,7 @@
     1.4          # We must include at least one new-style class in bases. We
     1.5          # include it last to avoid overriding __init__ from the other
     1.6          # base classes.
     1.7 -        bases = (runtime_class,) + tuple(mixins) + (object,)
     1.8 +        bases = tuple(mixins) + (runtime_class,) + (object,)
     1.9          return type("ExtendedRuntime", bases, {})
    1.10  
    1.11  def create_runtime(id, players, threshold, options=None, runtime_class=None):