1. 08 Feb, 2020 1 commit
  2. 19 Dec, 2019 1 commit
  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
      432f87a63057
  4. 15 Jan, 2015 1 commit
  5. 15 Mar, 2016 1 commit
  6. 17 Mar, 2014 1 commit
  7. 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
  8. 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
  9. 26 Apr, 2013 1 commit
  10. 02 Mar, 2012 1 commit
  11. 01 Mar, 2012 1 commit
  12. 28 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. 04 Jan, 2012 1 commit
  15. 04 Apr, 2011 1 commit
  16. 21 Jan, 2011 1 commit
  17. 09 Dec, 2010 1 commit
  18. 05 Jul, 2010 1 commit
  19. 11 Jun, 2010 1 commit
  20. 10 Jun, 2010 1 commit
  21. 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
  22. 28 Apr, 2010 2 commits
  23. 15 Feb, 2010 1 commit
  24. 05 Feb, 2010 1 commit
  25. 15 Jan, 2010 1 commit
    • Sylvain Thénault's avatar
      rename need_navigation into paginable · 2c3de1953d00
      Sylvain Thénault authored
      paginable has been recently introduced by changeset d4eeaf0393e2.
      We already had the need_navigation attribute to control the same
      thing (pagination). As paginable sounds like a better name, deprecates
      need_navigation (bw compat ok).
      
      Also:
      * fix main pagination functions responsability
      * deprecate limit_rset_using_nav in favor of paginate/do_paginate
      * navigation module should be renamed to pagination at some point
      
      --HG--
      branch : stable
      2c3de1953d00
  26. 07 Jan, 2010 1 commit
  27. 23 Sep, 2009 4 commits
  28. 25 Aug, 2009 1 commit
  29. 07 Jul, 2009 1 commit
  30. 28 May, 2009 1 commit
  31. 20 May, 2009 1 commit
  32. 14 May, 2009 4 commits
  33. 04 May, 2009 1 commit