diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-29 18:51:38 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-29 18:51:38 +0100 |
commit | 3401bcfd5ed57dec9e0f78553d627d7608170cb6 (patch) | |
tree | c36ac6fe4581379ed03f72409244aa40414b9580 /pyload/remote/create_apitypes.py | |
parent | fixed new waiting dl rule (diff) | |
download | pyload-3401bcfd5ed57dec9e0f78553d627d7608170cb6.tar.xz |
added connection flags to download status
Diffstat (limited to 'pyload/remote/create_apitypes.py')
-rw-r--r-- | pyload/remote/create_apitypes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/remote/create_apitypes.py b/pyload/remote/create_apitypes.py index 61063fa3b..80fdb7848 100644 --- a/pyload/remote/create_apitypes.py +++ b/pyload/remote/create_apitypes.py @@ -12,8 +12,7 @@ from thrift.Thrift import TType from thriftgen.pyload import ttypes from thriftgen.pyload import Pyload -# TODO: import and add version -# from pyload import CURRENT_VERSION +from pyload import __version_info__ type_map = { TType.BOOL: 'bool', @@ -80,15 +79,17 @@ def main(): # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING class BaseObject(object): +\t__version__ = {0} \t__slots__ = [] \tdef __str__(self): \t\treturn "<%s %s>" % (self.__class__.__name__, ", ".join("%s=%s" % (k,getattr(self,k)) for k in self.__slots__)) class ExceptionObject(Exception): +\t__version__ = {0} \t__slots__ = [] -""") +""".format(__version_info__)) dev = open(join(path, "apitypes_debug.py"), "wb") dev.write("""#!/usr/bin/env python |