More 2to3 fixes in the Tools directory. Fixes #2893.

This commit is contained in:
Georg Brandl 2008-05-16 17:02:34 +00:00
parent acbca71ea7
commit bf82e374ee
38 changed files with 1999 additions and 2032 deletions

View file

@ -88,7 +88,7 @@ def stringify(str):
res = '"' res = '"'
map = _stringify_map map = _stringify_map
for c in str: for c in str:
if map.has_key(c): res = res + map[c] if c in map: res = res + map[c]
elif ' ' <= c <= '~': res = res + c elif ' ' <= c <= '~': res = res + c
else: res = res + '\\%03o' % ord(c) else: res = res + '\\%03o' % ord(c)
res = res + '"' res = res + '"'

View file

@ -182,7 +182,7 @@ def Out(text):
line = line[n:] line = line[n:]
else: else:
for c in indent: for c in indent:
if line[:1] <> c: break if line[:1] != c: break
line = line[1:] line = line[1:]
VaOutput("%s", line) VaOutput("%s", line)

View file

@ -126,23 +126,20 @@ class Scanner:
self.usedtypes = {} self.usedtypes = {}
def typeused(self, type, mode): def typeused(self, type, mode):
if not self.usedtypes.has_key(type): if type not in self.usedtypes:
self.usedtypes[type] = {} self.usedtypes[type] = {}
self.usedtypes[type][mode] = None self.usedtypes[type][mode] = None
def reportusedtypes(self): def reportusedtypes(self):
types = self.usedtypes.keys() types = sorted(self.usedtypes.keys())
types.sort()
for type in types: for type in types:
modes = self.usedtypes[type].keys() modes = sorted(self.usedtypes[type].keys())
modes.sort()
self.report("%s %s", type, " ".join(modes)) self.report("%s %s", type, " ".join(modes))
def gentypetest(self, file): def gentypetest(self, file):
fp = open(file, "w") fp = open(file, "w")
fp.write("types=[\n") fp.write("types=[\n")
types = self.usedtypes.keys() types = sorted(self.usedtypes.keys())
types.sort()
for type in types: for type in types:
fp.write("\t'%s',\n"%type) fp.write("\t'%s',\n"%type)
fp.write("]\n") fp.write("]\n")
@ -236,7 +233,7 @@ if missing: raise "Missing Types"
if i >= 0: line = line[:i] if i >= 0: line = line[:i]
words = [s.strip() for s in line.split(':')] words = [s.strip() for s in line.split(':')]
if words == ['']: continue if words == ['']: continue
if len(words) <> 3: if len(words) != 3:
print("Line", startlineno, end=' ') print("Line", startlineno, end=' ')
print(": bad line (not 3 colon-separated fields)") print(": bad line (not 3 colon-separated fields)")
print(repr(line)) print(repr(line))
@ -703,7 +700,7 @@ if missing: raise "Missing Types"
return arglist return arglist
def matcharg(self, patarg, arg): def matcharg(self, patarg, arg):
return len(filter(None, map(fnmatch.fnmatchcase, arg, patarg))) == 3 return len(f for f in map(fnmatch.fnmatchcase, arg, patarg) if f) == 3
def substituteargs(self, pattern, replacement, old): def substituteargs(self, pattern, replacement, old):
new = [] new = []
@ -739,7 +736,7 @@ if missing: raise "Missing Types"
self.typeused(atype, amode) self.typeused(atype, amode)
self.specfile.write(" (%s, %r, %s),\n" % self.specfile.write(" (%s, %r, %s),\n" %
(atype, aname, amode)) (atype, aname, amode))
if self.greydictnames.has_key(name): if name in self.greydictnames:
self.specfile.write(" condition=%r,\n"%(self.greydictnames[name],)) self.specfile.write(" condition=%r,\n"%(self.greydictnames[name],))
self.generatemodifiers(classname, name, modifiers) self.generatemodifiers(classname, name, modifiers)
self.specfile.write(")\n") self.specfile.write(")\n")

View file

@ -120,7 +120,7 @@ def log(text):
logfile.close() logfile.close()
def load_cookies(): def load_cookies():
if not os.environ.has_key('HTTP_COOKIE'): if 'HTTP_COOKIE' not in os.environ:
return {} return {}
raw = os.environ['HTTP_COOKIE'] raw = os.environ['HTTP_COOKIE']
words = [s.strip() for s in raw.split(';')] words = [s.strip() for s in raw.split(';')]
@ -359,7 +359,7 @@ class FaqDir:
self.open(file).show(edit=edit) self.open(file).show(edit=edit)
def new(self, section): def new(self, section):
if not SECTION_TITLES.has_key(section): if section not in SECTION_TITLES:
raise NoSuchSection(section) raise NoSuchSection(section)
maxnum = 0 maxnum = 0
for file in self.list(): for file in self.list():
@ -426,11 +426,11 @@ class FaqWizard:
query = re.escape(query) query = re.escape(query)
queries = [query] queries = [query]
elif self.ui.querytype in ('anykeywords', 'allkeywords'): elif self.ui.querytype in ('anykeywords', 'allkeywords'):
words = filter(None, re.split('\W+', query)) words = [_f for _f in re.split('\W+', query) if _f]
if not words: if not words:
self.error("No keywords specified!") self.error("No keywords specified!")
return return
words = map(lambda w: r'\b%s\b' % w, words) words = [r'\b%s\b' % w for w in words]
if self.ui.querytype[:3] == 'any': if self.ui.querytype[:3] == 'any':
queries = ['|'.join(words)] queries = ['|'.join(words)]
else: else:
@ -577,7 +577,7 @@ class FaqWizard:
emit(ONE_RECENT, period=period) emit(ONE_RECENT, period=period)
else: else:
emit(SOME_RECENT, period=period, count=len(list)) emit(SOME_RECENT, period=period, count=len(list))
self.format_all(map(lambda (mtime, file): file, list), headers=0) self.format_all([mtime_file[1] for mtime_file in list], headers=0)
emit(TAIL_RECENT) emit(TAIL_RECENT)
def do_roulette(self): def do_roulette(self):
@ -603,8 +603,7 @@ class FaqWizard:
def do_add(self): def do_add(self):
self.prologue(T_ADD) self.prologue(T_ADD)
emit(ADD_HEAD) emit(ADD_HEAD)
sections = SECTION_TITLES.items() sections = sorted(SECTION_TITLES.items())
sections.sort()
for section, title in sections: for section, title in sections:
emit(ADD_SECTION, section=section, title=title) emit(ADD_SECTION, section=section, title=title)
emit(ADD_TAIL) emit(ADD_TAIL)

View file

@ -10,11 +10,6 @@ from framer.util import cstring, unindent
from types import FunctionType from types import FunctionType
def sortitems(dict):
L = dict.items()
L.sort()
return L
# The Module and Type classes are implemented using metaclasses, # The Module and Type classes are implemented using metaclasses,
# because most of the methods are class methods. It is easier to use # because most of the methods are class methods. It is easier to use
# metaclasses than the cumbersome classmethod() builtin. They have # metaclasses than the cumbersome classmethod() builtin. They have
@ -32,7 +27,7 @@ class BaseMetaclass(type):
if not functions: if not functions:
return return
p(template.methoddef_start) p(template.methoddef_start)
for name, func in sortitems(functions): for name, func in sorted(functions.items()):
if func.__doc__: if func.__doc__:
p(template.methoddef_def_doc, func.vars) p(template.methoddef_def_doc, func.vars)
else: else:
@ -55,7 +50,7 @@ class ModuleMetaclass(BaseMetaclass):
self.__types = {} self.__types = {}
self.__members = False self.__members = False
for name, obj in self.__dict__.iteritems(): for name, obj in self.__dict__.items():
if isinstance(obj, FunctionType): if isinstance(obj, FunctionType):
self.__functions[name] = Function(obj, self) self.__functions[name] = Function(obj, self)
elif isinstance(obj, TypeMetaclass): elif isinstance(obj, TypeMetaclass):
@ -87,16 +82,16 @@ class ModuleMetaclass(BaseMetaclass):
if self.__doc__: if self.__doc__:
p(template.module_doc) p(template.module_doc)
for name, type in sortitems(self.__types): for name, type in sorted(self.__types.items()):
type.dump(f) type.dump(f)
for name, func in sortitems(self.__functions): for name, func in sorted(self.__functions.items()):
func.dump(f) func.dump(f)
self.dump_methoddef(f, self.__functions, self.__vars) self.dump_methoddef(f, self.__functions, self.__vars)
p(template.module_init_start) p(template.module_init_start)
for name, type in sortitems(self.__types): for name, type in sorted(self.__types.items()):
type.dump_init(f) type.dump_init(f)
p("}") p("}")
@ -119,7 +114,7 @@ class TypeMetaclass(BaseMetaclass):
if self.__doc__: if self.__doc__:
p(template.docstring) p(template.docstring)
for name, func in sortitems(self.__methods): for name, func in sorted(self.__methods.items()):
func.dump(f) func.dump(f)
self.dump_methoddef(f, self.__methods, self.__vars) self.dump_methoddef(f, self.__methods, self.__vars)
@ -143,7 +138,7 @@ class TypeMetaclass(BaseMetaclass):
self.__methods = {} self.__methods = {}
self.__members = {} self.__members = {}
for cls in self.__mro__: for cls in self.__mro__:
for k, v in cls.__dict__.iteritems(): for k, v in cls.__dict__.items():
if isinstance(v, FunctionType): if isinstance(v, FunctionType):
self.__methods[k] = Method(v, self) self.__methods[k] = Method(v, self)
if isinstance(v, member): if isinstance(v, member):
@ -190,7 +185,7 @@ class TypeMetaclass(BaseMetaclass):
if not self.__members: if not self.__members:
return return
p(template.memberdef_start) p(template.memberdef_start)
for name, slot in sortitems(self.__members): for name, slot in sorted(self.__members.items()):
slot.dump(f) slot.dump(f)
p(template.memberdef_end) p(template.memberdef_end)

View file

@ -45,7 +45,7 @@ class _ArgumentList(object):
fmt = None fmt = None
def __init__(self, args): def __init__(self, args):
self.args = map(Argument, args) self.args = list(map(Argument, args))
def __len__(self): def __len__(self):
return len(self.args) return len(self.args)
@ -99,15 +99,15 @@ class VarArgs(_ArgumentList):
print(" %s" % a.decl(), file=f) print(" %s" % a.decl(), file=f)
def ArgumentList(func, method): def ArgumentList(func, method):
code = func.func_code code = func.__code__
args = code.co_varnames[:code.co_argcount] args = code.co_varnames[:code.co_argcount]
if method: if method:
args = args[1:] args = args[1:]
pyarg = getattr(func, "pyarg", None) pyarg = getattr(func, "pyarg", None)
if pyarg is not None: if pyarg is not None:
args = VarArgs(args, pyarg) args = VarArgs(args, pyarg)
if func.func_defaults: if func.__defaults__:
L = list(func.func_defaults) L = list(func.__defaults__)
ndefault = len(L) ndefault = len(L)
i = len(args) - ndefault i = len(args) - ndefault
while L: while L:

View file

@ -25,7 +25,7 @@ def parse(s):
The parser is very restricted in what it will accept. The parser is very restricted in what it will accept.
""" """
lines = filter(None, s.split("\n")) # get non-empty lines lines = [_f for _f in s.split("\n") if _f] # get non-empty lines
assert lines[0].strip() == "typedef struct {" assert lines[0].strip() == "typedef struct {"
pyhead = lines[1].strip() pyhead = lines[1].strip()
assert (pyhead.startswith("PyObject") and assert (pyhead.startswith("PyObject") and

View file

@ -19,7 +19,7 @@ def parse(s):
The parser is very restricted in what it will accept. The parser is very restricted in what it will accept.
""" """
lines = filter(None, s.split("\n")) # get non-empty lines lines = [_f for _f in s.split("\n") if _f] # get non-empty lines
assert lines[0].strip() == "typedef struct {" assert lines[0].strip() == "typedef struct {"
pyhead = lines[1].strip() pyhead = lines[1].strip()
assert (pyhead.startswith("PyObject") and assert (pyhead.startswith("PyObject") and

View file

@ -18,7 +18,7 @@ def checkextensions(unknown, extensions):
for mod in unknown: for mod in unknown:
for e in extensions: for e in extensions:
(mods, vars), liba = edict[e] (mods, vars), liba = edict[e]
if not mods.has_key(mod): if mod not in mods:
continue continue
modules.append(mod) modules.append(mod)
if liba: if liba:
@ -28,7 +28,7 @@ def checkextensions(unknown, extensions):
if liba in files: if liba in files:
break break
files.append(liba) files.append(liba)
for m in mods.keys(): for m in list(mods.keys()):
files = files + select(e, mods, vars, files = files + select(e, mods, vars,
m, 1) m, 1)
break break
@ -84,7 +84,7 @@ def expandvars(str, vars):
break break
var = str[i:j] var = str[i:j]
i = j+1 i = j+1
if vars.has_key(var): if var in vars:
str = str[:k] + vars[var] + str[i:] str = str[:k] + vars[var] + str[i:]
i = k i = k
return str return str

View file

@ -460,7 +460,7 @@ def main():
somevars = {} somevars = {}
if os.path.exists(makefile_in): if os.path.exists(makefile_in):
makevars = parsesetup.getmakevars(makefile_in) makevars = parsesetup.getmakevars(makefile_in)
for key in makevars.keys(): for key in makevars:
somevars[key] = makevars[key] somevars[key] = makevars[key]
somevars['CFLAGS'] = ' '.join(cflags) # override somevars['CFLAGS'] = ' '.join(cflags) # override

View file

@ -45,18 +45,14 @@ def parse(filename):
return data return data
def pprint(data): def pprint(data):
items = sorted(data.items())
items = data.items() for k, v in items:
items.sort()
for k,v in items:
print(' %-40s%r,' % ('%r:' % k, v)) print(' %-40s%r,' % ('%r:' % k, v))
def print_differences(data, olddata): def print_differences(data, olddata):
items = sorted(olddata.items())
items = olddata.items()
items.sort()
for k, v in items: for k, v in items:
if not data.has_key(k): if k not in data:
print('# removed %r' % k) print('# removed %r' % k)
elif olddata[k] != data[k]: elif olddata[k] != data[k]:
print('# updated %r -> %r to %r' % \ print('# updated %r -> %r to %r' % \

View file

@ -56,9 +56,8 @@ def add(id, str, fuzzy):
def generate(): def generate():
"Return the generated output." "Return the generated output."
global MESSAGES global MESSAGES
keys = MESSAGES.keys()
# the keys are sorted in the .mo file # the keys are sorted in the .mo file
keys.sort() keys = sorted(MESSAGES.keys())
offsets = [] offsets = []
ids = strs = '' ids = strs = ''
for id in keys: for id in keys:

View file

@ -265,7 +265,7 @@ def containsAny(str, set):
def _visit_pyfiles(list, dirname, names): def _visit_pyfiles(list, dirname, names):
"""Helper for getFilesForName().""" """Helper for getFilesForName()."""
# get extension for python source files # get extension for python source files
if not globals().has_key('_py_ext'): if '_py_ext' not in globals():
global _py_ext global _py_ext
_py_ext = [triple[0] for triple in imp.get_suffixes() _py_ext = [triple[0] for triple in imp.get_suffixes()
if triple[2] == imp.PY_SOURCE][0] if triple[2] == imp.PY_SOURCE][0]

View file

@ -19,7 +19,7 @@ class ScrolledListbox(Listbox):
fcnf = {} fcnf = {}
vcnf = {'name': 'vbar', vcnf = {'name': 'vbar',
Pack: {'side': 'right', 'fill': 'y'},} Pack: {'side': 'right', 'fill': 'y'},}
for k in cnf.keys(): for k in list(cnf.keys()):
if type(k) == ClassType or k == 'name': if type(k) == ClassType or k == 'name':
fcnf[k] = cnf[k] fcnf[k] = cnf[k]
del cnf[k] del cnf[k]
@ -32,6 +32,6 @@ class ScrolledListbox(Listbox):
self.vbar['command'] = (self, 'yview') self.vbar['command'] = (self, 'yview')
# Copy Pack methods of self.frame -- hack! # Copy Pack methods of self.frame -- hack!
for m in Pack.__dict__.keys(): for m in Pack.__dict__:
if m[0] != '_' and m != 'config': if m[0] != '_' and m != 'config':
setattr(self, m, getattr(self.frame, m)) setattr(self, m, getattr(self.frame, m))

View file

@ -40,7 +40,7 @@ class writer:
def makesubst(self): def makesubst(self):
if not self._subst: if not self._subst:
if not self.__dict__.has_key('abbrev'): if 'abbrev' not in self.__dict__:
self.abbrev = self.name self.abbrev = self.name
self.Abbrev = self.abbrev[0].upper()+self.abbrev[1:] self.Abbrev = self.abbrev[0].upper()+self.abbrev[1:]
subst = varsubst.Varsubst(self.__dict__) subst = varsubst.Varsubst(self.__dict__)

View file

@ -17,7 +17,7 @@
# #
import sys, os import sys, os
if os.name <> 'mac': if os.name != 'mac':
sys.path.append(os.path.join(os.environ['HOME'], sys.path.append(os.path.join(os.environ['HOME'],
'src/python/Tools/modulator')) 'src/python/Tools/modulator'))

View file

@ -28,7 +28,7 @@ class Varsubst:
s = s[2:] s = s[2:]
continue continue
name = m.group(1) name = m.group(1)
if not self.dict.has_key(name): if name not in self.dict:
raise error('No such variable: '+name) raise error('No such variable: '+name)
value = self.dict[name] value = self.dict[name]
if self.do_useindent and '\n' in value: if self.do_useindent and '\n' in value:

View file

@ -19,23 +19,23 @@ def merge(msi, feature, rootdir, modules):
# Step 1: Merge databases, extract cabfiles # Step 1: Merge databases, extract cabfiles
m = msilib.MakeMerge2() m = msilib.MakeMerge2()
m.OpenLog("merge.log") m.OpenLog("merge.log")
print "Opened Log" print("Opened Log")
m.OpenDatabase(msi) m.OpenDatabase(msi)
print "Opened DB" print("Opened DB")
for module in modules: for module in modules:
print module print(module)
m.OpenModule(module,0) m.OpenModule(module,0)
print "Opened Module",module print("Opened Module",module)
m.Merge(feature, rootdir) m.Merge(feature, rootdir)
print "Errors:" print("Errors:")
for e in m.Errors: for e in m.Errors:
print e.Type, e.ModuleTable, e.DatabaseTable print(e.Type, e.ModuleTable, e.DatabaseTable)
print " Modkeys:", print(" Modkeys:", end=' ')
for s in e.ModuleKeys: print s, for s in e.ModuleKeys: print(s, end=' ')
print print()
print " DBKeys:", print(" DBKeys:", end=' ')
for s in e.DatabaseKeys: print s, for s in e.DatabaseKeys: print(s, end=' ')
print print()
cabname = tempfile.mktemp(suffix=".cab") cabname = tempfile.mktemp(suffix=".cab")
m.ExtractCAB(cabname) m.ExtractCAB(cabname)
cab_and_filecount.append((cabname, len(m.ModuleFiles))) cab_and_filecount.append((cabname, len(m.ModuleFiles)))
@ -56,7 +56,7 @@ def merge(msi, feature, rootdir, modules):
seq = r.IntegerData(1) seq = r.IntegerData(1)
if seq > maxmedia: if seq > maxmedia:
maxmedia = seq maxmedia = seq
print "Start of Media", maxmedia print("Start of Media", maxmedia)
for cabname, count in cab_and_filecount: for cabname, count in cab_and_filecount:
stream = "merged%d" % maxmedia stream = "merged%d" % maxmedia

View file

@ -205,7 +205,7 @@ def build_database():
schema, ProductName="Python "+full_current_version, schema, ProductName="Python "+full_current_version,
ProductCode=product_code, ProductCode=product_code,
ProductVersion=current_version, ProductVersion=current_version,
Manufacturer=u"Python Software Foundation") Manufacturer="Python Software Foundation")
# The default sequencing of the RemoveExistingProducts action causes # The default sequencing of the RemoveExistingProducts action causes
# removal of files that got just installed. Place it after # removal of files that got just installed. Place it after
# InstallInitialize, so we first uninstall everything, but still roll # InstallInitialize, so we first uninstall everything, but still roll
@ -335,7 +335,7 @@ def add_ui(db):
# Bitmaps # Bitmaps
if not os.path.exists(srcdir+r"\PC\python_icon.exe"): if not os.path.exists(srcdir+r"\PC\python_icon.exe"):
raise "Run icons.mak in PC directory" raise RuntimeError("Run icons.mak in PC directory")
add_data(db, "Binary", add_data(db, "Binary",
[("PythonWin", msilib.Binary(r"%s\PCbuild\installer.bmp" % srcdir)), # 152x328 pixels [("PythonWin", msilib.Binary(r"%s\PCbuild\installer.bmp" % srcdir)), # 152x328 pixels
("py.ico",msilib.Binary(srcdir+r"\PC\py.ico")), ("py.ico",msilib.Binary(srcdir+r"\PC\py.ico")),
@ -349,7 +349,7 @@ def add_ui(db):
# the installed/uninstalled state according to both the # the installed/uninstalled state according to both the
# Extensions and TclTk features. # Extensions and TclTk features.
if os.system("nmake /nologo /c /f msisupport.mak") != 0: if os.system("nmake /nologo /c /f msisupport.mak") != 0:
raise "'nmake /f msisupport.mak' failed" raise RuntimeError("'nmake /f msisupport.mak' failed")
add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))]) add_data(db, "Binary", [("Script", msilib.Binary("msisupport.dll"))])
# See "Custom Action Type 1" # See "Custom Action Type 1"
if msilib.Win64: if msilib.Win64:
@ -845,7 +845,7 @@ class PyDirectory(Directory):
"""By default, all components in the Python installer """By default, all components in the Python installer
can run from source.""" can run from source."""
def __init__(self, *args, **kw): def __init__(self, *args, **kw):
if not kw.has_key("componentflags"): if "componentflags" not in kw:
kw['componentflags'] = 2 #msidbComponentAttributesOptional kw['componentflags'] = 2 #msidbComponentAttributesOptional
Directory.__init__(self, *args, **kw) Directory.__init__(self, *args, **kw)

View file

@ -7,11 +7,6 @@ import pythoncom, pywintypes
from win32com.client import constants from win32com.client import constants
import re, string, os, sets, glob, subprocess, sys, _winreg, struct import re, string, os, sets, glob, subprocess, sys, _winreg, struct
try:
basestring
except NameError:
basestring = (str, unicode)
# Partially taken from Wine # Partially taken from Wine
datasizemask= 0x00ff datasizemask= 0x00ff
type_valid= 0x0100 type_valid= 0x0100
@ -173,14 +168,14 @@ def gen_schema(destpath, schemapath):
r = v.Fetch() r = v.Fetch()
if not r:break if not r:break
# Table, Column, Nullable # Table, Column, Nullable
f.write("(%s,%s,%s," % f.write("(%r,%r,%r," %
(`r.StringData(1)`, `r.StringData(2)`, `r.StringData(3)`)) (r.StringData(1), r.StringData(2), r.StringData(3)))
def put_int(i): def put_int(i):
if r.IsNull(i):f.write("None, ") if r.IsNull(i):f.write("None, ")
else:f.write("%d," % r.IntegerData(i)) else:f.write("%d," % r.IntegerData(i))
def put_str(i): def put_str(i):
if r.IsNull(i):f.write("None, ") if r.IsNull(i):f.write("None, ")
else:f.write("%s," % `r.StringData(i)`) else:f.write("%r," % r.StringData(i))
put_int(4) # MinValue put_int(4) # MinValue
put_int(5) # MaxValue put_int(5) # MaxValue
put_str(6) # KeyTable put_str(6) # KeyTable
@ -235,12 +230,12 @@ def gen_sequence(destpath, msipath):
else: else:
rec.append(bytes) rec.append(bytes)
else: else:
raise "Unsupported column type", info.StringData(i) raise ValueError("Unsupported column type", info.StringData(i))
f.write(repr(tuple(rec))+",\n") f.write(repr(tuple(rec))+",\n")
v1.Close() v1.Close()
f.write("]\n\n") f.write("]\n\n")
v.Close() v.Close()
f.write("tables=%s\n" % repr(map(str,tables))) f.write("tables=%s\n" % repr(list(map(str,tables))))
f.close() f.close()
class _Unspecified:pass class _Unspecified:pass
@ -265,9 +260,9 @@ def add_data(db, table, values):
assert len(value) == count, value assert len(value) == count, value
for i in range(count): for i in range(count):
field = value[i] field = value[i]
if isinstance(field, (int, long)): if isinstance(field, int):
r.SetIntegerData(i+1,field) r.SetIntegerData(i+1,field)
elif isinstance(field, basestring): elif isinstance(field, str):
r.SetStringData(i+1,field) r.SetStringData(i+1,field)
elif field is None: elif field is None:
pass pass
@ -522,7 +517,7 @@ class Directory:
file = os.path.basename(file) file = os.path.basename(file)
absolute = os.path.join(self.absolute, src) absolute = os.path.join(self.absolute, src)
assert not re.search(r'[\?|><:/*]"', file) # restrictions on long names assert not re.search(r'[\?|><:/*]"', file) # restrictions on long names
if self.keyfiles.has_key(file): if file in self.keyfiles:
logical = self.keyfiles[file] logical = self.keyfiles[file]
else: else:
logical = None logical = None

View file

@ -580,428 +580,428 @@ Verb.add_field(5,'Argument',8191)
tables=[_Validation, ActionText, AdminExecuteSequence, Condition, AdminUISequence, AdvtExecuteSequence, AdvtUISequence, AppId, AppSearch, Property, BBControl, Billboard, Feature, Binary, BindImage, File, CCPSearch, CheckBox, Class, Component, Icon, ProgId, ComboBox, CompLocator, Complus, Directory, Control, Dialog, ControlCondition, ControlEvent, CreateFolder, CustomAction, DrLocator, DuplicateFile, Environment, Error, EventMapping, Extension, MIME, FeatureComponents, FileSFPCatalog, SFPCatalog, Font, IniFile, IniLocator, InstallExecuteSequence, InstallUISequence, IsolatedComponent, LaunchCondition, ListBox, ListView, LockPermissions, Media, MoveFile, MsiAssembly, MsiAssemblyName, MsiDigitalCertificate, MsiDigitalSignature, MsiFileHash, MsiPatchHeaders, ODBCAttribute, ODBCDriver, ODBCDataSource, ODBCSourceAttribute, ODBCTranslator, Patch, PatchPackage, PublishComponent, RadioButton, Registry, RegLocator, RemoveFile, RemoveIniFile, RemoveRegistry, ReserveCost, SelfReg, ServiceControl, ServiceInstall, Shortcut, Signature, TextStyle, TypeLib, UIText, Upgrade, Verb] tables=[_Validation, ActionText, AdminExecuteSequence, Condition, AdminUISequence, AdvtExecuteSequence, AdvtUISequence, AppId, AppSearch, Property, BBControl, Billboard, Feature, Binary, BindImage, File, CCPSearch, CheckBox, Class, Component, Icon, ProgId, ComboBox, CompLocator, Complus, Directory, Control, Dialog, ControlCondition, ControlEvent, CreateFolder, CustomAction, DrLocator, DuplicateFile, Environment, Error, EventMapping, Extension, MIME, FeatureComponents, FileSFPCatalog, SFPCatalog, Font, IniFile, IniLocator, InstallExecuteSequence, InstallUISequence, IsolatedComponent, LaunchCondition, ListBox, ListView, LockPermissions, Media, MoveFile, MsiAssembly, MsiAssemblyName, MsiDigitalCertificate, MsiDigitalSignature, MsiFileHash, MsiPatchHeaders, ODBCAttribute, ODBCDriver, ODBCDataSource, ODBCSourceAttribute, ODBCTranslator, Patch, PatchPackage, PublishComponent, RadioButton, Registry, RegLocator, RemoveFile, RemoveIniFile, RemoveRegistry, ReserveCost, SelfReg, ServiceControl, ServiceInstall, Shortcut, Signature, TextStyle, TypeLib, UIText, Upgrade, Verb]
_Validation_records = [ _Validation_records = [
(u'_Validation',u'Table',u'N',None, None, None, None, u'Identifier',None, u'Name of table',), ('_Validation','Table','N',None, None, None, None, 'Identifier',None, 'Name of table',),
(u'_Validation',u'Column',u'N',None, None, None, None, u'Identifier',None, u'Name of column',), ('_Validation','Column','N',None, None, None, None, 'Identifier',None, 'Name of column',),
(u'_Validation',u'Description',u'Y',None, None, None, None, u'Text',None, u'Description of column',), ('_Validation','Description','Y',None, None, None, None, 'Text',None, 'Description of column',),
(u'_Validation',u'Set',u'Y',None, None, None, None, u'Text',None, u'Set of values that are permitted',), ('_Validation','Set','Y',None, None, None, None, 'Text',None, 'Set of values that are permitted',),
(u'_Validation',u'Category',u'Y',None, None, None, None, None, u'Text;Formatted;Template;Condition;Guid;Path;Version;Language;Identifier;Binary;UpperCase;LowerCase;Filename;Paths;AnyPath;WildCardFilename;RegPath;KeyFormatted;CustomSource;Property;Cabinet;Shortcut;URL',u'String category',), ('_Validation','Category','Y',None, None, None, None, None, 'Text;Formatted;Template;Condition;Guid;Path;Version;Language;Identifier;Binary;UpperCase;LowerCase;Filename;Paths;AnyPath;WildCardFilename;RegPath;KeyFormatted;CustomSource;Property;Cabinet;Shortcut;URL','String category',),
(u'_Validation',u'KeyColumn',u'Y',1,32,None, None, None, None, u'Column to which foreign key connects',), ('_Validation','KeyColumn','Y',1,32,None, None, None, None, 'Column to which foreign key connects',),
(u'_Validation',u'KeyTable',u'Y',None, None, None, None, u'Identifier',None, u'For foreign key, Name of table to which data must link',), ('_Validation','KeyTable','Y',None, None, None, None, 'Identifier',None, 'For foreign key, Name of table to which data must link',),
(u'_Validation',u'MaxValue',u'Y',-2147483647,2147483647,None, None, None, None, u'Maximum value allowed',), ('_Validation','MaxValue','Y',-2147483647,2147483647,None, None, None, None, 'Maximum value allowed',),
(u'_Validation',u'MinValue',u'Y',-2147483647,2147483647,None, None, None, None, u'Minimum value allowed',), ('_Validation','MinValue','Y',-2147483647,2147483647,None, None, None, None, 'Minimum value allowed',),
(u'_Validation',u'Nullable',u'N',None, None, None, None, None, u'Y;N;@',u'Whether the column is nullable',), ('_Validation','Nullable','N',None, None, None, None, None, 'Y;N;@','Whether the column is nullable',),
(u'ActionText',u'Description',u'Y',None, None, None, None, u'Text',None, u'Localized description displayed in progress dialog and log when action is executing.',), ('ActionText','Description','Y',None, None, None, None, 'Text',None, 'Localized description displayed in progress dialog and log when action is executing.',),
(u'ActionText',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to be described.',), ('ActionText','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to be described.',),
(u'ActionText',u'Template',u'Y',None, None, None, None, u'Template',None, u'Optional localized format template used to format action data records for display during action execution.',), ('ActionText','Template','Y',None, None, None, None, 'Template',None, 'Optional localized format template used to format action data records for display during action execution.',),
(u'AdminExecuteSequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('AdminExecuteSequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'AdminExecuteSequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('AdminExecuteSequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'AdminExecuteSequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('AdminExecuteSequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'Condition',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Expression evaluated to determine if Level in the Feature table is to change.',), ('Condition','Condition','Y',None, None, None, None, 'Condition',None, 'Expression evaluated to determine if Level in the Feature table is to change.',),
(u'Condition',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Reference to a Feature entry in Feature table.',), ('Condition','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Reference to a Feature entry in Feature table.',),
(u'Condition',u'Level',u'N',0,32767,None, None, None, None, u'New selection Level to set in Feature table if Condition evaluates to TRUE.',), ('Condition','Level','N',0,32767,None, None, None, None, 'New selection Level to set in Feature table if Condition evaluates to TRUE.',),
(u'AdminUISequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('AdminUISequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'AdminUISequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('AdminUISequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'AdminUISequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('AdminUISequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'AdvtExecuteSequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('AdvtExecuteSequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'AdvtExecuteSequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('AdvtExecuteSequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'AdvtExecuteSequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('AdvtExecuteSequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'AdvtUISequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('AdvtUISequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'AdvtUISequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('AdvtUISequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'AdvtUISequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('AdvtUISequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'AppId',u'AppId',u'N',None, None, None, None, u'Guid',None, None, ), ('AppId','AppId','N',None, None, None, None, 'Guid',None, None, ),
(u'AppId',u'ActivateAtStorage',u'Y',0,1,None, None, None, None, None, ), ('AppId','ActivateAtStorage','Y',0,1,None, None, None, None, None, ),
(u'AppId',u'DllSurrogate',u'Y',None, None, None, None, u'Text',None, None, ), ('AppId','DllSurrogate','Y',None, None, None, None, 'Text',None, None, ),
(u'AppId',u'LocalService',u'Y',None, None, None, None, u'Text',None, None, ), ('AppId','LocalService','Y',None, None, None, None, 'Text',None, None, ),
(u'AppId',u'RemoteServerName',u'Y',None, None, None, None, u'Formatted',None, None, ), ('AppId','RemoteServerName','Y',None, None, None, None, 'Formatted',None, None, ),
(u'AppId',u'RunAsInteractiveUser',u'Y',0,1,None, None, None, None, None, ), ('AppId','RunAsInteractiveUser','Y',0,1,None, None, None, None, None, ),
(u'AppId',u'ServiceParameters',u'Y',None, None, None, None, u'Text',None, None, ), ('AppId','ServiceParameters','Y',None, None, None, None, 'Text',None, None, ),
(u'AppSearch',u'Property',u'N',None, None, None, None, u'Identifier',None, u'The property associated with a Signature',), ('AppSearch','Property','N',None, None, None, None, 'Identifier',None, 'The property associated with a Signature',),
(u'AppSearch',u'Signature_',u'N',None, None, u'Signature;RegLocator;IniLocator;DrLocator;CompLocator',1,u'Identifier',None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.',), ('AppSearch','Signature_','N',None, None, 'Signature;RegLocator;IniLocator;DrLocator;CompLocator',1,'Identifier',None, 'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.',),
(u'Property',u'Property',u'N',None, None, None, None, u'Identifier',None, u'Name of property, uppercase if settable by launcher or loader.',), ('Property','Property','N',None, None, None, None, 'Identifier',None, 'Name of property, uppercase if settable by launcher or loader.',),
(u'Property',u'Value',u'N',None, None, None, None, u'Text',None, u'String value for property. Never null or empty.',), ('Property','Value','N',None, None, None, None, 'Text',None, 'String value for property. Never null or empty.',),
(u'BBControl',u'Type',u'N',None, None, None, None, u'Identifier',None, u'The type of the control.',), ('BBControl','Type','N',None, None, None, None, 'Identifier',None, 'The type of the control.',),
(u'BBControl',u'Y',u'N',0,32767,None, None, None, None, u'Vertical coordinate of the upper left corner of the bounding rectangle of the control.',), ('BBControl','Y','N',0,32767,None, None, None, None, 'Vertical coordinate of the upper left corner of the bounding rectangle of the control.',),
(u'BBControl',u'Text',u'Y',None, None, None, None, u'Text',None, u'A string used to set the initial text contained within a control (if appropriate).',), ('BBControl','Text','Y',None, None, None, None, 'Text',None, 'A string used to set the initial text contained within a control (if appropriate).',),
(u'BBControl',u'BBControl',u'N',None, None, None, None, u'Identifier',None, u'Name of the control. This name must be unique within a billboard, but can repeat on different billboard.',), ('BBControl','BBControl','N',None, None, None, None, 'Identifier',None, 'Name of the control. This name must be unique within a billboard, but can repeat on different billboard.',),
(u'BBControl',u'Attributes',u'Y',0,2147483647,None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this control.',), ('BBControl','Attributes','Y',0,2147483647,None, None, None, None, 'A 32-bit word that specifies the attribute flags to be applied to this control.',),
(u'BBControl',u'Billboard_',u'N',None, None, u'Billboard',1,u'Identifier',None, u'External key to the Billboard table, name of the billboard.',), ('BBControl','Billboard_','N',None, None, 'Billboard',1,'Identifier',None, 'External key to the Billboard table, name of the billboard.',),
(u'BBControl',u'Height',u'N',0,32767,None, None, None, None, u'Height of the bounding rectangle of the control.',), ('BBControl','Height','N',0,32767,None, None, None, None, 'Height of the bounding rectangle of the control.',),
(u'BBControl',u'Width',u'N',0,32767,None, None, None, None, u'Width of the bounding rectangle of the control.',), ('BBControl','Width','N',0,32767,None, None, None, None, 'Width of the bounding rectangle of the control.',),
(u'BBControl',u'X',u'N',0,32767,None, None, None, None, u'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.',), ('BBControl','X','N',0,32767,None, None, None, None, 'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.',),
(u'Billboard',u'Action',u'Y',None, None, None, None, u'Identifier',None, u'The name of an action. The billboard is displayed during the progress messages received from this action.',), ('Billboard','Action','Y',None, None, None, None, 'Identifier',None, 'The name of an action. The billboard is displayed during the progress messages received from this action.',),
(u'Billboard',u'Billboard',u'N',None, None, None, None, u'Identifier',None, u'Name of the billboard.',), ('Billboard','Billboard','N',None, None, None, None, 'Identifier',None, 'Name of the billboard.',),
(u'Billboard',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'An external key to the Feature Table. The billboard is shown only if this feature is being installed.',), ('Billboard','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'An external key to the Feature Table. The billboard is shown only if this feature is being installed.',),
(u'Billboard',u'Ordering',u'Y',0,32767,None, None, None, None, u'A positive integer. If there is more than one billboard corresponding to an action they will be shown in the order defined by this column.',), ('Billboard','Ordering','Y',0,32767,None, None, None, None, 'A positive integer. If there is more than one billboard corresponding to an action they will be shown in the order defined by this column.',),
(u'Feature',u'Description',u'Y',None, None, None, None, u'Text',None, u'Longer descriptive text describing a visible feature item.',), ('Feature','Description','Y',None, None, None, None, 'Text',None, 'Longer descriptive text describing a visible feature item.',),
(u'Feature',u'Attributes',u'N',None, None, None, None, None, u'0;1;2;4;5;6;8;9;10;16;17;18;20;21;22;24;25;26;32;33;34;36;37;38;48;49;50;52;53;54',u'Feature attributes',), ('Feature','Attributes','N',None, None, None, None, None, '0;1;2;4;5;6;8;9;10;16;17;18;20;21;22;24;25;26;32;33;34;36;37;38;48;49;50;52;53;54','Feature attributes',),
(u'Feature',u'Feature',u'N',None, None, None, None, u'Identifier',None, u'Primary key used to identify a particular feature record.',), ('Feature','Feature','N',None, None, None, None, 'Identifier',None, 'Primary key used to identify a particular feature record.',),
(u'Feature',u'Directory_',u'Y',None, None, u'Directory',1,u'UpperCase',None, u'The name of the Directory that can be configured by the UI. A non-null value will enable the browse button.',), ('Feature','Directory_','Y',None, None, 'Directory',1,'UpperCase',None, 'The name of the Directory that can be configured by the UI. A non-null value will enable the browse button.',),
(u'Feature',u'Level',u'N',0,32767,None, None, None, None, u'The install level at which record will be initially selected. An install level of 0 will disable an item and prevent its display.',), ('Feature','Level','N',0,32767,None, None, None, None, 'The install level at which record will be initially selected. An install level of 0 will disable an item and prevent its display.',),
(u'Feature',u'Title',u'Y',None, None, None, None, u'Text',None, u'Short text identifying a visible feature item.',), ('Feature','Title','Y',None, None, None, None, 'Text',None, 'Short text identifying a visible feature item.',),
(u'Feature',u'Display',u'Y',0,32767,None, None, None, None, u'Numeric sort order, used to force a specific display ordering.',), ('Feature','Display','Y',0,32767,None, None, None, None, 'Numeric sort order, used to force a specific display ordering.',),
(u'Feature',u'Feature_Parent',u'Y',None, None, u'Feature',1,u'Identifier',None, u'Optional key of a parent record in the same table. If the parent is not selected, then the record will not be installed. Null indicates a root item.',), ('Feature','Feature_Parent','Y',None, None, 'Feature',1,'Identifier',None, 'Optional key of a parent record in the same table. If the parent is not selected, then the record will not be installed. Null indicates a root item.',),
(u'Binary',u'Name',u'N',None, None, None, None, u'Identifier',None, u'Unique key identifying the binary data.',), ('Binary','Name','N',None, None, None, None, 'Identifier',None, 'Unique key identifying the binary data.',),
(u'Binary',u'Data',u'N',None, None, None, None, u'Binary',None, u'The unformatted binary data.',), ('Binary','Data','N',None, None, None, None, 'Binary',None, 'The unformatted binary data.',),
(u'BindImage',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'The index into the File table. This must be an executable file.',), ('BindImage','File_','N',None, None, 'File',1,'Identifier',None, 'The index into the File table. This must be an executable file.',),
(u'BindImage',u'Path',u'Y',None, None, None, None, u'Paths',None, u'A list of ; delimited paths that represent the paths to be searched for the import DLLS. The list is usually a list of properties each enclosed within square brackets [] .',), ('BindImage','Path','Y',None, None, None, None, 'Paths',None, 'A list of ; delimited paths that represent the paths to be searched for the import DLLS. The list is usually a list of properties each enclosed within square brackets [] .',),
(u'File',u'Sequence',u'N',1,32767,None, None, None, None, u'Sequence with respect to the media images; order must track cabinet order.',), ('File','Sequence','N',1,32767,None, None, None, None, 'Sequence with respect to the media images; order must track cabinet order.',),
(u'File',u'Attributes',u'Y',0,32767,None, None, None, None, u'Integer containing bit flags representing file attributes (with the decimal value of each bit position in parentheses)',), ('File','Attributes','Y',0,32767,None, None, None, None, 'Integer containing bit flags representing file attributes (with the decimal value of each bit position in parentheses)',),
(u'File',u'File',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token, must match identifier in cabinet. For uncompressed files, this field is ignored.',), ('File','File','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token, must match identifier in cabinet. For uncompressed files, this field is ignored.',),
(u'File',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key referencing Component that controls the file.',), ('File','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key referencing Component that controls the file.',),
(u'File',u'FileName',u'N',None, None, None, None, u'Filename',None, u'File name used for installation, may be localized. This may contain a "short name|long name" pair.',), ('File','FileName','N',None, None, None, None, 'Filename',None, 'File name used for installation, may be localized. This may contain a "short name|long name" pair.',),
(u'File',u'FileSize',u'N',0,2147483647,None, None, None, None, u'Size of file in bytes (long integer).',), ('File','FileSize','N',0,2147483647,None, None, None, None, 'Size of file in bytes (long integer).',),
(u'File',u'Language',u'Y',None, None, None, None, u'Language',None, u'List of decimal language Ids, comma-separated if more than one.',), ('File','Language','Y',None, None, None, None, 'Language',None, 'List of decimal language Ids, comma-separated if more than one.',),
(u'File',u'Version',u'Y',None, None, u'File',1,u'Version',None, u'Version string for versioned files; Blank for unversioned files.',), ('File','Version','Y',None, None, 'File',1,'Version',None, 'Version string for versioned files; Blank for unversioned files.',),
(u'CCPSearch',u'Signature_',u'N',None, None, u'Signature;RegLocator;IniLocator;DrLocator;CompLocator',1,u'Identifier',None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.',), ('CCPSearch','Signature_','N',None, None, 'Signature;RegLocator;IniLocator;DrLocator;CompLocator',1,'Identifier',None, 'The Signature_ represents a unique file signature and is also the foreign key in the Signature, RegLocator, IniLocator, CompLocator and the DrLocator tables.',),
(u'CheckBox',u'Property',u'N',None, None, None, None, u'Identifier',None, u'A named property to be tied to the item.',), ('CheckBox','Property','N',None, None, None, None, 'Identifier',None, 'A named property to be tied to the item.',),
(u'CheckBox',u'Value',u'Y',None, None, None, None, u'Formatted',None, u'The value string associated with the item.',), ('CheckBox','Value','Y',None, None, None, None, 'Formatted',None, 'The value string associated with the item.',),
(u'Class',u'Description',u'Y',None, None, None, None, u'Text',None, u'Localized description for the Class.',), ('Class','Description','Y',None, None, None, None, 'Text',None, 'Localized description for the Class.',),
(u'Class',u'Attributes',u'Y',None, 32767,None, None, None, None, u'Class registration attributes.',), ('Class','Attributes','Y',None, 32767,None, None, None, None, 'Class registration attributes.',),
(u'Class',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.',), ('Class','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.',),
(u'Class',u'AppId_',u'Y',None, None, u'AppId',1,u'Guid',None, u'Optional AppID containing DCOM information for associated application (string GUID).',), ('Class','AppId_','Y',None, None, 'AppId',1,'Guid',None, 'Optional AppID containing DCOM information for associated application (string GUID).',),
(u'Class',u'Argument',u'Y',None, None, None, None, u'Formatted',None, u'optional argument for LocalServers.',), ('Class','Argument','Y',None, None, None, None, 'Formatted',None, 'optional argument for LocalServers.',),
(u'Class',u'CLSID',u'N',None, None, None, None, u'Guid',None, u'The CLSID of an OLE factory.',), ('Class','CLSID','N',None, None, None, None, 'Guid',None, 'The CLSID of an OLE factory.',),
(u'Class',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',), ('Class','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',),
(u'Class',u'Context',u'N',None, None, None, None, u'Identifier',None, u'The numeric server context for this server. CLSCTX_xxxx',), ('Class','Context','N',None, None, None, None, 'Identifier',None, 'The numeric server context for this server. CLSCTX_xxxx',),
(u'Class',u'DefInprocHandler',u'Y',None, None, None, None, u'Filename',u'1;2;3',u'Optional default inproc handler. Only optionally provided if Context=CLSCTX_LOCAL_SERVER. Typically "ole32.dll" or "mapi32.dll"',), ('Class','DefInprocHandler','Y',None, None, None, None, 'Filename','1;2;3','Optional default inproc handler. Only optionally provided if Context=CLSCTX_LOCAL_SERVER. Typically "ole32.dll" or "mapi32.dll"',),
(u'Class',u'FileTypeMask',u'Y',None, None, None, None, u'Text',None, u'Optional string containing information for the HKCRthis CLSID) key. If multiple patterns exist, they must be delimited by a semicolon, and numeric subkeys will be generated: 0,1,2...',), ('Class','FileTypeMask','Y',None, None, None, None, 'Text',None, 'Optional string containing information for the HKCRthis CLSID) key. If multiple patterns exist, they must be delimited by a semicolon, and numeric subkeys will be generated: 0,1,2...',),
(u'Class',u'Icon_',u'Y',None, None, u'Icon',1,u'Identifier',None, u'Optional foreign key into the Icon Table, specifying the icon file associated with this CLSID. Will be written under the DefaultIcon key.',), ('Class','Icon_','Y',None, None, 'Icon',1,'Identifier',None, 'Optional foreign key into the Icon Table, specifying the icon file associated with this CLSID. Will be written under the DefaultIcon key.',),
(u'Class',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'Optional icon index.',), ('Class','IconIndex','Y',-32767,32767,None, None, None, None, 'Optional icon index.',),
(u'Class',u'ProgId_Default',u'Y',None, None, u'ProgId',1,u'Text',None, u'Optional ProgId associated with this CLSID.',), ('Class','ProgId_Default','Y',None, None, 'ProgId',1,'Text',None, 'Optional ProgId associated with this CLSID.',),
(u'Component',u'Condition',u'Y',None, None, None, None, u'Condition',None, u"A conditional statement that will disable this component if the specified condition evaluates to the 'True' state. If a component is disabled, it will not be installed, regardless of the 'Action' state associated with the component.",), ('Component','Condition','Y',None, None, None, None, 'Condition',None, "A conditional statement that will disable this component if the specified condition evaluates to the 'True' state. If a component is disabled, it will not be installed, regardless of the 'Action' state associated with the component.",),
(u'Component',u'Attributes',u'N',None, None, None, None, None, None, u'Remote execution option, one of irsEnum',), ('Component','Attributes','N',None, None, None, None, None, None, 'Remote execution option, one of irsEnum',),
(u'Component',u'Component',u'N',None, None, None, None, u'Identifier',None, u'Primary key used to identify a particular component record.',), ('Component','Component','N',None, None, None, None, 'Identifier',None, 'Primary key used to identify a particular component record.',),
(u'Component',u'ComponentId',u'Y',None, None, None, None, u'Guid',None, u'A string GUID unique to this component, version, and language.',), ('Component','ComponentId','Y',None, None, None, None, 'Guid',None, 'A string GUID unique to this component, version, and language.',),
(u'Component',u'Directory_',u'N',None, None, u'Directory',1,u'Identifier',None, u'Required key of a Directory table record. This is actually a property name whose value contains the actual path, set either by the AppSearch action or with the default setting obtained from the Directory table.',), ('Component','Directory_','N',None, None, 'Directory',1,'Identifier',None, 'Required key of a Directory table record. This is actually a property name whose value contains the actual path, set either by the AppSearch action or with the default setting obtained from the Directory table.',),
(u'Component',u'KeyPath',u'Y',None, None, u'File;Registry;ODBCDataSource',1,u'Identifier',None, u'Either the primary key into the File table, Registry table, or ODBCDataSource table. This extract path is stored when the component is installed, and is used to detect the presence of the component and to return the path to it.',), ('Component','KeyPath','Y',None, None, 'File;Registry;ODBCDataSource',1,'Identifier',None, 'Either the primary key into the File table, Registry table, or ODBCDataSource table. This extract path is stored when the component is installed, and is used to detect the presence of the component and to return the path to it.',),
(u'Icon',u'Name',u'N',None, None, None, None, u'Identifier',None, u'Primary key. Name of the icon file.',), ('Icon','Name','N',None, None, None, None, 'Identifier',None, 'Primary key. Name of the icon file.',),
(u'Icon',u'Data',u'N',None, None, None, None, u'Binary',None, u'Binary stream. The binary icon data in PE (.DLL or .EXE) or icon (.ICO) format.',), ('Icon','Data','N',None, None, None, None, 'Binary',None, 'Binary stream. The binary icon data in PE (.DLL or .EXE) or icon (.ICO) format.',),
(u'ProgId',u'Description',u'Y',None, None, None, None, u'Text',None, u'Localized description for the Program identifier.',), ('ProgId','Description','Y',None, None, None, None, 'Text',None, 'Localized description for the Program identifier.',),
(u'ProgId',u'Icon_',u'Y',None, None, u'Icon',1,u'Identifier',None, u'Optional foreign key into the Icon Table, specifying the icon file associated with this ProgId. Will be written under the DefaultIcon key.',), ('ProgId','Icon_','Y',None, None, 'Icon',1,'Identifier',None, 'Optional foreign key into the Icon Table, specifying the icon file associated with this ProgId. Will be written under the DefaultIcon key.',),
(u'ProgId',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'Optional icon index.',), ('ProgId','IconIndex','Y',-32767,32767,None, None, None, None, 'Optional icon index.',),
(u'ProgId',u'ProgId',u'N',None, None, None, None, u'Text',None, u'The Program Identifier. Primary key.',), ('ProgId','ProgId','N',None, None, None, None, 'Text',None, 'The Program Identifier. Primary key.',),
(u'ProgId',u'Class_',u'Y',None, None, u'Class',1,u'Guid',None, u'The CLSID of an OLE factory corresponding to the ProgId.',), ('ProgId','Class_','Y',None, None, 'Class',1,'Guid',None, 'The CLSID of an OLE factory corresponding to the ProgId.',),
(u'ProgId',u'ProgId_Parent',u'Y',None, None, u'ProgId',1,u'Text',None, u'The Parent Program Identifier. If specified, the ProgId column becomes a version independent prog id.',), ('ProgId','ProgId_Parent','Y',None, None, 'ProgId',1,'Text',None, 'The Parent Program Identifier. If specified, the ProgId column becomes a version independent prog id.',),
(u'ComboBox',u'Text',u'Y',None, None, None, None, u'Formatted',None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',), ('ComboBox','Text','Y',None, None, None, None, 'Formatted',None, 'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',),
(u'ComboBox',u'Property',u'N',None, None, None, None, u'Identifier',None, u'A named property to be tied to this item. All the items tied to the same property become part of the same combobox.',), ('ComboBox','Property','N',None, None, None, None, 'Identifier',None, 'A named property to be tied to this item. All the items tied to the same property become part of the same combobox.',),
(u'ComboBox',u'Value',u'N',None, None, None, None, u'Formatted',None, u'The value string associated with this item. Selecting the line will set the associated property to this value.',), ('ComboBox','Value','N',None, None, None, None, 'Formatted',None, 'The value string associated with this item. Selecting the line will set the associated property to this value.',),
(u'ComboBox',u'Order',u'N',1,32767,None, None, None, None, u'A positive integer used to determine the ordering of the items within one list.\tThe integers do not have to be consecutive.',), ('ComboBox','Order','N',1,32767,None, None, None, None, 'A positive integer used to determine the ordering of the items within one list.\tThe integers do not have to be consecutive.',),
(u'CompLocator',u'Type',u'Y',0,1,None, None, None, None, u'A boolean value that determines if the registry value is a filename or a directory location.',), ('CompLocator','Type','Y',0,1,None, None, None, None, 'A boolean value that determines if the registry value is a filename or a directory location.',),
(u'CompLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',), ('CompLocator','Signature_','N',None, None, None, None, 'Identifier',None, 'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
(u'CompLocator',u'ComponentId',u'N',None, None, None, None, u'Guid',None, u'A string GUID unique to this component, version, and language.',), ('CompLocator','ComponentId','N',None, None, None, None, 'Guid',None, 'A string GUID unique to this component, version, and language.',),
(u'Complus',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key referencing Component that controls the ComPlus component.',), ('Complus','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key referencing Component that controls the ComPlus component.',),
(u'Complus',u'ExpType',u'Y',0,32767,None, None, None, None, u'ComPlus component attributes.',), ('Complus','ExpType','Y',0,32767,None, None, None, None, 'ComPlus component attributes.',),
(u'Directory',u'Directory',u'N',None, None, None, None, u'Identifier',None, u'Unique identifier for directory entry, primary key. If a property by this name is defined, it contains the full path to the directory.',), ('Directory','Directory','N',None, None, None, None, 'Identifier',None, 'Unique identifier for directory entry, primary key. If a property by this name is defined, it contains the full path to the directory.',),
(u'Directory',u'DefaultDir',u'N',None, None, None, None, u'DefaultDir',None, u"The default sub-path under parent's path.",), ('Directory','DefaultDir','N',None, None, None, None, 'DefaultDir',None, "The default sub-path under parent's path.",),
(u'Directory',u'Directory_Parent',u'Y',None, None, u'Directory',1,u'Identifier',None, u'Reference to the entry in this table specifying the default parent directory. A record parented to itself or with a Null parent represents a root of the install tree.',), ('Directory','Directory_Parent','Y',None, None, 'Directory',1,'Identifier',None, 'Reference to the entry in this table specifying the default parent directory. A record parented to itself or with a Null parent represents a root of the install tree.',),
(u'Control',u'Type',u'N',None, None, None, None, u'Identifier',None, u'The type of the control.',), ('Control','Type','N',None, None, None, None, 'Identifier',None, 'The type of the control.',),
(u'Control',u'Y',u'N',0,32767,None, None, None, None, u'Vertical coordinate of the upper left corner of the bounding rectangle of the control.',), ('Control','Y','N',0,32767,None, None, None, None, 'Vertical coordinate of the upper left corner of the bounding rectangle of the control.',),
(u'Control',u'Text',u'Y',None, None, None, None, u'Formatted',None, u'A string used to set the initial text contained within a control (if appropriate).',), ('Control','Text','Y',None, None, None, None, 'Formatted',None, 'A string used to set the initial text contained within a control (if appropriate).',),
(u'Control',u'Property',u'Y',None, None, None, None, u'Identifier',None, u'The name of a defined property to be linked to this control. ',), ('Control','Property','Y',None, None, None, None, 'Identifier',None, 'The name of a defined property to be linked to this control. ',),
(u'Control',u'Attributes',u'Y',0,2147483647,None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this control.',), ('Control','Attributes','Y',0,2147483647,None, None, None, None, 'A 32-bit word that specifies the attribute flags to be applied to this control.',),
(u'Control',u'Height',u'N',0,32767,None, None, None, None, u'Height of the bounding rectangle of the control.',), ('Control','Height','N',0,32767,None, None, None, None, 'Height of the bounding rectangle of the control.',),
(u'Control',u'Width',u'N',0,32767,None, None, None, None, u'Width of the bounding rectangle of the control.',), ('Control','Width','N',0,32767,None, None, None, None, 'Width of the bounding rectangle of the control.',),
(u'Control',u'X',u'N',0,32767,None, None, None, None, u'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.',), ('Control','X','N',0,32767,None, None, None, None, 'Horizontal coordinate of the upper left corner of the bounding rectangle of the control.',),
(u'Control',u'Control',u'N',None, None, None, None, u'Identifier',None, u'Name of the control. This name must be unique within a dialog, but can repeat on different dialogs. ',), ('Control','Control','N',None, None, None, None, 'Identifier',None, 'Name of the control. This name must be unique within a dialog, but can repeat on different dialogs. ',),
(u'Control',u'Control_Next',u'Y',None, None, u'Control',2,u'Identifier',None, u'The name of an other control on the same dialog. This link defines the tab order of the controls. The links have to form one or more cycles!',), ('Control','Control_Next','Y',None, None, 'Control',2,'Identifier',None, 'The name of an other control on the same dialog. This link defines the tab order of the controls. The links have to form one or more cycles!',),
(u'Control',u'Dialog_',u'N',None, None, u'Dialog',1,u'Identifier',None, u'External key to the Dialog table, name of the dialog.',), ('Control','Dialog_','N',None, None, 'Dialog',1,'Identifier',None, 'External key to the Dialog table, name of the dialog.',),
(u'Control',u'Help',u'Y',None, None, None, None, u'Text',None, u'The help strings used with the button. The text is optional. ',), ('Control','Help','Y',None, None, None, None, 'Text',None, 'The help strings used with the button. The text is optional. ',),
(u'Dialog',u'Attributes',u'Y',0,2147483647,None, None, None, None, u'A 32-bit word that specifies the attribute flags to be applied to this dialog.',), ('Dialog','Attributes','Y',0,2147483647,None, None, None, None, 'A 32-bit word that specifies the attribute flags to be applied to this dialog.',),
(u'Dialog',u'Height',u'N',0,32767,None, None, None, None, u'Height of the bounding rectangle of the dialog.',), ('Dialog','Height','N',0,32767,None, None, None, None, 'Height of the bounding rectangle of the dialog.',),
(u'Dialog',u'Width',u'N',0,32767,None, None, None, None, u'Width of the bounding rectangle of the dialog.',), ('Dialog','Width','N',0,32767,None, None, None, None, 'Width of the bounding rectangle of the dialog.',),
(u'Dialog',u'Dialog',u'N',None, None, None, None, u'Identifier',None, u'Name of the dialog.',), ('Dialog','Dialog','N',None, None, None, None, 'Identifier',None, 'Name of the dialog.',),
(u'Dialog',u'Control_Cancel',u'Y',None, None, u'Control',2,u'Identifier',None, u'Defines the cancel control. Hitting escape or clicking on the close icon on the dialog is equivalent to pushing this button.',), ('Dialog','Control_Cancel','Y',None, None, 'Control',2,'Identifier',None, 'Defines the cancel control. Hitting escape or clicking on the close icon on the dialog is equivalent to pushing this button.',),
(u'Dialog',u'Control_Default',u'Y',None, None, u'Control',2,u'Identifier',None, u'Defines the default control. Hitting return is equivalent to pushing this button.',), ('Dialog','Control_Default','Y',None, None, 'Control',2,'Identifier',None, 'Defines the default control. Hitting return is equivalent to pushing this button.',),
(u'Dialog',u'Control_First',u'N',None, None, u'Control',2,u'Identifier',None, u'Defines the control that has the focus when the dialog is created.',), ('Dialog','Control_First','N',None, None, 'Control',2,'Identifier',None, 'Defines the control that has the focus when the dialog is created.',),
(u'Dialog',u'HCentering',u'N',0,100,None, None, None, None, u'Horizontal position of the dialog on a 0-100 scale. 0 means left end, 100 means right end of the screen, 50 center.',), ('Dialog','HCentering','N',0,100,None, None, None, None, 'Horizontal position of the dialog on a 0-100 scale. 0 means left end, 100 means right end of the screen, 50 center.',),
(u'Dialog',u'Title',u'Y',None, None, None, None, u'Formatted',None, u"A text string specifying the title to be displayed in the title bar of the dialog's window.",), ('Dialog','Title','Y',None, None, None, None, 'Formatted',None, "A text string specifying the title to be displayed in the title bar of the dialog's window.",),
(u'Dialog',u'VCentering',u'N',0,100,None, None, None, None, u'Vertical position of the dialog on a 0-100 scale. 0 means top end, 100 means bottom end of the screen, 50 center.',), ('Dialog','VCentering','N',0,100,None, None, None, None, 'Vertical position of the dialog on a 0-100 scale. 0 means top end, 100 means bottom end of the screen, 50 center.',),
(u'ControlCondition',u'Action',u'N',None, None, None, None, None, u'Default;Disable;Enable;Hide;Show',u'The desired action to be taken on the specified control.',), ('ControlCondition','Action','N',None, None, None, None, None, 'Default;Disable;Enable;Hide;Show','The desired action to be taken on the specified control.',),
(u'ControlCondition',u'Condition',u'N',None, None, None, None, u'Condition',None, u'A standard conditional statement that specifies under which conditions the action should be triggered.',), ('ControlCondition','Condition','N',None, None, None, None, 'Condition',None, 'A standard conditional statement that specifies under which conditions the action should be triggered.',),
(u'ControlCondition',u'Dialog_',u'N',None, None, u'Dialog',1,u'Identifier',None, u'A foreign key to the Dialog table, name of the dialog.',), ('ControlCondition','Dialog_','N',None, None, 'Dialog',1,'Identifier',None, 'A foreign key to the Dialog table, name of the dialog.',),
(u'ControlCondition',u'Control_',u'N',None, None, u'Control',2,u'Identifier',None, u'A foreign key to the Control table, name of the control.',), ('ControlCondition','Control_','N',None, None, 'Control',2,'Identifier',None, 'A foreign key to the Control table, name of the control.',),
(u'ControlEvent',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'A standard conditional statement that specifies under which conditions an event should be triggered.',), ('ControlEvent','Condition','Y',None, None, None, None, 'Condition',None, 'A standard conditional statement that specifies under which conditions an event should be triggered.',),
(u'ControlEvent',u'Ordering',u'Y',0,2147483647,None, None, None, None, u'An integer used to order several events tied to the same control. Can be left blank.',), ('ControlEvent','Ordering','Y',0,2147483647,None, None, None, None, 'An integer used to order several events tied to the same control. Can be left blank.',),
(u'ControlEvent',u'Argument',u'N',None, None, None, None, u'Formatted',None, u'A value to be used as a modifier when triggering a particular event.',), ('ControlEvent','Argument','N',None, None, None, None, 'Formatted',None, 'A value to be used as a modifier when triggering a particular event.',),
(u'ControlEvent',u'Dialog_',u'N',None, None, u'Dialog',1,u'Identifier',None, u'A foreign key to the Dialog table, name of the dialog.',), ('ControlEvent','Dialog_','N',None, None, 'Dialog',1,'Identifier',None, 'A foreign key to the Dialog table, name of the dialog.',),
(u'ControlEvent',u'Control_',u'N',None, None, u'Control',2,u'Identifier',None, u'A foreign key to the Control table, name of the control',), ('ControlEvent','Control_','N',None, None, 'Control',2,'Identifier',None, 'A foreign key to the Control table, name of the control',),
(u'ControlEvent',u'Event',u'N',None, None, None, None, u'Formatted',None, u'An identifier that specifies the type of the event that should take place when the user interacts with control specified by the first two entries.',), ('ControlEvent','Event','N',None, None, None, None, 'Formatted',None, 'An identifier that specifies the type of the event that should take place when the user interacts with control specified by the first two entries.',),
(u'CreateFolder',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table.',), ('CreateFolder','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table.',),
(u'CreateFolder',u'Directory_',u'N',None, None, u'Directory',1,u'Identifier',None, u'Primary key, could be foreign key into the Directory table.',), ('CreateFolder','Directory_','N',None, None, 'Directory',1,'Identifier',None, 'Primary key, could be foreign key into the Directory table.',),
(u'CustomAction',u'Type',u'N',1,16383,None, None, None, None, u'The numeric custom action type, consisting of source location, code type, entry, option flags.',), ('CustomAction','Type','N',1,16383,None, None, None, None, 'The numeric custom action type, consisting of source location, code type, entry, option flags.',),
(u'CustomAction',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Primary key, name of action, normally appears in sequence table unless private use.',), ('CustomAction','Action','N',None, None, None, None, 'Identifier',None, 'Primary key, name of action, normally appears in sequence table unless private use.',),
(u'CustomAction',u'Source',u'Y',None, None, None, None, u'CustomSource',None, u'The table reference of the source of the code.',), ('CustomAction','Source','Y',None, None, None, None, 'CustomSource',None, 'The table reference of the source of the code.',),
(u'CustomAction',u'Target',u'Y',None, None, None, None, u'Formatted',None, u'Excecution parameter, depends on the type of custom action',), ('CustomAction','Target','Y',None, None, None, None, 'Formatted',None, 'Excecution parameter, depends on the type of custom action',),
(u'DrLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',), ('DrLocator','Signature_','N',None, None, None, None, 'Identifier',None, 'The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
(u'DrLocator',u'Path',u'Y',None, None, None, None, u'AnyPath',None, u'The path on the user system. This is a either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',), ('DrLocator','Path','Y',None, None, None, None, 'AnyPath',None, 'The path on the user system. This is a either a subpath below the value of the Parent or a full path. The path may contain properties enclosed within [ ] that will be expanded.',),
(u'DrLocator',u'Depth',u'Y',0,32767,None, None, None, None, u'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.',), ('DrLocator','Depth','Y',0,32767,None, None, None, None, 'The depth below the path to which the Signature_ is recursively searched. If absent, the depth is assumed to be 0.',),
(u'DrLocator',u'Parent',u'Y',None, None, None, None, u'Identifier',None, u'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.',), ('DrLocator','Parent','Y',None, None, None, None, 'Identifier',None, 'The parent file signature. It is also a foreign key in the Signature table. If null and the Path column does not expand to a full path, then all the fixed drives of the user system are searched using the Path.',),
(u'DuplicateFile',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Foreign key referencing the source file to be duplicated.',), ('DuplicateFile','File_','N',None, None, 'File',1,'Identifier',None, 'Foreign key referencing the source file to be duplicated.',),
(u'DuplicateFile',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key referencing Component that controls the duplicate file.',), ('DuplicateFile','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key referencing Component that controls the duplicate file.',),
(u'DuplicateFile',u'DestFolder',u'Y',None, None, None, None, u'Identifier',None, u'Name of a property whose value is assumed to resolve to the full pathname to a destination folder.',), ('DuplicateFile','DestFolder','Y',None, None, None, None, 'Identifier',None, 'Name of a property whose value is assumed to resolve to the full pathname to a destination folder.',),
(u'DuplicateFile',u'DestName',u'Y',None, None, None, None, u'Filename',None, u'Filename to be given to the duplicate file.',), ('DuplicateFile','DestName','Y',None, None, None, None, 'Filename',None, 'Filename to be given to the duplicate file.',),
(u'DuplicateFile',u'FileKey',u'N',None, None, None, None, u'Identifier',None, u'Primary key used to identify a particular file entry',), ('DuplicateFile','FileKey','N',None, None, None, None, 'Identifier',None, 'Primary key used to identify a particular file entry',),
(u'Environment',u'Name',u'N',None, None, None, None, u'Text',None, u'The name of the environmental value.',), ('Environment','Name','N',None, None, None, None, 'Text',None, 'The name of the environmental value.',),
(u'Environment',u'Value',u'Y',None, None, None, None, u'Formatted',None, u'The value to set in the environmental settings.',), ('Environment','Value','Y',None, None, None, None, 'Formatted',None, 'The value to set in the environmental settings.',),
(u'Environment',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table referencing component that controls the installing of the environmental value.',), ('Environment','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table referencing component that controls the installing of the environmental value.',),
(u'Environment',u'Environment',u'N',None, None, None, None, u'Identifier',None, u'Unique identifier for the environmental variable setting',), ('Environment','Environment','N',None, None, None, None, 'Identifier',None, 'Unique identifier for the environmental variable setting',),
(u'Error',u'Error',u'N',0,32767,None, None, None, None, u'Integer error number, obtained from header file IError(...) macros.',), ('Error','Error','N',0,32767,None, None, None, None, 'Integer error number, obtained from header file IError(...) macros.',),
(u'Error',u'Message',u'Y',None, None, None, None, u'Template',None, u'Error formatting template, obtained from user ed. or localizers.',), ('Error','Message','Y',None, None, None, None, 'Template',None, 'Error formatting template, obtained from user ed. or localizers.',),
(u'EventMapping',u'Dialog_',u'N',None, None, u'Dialog',1,u'Identifier',None, u'A foreign key to the Dialog table, name of the Dialog.',), ('EventMapping','Dialog_','N',None, None, 'Dialog',1,'Identifier',None, 'A foreign key to the Dialog table, name of the Dialog.',),
(u'EventMapping',u'Control_',u'N',None, None, u'Control',2,u'Identifier',None, u'A foreign key to the Control table, name of the control.',), ('EventMapping','Control_','N',None, None, 'Control',2,'Identifier',None, 'A foreign key to the Control table, name of the control.',),
(u'EventMapping',u'Event',u'N',None, None, None, None, u'Identifier',None, u'An identifier that specifies the type of the event that the control subscribes to.',), ('EventMapping','Event','N',None, None, None, None, 'Identifier',None, 'An identifier that specifies the type of the event that the control subscribes to.',),
(u'EventMapping',u'Attribute',u'N',None, None, None, None, u'Identifier',None, u'The name of the control attribute, that is set when this event is received.',), ('EventMapping','Attribute','N',None, None, None, None, 'Identifier',None, 'The name of the control attribute, that is set when this event is received.',),
(u'Extension',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.',), ('Extension','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the CLSID factory to be operational.',),
(u'Extension',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',), ('Extension','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',),
(u'Extension',u'Extension',u'N',None, None, None, None, u'Text',None, u'The extension associated with the table row.',), ('Extension','Extension','N',None, None, None, None, 'Text',None, 'The extension associated with the table row.',),
(u'Extension',u'MIME_',u'Y',None, None, u'MIME',1,u'Text',None, u'Optional Context identifier, typically "type/format" associated with the extension',), ('Extension','MIME_','Y',None, None, 'MIME',1,'Text',None, 'Optional Context identifier, typically "type/format" associated with the extension',),
(u'Extension',u'ProgId_',u'Y',None, None, u'ProgId',1,u'Text',None, u'Optional ProgId associated with this extension.',), ('Extension','ProgId_','Y',None, None, 'ProgId',1,'Text',None, 'Optional ProgId associated with this extension.',),
(u'MIME',u'CLSID',u'Y',None, None, None, None, u'Guid',None, u'Optional associated CLSID.',), ('MIME','CLSID','Y',None, None, None, None, 'Guid',None, 'Optional associated CLSID.',),
(u'MIME',u'ContentType',u'N',None, None, None, None, u'Text',None, u'Primary key. Context identifier, typically "type/format".',), ('MIME','ContentType','N',None, None, None, None, 'Text',None, 'Primary key. Context identifier, typically "type/format".',),
(u'MIME',u'Extension_',u'N',None, None, u'Extension',1,u'Text',None, u'Optional associated extension (without dot)',), ('MIME','Extension_','N',None, None, 'Extension',1,'Text',None, 'Optional associated extension (without dot)',),
(u'FeatureComponents',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Foreign key into Feature table.',), ('FeatureComponents','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Foreign key into Feature table.',),
(u'FeatureComponents',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into Component table.',), ('FeatureComponents','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into Component table.',),
(u'FileSFPCatalog',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'File associated with the catalog',), ('FileSFPCatalog','File_','N',None, None, 'File',1,'Identifier',None, 'File associated with the catalog',),
(u'FileSFPCatalog',u'SFPCatalog_',u'N',None, None, u'SFPCatalog',1,u'Filename',None, u'Catalog associated with the file',), ('FileSFPCatalog','SFPCatalog_','N',None, None, 'SFPCatalog',1,'Filename',None, 'Catalog associated with the file',),
(u'SFPCatalog',u'SFPCatalog',u'N',None, None, None, None, u'Filename',None, u'File name for the catalog.',), ('SFPCatalog','SFPCatalog','N',None, None, None, None, 'Filename',None, 'File name for the catalog.',),
(u'SFPCatalog',u'Catalog',u'N',None, None, None, None, u'Binary',None, u'SFP Catalog',), ('SFPCatalog','Catalog','N',None, None, None, None, 'Binary',None, 'SFP Catalog',),
(u'SFPCatalog',u'Dependency',u'Y',None, None, None, None, u'Formatted',None, u'Parent catalog - only used by SFP',), ('SFPCatalog','Dependency','Y',None, None, None, None, 'Formatted',None, 'Parent catalog - only used by SFP',),
(u'Font',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Primary key, foreign key into File table referencing font file.',), ('Font','File_','N',None, None, 'File',1,'Identifier',None, 'Primary key, foreign key into File table referencing font file.',),
(u'Font',u'FontTitle',u'Y',None, None, None, None, u'Text',None, u'Font name.',), ('Font','FontTitle','Y',None, None, None, None, 'Text',None, 'Font name.',),
(u'IniFile',u'Action',u'N',None, None, None, None, None, u'0;1;3',u'The type of modification to be made, one of iifEnum',), ('IniFile','Action','N',None, None, None, None, None, '0;1;3','The type of modification to be made, one of iifEnum',),
(u'IniFile',u'Value',u'N',None, None, None, None, u'Formatted',None, u'The value to be written.',), ('IniFile','Value','N',None, None, None, None, 'Formatted',None, 'The value to be written.',),
(u'IniFile',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table referencing component that controls the installing of the .INI value.',), ('IniFile','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table referencing component that controls the installing of the .INI value.',),
(u'IniFile',u'FileName',u'N',None, None, None, None, u'Filename',None, u'The .INI file name in which to write the information',), ('IniFile','FileName','N',None, None, None, None, 'Filename',None, 'The .INI file name in which to write the information',),
(u'IniFile',u'IniFile',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('IniFile','IniFile','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'IniFile',u'DirProperty',u'Y',None, None, None, None, u'Identifier',None, u'Foreign key into the Directory table denoting the directory where the .INI file is.',), ('IniFile','DirProperty','Y',None, None, None, None, 'Identifier',None, 'Foreign key into the Directory table denoting the directory where the .INI file is.',),
(u'IniFile',u'Key',u'N',None, None, None, None, u'Formatted',None, u'The .INI file key below Section.',), ('IniFile','Key','N',None, None, None, None, 'Formatted',None, 'The .INI file key below Section.',),
(u'IniFile',u'Section',u'N',None, None, None, None, u'Formatted',None, u'The .INI file Section.',), ('IniFile','Section','N',None, None, None, None, 'Formatted',None, 'The .INI file Section.',),
(u'IniLocator',u'Type',u'Y',0,2,None, None, None, None, u'An integer value that determines if the .INI value read is a filename or a directory location or to be used as is w/o interpretation.',), ('IniLocator','Type','Y',0,2,None, None, None, None, 'An integer value that determines if the .INI value read is a filename or a directory location or to be used as is w/o interpretation.',),
(u'IniLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',), ('IniLocator','Signature_','N',None, None, None, None, 'Identifier',None, 'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table.',),
(u'IniLocator',u'FileName',u'N',None, None, None, None, u'Filename',None, u'The .INI file name.',), ('IniLocator','FileName','N',None, None, None, None, 'Filename',None, 'The .INI file name.',),
(u'IniLocator',u'Key',u'N',None, None, None, None, u'Text',None, u'Key value (followed by an equals sign in INI file).',), ('IniLocator','Key','N',None, None, None, None, 'Text',None, 'Key value (followed by an equals sign in INI file).',),
(u'IniLocator',u'Section',u'N',None, None, None, None, u'Text',None, u'Section name within in file (within square brackets in INI file).',), ('IniLocator','Section','N',None, None, None, None, 'Text',None, 'Section name within in file (within square brackets in INI file).',),
(u'IniLocator',u'Field',u'Y',0,32767,None, None, None, None, u'The field in the .INI line. If Field is null or 0 the entire line is read.',), ('IniLocator','Field','Y',0,32767,None, None, None, None, 'The field in the .INI line. If Field is null or 0 the entire line is read.',),
(u'InstallExecuteSequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('InstallExecuteSequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'InstallExecuteSequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('InstallExecuteSequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'InstallExecuteSequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('InstallExecuteSequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'InstallUISequence',u'Action',u'N',None, None, None, None, u'Identifier',None, u'Name of action to invoke, either in the engine or the handler DLL.',), ('InstallUISequence','Action','N',None, None, None, None, 'Identifier',None, 'Name of action to invoke, either in the engine or the handler DLL.',),
(u'InstallUISequence',u'Condition',u'Y',None, None, None, None, u'Condition',None, u'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',), ('InstallUISequence','Condition','Y',None, None, None, None, 'Condition',None, 'Optional expression which skips the action if evaluates to expFalse.If the expression syntax is invalid, the engine will terminate, returning iesBadActionData.',),
(u'InstallUISequence',u'Sequence',u'Y',-4,32767,None, None, None, None, u'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',), ('InstallUISequence','Sequence','Y',-4,32767,None, None, None, None, 'Number that determines the sort order in which the actions are to be executed. Leave blank to suppress action.',),
(u'IsolatedComponent',u'Component_Application',u'N',None, None, u'Component',1,u'Identifier',None, u'Key to Component table item for application',), ('IsolatedComponent','Component_Application','N',None, None, 'Component',1,'Identifier',None, 'Key to Component table item for application',),
(u'IsolatedComponent',u'Component_Shared',u'N',None, None, u'Component',1,u'Identifier',None, u'Key to Component table item to be isolated',), ('IsolatedComponent','Component_Shared','N',None, None, 'Component',1,'Identifier',None, 'Key to Component table item to be isolated',),
(u'LaunchCondition',u'Description',u'N',None, None, None, None, u'Formatted',None, u'Localizable text to display when condition fails and install must abort.',), ('LaunchCondition','Description','N',None, None, None, None, 'Formatted',None, 'Localizable text to display when condition fails and install must abort.',),
(u'LaunchCondition',u'Condition',u'N',None, None, None, None, u'Condition',None, u'Expression which must evaluate to TRUE in order for install to commence.',), ('LaunchCondition','Condition','N',None, None, None, None, 'Condition',None, 'Expression which must evaluate to TRUE in order for install to commence.',),
(u'ListBox',u'Text',u'Y',None, None, None, None, u'Text',None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',), ('ListBox','Text','Y',None, None, None, None, 'Text',None, 'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',),
(u'ListBox',u'Property',u'N',None, None, None, None, u'Identifier',None, u'A named property to be tied to this item. All the items tied to the same property become part of the same listbox.',), ('ListBox','Property','N',None, None, None, None, 'Identifier',None, 'A named property to be tied to this item. All the items tied to the same property become part of the same listbox.',),
(u'ListBox',u'Value',u'N',None, None, None, None, u'Formatted',None, u'The value string associated with this item. Selecting the line will set the associated property to this value.',), ('ListBox','Value','N',None, None, None, None, 'Formatted',None, 'The value string associated with this item. Selecting the line will set the associated property to this value.',),
(u'ListBox',u'Order',u'N',1,32767,None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',), ('ListBox','Order','N',1,32767,None, None, None, None, 'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',),
(u'ListView',u'Text',u'Y',None, None, None, None, u'Text',None, u'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',), ('ListView','Text','Y',None, None, None, None, 'Text',None, 'The visible text to be assigned to the item. Optional. If this entry or the entire column is missing, the text is the same as the value.',),
(u'ListView',u'Property',u'N',None, None, None, None, u'Identifier',None, u'A named property to be tied to this item. All the items tied to the same property become part of the same listview.',), ('ListView','Property','N',None, None, None, None, 'Identifier',None, 'A named property to be tied to this item. All the items tied to the same property become part of the same listview.',),
(u'ListView',u'Value',u'N',None, None, None, None, u'Identifier',None, u'The value string associated with this item. Selecting the line will set the associated property to this value.',), ('ListView','Value','N',None, None, None, None, 'Identifier',None, 'The value string associated with this item. Selecting the line will set the associated property to this value.',),
(u'ListView',u'Order',u'N',1,32767,None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',), ('ListView','Order','N',1,32767,None, None, None, None, 'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',),
(u'ListView',u'Binary_',u'Y',None, None, u'Binary',1,u'Identifier',None, u'The name of the icon to be displayed with the icon. The binary information is looked up from the Binary Table.',), ('ListView','Binary_','Y',None, None, 'Binary',1,'Identifier',None, 'The name of the icon to be displayed with the icon. The binary information is looked up from the Binary Table.',),
(u'LockPermissions',u'Table',u'N',None, None, None, None, u'Identifier',u'Directory;File;Registry',u'Reference to another table name',), ('LockPermissions','Table','N',None, None, None, None, 'Identifier','Directory;File;Registry','Reference to another table name',),
(u'LockPermissions',u'Domain',u'Y',None, None, None, None, u'Formatted',None, u'Domain name for user whose permissions are being set. (usually a property)',), ('LockPermissions','Domain','Y',None, None, None, None, 'Formatted',None, 'Domain name for user whose permissions are being set. (usually a property)',),
(u'LockPermissions',u'LockObject',u'N',None, None, None, None, u'Identifier',None, u'Foreign key into Registry or File table',), ('LockPermissions','LockObject','N',None, None, None, None, 'Identifier',None, 'Foreign key into Registry or File table',),
(u'LockPermissions',u'Permission',u'Y',-2147483647,2147483647,None, None, None, None, u'Permission Access mask. Full Control = 268435456 (GENERIC_ALL = 0x10000000)',), ('LockPermissions','Permission','Y',-2147483647,2147483647,None, None, None, None, 'Permission Access mask. Full Control = 268435456 (GENERIC_ALL = 0x10000000)',),
(u'LockPermissions',u'User',u'N',None, None, None, None, u'Formatted',None, u'User for permissions to be set. (usually a property)',), ('LockPermissions','User','N',None, None, None, None, 'Formatted',None, 'User for permissions to be set. (usually a property)',),
(u'Media',u'Source',u'Y',None, None, None, None, u'Property',None, u'The property defining the location of the cabinet file.',), ('Media','Source','Y',None, None, None, None, 'Property',None, 'The property defining the location of the cabinet file.',),
(u'Media',u'Cabinet',u'Y',None, None, None, None, u'Cabinet',None, u'If some or all of the files stored on the media are compressed in a cabinet, the name of that cabinet.',), ('Media','Cabinet','Y',None, None, None, None, 'Cabinet',None, 'If some or all of the files stored on the media are compressed in a cabinet, the name of that cabinet.',),
(u'Media',u'DiskId',u'N',1,32767,None, None, None, None, u'Primary key, integer to determine sort order for table.',), ('Media','DiskId','N',1,32767,None, None, None, None, 'Primary key, integer to determine sort order for table.',),
(u'Media',u'DiskPrompt',u'Y',None, None, None, None, u'Text',None, u'Disk name: the visible text actually printed on the disk. This will be used to prompt the user when this disk needs to be inserted.',), ('Media','DiskPrompt','Y',None, None, None, None, 'Text',None, 'Disk name: the visible text actually printed on the disk. This will be used to prompt the user when this disk needs to be inserted.',),
(u'Media',u'LastSequence',u'N',0,32767,None, None, None, None, u'File sequence number for the last file for this media.',), ('Media','LastSequence','N',0,32767,None, None, None, None, 'File sequence number for the last file for this media.',),
(u'Media',u'VolumeLabel',u'Y',None, None, None, None, u'Text',None, u'The label attributed to the volume.',), ('Media','VolumeLabel','Y',None, None, None, None, 'Text',None, 'The label attributed to the volume.',),
(u'ModuleComponents',u'Component',u'N',None, None, u'Component',1,u'Identifier',None, u'Component contained in the module.',), ('ModuleComponents','Component','N',None, None, 'Component',1,'Identifier',None, 'Component contained in the module.',),
(u'ModuleComponents',u'Language',u'N',None, None, u'ModuleSignature',2,None, None, u'Default language ID for module (may be changed by transform).',), ('ModuleComponents','Language','N',None, None, 'ModuleSignature',2,None, None, 'Default language ID for module (may be changed by transform).',),
(u'ModuleComponents',u'ModuleID',u'N',None, None, u'ModuleSignature',1,u'Identifier',None, u'Module containing the component.',), ('ModuleComponents','ModuleID','N',None, None, 'ModuleSignature',1,'Identifier',None, 'Module containing the component.',),
(u'ModuleSignature',u'Language',u'N',None, None, None, None, None, None, u'Default decimal language of module.',), ('ModuleSignature','Language','N',None, None, None, None, None, None, 'Default decimal language of module.',),
(u'ModuleSignature',u'Version',u'N',None, None, None, None, u'Version',None, u'Version of the module.',), ('ModuleSignature','Version','N',None, None, None, None, 'Version',None, 'Version of the module.',),
(u'ModuleSignature',u'ModuleID',u'N',None, None, None, None, u'Identifier',None, u'Module identifier (String.GUID).',), ('ModuleSignature','ModuleID','N',None, None, None, None, 'Identifier',None, 'Module identifier (String.GUID).',),
(u'ModuleDependency',u'ModuleID',u'N',None, None, u'ModuleSignature',1,u'Identifier',None, u'Module requiring the dependency.',), ('ModuleDependency','ModuleID','N',None, None, 'ModuleSignature',1,'Identifier',None, 'Module requiring the dependency.',),
(u'ModuleDependency',u'ModuleLanguage',u'N',None, None, u'ModuleSignature',2,None, None, u'Language of module requiring the dependency.',), ('ModuleDependency','ModuleLanguage','N',None, None, 'ModuleSignature',2,None, None, 'Language of module requiring the dependency.',),
(u'ModuleDependency',u'RequiredID',u'N',None, None, None, None, None, None, u'String.GUID of required module.',), ('ModuleDependency','RequiredID','N',None, None, None, None, None, None, 'String.GUID of required module.',),
(u'ModuleDependency',u'RequiredLanguage',u'N',None, None, None, None, None, None, u'LanguageID of the required module.',), ('ModuleDependency','RequiredLanguage','N',None, None, None, None, None, None, 'LanguageID of the required module.',),
(u'ModuleDependency',u'RequiredVersion',u'Y',None, None, None, None, u'Version',None, u'Version of the required version.',), ('ModuleDependency','RequiredVersion','Y',None, None, None, None, 'Version',None, 'Version of the required version.',),
(u'ModuleExclusion',u'ModuleID',u'N',None, None, u'ModuleSignature',1,u'Identifier',None, u'String.GUID of module with exclusion requirement.',), ('ModuleExclusion','ModuleID','N',None, None, 'ModuleSignature',1,'Identifier',None, 'String.GUID of module with exclusion requirement.',),
(u'ModuleExclusion',u'ModuleLanguage',u'N',None, None, u'ModuleSignature',2,None, None, u'LanguageID of module with exclusion requirement.',), ('ModuleExclusion','ModuleLanguage','N',None, None, 'ModuleSignature',2,None, None, 'LanguageID of module with exclusion requirement.',),
(u'ModuleExclusion',u'ExcludedID',u'N',None, None, None, None, None, None, u'String.GUID of excluded module.',), ('ModuleExclusion','ExcludedID','N',None, None, None, None, None, None, 'String.GUID of excluded module.',),
(u'ModuleExclusion',u'ExcludedLanguage',u'N',None, None, None, None, None, None, u'Language of excluded module.',), ('ModuleExclusion','ExcludedLanguage','N',None, None, None, None, None, None, 'Language of excluded module.',),
(u'ModuleExclusion',u'ExcludedMaxVersion',u'Y',None, None, None, None, u'Version',None, u'Maximum version of excluded module.',), ('ModuleExclusion','ExcludedMaxVersion','Y',None, None, None, None, 'Version',None, 'Maximum version of excluded module.',),
(u'ModuleExclusion',u'ExcludedMinVersion',u'Y',None, None, None, None, u'Version',None, u'Minimum version of excluded module.',), ('ModuleExclusion','ExcludedMinVersion','Y',None, None, None, None, 'Version',None, 'Minimum version of excluded module.',),
(u'MoveFile',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'If this component is not "selected" for installation or removal, no action will be taken on the associated MoveFile entry',), ('MoveFile','Component_','N',None, None, 'Component',1,'Identifier',None, 'If this component is not "selected" for installation or removal, no action will be taken on the associated MoveFile entry',),
(u'MoveFile',u'DestFolder',u'N',None, None, None, None, u'Identifier',None, u'Name of a property whose value is assumed to resolve to the full path to the destination directory',), ('MoveFile','DestFolder','N',None, None, None, None, 'Identifier',None, 'Name of a property whose value is assumed to resolve to the full path to the destination directory',),
(u'MoveFile',u'DestName',u'Y',None, None, None, None, u'Filename',None, u'Name to be given to the original file after it is moved or copied. If blank, the destination file will be given the same name as the source file',), ('MoveFile','DestName','Y',None, None, None, None, 'Filename',None, 'Name to be given to the original file after it is moved or copied. If blank, the destination file will be given the same name as the source file',),
(u'MoveFile',u'FileKey',u'N',None, None, None, None, u'Identifier',None, u'Primary key that uniquely identifies a particular MoveFile record',), ('MoveFile','FileKey','N',None, None, None, None, 'Identifier',None, 'Primary key that uniquely identifies a particular MoveFile record',),
(u'MoveFile',u'Options',u'N',0,1,None, None, None, None, u'Integer value specifying the MoveFile operating mode, one of imfoEnum',), ('MoveFile','Options','N',0,1,None, None, None, None, 'Integer value specifying the MoveFile operating mode, one of imfoEnum',),
(u'MoveFile',u'SourceFolder',u'Y',None, None, None, None, u'Identifier',None, u'Name of a property whose value is assumed to resolve to the full path to the source directory',), ('MoveFile','SourceFolder','Y',None, None, None, None, 'Identifier',None, 'Name of a property whose value is assumed to resolve to the full path to the source directory',),
(u'MoveFile',u'SourceName',u'Y',None, None, None, None, u'Text',None, u"Name of the source file(s) to be moved or copied. Can contain the '*' or '?' wildcards.",), ('MoveFile','SourceName','Y',None, None, None, None, 'Text',None, "Name of the source file(s) to be moved or copied. Can contain the '*' or '?' wildcards.",),
(u'MsiAssembly',u'Attributes',u'Y',None, None, None, None, None, None, u'Assembly attributes',), ('MsiAssembly','Attributes','Y',None, None, None, None, None, None, 'Assembly attributes',),
(u'MsiAssembly',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Foreign key into Feature table.',), ('MsiAssembly','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Foreign key into Feature table.',),
(u'MsiAssembly',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into Component table.',), ('MsiAssembly','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into Component table.',),
(u'MsiAssembly',u'File_Application',u'Y',None, None, u'File',1,u'Identifier',None, u'Foreign key into File table, denoting the application context for private assemblies. Null for global assemblies.',), ('MsiAssembly','File_Application','Y',None, None, 'File',1,'Identifier',None, 'Foreign key into File table, denoting the application context for private assemblies. Null for global assemblies.',),
(u'MsiAssembly',u'File_Manifest',u'Y',None, None, u'File',1,u'Identifier',None, u'Foreign key into the File table denoting the manifest file for the assembly.',), ('MsiAssembly','File_Manifest','Y',None, None, 'File',1,'Identifier',None, 'Foreign key into the File table denoting the manifest file for the assembly.',),
(u'MsiAssemblyName',u'Name',u'N',None, None, None, None, u'Text',None, u'The name part of the name-value pairs for the assembly name.',), ('MsiAssemblyName','Name','N',None, None, None, None, 'Text',None, 'The name part of the name-value pairs for the assembly name.',),
(u'MsiAssemblyName',u'Value',u'N',None, None, None, None, u'Text',None, u'The value part of the name-value pairs for the assembly name.',), ('MsiAssemblyName','Value','N',None, None, None, None, 'Text',None, 'The value part of the name-value pairs for the assembly name.',),
(u'MsiAssemblyName',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into Component table.',), ('MsiAssemblyName','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into Component table.',),
(u'MsiDigitalCertificate',u'CertData',u'N',None, None, None, None, u'Binary',None, u'A certificate context blob for a signer certificate',), ('MsiDigitalCertificate','CertData','N',None, None, None, None, 'Binary',None, 'A certificate context blob for a signer certificate',),
(u'MsiDigitalCertificate',u'DigitalCertificate',u'N',None, None, None, None, u'Identifier',None, u'A unique identifier for the row',), ('MsiDigitalCertificate','DigitalCertificate','N',None, None, None, None, 'Identifier',None, 'A unique identifier for the row',),
(u'MsiDigitalSignature',u'Table',u'N',None, None, None, None, None, u'Media',u'Reference to another table name (only Media table is supported)',), ('MsiDigitalSignature','Table','N',None, None, None, None, None, 'Media','Reference to another table name (only Media table is supported)',),
(u'MsiDigitalSignature',u'DigitalCertificate_',u'N',None, None, u'MsiDigitalCertificate',1,u'Identifier',None, u'Foreign key to MsiDigitalCertificate table identifying the signer certificate',), ('MsiDigitalSignature','DigitalCertificate_','N',None, None, 'MsiDigitalCertificate',1,'Identifier',None, 'Foreign key to MsiDigitalCertificate table identifying the signer certificate',),
(u'MsiDigitalSignature',u'Hash',u'Y',None, None, None, None, u'Binary',None, u'The encoded hash blob from the digital signature',), ('MsiDigitalSignature','Hash','Y',None, None, None, None, 'Binary',None, 'The encoded hash blob from the digital signature',),
(u'MsiDigitalSignature',u'SignObject',u'N',None, None, None, None, u'Text',None, u'Foreign key to Media table',), ('MsiDigitalSignature','SignObject','N',None, None, None, None, 'Text',None, 'Foreign key to Media table',),
(u'MsiFileHash',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Primary key, foreign key into File table referencing file with this hash',), ('MsiFileHash','File_','N',None, None, 'File',1,'Identifier',None, 'Primary key, foreign key into File table referencing file with this hash',),
(u'MsiFileHash',u'Options',u'N',0,32767,None, None, None, None, u'Various options and attributes for this hash.',), ('MsiFileHash','Options','N',0,32767,None, None, None, None, 'Various options and attributes for this hash.',),
(u'MsiFileHash',u'HashPart1',u'N',None, None, None, None, None, None, u'Size of file in bytes (long integer).',), ('MsiFileHash','HashPart1','N',None, None, None, None, None, None, 'Size of file in bytes (long integer).',),
(u'MsiFileHash',u'HashPart2',u'N',None, None, None, None, None, None, u'Size of file in bytes (long integer).',), ('MsiFileHash','HashPart2','N',None, None, None, None, None, None, 'Size of file in bytes (long integer).',),
(u'MsiFileHash',u'HashPart3',u'N',None, None, None, None, None, None, u'Size of file in bytes (long integer).',), ('MsiFileHash','HashPart3','N',None, None, None, None, None, None, 'Size of file in bytes (long integer).',),
(u'MsiFileHash',u'HashPart4',u'N',None, None, None, None, None, None, u'Size of file in bytes (long integer).',), ('MsiFileHash','HashPart4','N',None, None, None, None, None, None, 'Size of file in bytes (long integer).',),
(u'MsiPatchHeaders',u'StreamRef',u'N',None, None, None, None, u'Identifier',None, u'Primary key. A unique identifier for the row.',), ('MsiPatchHeaders','StreamRef','N',None, None, None, None, 'Identifier',None, 'Primary key. A unique identifier for the row.',),
(u'MsiPatchHeaders',u'Header',u'N',None, None, None, None, u'Binary',None, u'Binary stream. The patch header, used for patch validation.',), ('MsiPatchHeaders','Header','N',None, None, None, None, 'Binary',None, 'Binary stream. The patch header, used for patch validation.',),
(u'ODBCAttribute',u'Value',u'Y',None, None, None, None, u'Text',None, u'Value for ODBC driver attribute',), ('ODBCAttribute','Value','Y',None, None, None, None, 'Text',None, 'Value for ODBC driver attribute',),
(u'ODBCAttribute',u'Attribute',u'N',None, None, None, None, u'Text',None, u'Name of ODBC driver attribute',), ('ODBCAttribute','Attribute','N',None, None, None, None, 'Text',None, 'Name of ODBC driver attribute',),
(u'ODBCAttribute',u'Driver_',u'N',None, None, u'ODBCDriver',1,u'Identifier',None, u'Reference to ODBC driver in ODBCDriver table',), ('ODBCAttribute','Driver_','N',None, None, 'ODBCDriver',1,'Identifier',None, 'Reference to ODBC driver in ODBCDriver table',),
(u'ODBCDriver',u'Description',u'N',None, None, None, None, u'Text',None, u'Text used as registered name for driver, non-localized',), ('ODBCDriver','Description','N',None, None, None, None, 'Text',None, 'Text used as registered name for driver, non-localized',),
(u'ODBCDriver',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Reference to key driver file',), ('ODBCDriver','File_','N',None, None, 'File',1,'Identifier',None, 'Reference to key driver file',),
(u'ODBCDriver',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Reference to associated component',), ('ODBCDriver','Component_','N',None, None, 'Component',1,'Identifier',None, 'Reference to associated component',),
(u'ODBCDriver',u'Driver',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized.internal token for driver',), ('ODBCDriver','Driver','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized.internal token for driver',),
(u'ODBCDriver',u'File_Setup',u'Y',None, None, u'File',1,u'Identifier',None, u'Optional reference to key driver setup DLL',), ('ODBCDriver','File_Setup','Y',None, None, 'File',1,'Identifier',None, 'Optional reference to key driver setup DLL',),
(u'ODBCDataSource',u'Description',u'N',None, None, None, None, u'Text',None, u'Text used as registered name for data source',), ('ODBCDataSource','Description','N',None, None, None, None, 'Text',None, 'Text used as registered name for data source',),
(u'ODBCDataSource',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Reference to associated component',), ('ODBCDataSource','Component_','N',None, None, 'Component',1,'Identifier',None, 'Reference to associated component',),
(u'ODBCDataSource',u'DataSource',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized.internal token for data source',), ('ODBCDataSource','DataSource','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized.internal token for data source',),
(u'ODBCDataSource',u'DriverDescription',u'N',None, None, None, None, u'Text',None, u'Reference to driver description, may be existing driver',), ('ODBCDataSource','DriverDescription','N',None, None, None, None, 'Text',None, 'Reference to driver description, may be existing driver',),
(u'ODBCDataSource',u'Registration',u'N',0,1,None, None, None, None, u'Registration option: 0=machine, 1=user, others t.b.d.',), ('ODBCDataSource','Registration','N',0,1,None, None, None, None, 'Registration option: 0=machine, 1=user, others t.b.d.',),
(u'ODBCSourceAttribute',u'Value',u'Y',None, None, None, None, u'Text',None, u'Value for ODBC data source attribute',), ('ODBCSourceAttribute','Value','Y',None, None, None, None, 'Text',None, 'Value for ODBC data source attribute',),
(u'ODBCSourceAttribute',u'Attribute',u'N',None, None, None, None, u'Text',None, u'Name of ODBC data source attribute',), ('ODBCSourceAttribute','Attribute','N',None, None, None, None, 'Text',None, 'Name of ODBC data source attribute',),
(u'ODBCSourceAttribute',u'DataSource_',u'N',None, None, u'ODBCDataSource',1,u'Identifier',None, u'Reference to ODBC data source in ODBCDataSource table',), ('ODBCSourceAttribute','DataSource_','N',None, None, 'ODBCDataSource',1,'Identifier',None, 'Reference to ODBC data source in ODBCDataSource table',),
(u'ODBCTranslator',u'Description',u'N',None, None, None, None, u'Text',None, u'Text used as registered name for translator',), ('ODBCTranslator','Description','N',None, None, None, None, 'Text',None, 'Text used as registered name for translator',),
(u'ODBCTranslator',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Reference to key translator file',), ('ODBCTranslator','File_','N',None, None, 'File',1,'Identifier',None, 'Reference to key translator file',),
(u'ODBCTranslator',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Reference to associated component',), ('ODBCTranslator','Component_','N',None, None, 'Component',1,'Identifier',None, 'Reference to associated component',),
(u'ODBCTranslator',u'File_Setup',u'Y',None, None, u'File',1,u'Identifier',None, u'Optional reference to key translator setup DLL',), ('ODBCTranslator','File_Setup','Y',None, None, 'File',1,'Identifier',None, 'Optional reference to key translator setup DLL',),
(u'ODBCTranslator',u'Translator',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized.internal token for translator',), ('ODBCTranslator','Translator','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized.internal token for translator',),
(u'Patch',u'Sequence',u'N',0,32767,None, None, None, None, u'Primary key, sequence with respect to the media images; order must track cabinet order.',), ('Patch','Sequence','N',0,32767,None, None, None, None, 'Primary key, sequence with respect to the media images; order must track cabinet order.',),
(u'Patch',u'Attributes',u'N',0,32767,None, None, None, None, u'Integer containing bit flags representing patch attributes',), ('Patch','Attributes','N',0,32767,None, None, None, None, 'Integer containing bit flags representing patch attributes',),
(u'Patch',u'File_',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token, foreign key to File table, must match identifier in cabinet.',), ('Patch','File_','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token, foreign key to File table, must match identifier in cabinet.',),
(u'Patch',u'Header',u'Y',None, None, None, None, u'Binary',None, u'Binary stream. The patch header, used for patch validation.',), ('Patch','Header','Y',None, None, None, None, 'Binary',None, 'Binary stream. The patch header, used for patch validation.',),
(u'Patch',u'PatchSize',u'N',0,2147483647,None, None, None, None, u'Size of patch in bytes (long integer).',), ('Patch','PatchSize','N',0,2147483647,None, None, None, None, 'Size of patch in bytes (long integer).',),
(u'Patch',u'StreamRef_',u'Y',None, None, None, None, u'Identifier',None, u'Identifier. Foreign key to the StreamRef column of the MsiPatchHeaders table.',), ('Patch','StreamRef_','Y',None, None, None, None, 'Identifier',None, 'Identifier. Foreign key to the StreamRef column of the MsiPatchHeaders table.',),
(u'PatchPackage',u'Media_',u'N',0,32767,None, None, None, None, u'Foreign key to DiskId column of Media table. Indicates the disk containing the patch package.',), ('PatchPackage','Media_','N',0,32767,None, None, None, None, 'Foreign key to DiskId column of Media table. Indicates the disk containing the patch package.',),
(u'PatchPackage',u'PatchId',u'N',None, None, None, None, u'Guid',None, u'A unique string GUID representing this patch.',), ('PatchPackage','PatchId','N',None, None, None, None, 'Guid',None, 'A unique string GUID representing this patch.',),
(u'PublishComponent',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Foreign key into the Feature table.',), ('PublishComponent','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Foreign key into the Feature table.',),
(u'PublishComponent',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table.',), ('PublishComponent','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table.',),
(u'PublishComponent',u'ComponentId',u'N',None, None, None, None, u'Guid',None, u'A string GUID that represents the component id that will be requested by the alien product.',), ('PublishComponent','ComponentId','N',None, None, None, None, 'Guid',None, 'A string GUID that represents the component id that will be requested by the alien product.',),
(u'PublishComponent',u'AppData',u'Y',None, None, None, None, u'Text',None, u'This is localisable Application specific data that can be associated with a Qualified Component.',), ('PublishComponent','AppData','Y',None, None, None, None, 'Text',None, 'This is localisable Application specific data that can be associated with a Qualified Component.',),
(u'PublishComponent',u'Qualifier',u'N',None, None, None, None, u'Text',None, u'This is defined only when the ComponentId column is an Qualified Component Id. This is the Qualifier for ProvideComponentIndirect.',), ('PublishComponent','Qualifier','N',None, None, None, None, 'Text',None, 'This is defined only when the ComponentId column is an Qualified Component Id. This is the Qualifier for ProvideComponentIndirect.',),
(u'RadioButton',u'Y',u'N',0,32767,None, None, None, None, u'The vertical coordinate of the upper left corner of the bounding rectangle of the radio button.',), ('RadioButton','Y','N',0,32767,None, None, None, None, 'The vertical coordinate of the upper left corner of the bounding rectangle of the radio button.',),
(u'RadioButton',u'Text',u'Y',None, None, None, None, u'Text',None, u'The visible title to be assigned to the radio button.',), ('RadioButton','Text','Y',None, None, None, None, 'Text',None, 'The visible title to be assigned to the radio button.',),
(u'RadioButton',u'Property',u'N',None, None, None, None, u'Identifier',None, u'A named property to be tied to this radio button. All the buttons tied to the same property become part of the same group.',), ('RadioButton','Property','N',None, None, None, None, 'Identifier',None, 'A named property to be tied to this radio button. All the buttons tied to the same property become part of the same group.',),
(u'RadioButton',u'Height',u'N',0,32767,None, None, None, None, u'The height of the button.',), ('RadioButton','Height','N',0,32767,None, None, None, None, 'The height of the button.',),
(u'RadioButton',u'Width',u'N',0,32767,None, None, None, None, u'The width of the button.',), ('RadioButton','Width','N',0,32767,None, None, None, None, 'The width of the button.',),
(u'RadioButton',u'X',u'N',0,32767,None, None, None, None, u'The horizontal coordinate of the upper left corner of the bounding rectangle of the radio button.',), ('RadioButton','X','N',0,32767,None, None, None, None, 'The horizontal coordinate of the upper left corner of the bounding rectangle of the radio button.',),
(u'RadioButton',u'Value',u'N',None, None, None, None, u'Formatted',None, u'The value string associated with this button. Selecting the button will set the associated property to this value.',), ('RadioButton','Value','N',None, None, None, None, 'Formatted',None, 'The value string associated with this button. Selecting the button will set the associated property to this value.',),
(u'RadioButton',u'Order',u'N',1,32767,None, None, None, None, u'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',), ('RadioButton','Order','N',1,32767,None, None, None, None, 'A positive integer used to determine the ordering of the items within one list..The integers do not have to be consecutive.',),
(u'RadioButton',u'Help',u'Y',None, None, None, None, u'Text',None, u'The help strings used with the button. The text is optional.',), ('RadioButton','Help','Y',None, None, None, None, 'Text',None, 'The help strings used with the button. The text is optional.',),
(u'Registry',u'Name',u'Y',None, None, None, None, u'Formatted',None, u'The registry value name.',), ('Registry','Name','Y',None, None, None, None, 'Formatted',None, 'The registry value name.',),
(u'Registry',u'Value',u'Y',None, None, None, None, u'Formatted',None, u'The registry value.',), ('Registry','Value','Y',None, None, None, None, 'Formatted',None, 'The registry value.',),
(u'Registry',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table referencing component that controls the installing of the registry value.',), ('Registry','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table referencing component that controls the installing of the registry value.',),
(u'Registry',u'Key',u'N',None, None, None, None, u'RegPath',None, u'The key for the registry value.',), ('Registry','Key','N',None, None, None, None, 'RegPath',None, 'The key for the registry value.',),
(u'Registry',u'Registry',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('Registry','Registry','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'Registry',u'Root',u'N',-1,3,None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum.',), ('Registry','Root','N',-1,3,None, None, None, None, 'The predefined root key for the registry value, one of rrkEnum.',),
(u'RegLocator',u'Name',u'Y',None, None, None, None, u'Formatted',None, u'The registry value name.',), ('RegLocator','Name','Y',None, None, None, None, 'Formatted',None, 'The registry value name.',),
(u'RegLocator',u'Type',u'Y',0,18,None, None, None, None, u'An integer value that determines if the registry value is a filename or a directory location or to be used as is w/o interpretation.',), ('RegLocator','Type','Y',0,18,None, None, None, None, 'An integer value that determines if the registry value is a filename or a directory location or to be used as is w/o interpretation.',),
(u'RegLocator',u'Signature_',u'N',None, None, None, None, u'Identifier',None, u'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table. If the type is 0, the registry values refers a directory, and _Signature is not a foreign key.',), ('RegLocator','Signature_','N',None, None, None, None, 'Identifier',None, 'The table key. The Signature_ represents a unique file signature and is also the foreign key in the Signature table. If the type is 0, the registry values refers a directory, and _Signature is not a foreign key.',),
(u'RegLocator',u'Key',u'N',None, None, None, None, u'RegPath',None, u'The key for the registry value.',), ('RegLocator','Key','N',None, None, None, None, 'RegPath',None, 'The key for the registry value.',),
(u'RegLocator',u'Root',u'N',0,3,None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum.',), ('RegLocator','Root','N',0,3,None, None, None, None, 'The predefined root key for the registry value, one of rrkEnum.',),
(u'RemoveFile',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key referencing Component that controls the file to be removed.',), ('RemoveFile','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key referencing Component that controls the file to be removed.',),
(u'RemoveFile',u'FileKey',u'N',None, None, None, None, u'Identifier',None, u'Primary key used to identify a particular file entry',), ('RemoveFile','FileKey','N',None, None, None, None, 'Identifier',None, 'Primary key used to identify a particular file entry',),
(u'RemoveFile',u'FileName',u'Y',None, None, None, None, u'WildCardFilename',None, u'Name of the file to be removed.',), ('RemoveFile','FileName','Y',None, None, None, None, 'WildCardFilename',None, 'Name of the file to be removed.',),
(u'RemoveFile',u'DirProperty',u'N',None, None, None, None, u'Identifier',None, u'Name of a property whose value is assumed to resolve to the full pathname to the folder of the file to be removed.',), ('RemoveFile','DirProperty','N',None, None, None, None, 'Identifier',None, 'Name of a property whose value is assumed to resolve to the full pathname to the folder of the file to be removed.',),
(u'RemoveFile',u'InstallMode',u'N',None, None, None, None, None, u'1;2;3',u'Installation option, one of iimEnum.',), ('RemoveFile','InstallMode','N',None, None, None, None, None, '1;2;3','Installation option, one of iimEnum.',),
(u'RemoveIniFile',u'Action',u'N',None, None, None, None, None, u'2;4',u'The type of modification to be made, one of iifEnum.',), ('RemoveIniFile','Action','N',None, None, None, None, None, '2;4','The type of modification to be made, one of iifEnum.',),
(u'RemoveIniFile',u'Value',u'Y',None, None, None, None, u'Formatted',None, u'The value to be deleted. The value is required when Action is iifIniRemoveTag',), ('RemoveIniFile','Value','Y',None, None, None, None, 'Formatted',None, 'The value to be deleted. The value is required when Action is iifIniRemoveTag',),
(u'RemoveIniFile',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table referencing component that controls the deletion of the .INI value.',), ('RemoveIniFile','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table referencing component that controls the deletion of the .INI value.',),
(u'RemoveIniFile',u'FileName',u'N',None, None, None, None, u'Filename',None, u'The .INI file name in which to delete the information',), ('RemoveIniFile','FileName','N',None, None, None, None, 'Filename',None, 'The .INI file name in which to delete the information',),
(u'RemoveIniFile',u'DirProperty',u'Y',None, None, None, None, u'Identifier',None, u'Foreign key into the Directory table denoting the directory where the .INI file is.',), ('RemoveIniFile','DirProperty','Y',None, None, None, None, 'Identifier',None, 'Foreign key into the Directory table denoting the directory where the .INI file is.',),
(u'RemoveIniFile',u'Key',u'N',None, None, None, None, u'Formatted',None, u'The .INI file key below Section.',), ('RemoveIniFile','Key','N',None, None, None, None, 'Formatted',None, 'The .INI file key below Section.',),
(u'RemoveIniFile',u'Section',u'N',None, None, None, None, u'Formatted',None, u'The .INI file Section.',), ('RemoveIniFile','Section','N',None, None, None, None, 'Formatted',None, 'The .INI file Section.',),
(u'RemoveIniFile',u'RemoveIniFile',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('RemoveIniFile','RemoveIniFile','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'RemoveRegistry',u'Name',u'Y',None, None, None, None, u'Formatted',None, u'The registry value name.',), ('RemoveRegistry','Name','Y',None, None, None, None, 'Formatted',None, 'The registry value name.',),
(u'RemoveRegistry',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table referencing component that controls the deletion of the registry value.',), ('RemoveRegistry','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table referencing component that controls the deletion of the registry value.',),
(u'RemoveRegistry',u'Key',u'N',None, None, None, None, u'RegPath',None, u'The key for the registry value.',), ('RemoveRegistry','Key','N',None, None, None, None, 'RegPath',None, 'The key for the registry value.',),
(u'RemoveRegistry',u'Root',u'N',-1,3,None, None, None, None, u'The predefined root key for the registry value, one of rrkEnum',), ('RemoveRegistry','Root','N',-1,3,None, None, None, None, 'The predefined root key for the registry value, one of rrkEnum',),
(u'RemoveRegistry',u'RemoveRegistry',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('RemoveRegistry','RemoveRegistry','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'ReserveCost',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Reserve a specified amount of space if this component is to be installed.',), ('ReserveCost','Component_','N',None, None, 'Component',1,'Identifier',None, 'Reserve a specified amount of space if this component is to be installed.',),
(u'ReserveCost',u'ReserveFolder',u'Y',None, None, None, None, u'Identifier',None, u'Name of a property whose value is assumed to resolve to the full path to the destination directory',), ('ReserveCost','ReserveFolder','Y',None, None, None, None, 'Identifier',None, 'Name of a property whose value is assumed to resolve to the full path to the destination directory',),
(u'ReserveCost',u'ReserveKey',u'N',None, None, None, None, u'Identifier',None, u'Primary key that uniquely identifies a particular ReserveCost record',), ('ReserveCost','ReserveKey','N',None, None, None, None, 'Identifier',None, 'Primary key that uniquely identifies a particular ReserveCost record',),
(u'ReserveCost',u'ReserveLocal',u'N',0,2147483647,None, None, None, None, u'Disk space to reserve if linked component is installed locally.',), ('ReserveCost','ReserveLocal','N',0,2147483647,None, None, None, None, 'Disk space to reserve if linked component is installed locally.',),
(u'ReserveCost',u'ReserveSource',u'N',0,2147483647,None, None, None, None, u'Disk space to reserve if linked component is installed to run from the source location.',), ('ReserveCost','ReserveSource','N',0,2147483647,None, None, None, None, 'Disk space to reserve if linked component is installed to run from the source location.',),
(u'SelfReg',u'File_',u'N',None, None, u'File',1,u'Identifier',None, u'Foreign key into the File table denoting the module that needs to be registered.',), ('SelfReg','File_','N',None, None, 'File',1,'Identifier',None, 'Foreign key into the File table denoting the module that needs to be registered.',),
(u'SelfReg',u'Cost',u'Y',0,32767,None, None, None, None, u'The cost of registering the module.',), ('SelfReg','Cost','Y',0,32767,None, None, None, None, 'The cost of registering the module.',),
(u'ServiceControl',u'Name',u'N',None, None, None, None, u'Formatted',None, u'Name of a service. /, \\, comma and space are invalid',), ('ServiceControl','Name','N',None, None, None, None, 'Formatted',None, 'Name of a service. /, \\, comma and space are invalid',),
(u'ServiceControl',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Required foreign key into the Component Table that controls the startup of the service',), ('ServiceControl','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table that controls the startup of the service',),
(u'ServiceControl',u'Event',u'N',0,187,None, None, None, None, u'Bit field: Install: 0x1 = Start, 0x2 = Stop, 0x8 = Delete, Uninstall: 0x10 = Start, 0x20 = Stop, 0x80 = Delete',), ('ServiceControl','Event','N',0,187,None, None, None, None, 'Bit field: Install: 0x1 = Start, 0x2 = Stop, 0x8 = Delete, Uninstall: 0x10 = Start, 0x20 = Stop, 0x80 = Delete',),
(u'ServiceControl',u'ServiceControl',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('ServiceControl','ServiceControl','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'ServiceControl',u'Arguments',u'Y',None, None, None, None, u'Formatted',None, u'Arguments for the service. Separate by [~].',), ('ServiceControl','Arguments','Y',None, None, None, None, 'Formatted',None, 'Arguments for the service. Separate by [~].',),
(u'ServiceControl',u'Wait',u'Y',0,1,None, None, None, None, u'Boolean for whether to wait for the service to fully start',), ('ServiceControl','Wait','Y',0,1,None, None, None, None, 'Boolean for whether to wait for the service to fully start',),
(u'ServiceInstall',u'Name',u'N',None, None, None, None, u'Formatted',None, u'Internal Name of the Service',), ('ServiceInstall','Name','N',None, None, None, None, 'Formatted',None, 'Internal Name of the Service',),
(u'ServiceInstall',u'Description',u'Y',None, None, None, None, u'Text',None, u'Description of service.',), ('ServiceInstall','Description','Y',None, None, None, None, 'Text',None, 'Description of service.',),
(u'ServiceInstall',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Required foreign key into the Component Table that controls the startup of the service',), ('ServiceInstall','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table that controls the startup of the service',),
(u'ServiceInstall',u'Arguments',u'Y',None, None, None, None, u'Formatted',None, u'Arguments to include in every start of the service, passed to WinMain',), ('ServiceInstall','Arguments','Y',None, None, None, None, 'Formatted',None, 'Arguments to include in every start of the service, passed to WinMain',),
(u'ServiceInstall',u'ServiceInstall',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('ServiceInstall','ServiceInstall','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'ServiceInstall',u'Dependencies',u'Y',None, None, None, None, u'Formatted',None, u'Other services this depends on to start. Separate by [~], and end with [~][~]',), ('ServiceInstall','Dependencies','Y',None, None, None, None, 'Formatted',None, 'Other services this depends on to start. Separate by [~], and end with [~][~]',),
(u'ServiceInstall',u'DisplayName',u'Y',None, None, None, None, u'Formatted',None, u'External Name of the Service',), ('ServiceInstall','DisplayName','Y',None, None, None, None, 'Formatted',None, 'External Name of the Service',),
(u'ServiceInstall',u'ErrorControl',u'N',-2147483647,2147483647,None, None, None, None, u'Severity of error if service fails to start',), ('ServiceInstall','ErrorControl','N',-2147483647,2147483647,None, None, None, None, 'Severity of error if service fails to start',),
(u'ServiceInstall',u'LoadOrderGroup',u'Y',None, None, None, None, u'Formatted',None, u'LoadOrderGroup',), ('ServiceInstall','LoadOrderGroup','Y',None, None, None, None, 'Formatted',None, 'LoadOrderGroup',),
(u'ServiceInstall',u'Password',u'Y',None, None, None, None, u'Formatted',None, u'password to run service with. (with StartName)',), ('ServiceInstall','Password','Y',None, None, None, None, 'Formatted',None, 'password to run service with. (with StartName)',),
(u'ServiceInstall',u'ServiceType',u'N',-2147483647,2147483647,None, None, None, None, u'Type of the service',), ('ServiceInstall','ServiceType','N',-2147483647,2147483647,None, None, None, None, 'Type of the service',),
(u'ServiceInstall',u'StartName',u'Y',None, None, None, None, u'Formatted',None, u'User or object name to run service as',), ('ServiceInstall','StartName','Y',None, None, None, None, 'Formatted',None, 'User or object name to run service as',),
(u'ServiceInstall',u'StartType',u'N',0,4,None, None, None, None, u'Type of the service',), ('ServiceInstall','StartType','N',0,4,None, None, None, None, 'Type of the service',),
(u'Shortcut',u'Name',u'N',None, None, None, None, u'Filename',None, u'The name of the shortcut to be created.',), ('Shortcut','Name','N',None, None, None, None, 'Filename',None, 'The name of the shortcut to be created.',),
(u'Shortcut',u'Description',u'Y',None, None, None, None, u'Text',None, u'The description for the shortcut.',), ('Shortcut','Description','Y',None, None, None, None, 'Text',None, 'The description for the shortcut.',),
(u'Shortcut',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.',), ('Shortcut','Component_','N',None, None, 'Component',1,'Identifier',None, 'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.',),
(u'Shortcut',u'Icon_',u'Y',None, None, u'Icon',1,u'Identifier',None, u'Foreign key into the File table denoting the external icon file for the shortcut.',), ('Shortcut','Icon_','Y',None, None, 'Icon',1,'Identifier',None, 'Foreign key into the File table denoting the external icon file for the shortcut.',),
(u'Shortcut',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'The icon index for the shortcut.',), ('Shortcut','IconIndex','Y',-32767,32767,None, None, None, None, 'The icon index for the shortcut.',),
(u'Shortcut',u'Directory_',u'N',None, None, u'Directory',1,u'Identifier',None, u'Foreign key into the Directory table denoting the directory where the shortcut file is created.',), ('Shortcut','Directory_','N',None, None, 'Directory',1,'Identifier',None, 'Foreign key into the Directory table denoting the directory where the shortcut file is created.',),
(u'Shortcut',u'Target',u'N',None, None, None, None, u'Shortcut',None, u'The shortcut target. This is usually a property that is expanded to a file or a folder that the shortcut points to.',), ('Shortcut','Target','N',None, None, None, None, 'Shortcut',None, 'The shortcut target. This is usually a property that is expanded to a file or a folder that the shortcut points to.',),
(u'Shortcut',u'Arguments',u'Y',None, None, None, None, u'Formatted',None, u'The command-line arguments for the shortcut.',), ('Shortcut','Arguments','Y',None, None, None, None, 'Formatted',None, 'The command-line arguments for the shortcut.',),
(u'Shortcut',u'Shortcut',u'N',None, None, None, None, u'Identifier',None, u'Primary key, non-localized token.',), ('Shortcut','Shortcut','N',None, None, None, None, 'Identifier',None, 'Primary key, non-localized token.',),
(u'Shortcut',u'Hotkey',u'Y',0,32767,None, None, None, None, u'The hotkey for the shortcut. It has the virtual-key code for the key in the low-order byte, and the modifier flags in the high-order byte. ',), ('Shortcut','Hotkey','Y',0,32767,None, None, None, None, 'The hotkey for the shortcut. It has the virtual-key code for the key in the low-order byte, and the modifier flags in the high-order byte. ',),
(u'Shortcut',u'ShowCmd',u'Y',None, None, None, None, None, u'1;3;7',u'The show command for the application window.The following values may be used.',), ('Shortcut','ShowCmd','Y',None, None, None, None, None, '1;3;7','The show command for the application window.The following values may be used.',),
(u'Shortcut',u'WkDir',u'Y',None, None, None, None, u'Identifier',None, u'Name of property defining location of working directory.',), ('Shortcut','WkDir','Y',None, None, None, None, 'Identifier',None, 'Name of property defining location of working directory.',),
(u'Signature',u'FileName',u'N',None, None, None, None, u'Filename',None, u'The name of the file. This may contain a "short name|long name" pair.',), ('Signature','FileName','N',None, None, None, None, 'Filename',None, 'The name of the file. This may contain a "short name|long name" pair.',),
(u'Signature',u'Signature',u'N',None, None, None, None, u'Identifier',None, u'The table key. The Signature represents a unique file signature.',), ('Signature','Signature','N',None, None, None, None, 'Identifier',None, 'The table key. The Signature represents a unique file signature.',),
(u'Signature',u'Languages',u'Y',None, None, None, None, u'Language',None, u'The languages supported by the file.',), ('Signature','Languages','Y',None, None, None, None, 'Language',None, 'The languages supported by the file.',),
(u'Signature',u'MaxDate',u'Y',0,2147483647,None, None, None, None, u'The maximum creation date of the file.',), ('Signature','MaxDate','Y',0,2147483647,None, None, None, None, 'The maximum creation date of the file.',),
(u'Signature',u'MaxSize',u'Y',0,2147483647,None, None, None, None, u'The maximum size of the file. ',), ('Signature','MaxSize','Y',0,2147483647,None, None, None, None, 'The maximum size of the file. ',),
(u'Signature',u'MaxVersion',u'Y',None, None, None, None, u'Text',None, u'The maximum version of the file.',), ('Signature','MaxVersion','Y',None, None, None, None, 'Text',None, 'The maximum version of the file.',),
(u'Signature',u'MinDate',u'Y',0,2147483647,None, None, None, None, u'The minimum creation date of the file.',), ('Signature','MinDate','Y',0,2147483647,None, None, None, None, 'The minimum creation date of the file.',),
(u'Signature',u'MinSize',u'Y',0,2147483647,None, None, None, None, u'The minimum size of the file.',), ('Signature','MinSize','Y',0,2147483647,None, None, None, None, 'The minimum size of the file.',),
(u'Signature',u'MinVersion',u'Y',None, None, None, None, u'Text',None, u'The minimum version of the file.',), ('Signature','MinVersion','Y',None, None, None, None, 'Text',None, 'The minimum version of the file.',),
(u'TextStyle',u'TextStyle',u'N',None, None, None, None, u'Identifier',None, u'Name of the style. The primary key of this table. This name is embedded in the texts to indicate a style change.',), ('TextStyle','TextStyle','N',None, None, None, None, 'Identifier',None, 'Name of the style. The primary key of this table. This name is embedded in the texts to indicate a style change.',),
(u'TextStyle',u'Color',u'Y',0,16777215,None, None, None, None, u'A long integer indicating the color of the string in the RGB format (Red, Green, Blue each 0-255, RGB = R + 256*G + 256^2*B).',), ('TextStyle','Color','Y',0,16777215,None, None, None, None, 'A long integer indicating the color of the string in the RGB format (Red, Green, Blue each 0-255, RGB = R + 256*G + 256^2*B).',),
(u'TextStyle',u'FaceName',u'N',None, None, None, None, u'Text',None, u'A string indicating the name of the font used. Required. The string must be at most 31 characters long.',), ('TextStyle','FaceName','N',None, None, None, None, 'Text',None, 'A string indicating the name of the font used. Required. The string must be at most 31 characters long.',),
(u'TextStyle',u'Size',u'N',0,32767,None, None, None, None, u'The size of the font used. This size is given in our units (1/12 of the system font height). Assuming that the system font is set to 12 point size, this is equivalent to the point size.',), ('TextStyle','Size','N',0,32767,None, None, None, None, 'The size of the font used. This size is given in our units (1/12 of the system font height). Assuming that the system font is set to 12 point size, this is equivalent to the point size.',),
(u'TextStyle',u'StyleBits',u'Y',0,15,None, None, None, None, u'A combination of style bits.',), ('TextStyle','StyleBits','Y',0,15,None, None, None, None, 'A combination of style bits.',),
(u'TypeLib',u'Description',u'Y',None, None, None, None, u'Text',None, None, ), ('TypeLib','Description','Y',None, None, None, None, 'Text',None, None, ),
(u'TypeLib',u'Feature_',u'N',None, None, u'Feature',1,u'Identifier',None, u'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the type library to be operational.',), ('TypeLib','Feature_','N',None, None, 'Feature',1,'Identifier',None, 'Required foreign key into the Feature Table, specifying the feature to validate or install in order for the type library to be operational.',),
(u'TypeLib',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',), ('TypeLib','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',),
(u'TypeLib',u'Directory_',u'Y',None, None, u'Directory',1,u'Identifier',None, u'Optional. The foreign key into the Directory table denoting the path to the help file for the type library.',), ('TypeLib','Directory_','Y',None, None, 'Directory',1,'Identifier',None, 'Optional. The foreign key into the Directory table denoting the path to the help file for the type library.',),
(u'TypeLib',u'Language',u'N',0,32767,None, None, None, None, u'The language of the library.',), ('TypeLib','Language','N',0,32767,None, None, None, None, 'The language of the library.',),
(u'TypeLib',u'Version',u'Y',0,16777215,None, None, None, None, u'The version of the library. The minor version is in the lower 8 bits of the integer. The major version is in the next 16 bits. ',), ('TypeLib','Version','Y',0,16777215,None, None, None, None, 'The version of the library. The minor version is in the lower 8 bits of the integer. The major version is in the next 16 bits. ',),
(u'TypeLib',u'Cost',u'Y',0,2147483647,None, None, None, None, u'The cost associated with the registration of the typelib. This column is currently optional.',), ('TypeLib','Cost','Y',0,2147483647,None, None, None, None, 'The cost associated with the registration of the typelib. This column is currently optional.',),
(u'TypeLib',u'LibID',u'N',None, None, None, None, u'Guid',None, u'The GUID that represents the library.',), ('TypeLib','LibID','N',None, None, None, None, 'Guid',None, 'The GUID that represents the library.',),
(u'UIText',u'Text',u'Y',None, None, None, None, u'Text',None, u'The localized version of the string.',), ('UIText','Text','Y',None, None, None, None, 'Text',None, 'The localized version of the string.',),
(u'UIText',u'Key',u'N',None, None, None, None, u'Identifier',None, u'A unique key that identifies the particular string.',), ('UIText','Key','N',None, None, None, None, 'Identifier',None, 'A unique key that identifies the particular string.',),
(u'Upgrade',u'Attributes',u'N',0,2147483647,None, None, None, None, u'The attributes of this product set.',), ('Upgrade','Attributes','N',0,2147483647,None, None, None, None, 'The attributes of this product set.',),
(u'Upgrade',u'Language',u'Y',None, None, None, None, u'Language',None, u'A comma-separated list of languages for either products in this set or products not in this set.',), ('Upgrade','Language','Y',None, None, None, None, 'Language',None, 'A comma-separated list of languages for either products in this set or products not in this set.',),
(u'Upgrade',u'ActionProperty',u'N',None, None, None, None, u'UpperCase',None, u'The property to set when a product in this set is found.',), ('Upgrade','ActionProperty','N',None, None, None, None, 'UpperCase',None, 'The property to set when a product in this set is found.',),
(u'Upgrade',u'Remove',u'Y',None, None, None, None, u'Formatted',None, u'The list of features to remove when uninstalling a product from this set. The default is "ALL".',), ('Upgrade','Remove','Y',None, None, None, None, 'Formatted',None, 'The list of features to remove when uninstalling a product from this set. The default is "ALL".',),
(u'Upgrade',u'UpgradeCode',u'N',None, None, None, None, u'Guid',None, u'The UpgradeCode GUID belonging to the products in this set.',), ('Upgrade','UpgradeCode','N',None, None, None, None, 'Guid',None, 'The UpgradeCode GUID belonging to the products in this set.',),
(u'Upgrade',u'VersionMax',u'Y',None, None, None, None, u'Text',None, u'The maximum ProductVersion of the products in this set. The set may or may not include products with this particular version.',), ('Upgrade','VersionMax','Y',None, None, None, None, 'Text',None, 'The maximum ProductVersion of the products in this set. The set may or may not include products with this particular version.',),
(u'Upgrade',u'VersionMin',u'Y',None, None, None, None, u'Text',None, u'The minimum ProductVersion of the products in this set. The set may or may not include products with this particular version.',), ('Upgrade','VersionMin','Y',None, None, None, None, 'Text',None, 'The minimum ProductVersion of the products in this set. The set may or may not include products with this particular version.',),
(u'Verb',u'Sequence',u'Y',0,32767,None, None, None, None, u'Order within the verbs for a particular extension. Also used simply to specify the default verb.',), ('Verb','Sequence','Y',0,32767,None, None, None, None, 'Order within the verbs for a particular extension. Also used simply to specify the default verb.',),
(u'Verb',u'Argument',u'Y',None, None, None, None, u'Formatted',None, u'Optional value for the command arguments.',), ('Verb','Argument','Y',None, None, None, None, 'Formatted',None, 'Optional value for the command arguments.',),
(u'Verb',u'Extension_',u'N',None, None, u'Extension',1,u'Text',None, u'The extension associated with the table row.',), ('Verb','Extension_','N',None, None, 'Extension',1,'Text',None, 'The extension associated with the table row.',),
(u'Verb',u'Verb',u'N',None, None, None, None, u'Text',None, u'The verb for the command.',), ('Verb','Verb','N',None, None, None, None, 'Text',None, 'The verb for the command.',),
(u'Verb',u'Command',u'Y',None, None, None, None, u'Formatted',None, u'The command text.',), ('Verb','Command','Y',None, None, None, None, 'Formatted',None, 'The command text.',),
] ]

View file

@ -1,126 +1,126 @@
AdminExecuteSequence = [ AdminExecuteSequence = [
(u'InstallInitialize', None, 1500), ('InstallInitialize', None, 1500),
(u'InstallFinalize', None, 6600), ('InstallFinalize', None, 6600),
(u'InstallFiles', None, 4000), ('InstallFiles', None, 4000),
(u'InstallAdminPackage', None, 3900), ('InstallAdminPackage', None, 3900),
(u'FileCost', None, 900), ('FileCost', None, 900),
(u'CostInitialize', None, 800), ('CostInitialize', None, 800),
(u'CostFinalize', None, 1000), ('CostFinalize', None, 1000),
(u'InstallValidate', None, 1400), ('InstallValidate', None, 1400),
] ]
AdminUISequence = [ AdminUISequence = [
(u'FileCost', None, 900), ('FileCost', None, 900),
(u'CostInitialize', None, 800), ('CostInitialize', None, 800),
(u'CostFinalize', None, 1000), ('CostFinalize', None, 1000),
(u'ExecuteAction', None, 1300), ('ExecuteAction', None, 1300),
(u'ExitDialog', None, -1), ('ExitDialog', None, -1),
(u'FatalError', None, -3), ('FatalError', None, -3),
(u'UserExit', None, -2), ('UserExit', None, -2),
] ]
AdvtExecuteSequence = [ AdvtExecuteSequence = [
(u'InstallInitialize', None, 1500), ('InstallInitialize', None, 1500),
(u'InstallFinalize', None, 6600), ('InstallFinalize', None, 6600),
(u'CostInitialize', None, 800), ('CostInitialize', None, 800),
(u'CostFinalize', None, 1000), ('CostFinalize', None, 1000),
(u'InstallValidate', None, 1400), ('InstallValidate', None, 1400),
(u'CreateShortcuts', None, 4500), ('CreateShortcuts', None, 4500),
(u'MsiPublishAssemblies', None, 6250), ('MsiPublishAssemblies', None, 6250),
(u'PublishComponents', None, 6200), ('PublishComponents', None, 6200),
(u'PublishFeatures', None, 6300), ('PublishFeatures', None, 6300),
(u'PublishProduct', None, 6400), ('PublishProduct', None, 6400),
(u'RegisterClassInfo', None, 4600), ('RegisterClassInfo', None, 4600),
(u'RegisterExtensionInfo', None, 4700), ('RegisterExtensionInfo', None, 4700),
(u'RegisterMIMEInfo', None, 4900), ('RegisterMIMEInfo', None, 4900),
(u'RegisterProgIdInfo', None, 4800), ('RegisterProgIdInfo', None, 4800),
] ]
InstallExecuteSequence = [ InstallExecuteSequence = [
(u'InstallInitialize', None, 1500), ('InstallInitialize', None, 1500),
(u'InstallFinalize', None, 6600), ('InstallFinalize', None, 6600),
(u'InstallFiles', None, 4000), ('InstallFiles', None, 4000),
(u'FileCost', None, 900), ('FileCost', None, 900),
(u'CostInitialize', None, 800), ('CostInitialize', None, 800),
(u'CostFinalize', None, 1000), ('CostFinalize', None, 1000),
(u'InstallValidate', None, 1400), ('InstallValidate', None, 1400),
(u'CreateShortcuts', None, 4500), ('CreateShortcuts', None, 4500),
(u'MsiPublishAssemblies', None, 6250), ('MsiPublishAssemblies', None, 6250),
(u'PublishComponents', None, 6200), ('PublishComponents', None, 6200),
(u'PublishFeatures', None, 6300), ('PublishFeatures', None, 6300),
(u'PublishProduct', None, 6400), ('PublishProduct', None, 6400),
(u'RegisterClassInfo', None, 4600), ('RegisterClassInfo', None, 4600),
(u'RegisterExtensionInfo', None, 4700), ('RegisterExtensionInfo', None, 4700),
(u'RegisterMIMEInfo', None, 4900), ('RegisterMIMEInfo', None, 4900),
(u'RegisterProgIdInfo', None, 4800), ('RegisterProgIdInfo', None, 4800),
(u'AllocateRegistrySpace', u'NOT Installed', 1550), ('AllocateRegistrySpace', 'NOT Installed', 1550),
(u'AppSearch', None, 400), ('AppSearch', None, 400),
(u'BindImage', None, 4300), ('BindImage', None, 4300),
(u'CCPSearch', u'NOT Installed', 500), ('CCPSearch', 'NOT Installed', 500),
(u'CreateFolders', None, 3700), ('CreateFolders', None, 3700),
(u'DeleteServices', u'VersionNT', 2000), ('DeleteServices', 'VersionNT', 2000),
(u'DuplicateFiles', None, 4210), ('DuplicateFiles', None, 4210),
(u'FindRelatedProducts', None, 200), ('FindRelatedProducts', None, 200),
(u'InstallODBC', None, 5400), ('InstallODBC', None, 5400),
(u'InstallServices', u'VersionNT', 5800), ('InstallServices', 'VersionNT', 5800),
(u'IsolateComponents', None, 950), ('IsolateComponents', None, 950),
(u'LaunchConditions', None, 100), ('LaunchConditions', None, 100),
(u'MigrateFeatureStates', None, 1200), ('MigrateFeatureStates', None, 1200),
(u'MoveFiles', None, 3800), ('MoveFiles', None, 3800),
(u'PatchFiles', None, 4090), ('PatchFiles', None, 4090),
(u'ProcessComponents', None, 1600), ('ProcessComponents', None, 1600),
(u'RegisterComPlus', None, 5700), ('RegisterComPlus', None, 5700),
(u'RegisterFonts', None, 5300), ('RegisterFonts', None, 5300),
(u'RegisterProduct', None, 6100), ('RegisterProduct', None, 6100),
(u'RegisterTypeLibraries', None, 5500), ('RegisterTypeLibraries', None, 5500),
(u'RegisterUser', None, 6000), ('RegisterUser', None, 6000),
(u'RemoveDuplicateFiles', None, 3400), ('RemoveDuplicateFiles', None, 3400),
(u'RemoveEnvironmentStrings', None, 3300), ('RemoveEnvironmentStrings', None, 3300),
(u'RemoveExistingProducts', None, 6700), ('RemoveExistingProducts', None, 6700),
(u'RemoveFiles', None, 3500), ('RemoveFiles', None, 3500),
(u'RemoveFolders', None, 3600), ('RemoveFolders', None, 3600),
(u'RemoveIniValues', None, 3100), ('RemoveIniValues', None, 3100),
(u'RemoveODBC', None, 2400), ('RemoveODBC', None, 2400),
(u'RemoveRegistryValues', None, 2600), ('RemoveRegistryValues', None, 2600),
(u'RemoveShortcuts', None, 3200), ('RemoveShortcuts', None, 3200),
(u'RMCCPSearch', u'NOT Installed', 600), ('RMCCPSearch', 'NOT Installed', 600),
(u'SelfRegModules', None, 5600), ('SelfRegModules', None, 5600),
(u'SelfUnregModules', None, 2200), ('SelfUnregModules', None, 2200),
(u'SetODBCFolders', None, 1100), ('SetODBCFolders', None, 1100),
(u'StartServices', u'VersionNT', 5900), ('StartServices', 'VersionNT', 5900),
(u'StopServices', u'VersionNT', 1900), ('StopServices', 'VersionNT', 1900),
(u'MsiUnpublishAssemblies', None, 1750), ('MsiUnpublishAssemblies', None, 1750),
(u'UnpublishComponents', None, 1700), ('UnpublishComponents', None, 1700),
(u'UnpublishFeatures', None, 1800), ('UnpublishFeatures', None, 1800),
(u'UnregisterClassInfo', None, 2700), ('UnregisterClassInfo', None, 2700),
(u'UnregisterComPlus', None, 2100), ('UnregisterComPlus', None, 2100),
(u'UnregisterExtensionInfo', None, 2800), ('UnregisterExtensionInfo', None, 2800),
(u'UnregisterFonts', None, 2500), ('UnregisterFonts', None, 2500),
(u'UnregisterMIMEInfo', None, 3000), ('UnregisterMIMEInfo', None, 3000),
(u'UnregisterProgIdInfo', None, 2900), ('UnregisterProgIdInfo', None, 2900),
(u'UnregisterTypeLibraries', None, 2300), ('UnregisterTypeLibraries', None, 2300),
(u'ValidateProductID', None, 700), ('ValidateProductID', None, 700),
(u'WriteEnvironmentStrings', None, 5200), ('WriteEnvironmentStrings', None, 5200),
(u'WriteIniValues', None, 5100), ('WriteIniValues', None, 5100),
(u'WriteRegistryValues', None, 5000), ('WriteRegistryValues', None, 5000),
] ]
InstallUISequence = [ InstallUISequence = [
(u'FileCost', None, 900), ('FileCost', None, 900),
(u'CostInitialize', None, 800), ('CostInitialize', None, 800),
(u'CostFinalize', None, 1000), ('CostFinalize', None, 1000),
(u'ExecuteAction', None, 1300), ('ExecuteAction', None, 1300),
(u'ExitDialog', None, -1), ('ExitDialog', None, -1),
(u'FatalError', None, -3), ('FatalError', None, -3),
(u'UserExit', None, -2), ('UserExit', None, -2),
(u'AppSearch', None, 400), ('AppSearch', None, 400),
(u'CCPSearch', u'NOT Installed', 500), ('CCPSearch', 'NOT Installed', 500),
(u'FindRelatedProducts', None, 200), ('FindRelatedProducts', None, 200),
(u'IsolateComponents', None, 950), ('IsolateComponents', None, 950),
(u'LaunchConditions', None, 100), ('LaunchConditions', None, 100),
(u'MigrateFeatureStates', None, 1200), ('MigrateFeatureStates', None, 1200),
(u'RMCCPSearch', u'NOT Installed', 600), ('RMCCPSearch', 'NOT Installed', 600),
(u'ValidateProductID', None, 700), ('ValidateProductID', None, 700),
] ]
tables=['AdminExecuteSequence', 'AdminUISequence', 'AdvtExecuteSequence', 'InstallExecuteSequence', 'InstallUISequence'] tables=['AdminExecuteSequence', 'AdminUISequence', 'AdvtExecuteSequence', 'InstallExecuteSequence', 'InstallUISequence']

File diff suppressed because it is too large Load diff

View file

@ -537,9 +537,9 @@ class Application:
if not options: if not options:
print(' None') print(' None')
return return
long = filter(lambda x: x.prefix == '--', options) int = [x for x in options if x.prefix == '--']
short = filter(lambda x: x.prefix == '-', options) short = [x for x in options if x.prefix == '-']
items = short + long items = short + int
for o in options: for o in options:
print(' ',o) print(' ',o)
print() print()

View file

@ -157,8 +157,8 @@ class ListSlicing(Test):
def calibrate(self): def calibrate(self):
n = range(100) n = list(range(100))
r = range(25) r = list(range(25))
for i in range(self.rounds): for i in range(self.rounds):
for j in r: for j in r:

View file

@ -17,7 +17,7 @@ class WithFinally(Test):
cm = self.ContextManager() cm = self.ContextManager()
for i in xrange(self.rounds): for i in range(self.rounds):
with cm: pass with cm: pass
with cm: pass with cm: pass
with cm: pass with cm: pass
@ -43,7 +43,7 @@ class WithFinally(Test):
cm = self.ContextManager() cm = self.ContextManager()
for i in xrange(self.rounds): for i in range(self.rounds):
pass pass
@ -65,7 +65,7 @@ class TryFinally(Test):
cm = self.ContextManager() cm = self.ContextManager()
for i in xrange(self.rounds): for i in range(self.rounds):
cm.__enter__() cm.__enter__()
try: pass try: pass
finally: cm.__exit__() finally: cm.__exit__()
@ -150,7 +150,7 @@ class TryFinally(Test):
cm = self.ContextManager() cm = self.ContextManager()
for i in xrange(self.rounds): for i in range(self.rounds):
pass pass
@ -171,12 +171,12 @@ class WithRaiseExcept(Test):
error = ValueError error = ValueError
be = self.BlockExceptions() be = self.BlockExceptions()
for i in xrange(self.rounds): for i in range(self.rounds):
with be: raise error with be: raise error
with be: raise error with be: raise error
with be: raise error,"something" with be: raise error("something")
with be: raise error,"something" with be: raise error("something")
with be: raise error,"something" with be: raise error("something")
with be: raise error("something") with be: raise error("something")
with be: raise error("something") with be: raise error("something")
with be: raise error("something") with be: raise error("something")
@ -186,5 +186,5 @@ class WithRaiseExcept(Test):
error = ValueError error = ValueError
be = self.BlockExceptions() be = self.BlockExceptions()
for i in xrange(self.rounds): for i in range(self.rounds):
pass pass

View file

@ -23,8 +23,7 @@ def clockres(timer):
break break
for i in spin_loops: for i in spin_loops:
d[timer()] = 1 d[timer()] = 1
values = d.keys() values = sorted(d.keys())
values.sort()
min_diff = TEST_TIME min_diff = TEST_TIME
for i in range(len(values) - 1): for i in range(len(values) - 1):
diff = values[i+1] - values[i] diff = values[i+1] - values[i]

View file

@ -107,15 +107,13 @@ def get_machine_details():
buildno, builddate = platform.python_build() buildno, builddate = platform.python_build()
python = platform.python_version() python = platform.python_version()
try: try:
unichr(100000) chr(100000)
except ValueError: except ValueError:
# UCS2 build (standard) # UCS2 build (standard)
unicode = 'UCS2' unitype = 'UCS2'
except NameError:
unicode = None
else: else:
# UCS4 build (most recent Linux distros) # UCS4 build (most recent Linux distros)
unicode = 'UCS4' unitype = 'UCS4'
bits, linkage = platform.architecture() bits, linkage = platform.architecture()
return { return {
'platform': platform.platform(), 'platform': platform.platform(),
@ -127,7 +125,7 @@ def get_machine_details():
'compiler': platform.python_compiler(), 'compiler': platform.python_compiler(),
'buildno': buildno, 'buildno': buildno,
'builddate': builddate, 'builddate': builddate,
'unicode': unicode, 'unicode': unitype,
'bits': bits, 'bits': bits,
} }

View file

@ -66,7 +66,7 @@ class ColorDB:
# version the `name', or the CapitalizedVersion, etc. # version the `name', or the CapitalizedVersion, etc.
key = (red, green, blue) key = (red, green, blue)
foundname, aliases = self.__byrgb.get(key, (name, [])) foundname, aliases = self.__byrgb.get(key, (name, []))
if foundname <> name and foundname not in aliases: if foundname != name and foundname not in aliases:
aliases.append(name) aliases.append(name)
self.__byrgb[key] = (foundname, aliases) self.__byrgb[key] = (foundname, aliases)
# add to byname lookup # add to byname lookup
@ -122,7 +122,7 @@ class ColorDB:
self.__allnames = [] self.__allnames = []
for name, aliases in self.__byrgb.values(): for name, aliases in self.__byrgb.values():
self.__allnames.append(name) self.__allnames.append(name)
self.__allnames.sort(key=unicode.lower) self.__allnames.sort(key=str.lower)
return self.__allnames return self.__allnames
def aliases_of(self, red, green, blue): def aliases_of(self, red, green, blue):
@ -209,7 +209,7 @@ def rrggbb_to_triplet(color):
"""Converts a #rrggbb color to the tuple (red, green, blue).""" """Converts a #rrggbb color to the tuple (red, green, blue)."""
rgbtuple = _namedict.get(color) rgbtuple = _namedict.get(color)
if rgbtuple is None: if rgbtuple is None:
if color[0] <> '#': if color[0] != '#':
raise BadColor(color) raise BadColor(color)
red = color[1:3] red = color[1:3]
green = color[3:5] green = color[3:5]
@ -232,7 +232,7 @@ def triplet_to_rrggbb(rgbtuple):
_maxtuple = (256.0,) * 3 _maxtuple = (256.0,) * 3
def triplet_to_fractional_rgb(rgbtuple): def triplet_to_fractional_rgb(rgbtuple):
return map(operator.__div__, rgbtuple, _maxtuple) return list(map(operator.__div__, rgbtuple, _maxtuple))
def triplet_to_brightness(rgbtuple): def triplet_to_brightness(rgbtuple):

View file

@ -62,32 +62,32 @@ def constant(numchips):
# red variations, green+blue = cyan constant # red variations, green+blue = cyan constant
def constant_red_generator(numchips, red, green, blue): def constant_red_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, [red] * numchips, seq, seq) return list(map(None, [red] * numchips, seq, seq))
# green variations, red+blue = magenta constant # green variations, red+blue = magenta constant
def constant_green_generator(numchips, red, green, blue): def constant_green_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, seq, [green] * numchips, seq) return list(map(None, seq, [green] * numchips, seq))
# blue variations, red+green = yellow constant # blue variations, red+green = yellow constant
def constant_blue_generator(numchips, red, green, blue): def constant_blue_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, seq, seq, [blue] * numchips) return list(map(None, seq, seq, [blue] * numchips))
# red variations, green+blue = cyan constant # red variations, green+blue = cyan constant
def constant_cyan_generator(numchips, red, green, blue): def constant_cyan_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, seq, [green] * numchips, [blue] * numchips) return list(map(None, seq, [green] * numchips, [blue] * numchips))
# green variations, red+blue = magenta constant # green variations, red+blue = magenta constant
def constant_magenta_generator(numchips, red, green, blue): def constant_magenta_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, [red] * numchips, seq, [blue] * numchips) return list(map(None, [red] * numchips, seq, [blue] * numchips))
# blue variations, red+green = yellow constant # blue variations, red+green = yellow constant
def constant_yellow_generator(numchips, red, green, blue): def constant_yellow_generator(numchips, red, green, blue):
seq = constant(numchips) seq = constant(numchips)
return map(None, [red] * numchips, [green] * numchips, seq) return list(map(None, [red] * numchips, [green] * numchips, seq))

View file

@ -28,7 +28,7 @@ class Chooser:
dbfile = options.get('databasefile', self.__databasefile) dbfile = options.get('databasefile', self.__databasefile)
# load the database file # load the database file
colordb = None colordb = None
if dbfile <> self.__databasefile: if dbfile != self.__databasefile:
colordb = ColorDB.get_colordb(dbfile) colordb = ColorDB.get_colordb(dbfile)
if not self.__master: if not self.__master:
from Tkinter import Tk from Tkinter import Tk

View file

@ -15,7 +15,7 @@ def compare_codecs(encoding1, encoding2):
mismatch = 0 mismatch = 0
# Check encoding # Check encoding
for i in range(sys.maxunicode): for i in range(sys.maxunicode):
u = unichr(i) u = chr(i)
try: try:
c1 = u.encode(encoding1) c1 = u.encode(encoding1)
except UnicodeError as reason: except UnicodeError as reason:
@ -34,11 +34,11 @@ def compare_codecs(encoding1, encoding2):
try: try:
u1 = c.decode(encoding1) u1 = c.decode(encoding1)
except UnicodeError: except UnicodeError:
u1 = u'<undefined>' u1 = '<undefined>'
try: try:
u2 = c.decode(encoding2) u2 = c.decode(encoding2)
except UnicodeError: except UnicodeError:
u2 = u'<undefined>' u2 = '<undefined>'
if u1 != u2: if u1 != u2:
print(' * decoding mismatch for 0x%04X: %-14r != %r' % \ print(' * decoding mismatch for 0x%04X: %-14r != %r' % \
(i, u1, u2)) (i, u1, u2))

View file

@ -55,7 +55,7 @@ def getregentry():
""") """)
def gencodecs(prefix): def gencodecs(prefix):
for loc, encodings in codecs.iteritems(): for loc, encodings in codecs.items():
for enc in encodings: for enc in encodings:
code = TEMPLATE.substitute(ENCODING=enc.upper(), code = TEMPLATE.substitute(ENCODING=enc.upper(),
encoding=enc.lower(), encoding=enc.lower(),

View file

@ -32,7 +32,7 @@ import re, os, marshal, codecs
MAX_TABLE_SIZE = 8192 MAX_TABLE_SIZE = 8192
# Standard undefined Unicode code point # Standard undefined Unicode code point
UNI_UNDEFINED = unichr(0xFFFE) UNI_UNDEFINED = chr(0xFFFE)
mapRE = re.compile('((?:0x[0-9a-fA-F]+\+?)+)' mapRE = re.compile('((?:0x[0-9a-fA-F]+\+?)+)'
'\s+' '\s+'
@ -62,7 +62,7 @@ def parsecodes(codes,
l[i] = int(l[i],16) l[i] = int(l[i],16)
except ValueError: except ValueError:
l[i] = None l[i] = None
l = filter(lambda x: x is not None, l) l = [x for x in l if x is not None]
if len(l) == 1: if len(l) == 1:
return l[0] return l[0]
else: else:
@ -75,12 +75,12 @@ def readmap(filename):
f.close() f.close()
enc2uni = {} enc2uni = {}
identity = [] identity = []
unmapped = range(256) unmapped = list(range(256))
# UTC mapping tables per convention don't include the identity # UTC mapping tables per convention don't include the identity
# mappings for code points 0x00 - 0x1F and 0x7F, unless these are # mappings for code points 0x00 - 0x1F and 0x7F, unless these are
# explicitly mapped to different characters or undefined # explicitly mapped to different characters or undefined
for i in range(32) + [127]: for i in list(range(32)) + [127]:
identity.append(i) identity.append(i)
unmapped.remove(i) unmapped.remove(i)
enc2uni[i] = (i, 'CONTROL CHARACTER') enc2uni[i] = (i, 'CONTROL CHARACTER')
@ -138,7 +138,7 @@ def python_mapdef_code(varname, map, comments=1, precisions=(2, 4)):
l = [] l = []
append = l.append append = l.append
if map.has_key("IDENTITY"): if "IDENTITY" in map:
append("%s = codecs.make_identity_dict(range(%d))" % append("%s = codecs.make_identity_dict(range(%d))" %
(varname, map["IDENTITY"])) (varname, map["IDENTITY"]))
append("%s.update({" % varname) append("%s.update({" % varname)
@ -150,8 +150,7 @@ def python_mapdef_code(varname, map, comments=1, precisions=(2, 4)):
splits = 0 splits = 0
identity = 0 identity = 0
mappings = map.items() mappings = sorted(map.items())
mappings.sort()
i = 0 i = 0
key_precision, value_precision = precisions key_precision, value_precision = precisions
for mapkey, mapvalue in mappings: for mapkey, mapvalue in mappings:
@ -199,11 +198,10 @@ def python_tabledef_code(varname, map, comments=1, key_precision=2):
append('%s = (' % varname) append('%s = (' % varname)
# Analyze map and create table dict # Analyze map and create table dict
mappings = map.items() mappings = sorted(map.items())
mappings.sort()
table = {} table = {}
maxkey = 0 maxkey = 0
if map.has_key('IDENTITY'): if 'IDENTITY' in map:
for key in range(256): for key in range(256):
table[key] = (key, '') table[key] = (key, '')
maxkey = 255 maxkey = 255
@ -237,7 +235,7 @@ def python_tabledef_code(varname, map, comments=1, key_precision=2):
# 1-n mappings not supported # 1-n mappings not supported
return None return None
else: else:
mapchar = unichr(mapvalue) mapchar = chr(mapvalue)
if mapcomment and comments: if mapcomment and comments:
append(' %r\t# %s -> %s' % (mapchar, append(' %r\t# %s -> %s' % (mapchar,
hexrepr(key, key_precision), hexrepr(key, key_precision),

View file

@ -71,7 +71,7 @@ def maketables(trace=0):
EASTASIAN_WIDTH % version, EASTASIAN_WIDTH % version,
DERIVED_CORE_PROPERTIES % version) DERIVED_CORE_PROPERTIES % version)
print(len(list(filter(None, unicode.table))), "characters") print(len(filter(None, unicode.table)), "characters")
for version in old_versions: for version in old_versions:
print("--- Reading", UNICODE_DATA % ("-"+version), "...") print("--- Reading", UNICODE_DATA % ("-"+version), "...")
@ -79,7 +79,7 @@ def maketables(trace=0):
COMPOSITION_EXCLUSIONS % ("-"+version), COMPOSITION_EXCLUSIONS % ("-"+version),
EASTASIAN_WIDTH % ("-"+version), EASTASIAN_WIDTH % ("-"+version),
DERIVED_CORE_PROPERTIES % ("-"+version)) DERIVED_CORE_PROPERTIES % ("-"+version))
print(len(list(filter(None, old_unicode.table))), "characters") print(len(filter(None, old_unicode.table)), "characters")
merge_old_version(version, unicode, old_unicode) merge_old_version(version, unicode, old_unicode)
makeunicodename(unicode, trace) makeunicodename(unicode, trace)
@ -152,8 +152,7 @@ def makeunicodedata(unicode, trace):
prefix = i prefix = i
assert prefix < 256 assert prefix < 256
# content # content
decomp = [prefix + (len(decomp)<<8)] +\ decomp = [prefix + (len(decomp)<<8)] + [int(s, 16) for s in decomp]
list(map(lambda s: int(s, 16), decomp))
# Collect NFC pairs # Collect NFC pairs
if not prefix and len(decomp) == 3 and \ if not prefix and len(decomp) == 3 and \
char not in unicode.exclusions and \ char not in unicode.exclusions and \
@ -466,7 +465,7 @@ def makeunicodename(unicode, trace):
if name and name[0] != "<": if name and name[0] != "<":
names[char] = name + chr(0) names[char] = name + chr(0)
print(len(list(filter(lambda n: n is not None, names))), "distinct names") print(len(n for n in names if n is not None), "distinct names")
# collect unique words from names (note that we differ between # collect unique words from names (note that we differ between
# words inside a sentence, and words ending a sentence. the # words inside a sentence, and words ending a sentence. the
@ -740,7 +739,7 @@ class UnicodeData:
# public attributes # public attributes
self.filename = filename self.filename = filename
self.table = table self.table = table
self.chars = range(0x110000) # unicode 3.2 self.chars = list(range(0x110000)) # unicode 3.2
file = open(exclusions) file = open(exclusions)
self.exclusions = {} self.exclusions = {}
@ -763,7 +762,7 @@ class UnicodeData:
s = s.split()[0].split(';') s = s.split()[0].split(';')
if '..' in s[0]: if '..' in s[0]:
first, last = [int(c, 16) for c in s[0].split('..')] first, last = [int(c, 16) for c in s[0].split('..')]
chars = range(first, last+1) chars = list(range(first, last+1))
else: else:
chars = [int(s[0], 16)] chars = [int(s[0], 16)]
for char in chars: for char in chars:
@ -785,7 +784,7 @@ class UnicodeData:
p = p.strip() p = p.strip()
if ".." in r: if ".." in r:
first, last = [int(c, 16) for c in r.split('..')] first, last = [int(c, 16) for c in r.split('..')]
chars = range(first, last+1) chars = list(range(first, last+1))
else: else:
chars = [int(r, 16)] chars = [int(r, 16)]
for char in chars: for char in chars:
@ -796,7 +795,7 @@ class UnicodeData:
def uselatin1(self): def uselatin1(self):
# restrict character range to ISO Latin 1 # restrict character range to ISO Latin 1
self.chars = range(256) self.chars = list(range(256))
# hash table tools # hash table tools

View file

@ -5,12 +5,12 @@ if sys.maxunicode == 65535:
def gen_category(cats): def gen_category(cats):
for i in range(0, 0x110000): for i in range(0, 0x110000):
if unicodedata.category(unichr(i)) in cats: if unicodedata.category(chr(i)) in cats:
yield(i) yield(i)
def gen_bidirectional(cats): def gen_bidirectional(cats):
for i in range(0, 0x110000): for i in range(0, 0x110000):
if unicodedata.bidirectional(unichr(i)) in cats: if unicodedata.bidirectional(chr(i)) in cats:
yield(i) yield(i)
def compact_set(l): def compact_set(l):
@ -63,14 +63,14 @@ for l in data:
if m: if m:
if m.group(1) == "Start": if m.group(1) == "Start":
if curname: if curname:
raise "Double Start",(curname, l) raise RuntimeError("Double Start", (curname, l))
curname = m.group(2) curname = m.group(2)
table = {} table = {}
tables.append((curname, table)) tables.append((curname, table))
continue continue
else: else:
if not curname: if not curname:
raise "End without start", l raise RuntimeError("End without start", l)
curname = None curname = None
continue continue
if not curname: if not curname:
@ -87,7 +87,7 @@ for l in data:
try: try:
start, end = fields start, end = fields
except ValueError: except ValueError:
raise "Unpacking problem", l raise RuntimeError("Unpacking problem", l)
else: else:
start = end = fields[0] start = end = fields[0]
start = int(start, 16) start = int(start, 16)
@ -146,8 +146,7 @@ def in_table_a1(code):
name, table = tables[0] name, table = tables[0]
del tables[0] del tables[0]
assert name == "B.1" assert name == "B.1"
table = table.keys() table = sorted(table.keys())
table.sort()
print(""" print("""
b1_set = """ + compact_set(table) + """ b1_set = """ + compact_set(table) + """
def in_table_b1(code): def in_table_b1(code):
@ -177,8 +176,7 @@ for k,v in table_b2.items():
if map(ord, unichr(k).lower()) != v: if map(ord, unichr(k).lower()) != v:
b3_exceptions[k] = u"".join(map(unichr,v)) b3_exceptions[k] = u"".join(map(unichr,v))
b3 = b3_exceptions.items() b3 = sorted(b3_exceptions.items())
b3.sort()
print(""" print("""
b3_exceptions = {""") b3_exceptions = {""")
@ -207,7 +205,7 @@ def map_table_b3(code):
def map_table_b2(a): def map_table_b2(a):
al = map_table_b3(a) al = map_table_b3(a)
b = unicodedata.normalize("NFKC", al) b = unicodedata.normalize("NFKC", al)
bl = u"".join([map_table_b3(ch) for ch in b]) bl = "".join([map_table_b3(ch) for ch in b])
c = unicodedata.normalize("NFKC", bl) c = unicodedata.normalize("NFKC", bl)
if b != c: if b != c:
return c return c
@ -216,7 +214,7 @@ def map_table_b2(a):
specials = {} specials = {}
for k,v in table_b2.items(): for k,v in table_b2.items():
if map(ord, map_table_b2(unichr(k))) != v: if list(map(ord, map_table_b2(chr(k)))) != v:
specials[k] = v specials[k] = v
# B.3 should not add any additional special cases # B.3 should not add any additional special cases
@ -321,9 +319,9 @@ name, table = tables[0]
del tables[0] del tables[0]
assert name == "C.4" assert name == "C.4"
nonchar = set(range(0xFDD0,0xFDF0) + nonchar = set(range(0xFDD0,0xFDF0))
range(0xFFFE,0x110000,0x10000) + nonchar.update(range(0xFFFE,0x110000,0x10000))
range(0xFFFF,0x110000,0x10000)) nonchar.update(range(0xFFFF,0x110000,0x10000))
table = set(table.keys()) table = set(table.keys())
assert table == nonchar assert table == nonchar
@ -353,8 +351,7 @@ name, table = tables[0]
del tables[0] del tables[0]
assert name == "C.6" assert name == "C.6"
table = table.keys() table = sorted(table.keys())
table.sort()
print(""" print("""
c6_set = """ + compact_set(table) + """ c6_set = """ + compact_set(table) + """
@ -367,8 +364,7 @@ name, table = tables[0]
del tables[0] del tables[0]
assert name == "C.7" assert name == "C.7"
table = table.keys() table = sorted(table.keys())
table.sort()
print(""" print("""
c7_set = """ + compact_set(table) + """ c7_set = """ + compact_set(table) + """
@ -381,8 +377,7 @@ name, table = tables[0]
del tables[0] del tables[0]
assert name == "C.8" assert name == "C.8"
table = table.keys() table = sorted(table.keys())
table.sort()
print(""" print("""
c8_set = """ + compact_set(table) + """ c8_set = """ + compact_set(table) + """
@ -395,8 +390,7 @@ name, table = tables[0]
del tables[0] del tables[0]
assert name == "C.9" assert name == "C.9"
table = table.keys() table = sorted(table.keys())
table.sort()
print(""" print("""
c9_set = """ + compact_set(table) + """ c9_set = """ + compact_set(table) + """

View file

@ -257,20 +257,20 @@ class CheckerWindow(webchecker.Checker):
d = self.__details d = self.__details
d.clear() d.clear()
d.put("URL: %s\n" % self.format_url(url)) d.put("URL: %s\n" % self.format_url(url))
if self.bad.has_key(url): if url in self.bad:
d.put("Error: %s\n" % str(self.bad[url])) d.put("Error: %s\n" % str(self.bad[url]))
if url in self.roots: if url in self.roots:
d.put("Note: This is a root URL\n") d.put("Note: This is a root URL\n")
if self.done.has_key(url): if url in self.done:
d.put("Status: checked\n") d.put("Status: checked\n")
o = self.done[url] o = self.done[url]
elif self.todo.has_key(url): elif url in self.todo:
d.put("Status: to check\n") d.put("Status: to check\n")
o = self.todo[url] o = self.todo[url]
else: else:
d.put("Status: unknown (!)\n") d.put("Status: unknown (!)\n")
o = [] o = []
if (not url[1]) and self.errors.has_key(url[0]): if (not url[1]) and url[0] in self.errors:
d.put("Bad links from this page:\n") d.put("Bad links from this page:\n")
for triple in self.errors[url[0]]: for triple in self.errors[url[0]]:
link, rawlink, msg = triple link, rawlink, msg = triple
@ -298,9 +298,9 @@ class CheckerWindow(webchecker.Checker):
def newlink(self, url, origin): def newlink(self, url, origin):
webchecker.Checker.newlink(self, url, origin) webchecker.Checker.newlink(self, url, origin)
if self.done.has_key(url): if url in self.done:
self.__done.insert(url) self.__done.insert(url)
elif self.todo.has_key(url): elif url in self.todo:
self.__todo.insert(url) self.__todo.insert(url)
self.newstatus() self.newstatus()
@ -351,7 +351,7 @@ class ListPanel:
def selectedindices(self): def selectedindices(self):
l = self.list.curselection() l = self.list.curselection()
if not l: return [] if not l: return []
return map(int, l) return list(map(int, l))
def insert(self, url): def insert(self, url):
if url not in self.items: if url not in self.items:

View file

@ -265,7 +265,7 @@ class Checker:
self.reset() self.reset()
def setflags(self, **kw): def setflags(self, **kw):
for key in kw.keys(): for key in kw:
if key not in self.validflags: if key not in self.validflags:
raise NameError("invalid keyword argument: %s" % str(key)) raise NameError("invalid keyword argument: %s" % str(key))
for key, value in kw.items(): for key, value in kw.items():
@ -307,7 +307,7 @@ class Checker:
(self.roots, self.todo, self.done, self.bad, self.round) = state (self.roots, self.todo, self.done, self.bad, self.round) = state
for root in self.roots: for root in self.roots:
self.addrobot(root) self.addrobot(root)
for url in self.bad.keys(): for url in self.bad:
self.markerror(url) self.markerror(url)
def addroot(self, root, add_to_do = 1): def addroot(self, root, add_to_do = 1):
@ -327,7 +327,7 @@ class Checker:
def addrobot(self, root): def addrobot(self, root):
root = urlparse.urljoin(root, "/") root = urlparse.urljoin(root, "/")
if self.robots.has_key(root): return if root in self.robots: return
url = urlparse.urljoin(root, "/robots.txt") url = urlparse.urljoin(root, "/robots.txt")
self.robots[root] = rp = robotparser.RobotFileParser() self.robots[root] = rp = robotparser.RobotFileParser()
self.note(2, "Parsing %s", url) self.note(2, "Parsing %s", url)
@ -342,8 +342,7 @@ class Checker:
while self.todo: while self.todo:
self.round = self.round + 1 self.round = self.round + 1
self.note(0, "\nRound %d (%s)\n", self.round, self.status()) self.note(0, "\nRound %d (%s)\n", self.round, self.status())
urls = self.todo.keys() urls = sorted(self.todo.keys())
urls.sort()
del urls[self.roundsize:] del urls[self.roundsize:]
for url in urls: for url in urls:
self.dopage(url) self.dopage(url)
@ -366,8 +365,7 @@ class Checker:
self.message("\nNo errors") self.message("\nNo errors")
return return
self.message("\nError Report:") self.message("\nError Report:")
sources = self.errors.keys() sources = sorted(self.errors.keys())
sources.sort()
for source in sources: for source in sources:
triples = self.errors[source] triples = self.errors[source]
self.message("") self.message("")
@ -432,7 +430,7 @@ class Checker:
self.markdone(url_pair) self.markdone(url_pair)
def newlink(self, url, origin): def newlink(self, url, origin):
if self.done.has_key(url): if url in self.done:
self.newdonelink(url, origin) self.newdonelink(url, origin)
else: else:
self.newtodolink(url, origin) self.newtodolink(url, origin)
@ -446,7 +444,7 @@ class Checker:
self.note(3, " Done link %s", self.format_url(url)) self.note(3, " Done link %s", self.format_url(url))
# Make sure that if it's bad, that the origin gets added. # Make sure that if it's bad, that the origin gets added.
if self.bad.has_key(url): if url in self.bad:
source, rawlink = origin source, rawlink = origin
triple = url, rawlink, self.bad[url] triple = url, rawlink, self.bad[url]
self.seterror(source, triple) self.seterror(source, triple)
@ -454,7 +452,7 @@ class Checker:
def newtodolink(self, url, origin): def newtodolink(self, url, origin):
# Call self.format_url(), since the URL here # Call self.format_url(), since the URL here
# is now a (URL, fragment) pair. # is now a (URL, fragment) pair.
if self.todo.has_key(url): if url in self.todo:
if origin not in self.todo[url]: if origin not in self.todo[url]:
self.todo[url].append(origin) self.todo[url].append(origin)
self.note(3, " Seen todo link %s", self.format_url(url)) self.note(3, " Seen todo link %s", self.format_url(url))
@ -486,7 +484,7 @@ class Checker:
# Incoming argument name is a (URL, fragment) pair. # Incoming argument name is a (URL, fragment) pair.
# The page may have been cached in the name_table variable. # The page may have been cached in the name_table variable.
url, fragment = url_pair url, fragment = url_pair
if self.name_table.has_key(url): if url in self.name_table:
return self.name_table[url] return self.name_table[url]
scheme, path = urllib.splittype(url) scheme, path = urllib.splittype(url)
@ -550,7 +548,7 @@ class Checker:
return None return None
def checkforhtml(self, info, url): def checkforhtml(self, info, url):
if info.has_key('content-type'): if 'content-type' in info:
ctype = cgi.parse_header(info['content-type'])[0].lower() ctype = cgi.parse_header(info['content-type'])[0].lower()
if ';' in ctype: if ';' in ctype:
# handle content-type: text/html; charset=iso8859-1 : # handle content-type: text/html; charset=iso8859-1 :
@ -566,13 +564,13 @@ class Checker:
return 0 return 0
def setgood(self, url): def setgood(self, url):
if self.bad.has_key(url): if url in self.bad:
del self.bad[url] del self.bad[url]
self.changed = 1 self.changed = 1
self.note(0, "(Clear previously seen error)") self.note(0, "(Clear previously seen error)")
def setbad(self, url, msg): def setbad(self, url, msg):
if self.bad.has_key(url) and self.bad[url] == msg: if url in self.bad and self.bad[url] == msg:
self.note(0, "(Seen this error before)") self.note(0, "(Seen this error before)")
return return
self.bad[url] = msg self.bad[url] = msg
@ -882,7 +880,7 @@ class MyHTMLParser(sgmllib.SGMLParser):
self.check_name_id(attributes) self.check_name_id(attributes)
def getlinks(self): def getlinks(self):
return self.links.keys() return list(self.links.keys())
def getbase(self): def getbase(self):
return self.base return self.base