1. 14 Feb, 2013 1 commit
  2. 18 Jan, 2013 1 commit
    • Aurelien Campeas's avatar
      [entity,views/json] backout 353bbd17a8b6 (reopens #2559931) · 5ab6ec83d5ba
      Aurelien Campeas authored
      Calling .complete() unconditionnally from the json encoder is unsafe
      since on entity creation validation:
      
      * an eid may have been drawn (hence even .has_eid() would not help)
        while processing form data in the edit controller
      
      * a ValidationError may have been raised and the entity-creating
        transaction rollbacked
      
      This leads to a crash on the return path from the validation to the
      browser, where the json_dumps((status, args, entity)) call will
      stumble upon the .complete() call which will fail because the entity
      does not (any more) exist in the database.
      
      --HG--
      branch : stable
      5ab6ec83d5ba
  3. 17 Jan, 2013 1 commit
  4. 18 Jan, 2013 1 commit
    • Pierre-Yves David's avatar
      [entity] add a "repo_side" parameter to `_cw_dont_cache_attribute` · 4d24ac49f90d
      Pierre-Yves David authored
      This parameter (defaulting to `False`) is used to inform cubicweb that we really
      really do not want to cache a value during creation or update. This will be used
      by a storage that may do very specific processing on attribute values that result
      in a stored value different than the provided one (e.g. BFSS `fs_importing`
      mode).
      4d24ac49f90d
  5. 23 Nov, 2012 1 commit
  6. 03 Aug, 2012 1 commit
  7. 01 Aug, 2012 1 commit
  8. 24 Jul, 2012 2 commits
  9. 17 Jul, 2012 1 commit
  10. 18 Jul, 2012 1 commit
  11. 13 Feb, 2012 1 commit
  12. 08 Feb, 2012 1 commit
  13. 23 Jan, 2012 1 commit
    • Sylvain Thénault's avatar
      [vreg] move base registry implementation to logilab.common. Closes #1916014 · 2a3c1b787688
      Sylvain Thénault authored
      A new logilab.common.registry module has been created with content from
      
      * cw.vreg (the whole things that was in there)
      * cw.appobject (base selectors and all).
      
      In the process, we've done some renaming:
      
      * former selector functions are now known as "predicate", though you still
        use predicates to build an object'selector
      
      * hence `objectify_selector` decorator is now `objectify_predicate`
      
      * the top level registry is now `RegistryStore` (was `VRegistry`)
      
      Also there is no more need for the @lltrace decorator.
      
      On the CubicWeb side, the `selectors` module has been renamed to `predicates`.
      
      There should be full backward compat with proper deprecation warnings.
      2a3c1b787688
  14. 21 Oct, 2011 2 commits
  15. 20 Oct, 2011 1 commit
  16. 06 Oct, 2011 1 commit
  17. 30 Sep, 2011 1 commit
  18. 17 Oct, 2011 2 commits
  19. 06 Oct, 2011 1 commit
  20. 27 Sep, 2011 1 commit
    • Adrien Di Mascio's avatar
      [views] implement json / jsonp export views (closes #1942658) · df15d194a134
      Adrien Di Mascio authored
      Json export views are based on the same model as CSV export views.
      There are two distinct views :
      
      - *jsonexport* : direct conversion of the result set into json
      - *ejsonexport* : convert entities into json
      
      The JSONP parameter is named ``callback`` (same as on geonames, dbepdia
      and a lot of sites)
      
      An optional `_indent` request parameter can be passed to pretty print
      the results.
      df15d194a134
  21. 22 Sep, 2011 2 commits
  22. 21 Sep, 2011 1 commit
  23. 16 Sep, 2011 2 commits
  24. 15 Sep, 2011 1 commit
  25. 26 Jul, 2011 1 commit
  26. 22 Jun, 2011 1 commit
  27. 21 Jun, 2011 1 commit
    • Sylvain Thénault's avatar
      [ms, entity metas] add 'actual source' to entities table / base entity... · 570522300e22
      Sylvain Thénault authored
      [ms, entity metas] add 'actual source' to entities table / base entity metadata cache. Closes #1767090
      
      this is needed since for entities from 'copy based sources' such as
      datafeed, we want entity.cw_metainformation() to return as 'source'
      the datafeed source, not the system source (ie the source where the
      entity is actually stored).
      
      For both performance and bootstraping reasons, we should store this
      information in the `entities` table and in the _type_source cache.
      570522300e22
  28. 15 Jun, 2011 1 commit
  29. 25 May, 2011 1 commit
  30. 13 May, 2011 1 commit
  31. 29 Apr, 2011 1 commit
  32. 05 May, 2011 1 commit
  33. 04 May, 2011 1 commit
  34. 02 May, 2011 1 commit
  35. 22 Apr, 2011 1 commit
    • Alexandre Fayolle's avatar
      Backed out changeset 7a58581d842c · ecae5b526437
      Alexandre Fayolle authored
      This changeset breaks a number of CW tests, which depends on pre add hooks. I'm
      backing it out, so that we can start the need-for-speed sprint with green tests
      (and possibly rework this changeset)
      ecae5b526437