Hs2Py constants: additional module jstore
authorJose A. Lopes <jabolopes@google.com>
Thu, 7 Nov 2013 09:53:15 +0000 (10:53 +0100)
committerJose A. Lopes <jabolopes@google.com>
Fri, 8 Nov 2013 17:00:11 +0000 (18:00 +0100)
Add constants from additional modules ('ganeti.jstore') to the Haskell
to Python constant generation.

Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

autotools/convert-constants
lib/jstore.py
src/Ganeti/HsConstants.hs

index 4e83e8c..1e81b8b 100755 (executable)
@@ -298,7 +298,7 @@ def Convert(module, prefix):
 
 
 def main():
-  print Convert(jstore, "jstore")
+  pass
 
 
 if __name__ == "__main__":
index 324f91e..c1630b9 100644 (file)
@@ -31,7 +31,7 @@ from ganeti import utils
 from ganeti import pathutils
 
 
-JOBS_PER_ARCHIVE_DIRECTORY = 10000
+JOBS_PER_ARCHIVE_DIRECTORY = constants.JSTORE_JOBS_PER_ARCHIVE_DIRECTORY
 
 
 def _ReadNumericFile(file_name):
index 2cdf5d5..982752a 100644 (file)
@@ -4548,3 +4548,8 @@ errorsEcodeAll =
                       , errorsEcodeInval
                       , errorsEcodeEnviron
                       ]
+
+-- * Jstore related constants
+
+jstoreJobsPerArchiveDirectory :: Int
+jstoreJobsPerArchiveDirectory = 10000