1. 02 Jan, 2020 1 commit
  2. 30 Dec, 2019 1 commit
  3. 27 Dec, 2019 1 commit
  4. 13 Mar, 2019 1 commit
  5. 21 Sep, 2018 1 commit
  6. 18 Sep, 2018 3 commits
  7. 14 Sep, 2018 4 commits
  8. 03 Aug, 2018 1 commit
  9. 26 Feb, 2018 9 commits
  10. 19 Feb, 2018 1 commit
  11. 21 Feb, 2017 1 commit
  12. 17 Jan, 2017 1 commit
  13. 14 Jan, 2017 1 commit
  14. 13 Jan, 2017 3 commits
  15. 05 Jan, 2017 1 commit
  16. 03 Jan, 2017 2 commits
  17. 22 Dec, 2016 1 commit
  18. 21 Dec, 2016 5 commits
  19. 14 Nov, 2016 1 commit
  20. 19 Oct, 2016 1 commit
    • Tristan Cavelier's avatar
      Add support of OnlyOffice document (as ziplike file) · a985974c
      Tristan Cavelier authored
      Originaly, the y format (docy, xlsy, ppty) is a file extension that is use by an OnlyOffice document.
      
      An OnlyOffice document is composed by : 
      
      - a file with extension in (docy, xlsy, ppty)
      - a separate media folder containing media files (Ex: media/image1.png)
      
      Several problems : 
      
      - Two documents cannot be in the same folder
      - How to send / get from Cloudooo to ERP5 ?
      - The document cannot be stored easily in ERP5 (embedded files ? seperate images linked to the document by predecessors ??)
      - How to download an OnlyOffice document from ERP5 ? How to load it on OfficeJS ?
      
      To solve, we embbed all the files composing the document into one zip (like docx, odt, ...) : 
      
      - Two documents can be in the same folder
      - We send / get from Cloudooo as usual with portal transform
      - The document can be stored in File data in ERP5 like any other docx document.
      - document.getData allows to download the document data and JSZip can be used to extract easily the body in OfficeJS.
      
      To keep backward compatibility, a docy can be : 
      - the OnlyOffice document body (`startsWith("DOCY;v2;")`)
      - can be a zip file (`startsWith("PK\x03\x04")`) containing one file at the root of the archive + optional media folder
      
      /reviewed-on nexedi/cloudooo!8
      a985974c