From 46173e352cf3c55ecf9f5892ff83d78c1996da77 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 13 Oct 2012 22:27:10 +0200 Subject: added exceptions for clients, created test for WS client --- module/remote/create_ttypes.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'module/remote/create_ttypes.py') diff --git a/module/remote/create_ttypes.py b/module/remote/create_ttypes.py index ab74a3441..fc4d75d32 100644 --- a/module/remote/create_ttypes.py +++ b/module/remote/create_ttypes.py @@ -111,6 +111,12 @@ from ttypes import *\n name = klass.__name__ base = "Exception" if issubclass(klass, ttypes.TExceptionBase) else "BaseObject" f.write("class %s(%s):\n" % (name, base)) + + # No attributes, don't write further info + if not klass.__slots__: + f.write("\tpass\n\n") + continue + f.write("\t__slots__ = %s\n\n" % klass.__slots__) dev.write("\t'%s' : [" % name) -- cgit v1.2.3