Built-in helpers on session.flash

39 views
Skip to first unread message

Jitun John

unread,
Jul 23, 2021, 10:35:26 AM7/23/21
to web2py-users
Hi,

This piece of code worked in older version of web2py...

session.flash = CENTER(DIV(H4('sFTP Error: ' + ftp_error_parse(e)),
                             HR(), 'FTP Address|Username|Login|Password may be not correct.',
                             BR(), 'Check if the DropBox still exists.',
                             BR(), 'If all of them are good, is this  Secure FTP ?'))

Working... with layout.html containing...
    <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/>
    <link rel="stylesheet" href="{{=URL('static','css/bootstrap-theme.min.css')}}"/>
    <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap3.css')}}"/>
    <script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
    <script src="{{=URL('static','js/web2py-bootstrap3.js')}}"></script>
    <script src="{{=URL('static','js/jquery.js')}}"></script>

working.jpg

Not Working...Now it just dumps the html version.
    <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/>
    <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap4.css')}}"/>
    <script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
    <script src="{{=URL('static','js/web2py-bootstrap4.js')}}"></script>

not_working.jpg

Jim S

unread,
Jul 23, 2021, 2:29:04 PM7/23/21
to web2py-users
Have you tried wrapping the XML function around it?

session.flash = XML(CENT.....)

Jitun John

unread,
Jul 23, 2021, 11:01:07 PM7/23/21
to web2py-users
Thanks for the reply @Jim S

session.flash = XML(CENTER(DIV(H4('sFTP Error: ' + ftp_error_parse(e)),
                                               HR(), 'FTP Address|Username|Login|Password may be not correct.',
                                               BR(), 'Check if the DropBox still exists.',
                                               BR(), 'If all of them are good, is this Secure FTP ?')))

Results in the same. (As the pic in previous post)

Jitun John

unread,
Jul 29, 2021, 3:49:25 AM7/29/21
to web2py-users
I can live without it as well.
Just wondering .. should I give up.

Reply all
Reply to author
Forward
0 new messages