Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > UI (User Interfaces)

    falkolab.ext3.direct 1.1.0

    Download button

    No screenshots available
    Downloads: 68  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Andrey Tkachenko | More programs
    ZPL / FREE
    September 26th, 2011, 12:45 GMT [view history]
    ROOT / Programming / UI (User Interfaces)

     Read user reviews (0)  Refer to a friend  Subscribe

    falkolab.ext3.direct description

    Zope3 Ext.Direct - Server-side Stack for ExtJS 3

    falkolab.ext3.direct is a server-side stack for ExtJS 3.

    How do I use it?

    Let's register api and views:

     >>> from zope.configuration import xmlconfig
     >>> context = xmlconfig.string("""
     ... < configure
     ... xmlns="http://namespaces.zope.org/zope"
     ... xmlns:extdirect="http://namespaces.zope.org/extdirect"
     ... >
     ... < include package="falkolab.ext3.direct" file="meta.zcml" / >
     ...
     ... < extdirect:api
     ... for="zope.app.folder.interfaces.IFolder"
     ... namespace = "my.app"
     ... / >
     ...
     ... < extdirect:view
     ... for="zope.app.folder.interfaces.IFolder"
     ... class="falkolab.ext3.direct.testing.AlbumList"
     ... permission="zope.ManageContent"
     ... name="albumlist"
     ... / >
     ...
     ... < extdirect:view
     ... for="zope.app.folder.interfaces.IFolder"
     ... class="falkolab.ext3.direct.testing.Contact"
     ... permission="zope.ManageContent"
     ... / >
     ...
     ... """)


    Direct API:

     >>> print http(r"""
     ... GET /@@directapi HTTP/1.1
     ... Authorization: Basic bWdyOm1ncnB3
     ... """)
     HTTP/1.1 200 Ok
     Cache-Control: no-cache
     Content-Length: ...
     Content-Type: text/javascript;charset=utf-8
     Expires: ...
     Pragma: no-cache
     < BLANKLINE >
     Ext.namespace('my.app');
     my.app.REMOTING_API={"url": "http://localhost/@@directrouter", "namespace": "my.app", "type": "remoting", "actions": {"Contact": [{"name": "getInfo", "len": 1}], "albumlist": [{"formHandler": true, "name": "add", "len": 0}, {"name": "getAll", "len": 0}]}};


    Auto add provider :

     >>> print http(r"""
     ... GET /@@directapi?add_provider HTTP/1.1
     ... Authorization: Basic bWdyOm1ncnB3
     ... """)
     HTTP/1.1 200 Ok
     Cache-Control: no-cache
     Content-Length: ...
     Content-Type: text/javascript;charset=utf-8
     Expires: ...
     Pragma: no-cache
     < BLANKLINE >
     Ext.namespace('my.app');
     my.app.REMOTING_API={"url": "http://localhost/@@directrouter", "namespace": "my.app", "type": "remoting", "actions": {"Contact": [{"name": "getInfo", "len": 1}], "albumlist": [{"formHandler": true, "name": "add", "len": 0}, {"name": "getAll", "len": 0}]}};
     Ext.Direct.addProvider(my.app.REMOTING_API);


    And Direct Request hanling (for addition see ROUTER.TXT):

     >>> print http(r"""
     ... POST /@@directrouter HTTP/1.1
     ... Authorization: Basic bWdyOm1ncnB3
     ... Content-Length: 71
     ... Content-Type: application/json; charset=UTF-8
     ... Referer: http://localhost/
     ...
     ... {"action":"albumlist","method":"getAll","data":[],"type":"rpc","tid":1}""")
     HTTP/1.1 200 Ok
     Content-Length: 89
     Content-Type: text/javascript
     < BLANKLINE >
     {"action": "albumlist", "tid": 1, "type": "rpc", "method": "getAll", "result": [1, 2, 3]}



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Changes to support Python 2.6

      


    TAGS:

    server-side stack | Zope3 Ext.Direct | ExtJS | Zope | server-side



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM