falkolab.ext3.direct

צילום מסך תוכנה:
falkolab.ext3.direct
פרטי תוכנה:
גרסה: 1.1.0
טען תאריך: 11 May 15
מפתחים: Andrey Tkachenko
רשיון: ללא תשלום
פופולריות: 9

Rating: nan/5 (Total Votes: 0)

falkolab.ext3.direct היא ערימה בצד השרת לExtJS 3.
כיצד אוכל להשתמש בו?
בואו להירשם API ונוף:
& Nbsp; & gt; & gt; & gt; מxmlconfig יבוא zope.configuration
& Nbsp; & gt; & gt; & gt; הקשר = xmlconfig.string ("" "
& Nbsp; ... & lt; להגדיר
& Nbsp; ... xmlns = "http://namespaces.zope.org/zope"
& Nbsp; ... xmlns: extdirect = "http://namespaces.zope.org/extdirect"
& Nbsp; ... & gt;
& Nbsp; ... & lt; כולל חבילה = / & gt = "meta.zcml" "falkolab.ext3.direct" קובץ;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: API
& Nbsp; ... ל= "zope.app.folder.interfaces.IFolder"
& Nbsp; ... מרחב = "my.app"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: צפה ב
& Nbsp; ... ל= "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.AlbumList"
& Nbsp; ... רשות = "zope.ManageContent"
& Nbsp; ... name = "albumlist"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... & lt; extdirect: צפה ב
& Nbsp; ... ל= "zope.app.folder.interfaces.IFolder"
& Nbsp; ... class = "falkolab.ext3.direct.testing.Contact"
& Nbsp; ... רשות = "zope.ManageContent"
& Nbsp; ... / & gt;
& Nbsp; ...
& Nbsp; ... "" ")
API ישיר:
& Nbsp; & gt; & gt; & gt; http הדפסה (r "" "
& Nbsp; ... קבל /@@directapi HTTP / 1.1
& Nbsp; ... אישור: bWdyOm1ncnB3 בסיסי
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: לא-מטמון
& Nbsp; אורך תוכן: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; פג תוקף: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"כתובת URL": לתקשר {":" http: // localhost /@@directrouter "," מרחב ":" my.app "," סוג ":" עבודה מרוחקת "," פעולות " ": [{:": 1, שם "" getInfo "," לן} albumlist ": {": 0, {formHandler ": נכון," שם "" להוסיף "," לן} "שם]" "[" ":" GetAll "," לן ": 0}]}};
אוטומטי להוסיף ספק:
& Nbsp; & gt; & gt; & gt; http הדפסה (r "" "
& Nbsp;? ... קבל /@@directapi add_provider HTTP / 1.1
& Nbsp; ... אישור: bWdyOm1ncnB3 בסיסי
& Nbsp; ... "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; Cache-Control: לא-מטמון
& Nbsp; אורך תוכן: ...
& Nbsp; Content-Type: text / javascript; charset = utf-8
& Nbsp; פג תוקף: ...
& Nbsp; Pragma: no-cache
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; Ext.namespace ('my.app');
& Nbsp; my.app.REMOTING_API = {"כתובת URL": לתקשר {":" http: // localhost /@@directrouter "," מרחב ":" my.app "," סוג ":" עבודה מרוחקת "," פעולות " ": [{:": 1, שם "" getInfo "," לן} albumlist ": {": 0, {formHandler ": נכון," שם "" להוסיף "," לן} "שם]" "[" ":" GetAll "," לן ": 0}]}};
& Nbsp; Ext.Direct.addProvider (my.app.REMOTING_API);
וhanling בקשה ישירה (לתוספת לראות ROUTER.TXT):
& Nbsp; & gt; & gt; & gt; http הדפסה (r "" "
& Nbsp; ... POST /@@directrouter HTTP / 1.1
& Nbsp; ... אישור: bWdyOm1ncnB3 בסיסי
& Nbsp; ... תוכן-אורך: 71
& Nbsp; ... Content-Type: application / JSON; charset = UTF-8
& Nbsp; ... Referer: http: // localhost /
& Nbsp; ...
& Nbsp; ... {"פעולה": "getAll" "נתונים":: "סוג" []: "שיטה" "albumlist", "RPC", "tid": 1} "" ")
& Nbsp; HTTP / 1.1 200 OK
& Nbsp; אורך תוכן: 89
& Nbsp; Content-Type: text / javascript
& Nbsp; & lt; BLANKLINE & gt;
& Nbsp; {"פעולה": "tid" "albumlist": 1, "סוג": "RPC", "שיטה": "getAll", "תוצאה": [1, 2, 3]}

מה חדש בהודעה זו:

  • שינויים לתמוך Python 2.6

דרישות :

  • פייתון

תוכנה דומה

casuarius
casuarius

15 Apr 15

Awwparse
Awwparse

14 Apr 15

poste_replique
poste_replique

11 May 15

תגובות ל falkolab.ext3.direct

תגובות לא נמצא
להוסיף הערה
הפעל את התמונות!