1. 08 Feb, 2020 1 commit
  2. 05 Apr, 2019 1 commit
    • Denis Laxalde's avatar
      Drop python2 support · 26744ad37953
      Denis Laxalde authored
      This mostly consists in removing the dependency on "six" and updating
      the code to use only Python3 idioms.
      
      Notice that we previously used TemporaryDirectory from
      cubicweb.devtools.testlib for compatibility with Python2. We now
      directly import it from tempfile.
      26744ad37953
  3. 30 Sep, 2016 2 commits
  4. 19 Mar, 2015 1 commit
  5. 16 Jan, 2016 1 commit
    • Denis Laxalde's avatar
      Reorganize source tree to have a "cubicweb" top-level package · 0b59724cb3f2
      Denis Laxalde authored
      Basically:
      
      mkdir cubicweb
      hg mv *.py -X setup.py cubicweb
      hg mv dataimport devtools entities etwist ext hooks i18n misc schemas server skeleton sobjects test web wsgi cubicweb
      
      Other changes:
      
      * adjust path to cubicweb-ctl in devtools tests
      * update setup.py to avoid importing __pkginfo__ (exec it instead),
        replace os.path.walk by os.walk and prepend `modname` here and there
      * update tox.ini to account for new test locations
      * update doc/conf.py so that it still finds __pkginfo__.py and CWDIR in
        doc/Makefile
      0b59724cb3f2
  6. 12 Feb, 2015 1 commit
  7. 26 Aug, 2013 1 commit
    • Aurelien Campeas's avatar
      remove 3.9 bw compat · 697a8181ba30
      Aurelien Campeas authored
      In cw 3.9, interfaces are deprecated and replaced with adapters,
      yielding a lot of bw compat in many places -- most if this patch is
      concerned with the interface bw compat
      
      - cwvreg: interface cleanup
      
      - doc/adapters.rst: interface cleanup
      
      - entities/adapters.py, wfobjs.py: interfaces bw compat
      
      - entity.py: interfaces bw compat, also get_value, delete,
        attr_metadata, has_perm, set_related_cache, clear_related_cache,
        clear_related_cache, related_rql
      
      - predicates.py: score_interfaces & implements
      
      - interfaces.py & mixins.py: 100% gone
      
      - view.py: implement_adapter_compat, unwrap_adapter_compat
      
      - calendar.py, editcontroller.py, ibreadcrumbs.py, navigation.py, xmlrss.py:
        interface bw compat
      
      - treeview.py: salvage one function from mixins.py
      
      
      Related to #2782004.
      697a8181ba30
  8. 23 Apr, 2013 1 commit
  9. 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
  10. 28 Oct, 2011 1 commit
  11. 06 Oct, 2011 1 commit
  12. 22 Jun, 2011 1 commit
    • Sylvain Thénault's avatar
      [datafeed cw parser] refactor: split logic that was in the parser · 935423529f45
      Sylvain Thénault authored
      into:
      
      * an "item builder" component, turning an etree xml node into a specific
        python dictionnary representing an entity
      
      * "action" components, selected given an entity, a relation and its role
        in the relation, and responsible to link the entity to given related
        items (eg dictionnary)
      
      This changes make it easy to add new action or to override existing
      one's behaviour according to the entity, the relation, etc...
      
      Also refactor the xml view so one can also override what's
      included in the tag used to mark the entity as used by a relation,
      hopefully allowing to reduce the number of http requests needed for
      a full datafeed import.
      935423529f45
  13. 17 Jun, 2011 1 commit
  14. 01 Apr, 2011 1 commit
    • Sylvain Thénault's avatar
      [time zone] support for TZDatetime and TZTime data type · dde161937d3e
      Sylvain Thénault authored
      Should be usable and cause no crash, though some stuff may still be
      refined (test value generation, display in views/forms...)
      
      Proprify some data structures dealing with yams base types along the
      way and adding warning when some were missing (eg Interval usually).
      dde161937d3e
  15. 09 Feb, 2011 2 commits
    • Sylvain Thénault's avatar
      [datafeed] add parser to import cubicweb xml · 822f2530570d
      Sylvain Thénault authored
      this parser is configurable through a mapping, which basically
      tells which entity's relation should be copied. Multiple actions
      to control backport of data are available:
      
      * 'copy': copy the external entities locally (though marked as
        coming from the data feed source)
      
      * 'link': find similar entity internaly (e.g. for states)
      
      * 'link-or-create': try to find a similar entity internaly, and create
        it if necessary (won't be marked as coming from the data feed source,
        e.g. for tags)
      822f2530570d
    • Sylvain Thénault's avatar
      [xml] enhance default entity xml view · 037a0277db0a
      Sylvain Thénault authored
      * format attributes according to their type in a predictable way
      * move eid/cwuri as top level tag attributes
      * control which relations should be in using 'relation' form param
      037a0277db0a
  16. 21 Jan, 2011 1 commit
  17. 25 Aug, 2010 3 commits
    • Sylvain Thénault's avatar
      [session] cleanup hook / operation / entity edition api · 8bc6eac1fac1
      Sylvain Thénault authored
      Operation api
      ~~~~~~~~~~~~~
      * commit_event killed, recently introduced postcommit_event is enough and has a better name
      * kill SingleOperation class, it's a) currently never used b) superseeded by set_operation if needed.
      
      
      Entity edition api
      ~~~~~~~~~~~~~~~~~~
      edited_attributes turned into a special object holding edition specific attributes:
      
      - attributes to be edited (simply mirrored in cw_attr_cache, actual values are there)
      - former _cw_skip_security set (cw_edited) and querier_pending_relations
      It has also been renamed to `cw_edited` on the way (it may also contains inlined relations)
      
      The entity dict interface has been deprecated. One should explicitly use either
      cw_attr_cache or cw_edited according to the need.
      
      Also, there is now a control that we don't try to hi-jack edited attributes
      once this has no more effect (eg modification have already been saved)
      
      At last, _cw_set_defaults/cw_check internal methods have been moved to this
      special object
      
      
      Hook api
      ~~~~~~~~
      hook.entity_oldnewvalue function now moved to a method of cw_edited object.
      8bc6eac1fac1
    • Sylvain Thénault's avatar
    • Sylvain Thénault's avatar
      [boxes] introduce new boxes system · 65a619eb31c4
      Sylvain Thénault authored
      * separate box content generation from its layout
      * refactor css classes to allow moving boxes and still get consistent ui
      
      On the way to contentnavigation/boxes unification (in a later patch)
      * * *
      some fixes for the previous (default_new_boxes_system) patch
      * * *
      some fixes for the previous (default_new_boxes_system) patch
      65a619eb31c4
  18. 05 Jul, 2010 1 commit
  19. 21 May, 2010 1 commit
  20. 20 May, 2010 1 commit
    • Sylvain Thénault's avatar
      [entity] introduce a new 'adapters' registry · 9ab2b4c74baf
      Sylvain Thénault authored
      This changeset introduces the notion in adapters (as in Zope Component Architecture)
      in a cubicweb way, eg using a specific registry of appobjects.
      
      This allows nicer code structure, by avoid clutering entity classes and moving
      code usually specific to a place of the ui (or something else) together with the
      code that use the interface.
      
      We don't use actual interface anymore, they are implied by adapters (which
      may be abstract), whose reg id is an interface name.
      
      Appobjects that used to 'implements(IFace)' should now be rewritten by:
      
      * coding an IFaceAdapter(EntityAdapter) defining (implementing if desired)
        the interface, usually with __regid__ = 'IFace'
      
      * use "adaptable('IFace')" as selector instead
      
      Also, the implements_adapter_compat decorator eases backward compatibility
      with adapter's methods that may still be found on entities implementing
      the interface.
      
      Notice that unlike ZCA, we don't support automatic adapters chain (yagni?).
      
      All interfaces defined in cubicweb have been turned into adapters, also
      some new ones have been introduced to cleanup Entity / AnyEntity classes
      namespace. At the end, the pluggable mixins mecanism should disappear in
      favor of adapters as well.
      9ab2b4c74baf
  21. 05 May, 2010 1 commit
  22. 30 Apr, 2010 1 commit
  23. 28 Apr, 2010 2 commits
  24. 24 Mar, 2010 1 commit
  25. 12 Mar, 2010 1 commit
  26. 04 Mar, 2010 1 commit
    • Pierre-Yves David's avatar
      add render_description method to RSSItemView to improve modularity. · 1fa7363c78bd
      Pierre-Yves David authored
      The construction of the description marker of and rss entry is currently built
      by the main cell_call function. This make the job hard for RSSItemView subclass
      to change the default behaviour. The changeset fix this issue by extracting the
      description creation into a render_description method. Such extraction are
      already in place for various rss marquer.
      
      --HG--
      branch : stable
      1fa7363c78bd
  27. 07 Jan, 2010 1 commit
  28. 08 Dec, 2009 2 commits
  29. 15 Oct, 2009 1 commit
  30. 23 Sep, 2009 3 commits
  31. 09 Sep, 2009 1 commit
  32. 12 Aug, 2009 1 commit