summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-15 12:16:41 +0300
committermakkalot <makkalot@gmail.com>2008-06-15 12:16:41 +0300
commit51719e470bba1543c151ba5051e48c419f5fe019 (patch)
tree50b29bb7a4c525bce8c082c6633364bfb43b1b63
parent83a9970b426ff334315841b6aa2b91ecb81226dc (diff)
downloadfunc-51719e470bba1543c151ba5051e48c419f5fe019.tar.gz
func-51719e470bba1543c151ba5051e48c419f5fe019.tar.xz
func-51719e470bba1543c151ba5051e48c419f5fe019.zip
add link executer
-rw-r--r--funcweb/funcweb/widget_automation.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/funcweb/funcweb/widget_automation.py b/funcweb/funcweb/widget_automation.py
index 28f93b9..e27d865 100644
--- a/funcweb/funcweb/widget_automation.py
+++ b/funcweb/funcweb/widget_automation.py
@@ -226,3 +226,28 @@ class RemoteFormFactory(object):
action = self.action
)
+class RemoteLinkFactory(CoreWD):
+ """
+ A rpc executer for the methods without arguments
+ """
+
+ name = "Minion Remote Link Executer"
+
+ template ="""
+ <div>
+ ${for_widget.display()}
+ <div id="items">Minion Result</div>
+ </div>
+ """
+
+ def __init__(self,*args,**kwargs):
+ """The init part here"""
+ super(SomeRemoteLink,self).__init__(*args,**kwargs)
+ self.for_widget = LinkRemoteFunction(
+ name = "catexecuter",
+ action = "/catlister",
+ data = dict(give_all="all"),
+ update = "items"
+ )
+
+