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. 14 Mar, 2019 1 commit
    • Denis Laxalde's avatar
      Drop most deprecated code in cubicweb.web · b01dd0ef43aa
      Denis Laxalde authored
      This includes both Python and JavaScript code. Most code has been
      deprecated since a very long time (versions 3.1x mostly, more than 5
      years ago, and a few things until 3.24).
      
      There are still a few deprecated things, most of which are actually used
      within cubicweb (or in cubes we depend on for tests). I don't know what
      to do with these...
      
      Removed a couple of unused imports along the way.
      
      Changelog entry will come in a later changeset.
      b01dd0ef43aa
  4. 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
      432f87a63057
  5. 16 Dec, 2015 1 commit
  6. 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
  7. 24 Mar, 2014 1 commit
  8. 14 Feb, 2014 2 commits
  9. 11 Feb, 2014 1 commit
  10. 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
  11. 31 Jul, 2012 1 commit
  12. 27 Jun, 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. 05 Dec, 2011 1 commit
  15. 29 Nov, 2011 1 commit
  16. 24 Nov, 2011 1 commit
  17. 04 Nov, 2011 2 commits
  18. 24 Oct, 2011 2 commits
  19. 21 Oct, 2011 1 commit
  20. 07 Sep, 2011 1 commit
  21. 30 Jun, 2011 1 commit
  22. 06 May, 2011 1 commit
  23. 21 Jan, 2011 1 commit
  24. 25 Aug, 2010 1 commit
  25. 26 Jul, 2010 1 commit
  26. 13 Jul, 2010 1 commit
  27. 08 Jul, 2010 1 commit
  28. 06 Jul, 2010 1 commit
  29. 05 Jul, 2010 1 commit
  30. 21 Jun, 2010 1 commit
  31. 01 Jun, 2010 2 commits
  32. 26 May, 2010 1 commit
  33. 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
  34. 28 Apr, 2010 2 commits
  35. 26 Feb, 2010 1 commit