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:
>
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
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
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
Keep in mind that the layout is executed for every page (that extends it),
so only defining that variable in the dashboard function will not work, as
it will remain undefined otherwise. Declaring the variable as global within
the dashboard function has no effect because each HTTP request execute
Hi Anthony,
Thanks for getting back - I understood your point. I included it
in one of my functions and called it where it worked. for example I called
it in dashboard() function which is used to show the dashboard and is the
first landing page of my application. However now whenever I
On Tuesday, June 5, 2018 at 7:34:38 AM UTC-4, Rahul wrote:
>
> Hi All,
> I am visiting this group after a long time. I have a question
> perhaps a simple one - I want to check for user rights for my application
> and I want to code it in plugin layout (any_layout_installed.html ) file.
7 matches
Mail list logo