1. 12 Feb, 2014 3 commits
  2. 10 Feb, 2014 2 commits
  3. 23 Jan, 2014 1 commit
  4. 22 Jan, 2014 1 commit
  5. 20 Dec, 2013 1 commit
  6. 03 Dec, 2013 1 commit
  7. 25 Nov, 2013 5 commits
    • Giorgos Korfiatis's avatar
      astakos: Lock user in im views · d89626f2
      Giorgos Korfiatis authored
      Make sure that views modifying users run in a transaction and lock users
      before updating.
      d89626f2
    • Giorgos Korfiatis's avatar
      astakos: Make user uuid field non-null · 5cc185e2
      Giorgos Korfiatis authored
      Set a uuid to any user missing one and set the field null=False.
      5cc185e2
    • Giorgos Korfiatis's avatar
      astakos: Refactor user creation · 5f307667
      Giorgos Korfiatis authored
      Provide auth.make_user() as the single way to create a new user. This
      function is responsible to set all automatically generated fields, such as
      username, uuid, and token. Clean up AstakosUser.save(), that used to
      update these fields, and remove AstakosUser.__init__(). Remove trigger
      that renewed token on every AstakosUser update. In order to set a user's
      email, use AstakosUser.set_email(); this takes care to update the
      username, too.
      
      Provide function create_user() in user creation forms, which calls
      auth.make_user() with the form-provided data.
      
      Use the wrapper auth.make_local_user() in management command `user-add'.
      
      Use the same infrastructure to extend a django superuser to an AstakosUser
      (in management command `fix-superusers').
      5f307667
    • Giorgos Korfiatis's avatar
      astakos: Correct realname splitting · 2deff05a
      Giorgos Korfiatis authored
      If a realname splits in more than two parts, store the whole value
      as last_name. Also use the util function rather than initializing
      a temporary AstakosUser, where needed.
      2deff05a
    • Giorgos Korfiatis's avatar
      astakos: Reset user sign flags when adding new terms · 361ec44d
      Giorgos Korfiatis authored
      When new terms are added, set has_signed_terms=False for all users, forcing
      them to accept the new terms. If there are no terms, a new user is created
      with has_signed_terms=True.
      
      With this change we can skip querying the terms when authenticating a user,
      speeding up POST /tokens.
      361ec44d
  8. 22 Nov, 2013 4 commits
  9. 11 Nov, 2013 1 commit
  10. 15 Oct, 2013 1 commit
  11. 09 Oct, 2013 2 commits
  12. 04 Oct, 2013 1 commit
  13. 01 Oct, 2013 1 commit
    • Giorgos Korfiatis's avatar
      astakos: Store base URL in component · eae82002
      Giorgos Korfiatis authored
      Deployer should provide it when adding a new component. Service endpoints
      originating from a component are expected to match its base URL; otherwise,
      a warning is issued during service registration. Re-registration with
      `snf-component-register' affects both the base and the ui URLs.
      
      `component-list' now lists by default the base URL.
      eae82002
  14. 27 Sep, 2013 1 commit
    • 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.
      1bea338c
  15. 26 Sep, 2013 1 commit
    • 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.
      """
      232b2aa9
  16. 07 Aug, 2013 14 commits