falkolab.ext3.direct

Screenshot der Software:
falkolab.ext3.direct
Softwarebeschreibung:
Version: 1.1.0
Upload-Datum: 11 May 15
Entwickler: Andrey Tkachenko
Lizenz: Frei
Popularität: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct ist eine serverseitige-Stack für ExtJS 3.
Wie verwende ich es?
Lassen Sie uns zu registrieren api und Ansichten:
& Nbsp; & gt; & gt; & gt; von zope.configuration import XMLConfig
& Nbsp; & gt; & gt; & gt; context = xmlconfig.string ("" "
& Nbsp; ... & lt; konfigurieren
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; schließen Sie Paket = "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; ... permission = "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; ... permission = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
Direkter API:
& Nbsp; & gt; & gt; & gt; Druck http (r "" "
& Nbsp; ... GET /@@directapi HTTP / 1.1
& Nbsp; ... Authorization: Grund 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; Laufzeit bis: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "Namensraum": "my.app", "Typ": "Remoting", "Aktionen": {"Kontakt ": [{" name ":" getInfo "," len ": 1}]", albumlist ": [{" Formhandler ": true," name ":" add "," len ": 0}, {" Name ":" getAll "," len ": 0}]}};
Anbieter Auto hinzuzufügen:
& Nbsp; & gt; & gt; & gt; Druck http (r "" "
& Nbsp;? ... GET /@@directapi add_provider HTTP / 1.1
& Nbsp; ... Authorization: Grund 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; Laufzeit bis: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"url": "http: // localhost /@@directrouter", "Namensraum": "my.app", "Typ": "Remoting", "Aktionen": {"Kontakt ": [{" name ":" getInfo "," len ": 1}]", albumlist ": [{" Formhandler ": true," name ":" add "," len ": 0}, {" Name ":" getAll "," len ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
Und Direkt hanling Request (für die Zugabe zu sehen ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; Druck http (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... Authorization: Grund bWdyOm1ncnB3
& Nbsp; ... Content-Length: 71
& Nbsp; ... Content-Type: application / json; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"Aktion": "albumlist", "Methode": "getAll", "Daten": [], "Typ": "RPC", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Content-Length: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"Aktion": "albumlist", "tid": 1, "type": "RPC", "Methode": "getAll", "Ergebnis": [1, 2, 3]}

Was ist neu in dieser Pressemitteilung:

  • Änderungen an Python 2.6 unterstützt

Anforderungen :

  • Python

Ähnliche Software

GINS
GINS

2 Jun 15

Gaphas
Gaphas

12 May 15

JAXX
JAXX

19 Feb 15

Glade3
Glade3

19 Feb 15

Kommentare zu falkolab.ext3.direct

Kommentare nicht gefunden
Kommentar hinzufügen
Schalten Sie auf die Bilder!