falkolab.ext3.direct

Skjermbilde programvare:
falkolab.ext3.direct
Prog.varedetaljer:
Versjon: 1.1.0
Last opp dato: 11 May 15
Utvikler: Andrey Tkachenko
Lisens: Gratis
Popularitet: 63

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct er en server-side stabelen for ExtJS tre.
Hvordan bruker jeg den?
La oss registrere api og utsikt:
& Nbsp; & gt; & gt; & gt; fra zope.configuration import xmlconfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; konfigurere
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; inkluderer pakken = "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; ... tillatelse = "zope.ManageContent"
& Nbsp; ... name = "albumlisten"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... for = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... tillatelse = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
Direkte API:
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Autorisasjon: 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; Utløper: ...
& 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", "tiltak": {"Kontakt ": [{" name ":" getInfo "," len ": 1}]," albumlisten ": [{" formHandler ": true," name ":" legge "," len ": 0}, {" name ":" getAll "," len ": 0}]}};
Auto legge leverandør:
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Autorisasjon: 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; Utløper: ...
& 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", "tiltak": {"Kontakt ": [{" name ":" getInfo "," len ": 1}]," albumlisten ": [{" formHandler ": true," name ":" legge "," len ": 0}, {" name ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Og Direkte forespørsler Hanling (for tillegg ser ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; print http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Autorisasjon: Basic bWdyOm1ncnB3
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"action": "albumlisten", "metoden": "getAll", "data": [], "type": "RPC", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"action": "albumlisten", "tid": 1, "type": "RPC", "metoden": "getAll", "resultatet": [1, 2, 3]}

Hva er nytt i denne versjonen:

  • Endringer for å støtte Python 2.6

Krav

  • Python

Lignende programvare

eSvn
eSvn

3 Jun 15

progress_meter
progress_meter

15 Apr 15

SGC
SGC

20 Feb 15

Ample SDK
Ample SDK

20 Feb 15

Kommentarer til falkolab.ext3.direct

Kommentarer ikke funnet
Legg til kommentar
Slå på bilder!