udata 10.3.1.dev34819__py2.py3-none-any.whl → 10.3.1.dev34849__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of udata might be problematic. Click here for more details.
- udata/api/fields.py +8 -0
- udata/commands/fixtures.py +7 -1
- udata/core/discussions/api.py +113 -10
- udata/core/discussions/csv.py +2 -0
- udata/core/discussions/forms.py +14 -1
- udata/core/discussions/models.py +57 -3
- udata/core/discussions/permissions.py +31 -9
- udata/core/discussions/tasks.py +3 -3
- udata/core/spam/models.py +4 -0
- udata/forms/fields.py +10 -8
- udata/harvest/backends/maaf.py +234 -0
- udata/harvest/backends/maaf.xsd +362 -0
- udata/harvest/tests/person.jsonld +72 -0
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js → 11.8a2f7828175824bcd74b.js} +3 -3
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js.map → 11.8a2f7828175824bcd74b.js.map} +1 -1
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js → 13.39e106d56f794ebd06a0.js} +2 -2
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js.map → 13.39e106d56f794ebd06a0.js.map} +1 -1
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js → 17.70cbb4a91b002338007e.js} +2 -2
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js.map → 17.70cbb4a91b002338007e.js.map} +1 -1
- udata/static/chunks/{19.f03a102365af4315f9db.js → 19.df16abde17a42033a7f8.js} +3 -3
- udata/static/chunks/{19.f03a102365af4315f9db.js.map → 19.df16abde17a42033a7f8.js.map} +1 -1
- udata/static/chunks/{5.0fa1408dae4e76b87b2e.js → 5.5660483641193b7f8295.js} +3 -3
- udata/static/chunks/{5.0fa1408dae4e76b87b2e.js.map → 5.5660483641193b7f8295.js.map} +1 -1
- udata/static/chunks/{6.d663709d877baa44a71e.js → 6.30dce49d17db07600b06.js} +3 -3
- udata/static/chunks/{6.d663709d877baa44a71e.js.map → 6.30dce49d17db07600b06.js.map} +1 -1
- udata/static/chunks/{8.778091d55cd8ea39af6b.js → 8.54e44b102164ae5e7a67.js} +2 -2
- udata/static/chunks/{8.778091d55cd8ea39af6b.js.map → 8.54e44b102164ae5e7a67.js.map} +1 -1
- udata/static/common.js +1 -1
- udata/static/common.js.map +1 -1
- udata/templates/mail/discussion_closed.html +4 -3
- udata/templates/mail/discussion_closed.txt +1 -1
- udata/templates/mail/new_discussion_comment.html +2 -2
- udata/tests/test_discussions.py +281 -3
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/METADATA +3 -1
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/RECORD +39 -36
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/entry_points.txt +1 -0
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/LICENSE +0 -0
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/WHEEL +0 -0
- {udata-10.3.1.dev34819.dist-info → udata-10.3.1.dev34849.dist-info}/top_level.txt +0 -0
udata/static/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e){function __webpack_require__(c){if(a[c])return a[c].exports;var r=a[c]={exports:{},id:c,loaded:!1};return e[c].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var c=window.webpackJsonp;window.webpackJsonp=function(f,
|
|
1
|
+
!function(e){function __webpack_require__(c){if(a[c])return a[c].exports;var r=a[c]={exports:{},id:c,loaded:!1};return e[c].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var c=window.webpackJsonp;window.webpackJsonp=function(f,b){for(var t,d,_=0,n=[];_<f.length;_++)d=f[_],r[d]&&n.push.apply(n,r[d]),r[d]=0;for(t in b){var i=b[t];switch(typeof i){case"object":e[t]=function(c){var a=c.slice(1),r=c[0];return function(c,f,b){e[r].apply(this,[c,f,b].concat(a))}}(i);break;case"function":e[t]=i;break;default:e[t]=e[i]}}for(c&&c(f,b);n.length;)n.shift().call(null,__webpack_require__);if(b[0])return a[0]=0,__webpack_require__(0)};var a={},r={31:0};__webpack_require__.e=function(e,c){if(0===r[e])return c.call(null,__webpack_require__);if(void 0!==r[e])r[e].push(c);else{r[e]=[c];var a=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.src=__webpack_require__.p+"chunks/"+e+"."+{0:"4dd4f378428d1eed85c8",1:"0a96f54313c89e541ccb",2:"c67aa76cc078c193aed5",3:"174a03e48d267820919b",4:"98dca3045c034c154d5f",5:"5660483641193b7f8295",6:"30dce49d17db07600b06",7:"896bbffe39433bb598f7",8:"54e44b102164ae5e7a67",9:"033d7e190ca9e226a5d0",10:"8ca60413647062717b1e",11:"8a2f7828175824bcd74b",12:"1be61e0201691821bff6",13:"39e106d56f794ebd06a0",14:"bc3f6bc0a67517e7b30f",15:"2f5d8e3d4aa4c46188d7",16:"aaa39ef2d7e82594efc8",17:"70cbb4a91b002338007e",18:"56444ebd2456a4ba2201",19:"df16abde17a42033a7f8",20:"3d4e02d1205a3c9e26c5",21:"af1610ce169cf6d1cf4e",22:"6a69068a7dd9d767dea1",23:"663b89b79d755a70deef",24:"d149cf025cbbca231d88",25:"1fafd6424761185cc14b",26:"402064cda3665d56f7fc",27:"997802f273a0c88f7b6d",28:"e68c475c6ca1e2eec92c",29:"2f4a04c61d75f2ef18ab",30:"e97e10c9246818e2b4b2",32:"03cc9867716dd58b9302",33:"011b367beb543774f950"}[e]+".js",a.appendChild(f)}},__webpack_require__.m=e,__webpack_require__.c=a,__webpack_require__.p="/static/"}(function(e){for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c))switch(typeof e[c]){case"function":break;case"object":e[c]=function(c){var a=c.slice(1),r=e[c[0]];return function(e,c,f){r.apply(this,[e,c,f].concat(a))}}(e[c]);break;default:e[c]=e[e[c]]}return e}([]));
|
|
2
2
|
//# sourceMappingURL=common.js.map
|
udata/static/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///common.js","webpack:///webpack/bootstrap 44a61f162b1337addb9e"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","parentJsonpFunction","window","chunkIds","moreModules","chunkId","i","callbacks","length","installedChunks","push","apply","_m","args","slice","templateId","a","b","c","this","concat","shift","31","e","callback","undefined","head","document","getElementsByTagName","script","createElement","type","charset","async","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","32","33","appendChild","m","Object","prototype","hasOwnProperty","fn"],"mappings":"CAAS,SAAUA,GCwDnB,QAAAC,qBAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,qBAGAI,EAAAE,QAAA,EAGAF,EAAAD,QA3EA,GAAAK,GAAAC,OAAA,YACAA,QAAA,sBAAAC,EAAAC,GAIA,IADA,GAAAV,GAAAW,EAAAC,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BD,EAAAF,EAAAG,GACAG,EAAAJ,IACAE,EAAAG,KAAAC,MAAAJ,EAAAE,EAAAJ,IACAI,EAAAJ,GAAA,CAEA,KAAAX,IAAAU,GAAA,CACA,GAAAQ,GAAAR,EAAAV,EAGA,cAAAkB,IACA,aAEApB,EAAAE,GAAA,SAAAkB,GACA,GAAAC,GAAAD,EAAAE,MAAA,GAAAC,EAAAH,EAAA,EACA,iBAAAI,EAAAC,EAAAC,GACA1B,EAAAuB,GAAAJ,MAAAQ,MAAAH,EAAAC,EAAAC,GAAAE,OAAAP,MAEMD,EACN,MACA,gBAEApB,EAAAE,GAAAkB,CACA,MACA,SAEApB,EAAAE,GAAAF,EAAAoB,IAKA,IADAX,KAAAE,EAAAC,GACAG,EAAAC,QACAD,EAAAc,QAAArB,KAAA,KAAAP,oBACA,IAAAW,EAAA,GAEA,MADAT,GAAA,KACAF,oBAAA,GAKA,IAAAE,MAKAc,GACAa,GAAA,EA6BA7B,qBAAA8B,EAAA,SAAAlB,EAAAmB,GAEA,OAAAf,EAAAJ,GACA,MAAAmB,GAAAxB,KAAA,KAAAP,oBAGA,IAAAgC,SAAAhB,EAAAJ,GACAI,EAAAJ,GAAAK,KAAAc,OACI,CAEJf,EAAAJ,IAAAmB,EACA,IAAAE,GAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,SACAD,GAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EAEAJ,EAAAK,IAAAzC,oBAAA0C,EAAA,UAAA9B,EAAA,KAAsE+B,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAAk5B/D,GAAA,MACx9BqB,EAAA2C,YAAAxC,KAKApC,oBAAA6E,EAAA9E,EAGAC,oBAAAyB,EAAAvB,EAGAF,oBAAA0C,EAAA,YDIW,SAAS3C,GAEnB,IAAI,GAAIc,KAAKd,GACZ,GAAG+E,OAAOC,UAAUC,eAAezE,KAAKR,EAASc,GAChD,aAAcd,GAAQc,IACtB,IAAK,WAAY,KACjB,KAAK,SAEJd,EAAQc,GAAM,SAASM,GACtB,GAAIC,GAAOD,EAAGE,MAAM,GAAI4D,EAAKlF,EAAQoB,EAAG,GACxC,OAAO,UAAUI,EAAEC,EAAEC,GACpBwD,EAAG/D,MAAMQ,MAAOH,EAAEC,EAAEC,GAAGE,OAAOP,MAE9BrB,EAAQc,GACV,MACD,SAECd,EAAQc,GAAKd,EAAQA,EAAQc,IAKhC,MAAOd","file":"common.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// install a JSONP callback for chunk loading\n/******/ \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n/******/ \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n/******/ \t\t// add \"moreModules\" to the modules object,\n/******/ \t\t// then flag all \"chunkIds\" as loaded and fire callback\n/******/ \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n/******/ \t\tfor(;i < chunkIds.length; i++) {\n/******/ \t\t\tchunkId = chunkIds[i];\n/******/ \t\t\tif(installedChunks[chunkId])\n/******/ \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n/******/ \t\t\tinstalledChunks[chunkId] = 0;\n/******/ \t\t}\n/******/ \t\tfor(moduleId in moreModules) {\n/******/ \t\t\tvar _m = moreModules[moduleId];\n/******/\n/******/ \t\t\t// Check if module is deduplicated\n/******/ \t\t\tswitch(typeof _m) {\n/******/ \t\t\tcase \"object\":\n/******/ \t\t\t\t// Module can be created from a template\n/******/ \t\t\t\tmodules[moduleId] = (function(_m) {\n/******/ \t\t\t\t\tvar args = _m.slice(1), templateId = _m[0];\n/******/ \t\t\t\t\treturn function (a,b,c) {\n/******/ \t\t\t\t\t\tmodules[templateId].apply(this, [a,b,c].concat(args));\n/******/ \t\t\t\t\t};\n/******/ \t\t\t\t}(_m));\n/******/ \t\t\t\tbreak;\n/******/ \t\t\tcase \"function\":\n/******/ \t\t\t\t// Normal module\n/******/ \t\t\t\tmodules[moduleId] = _m;\n/******/ \t\t\t\tbreak;\n/******/ \t\t\tdefault:\n/******/ \t\t\t\t// Module is a copy of another module\n/******/ \t\t\t\tmodules[moduleId] = modules[_m];\n/******/ \t\t\t\tbreak;\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n/******/ \t\twhile(callbacks.length)\n/******/ \t\t\tcallbacks.shift().call(null, __webpack_require__);\n/******/ \t\tif(moreModules[0]) {\n/******/ \t\t\tinstalledModules[0] = 0;\n/******/ \t\t\treturn __webpack_require__(0);\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// object to store loaded and loading chunks\n/******/ \t// \"0\" means \"already loaded\"\n/******/ \t// Array means \"loading\", array contains callbacks\n/******/ \tvar installedChunks = {\n/******/ \t\t31:0\n/******/ \t};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/ \t// This file contains only the entry chunk.\n/******/ \t// The chunk loading function for additional chunks\n/******/ \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n/******/ \t\t// \"0\" is the signal for \"already loaded\"\n/******/ \t\tif(installedChunks[chunkId] === 0)\n/******/ \t\t\treturn callback.call(null, __webpack_require__);\n/******/\n/******/ \t\t// an array means \"currently loading\".\n/******/ \t\tif(installedChunks[chunkId] !== undefined) {\n/******/ \t\t\tinstalledChunks[chunkId].push(callback);\n/******/ \t\t} else {\n/******/ \t\t\t// start chunk loading\n/******/ \t\t\tinstalledChunks[chunkId] = [callback];\n/******/ \t\t\tvar head = document.getElementsByTagName('head')[0];\n/******/ \t\t\tvar script = document.createElement('script');\n/******/ \t\t\tscript.type = 'text/javascript';\n/******/ \t\t\tscript.charset = 'utf-8';\n/******/ \t\t\tscript.async = true;\n/******/\n/******/ \t\t\tscript.src = __webpack_require__.p + \"chunks/\" + chunkId + \".\" + {\"0\":\"4dd4f378428d1eed85c8\",\"1\":\"0a96f54313c89e541ccb\",\"2\":\"c67aa76cc078c193aed5\",\"3\":\"174a03e48d267820919b\",\"4\":\"98dca3045c034c154d5f\",\"5\":\"0fa1408dae4e76b87b2e\",\"6\":\"d663709d877baa44a71e\",\"7\":\"896bbffe39433bb598f7\",\"8\":\"778091d55cd8ea39af6b\",\"9\":\"033d7e190ca9e226a5d0\",\"10\":\"8ca60413647062717b1e\",\"11\":\"b6f741fcc366abfad9c4\",\"12\":\"1be61e0201691821bff6\",\"13\":\"2d06442dd9a05d9777b5\",\"14\":\"bc3f6bc0a67517e7b30f\",\"15\":\"2f5d8e3d4aa4c46188d7\",\"16\":\"aaa39ef2d7e82594efc8\",\"17\":\"e8e4caaad5cb0cc0bacc\",\"18\":\"56444ebd2456a4ba2201\",\"19\":\"f03a102365af4315f9db\",\"20\":\"3d4e02d1205a3c9e26c5\",\"21\":\"af1610ce169cf6d1cf4e\",\"22\":\"6a69068a7dd9d767dea1\",\"23\":\"663b89b79d755a70deef\",\"24\":\"d149cf025cbbca231d88\",\"25\":\"1fafd6424761185cc14b\",\"26\":\"402064cda3665d56f7fc\",\"27\":\"997802f273a0c88f7b6d\",\"28\":\"e68c475c6ca1e2eec92c\",\"29\":\"2f4a04c61d75f2ef18ab\",\"30\":\"e97e10c9246818e2b4b2\",\"32\":\"03cc9867716dd58b9302\",\"33\":\"011b367beb543774f950\"}[chunkId] + \".js\";\n/******/ \t\t\thead.appendChild(script);\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/static/\";\n/******/ })\n/************************************************************************/\n/******/ ((function(modules) {\n\t// Check all modules for deduplicated modules\n\tfor(var i in modules) {\n\t\tif(Object.prototype.hasOwnProperty.call(modules, i)) {\n\t\t\tswitch(typeof modules[i]) {\n\t\t\tcase \"function\": break;\n\t\t\tcase \"object\":\n\t\t\t\t// Module can be created from a template\n\t\t\t\tmodules[i] = (function(_m) {\n\t\t\t\t\tvar args = _m.slice(1), fn = modules[_m[0]];\n\t\t\t\t\treturn function (a,b,c) {\n\t\t\t\t\t\tfn.apply(this, [a,b,c].concat(args));\n\t\t\t\t\t};\n\t\t\t\t}(modules[i]));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Module is a copy of another module\n\t\t\t\tmodules[i] = modules[modules[i]];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn modules;\n}([])));\n\n\n/** WEBPACK FOOTER **\n ** common.js\n **/"," \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tvar _m = moreModules[moduleId];\n\n \t\t\t// Check if module is deduplicated\n \t\t\tswitch(typeof _m) {\n \t\t\tcase \"object\":\n \t\t\t\t// Module can be created from a template\n \t\t\t\tmodules[moduleId] = (function(_m) {\n \t\t\t\t\tvar args = _m.slice(1), templateId = _m[0];\n \t\t\t\t\treturn function (a,b,c) {\n \t\t\t\t\t\tmodules[templateId].apply(this, [a,b,c].concat(args));\n \t\t\t\t\t};\n \t\t\t\t}(_m));\n \t\t\t\tbreak;\n \t\t\tcase \"function\":\n \t\t\t\t// Normal module\n \t\t\t\tmodules[moduleId] = _m;\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\t// Module is a copy of another module\n \t\t\t\tmodules[moduleId] = modules[_m];\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t31:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"chunks/\" + chunkId + \".\" + {\"0\":\"4dd4f378428d1eed85c8\",\"1\":\"0a96f54313c89e541ccb\",\"2\":\"c67aa76cc078c193aed5\",\"3\":\"174a03e48d267820919b\",\"4\":\"98dca3045c034c154d5f\",\"5\":\"0fa1408dae4e76b87b2e\",\"6\":\"d663709d877baa44a71e\",\"7\":\"896bbffe39433bb598f7\",\"8\":\"778091d55cd8ea39af6b\",\"9\":\"033d7e190ca9e226a5d0\",\"10\":\"8ca60413647062717b1e\",\"11\":\"b6f741fcc366abfad9c4\",\"12\":\"1be61e0201691821bff6\",\"13\":\"2d06442dd9a05d9777b5\",\"14\":\"bc3f6bc0a67517e7b30f\",\"15\":\"2f5d8e3d4aa4c46188d7\",\"16\":\"aaa39ef2d7e82594efc8\",\"17\":\"e8e4caaad5cb0cc0bacc\",\"18\":\"56444ebd2456a4ba2201\",\"19\":\"f03a102365af4315f9db\",\"20\":\"3d4e02d1205a3c9e26c5\",\"21\":\"af1610ce169cf6d1cf4e\",\"22\":\"6a69068a7dd9d767dea1\",\"23\":\"663b89b79d755a70deef\",\"24\":\"d149cf025cbbca231d88\",\"25\":\"1fafd6424761185cc14b\",\"26\":\"402064cda3665d56f7fc\",\"27\":\"997802f273a0c88f7b6d\",\"28\":\"e68c475c6ca1e2eec92c\",\"29\":\"2f4a04c61d75f2ef18ab\",\"30\":\"e97e10c9246818e2b4b2\",\"32\":\"03cc9867716dd58b9302\",\"33\":\"011b367beb543774f950\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/static/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 44a61f162b1337addb9e\n **/"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///common.js","webpack:///webpack/bootstrap 02b371f3b7c1f7cc251e"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","parentJsonpFunction","window","chunkIds","moreModules","chunkId","i","callbacks","length","installedChunks","push","apply","_m","args","slice","templateId","a","b","c","this","concat","shift","31","e","callback","undefined","head","document","getElementsByTagName","script","createElement","type","charset","async","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","32","33","appendChild","m","Object","prototype","hasOwnProperty","fn"],"mappings":"CAAS,SAAUA,GCwDnB,QAAAC,qBAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,qBAGAI,EAAAE,QAAA,EAGAF,EAAAD,QA3EA,GAAAK,GAAAC,OAAA,YACAA,QAAA,sBAAAC,EAAAC,GAIA,IADA,GAAAV,GAAAW,EAAAC,EAAA,EAAAC,KACQD,EAAAH,EAAAK,OAAoBF,IAC5BD,EAAAF,EAAAG,GACAG,EAAAJ,IACAE,EAAAG,KAAAC,MAAAJ,EAAAE,EAAAJ,IACAI,EAAAJ,GAAA,CAEA,KAAAX,IAAAU,GAAA,CACA,GAAAQ,GAAAR,EAAAV,EAGA,cAAAkB,IACA,aAEApB,EAAAE,GAAA,SAAAkB,GACA,GAAAC,GAAAD,EAAAE,MAAA,GAAAC,EAAAH,EAAA,EACA,iBAAAI,EAAAC,EAAAC,GACA1B,EAAAuB,GAAAJ,MAAAQ,MAAAH,EAAAC,EAAAC,GAAAE,OAAAP,MAEMD,EACN,MACA,gBAEApB,EAAAE,GAAAkB,CACA,MACA,SAEApB,EAAAE,GAAAF,EAAAoB,IAKA,IADAX,KAAAE,EAAAC,GACAG,EAAAC,QACAD,EAAAc,QAAArB,KAAA,KAAAP,oBACA,IAAAW,EAAA,GAEA,MADAT,GAAA,KACAF,oBAAA,GAKA,IAAAE,MAKAc,GACAa,GAAA,EA6BA7B,qBAAA8B,EAAA,SAAAlB,EAAAmB,GAEA,OAAAf,EAAAJ,GACA,MAAAmB,GAAAxB,KAAA,KAAAP,oBAGA,IAAAgC,SAAAhB,EAAAJ,GACAI,EAAAJ,GAAAK,KAAAc,OACI,CAEJf,EAAAJ,IAAAmB,EACA,IAAAE,GAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,SACAD,GAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EAEAJ,EAAAK,IAAAzC,oBAAA0C,EAAA,UAAA9B,EAAA,KAAsE+B,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAAk5B/D,GAAA,MACx9BqB,EAAA2C,YAAAxC,KAKApC,oBAAA6E,EAAA9E,EAGAC,oBAAAyB,EAAAvB,EAGAF,oBAAA0C,EAAA,YDIW,SAAS3C,GAEnB,IAAI,GAAIc,KAAKd,GACZ,GAAG+E,OAAOC,UAAUC,eAAezE,KAAKR,EAASc,GAChD,aAAcd,GAAQc,IACtB,IAAK,WAAY,KACjB,KAAK,SAEJd,EAAQc,GAAM,SAASM,GACtB,GAAIC,GAAOD,EAAGE,MAAM,GAAI4D,EAAKlF,EAAQoB,EAAG,GACxC,OAAO,UAAUI,EAAEC,EAAEC,GACpBwD,EAAG/D,MAAMQ,MAAOH,EAAEC,EAAEC,GAAGE,OAAOP,MAE9BrB,EAAQc,GACV,MACD,SAECd,EAAQc,GAAKd,EAAQA,EAAQc,IAKhC,MAAOd","file":"common.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// install a JSONP callback for chunk loading\n/******/ \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n/******/ \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n/******/ \t\t// add \"moreModules\" to the modules object,\n/******/ \t\t// then flag all \"chunkIds\" as loaded and fire callback\n/******/ \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n/******/ \t\tfor(;i < chunkIds.length; i++) {\n/******/ \t\t\tchunkId = chunkIds[i];\n/******/ \t\t\tif(installedChunks[chunkId])\n/******/ \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n/******/ \t\t\tinstalledChunks[chunkId] = 0;\n/******/ \t\t}\n/******/ \t\tfor(moduleId in moreModules) {\n/******/ \t\t\tvar _m = moreModules[moduleId];\n/******/\n/******/ \t\t\t// Check if module is deduplicated\n/******/ \t\t\tswitch(typeof _m) {\n/******/ \t\t\tcase \"object\":\n/******/ \t\t\t\t// Module can be created from a template\n/******/ \t\t\t\tmodules[moduleId] = (function(_m) {\n/******/ \t\t\t\t\tvar args = _m.slice(1), templateId = _m[0];\n/******/ \t\t\t\t\treturn function (a,b,c) {\n/******/ \t\t\t\t\t\tmodules[templateId].apply(this, [a,b,c].concat(args));\n/******/ \t\t\t\t\t};\n/******/ \t\t\t\t}(_m));\n/******/ \t\t\t\tbreak;\n/******/ \t\t\tcase \"function\":\n/******/ \t\t\t\t// Normal module\n/******/ \t\t\t\tmodules[moduleId] = _m;\n/******/ \t\t\t\tbreak;\n/******/ \t\t\tdefault:\n/******/ \t\t\t\t// Module is a copy of another module\n/******/ \t\t\t\tmodules[moduleId] = modules[_m];\n/******/ \t\t\t\tbreak;\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n/******/ \t\twhile(callbacks.length)\n/******/ \t\t\tcallbacks.shift().call(null, __webpack_require__);\n/******/ \t\tif(moreModules[0]) {\n/******/ \t\t\tinstalledModules[0] = 0;\n/******/ \t\t\treturn __webpack_require__(0);\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// object to store loaded and loading chunks\n/******/ \t// \"0\" means \"already loaded\"\n/******/ \t// Array means \"loading\", array contains callbacks\n/******/ \tvar installedChunks = {\n/******/ \t\t31:0\n/******/ \t};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/ \t// This file contains only the entry chunk.\n/******/ \t// The chunk loading function for additional chunks\n/******/ \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n/******/ \t\t// \"0\" is the signal for \"already loaded\"\n/******/ \t\tif(installedChunks[chunkId] === 0)\n/******/ \t\t\treturn callback.call(null, __webpack_require__);\n/******/\n/******/ \t\t// an array means \"currently loading\".\n/******/ \t\tif(installedChunks[chunkId] !== undefined) {\n/******/ \t\t\tinstalledChunks[chunkId].push(callback);\n/******/ \t\t} else {\n/******/ \t\t\t// start chunk loading\n/******/ \t\t\tinstalledChunks[chunkId] = [callback];\n/******/ \t\t\tvar head = document.getElementsByTagName('head')[0];\n/******/ \t\t\tvar script = document.createElement('script');\n/******/ \t\t\tscript.type = 'text/javascript';\n/******/ \t\t\tscript.charset = 'utf-8';\n/******/ \t\t\tscript.async = true;\n/******/\n/******/ \t\t\tscript.src = __webpack_require__.p + \"chunks/\" + chunkId + \".\" + {\"0\":\"4dd4f378428d1eed85c8\",\"1\":\"0a96f54313c89e541ccb\",\"2\":\"c67aa76cc078c193aed5\",\"3\":\"174a03e48d267820919b\",\"4\":\"98dca3045c034c154d5f\",\"5\":\"5660483641193b7f8295\",\"6\":\"30dce49d17db07600b06\",\"7\":\"896bbffe39433bb598f7\",\"8\":\"54e44b102164ae5e7a67\",\"9\":\"033d7e190ca9e226a5d0\",\"10\":\"8ca60413647062717b1e\",\"11\":\"8a2f7828175824bcd74b\",\"12\":\"1be61e0201691821bff6\",\"13\":\"39e106d56f794ebd06a0\",\"14\":\"bc3f6bc0a67517e7b30f\",\"15\":\"2f5d8e3d4aa4c46188d7\",\"16\":\"aaa39ef2d7e82594efc8\",\"17\":\"70cbb4a91b002338007e\",\"18\":\"56444ebd2456a4ba2201\",\"19\":\"df16abde17a42033a7f8\",\"20\":\"3d4e02d1205a3c9e26c5\",\"21\":\"af1610ce169cf6d1cf4e\",\"22\":\"6a69068a7dd9d767dea1\",\"23\":\"663b89b79d755a70deef\",\"24\":\"d149cf025cbbca231d88\",\"25\":\"1fafd6424761185cc14b\",\"26\":\"402064cda3665d56f7fc\",\"27\":\"997802f273a0c88f7b6d\",\"28\":\"e68c475c6ca1e2eec92c\",\"29\":\"2f4a04c61d75f2ef18ab\",\"30\":\"e97e10c9246818e2b4b2\",\"32\":\"03cc9867716dd58b9302\",\"33\":\"011b367beb543774f950\"}[chunkId] + \".js\";\n/******/ \t\t\thead.appendChild(script);\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/static/\";\n/******/ })\n/************************************************************************/\n/******/ ((function(modules) {\n\t// Check all modules for deduplicated modules\n\tfor(var i in modules) {\n\t\tif(Object.prototype.hasOwnProperty.call(modules, i)) {\n\t\t\tswitch(typeof modules[i]) {\n\t\t\tcase \"function\": break;\n\t\t\tcase \"object\":\n\t\t\t\t// Module can be created from a template\n\t\t\t\tmodules[i] = (function(_m) {\n\t\t\t\t\tvar args = _m.slice(1), fn = modules[_m[0]];\n\t\t\t\t\treturn function (a,b,c) {\n\t\t\t\t\t\tfn.apply(this, [a,b,c].concat(args));\n\t\t\t\t\t};\n\t\t\t\t}(modules[i]));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Module is a copy of another module\n\t\t\t\tmodules[i] = modules[modules[i]];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn modules;\n}([])));\n\n\n/** WEBPACK FOOTER **\n ** common.js\n **/"," \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tvar _m = moreModules[moduleId];\n\n \t\t\t// Check if module is deduplicated\n \t\t\tswitch(typeof _m) {\n \t\t\tcase \"object\":\n \t\t\t\t// Module can be created from a template\n \t\t\t\tmodules[moduleId] = (function(_m) {\n \t\t\t\t\tvar args = _m.slice(1), templateId = _m[0];\n \t\t\t\t\treturn function (a,b,c) {\n \t\t\t\t\t\tmodules[templateId].apply(this, [a,b,c].concat(args));\n \t\t\t\t\t};\n \t\t\t\t}(_m));\n \t\t\t\tbreak;\n \t\t\tcase \"function\":\n \t\t\t\t// Normal module\n \t\t\t\tmodules[moduleId] = _m;\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\t// Module is a copy of another module\n \t\t\t\tmodules[moduleId] = modules[_m];\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t31:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"chunks/\" + chunkId + \".\" + {\"0\":\"4dd4f378428d1eed85c8\",\"1\":\"0a96f54313c89e541ccb\",\"2\":\"c67aa76cc078c193aed5\",\"3\":\"174a03e48d267820919b\",\"4\":\"98dca3045c034c154d5f\",\"5\":\"5660483641193b7f8295\",\"6\":\"30dce49d17db07600b06\",\"7\":\"896bbffe39433bb598f7\",\"8\":\"54e44b102164ae5e7a67\",\"9\":\"033d7e190ca9e226a5d0\",\"10\":\"8ca60413647062717b1e\",\"11\":\"8a2f7828175824bcd74b\",\"12\":\"1be61e0201691821bff6\",\"13\":\"39e106d56f794ebd06a0\",\"14\":\"bc3f6bc0a67517e7b30f\",\"15\":\"2f5d8e3d4aa4c46188d7\",\"16\":\"aaa39ef2d7e82594efc8\",\"17\":\"70cbb4a91b002338007e\",\"18\":\"56444ebd2456a4ba2201\",\"19\":\"df16abde17a42033a7f8\",\"20\":\"3d4e02d1205a3c9e26c5\",\"21\":\"af1610ce169cf6d1cf4e\",\"22\":\"6a69068a7dd9d767dea1\",\"23\":\"663b89b79d755a70deef\",\"24\":\"d149cf025cbbca231d88\",\"25\":\"1fafd6424761185cc14b\",\"26\":\"402064cda3665d56f7fc\",\"27\":\"997802f273a0c88f7b6d\",\"28\":\"e68c475c6ca1e2eec92c\",\"29\":\"2f4a04c61d75f2ef18ab\",\"30\":\"e97e10c9246818e2b4b2\",\"32\":\"03cc9867716dd58b9302\",\"33\":\"011b367beb543774f950\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/static/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 02b371f3b7c1f7cc251e\n **/"],"sourceRoot":""}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
type=discussion.subject.verbose_name,
|
|
8
8
|
user=(
|
|
9
9
|
'<a href="'|safe
|
|
10
|
-
+
|
|
10
|
+
+ discussion.closed_by_org_or_user.external_url_with_campaign
|
|
11
11
|
+ '">'|safe
|
|
12
|
-
+
|
|
12
|
+
+ discussion.closed_by_name
|
|
13
13
|
+ '</a>'|safe
|
|
14
14
|
),
|
|
15
15
|
subject=(
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
{{ discussion.title }}
|
|
28
28
|
</p>
|
|
29
29
|
|
|
30
|
+
{% if message %}
|
|
30
31
|
<p style="margin: 0;padding: 0;">
|
|
31
32
|
<b>{{ _('Message') }}:</b>
|
|
32
33
|
{{ message.content | markdown }}
|
|
33
34
|
</p>
|
|
34
|
-
|
|
35
|
+
{% endif %}
|
|
35
36
|
|
|
36
37
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
37
38
|
<tr>
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
type=discussion.subject.verbose_name,
|
|
8
8
|
user=(
|
|
9
9
|
'<a href="'|safe
|
|
10
|
-
+ message.
|
|
10
|
+
+ message.posted_by_org_or_user.external_url_with_campaign
|
|
11
11
|
+ '">'|safe
|
|
12
|
-
+ message.
|
|
12
|
+
+ message.posted_by_name
|
|
13
13
|
+ '</a>'|safe
|
|
14
14
|
),
|
|
15
15
|
subject=(
|
udata/tests/test_discussions.py
CHANGED
|
@@ -66,6 +66,7 @@ class DiscussionsTest(APITestCase):
|
|
|
66
66
|
|
|
67
67
|
discussion = discussions[0]
|
|
68
68
|
self.assertEqual(discussion.user, user)
|
|
69
|
+
self.assertIsNone(discussion.organization)
|
|
69
70
|
self.assertEqual(len(discussion.discussion), 1)
|
|
70
71
|
self.assertIsNotNone(discussion.created)
|
|
71
72
|
self.assertIsNone(discussion.closed)
|
|
@@ -79,6 +80,63 @@ class DiscussionsTest(APITestCase):
|
|
|
79
80
|
self.assertIsNotNone(message.posted_on)
|
|
80
81
|
self.assertFalse(message.is_spam())
|
|
81
82
|
|
|
83
|
+
def test_new_discussion_on_behalf_of_org(self):
|
|
84
|
+
user = self.login()
|
|
85
|
+
org1 = OrganizationFactory(editors=[user])
|
|
86
|
+
org2 = OrganizationFactory(editors=[user])
|
|
87
|
+
other_org = OrganizationFactory()
|
|
88
|
+
dataset = DatasetFactory()
|
|
89
|
+
|
|
90
|
+
response = self.post(
|
|
91
|
+
url_for("api.discussions"),
|
|
92
|
+
{
|
|
93
|
+
"organization": other_org.id,
|
|
94
|
+
"title": "not allowed",
|
|
95
|
+
"comment": "bla bla",
|
|
96
|
+
"subject": {
|
|
97
|
+
"class": "Dataset",
|
|
98
|
+
"id": dataset.id,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
self.assert400(response)
|
|
103
|
+
|
|
104
|
+
response = self.post(
|
|
105
|
+
url_for("api.discussions"),
|
|
106
|
+
{
|
|
107
|
+
"organization": org1.id,
|
|
108
|
+
"title": "test title",
|
|
109
|
+
"comment": "bla bla",
|
|
110
|
+
"subject": {
|
|
111
|
+
"class": "Dataset",
|
|
112
|
+
"id": dataset.id,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
)
|
|
116
|
+
self.assert201(response)
|
|
117
|
+
assert response.json["organization"]["id"] == str(org1.id)
|
|
118
|
+
assert response.json["user"]["id"] == str(user.id)
|
|
119
|
+
assert response.json["discussion"][0]["posted_by_organization"]["id"] == str(org1.id)
|
|
120
|
+
assert response.json["discussion"][0]["posted_by"]["id"] == str(user.id)
|
|
121
|
+
|
|
122
|
+
response = self.post(
|
|
123
|
+
url_for("api.discussion", id=response.json["id"]),
|
|
124
|
+
{"organization": org2.id, "comment": "A comment"},
|
|
125
|
+
)
|
|
126
|
+
self.assert200(response)
|
|
127
|
+
assert response.json["organization"]["id"] == str(org1.id)
|
|
128
|
+
assert response.json["user"]["id"] == str(user.id)
|
|
129
|
+
assert response.json["discussion"][0]["posted_by_organization"]["id"] == str(org1.id)
|
|
130
|
+
assert response.json["discussion"][0]["posted_by"]["id"] == str(user.id)
|
|
131
|
+
assert response.json["discussion"][1]["posted_by_organization"]["id"] == str(org2.id)
|
|
132
|
+
assert response.json["discussion"][1]["posted_by"]["id"] == str(user.id)
|
|
133
|
+
|
|
134
|
+
response = self.post(
|
|
135
|
+
url_for("api.discussion", id=response.json["id"]),
|
|
136
|
+
{"organization": other_org.id, "comment": "A comment"},
|
|
137
|
+
)
|
|
138
|
+
self.assert400(response)
|
|
139
|
+
|
|
82
140
|
@pytest.mark.options(SPAM_WORDS=["spam"])
|
|
83
141
|
def test_spam_in_new_discussion_title(self):
|
|
84
142
|
self.login()
|
|
@@ -574,7 +632,7 @@ class DiscussionsTest(APITestCase):
|
|
|
574
632
|
url_for("api.discussion", id=discussion.id),
|
|
575
633
|
{"comment": "close bla bla", "close": True},
|
|
576
634
|
)
|
|
577
|
-
|
|
635
|
+
self.assert200(response)
|
|
578
636
|
|
|
579
637
|
dataset.reload()
|
|
580
638
|
self.assertEqual(dataset.get_metrics()["discussions"], 0)
|
|
@@ -599,6 +657,22 @@ class DiscussionsTest(APITestCase):
|
|
|
599
657
|
)
|
|
600
658
|
self.assert403(response)
|
|
601
659
|
|
|
660
|
+
def test_close_discussion_without_message(self):
|
|
661
|
+
owner = self.login()
|
|
662
|
+
user = UserFactory()
|
|
663
|
+
dataset = Dataset.objects.create(title="Test dataset", owner=owner)
|
|
664
|
+
message = Message(content="bla bla", posted_by=user)
|
|
665
|
+
discussion = Discussion.objects.create(
|
|
666
|
+
subject=dataset, user=user, title="test discussion", discussion=[message]
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
with assert_emit(on_discussion_closed):
|
|
670
|
+
response = self.post(
|
|
671
|
+
url_for("api.discussion", id=discussion.id),
|
|
672
|
+
{"close": True},
|
|
673
|
+
)
|
|
674
|
+
self.assert200(response)
|
|
675
|
+
|
|
602
676
|
def test_close_discussion_permissions(self):
|
|
603
677
|
dataset = Dataset.objects.create(title="Test dataset")
|
|
604
678
|
user = UserFactory()
|
|
@@ -637,6 +711,207 @@ class DiscussionsTest(APITestCase):
|
|
|
637
711
|
self.assertEqual(dataset.get_metrics()["discussions"], 0)
|
|
638
712
|
self.assertEqual(Discussion.objects(subject=dataset).count(), 0)
|
|
639
713
|
|
|
714
|
+
def test_discussion_permissions(self):
|
|
715
|
+
admin = AdminFactory()
|
|
716
|
+
subject_owner = UserFactory()
|
|
717
|
+
user1 = UserFactory()
|
|
718
|
+
user2 = UserFactory()
|
|
719
|
+
user3 = UserFactory()
|
|
720
|
+
org = OrganizationFactory(
|
|
721
|
+
members=[Member(user=user1, role="editor"), Member(user=user2, role="editor")]
|
|
722
|
+
)
|
|
723
|
+
dataset = Dataset.objects.create(title="Test dataset", owner=subject_owner)
|
|
724
|
+
message = Message(content="bla bla", posted_by=user1)
|
|
725
|
+
message2 = Message(content="bla bla bla", posted_by=user2)
|
|
726
|
+
message3 = Message(content="bla bla bla", posted_by=user2, posted_by_organization=org)
|
|
727
|
+
discussion = Discussion.objects.create(
|
|
728
|
+
subject=dataset,
|
|
729
|
+
user=user1,
|
|
730
|
+
title="test discussion",
|
|
731
|
+
discussion=[message, message2, message3],
|
|
732
|
+
)
|
|
733
|
+
|
|
734
|
+
self.login(admin)
|
|
735
|
+
response = self.get(url_for("api.discussion", id=discussion.id))
|
|
736
|
+
assert response.json["permissions"]["edit"]
|
|
737
|
+
assert response.json["permissions"]["close"]
|
|
738
|
+
assert response.json["permissions"]["delete"]
|
|
739
|
+
assert response.json["discussion"][0]["permissions"]["edit"]
|
|
740
|
+
assert response.json["discussion"][0]["permissions"]["delete"]
|
|
741
|
+
assert response.json["discussion"][1]["permissions"]["edit"]
|
|
742
|
+
assert response.json["discussion"][1]["permissions"]["delete"]
|
|
743
|
+
assert response.json["discussion"][2]["permissions"]["edit"]
|
|
744
|
+
assert response.json["discussion"][2]["permissions"]["delete"]
|
|
745
|
+
|
|
746
|
+
self.login(subject_owner)
|
|
747
|
+
response = self.get(url_for("api.discussion", id=discussion.id))
|
|
748
|
+
assert not response.json["permissions"]["edit"]
|
|
749
|
+
assert response.json["permissions"]["close"]
|
|
750
|
+
assert not response.json["permissions"]["delete"]
|
|
751
|
+
assert not response.json["discussion"][0]["permissions"]["edit"]
|
|
752
|
+
assert not response.json["discussion"][0]["permissions"]["delete"]
|
|
753
|
+
assert not response.json["discussion"][1]["permissions"]["edit"]
|
|
754
|
+
assert not response.json["discussion"][1]["permissions"]["delete"]
|
|
755
|
+
assert not response.json["discussion"][2]["permissions"]["edit"]
|
|
756
|
+
assert not response.json["discussion"][2]["permissions"]["delete"]
|
|
757
|
+
|
|
758
|
+
self.login(user1)
|
|
759
|
+
response = self.get(url_for("api.discussion", id=discussion.id))
|
|
760
|
+
assert response.json["permissions"]["edit"]
|
|
761
|
+
assert response.json["permissions"]["close"]
|
|
762
|
+
assert response.json["permissions"]["delete"]
|
|
763
|
+
assert response.json["discussion"][0]["permissions"]["edit"]
|
|
764
|
+
assert response.json["discussion"][0]["permissions"]["delete"]
|
|
765
|
+
assert not response.json["discussion"][1]["permissions"]["edit"]
|
|
766
|
+
assert not response.json["discussion"][1]["permissions"]["delete"]
|
|
767
|
+
assert response.json["discussion"][2]["permissions"]["edit"]
|
|
768
|
+
assert response.json["discussion"][2]["permissions"]["delete"]
|
|
769
|
+
|
|
770
|
+
self.login(user2)
|
|
771
|
+
response = self.get(url_for("api.discussion", id=discussion.id))
|
|
772
|
+
assert not response.json["permissions"]["edit"]
|
|
773
|
+
assert not response.json["permissions"]["close"]
|
|
774
|
+
assert not response.json["permissions"]["delete"]
|
|
775
|
+
assert not response.json["discussion"][0]["permissions"]["edit"]
|
|
776
|
+
assert not response.json["discussion"][0]["permissions"]["delete"]
|
|
777
|
+
assert response.json["discussion"][1]["permissions"]["edit"]
|
|
778
|
+
assert response.json["discussion"][1]["permissions"]["delete"]
|
|
779
|
+
assert response.json["discussion"][2]["permissions"]["edit"]
|
|
780
|
+
assert response.json["discussion"][2]["permissions"]["delete"]
|
|
781
|
+
|
|
782
|
+
self.login(user3)
|
|
783
|
+
response = self.get(url_for("api.discussion", id=discussion.id))
|
|
784
|
+
assert not response.json["permissions"]["edit"]
|
|
785
|
+
assert not response.json["permissions"]["close"]
|
|
786
|
+
assert not response.json["permissions"]["delete"]
|
|
787
|
+
assert not response.json["discussion"][0]["permissions"]["edit"]
|
|
788
|
+
assert not response.json["discussion"][0]["permissions"]["delete"]
|
|
789
|
+
assert not response.json["discussion"][1]["permissions"]["edit"]
|
|
790
|
+
assert not response.json["discussion"][1]["permissions"]["delete"]
|
|
791
|
+
assert not response.json["discussion"][2]["permissions"]["edit"]
|
|
792
|
+
assert not response.json["discussion"][2]["permissions"]["delete"]
|
|
793
|
+
|
|
794
|
+
discussion_by_org = Discussion.objects.create(
|
|
795
|
+
subject=dataset,
|
|
796
|
+
user=user2,
|
|
797
|
+
organization=org,
|
|
798
|
+
title="test discussion",
|
|
799
|
+
discussion=[message3],
|
|
800
|
+
)
|
|
801
|
+
|
|
802
|
+
self.login(admin)
|
|
803
|
+
response = self.get(url_for("api.discussion", id=discussion_by_org.id))
|
|
804
|
+
assert response.json["permissions"]["edit"]
|
|
805
|
+
assert response.json["permissions"]["close"]
|
|
806
|
+
assert response.json["permissions"]["delete"]
|
|
807
|
+
assert response.json["discussion"][0]["permissions"]["edit"]
|
|
808
|
+
assert response.json["discussion"][0]["permissions"]["delete"]
|
|
809
|
+
|
|
810
|
+
self.login(subject_owner)
|
|
811
|
+
response = self.get(url_for("api.discussion", id=discussion_by_org.id))
|
|
812
|
+
assert not response.json["permissions"]["edit"]
|
|
813
|
+
assert response.json["permissions"]["close"]
|
|
814
|
+
assert not response.json["permissions"]["delete"]
|
|
815
|
+
assert not response.json["discussion"][0]["permissions"]["edit"]
|
|
816
|
+
assert not response.json["discussion"][0]["permissions"]["delete"]
|
|
817
|
+
|
|
818
|
+
self.login(user1)
|
|
819
|
+
response = self.get(url_for("api.discussion", id=discussion_by_org.id))
|
|
820
|
+
assert response.json["permissions"]["edit"]
|
|
821
|
+
assert response.json["permissions"]["close"]
|
|
822
|
+
assert response.json["permissions"]["delete"]
|
|
823
|
+
assert response.json["discussion"][0]["permissions"]["edit"]
|
|
824
|
+
assert response.json["discussion"][0]["permissions"]["delete"]
|
|
825
|
+
|
|
826
|
+
self.login(user2)
|
|
827
|
+
response = self.get(url_for("api.discussion", id=discussion_by_org.id))
|
|
828
|
+
assert response.json["permissions"]["edit"]
|
|
829
|
+
assert response.json["permissions"]["close"]
|
|
830
|
+
assert response.json["permissions"]["delete"]
|
|
831
|
+
assert response.json["discussion"][0]["permissions"]["edit"]
|
|
832
|
+
assert response.json["discussion"][0]["permissions"]["delete"]
|
|
833
|
+
|
|
834
|
+
self.login(user3)
|
|
835
|
+
response = self.get(url_for("api.discussion", id=discussion_by_org.id))
|
|
836
|
+
assert not response.json["permissions"]["edit"]
|
|
837
|
+
assert not response.json["permissions"]["close"]
|
|
838
|
+
assert not response.json["permissions"]["delete"]
|
|
839
|
+
assert not response.json["discussion"][0]["permissions"]["edit"]
|
|
840
|
+
assert not response.json["discussion"][0]["permissions"]["delete"]
|
|
841
|
+
|
|
842
|
+
def test_edit_discussion_title(self):
|
|
843
|
+
admin = self.login(AdminFactory())
|
|
844
|
+
user1 = UserFactory()
|
|
845
|
+
user2 = UserFactory()
|
|
846
|
+
dataset = Dataset.objects.create(title="Test dataset", owner=user1)
|
|
847
|
+
message = Message(content="bla bla", posted_by=user1)
|
|
848
|
+
message2 = Message(content="bla bla bla", posted_by=user2)
|
|
849
|
+
discussion = Discussion.objects.create(
|
|
850
|
+
subject=dataset, user=user1, title="test discussion", discussion=[message, message2]
|
|
851
|
+
)
|
|
852
|
+
self.assertEqual(len(discussion.discussion), 2)
|
|
853
|
+
|
|
854
|
+
response = self.put(url_for("api.discussion", id=discussion.id), {"title": "new title"})
|
|
855
|
+
self.assertStatus(response, 200)
|
|
856
|
+
discussion.reload()
|
|
857
|
+
assert discussion.title == "new title"
|
|
858
|
+
|
|
859
|
+
self.login(admin)
|
|
860
|
+
response = self.put(
|
|
861
|
+
url_for("api.discussion", id=discussion.id),
|
|
862
|
+
{"title": "edit by admin"},
|
|
863
|
+
)
|
|
864
|
+
self.assertStatus(response, 200)
|
|
865
|
+
discussion.reload()
|
|
866
|
+
assert discussion.title == "edit by admin"
|
|
867
|
+
|
|
868
|
+
self.login(user2)
|
|
869
|
+
response = self.put(
|
|
870
|
+
url_for("api.discussion", id=discussion.id),
|
|
871
|
+
{"title": "not allowed"},
|
|
872
|
+
)
|
|
873
|
+
self.assertStatus(response, 403)
|
|
874
|
+
|
|
875
|
+
def test_edit_discussion_comment(self):
|
|
876
|
+
admin = self.login(AdminFactory())
|
|
877
|
+
user = UserFactory()
|
|
878
|
+
dataset = Dataset.objects.create(title="Test dataset", owner=admin)
|
|
879
|
+
message = Message(content="bla bla", posted_by=user)
|
|
880
|
+
message2 = Message(content="bla bla bla", posted_by=user)
|
|
881
|
+
discussion = Discussion.objects.create(
|
|
882
|
+
subject=dataset, user=user, title="test discussion", discussion=[message, message2]
|
|
883
|
+
)
|
|
884
|
+
self.assertEqual(len(discussion.discussion), 2)
|
|
885
|
+
|
|
886
|
+
response = self.put(
|
|
887
|
+
url_for("api.discussion_comment", id=discussion.id, cidx=0), {"comment": "new body"}
|
|
888
|
+
)
|
|
889
|
+
self.assertStatus(response, 200)
|
|
890
|
+
discussion.reload()
|
|
891
|
+
assert discussion.discussion[0].content == "new body"
|
|
892
|
+
|
|
893
|
+
self.login(admin)
|
|
894
|
+
response = self.put(
|
|
895
|
+
url_for("api.discussion_comment", id=discussion.id, cidx=1),
|
|
896
|
+
{"comment": "edit by admin"},
|
|
897
|
+
)
|
|
898
|
+
self.assertStatus(response, 200)
|
|
899
|
+
discussion.reload()
|
|
900
|
+
assert discussion.discussion[1].content == "edit by admin"
|
|
901
|
+
|
|
902
|
+
response = self.put(
|
|
903
|
+
url_for("api.discussion_comment", id=discussion.id, cidx=3),
|
|
904
|
+
{"comment": "overflow edit"},
|
|
905
|
+
)
|
|
906
|
+
self.assertStatus(response, 404)
|
|
907
|
+
|
|
908
|
+
self.login(UserFactory())
|
|
909
|
+
response = self.put(
|
|
910
|
+
url_for("api.discussion_comment", id=discussion.id, cidx=0),
|
|
911
|
+
{"comment": "other user"},
|
|
912
|
+
)
|
|
913
|
+
self.assertStatus(response, 403)
|
|
914
|
+
|
|
640
915
|
def test_delete_discussion_comment(self):
|
|
641
916
|
owner = self.login(AdminFactory())
|
|
642
917
|
user = UserFactory()
|
|
@@ -688,11 +963,12 @@ class DiscussionsTest(APITestCase):
|
|
|
688
963
|
dataset = Dataset.objects.create(title="Test dataset")
|
|
689
964
|
user = UserFactory()
|
|
690
965
|
message = Message(content="bla bla", posted_by=user)
|
|
966
|
+
message2 = Message(content="bla bla bla", posted_by=user)
|
|
691
967
|
discussion = Discussion.objects.create(
|
|
692
|
-
subject=dataset, user=user, title="test discussion", discussion=[message]
|
|
968
|
+
subject=dataset, user=user, title="test discussion", discussion=[message, message2]
|
|
693
969
|
)
|
|
694
970
|
self.login()
|
|
695
|
-
response = self.delete(url_for("api.discussion_comment", id=discussion.id, cidx=
|
|
971
|
+
response = self.delete(url_for("api.discussion_comment", id=discussion.id, cidx=1))
|
|
696
972
|
self.assert403(response)
|
|
697
973
|
|
|
698
974
|
|
|
@@ -827,6 +1103,8 @@ class DiscussionsMailsTest(APITestCase):
|
|
|
827
1103
|
user=poster,
|
|
828
1104
|
title=faker.sentence(),
|
|
829
1105
|
discussion=[message, second_message, closing_message],
|
|
1106
|
+
closed=datetime.utcnow(),
|
|
1107
|
+
closed_by=owner,
|
|
830
1108
|
)
|
|
831
1109
|
|
|
832
1110
|
with capture_mails() as mails:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 10.3.1.
|
|
3
|
+
Version: 10.3.1.dev34849
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -143,6 +143,8 @@ It is collectively taken care of by members of the
|
|
|
143
143
|
|
|
144
144
|
- Add archived, deleted and private filter in dataset list api [#3298](https://github.com/opendatateam/udata/pull/3298)
|
|
145
145
|
- Exclude deleted dataservices in csv queryset [#3297](https://github.com/opendatateam/udata/pull/3297)
|
|
146
|
+
- Publish comments on behalf of org, close without message and edit/delete discussions comments [#3295](https://github.com/opendatateam/udata/pull/3295)
|
|
147
|
+
- Migrate MAAF backend from udata-front [#3300](https://github.com/opendatateam/udata/pull/3300)
|
|
146
148
|
|
|
147
149
|
## 10.3.0 (2025-04-11)
|
|
148
150
|
|