summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-18 16:01:15 +0300
committermakkalot <makkalot@gmail.com>2008-06-18 16:01:15 +0300
commita202a04330d596c71220f15228428631deb0d20f (patch)
treea52df019291888ee0fd81421a57fd36b781139e1
parentebc444b74e9386bdeb259bef382d1f75e43c221a (diff)
downloadfunc-a202a04330d596c71220f15228428631deb0d20f.tar.gz
func-a202a04330d596c71220f15228428631deb0d20f.tar.xz
func-a202a04330d596c71220f15228428631deb0d20f.zip
some js action updates in widgets
-rw-r--r--funcweb/funcweb/widget_automation.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/funcweb/funcweb/widget_automation.py b/funcweb/funcweb/widget_automation.py
index 412da34..df521db 100644
--- a/funcweb/funcweb/widget_automation.py
+++ b/funcweb/funcweb/widget_automation.py
@@ -177,7 +177,7 @@ class RemoteFormAutomation(CoreWD):
template = """
<div>
- ${for_widget.display()}
+ ${for_widget.display(action='post_form')}
<div id="loading"></div>
<div id="post_data"></div>
</div>
@@ -196,25 +196,17 @@ class RemoteFormAutomation(CoreWD):
self.for_widget = RemoteForm(
fields = generated_fields,
name = "minion_form",
- update = "post_data",
- before='getElement(\'loading\').innerHTML=\'Submiting form!\';',
+ update = "col5",
+ before='getElement(\'loading\').innerHTML=toHTML(IMG({src:\'../static/images/loading.gif\',width:\'80\',height:\'80\'}));',
on_complete='getElement(\'loading\' ).innerHTML=\'Done!\';',
- action = "/post_form"
)
- def post_form(self,**kw):
- """
- Data processing part
- """
- return "I got that data from the remote minion form :<br/>%r"%kw
-
- post_form = expose()(post_form)
-
####################################################################################################
class RemoteFormFactory(object):
"""
Gets the WidgetListFactory object
- and return back a RemoteForm
+ and return back a RemoteForm the same as above
+ just for testing
"""
#some values that may want to change later
name = 'minion_form'