Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to POST html data to be handled by a route endpoint
Post: RE: How to POST html data to be handled by a route...

Can someone exaplin please?
nikos Web Scraping & Web Development 1 2,389 Mar-07-2020, 03:14 PM
    Thread: How to POST html data to be handled by a route endpoint
Post: How to POST html data to be handled by a route end...

Error accessing a route endpoint with same name in 2 processes Therere 2 different scripts each running on its own process: www.py is what is running on http://superhost.gr and test.py is what is ru...
nikos Web Scraping & Web Development 1 2,389 Mar-06-2020, 01:38 PM
    Thread: How to open port 8080 in CentOS 7
Post: How to open port 8080 in CentOS 7

I'am trying to use Bottle's embedded web server that runs in port 8080 I have logged to Webmin and enabled that port as allowed port. But when from my laptop i want to http://superhost.gr:8080 i get...
nikos Networking 0 4,289 Mar-02-2019, 03:02 PM
    Thread: Problem enabling http auth in a route
Post: RE: Problem enabling http auth in a route

Hello, someone has an idea or is this a bug in Bottle framework?
nikos Web Scraping & Web Development 2 2,818 Mar-02-2019, 01:13 PM
    Thread: Problem enabling http auth in a route
Post: RE: Problem enabling http auth in a route

If i swap the 2 decorators i then get an error instead of the basic auth prompt to enter the credentials. Error:[Fri Mar 01 11:34:20.522471 2019] [wsgi:error] [pid 20532] [remote 78.87.87.140:4813] T...
nikos Web Scraping & Web Development 2 2,818 Mar-01-2019, 09:37 AM
    Thread: Problem enabling http auth in a route
Post: Problem enabling http auth in a route

Hello, can someone help me with this please? This route works as expected @app.route( '/download', method=['GET', 'POST'] ) def download( pymydb ):while the following, in which iam trying with http ...
nikos Web Scraping & Web Development 2 2,818 Feb-28-2019, 01:21 PM
    Thread: missing 1 required positional argument error
Post: RE: missing 1 required positional argument error

Hello, can someone help me with this please? This route works as expected @app.route( '/download', method=['GET', 'POST'] ) def download( pymydb ):while the following, in which iam trying with http ...
nikos General Coding Help 3 7,494 Feb-28-2019, 12:53 PM
    Thread: missing 1 required positional argument error
Post: RE: missing 1 required positional argument error

pymydb comes from these lines in the top of myscript. plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='trustno1bm3$', dbname='clientele', dictrows=False ) app.install(plugin)That is in the top...
nikos General Coding Help 3 7,494 Feb-26-2019, 04:29 PM
    Thread: missing 1 required positional argument error
Post: missing 1 required positional argument error

I'm receiving the following error: Error:Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/bottle.py", line 862, in _handle return route.call(**args) File "/usr/lib6...
nikos General Coding Help 3 7,494 Feb-26-2019, 03:09 PM
    Thread: Rewrite a function to make it work with 'bottle-pymysql'
Post: RE: Rewrite a function to make it work with 'bottl...

Actually i kust found it has a directive: dictrows: Whether or not to support dict-like access to row objects (default: True). so i just did: plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass=...
nikos General Coding Help 1 1,979 Feb-26-2019, 02:59 PM
    Thread: Rewrite a function to make it work with 'bottle-pymysql'
Post: Rewrite a function to make it work with 'bottle-py...

Hello, Can you help me rewrite this function, which when iam using 'pymysql' conncector works normally, it does not when iam using 'bottle_pymysql' - απόκρυψη αναφερόμενου κειμένου - def coalesce(...
nikos General Coding Help 1 1,979 Feb-26-2019, 01:31 PM
    Thread: TypeError("index() missing 1 required positional argument: 'pymydb'"
Post: RE: TypeError("index() missing 1 required position...

Hello, any thoughts as to why i'm getting thsi error?
nikos Web Scraping & Web Development 2 4,294 Feb-26-2019, 12:15 PM
    Thread: TypeError("index() missing 1 required positional argument: 'pymydb'"
Post: TypeError("index() missing 1 required positional a...

# dbhost is optional, default is localhost plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*******', dbname='counters', charset = 'utf8' ) app.install(plugin) @app.route( '/' ) @auth_basic(...
nikos Web Scraping & Web Development 2 4,294 Feb-24-2019, 06:34 PM
    Thread: How to format a datetime MySQL database field to local using strftime()
Post: How to format a datetime MySQL database field to l...

# dbhost is optional, default is localhost plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*******', dbname='counters', charset = 'utf8' ) app.install(plugin) ..... pymydb.execute( '''SELECT...
nikos Web Scraping & Web Development 6 3,798 Feb-24-2019, 06:32 PM
    Thread: How to format a datetime MySQL database field to local using strftime()
Post: RE: How to make bottle-pymysql work

Hello?! Can you help please?
nikos Web Scraping & Web Development 6 3,798 Feb-24-2019, 06:23 PM
    Thread: How to format a datetime MySQL database field to local using strftime()
Post: RE: How to make bottle-pymysql work

'visit' is being returned from database containing a MySQL datatime field that i want to change to another format whcih is ('%A %e %b, %I:%M %p') thats why i'm using that function. If not convert or ...
nikos Web Scraping & Web Development 6 3,798 Feb-24-2019, 04:56 PM
    Thread: How to format a datetime MySQL database field to local using strftime()
Post: RE: How to make bottle-pymysql work

But that line before using 'bottle-pymysql' plugin worked without problem. Only after using bottle-pymysql iam receiving this error. How should i write it?
nikos Web Scraping & Web Development 6 3,798 Feb-24-2019, 04:43 PM
    Thread: How to format a datetime MySQL database field to local using strftime()
Post: How to make bottle-pymysql work

I decided to move from 'pymysql' to 'bottle-pymysql' plugin. i have this code: # dbhost is optional, default is localhost plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*******', dbname='cou...
nikos Web Scraping & Web Development 6 3,798 Feb-24-2019, 04:41 PM
    Thread: pymysql.err.InterfaceError
Post: RE: pymysql.err.InterfaceError

Anyone familiar with PyMySQL that knows about this error? and this error too: Quote:pymysql.err.OperationalError pymysql.err.OperationalError: (2006, "MySQL server has gone away (BrokenPipeError(32,...
nikos Web Scraping & Web Development 1 3,047 Feb-24-2019, 02:07 PM
    Thread: Issue with bottle-pymysql
Post: RE: Issue with bottle-pymysql

Thank you for willing to help, but due to other problems with encoding as well, i decided not to use bottle but Flask instead.
nikos Web Scraping & Web Development 13 5,493 Feb-23-2019, 11:15 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020