rbbt-rest 1.7.7 → 1.7.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ae96c97e05c9cfa4ee9f482ff553982d71895a9
|
4
|
+
data.tar.gz: d07d53dfee35929449e9e6c2818bae23fba46a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f754df3a654c5cd86198022278e4e96d5e16f730e79b80a6393c79e5fd71f5ebd41de11c1c628496f9716bdbe1fab2bee877dd2b53b03f138f6d8ad0ef21492b
|
7
|
+
data.tar.gz: b06e33a16fc9c443d98ae327398d4e7b5c1390d7c3cbf860a63c3503eaed3a7a8f977d7bb196a0d1eae942b3683fe466cdfabf3e7d2f60080edf60a7b0f73e0b
|
@@ -29,7 +29,10 @@ rbbt.post = function(url, data, params){
|
|
29
29
|
if (request_params.data){
|
30
30
|
var formData = new FormData()
|
31
31
|
forHash(request_params.data, function(key,value){
|
32
|
-
|
32
|
+
if (typeof value == 'object')
|
33
|
+
formData.append(key, JSON.stringify(value))
|
34
|
+
else
|
35
|
+
formData.append(key, value)
|
33
36
|
})
|
34
37
|
request_params.data = formData
|
35
38
|
}
|
@@ -24,11 +24,19 @@ KB.list_parents = function(database, list){
|
|
24
24
|
return list.get().then(function(list_info){
|
25
25
|
var url = '/knowledge_base/user/' + database + '/collection_parents'
|
26
26
|
|
27
|
-
|
27
|
+
//url = add_parameter(url, 'collection', JSON.stringify(collection))
|
28
|
+
//return m.request({url: url, method: "POST", data:{collection:collection}})
|
29
|
+
//url = add_parameter(url, '_format', 'tsv_json')
|
30
|
+
//return rbbt.post(url, {collection: collection})
|
31
|
+
|
32
|
+
var collection = {}
|
28
33
|
collection[list.type] = list_info.entities
|
29
|
-
|
30
|
-
|
31
|
-
|
34
|
+
|
35
|
+
var data = {}
|
36
|
+
data.collection = collection
|
37
|
+
data._format = 'tsv_json'
|
38
|
+
|
39
|
+
return rbbt.post(url, data)
|
32
40
|
})
|
33
41
|
}
|
34
42
|
|
@@ -38,6 +46,7 @@ KB.list_children = function(database, list){
|
|
38
46
|
|
39
47
|
var collection = {}
|
40
48
|
collection[list.type] = list_info.entities
|
49
|
+
|
41
50
|
var data = {}
|
42
51
|
data.collection = JSON.stringify(collection)
|
43
52
|
data._format = 'tsv_json'
|
@@ -91,7 +91,7 @@ ModalComponent = function(element){
|
|
91
91
|
var header = [title, close_button];
|
92
92
|
var close_button = rbbt.mview.ibutton({onclick: ctrl.close, class:'small close', style: 'margin-top: -4px'}, m('i.icon.close'))
|
93
93
|
if (ctrl.vm.url){
|
94
|
-
var link_button = rbbt.mview.ibutton({onclick: ctrl.link, class:'small link', style: 'margin-top: -4px'}, m('a', {href: ctrl.vm.url},[ m('i.icon.
|
94
|
+
var link_button = rbbt.mview.ibutton({onclick: ctrl.link, class:'small link', style: 'margin-top: -4px'}, m('a', {href: ctrl.vm.url},[ m('i.icon.external')]))
|
95
95
|
header = [title, close_button, link_button];
|
96
96
|
}else{
|
97
97
|
header = [title, close_button];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|