[web2py] Re: Update web2py manually

2019-02-14 Thread Константин Комков
Dave, did you saw my project above? Is it return message or full welcome page on your computer? I saw iis logs and didn't find any helpful information. I use reutes.py in web2py folder and it contain that: > routers = dict( > # base router > BASE=dict( > default_function = 'index', >

[web2py] Python 3 - Traceback problems

2019-02-14 Thread Brian M
Am I really the only one having this problem? Having the error ticket system not work seems like a pretty significant obstacle to using web2py with python 3.7 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread 黄祥
on the stackoverflow ben's sent seems like problem with mysql ver 8 running on windows perhaps you can use docker to run mysql or mariadb or percona container (which running on top of linux os) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread Dave S
On Thursday, February 14, 2019 at 7:29:07 AM UTC-8, Andrea Fae' wrote: > > Yes > > Il giorno gio 14 feb 2019, 16:12 Ben Duncan > ha scritto: > >> Ok, is the python AND the mysql on the same windows BOX ? >> If not, could be a firewall issue. >> [...] >> > On Thu, Feb 14, 2019 at 7:48 AM andfae

[web2py] Re: Update web2py manually

2019-02-14 Thread Dave S
On Thursday, February 14, 2019 at 12:34:29 AM UTC-8, Константин Комков wrote: > > I have updated web2py alredy but that error remained. I can not start new > project 2 week. > I think it would help for you to post part of your IIS logs showing the page load and the AJAX request (sanitize

Re: [web2py] Re: Center things in MARKMIN

2019-02-14 Thread Val K
Yes, just pass it: auth.wiki(extra = dict(centred = lambda text: DIV(text, _style = 'text-align:center;'))) but it seems, that page should be edited/updated to get effect On Friday, February 15, 2019 at 12:03:28 AM UTC+3, rif wrote: > > Can I do this with auth.wiki? > > În joi, 14 feb.

Re: [web2py] Re: Center things in MARKMIN

2019-02-14 Thread Radu Ioan Fericean
Can I do this with auth.wiki? În joi, 14 feb. 2019, 22:58 Val K # you can extend MARKMIN using ``...``: > > MARKMIN("blah blah *``*Title``:centred blah blah", extra = dict(centred > = lambda text: DIV(text, _style = 'text-align:center;'))) > > > On Thursday, February 14, 2019 at 3:47:22 PM

[web2py] Re: Center things in MARKMIN

2019-02-14 Thread Val K
# you can extend MARKMIN using ``...``: MARKMIN("blah blah *``*Title``:centred blah blah", extra = dict(centred = lambda text: DIV(text, _style = 'text-align:center;'))) On Thursday, February 14, 2019 at 3:47:22 PM UTC+3, rif wrote: > > hey guys, > > I am using auth.wiki and I would like to

Re: [web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Ok, will give it a shot tomorrow. Yeah, I like to do things the long way. But I'm kinda restricted to getting this accounting app to match (look and feel) of a late 1990's PERL based application (Federal PACER system based ...) It's what all the attorneys and court clerks are used to using in our

Re: [web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Val K
It seems you like handmade things;) I don't see the closing tag - Try to remove your handmade hidden field and place {{ =form.hidden_fields() }} and it should be return dict(form=in_form) in the controller On Thursday, February 14, 2019 at 9:59:41 PM UTC+3, Ben Duncan wrote: > > Sure:

Re: [web2py] Mysql 8.0.15

2019-02-14 Thread Ben Duncan
Related possibly: https://stackoverflow.com/questions/45368336/error-keyerror-255-when-executing-pymysql-connect *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Thu, Feb 14, 2019 at 1:09 PM Andrea Fae' wrote: > Hello, I'm sorry but

[web2py] Mysql 8.0.15

2019-02-14 Thread Andrea Fae'
Hello, I'm sorry but I'm not able to use web2py with this type of db. I just installed mysql version 8.0.15 on windows 10 pro and I have connector for Python 3.7 and 2.7 installed I created using mysql.exe a db named 'gadb', without any tables. with web2py I created a new "welcome" application

Re: [web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Sure: But, it seems something is strange with firefox, closing the web browser down and then opening it back up again, and it works the way it should... Gess .. Is it always this weird / hard in the world of web programming ?

[web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Leonel Câmara
Can I see the rest of the view? It seems you're missing the form hidden fields which have the token. -- 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) --- You

[web2py] Re: error connecting to mysql

2019-02-14 Thread Andrea Fae'
PLEASE HELP ME THANK YOU Il giorno mercoledì 13 febbraio 2019 21:46:19 UTC+1, Andrea Fae' ha scritto: > > Hello. I have this error when I start application "ga" > > Error ticket for "ga" > Ticket ID > > 127.0.0.1.2019-02-13.20-49-28.fcc1a494-3aa4-42c2-b1a9-ab14a466e72e > Failure to connect,

Re: [web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Yes, in the view: Let me check my config for the CSRF token ... *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Thu, Feb 14, 2019 at 12:12 PM Leonel Câmara wrote: > How are you submitting this form? It

[web2py] Re: Weird behavior in sqlform / forms ...

2019-02-14 Thread Leonel Câmara
How are you submitting this form? It doesn't seem to be using POST, it seems you're just requesting a new page with the form using GET. In case that's not what's happening the other possible cause is that you have a session.forget somewhere or something is wrong with your cookies and the form

[web2py] Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
I'm never EVER getting either a n_form.process().accepted nor a in_form.errors hit in the controller The following python default code tested with BOTH SQLFROM.factory AND the FORM >From controller default.py: (Version with FORM)

Re: [web2py] Run JAVA script in controller.

2019-02-14 Thread Marco Mansilla
Have you tried response.js = "" Should help. El jue., 14 de feb. de 2019 12:14, Ben Duncan escribió: > Is it possible to fire off a java script in the controller .py file? > > i.e.: > if in_form.process(session=None, formname='login').accepted: > response.flash = 'form

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread andfae
Yes Il giorno gio 14 feb 2019, 16:12 Ben Duncan ha scritto: > Ok, is the python AND the mysql on the same windows BOX ? > If not, could be a firewall issue. > > For the record, my python stand alone are truly stand alone (But I run > LINUX , no Windowns here). > So all my script are not thru

Re: [web2py] Re: Splitting form

2019-02-14 Thread Ben Duncan
Ok, I've gotten web2py working with the way I want. Part of the problem is is needed to have: then in the .html a formname assigned in the controller. Everything is now shiny again *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division

[web2py] Run JAVA script in controller.

2019-02-14 Thread Ben Duncan
Is it possible to fire off a java script in the controller .py file? i.e.: if in_form.process(session=None, formname='login').accepted: response.flash = 'form accepted' [ << JAVASCRIPT FIRES OFF HERE>>] elif in_form.errors: response.flash = 'form has errors'

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread Ben Duncan
Ok, is the python AND the mysql on the same windows BOX ? If not, could be a firewall issue. For the record, my python stand alone are truly stand alone (But I run LINUX , no Windowns here). So all my script are not thru the web2py but use the pydal library ... *Ben Duncan* DBA / Chief Software

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread andfae
How to test via command prompt the connection between python and mysql? Il giorno gio 14 feb 2019 alle ore 14:47 andfae ha scritto: > Yes I tried this usi too uri = mysql://root:passwordroot@localhost/gadb > I don't know what is the problem... > Thank you > > Il giorno gio 14 feb 2019 alle ore

Re: [web2py] Re: Migrate from sqlite to mysql

2019-02-14 Thread andfae
Yes I tried this usi too uri = mysql://root:passwordroot@localhost/gadb I don't know what is the problem... Thank you Il giorno gio 14 feb 2019 alle ore 00:48 黄祥 ha scritto: > RuntimeError: Failure to connect, tried 5 times: > > seems have a connection problem between python and mysql >

[web2py] Center things in MARKMIN

2019-02-14 Thread rif
hey guys, I am using auth.wiki and I would like to center things (e.g. titles, images) horizontaly on the page. I didn't find any documentation on this, does anybody have any hints for me? thanks, -rif -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Update web2py manually

2019-02-14 Thread Константин Комков
I have updated web2py alredy but that error remained. I can not start new project 2 week. -- 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) --- You received