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
  4. 30 Jun, 2015 1 commit
  5. 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
  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. 02 Sep, 2014 1 commit
  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. 25 Apr, 2013 1 commit
  10. 23 Apr, 2013 1 commit
  11. 06 Nov, 2014 2 commits
  12. 17 Jul, 2014 1 commit
    • Rémi Cardona's avatar
      Remove uses of logilab.common.compat.{all,any} · 928732ec00dd
      Rémi Cardona authored
      They're just aliases to the builtin ones on python 2.5+. If anyone needs
      convincing:
      
      >>> from logilab.common import compat
      >>> compat.any
      <built-in function any>
      >>> compat.all
      <built-in function all>
      928732ec00dd
  13. 10 Feb, 2012 1 commit
  14. 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
  15. 21 Oct, 2011 1 commit
  16. 28 Sep, 2011 1 commit
  17. 22 Sep, 2011 1 commit
    • Sylvain Thénault's avatar
      [entity] upgrade fetch_[unrelated_]order to benefit from changes introduced in... · 9bbf83f68bcc
      Sylvain Thénault authored
      [entity] upgrade fetch_[unrelated_]order to benefit from changes introduced in 3.14 (closes #1942758)
      
      of rql generation parts of the ORM now based on rql syntax tree. This allows more powerful and
      flexible sort control by giving them the syntax tree instead of manipulating string.
      
      Also:
      
      * prefix new methods by 'cw_'
      
      * fix cases that currently crash in 3.14 due to the refactoring
      9bbf83f68bcc
  18. 19 May, 2011 2 commits
  19. 02 May, 2011 1 commit
  20. 27 Jan, 2011 1 commit
  21. 20 May, 2010 2 commits
    • Sylvain Thénault's avatar
      [entity] continue cleanup of Entity/AnyEntity namespace · 1a534c596bff
      Sylvain Thénault authored
      * prefix by cw_ or _cw all '2nd zone' attributes / methods, other
        most commonly used will be done later (some methods used by client
        are made private anyway when they are for internal purpose anyway)
      
      * kill set_eid, use direct affectation instead
      
      * kill the auto-transmutation feature (pre_add_hook), hence releasing
        3.9 will require releasing file cube as well
      1a534c596bff
    • 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 defin...
      9ab2b4c74baf
  22. 28 Apr, 2010 2 commits
  23. 13 Apr, 2010 1 commit
  24. 07 Apr, 2010 1 commit
  25. 09 Mar, 2010 1 commit
  26. 26 Feb, 2010 1 commit
  27. 19 Feb, 2010 4 commits
  28. 28 Jan, 2010 1 commit
  29. 07 Jan, 2010 1 commit
  30. 08 Dec, 2009 3 commits
  31. 04 Dec, 2009 1 commit