Print this page
*** NO COMMENTS ***
| Split |
Close |
| Expand all |
| Collapse all |
--- old/src/gui/modules/enumerations.py
+++ new/src/gui/modules/enumerations.py
1 1 #!/usr/bin/python2.4
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License (the "License").
7 7 # You may not use this file except in compliance with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 """
27 27 This module consists of user readable enumerations for the data models
28 28 used in the IPS GUI
29 29 """
30 30
31 31 (
|
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32 MARK_COLUMN,
33 33 STATUS_ICON_COLUMN,
34 34 ICON_COLUMN,
35 35 NAME_COLUMN,
36 36 INSTALLED_VERSION_COLUMN,
37 37 INSTALLED_OBJECT_COLUMN, # This will speed up a little bit
38 38 LATEST_AVAILABLE_COLUMN,
39 39 RATING_COLUMN, # Not in revision 1
40 40 DESCRIPTION_COLUMN,
41 41 PACKAGE_OBJECT_COLUMN, # pkg.client.fmri.py module
42 -IMAGE_OBJECT_COLUMN, # This takes not much memory, so we can use that :)
43 42 IS_VISIBLE_COLUMN, # True indicates that the package is visible in ui
44 43 CATEGORY_LIST_OBJECT # list of categories to which package belongs
45 -) = range(13)
44 +) = range(12)
46 45
47 46 #Categories
48 47 (
49 48 CATEGORY_ID,
50 49 CATEGORY_NAME,
51 50 CATEGORY_DESCRIPTION,
52 51 CATEGORY_ICON,
53 52 CATEGORY_VISIBLE,
54 53 SECTION_LIST_OBJECT, #List with the sections to which category belongs
55 54 ) = range(6)
56 55
57 56 #Sections
58 57 (
59 58 SECTION_ID,
60 59 SECTION_NAME,
61 60 ) = range(2)
62 61
63 62 #Filter
|
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
64 63 (
65 64 FILTER_ID,
66 65 FILTER_NAME,
67 66 ) = range(2)
68 67
69 68 #Repositories switch
70 69 (
71 70 REPOSITORY_ID,
72 71 REPOSITORY_NAME,
73 72 ) = range(2)
73 +
74 +(
75 +INSTALL_UPDATE,
76 +REMOVE,
77 +IMAGE_UPDATE
78 +) = range(3)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX