falkolab.ext3.direct

Screenshot Software:
falkolab.ext3.direct
Detalii soft:
Versiune: 1.1.0
Incarca data: 11 May 15
Producător: Andrey Tkachenko
Licenţă: Gratuit
Popularitate: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct este o stivă pe partea de server pentru ExtJS 3.
Cum se utilizează?
Să înregistreze API și vizualizări:
& Nbsp; & gt; & gt; & gt; din zope.configuration xmlconfig import
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; configura
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; includ pachet = "falkolab.ext3.direct" file = "meta.zcml" / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: api
& Nbsp; ... pentru = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... namespace = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: vizualizare
& Nbsp; ... pentru = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... permisiunea = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: vizualizare
& Nbsp; ... pentru = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... permisiunea = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
API directe:
& Nbsp; & gt; & gt; & gt; http print (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Autorizare: bWdyOm1ncnB3 bază
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Expira la: ...
& Nbsp; Pragma: nu-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ("my.app");
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "namespace": "my.app", "tip": "remoting", "actiuni": {"Contact ": [{" name ":" getInfo "," Len ": 1}]," albumlist ": [{" formHandler ": true," name ":" add "," Len ": 0}, {" name ":" getAll "," Len ": 0}]}};
Auto adauga furnizor:
& Nbsp; & gt; & gt; & gt; http print (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Autorizare: bWdyOm1ncnB3 bază
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: no-cache
& Nbsp; Content-Length: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; Expira la: ...
& Nbsp; Pragma: nu-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ("my.app");
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "namespace": "my.app", "tip": "remoting", "actiuni": {"Contact ": [{" name ":" getInfo "," Len ": 1}]," albumlist ": [{" formHandler ": true," name ":" add "," Len ": 0}, {" name ":" getAll "," Len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Și să solicite direct hanling (pentru plus vezi ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; http print (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Autorizare: bWdyOm1ncnB3 bază
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / JSON; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"acțiune": "albumlist", "metodă": "getAll", "date": [], "tip": "RPC", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"acțiune": "albumlist", "tid": 1, "tip": "RPC", "metodă": "getAll", "rezultat": [1, 2, 3]}

Ce este nou în această versiune:

  • Modificări pentru a sprijini Python 2.6

Cerințe :

  • Python

Software similare

FOX
FOX

22 Jun 18

Gtkdialog
Gtkdialog

20 Feb 15

QtitanDataGrid
QtitanDataGrid

17 Feb 15

progress_meter
progress_meter

15 Apr 15

Comentarii la falkolab.ext3.direct

Comentariile nu a fost găsit
Adauga comentarii
Porniţi pe imagini!