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.
  3. 30 Sep, 2016 1 commit
    • Sylvain Thénault's avatar
      flake8 and all · 432f87a63057
      Sylvain Thénault authored
      * update some copyright
      * drop most __docformat__ declaration
      * fix some flake8 warnings / errors
  4. 17 Sep, 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
      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
  6. 09 Jan, 2014 1 commit
    • Florent Cayre's avatar
      [breadcrumbs] Small breadcrumb components refactoring · 430859af32c6
      Florent Cayre authored
      * use `open_breadcrumbs` and `close_breadcrumbs` methods where applicable in
        the BreadCrumbEntityVComponent hierarchy
      * include the first separator related code in `open_breadcrumbs` to avoid code
      Closes #3223911.
  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.
  8. 02 May, 2014 1 commit
    • Aurelien Campeas's avatar
      remove most 3.10 bw compat · 8391bf718485
      Aurelien Campeas authored
      Related to #3799117.
      The boxes and entityvcomponent objects cannot really be removed as they
      are still used throughout the code base (and possible cubes).
      This may be caused by a non-working deprecation and needs some more
  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.
  10. 21 Oct, 2011 1 commit
  11. 23 Sep, 2011 1 commit
  12. 15 Jun, 2011 1 commit
  13. 24 Mar, 2011 2 commits
  14. 28 Jan, 2011 1 commit
  15. 09 Nov, 2010 1 commit
  16. 11 Oct, 2010 3 commits
  17. 08 Oct, 2010 1 commit
  18. 25 Aug, 2010 1 commit
  19. 05 Jul, 2010 1 commit
  20. 10 Jun, 2010 1 commit
  21. 21 May, 2010 1 commit
  22. 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.
  23. 28 Apr, 2010 2 commits
  24. 15 Apr, 2010 1 commit
  25. 04 Mar, 2010 1 commit
  26. 21 Jan, 2010 1 commit
    • Sylvain Thénault's avatar
      closes #345410: two_lines_rset, two_cols_rset, two_etypes_rset are badly named · 4efd4c306746
      Sylvain Thénault authored
      replaced by multi_lines_rset, multi_columns_rset, multi_etypes_rset,
      all taking optional 'nb' argument allowing to specify and exact count.
      Bw compat is kept, usage of deprecated function updated in cw itself.
      Also drop custom at_least_two_columns selector (in views.plots) since
      it was the same as multi_columns_rset. Hopefuly the renaming will help
      in avoid such pb...
      We should now decide if we want to deprecate one_* selector in favor
      of multi_*(nb=1). See note on this at then end of selectors.py
  27. 07 Jan, 2010 1 commit
  28. 08 Dec, 2009 1 commit
  29. 16 Nov, 2009 1 commit
  30. 29 Sep, 2009 1 commit
  31. 23 Sep, 2009 4 commits
  32. 11 Sep, 2009 2 commits