From c08aa1201581026ed383cfc0ae7d15a663c09860 Mon Sep 17 00:00:00 2001 From: alexandre Date: Wed, 5 Jun 2013 00:45:56 -0300 Subject: [PATCH] . --- README.txt | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 README.txt diff --git a/README.txt b/README.txt deleted file mode 100644 index f098644..0000000 --- a/README.txt +++ /dev/null @@ -1,42 +0,0 @@ -Orun -==== - -Orun (Object RUNtime) is a small/lightweight library that provides a fast -to build Python RIA, the client communicates with the server through ajax. -Typical usage often looks like this:: - - #!/usr/bin/env python - # Cherrypy + ExtJS example - - from orun.extjs import * - from orun.extjs import cp - - def ok_click(id, *args, **kwargs): - cli << Ext.getCmp(id).setText('Clicked') - cli << js.client.alert('Server side message') - - def button_click(id, *args, **kwargs): - js.write(""" - Ext.getCmp("%s").setText('Clicked'); - alert('Server side callback message'); - """ % id) - - class MyApplication(cp.ExtApplication): - def main(self, *args, **kwargs): - wnd = Ext.create('widget.window', {'title': 'My Window', 'width': 300, 'height': 250, - 'items': [{'xtype': 'button', 'text': 'Click Here', 'handler': button_click}], - 'buttons': [ - {'text': 'OK', 'handler': ok_click}, - {'text': 'Close', 'handler': js.function('this.up("window").close();')}]}) - wnd.show() - wnd.setHeight(200) - - app = MyApplication('Orun (ExtJS Application)') - app.run() - -The example above, runs cherrypy application on 8080 http port, and exposes -extjs method. - -Installation -============ -