falkolab.ext3.direct

Software screenshot:
falkolab.ext3.direct
Software informatie:
Versie: 1.1.0
Upload datum: 11 May 15
Ontwikkelaar: Andrey Tkachenko
Licentie: Gratis
Populariteit: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct is een server-side stack voor ExtJS 3.
Hoe gebruik ik het?
Laten we registreren api en uitzicht:
& Nbsp; & gt; & gt; & gt; van zope.configuration import xmlconfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; configureren
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; omvatten pakket = "falkolab.ext3.direct" file = "meta.zcml" / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: api
& Nbsp; ... voor = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... namespace = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... voor = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... toestemming = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: view
& Nbsp; ... voor = "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... toestemming = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
Direct API:
& Nbsp; & gt; & gt; & gt; afdruk 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; Verloopt: ...
& 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", "acties": {"Contact ": [{" naam ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," naam ":" add "," len ": 0}, {" naam ":" GetAll "," len ": 0}]}};
Auto add provider:
& Nbsp; & gt; & gt; & gt; afdruk 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; Verloopt: ...
& 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", "acties": {"Contact ": [{" naam ":" getInfo "," len ": 1}]," albumlist ": [{" formHandler ": true," naam ":" add "," len ": 0}, {" naam ":" GetAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
En Direct hanling Request (voor toevoeging zie ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; afdruk 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; ... {"actie": "albumlist", "methode": "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; {"actie": "albumlist", "tid": 1, "type": "rpc", "methode": "GetAll", "resultaat": [1, 2, 3]}

Wat is nieuw in deze release:

  • Wijzigingen in ondersteuning van Python 2.6

Eisen

  • Python

Vergelijkbare software

FOX
FOX

22 Jun 18

Rikulo CouchClient
Rikulo CouchClient

19 Feb 15

Ample SDK
Ample SDK

20 Feb 15

Reacties op falkolab.ext3.direct

Reacties niet gevonden
Commentaar toe te voegen
Zet op de beelden!