1. 27 Sep, 2013 8 commits
    • Christos Stavrakakis's avatar
      Revert "wheezy: Rename depricated HttpRequest attribute" · 43b39fbb
      Christos Stavrakakis authored
      This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. This
      commit is reverted because it breaks compatibility with Django 1.2. This
      should be applied for Synnefo 0.15.
    • Christos Stavrakakis's avatar
      reconciliation: Strip Ganeti IP addresses · 01cefd27
      Christos Stavrakakis authored
      Strip spaces from Ganeti IP addresses, since they are not automatically
      ignored in newer versions of ipaddr.
    • Christos Stavrakakis's avatar
      wheezy: Remove setup_environ · fa33847d
      Christos Stavrakakis authored
      From Django docs:
      This function temporarily modified sys.path in order to make the parent
      “project” directory importable under the old flat startproject layout.
      This function is now deprecated, as its path workarounds are no longer
      needed with the new manage.py and default project layout.
      This function was never documented or part of the public API, but it was
      widely recommended for use in setting up a “Django environment” for a
      user script. These uses should be replaced by setting the
      DJANGO_SETTINGS_MODULE environment variable or using
    • Christos Stavrakakis's avatar
      wheezy: fix is_safe attribute of template filters · a9499b17
      Christos Stavrakakis authored
      In Django 1.4 'is_safe' and 'needs_autoescape' attributes has been made
      keyword arguments of @register.filter
    • Christos Stavrakakis's avatar
      wheezy: Rename depricated HttpRequest attribute · 94b743e6
      Christos Stavrakakis authored
      From django docs:
      HttpRequest.raw_post_data renamed to HttpRequest.body
      This attribute was confusingly named HttpRequest.raw_post_data, but it
      actually provided the body of the HTTP request. It’s been renamed to
      HttpRequest.body, and HttpRequest.raw_post_data has been deprecated.
    • Ilias Tsitsimpis's avatar
      Fix a python syntax error · 1bea338c
      Ilias Tsitsimpis authored
      In python 2 we cannot have keyword-only arguments (PEP 3102).
      And even if we could, this was not the right way to
      declare a python function.
    • Christos Stavrakakis's avatar
      astakos: Replace commit_manually decorator · e722ea2e
      Christos Stavrakakis authored
      Replace commit_manually decorator with commit_on_success, since the
      functions that were using this decorator did not really needed it.
    • Christos Stavrakakis's avatar
      cyclades: Remove commit_manually decorator · effcf3ab
      Christos Stavrakakis authored
      Replace commit_manually decorator with commit_on_success. Since network
      is no longer created in DB in the API request, the manually decorator is
      no longer needed.
  2. 26 Sep, 2013 2 commits
    • Ilias Tsitsimpis's avatar
      astakos: Fix `save() got unexpected argument' · 232b2aa9
      Ilias Tsitsimpis authored
      From Django documentation:
      It’s also important that you pass through the arguments that can be
      passed to the model method – that’s what the *args, **kwargs bit does.
      Django will, from time to time, extend the capabilities of built-in
      model methods, adding new arguments. If you use *args, **kwargs in your
      method definitions, you are guaranteed that your code will automatically
      support those arguments when they are added.
    • Ilias Tsitsimpis's avatar
      astakos: Don't use `user.__dict__' · 0dd316aa
      Ilias Tsitsimpis authored
      In Django 1.4 the `request.user' returns a SimpleLazyObject instead
      of a LazyUser. The equivalent of `user.__dict__' is now
      `user._wrapped.__dict__'. In order to be backward compatible
      we are requesting explicitely the attributes we want and not
      all of them with __dict__.
  3. 25 Sep, 2013 12 commits
  4. 24 Sep, 2013 18 commits