Fix three PyChecker-detected gotchas.
[python/dscho.git] / Mac / Lib / lib-scripting / Table_Suite.py
blobff1dbf7514b1d51a951e606677a7554ea08eb7fa
1 """Suite Table Suite: Classes for manipulating tables
2 Level 1, version 1
4 Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'tbls'
13 class Table_Suite:
15 pass
18 class cell(aetools.ComponentItem):
19 """cell - A cell"""
20 want = 'ccel'
21 class _class(aetools.NProperty):
22 """class - the class"""
23 which = 'pcls'
24 want = 'type'
25 class formula(aetools.NProperty):
26 """formula - the formula of the cell"""
27 which = 'pfor'
28 want = 'ctxt'
29 class protection(aetools.NProperty):
30 """protection - Indicates whether value or formula in the cell can be changed"""
31 which = 'ppro'
32 want = 'prtn'
34 cells = cell
36 class column(aetools.ComponentItem):
37 """column - A column"""
38 want = 'ccol'
39 class name(aetools.NProperty):
40 """name - the name"""
41 which = 'pnam'
42 want = 'itxt'
44 columns = column
46 class row(aetools.ComponentItem):
47 """row - A row"""
48 want = 'crow'
50 rows = row
52 class table(aetools.ComponentItem):
53 """table - A table"""
54 want = 'ctbl'
56 tables = table
57 cell._propdict = {
58 '_class' : _class,
59 'formula' : formula,
60 'protection' : protection,
62 cell._elemdict = {
64 column._propdict = {
65 'name' : name,
67 column._elemdict = {
69 row._propdict = {
71 row._elemdict = {
73 table._propdict = {
75 table._elemdict = {
77 _Enum_prtn = {
78 'read_only' : 'nmod', # Can't change values or formulas
79 'formulas_protected' : 'fpro', # Can changes values but not formulas
80 'read_2f_write' : 'modf', # Can change values and formulas
85 # Indices of types declared in this module
87 _classdeclarations = {
88 'ccel' : cell,
89 'ctbl' : table,
90 'ccol' : column,
91 'crow' : row,
94 _propdeclarations = {
95 'ppro' : protection,
96 'pnam' : name,
97 'pfor' : formula,
98 'pcls' : _class,
101 _compdeclarations = {
104 _enumdeclarations = {
105 'prtn' : _Enum_prtn,