1. 08 Feb, 2020 1 commit
  2. 09 Mar, 2016 1 commit
    • Julien Cristau's avatar
      [web/httpcache] fix Last-Modified generation · a2091fa8cb2c
      Julien Cristau authored
      time.mktime takes a time tuple in *local* time.  We have an UTC datetime coming
      from the last_modified method, which we were interpreting as local time,
      leading to hilarity.  Use calendar.timegm instead.
      Add tests for Last-Modified generation of the 'download' and 'manage'
  3. 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
  4. 03 Apr, 2014 2 commits
  5. 26 Apr, 2013 1 commit
  6. 11 Dec, 2012 1 commit
  7. 14 Feb, 2013 1 commit
  8. 27 Nov, 2012 1 commit
    • Pierre-Yves David's avatar
      [downloadable] fix filename in HTTP header (closes #2522325, #2522324) · d74addac92bb
      Pierre-Yves David authored
      Before this changeset we use the `filename` header with utf8 encoded filename
      all the time.
      However RFC6266 says:
        The parameters "filename" and "filename*" differ only in that "filename*"
        uses the encoding defined in [RFC5987], allowing the use of characters not
        present in the ISO-8859-1 character set ([ISO-8859-1]).
      Therefore, we alter the code to:
      1. Use `filename` and `ascii` encoding whenever possible,
      2. use `filename*` with `utf8` encoding otherwise (with a filename fallback for
         old browser)
      We also switch the `content-disposition` value to attachement if filename is
      specified, this will result as a mandatory download according to RFC6266. This
      mandatory download is the expected behavior.
      We changes the filename encoding to RFC5987 which is simpler, supported by all
      and modern browser (including IE from version 6) and does not suffer from the
      continuation issue. (see ticket #2522324 for details)
      branch : stable
  9. 22 Feb, 2013 1 commit