Skip to content
Snippets Groups Projects
  1. Jun 01, 2017
    • Philippe Pepiot's avatar
      WIP authentification · b9b5626cee9d
      Philippe Pepiot authored
      TODO:
      
      1. plug with pyramid authentication
      2. This require a patch in cubicweb.pyramid.core._cw_cnx raise cubicweb.Unauthorized when request.cw_session is None
      b9b5626cee9d
  2. May 30, 2017
    • Denis Laxalde's avatar
      Set status code to 500 for "generic" exception · bad02d336ca6
      Denis Laxalde authored
      In many cases, such errors would occur for an internal reason not because of
      an invalid request. So prefer "500 Internal Server Error" over "400 Bad
      Request" which might be misleading if the error is actually "internal".
      
      Later on, we should make a proper distinction between true internal errors and
      *currently unhandled* client errors. One such case concerns converting
      TypeResolverException that might occur when setting a relation to a bad target
      into a proper Bad Request (hence the "TODO" in respective test).
      bad02d336ca6
    • Denis Laxalde's avatar
      Do not insert an empty "detail" key in application/problem+json · 67c1b0874683
      Denis Laxalde authored
      As demonstrated in test, this might occur if an exception with no message is
      raised (str(exc) == '').
      67c1b0874683
  3. May 31, 2017
  4. May 23, 2017
  5. May 31, 2017
  6. May 24, 2017
  7. May 30, 2017
  8. May 29, 2017
    • Denis Laxalde's avatar
      Make partial_match_etype more generic and rename it into partial_yams_match · e745539ad236
      Denis Laxalde authored
      This predicates would now match on any class attribute with a name usable for
      `yams_match` predicate.
      e745539ad236
    • Denis Laxalde's avatar
      Build DocumentField with a class in InlinedRelationMapper.jsl_field_targets() · dc23ac3b30f2
      Denis Laxalde authored
      Previously (I don't remember why), we used the name of a class (i.e.
      target_type) in DocumentField initialization for target fields of
      InlinedRelationMapper. This causes problem when trying to render the schema of
      the field for such a relation if respective document is not in JSL registry
      (it might not at this point apparently). By using the class directly we avoid
      a registry lookup later when schema of the document field is requested.
      
      Added a test checking that schema of an inlined relation renders correctly.
      dc23ac3b30f2
    • Denis Laxalde's avatar
      Use target type from selection context in InlinedRelationMapper.description() · 2550b523bff8
      Denis Laxalde authored
      Instead of passing `takefirst=True` to rdef(), we use kwown target type from
      selection context if there's only one possible target type. If there are more
      than one possible target types, we set description to None. Otherwise, pass
      targettype=None to rdef as it's probably a final relation hopefully not
      ambiguous.
      2550b523bff8
  9. May 18, 2017
  10. May 23, 2017
  11. May 22, 2017
Loading