Package pulp :: Package client :: Module constants
[hide private]
[frames] | no frames]

Source Code for Module pulp.client.constants

 1  # 
 2  # String constants for the pulp CLI 
 3  # 
 4  # Copyright (c) 2010 Red Hat, Inc. 
 5  # 
 6  # This software is licensed to you under the GNU General Public License, 
 7  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 8  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 9  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
10  # along with this software; if not, see 
11  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
12  # 
13  # Red Hat trademarks are not licensed under GPLv2. No permission is 
14  # granted to use or replicate Red Hat trademarks that are incorporated 
15  # in this software or its documentation. 
16  # 
17  # 
18   
19  AVAILABLE_REPOS_LIST = """ 
20  Label              \t%-25s 
21  Name               \t%-25s 
22  Feed               \t%-25s 
23  Arch               \t%-25s 
24  Sync Schedule      \t%-25s 
25  Packages           \t%-25s 
26  """ 
27   
28  AVAILABLE_CONSUMER_GROUP_INFO=""" 
29  Id                 \t%-25s 
30  Description        \t%-25s 
31  Consumer ids       \t%-25s 
32  """ 
33   
34   
35  AVAILABLE_CONSUMER_INFO=""" 
36  Id                 \t%-25s 
37  Description        \t%-25s 
38  Subscribed Repos   \t%-25s 
39  Profile            \t%-25s 
40  """ 
41   
42  REPO_SCHEDULES_LIST = """ 
43  Label              \t%-25s 
44  Schedule           \t%-25s 
45  """ 
46   
47  PACKAGE_GROUP_INFO = """ 
48  Name                \t%-25s 
49  Id                  \t%-25s 
50  Mandatory packages  \t%-25s 
51  Default packages    \t%-25s 
52  Optional packages   \t%-25s 
53  Conditional packages\t%-25s 
54  """ 
55   
56   
57  AVAILABLE_USERS_LIST = """ 
58  Login :               \t%-25s     
59  Name  :               \t%-25s 
60  """ 
61   
62  ERRATA_INFO=""" 
63  Id                    \t%-25s 
64  Title                 \t%-25s 
65  Description           \t%-25s  
66  Type                  \t%-25s 
67  Issued                \t%-25s 
68  Updated               \t%-25s 
69  Version               \t%-25s 
70  Release               \t%-25s 
71  Status                \t%-25s 
72  Packages Effected     \t%-25s 
73  References            \t%-25s 
74  """ 
75   
76  # The quotes are intentionally placed odd on the consumer history constants to 
77  # allow additional details to be concatenated on to the base information. It looks 
78  # ugly in code but makes the actual CLI output much cleaner. So be careful when 
79  # dorking with these. 
80  CONSUMER_HISTORY_ENTRY = """ 
81  Event Type            \t%-25s 
82  Timestamp             \t%-25s 
83  Originator            \t%-25s""" 
84   
85  CONSUMER_HISTORY_REPO = """Repo ID               \t%-25s""" 
86   
87  CONSUMER_HISTORY_PACKAGES = """Packages""" 
88   
89  CONSUMER_HISTORY_EVENT_TYPES = { 
90      'consumer_created' : 'Consumer Created', 
91      'consumer_deleted' : 'Consumer Deleted', 
92      'repo_bound' : 'Repo Bound', 
93      'repo_unbound' : 'Repo Unbound', 
94      'package_installed' : 'Package Installed', 
95      'package_uninstalled' : 'Package Uninstalled', 
96  } 
97