[web2py] Re: insert or update on table "auth_event" violates foreign key constraint "auth_event_user_id_fkey

2016-12-29 Thread quesada . ostos


auth.logout(log=None) is the solution, thanks.


El sábado, 13 de abril de 2013, 15:57:08 (UTC+2), Annet escribió:
>
> Hi Anthony,
>
> Switching the operations doesn't solve the problem, after logout(), the 
> decorator prevents the user from being deleted, however,
> log=None solves the problem. Thanks.
>
>
> Best regards,
>
> Annet
>

-- 
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] Re: Pls Help. I can not change the background color of the flash message

2016-11-22 Thread quesada . ostos
thx!!

El lunes, 28 de marzo de 2011, 6:12:52 (UTC+2), pbreit escribió:
>
> Isn't it this CSS in static/css/base.css? Also, If you have any interest 
> in CSS, Chrome/Safari have an "Inspect Element" command and Firefox has the 
> terrific Firebug add on. These are all must-have tools for working with web 
> page styles.
>
>
> /*** web2py specific ***/
> div.flash {
> font-weight: bold;
> display: none;
> position: fixed;
> padding: 10px;
> top: 40px;
> right: 10px;
> min-width: 280px;
> opacity: 0.85;
> margin: 0px 0px 10px 10px;
> color: #fff;
> vertical-align: middle;
> cursor: pointer;
> background: #000;
> border: 2px solid #fff;
> -moz-border-radius: 5px;
> -webkit-border-radius: 5px;
> z-index: 2;
> }
> div.error {
> background-color: red;
> color: white;
> padding: 3px;
> }
>

-- 
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] Re: optgroup support

2016-09-19 Thread quesada . ostos
Hola, aquí la solución. Es fácil. 

selectnombre = SELECT(OPTGROUP(*opcions, _label="grupo"), _name="selNombre", 
_id="selNombre",
   _multiple="multiple")


Saludos!!



El lunes, 15 de febrero de 2010, 10:19:18 (UTC+1), hamdy.a.farag escribió:
>
> Hi
>
> I read this post
>  
> http://groups.google.com/group/web2py/browse_thread/thread/f9967ef7151c5ae8/d0c47ff7a40e0dfc?lnk=gst=OPTGROUP#d0c47ff7a40e0dfc
>
> and I didn't find optgroup in html.py either
>
> so why not adding it since from time to time people may need it?
>
>

-- 
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] Re: change dropdown menu login

2016-07-11 Thread quesada . ostos


El jueves, 12 de mayo de 2016, 15:39:30 (UTC+2), Alessio Varalta escribió:
>
> Hi, I want to change the dropdown menu in the rigth corner of the web2py 
> application. I don't want the text Login but a icon..I see that the code is 
> imported with
>  
> 
> {{='auth' in globals() and 
> auth.navbar('Welcome',mode='dropdown') or ''}}
>  
>
> But where is defined this code?
>

navbar = auth.navbar(mode='dropdown')
if auth.user:
navbar.element('ul.dropdown-menu').components.extend([LI('Item 1'), 
LI('Item 
2'), ...]) 

-- 
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.