How validate if upload field is IS_IMAGE or pdf document ?
Try upload pdf document and validate with :
Alumnos.dsalud.requires = [IS_EMPTY_OR(IS_LENGTH(1048576,
1024,error_message=error_img_size)),
IS_EMPTY_OR(IS_IMAGE(extensions='png','jpeg','gif','pdf'),error_message=error_img_tipo)),
IS_EMPTY
:
{{extend 'layout.html'}}
{{= T('Nueva Solicitud')}}
Apellido:
Never passes the validation and always throws errors. Anyone know what I'm
doing wrong?
--
--
Federico Ferraro
Usuario Linux : 482533.
--
--
Resources:
- http://web2py.com
- http://web2py.com/b
/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 gr
File
"/home/www-data/web2py/gluon/compileapp.py", line 446, in read_pyc\n
raise SystemError(\'compiled code is incompatible\')\nSystemError:
compiled code is incompatible\n'
p159
Thanks ..
--
Federico Ferraro
Usuario Linux : 482533.
--
--
Resources:
- http://web2py.com
- http:
stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
form.process().accepted:
El ene 9, 2014 7:00 a.m., "kartik murthy" <619.kar...@gmail.com> escribió:
> Hi there,
> I am building an app to store electrical consumption data . I
> have build a database which include three tabled dept,meter and reading.
> THe problem that i have encount
El ene 2, 2014 1:11 p.m., "Ruud Schroen" escribió:
> Hi,
>
> I want to add a class to the body depending on the controller and function
> (like Drupal does for example).
>
> My function (in db.py):
> def get_page_class():
> page_class = 'page-%s-%s' % (request.controller, request.function)
>
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.
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/groups/opt_out.
>
more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
> 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)
&g
t;>
>>> File "C:\web2py2\gluon\dal.py", line 1671, in execute
>>>
>>>
>>>
>>>
>>> return self.log_execute(*a, **b)
>>>
>>>
>>>
>>>
>>> File "C:\web2py2\gluon\dal.py", lin
isable=True) #True or False
> does not matter, only if navbar_disable exists
>
>
> On Thursday, August 29, 2013 4:19:04 PM UTC+2, Federico Ferraro wrote:
>>
>> How to disable auth.navbar for some funtions ?
>>
>> - I need to create a different layout.
&g
onavbar(**kargs)
auth.navbar = nav_bar
In the controler :
navbar_disable = True
But it did not work ...
--
--
Federico Ferraro
Usuario Linux : 482533.
--
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubs
13 matches
Mail list logo