[web2py] Howto: Postgres Database Transfer. Solved.

2015-12-20 Thread Ben Lawrence
HI, This is not a question, but just some information for any one with not much experience in postgres (like me). Problem: Dump database from postgresql on one server and restore it on another. Solution: Assuming your appconfig.ini is uri =

[web2py] Re: Scheduler worker name

2015-12-20 Thread Niphlod
you just had to delete corresponding .table files. scheduler tables are created as soon as the scheduler is istantiated, unless migrations are turned off. On Friday, December 18, 2015 at 4:17:48 PM UTC+1, Gael Princivalle wrote: > > No I don't. > > But now I have: > Dropped all tables in the

[web2py] Re: How to make a form for accepting images (through default.py controller)?

2015-12-20 Thread xmarx
form = FORM(INPUT(_name='img', _type='file', upload=True),INPUT(_type='submit')) 19 Aralık 2015 Cumartesi 16:21:26 UTC+2 tarihinde RAGHIB R yazdı: > > form = FORM(INPUT(_name='img', upload=True),INPUT(_type='submit')) > > This is not working. What's wrong here? > -- Resources: -

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread xmarx
thanks Pierre. but i don't think i understand you clearly, sorry. if i understand you correctly, you say why all checkbox inputs have same name (q). but they are checkboxes. they must have a same name. i will get selected inputs with request.post_vars or request.vars. when i submit first form,

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread Anthony
On Sunday, December 20, 2015 at 6:39:45 AM UTC-5, xmarx wrote: > > > def test2(): > if request.vars and request.vars.q: > selected_questions=request.vars.q > form=SQLFORM(db.test) > if form.process().accepted: > session.flash='Test added!' >

[web2py] Re: Error decode json SimpleJson web2py

2015-12-20 Thread Alessio Varalta
I found the solution. The problem is that i pass a wrong key value. I think there is a bug on web2py about ticket. Because the ticket don't tell me foreign key wrong but json wrong On Saturday, 19 December 2015 16:12:02 UTC+1, Alessio Varalta wrote: > > Hi , I have a problem with send a json to

Re: [web2py] Re: web2py 2.13.1 is OUT

2015-12-20 Thread Alessio Varalta
Hi, how can I upgrade? There is the possibility to upgrade by console web2py? On Saturday, 19 December 2015 23:32:54 UTC+1, Yoel Benitez Fonseca wrote: > > sorry, in the console it works, its seems to be my problem > > 2015-12-19 17:27 GMT-05:00, Yoel Benitez Fonseca >: >

[web2py] manual form and SQLFORM question

2015-12-20 Thread xmarx
hi all. page is here: https://xmarx.pythonanywhere.com/deneme/default/test1 i have a page has form that manually created. if submits page redirect new page that has a SQLFORM. i cannot have a result form second page. def test1(): questions=[1,2,3,4,5,6,7,8,9,10] return locals()

[web2py] Re: How to make a form for accepting images (through default.py controller)?

2015-12-20 Thread xmarx
to make a form accepts only images see this: http://www.w3schools.com/tags/att_input_accept.asp you can add _accept="image/*" 19 Aralık 2015 Cumartesi 16:21:26 UTC+2 tarihinde RAGHIB R yazdı: > > form = FORM(INPUT(_name='img', upload=True),INPUT(_type='submit')) > > This is not working. What's

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread xmarx
i want to do this: user selects some of the questions (checkboxes) and saves them a test (SQLFORM). it doesn't matter how to do this. with or without form, redirects or in one page. i was using q's to retrieve selected checboxes, i did it with jquery. my way: page1: test.html select page. i

Re: [web2py] Re: Payment gateway

2015-12-20 Thread Mathieu Clabaut
I have,'t seen anything up to date for paypal… But there is a working base for stripe on gluon/contrib/stripe.py On Sun, Dec 20, 2015 at 8:55 PM Ron Chatterjee wrote: > Is there a .w2p example with forms and payment processing to look at? Not > sure if slice is

[web2py] Re: manual form and SQLFORM question

2015-12-20 Thread Pierre-Antoine Roiron
Hi, could it be that you don't increment your ? I think that html doesn't care, but when passing it to python ? -- 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

[web2py] Re: Payment gateway

2015-12-20 Thread Ron Chatterjee
Is there a .w2p example with forms and payment processing to look at? Not sure if slice is updated for paypal etc. On Saturday, December 19, 2015 at 10:34:33 PM UTC-5, Anthony wrote: > > Have you looked at this yet: >

[web2py] Re: Scheduler worker name

2015-12-20 Thread Gael Princivalle
Now tables files are created in the database folder, but tables are not created in the postgress DB. Error in always the same when I try to open a table from the administration interface. ProgrammingError: relation "scheduler_worker" does not exist LINE 1: SELECT count(*) FROM