falkolab.ext3.direct

Software kuvakaappaus:
falkolab.ext3.direct
Ohjelmiston tiedot:
Versio: 1.1.0
Lähetyksen päivämäärä: 11 May 15
Kehittäjä: Andrey Tkachenko
Lupa: Vapaa
Suosio: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct on server-side pino ExtJS 3.
Miten käytän sitä?
Katsotaanpa rekisteröityä api ja näkymät:
& Nbsp; & gt; & gt; & gt; alkaen zope.configuration tuonti xmlconfig
& Nbsp; & gt; & gt; & gt; yhteydessä = xmlconfig.string ("" "
& Nbsp; ... & lt; määritä
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; sisältyy pakettiin = "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: view
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... luvalla = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... luvalla = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... '"")
Suora API:
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Authorization: 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; Erääntyy: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "nimiavaruus": "my.app", "tyyppi": "Remoting", "toimet": {"Yhteystiedot ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," name ":" Lisää "," len ": 0}, {" name ":" getAll "," len ": 0}]}};
Auto lisätä tarjoaja:
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp; ... GET /@@directapi? Add_provider HTTP / 1.1
& Nbsp; ... Authorization: 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; Erääntyy: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "nimiavaruus": "my.app", "tyyppi": "Remoting", "toimet": {"Yhteystiedot ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," name ":" Lisää "," len ": 0}, {" name ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Ja suora pyyntö hanling (lisäämismahdollisuudesta katso ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Authorization: Basic bWdyOm1ncnB3
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"toiminta": "albumlist", "menetelmä": "getAll", "data": [], "tyyppi": "RPC", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 Ok
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"toiminta": "albumlist", "tid": 1, "tyyppi": "RPC", "menetelmä": "getAll", "tulos": [1, 2, 3]}

Mikä on uusi tässä julkaisussa:

  • Muutokset tukea Python 2.6

vaatimukset

  • Python

Vastaavia ohjelmistoja

qanda
qanda

11 May 15

OpMenu
OpMenu

2 Jun 15

casuarius
casuarius

15 Apr 15

Kommentit falkolab.ext3.direct

Kommentteja ei löytynyt
Lisää kommentti
Ota kuvia!