[web2py] Re: How to get the value of a submitted form in the controller action [URGENT]

2017-05-11 Thread sunda . amran
But this request.vars.category, i have to ryt it in the view and then pass it to then action via my script, or i directly write it on the action ? Because in both case, the value he show is none ... Le jeudi 11 mai 2017 15:51:36 UTC+2, sunda...@gmail.com a écrit : > > Hello, > > > Normally and

[web2py] Expected behaviour of IS_IN_SET(set) if set is empty ?

2017-05-11 Thread Karoly Kantor
I have a situation where the "set' in IS_IN_SET(set) is dynamic, and sometimes will be empty in: form = SQLFORM.factory( Field("value", type='string', label=field_name, default=value, requires=IS_IN_SET(set)), ... more fields ... ) I would expect that if 'set' is empty, this would always fail v

[web2py] Re: Reportlab show image stored in database

2017-05-11 Thread Dave S
On Thursday, May 11, 2017 at 6:04:11 PM UTC-7, Dave S wrote: > > > > On Thursday, May 11, 2017 at 5:26:32 PM UTC-7, Winter Kryz wrote: >> >> It doesn't work with "uploads" >> >> Anyone know how to show a image which was stored in a database in a pdf >> file?? >> >> > > I think it's time to sho

[web2py] Re: Reportlab show image stored in database

2017-05-11 Thread Dave S
On Thursday, May 11, 2017 at 5:26:32 PM UTC-7, Winter Kryz wrote: > > It doesn't work with "uploads" > > Anyone know how to show a image which was stored in a database in a pdf > file?? > > I think it's time to show more of your controller code that generates the pdf file. /dps > > El m

[web2py] Re: Service call problem with new installation on Windows and raspberry

2017-05-11 Thread Dave S
On Thursday, May 11, 2017 at 5:05:14 PM UTC-7, Stef Mientki wrote: > > Hello, > > > > 3 years ago I made a web2py site, which has run on a Raspberry Pi without > any problems since 3 years. > > I now want to replace the Raspberry Pi with a Raspberry Pi Zero > (larger/faster). > > > > I have

[web2py] Re: how to get back db data on view ?

2017-05-11 Thread Dave S
On Thursday, May 11, 2017 at 5:05:09 PM UTC-7, kaungyaz...@gmail.com wrote: > > I create one db customer table.I can insert data into the database but i > dont know how to retrieve data back on the screen.i m using SQLFORM method. > The basic answer is that you query the database for the data,

[web2py] Re: Reportlab show image stored in database

2017-05-11 Thread Winter Kryz
It doesn't work with "uploads" Anyone know how to show a image which was stored in a database in a pdf file?? El miércoles, 10 de mayo de 2017, 21:32:38 (UTC-3), Winter Kryz escribió: > > Hello everyone, > > I'm doing a report using reportlab and I have a table like this > > db.define_table('d

[web2py] how to get back db data on view ?

2017-05-11 Thread kaungyazarbcm4313
I create one db customer table.I can insert data into the database but i dont know how to retrieve data back on the screen.i m using SQLFORM method. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Service call problem with new installation on Windows and raspberry

2017-05-11 Thread Stef Mientki
Hello, 3 years ago I made a web2py site, which has run on a Raspberry Pi without any problems since 3 years. I now want to replace the Raspberry Pi with a Raspberry Pi Zero (larger/faster). I haven't used web2py for 3 years and thought simply installing a new web2py and moving the applicat

[web2py] Re: Manual error regarding "hidden" fields

2017-05-11 Thread Dave S
On Wednesday, May 10, 2017 at 3:23:08 PM UTC-7, Dave S wrote: > > > > On Wednesday, May 10, 2017 at 11:01:18 AM UTC-7, Joe Barnhart wrote: >> >> "Invalidate".was supposed to be "onvalidation" before autospell worked >> its wonder... > > > :-) > > I'll see what I can do tonight. > > /dps > I did

[web2py] recurring events from one form

2017-05-11 Thread Andrea Fae'
Hello, I have a form that in this moment create one record in the database. This records represent an event: db.define_table('evento', Field('titolo', requires=[IS_NOT_EMPTY()]), Field('inizio', type='datetime'), Field('fine', type='datetime'),

Re: [web2py] Re: flash message gets lost

2017-05-11 Thread Vid Ogris
OK so changing if form.process().accepted to if form.accepted works for user registers, if I remove it from if request.args(0)=='profile': block, it is not triggered. As far as flash message goes the flash works after user updates profile and everywhere else on my page but after registration it see

[web2py] Re: Extracting values out of a python list as individual entities

2017-05-11 Thread Anthony
Are you still looking for help on this? If so, please explain what more you need beyond the answer you accepted on Stack Overflow: http://stackoverflow.com/a/43682846/440323. Anthony On Thursday, May 11, 2017 at 6:51:34 AM UTC-4, mostwanted wrote: > > Please someone out there coz I'm pulling ou

[web2py] Re: Type conversion for args/vars?

2017-05-11 Thread Anthony
In many cases, values are already converted to the appropriate type automatically (e.g., when doing database inserts). Aside from that, you could write your own convenience function in a few lines of code, and it can do exactly what you want (e.g., convert both "True" and "true" to a boolean).

[web2py] Re: How to get the value of a submitted form in the controller action [URGENT]

2017-05-11 Thread Anthony
The value will be in request.vars.category. On Thursday, May 11, 2017 at 9:51:36 AM UTC-4, sunda.am...@gmail.com wrote: > > Hello, > > > Normally and in a lot of tutorials i see the declaration of a form inside > the controller and onlly {{=form}} inside the view Sadly i am working > in a b

[web2py] Re: Use reserved Keyword 'response'

2017-05-11 Thread Anthony
Please show your code. On Thursday, May 11, 2017 at 12:28:37 PM UTC-4, Francisco García wrote: > > Hello all, > > In a service Restful I need to return a dict in the form: > > {'response' : {'data' : .}} > > The problem is that I can't use 'response' Keyword this way. > I get the error: > key

[web2py] Use reserved Keyword 'response'

2017-05-11 Thread Francisco García Claramonte
Hello all, In a service Restful I need to return a dict in the form: {'response' : {'data' : .}} The problem is that I can't use 'response' Keyword this way. I get the error: keyword can't be an expression I would like to know if there is a way to do that. Thank you in advance. Regards, Fra

[web2py] Re: Type conversion for args/vars?

2017-05-11 Thread Marcelo Huerta
El jueves, 11 de mayo de 2017, 4:10:47 (UTC-3), Brendan Barnwell escribió: > > > number = convert(request.args[1]) > number = request.args(1, cast=int) > option = convert(request.vars['option']) > I'm not aware of anything in this case. -- Resources: - http://web2py.com - http://web2py.com/

[web2py] Web2py Postgresql Groupby issue

2017-05-11 Thread Oasis Agano
Hello i have moved my connection to Postgres from sqlite and im facing this issue; ret = self.get_cursor().execute(command, *a[1:], **b) ProgrammingError: column "water_flow_log.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: SELECT water_flow_log.id, water

[web2py] How to get the value of a submitted form in the controller action [URGENT]

2017-05-11 Thread sunda . amran
Hello, Normally and in a lot of tutorials i see the declaration of a form inside the controller and onlly {{=form}} inside the view Sadly i am working in a big website with hundred files and they did like the declaration of the form with Helpers inside the view. SO, the problem is that wh

Re: [web2py] Re: How can I union 2 different table datasets?

2017-05-11 Thread Richard Vézina
Good news you workaroud! Richard On Wed, May 10, 2017 at 5:52 PM, George D Elig wrote: > I created a view as you suggested. However, when I ran the view in > SQLForm.grid() I received a web2py error that the 'id' did not exist (which > is doesn't). As a hack to get around this, I manually creat

Re: [web2py] Re: web2py and python3

2017-05-11 Thread Richard Vézina
No problem... I can't say when Massimo's gonna disclose his new framework, you have to ask him... But it should be soon as he compromise his self saying he has one in the pipeline... Keep tune... :) Richard On Thu, May 11, 2017 at 3:49 AM, Muhammad Hashim Malik < has...@rehmansoft.com> wrote: >

[web2py] Extracting values out of a python list as individual entities

2017-05-11 Thread mostwanted
Please someone out there coz I'm pulling out my hairs at this point: I want to extract pictures from within a list of elements extracted from the database and store them inside a JavaScript array for a slide show. *CONTRLOLLER* def form1Details(): form=db.compForm(request.args(0)) for

[web2py] selecting python list elemnts without searching

2017-05-11 Thread mostwanted
Please someone out there coz I'm pulling out my hairs at this point: I want to extract pictures from within a list of elements extracted from the database and store them inside a JavaScript array for a slide show. *CONTRLOLLER* def form1Details(): form=db.compForm(request.args(0)) fo

[web2py] Re: [REMEMBER_ME] Not working

2017-05-11 Thread sunda . amran
Thank you soo much guys for having answered ... :D do you have also the solution of sending mails ? since i passe from http to https, the mail isnt working ( even in the welcome app) Le mardi 2 mai 2017 18:29:19 UTC+2, sunda...@gmail.com a écrit : > > Hello, > This is actually my first questi

Re: [web2py] Re: web2py and python3

2017-05-11 Thread Muhammad Hashim Malik
Dear Richard I know web2py can be used with python3, but, I want to play with web3py and waiting for that badly. Please dont' mind my restless waiting for new framework. Truly, Malik Muhammad Hashim *Malik M. Hashim* PO MCC(East) +92-300-3754107 On Tue, May 2, 2017 at 8:51 PM, Richard Vézi

[web2py] Type conversion for args/vars?

2017-05-11 Thread Brendan Barnwell
Does web2py provide any kind of utility to convert the request args and vars "intelligently" into regular Python types? Values passed in the URL or query string will always be received as strings by web2py code, but in many cases they really need to be converted to other types. In a URL like