falkolab.ext3.direct

Phần mềm chụp màn hình:
falkolab.ext3.direct
Các chi tiết về phần mềm:
Phiên bản: 1.1.0
Ngày tải lên: 11 May 15
Nhà phát triển: Andrey Tkachenko
Giấy phép: Miễn phí
Phổ biến: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct là một đống server-side cho ExtJS 3.
Làm thế nào để sử dụng nó?
Hãy đăng ký api và quan điểm:
& Nbsp; & gt; & gt; & gt; từ zope.configuration nhập khẩu xmlconfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; cấu hình
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; bao gồm gói = "falkolab.ext3.direct" file = "meta.zcml" / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: api
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... namespace = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: Xem
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... phép = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: Xem
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... phép = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
Direct API:
& Nbsp; & gt; & gt; & gt; in http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Authorization: bWdyOm1ncnB3 cơ bản
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 Ok
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Hết hạn: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "không gian tên": "my.app", "loại": "từ xa", "hành động": {"Liên hệ ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," tên ":" add "," len ": 0}, {" tên ":" getAll "," len ": 0}]}};
Tự động thêm nhà cung cấp:
& Nbsp; & gt; & gt; & gt; in http (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Authorization: bWdyOm1ncnB3 cơ bản
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 Ok
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Hết hạn: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "không gian tên": "my.app", "loại": "từ xa", "hành động": {"Liên hệ ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," tên ":" add "," len ": 0}, {" tên ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Và yêu cầu trực tiếp hanling (bổ sung xem ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; in http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Authorization: bWdyOm1ncnB3 cơ bản
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"hành động": "albumlist", "phương pháp": "getAll", "dữ liệu": [], "loại": "rpc", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 Ok
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"hành động": "albumlist", "tid": 1, "loại": "rpc", "phương pháp": "getAll", "kết quả": [1, 2, 3]}

là gì mới trong phiên bản này:

  • Thay đổi để hỗ trợ Python 2.6

Yêu cầu :

  • Python

Phần mềm tương tự

Linux on SX1
Linux on SX1

3 Jun 15

SiteFusion
SiteFusion

11 May 15

Glade3
Glade3

19 Feb 15

Ý kiến ​​để falkolab.ext3.direct

Bình luận không
Nhập bình luận
Bật hình ảnh!