falkolab.ext3.direct

Software screenshot:
falkolab.ext3.direct
Dettagli del software:
Versione: 1.1.0
Data di caricamento: 11 May 15
Sviluppatore: Andrey Tkachenko
Licenza: Libero
Popolarità: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct è una pila sul lato server per ExtJS 3.
Come si usa?
Registriamolo api e vista:
& Nbsp; & gt; & gt; & gt; da zope.configuration importazione XMLConfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; configurare
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; include package = "falkolab.ext3.direct" file = "meta.zcml" / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: api
& Nbsp; ... per = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... namespace = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... per = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... permesso = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... per = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... permesso = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
API Direct:
& Nbsp; & gt; & gt; & gt; stampa http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Autorizzazione: bWdyOm1ncnB3 di base
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Scadenza: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"URL": "http: // localhost /@@directrouter", "spazio": "my.app", "tipo": "comunicazione remota", "azioni": {"Contatto ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," name ":" add "," len ": 0}, {" nome ":" getAll "," len ": 0}]}};
Auto aggiungere provider:
& Nbsp; & gt; & gt; & gt; stampa http (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Autorizzazione: bWdyOm1ncnB3 di base
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Scadenza: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"URL": "http: // localhost /@@directrouter", "spazio": "my.app", "tipo": "comunicazione remota", "azioni": {"Contatto ": [{" name ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," name ":" add "," len ": 0}, {" nome ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
E diretto Richiesta hanling (per oltre vedi ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; stampa http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Autorizzazione: bWdyOm1ncnB3 di base
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"azione": "albumlist", "metodo": "dati" "getAll": [], "tipo": "rpc", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"azione": "albumlist", "tid": 1, "tipo": "rpc", "metodo": "getAll", "risultato": [1, 2, 3]}

Cosa c'è di nuovo in questa versione:

  • Le modifiche per supportare Python 2.6

Requisiti

  • Python

Programmi simili

QtitanRibbon
QtitanRibbon

17 Feb 15

eSvn
eSvn

3 Jun 15

Sikuli
Sikuli

11 May 15

AXIS
AXIS

3 Jun 15

Commenti a falkolab.ext3.direct

I commenti non trovato
Aggiungi commento
Accendere le immagini!