I have this settings:
auth.settings.actions_disabled = ['register', 'impersonate', 'groups']
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False
and a custom register function in the default controller:
def register():
form = SQLFORM
let say i have code
*models/db.py*
db.define_table('employee',
Field('is_auth', 'boolean'),
Field('auth_user', 'reference auth_user'),
Field('full_name'),
Field('role'),
format = '%(full_name)s')
auth_user_employee = db(db.employee.auth_user ==
auth.user_id).select().first()
db.define_table(
I have the following menu:
response.app_menu = [(CAT(SPAN('Connect', _class="btn btn-default",
_target="_blank")), False, URL())]
I want to add a Bootstrap tooltip to the button, I tried:
response.app_menu = [(CAT(SPAN('Connect', _class="btn btn-default",
_target="_blank", _data-placement="top
What do you mean by "not working"? Are you getting an error or some other
unexpected behavior? Describe what is happening and what you expect instead?
Anthony
On Wednesday, July 20, 2016 at 3:54:18 AM UTC-4, 黄祥 wrote:
>
> let say i have code
> *models/db.py*
> db.define_table('employee',
> Fiel
What's the best way to send data from web2py clients to a web2py server?
Especially when there are many web2py clients that at the same time send
data to the web2py server? Thanks for the help
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/
Using forms?
And web2py get them using request.vars.*
Em quarta-feira, 20 de julho de 2016 09:59:18 UTC-3, Aydin escreveu:
>
> What's the best way to send data from web2py clients to a web2py server?
> Especially when there are many web2py clients that at the same time send
> data to the web2py
Try something how:
. IS_DATE(format('%Y-%M-%D) .
Seeing source code web2py, the split is made at "-" .. maybe this be the error.
Em terça-feira, 19 de julho de 2016 16:54:10 UTC-3, web2py...@gmail.com
escreveu:
>
> Hi everyone,
>
> i keep getting this error:
>
> File "/web2py/gluon/pa
Hi There,
Is there a way in Web2Py to suppress the _extra information when selecting
data with as_list() or as_dict()?
I can't find it and option for it, but maybe I'm just overlooking it in the
documentation ;)
Thanks!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentatio
^_^'''
you can't create an attribute with a dash in python. if you want to use
data, either use the ** notation (splatting a pre-built dictionary) or
leverage the "special" data= argument that takes a dict (yep, you're not
the only one using data- attributes...)
span_attrs = {'_data-placemen
nope... don't go the wrong way. web2py/pydal stores dates and datetimes to
native types, with the correct format in the database.
Upon insertion and retrieval, it uses the format to translate the native
type to the string representation the app wants.
tl;dr : format is just for representation,
me, proud? of ?
On Wednesday, July 20, 2016 at 8:02:55 AM UTC+2, Michael M wrote:
>
> Figured it out:
>
> Niplod you may be proud. I ran strace in the service:
>
> [Unit]
> Description=uWSGI Emperor Service
> After=syslog.target
>
> [Service]
> EnvironmentFile=-/etc/sysconfig/uwsgi
> ExecStartPre
Hi Paolo, in my experience with Android, do what this article describes
is a really bad idea, the resources usage is very important in tablets
and smartphones because of the little batteries they have, include a
complete http server running inside an app will drain the battery
considerably fast
I figured out my own problem. ;) Another admin didn't have to save me.
Regards,
*Michael B. Messmer*
*UNIX OS Team - Analyst*
Desk: (425) 416-8871
On Wed, Jul 20, 2016 at 7:21 AM, Niphlod wrote:
> me, proud? of ?
>
> On Wednesday, July 20, 2016 at 8:02:55 AM UTC+2, Michael M wrote:
>>
>
It is not a "professional" product but check Sahara Eden. It is based in
web2py, it has a framework S3 built on top of web2py and it is used in critical
disaster operation when the app is put to the test at its maximum performance...
I wonder if I should use Linux, it is really old and won pric
It is not a "professional" product but check Sahara Eden. It is based in
web2py, it has a framework S3 built on top of web2py and it is used in critical
disaster operation when the app is put to the test at its maximum performance...
I wonder if I should use Linux, it is really old and won pric
What i've found is that the oracle has the date stored at 2016/04/12 and
when the parse occurs, it looks for a - to seperate and cant find it. This
is why it states that its not an integer because the "/" are included in
the term... is there a way to parse with "/" instead of "-"? i know SQL
st
are the actual fields in the oracle backend a "DATE" field ? if so, pydal
NEEDS to parse it correctly, no matter the format you want to display it.
On Wednesday, July 20, 2016 at 5:06:06 PM UTC+2, web2py...@gmail.com wrote:
>
> What i've found is that the oracle has the date stored at 2016/04/12
ah, ok!!! me, I'm proud of myself very little these days
but, and it's a big butI'm totally proud of you!
On Wednesday, July 20, 2016 at 4:39:39 PM UTC+2, Michael Messmer wrote:
>
> I figured out my own problem. ;) Another admin didn't have to save me.
> And i learned a new (to me) to
I'm not sure what you mean... Oracle stores the date type using "/" instead
of "-" or ".".. i looked into the code for the parsing that web2py uses and
it only parses with "+" "-" or "." so that is why i think my issue is
arising. I was wondering if anyone knows an intermediary step i can take t
web2py is really good framework and you won't find any other with a
learning curve as smooth as that...
There is not seems that many major web site build over web2py, though I
know for sure that there is many data centric app lying around in LAN of
multiples business.
Forces of web2py are :
It e
nope, oracle stores DATE. differencing itself from other backends, it's
your client that translates that date to a string representation. and pydal
does (or it should) too.
That's what,
theoretically,
https://github.com/web2py/pydal/blob/master/pydal/adapters/oracle.py#L28
and following do: "
The "_extra" dictionary stores values generated from expressions (rather
than raw values from individual fields). If you don't want them to appear
in the conversion of the Rows to a list of dictionaries, then don't include
them in the original .select() call that generated the Rows object.
Anth
Actually found out i was using the non datetime version of the date in the
database... Thanks all for the help.
Secondary question. after i get this question i run a query with a
following code:
query = db.table.id > 0
if fruit:
query &= db.table.fruit == fruit
however, the database stores
Hi Anthony,
I'm not including them. I'm only using with_alias() and the select in
combination with as_list(). I would not expect to get the _extra as a
little bonus when you use with_alias()...
That's why I'm asking :)
Greetings,
Eric
2016-07-20 20:56 GMT+02:00 Anthony :
> The "_extra" dicti
On Wednesday, July 20, 2016 at 12:35:44 PM UTC-7, web2py...@gmail.com wrote:
>
> Actually found out i was using the non datetime version of the date in the
> database... Thanks all for the help.
>
> Secondary question. after i get this question i run a query with a
> following code:
>
> query =
Boa tarde amigos!
Tenho o seguinte ambiente: a tabela padrão auth_user, com um campo city
adicional que é uma referência da tabela City e uma tabela Businessman.
City possui 1 ou * Businessman
Ask possui 1 ou 0 Businessman.
Quando o usuário se cadastra ele escolhe sua cidade, e para postar algum
El lunes, 13 de mayo de 2013, 2:56:27 (UTC-3), Pawan Jha escribió:
>
> Hi all
>
> I am using this in SQLFORM.grid
>
> here is confirm message but on clicking this Message is coming but when i
> am clicking on no the its refresh the pages
>
> so please tell me how will i prevent this
>
> lin
Hi!!!
In this manner, works the link:
links = [lambda row: A('Club call',_onclick="if(confirm('Do you want to
club this call?')) document.location='%s'; return false;" %
URL("","Incident",args=[row.id]))]
Regards.
El lunes, 13 de mayo de 2013, 9:11:10 (UTC-3), Pawan Jha escribió:
>
> not
On Wednesday, July 20, 2016 at 9:35:44 PM UTC+2, web2py...@gmail.com wrote:
>
> Actually found out i was using the non datetime version of the date in the
> database... Thanks all for the help.
>
> Secondary question. after i get this question i run a query with a
> following code:
>
> query =
Hello!
Anyone can help here? im having exactly the same issue, my route is:
routes_in = [('/init', '/init', dict(web2py_disable_session=True)]
and i'm getting a ticket with any route in my system but if i comment that
everything start working fine.
I dont use the session mechanism of web2py in
Part of the problem may be not any highly popular site ever used the
framework. So, its capabilities are somewhat untested. If youtube for
example used w2p framework, no one will question its performance. Just some
thoughts...
On Wednesday, July 20, 2016 at 11:48:48 AM UTC-4, Richard wrote:
Sorry for the confusion. And thanks!
On Wednesday, July 20, 2016 at 8:38:38 AM UTC-7, Niphlod wrote:
>
> ah, ok!!! me, I'm proud of myself very little these days
>
> but, and it's a big butI'm totally proud of you!
>
> On Wednesday, July 20, 2016 at 4:39:39 PM UTC+2, Michael Messmer wrote
Are you talking about High Availability? Load Balancer and Centralized DB?
Why and what kind of data?
On Wednesday, July 20, 2016 at 5:59:18 AM UTC-7, Aydin wrote:
>
> What's the best way to send data from web2py clients to a web2py server?
> Especially when there are many web2py clients tha
it should be routes_in = (('/init', '/init', dict(web2py_disable_session=
True))
no square brackets.
On Friday, January 8, 2016 at 4:30:17 PM UTC+5:30, T.R.Rajkumar wrote:
>
> I have in my routes.py in web2py folder the following.
> routes_in = (
> ('/ts2', '/web_ts2_site/home/home'),
>
> )
34 matches
Mail list logo