1592 |
1592 |
1593 idx, varDict = next(varGen) |
1593 idx, varDict = next(varGen) |
1594 varlist = self.__formatVariablesList( |
1594 varlist = self.__formatVariablesList( |
1595 varDict, scope, filterList) |
1595 varDict, scope, filterList) |
1596 else: |
1596 else: |
1597 # Gently handle exception which could occure as special |
1597 # Gently handle exception which could occur as special |
1598 # cases, e.g. already deleted C++ objects, str conversion.. |
1598 # cases, e.g. already deleted C++ objects, str conversion.. |
1599 try: |
1599 try: |
1600 varlist = self.__formatQtVariable(variable, typeName) |
1600 varlist = self.__formatQtVariable(variable, typeName) |
1601 except Exception: |
1601 except Exception: |
1602 varlist = [] |
1602 varlist = [] |
1879 rvalue = "{0:d}".format(len(value)) |
1879 rvalue = "{0:d}".format(len(value)) |
1880 elif valtype == 'array.array': |
1880 elif valtype == 'array.array': |
1881 rvalue = "{0:d}|{1}".format( |
1881 rvalue = "{0:d}|{1}".format( |
1882 len(value), value.typecode) |
1882 len(value), value.typecode) |
1883 elif valtype == 'collections.defaultdict': |
1883 elif valtype == 'collections.defaultdict': |
1884 rvalue = "{0:d}|{1}".format( |
1884 if value.default_factory is None: |
1885 len(value), value.default_factory.__name__) |
1885 factoryName = "None" |
|
1886 else: |
|
1887 factoryName = value.default_factory.__name__ |
|
1888 rvalue = "{0:d}|{1}".format(len(value), factoryName) |
1886 elif valtype == "numpy.ndarray": |
1889 elif valtype == "numpy.ndarray": |
1887 rvalue = "x".join(str(x) for x in value.shape) |
1890 rvalue = "x".join(str(x) for x in value.shape) |
1888 elif valtypename == "MultiValueDict": |
1891 elif valtypename == "MultiValueDict": |
1889 rvalue = "{0:d}".format(len(value.keys())) |
1892 rvalue = "{0:d}".format(len(value.keys())) |
1890 valtype = "django.MultiValueDict" # shortened type |
1893 valtype = "django.MultiValueDict" # shortened type |