ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py

#countcontent
1n/a"""Suite Containers and folders: Classes that can contain other file system items
2n/aLevel 1, version 1
3n/a
4n/aGenerated from /System/Library/CoreServices/Finder.app
5n/aAETE/AEUT resource version 0/144, language 0, script 0
6n/a"""
7n/a
8n/aimport aetools
9n/aimport MacOS
10n/a
11n/a_code = 'fndr'
12n/a
13n/aclass Containers_and_folders_Events:
14n/a
15n/a pass
16n/a
17n/a
18n/aclass disk(aetools.ComponentItem):
19n/a """disk - A disk """
20n/a want = 'cdis'
21n/aclass _Prop__3c_Inheritance_3e_(aetools.NProperty):
22n/a """<Inheritance> - inherits some of its properties from the container class """
23n/a which = 'c@#^'
24n/a want = 'ctnr'
25n/aclass _Prop_capacity(aetools.NProperty):
26n/a """capacity - the total number of bytes (free or used) on the disk """
27n/a which = 'capa'
28n/a want = 'comp'
29n/aclass _Prop_ejectable(aetools.NProperty):
30n/a """ejectable - Can the media be ejected (floppies, CD's, and so on)? """
31n/a which = 'isej'
32n/a want = 'bool'
33n/aclass _Prop_format(aetools.NProperty):
34n/a """format - the filesystem format of this disk """
35n/a which = 'dfmt'
36n/a want = 'edfm'
37n/aclass _Prop_free_space(aetools.NProperty):
38n/a """free space - the number of free bytes left on the disk """
39n/a which = 'frsp'
40n/a want = 'comp'
41n/aclass _Prop_ignore_privileges(aetools.NProperty):
42n/a """ignore privileges - Ignore permissions on this disk? """
43n/a which = 'igpr'
44n/a want = 'bool'
45n/aclass _Prop_local_volume(aetools.NProperty):
46n/a """local volume - Is the media a local volume (as opposed to a file server)? """
47n/a which = 'isrv'
48n/a want = 'bool'
49n/aclass _Prop_startup(aetools.NProperty):
50n/a """startup - Is this disk the boot disk? """
51n/a which = 'istd'
52n/a want = 'bool'
53n/a# element 'alia' as ['indx', 'name']
54n/a# element 'appf' as ['indx', 'name', 'ID ']
55n/a# element 'cfol' as ['indx', 'name', 'ID ']
56n/a# element 'clpf' as ['indx', 'name']
57n/a# element 'cobj' as ['indx', 'name']
58n/a# element 'ctnr' as ['indx', 'name']
59n/a# element 'docf' as ['indx', 'name']
60n/a# element 'file' as ['indx', 'name']
61n/a# element 'inlf' as ['indx', 'name']
62n/a# element 'pack' as ['indx', 'name']
63n/a
64n/adisks = disk
65n/a
66n/aclass desktop_2d_object(aetools.ComponentItem):
67n/a """desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """
68n/a want = 'cdsk'
69n/a# element 'alia' as ['indx', 'name']
70n/a# element 'appf' as ['indx', 'name', 'ID ']
71n/a# element 'cdis' as ['indx', 'name']
72n/a# element 'cfol' as ['indx', 'name', 'ID ']
73n/a# element 'clpf' as ['indx', 'name']
74n/a# element 'cobj' as ['indx', 'name']
75n/a# element 'ctnr' as ['indx', 'name']
76n/a# element 'docf' as ['indx', 'name']
77n/a# element 'file' as ['indx', 'name']
78n/a# element 'inlf' as ['indx', 'name']
79n/a# element 'pack' as ['indx', 'name']
80n/a
81n/aclass folder(aetools.ComponentItem):
82n/a """folder - A folder """
83n/a want = 'cfol'
84n/a# element 'alia' as ['indx', 'name']
85n/a# element 'appf' as ['indx', 'name', 'ID ']
86n/a# element 'cfol' as ['indx', 'name', 'ID ']
87n/a# element 'clpf' as ['indx', 'name']
88n/a# element 'cobj' as ['indx', 'name']
89n/a# element 'ctnr' as ['indx', 'name']
90n/a# element 'docf' as ['indx', 'name']
91n/a# element 'file' as ['indx', 'name']
92n/a# element 'inlf' as ['indx', 'name']
93n/a# element 'pack' as ['indx', 'name']
94n/a
95n/afolders = folder
96n/a
97n/aclass container(aetools.ComponentItem):
98n/a """container - An item that contains other items """
99n/a want = 'ctnr'
100n/aclass _Prop_completely_expanded(aetools.NProperty):
101n/a """completely expanded - (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """
102n/a which = 'pexc'
103n/a want = 'bool'
104n/aclass _Prop_container_window(aetools.NProperty):
105n/a """container window - the container window for this folder """
106n/a which = 'cwnd'
107n/a want = 'obj '
108n/aclass _Prop_entire_contents(aetools.NProperty):
109n/a """entire contents - the entire contents of the container, including the contents of its children """
110n/a which = 'ects'
111n/a want = 'obj '
112n/aclass _Prop_expandable(aetools.NProperty):
113n/a """expandable - (NOT AVAILABLE YET) Is the container capable of being expanded as an outline? """
114n/a which = 'pexa'
115n/a want = 'bool'
116n/aclass _Prop_expanded(aetools.NProperty):
117n/a """expanded - (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists) """
118n/a which = 'pexp'
119n/a want = 'bool'
120n/a# element 'alia' as ['indx', 'name']
121n/a# element 'appf' as ['indx', 'name', 'ID ']
122n/a# element 'cfol' as ['indx', 'name', 'ID ']
123n/a# element 'clpf' as ['indx', 'name']
124n/a# element 'cobj' as ['indx', 'name']
125n/a# element 'ctnr' as ['indx', 'name']
126n/a# element 'docf' as ['indx', 'name']
127n/a# element 'file' as ['indx', 'name']
128n/a# element 'inlf' as ['indx', 'name']
129n/a# element 'pack' as ['indx', 'name']
130n/a
131n/acontainers = container
132n/a
133n/aclass trash_2d_object(aetools.ComponentItem):
134n/a """trash-object - Trash-object is the class of the \xd2trash\xd3 object """
135n/a want = 'ctrs'
136n/aclass _Prop_warns_before_emptying(aetools.NProperty):
137n/a """warns before emptying - Display a dialog when emptying the trash? """
138n/a which = 'warn'
139n/a want = 'bool'
140n/a# element 'alia' as ['indx', 'name']
141n/a# element 'appf' as ['indx', 'name', 'ID ']
142n/a# element 'cfol' as ['indx', 'name', 'ID ']
143n/a# element 'clpf' as ['indx', 'name']
144n/a# element 'cobj' as ['indx', 'name']
145n/a# element 'ctnr' as ['indx', 'name']
146n/a# element 'docf' as ['indx', 'name']
147n/a# element 'file' as ['indx', 'name']
148n/a# element 'inlf' as ['indx', 'name']
149n/a# element 'pack' as ['indx', 'name']
150n/adisk._superclassnames = ['container']
151n/aimport Files
152n/aimport Finder_items
153n/adisk._privpropdict = {
154n/a '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
155n/a 'capacity' : _Prop_capacity,
156n/a 'ejectable' : _Prop_ejectable,
157n/a 'format' : _Prop_format,
158n/a 'free_space' : _Prop_free_space,
159n/a 'ignore_privileges' : _Prop_ignore_privileges,
160n/a 'local_volume' : _Prop_local_volume,
161n/a 'startup' : _Prop_startup,
162n/a}
163n/adisk._privelemdict = {
164n/a 'alias_file' : Files.alias_file,
165n/a 'application_file' : Files.application_file,
166n/a 'clipping' : Files.clipping,
167n/a 'container' : container,
168n/a 'document_file' : Files.document_file,
169n/a 'file' : Files.file,
170n/a 'folder' : folder,
171n/a 'internet_location_file' : Files.internet_location_file,
172n/a 'item' : Finder_items.item,
173n/a 'package' : Files.package,
174n/a}
175n/adesktop_2d_object._superclassnames = ['container']
176n/adesktop_2d_object._privpropdict = {
177n/a '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
178n/a}
179n/adesktop_2d_object._privelemdict = {
180n/a 'alias_file' : Files.alias_file,
181n/a 'application_file' : Files.application_file,
182n/a 'clipping' : Files.clipping,
183n/a 'container' : container,
184n/a 'disk' : disk,
185n/a 'document_file' : Files.document_file,
186n/a 'file' : Files.file,
187n/a 'folder' : folder,
188n/a 'internet_location_file' : Files.internet_location_file,
189n/a 'item' : Finder_items.item,
190n/a 'package' : Files.package,
191n/a}
192n/afolder._superclassnames = ['container']
193n/afolder._privpropdict = {
194n/a '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
195n/a}
196n/afolder._privelemdict = {
197n/a 'alias_file' : Files.alias_file,
198n/a 'application_file' : Files.application_file,
199n/a 'clipping' : Files.clipping,
200n/a 'container' : container,
201n/a 'document_file' : Files.document_file,
202n/a 'file' : Files.file,
203n/a 'folder' : folder,
204n/a 'internet_location_file' : Files.internet_location_file,
205n/a 'item' : Finder_items.item,
206n/a 'package' : Files.package,
207n/a}
208n/acontainer._superclassnames = ['item']
209n/acontainer._privpropdict = {
210n/a '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
211n/a 'completely_expanded' : _Prop_completely_expanded,
212n/a 'container_window' : _Prop_container_window,
213n/a 'entire_contents' : _Prop_entire_contents,
214n/a 'expandable' : _Prop_expandable,
215n/a 'expanded' : _Prop_expanded,
216n/a}
217n/acontainer._privelemdict = {
218n/a 'alias_file' : Files.alias_file,
219n/a 'application_file' : Files.application_file,
220n/a 'clipping' : Files.clipping,
221n/a 'container' : container,
222n/a 'document_file' : Files.document_file,
223n/a 'file' : Files.file,
224n/a 'folder' : folder,
225n/a 'internet_location_file' : Files.internet_location_file,
226n/a 'item' : Finder_items.item,
227n/a 'package' : Files.package,
228n/a}
229n/atrash_2d_object._superclassnames = ['container']
230n/atrash_2d_object._privpropdict = {
231n/a '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
232n/a 'warns_before_emptying' : _Prop_warns_before_emptying,
233n/a}
234n/atrash_2d_object._privelemdict = {
235n/a 'alias_file' : Files.alias_file,
236n/a 'application_file' : Files.application_file,
237n/a 'clipping' : Files.clipping,
238n/a 'container' : container,
239n/a 'document_file' : Files.document_file,
240n/a 'file' : Files.file,
241n/a 'folder' : folder,
242n/a 'internet_location_file' : Files.internet_location_file,
243n/a 'item' : Finder_items.item,
244n/a 'package' : Files.package,
245n/a}
246n/a
247n/a#
248n/a# Indices of types declared in this module
249n/a#
250n/a_classdeclarations = {
251n/a 'cdis' : disk,
252n/a 'cdsk' : desktop_2d_object,
253n/a 'cfol' : folder,
254n/a 'ctnr' : container,
255n/a 'ctrs' : trash_2d_object,
256n/a}
257n/a
258n/a_propdeclarations = {
259n/a 'c@#^' : _Prop__3c_Inheritance_3e_,
260n/a 'capa' : _Prop_capacity,
261n/a 'cwnd' : _Prop_container_window,
262n/a 'dfmt' : _Prop_format,
263n/a 'ects' : _Prop_entire_contents,
264n/a 'frsp' : _Prop_free_space,
265n/a 'igpr' : _Prop_ignore_privileges,
266n/a 'isej' : _Prop_ejectable,
267n/a 'isrv' : _Prop_local_volume,
268n/a 'istd' : _Prop_startup,
269n/a 'pexa' : _Prop_expandable,
270n/a 'pexc' : _Prop_completely_expanded,
271n/a 'pexp' : _Prop_expanded,
272n/a 'warn' : _Prop_warns_before_emptying,
273n/a}
274n/a
275n/a_compdeclarations = {
276n/a}
277n/a
278n/a_enumdeclarations = {
279n/a}