Revision 73b63a40

b/autotools/convert-constants
26 26
import types
27 27

  
28 28
from ganeti import _autoconf
29
from ganeti import _constants
29 30
from ganeti import compat
30 31
from ganeti import constants
31 32
from ganeti import errors
......
287 288
  """
288 289
  lines = [""]
289 290

  
290
  all_items = dict((name, getattr(module, name)) for name in dir(module))
291
  all_items = dict((name, getattr(module, name))
292
                   for name in dir(module)
293
                   if name not in dir(_constants))
291 294

  
292 295
  for name in sorted(all_items.keys()):
293 296
    value = all_items[name]
b/src/Ganeti/Constants.hs
1 1
{-| Ganeti constants.
2 2

  
3
This module reexports the Haskell constants generated from Python.
3
This module reexports the Haskell constants and those generated from
4
Python.
4 5

  
5 6
-}
6 7

  
......
25 26

  
26 27
-}
27 28

  
28
module Ganeti.Constants (module Ganeti.PyConstants) where
29
module Ganeti.Constants (module Ganeti.HsConstants,
30
                         module Ganeti.PyConstants) where
29 31

  
32
import Ganeti.HsConstants
30 33
import Ganeti.PyConstants

Also available in: Unified diff