[web2py] Re: web2py session disable

2016-07-20 Thread T.R.Rajkumar
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'), > > )

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-20 Thread Michael Messmer
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

Re: [web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Michael Messmer
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

Re: [web2py] Re: How active and 'professional' is web2py?

2016-07-20 Thread Ron Chatterjee
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:

[web2py] Re: web2py session disable

2016-07-20 Thread luis . valladares
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Niphlod
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 =

Re: [web2py] Re: Want to add Confirmation on link in sqlform.grid

2016-07-20 Thread isi_jca
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

[web2py] Re: Want to add Confirmation on link in sqlform.grid

2016-07-20 Thread isi_jca
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

[web2py] Gerar menu com base em filtro.

2016-07-20 Thread leonardoporto
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Dave S
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 =

Re: [web2py] Re: Remove _extra from as_list()

2016-07-20 Thread Eric Christiaanse
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread web2pyuser777
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

[web2py] Re: Remove _extra from as_list()

2016-07-20 Thread Anthony
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Niphlod
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: "

Re: [web2py] Re: How active and 'professional' is web2py?

2016-07-20 Thread Richard Vézina
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread web2pyuser777
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

Re: [web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Niphlod
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Niphlod
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread web2pyuser777
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

[web2py] Re: How active and 'professional' is web2py?

2016-07-20 Thread Carlos Zenteno
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

[web2py] Re: How active and 'professional' is web2py?

2016-07-20 Thread Carlos Zenteno
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

Re: [web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Michael Messmer
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: >> >

Re: [web2py] web2py on android

2016-07-20 Thread Carlos Cesar Caballero Díaz
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

[web2py] Re: UWSGI root vs limited user.

2016-07-20 Thread Niphlod
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Niphlod
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,

[web2py] Re: tootip in menu

2016-07-20 Thread Niphlod
^_^''' 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

[web2py] Remove _extra from as_list()

2016-07-20 Thread Eric
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

[web2py] Re: having issues with dates and DAL

2016-07-20 Thread Marlysson Silva
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

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-20 Thread Marlysson Silva
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

[web2py] Best way to send data from web2py client to web2py server

2016-07-20 Thread Aydin
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/

[web2py] Re: is_in_db() contains query not work for list:reference type

2016-07-20 Thread Anthony
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

[web2py] tootip in menu

2016-07-20 Thread 'Annet' via web2py-users
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

[web2py] is_in_db() contains query not work for list:reference type

2016-07-20 Thread 黄祥
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(

[web2py] custom register and verify_email

2016-07-20 Thread 'Annet' via web2py-users
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