[web2py] Re: web2py.component equivalent for =LOAD

2017-02-14 Thread shamimur . rahman
just realized there are some typo... so is it

 web2py.component('{{=URL('default', 'test.load',args=['lspci'])}}', 
target='component1')  

=LOAD is working but it does automatic rendering, I want to do the same 
after the webpage had been loaded, so want to use web2py.component inside 
javascript function,

On Tuesday, February 14, 2017 at 2:38:53 PM UTC-6, shamimu...@gmail.com 
wrote:
>
> What is the equivalent of following when using web2py.component() ?
>
> {{=LOAD('default', 'test.load', args=[''lspci'], ajax=True)}}
>
> is it ?
>
>  web2py.component('{{=URL('default', 'test2.load',args=['dmesg'])}}', 
> target='component1')
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py.component equivalent for =LOAD

2017-02-14 Thread shamimur . rahman
What is the equivalent of following when using web2py.component() ?

{{=LOAD('default', 'test.load', args=[''lspci'], ajax=True)}}

is it ?

 web2py.component('{{=URL('default', 'test2.load',args=['dmesg'])}}', 
target='component1')

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] dynamic view update

2017-02-12 Thread shamimur . rahman
Hi All,

 I am new to web2py. I am using paramiko with web2py to execute some 
commands on a remote server(linux) and display it on the web page. So i 
have a controller which has form with fields hostname, username, password 
for the server to be connected. If the form is accepted it is redirected to 
another page (for example viewssh.html) . viewssh.html has the code to send 
command and get the output and display (using beautify). My problem is 
redirection waits until all the commands in viewssh.html executed, so it 
displays all the ouput of all the commands at once. Say I am sending the 
commands 'dmesg' , getting the output and then BEAUTIFY the output, and 
then send 'lspci' and BEAUTIFY and some other commands similarly. How can 
the view display the output of each command as it gets executed and 
displayed without waitting for all the commands to get executed?

THANKS IN ADVANCE.

~Shamimur Rahman

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.