1. 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
  2. 04 Jan, 2016 3 commits
  3. 18 Dec, 2015 1 commit
    • Julien Cristau's avatar
      [entity] don't look at fetch order recursively · bfd11ffa79f7
      Julien Cristau authored
      If fetch_attrs includes relations, stop including the entities on the
      other side in our sorting.  Fixes regression from 73ea636a5562 where we
      would sort on the target entity before the attribute we wanted if the
      relation's name sorted before the attribute's.  This showed up in the
      forge/tracker cubes with Version entities being sorted by their State's
      name in preference to their version number.
  4. 21 Dec, 2015 1 commit
  5. 04 Jan, 2016 1 commit
    • Julien Cristau's avatar
      [ldapfeed] extid and cwuri aren't the same thing · 615163b17558
      Julien Cristau authored
      Historically, we used a ldap://... URI as cwuri attribute, not just the
      dn.  The extid field, OTOH, was always the dn.  So when initializing our
      dict of known entities from an ldap source, look at existing extids, not
      cwuris, to avoid importing already-existing users (and violated unicity
  6. 23 Dec, 2015 2 commits
  7. 22 Dec, 2015 7 commits
  8. 18 Dec, 2015 1 commit
  9. 22 Dec, 2015 1 commit
    • Sylvain Thénault's avatar
      [server] improve TZDatetime support · 75d752e6daf7
      Sylvain Thénault authored
      by depending on logilab-database 1.15.0 including
      https://www.logilab.org/ticket/1485893, we can now keep the tzinfo
      attribute on datetime objects for TZDatetime attributes, so one knows
      that this is a tz-aware datetime.
      To easily make it work with backends that have no tz support, we keep
      converting tz-aware datetime objects into utc naive datetime objects
      before sending them to the database.
  10. 18 Dec, 2015 4 commits
  11. 17 Dec, 2015 1 commit
  12. 09 Dec, 2015 1 commit
  13. 02 Dec, 2015 4 commits
  14. 21 Dec, 2015 2 commits
  15. 15 Dec, 2015 2 commits
  16. 21 Dec, 2015 1 commit
  17. 15 Dec, 2015 2 commits
  18. 21 Dec, 2015 4 commits
    • Rémi Cardona's avatar
      [devtools] Use super() in TestServerConfiguration.__init__() · 3dfed980071c
      Rémi Cardona authored
      While cleaning up the use of init_config() in WSGIAppTC, I wondered why
      the method was trying to set the 'https_uiprops' and 'https_datadir_url'
      attributes on the config, when WebConfiguration's __init__ should be
      taking care of setting them.
      WSGIAppTC uses the default configuration - one that derives from
      ApptestConfiguration (noted as G below).
      The issue is that the class hierarchy of ApptestConfiguration includes
      TestServerConfiguration (C in the graph below) which calls
      ServerConfiguration's __init__ directly (B below). As B does not have an
      __init__ method, CubicWebConfiguration's __init__ is called directly (A
      below). This has the unintended consequence of preventing
      WebConfiguration's __init__ from being called.
        / \
       B   D
       |   |
       C   E
        \ /
      A: cwconfig.CubicWebConfiguration
      B: server.serverconfig.ServerConfiguration
      C: devtools.TestServerConfiguration
      D: web.webconfig.WebConfiguration
      E: etwist.twconfig.WebConfigurationBase
      F: devtools.BaseApptestConfiguration
      G: devtools.ApptestConfiguration
      NB: unittest_wsgi wasn't really broken, as it's the only test in
      wsgi/test/, but I figured I might as well clean it up.
      Related to #9297611.
    • Rémi Cardona's avatar
      [devtools] Fix database creation issues for CubicWebTestTC tests · d04703f54510
      Rémi Cardona authored
      To reproduce (with a purged repo):
      * python web/test/test_jscript.py
      * python web/test/unittest_views_xmlrss.py
      The '__default_empty_db__' will contain the wrong 'base_url'
      configuration, thus breaking URLs in the xmlrss tests.
      Closes #9297611.
    • Rémi Cardona's avatar
      [devtools] Fix database creation issues for CubicWebServerTC tests · baf463175505
      Rémi Cardona authored
      To reproduce (with a purged repo):
      * python web/test/unittest_web.py MiscOptionsTC
      * python web/test/unittest_views_xmlrss.py
      The core issue is that CubicWebServerConfig.default_base_url() is called
      inside init_config(), which is called during the equivalent of
      'db-create'. The '__default_empty_db__' will contain the wrong
      'base_url' configuration, thus breaking URLs in the xmlrss tests.
      Related to #9297611.
    • Rémi Cardona's avatar
  19. 20 Dec, 2015 1 commit