Skip to content
Snippets Groups Projects
  1. Aug 23, 2012
    • Iustin Pop's avatar
      Bump pep8 version to 1.2 · 5ae4945a
      Iustin Pop authored
      
      Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
      
      - bump version in the docs
      - silence some new checks that are wrong due to our indent=2 instead of 4
      - fix lots of errors in the code where the indentation was wrong by 1
        or 2 spaces
      - fix a few cases of == True, False, None and replace with 'is'
      - re-indent some cases where the code is OK, but pep8 complains
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      5ae4945a
  2. May 22, 2012
  3. May 07, 2012
    • Iustin Pop's avatar
      Implement reverse mapping of values to names · 79a04823
      Iustin Pop authored
      
      This adds a bit of dumb mapping of values to names, while trying to be
      safe. This is the best we can do without resorting to parsing or
      interpreting ASTs.
      
      The difference in the output is:
      
       -- | Converted from Python list or set ADMINST_ALL
       adminstAll :: [String]
      -adminstAll = ["down", "offline", "up"]
      +adminstAll = [adminstDown, adminstOffline, adminstUp]
      
      Since for most such values we use strings, we don't gain in type
      safety on the Haskell side. But it makes the output more readable and
      it might open up other opportunities later.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      79a04823
    • Iustin Pop's avatar
      Implement support for multi-module export · 09dc9a02
      Iustin Pop authored
      
      This add support for exporting constants from multiple modules (as
      opposed to hard-coding constants), and also makes the output more
      readable by skipping things we know for sure we don't want to convert
      (as opposed to things we would like to but don't know _how_ to
      convert).
      
      Additionally, we export the constants from the luxi module too.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      09dc9a02
  4. May 04, 2012
  5. Apr 26, 2012
  6. Mar 19, 2012
  7. Mar 13, 2012
  8. Mar 05, 2012
  9. Feb 27, 2012
  10. Jan 13, 2012
  11. Jan 09, 2012
  12. Jan 06, 2012
  13. Jan 05, 2012
  14. Dec 22, 2011
  15. Dec 21, 2011
  16. Nov 21, 2011
  17. Nov 14, 2011
  18. Nov 08, 2011
  19. Nov 07, 2011
  20. Nov 02, 2011
  21. Nov 01, 2011
    • Michael Hanselmann's avatar
      rpc: Improve argument definitions · cd40dc53
      Michael Hanselmann authored
      
      Instead of in-place code now each argument has an (optional) kind
      assigned. The RPC client will then take care of encoding each argument
      according to its definition. A new base (_RpcClientBase) is added to
      take care of encoding and dispatching calls.
      
      Future patches will also use these definitions in the node daemon.
      
      A nice side-effect of this change is the ability to use stand-alone
      functions, as opposed to class member methods, for most of the encoding.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      cd40dc53
  22. Oct 26, 2011
  23. Oct 07, 2011
  24. Aug 30, 2011
  25. Aug 25, 2011
Loading