falkolab.ext3.direct

Software screenshot:
falkolab.ext3.direct
Rincian Software:
Versi: 1.1.0
Tanggal Upload: 11 May 15
Pengembang: Andrey Tkachenko
Lisensi: Gratis
Popularitas: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct adalah tumpukan server-side untuk ExtJS 3.
Bagaimana cara menggunakannya?
Mari kita mendaftar api dan pandangan:
& Nbsp; & gt; & gt; & gt; dari zope.configuration impor xmlconfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; mengkonfigurasi
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; termasuk paket = "falkolab.ext3.direct" file = "meta.zcml" / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: api
& Nbsp; ... untuk = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... namespace = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... untuk = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... izin = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... untuk = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... izin = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
Langsung API:
& Nbsp; & gt; & gt; & gt; cetak http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Otorisasi: Basic bWdyOm1ncnB3
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Kedaluwarsa: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "namespace": "my.app", "type": "Remoting", "tindakan": {"Hubungi ": [{" nama ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," nama ":" add "," len ": 0}, {" nama ":" getAll "," len ": 0}]}};
Auto menambahkan penyedia:
& Nbsp; & gt; & gt; & gt; cetak http (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Otorisasi: Basic bWdyOm1ncnB3
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Kedaluwarsa: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "namespace": "my.app", "type": "Remoting", "tindakan": {"Hubungi ": [{" nama ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," nama ":" add "," len ": 0}, {" nama ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Dan Permintaan Hanling langsung (untuk penambahan lihat ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; cetak http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Otorisasi: Basic bWdyOm1ncnB3
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"tindakan": "albumlist", "metode": "getAll", "data": [], "jenis": "rpc", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"tindakan": "albumlist", "tid": 1, "tipe": "rpc", "metode": "getAll", "hasil": [1, 2, 3]}

Apa yang baru dalam rilis ini:

  • Perubahan untuk mendukung Python 2,6

Persyaratan :

  • Python

Software yang serupa

SANE
SANE

19 Jun 17

Coloryze
Coloryze

3 Jun 15

ClamTk
ClamTk

2 Oct 17

Crow Designer
Crow Designer

11 May 15

Komentar untuk falkolab.ext3.direct

Komentar tidak ditemukan
Tambahkan komentar
Aktifkan gambar!