[web2py] Menu links with target attribute

2018-06-07 Thread Rakesh Singh
Hello, I have been trying to add external links to the menu system, but they result in malformed or invalid URL's when setting the target attribute. There are some old posts in the group regarding this, but none of the suggestions have worked. Web2py version : 2.16.1-stable Example: response.m

Re: [web2py] Re: sending html emails.... bug ...

2018-06-07 Thread António Ramos
Only one litle thing... the attachments also appear in the bottom of the email as "attachments... 2018-06-06 15:01 GMT+01:00 Leonel Câmara : > De nada :) > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -

Re: [web2py] Re: passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-07 Thread Rahul Dhakate
Hi Anthony, I accomplished this via model - Thanks! for pointing. Below is the sample logic *All written In Model* > global user_right1 > user_right1=False # Default value provided > code written to retrieve actual values and set the user_right1= In layout.html (whatever name of the lay

[web2py] Re: Google wallet widget wont initialize on the page

2018-06-07 Thread Rahul
Hey Anybody, Any idea how to do this ? I've paid google back in December for this but am yet to get a working prototype for payment. Rahul On Tuesday, December 26, 2017 at 4:17:54 PM UTC+5:30, Rahul wrote: > > Hi Massimo, Everyone, > Merry Christmas! > > ##Following is the co

Re: [web2py] Re: passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-07 Thread Anthony
Note, you do not have to declare the variable as global in the model. All objects defined in models are added to the web2py global environment, which is available to every view. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: sending html emails.... bug ...

2018-06-07 Thread Leonel Câmara
Nothing you can do about that Ramos. It depends on the email client. You could use online images instead of sending them with the email but then you will run into problems because some clients won't display external images without explicit permission. -- Resources: - http://web2py.com - http:/

[web2py] Re: Google wallet widget wont initialize on the page

2018-06-07 Thread Leonel Câmara
Yes. Replace with from gluon import XML with from gluon.html import XML -- 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 beca

[web2py] s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-07 Thread b00m_chef
web2py version 2.16.1 and this may be related to this bug: https://github.com/web2py/pydal/issues/502 I am trying to use S3 as my file repository for uploads. Here is my code and error I get: *CODE* from fs_s3 import S3FS import datetime bucket = "pobook", region = 'ca-central-1', aws_akey = "

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-07 Thread Suhas Jadhav
Even if I use below code in the controller. Just the import I am getting error Traceback (most recent call last): File "C:\WEB2PY\web2py\gluon\custom_import.py", line 77, in custom_importer return NATIVE_IMPORTER(oname, globals, locals, fromlist, level) ModuleNotFoundError: No module named

Re: [web2py] Re: passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-07 Thread Rahul Dhakate
Oh I see. I'll check this out and modify the code if required. Thanks! for the tip. Thanks & Regards, Rahul On Thu, Jun 7, 2018 at 5:53 PM, Anthony wrote: > Note, you do not have to declare the variable as global in the model. All > objects defined in models are added to the web2py global envi

[web2py] LDAP Authentication never work

2018-06-07 Thread Suhas Jadhav
Hi Gurus, My below code always authenticate against db and not ldap. Can you please help. @auth.requires_login() def test(): from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_userna

Re: [web2py] Re: passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-07 Thread Rahul Dhakate
Yes this works! I've modified the code accordingly. Thanks! Anthony On Fri, Jun 8, 2018 at 11:12 AM, Rahul Dhakate wrote: > Oh I see. I'll check this out and modify the code if required. Thanks! for > the tip. > > Thanks & Regards, > > Rahul > > On Thu, Jun 7, 2018 at 5:53 PM, Anthony wrote: >