diff options
author | makkalot <makkalot@gmail.com> | 2008-07-09 16:35:07 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-07-09 16:35:07 +0300 |
commit | 4dec35682b12316cba55276abae8008b7c269be2 (patch) | |
tree | 2e735b885bd822823352cb4012e7923eb8dbe55b /funcweb/funcweb/widget_automation.py | |
parent | 2742dfac90365b00394a7e1d1b28747e2e425125 (diff) | |
download | func-4dec35682b12316cba55276abae8008b7c269be2.tar.gz func-4dec35682b12316cba55276abae8008b7c269be2.tar.xz func-4dec35682b12316cba55276abae8008b7c269be2.zip |
serving the static resources under /funcweb to match to apache's configuration, easy and dirty solution :) but it works
Diffstat (limited to 'funcweb/funcweb/widget_automation.py')
-rw-r--r-- | funcweb/funcweb/widget_automation.py | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/funcweb/funcweb/widget_automation.py b/funcweb/funcweb/widget_automation.py index 351603b..aeacef8 100644 --- a/funcweb/funcweb/widget_automation.py +++ b/funcweb/funcweb/widget_automation.py @@ -240,7 +240,7 @@ class RemoteFormAutomation(CoreWD): template = """ <div> - ${for_widget.display(action='post_form')} + ${for_widget.display(action='/funcweb/post_form')} <div id="loading"></div> <div id="post_data"></div> </div> @@ -261,7 +261,7 @@ class RemoteFormAutomation(CoreWD): validator = validator_schema, name = "minion_form", update = "col5", - before='getElement(\'loading\').innerHTML=toHTML(IMG({src:\'../static/images/loading.gif\',width:\'100\',height:\'100\'}));', + before='getElement(\'loading\').innerHTML=toHTML(IMG({src:\'../funcweb/static/images/loading.gif\',width:\'100\',height:\'100\'}));', on_complete='getElement(\'loading\' ).innerHTML=\'Done!\';', ) @@ -275,10 +275,10 @@ class RemoteFormFactory(object): #some values that may want to change later name = "minion_form", update = "col5", - before='getElement(\'loading\').innerHTML=toHTML(IMG({src:\'../static/images/loading.gif\',width:\'100\',height:\'100\'}));', + before='getElement(\'loading\').innerHTML=toHTML(IMG({src:\'../funcweb/static/images/loading.gif\',width:\'100\',height:\'100\'}));', on_complete='getElement(\'loading\' ).innerHTML=\'Done!\';', submit_text = "Send Minion Form" - action = "/post_form" + action = "/funcweb/post_form" def __init__(self,wlist_object,validator_schema): self.wlist_object = wlist_object @@ -299,30 +299,6 @@ class RemoteFormFactory(object): validator = self.validator_schema ) -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" - ) - ############################################################################################# def pretty_label(name_to_label): |