diff options
author | makkalot <makkalot@gmail.com> | 2008-06-15 12:16:41 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-06-15 12:16:41 +0300 |
commit | 51719e470bba1543c151ba5051e48c419f5fe019 (patch) | |
tree | 50b29bb7a4c525bce8c082c6633364bfb43b1b63 /funcweb/funcweb/widget_automation.py | |
parent | 83a9970b426ff334315841b6aa2b91ecb81226dc (diff) | |
download | func-51719e470bba1543c151ba5051e48c419f5fe019.tar.gz func-51719e470bba1543c151ba5051e48c419f5fe019.tar.xz func-51719e470bba1543c151ba5051e48c419f5fe019.zip |
add link executer
Diffstat (limited to 'funcweb/funcweb/widget_automation.py')
-rw-r--r-- | funcweb/funcweb/widget_automation.py | 25 |
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" + ) + + |