1. 09 Jan, 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. 10 Mar, 2017 1 commit
  4. 14 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      Stop using Session on the repository side · b8d2e6b9f548
      Sylvain Thénault authored
      Only expect session on web request, and let the web session/authentication
      managers provide them.
      
      Access to cnx.data, which used to return session data, is deprecated: there is
      no more access to session data from the repository side, and they should be
      access from req.session.data from the web side.
      b8d2e6b9f548
  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. 23 Jan, 2017 1 commit
  7. 26 Jan, 2016 1 commit
  8. 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
  9. 09 Apr, 2014 1 commit
  10. 17 Feb, 2015 1 commit
  11. 16 Dec, 2013 1 commit
  12. 23 Oct, 2013 1 commit
    • Julien Cristau's avatar
      [notification] avoid leaking cnxsets (closes #3243810) · f7a738afc295
      Julien Cristau authored
      When sending notifications, we get each recipient as either an email
      address or a CWUser.  In the latter case, we create a temporary session
      for that user and use it to send the mail.  However, if we later decided
      to not send the mail after all, we'd leak the session and its cnxset.
      Add a try block inside the loop to make sure the temporary sessions are
      closed properly.
      
      --HG--
      branch : stable
      f7a738afc295
  13. 17 Dec, 2013 1 commit
  14. 13 Jun, 2013 2 commits
    • Julien Cristau's avatar
      notification: use viewargs for notif_entity_updated instead of transaction_data · e4ea8f9ffa11
      Julien Cristau authored
      Now that notifications use separate sessions, they can't rely on the
      original transaction_data being around, so pass the data through view
      arguments instead, so the notification view knows what changed on
      updated entities.
      
      Closes #2936180
      e4ea8f9ffa11
    • Julien Cristau's avatar
      notification: properly handle cnx and lifetime of the hijacked session · 63cf580accfc
      Julien Cristau authored
      When we create a session for the notification rendering, we need to
      1) give it a cnxset
      2) commit and close it after we're done
      3) restore the original session for subsequent notifications
      
      This changes the ordering of actual mail sending, since there are
      several different commits involved, but I don't see a way to fix that
      short of restoring hijack_user.
      
      Related to #2934523
      63cf580accfc
  15. 12 Jun, 2013 1 commit
  16. 25 Apr, 2013 3 commits
  17. 22 Apr, 2013 1 commit
  18. 21 May, 2014 1 commit
  19. 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
  20. 28 Sep, 2011 1 commit
  21. 11 Jan, 2011 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.
      9ab2b4c74baf
  23. 11 May, 2010 1 commit
  24. 28 Apr, 2010 2 commits
  25. 17 Mar, 2010 1 commit
  26. 09 Mar, 2010 1 commit
  27. 26 Feb, 2010 1 commit
  28. 13 Jan, 2010 1 commit
  29. 07 Jan, 2010 1 commit
  30. 08 Dec, 2009 1 commit
  31. 19 Nov, 2009 1 commit
    • Sylvain Thénault's avatar
      reldefsecurity branch : · 7ca53fc72a0a
      Sylvain Thénault authored
      * follow yams default branch api changes
      * now consider permissions on relation definitions, not relation types.
      
      This is still experimental.
      
      --HG--
      branch : reldefsecurity
      7ca53fc72a0a
  32. 15 Oct, 2009 1 commit
  33. 06 Oct, 2009 1 commit
  34. 29 Sep, 2009 1 commit
  35. 23 Sep, 2009 2 commits