Package platformids :: Package custom :: Module reactos

Source Code for Module platformids.custom.reactos

 1  # -*- coding: utf-8 -*- 
 2  """ReactOS releases, currently experimental for *platformids.RTE* tests. 
 3   
 4  Uses standard encoding, thus require enum value registration only. 
 5  """ 
 6  from __future__ import absolute_import 
 7   
 8  from platformids import rte2num, num2rte, num2pretty, \ 
 9      custom_ostype, custom_dist, \ 
10      RTE_WINDOWS 
11   
12   
13  __author__ = 'Arno-Can Uestuensoez' 
14  __license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints" 
15  __copyright__ = "Copyright (C) 2019 Arno-Can Uestuensoez" \ 
16                  " @Ingenieurbuero Arno-Can Uestuensoez" 
17  __version__ = '0.0.1' 
18  __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9" 
19   
20   
21  RTE_REACTOS       = RTE_WINDOWS     + custom_ostype.add_enum()   #: ReactOS as ostype 
22  RTE_REACTOS5_2    = RTE_REACTOS     + custom_dist.add_enum()     #: ReactOS5_2 as dist compatible to NT5_2 
23   
24  #: mapping of the rte string and numeric representation to the numeric value 
25  rte2num.update( 
26      { 
27          'reactos': RTE_REACTOS, 
28          'reactos5_2': RTE_REACTOS5_2, 
29      } 
30  ) 
31   
32   
33  #: mapping of the rte numeric representation to the string value 
34  num2rte.update( 
35      { 
36          RTE_REACTOS: 'reactos', 
37          RTE_REACTOS5_2: 'reactos5_2', 
38      } 
39  ) 
40   
41   
42  #: pretty print for UI display 
43  num2pretty.update( 
44      { 
45          RTE_REACTOS: 'ReactOS', 
46          RTE_REACTOS5_2: 'ReactOS-5.2', 
47      } 
48  ) 
49   
50  #--------------------------------------------------# 
51  #                                                  # 
52  # optional constants for convenience               # 
53  #                                                  # 
54  #--------------------------------------------------# 
55   
56  RTE_REACTOS049    = RTE_REACTOS5_2  +  0x00000089                             #: ReactOS-0.4.9 
57  RTE_REACTOS0410   = RTE_REACTOS5_2  +  0x0000008a                             #: ReactOS-0.4.10 
58  RTE_REACTOS0411   = RTE_REACTOS5_2  +  0x0000008b                             #: ReactOS-0.4.11 
59       
60       
61  #: mapping of the rte string and numeric representation to the numeric value 
62  rte2num.update( 
63      { 
64          'reactos049': RTE_REACTOS049, 
65          'reactos0410': RTE_REACTOS0410, 
66          'reactos0411': RTE_REACTOS0411, 
67          'reactos5_2': RTE_REACTOS5_2, 
68      } 
69  ) 
70   
71   
72  #: mapping of the rte numeric representation to the string value 
73  num2rte.update( 
74      { 
75          RTE_REACTOS049: 'reactos049', 
76          RTE_REACTOS0410: 'reactos0410', 
77          RTE_REACTOS0411: 'reactos0411', 
78          RTE_REACTOS5_2: 'reactos5_2', 
79      } 
80  ) 
81   
82   
83  #: mapping of the pretty print representation 
84  num2pretty.update( 
85      { 
86          RTE_REACTOS5_2: 'ReactOS-5.2', 
87          RTE_REACTOS049: 'ReactOS-0.4.9', 
88          RTE_REACTOS0410: 'ReactOS-0.4.10', 
89          RTE_REACTOS0411: 'ReactOS-0.4.11', 
90      } 
91  ) 
92