Re: [web2py] Re: web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-23 Thread 黄祥
> > I'm sorry. What is "in trunk"? > it means you should try the fixed version from the github repo itself by: git clone --recursive https://github.com/web2py/web2py.git best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

Re: [web2py] Re: web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-23 Thread andfae
I'm sorry. What is "in trunk"? Il Lun 23 Apr 2018, 13:17 Paolo Caruccio ha scritto: > This issue has been already fixed in trunk. Please see: > > https://github.com/web2py/web2py/issues/1828 > > https://github.com/web2py/web2py/issues/1886 > > If you don't want to download the updated version of

[web2py] Re: web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-23 Thread Paolo Caruccio
This issue has been already fixed in trunk. Please see: https://github.com/web2py/web2py/issues/1828 https://github.com/web2py/web2py/issues/1886 If you don't want to download the updated version of layout.html file and prefer to manually correct the problem please see https://groups.google.c

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-21 Thread Lisandro
El sábado, 21 de abril de 2018, 18:00:36 (UTC-3), Anthony escribió: > > A quick comment about a couple of tests I did regarding RedisSession (that >> also has a "with_lock" argument). >> To the test, I updated web2py locally to version >> 2.16.1-stable+timestamp.2017.11.14.05.54.25 >> And then I

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-21 Thread Anthony
> > A quick comment about a couple of tests I did regarding RedisSession (that > also has a "with_lock" argument). > To the test, I updated web2py locally to version > 2.16.1-stable+timestamp.2017.11.14.05.54.25 > And then I run my apps using: > >- RedisSession(..., with_lock=False) >Thi

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Actually I can't reproduced... It could it be a permission error?? Try to clone it fresh some where you have full access with this command : git clone --recursive https://github.com/web2py/web2py.git Then cd web2py python3 web2py.py Enter password Richard On Sat, Apr 21, 2018 at 8:01 AM, Ri

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Can you open an issue? I think it related to this : https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269 Path string that has to be manipulated differently in python 3 Explanation https://www.scivision.co/python-idiomatic-pathlib-use/ On Fri, A

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-21 Thread Lisandro
Ok, I've left it set to True. A quick comment about a couple of tests I did regarding RedisSession (that also has a "with_lock" argument). To the test, I updated web2py locally to version 2.16.1-stable+timestamp.2017.11.14.05.54.25 And then I run my apps using: - RedisSession(..., with_lock=

[web2py] Re: web2py 2.16.1 is OUT

2018-04-20 Thread lyn2py
I just git cloned the latest web2py and started it up with *python3* Version 2.16.1-stable+timestamp.2018.03.08.10.23.01 Database drivers available: sqlite3, imaplib, pymysql, pyodbc I got this error in console ERROR:root:New installation error: unable to create welcome.w2p file When I quit the p

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Anthony
On Friday, April 20, 2018 at 11:58:47 AM UTC-4, Lisandro wrote: > > I see what you mean. > But still, if my interpretation is correct, in those cases we should see > the *__lock key stored. > What is weird about my specific issue is that there was no *__lock key. > > Anyway, regardless upgrading

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Lisandro
I see what you mean. But still, if my interpretation is correct, in those cases we should see the *__lock key stored. What is weird about my specific issue is that there was no *__lock key. Anyway, regardless upgrading web2py, now I'm wondering if I should set with_lock True or False. Do you ha

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Anthony
On Friday, April 20, 2018 at 10:47:10 AM UTC-4, Lisandro wrote: > > Thank you very much for your time Anthony. > > Yes, I use Redis with_lock=True. > I checked but there is no *__lock key stored in Redis. I double checked > that. > > But, giving you mentioned with_lock, I tried to set with_lock=Fa

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Lisandro
Thank you very much for your time Anthony. Yes, I use Redis with_lock=True. I checked but there is no *__lock key stored in Redis. I double checked that. But, giving you mentioned with_lock, I tried to set with_lock=False, and it worked. Then I set with_lock=True again, and it worked too. *App

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Anthony
When you set up the Redis cache, do you set with_lock=True? If so, I wonder if an error here could be causing the key to be locked and never released. I guess you can check for a

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-20 Thread Lisandro
Sorry to bother you again with this, but I think I've found the problem. *The problem is apparently with Redis integration. *It had nothing to do with connections, database, sessions, none of that. Here is what I've found. Remember, the line where my app hangs is this: *session.important_message

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-19 Thread Lisandro
Hi there, I've found the issue but I still don't know how is it produced. Anthony was right from the begining when he said "the app is not hanging because the locks are being held, but rather the locks are being held because the app is hanging" Since that comment, I was waiting for the problem to

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-16 Thread Lisandro
Hi, thank you both for your time and concern. @Richard: this particular website was still running with sessions stored in Redis. As we have several websites, moving sessions to Redis is something that we will do progressively in the next weeks. @Anthony: the database server is PostgreSQL, runni

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-16 Thread Anthony
Where is the database server running? Is it possible there are occasional network problems connecting to it? Anthony On Monday, April 16, 2018 at 3:15:54 PM UTC-4, Lisandro wrote: > > Hi there, sorry to bother again, I have some additional info that could > help. > > The problem happened again,

Re: [web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-16 Thread Richard Vézina
Hello LIsandro, I recall you have ask question about session in redis... Could there are remaining stuff of experiment with redis that haven't been commented out completly?? Richard On Mon, Apr 16, 2018 at 3:15 PM, Lisandro wrote: > Hi there, sorry to bother again, I have some additional info

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-16 Thread Lisandro
Hi there, sorry to bother again, I have some additional info that could help. The problem happened again, exactly the same as the other times. But this time an error ticket was created with this traceback: - Traceback (most recent call last): File "/var/www/medios/gluon/main.py"

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-06 Thread Lisandro
Oh, I see, you made a good point there, I hadn't realised. I guess I will have to take a closer look to my app code. Considering that the problem exists in specific accounts while others work ok, and considering also that the problem happens with any request that that specific user makes to any

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-06 Thread Anthony
On Friday, April 6, 2018 at 10:58:56 AM UTC-4, Lisandro wrote: > > Yes, in fact, I've been running that SQL command to check for locks, and > sometimes I see that lock on other tables, but that other locks live for > less than a second. However, when the problem happens, the lock on the > auth_u

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-06 Thread Lisandro
Yes, in fact, I've been running that SQL command to check for locks, and sometimes I see that lock on other tables, but that other locks live for less than a second. However, when the problem happens, the lock on the auth_user and web2py_session tables remains there for the whole 60 seconds. F

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-05 Thread Anthony
For any select that takes place within a transaction, Postgres by default automatically acquires a access share lock on the involved tables, so this should be happening on all requests. However, access share locks do not conflict with each other, so I don't think these locks are necessarily the

[web2py] Re: web2py & react

2018-03-30 Thread 黄祥
tried it for learn, nice app, at first thought that the form submitted will store in database, hehe *installation and running step :* *terminal_0* cd path/web2py/applications git clone https://github.com/jredrejo/web2pyreactpoc cd web2pyreactpoc/static/src npm install ./node_modules/.bin/webpack

[web2py] Re: web2py api call from angular 4

2018-03-19 Thread Dave S
On Monday, January 22, 2018 at 4:57:34 AM UTC-8, yogeshwar khalkar wrote: > > Please help me, > > > When I am try to login from angular 4 app to web2py rest api browser shows > error like > > OPTIONS http://127.0.0.1:8000/csautomation/user/login 405 (METHOD NOT > ALLOWED) > > *AND* > > Failed t

[web2py] Re: web2py debugger breakpoint works once only in 2.16.1

2018-03-18 Thread David Manns
Once a single breakpoint has been triggered, no combination of clearing breakpoints, setting new breakpoints work. The new breakpoints show on the breakpoints as being set, but they do not trigger. This is definitely a bug, don't understand why this was marked as 'no action needed' David On M

[web2py] Re: web2py manual entry for 3.3 An image blog does not work

2018-02-14 Thread Anthony
On Wednesday, February 14, 2018 at 3:04:54 PM UTC-5, Bryan Nahrwold wrote: > > However, it does not work unless I include the linne you said to omit: > > db = DAL("sqlite://storage.sqlite") > If you are starting with the scaffolding app, it should already include: configuration = AppConfig(reload

[web2py] Re: web2py manual entry for 3.3 An image blog does not work

2018-02-14 Thread Bryan Nahrwold
However, it does not work unless I include the linne you said to omit: db = DAL("sqlite://storage.sqlite") On Wednesday, 14 February 2018 13:00:14 UTC-7, Bryan Nahrwold wrote: > > Thanks, Anthony. That works. > > On Wednesday, 14 February 2018 08:47:57 UTC-7, Anthony wrote: >> >> Good catch. The

[web2py] Re: web2py manual entry for 3.3 An image blog does not work

2018-02-14 Thread Bryan Nahrwold
Thanks, Anthony. That works. On Wednesday, 14 February 2018 08:47:57 UTC-7, Anthony wrote: > > Good catch. The problem is the new default version of db.py creates a > "configuration" object, which is subsequently referenced in the menu.py > model file. > > Anyway, there is no need to completely

[web2py] Re: web2py manual entry for 3.3 An image blog does not work

2018-02-14 Thread Anthony
Good catch. The problem is the new default version of db.py creates a "configuration" object, which is subsequently referenced in the menu.py model file. Anyway, there is no need to completely replace the contents of db.py -- just add the content shown, except you don't need the db = DAL(...) l

[web2py] Re: Web2py scheduler

2018-02-10 Thread Massimo Di Pierro
Please install and use psycopg2. There are known issues with pg8000. On Tuesday, 6 February 2018 08:17:51 UTC-6, Simona Chovancová wrote: > > solved, ran worker in different application than the task was sent from > > On Tuesday, February 6, 2018 at 2:34:24 PM UTC+1, Simona Chovancová wrote: >> >

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Anthony
On Friday, February 9, 2018 at 11:22:45 AM UTC-5, Leonel Câmara wrote: > > No I would like multiple controller functions per file, but I would like > to be able to have directories inside the controllers directory, basically > have controller packages. > Got it. My question was actually addresse

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Leonel Câmara
No I would like multiple controller functions per file, but I would like to be able to have directories inside the controllers directory, basically have controller packages. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Anthony
On Friday, February 9, 2018 at 4:18:19 AM UTC-5, Alessio Varalta wrote: > > Yes you have many controller if you have for example index, show, delete, > update in one file for one entity for example person eccbut many files > controller in folder is not a problem..for example you can have the

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Leonel Câmara
Anthony generally I like to separate backoffice/management functions from front office actions. So one hierarchy I like to do is to have a "manage" controller, then I have a controller for each entity that will be managed. So I would like to do something like: # these are all controller functio

[web2py] Re: Web2py and multiple controller

2018-02-09 Thread Alessio Varalta
Yes you have many controller if you have for example index, show, delete, update eccbut many files controller in folder is not a problem..for example you have the folder person with all file relates to person contact, address ecc...so is not a problem to have many files because you have a l

[web2py] Re: Web2py and multiple controller

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 4:00:48 AM UTC-5, Alessio Varalta wrote: > > I have a new project and I have to choose if web2py is the right framework. > My doubt is about the structure of a web2py application. > You canno't have subfolder right? > So you can put the major of the code in the modu

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
> > Before you do that, can we see exactly what is the request.vars['id'] > object? Based on the exception you are getting, it seems it is a list, in > which case, there is a problem with your code, not with SQLFORM. > Note, in particular, if you have an "id" variable in the URL query string a

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 1:11:22 PM UTC-5, Leonel Câmara wrote: > > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://github.com/web2py/web2py/blob/master/gluo

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 4:26:59 PM UTC-5, F.C. wrote: > > Thank you so much for your help! > > I will go and raise it > Before you do that, can we see exactly what is the request.vars['id'] object? Based on the exception you are getting, it seems it is a list, in which case, there is a

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Francois Barnard
Thank you so much for your help! I will go and raise it On Thu, Feb 8, 2018 at 12:11 PM, Leonel Câmara wrote: > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://gi

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Leonel Câmara
This is a bug, please submit an issue in github. The problem is that your request.vars.id is not and instance of (int, long, str, unicodeT) The bug is in this line: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1369 To workaround is to get the record yourself. form = SQLFORM(db

[web2py] Re: Web2py and multiple controller

2018-02-08 Thread Leonel Câmara
I actually agree. Right now my "solution" is to put this in my controller file: def parent_controller(views_folder=None, pop_args_zero=True): if views_folder is None: views_folder = os.path.join(request.controller, request.function) def wrapper(action): def f(_action=actio

[web2py] Re: Web2py scheduler

2018-02-06 Thread Simona Chovancová
solved, ran worker in different application than the task was sent from On Tuesday, February 6, 2018 at 2:34:24 PM UTC+1, Simona Chovancová wrote: > > Hello, > > I'm having trouble using the scheduler. I have managed to set it up to > queue tasks and successfully complete them. Although, that onl

[web2py] Re: web2py modal forms

2018-02-05 Thread 黄祥
pls try e.g. *models/db.py* db.table.auth_user.comment = A(_class = "glyphicon glyphicon-plus-sign", **{"_data-toggle":"modal", "_data-target":"#modal_table_auth_user"} ) *controllers/default.py* def modal_auth_user(): table = db.auth_user target_response = '(function($) {$("#modal_auth_user").m

[web2py] Re: web2py gunicorn dockerfile

2018-02-04 Thread 黄祥
done best regards, stifan -- 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 this message because you are subscribed to the Google Groups "web

[web2py] Re: web2py gunicorn dockerfile

2018-02-03 Thread Massimo Di Pierro
Can I ask you to submit a PR to add the dockerfile to the web2py repo? On Saturday, 27 January 2018 07:12:26 UTC-6, 黄祥 wrote: > > want to share the docker stack recipe, if anyone interest perhaps i can pr > to the web2py repo or share it on this group > [stack] > $ ls | grep web2py > web2py-guni

[web2py] Re: web2py behind Apache with virtualhosts and SSL (SNI) leads to SSL_ERROR_RX_RECORD_TOO_LONG

2018-02-03 Thread David Zejda
Hi I found it. There was another host config in my setup with such a redirect: ServerName domainxx.com RedirectMatch permanent (.*) http://www.otherdomain.com$1 When I changed it to: ServerName domainxx.com RedirectMatch permanent (.*) http://www.otherdomain.com$1 other domains' S

[web2py] Re: web2py and 3rd Python script

2018-02-01 Thread Jim S
You could setup the scheduler to run your time consuming back-end tasks. http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler Then just send an email to the user when it is done. You can place your 3rd party code in the modules folder or just install as a regular Python packa

[web2py] Re: web2py compatibility for python3

2018-01-30 Thread Anthony
On Tuesday, January 30, 2018 at 6:24:27 PM UTC-5, Michael M wrote: > > Should this information be updated in "The Book"? > Yes. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] Re: web2py compatibility for python3

2018-01-30 Thread Michael M
Should this information be updated in "The Book"? On Tuesday, January 30, 2018 at 8:09:14 AM UTC-8, Anthony wrote: > > As of version 2.15, web2py does in fact support Python 3. > > On Tuesday, January 30, 2018 at 11:07:51 AM UTC-5, > narendr...@routemobile.com wrote: >> >> Hi, >> >> currently w

Re: [web2py] Re: web2py compatibility for python3

2018-01-30 Thread António Ramos
Another question and more important will web2py get some improvements/changes due to python 3.5 ,ex coroutines, asincio and others? regards António 2018-01-30 16:09 GMT+00:00 Anthony : > As of version 2.15, web2py does in fact support Python 3. > > > On Tuesday, January 30, 2018 at 11:07:51 AM

[web2py] Re: web2py compatibility for python3

2018-01-30 Thread Anthony
As of version 2.15, web2py does in fact support Python 3. On Tuesday, January 30, 2018 at 11:07:51 AM UTC-5, narendra.ku...@routemobile.com wrote: > > Hi, > > currently web2py did not support python3. > Please let me know, when web2py will support python 3? > > Regards > Narendra Kumar > > --

[web2py] Re: web2py IDE

2018-01-29 Thread Val K
Hi! Pyscripter + tricks like: if 0: from gluon import * request = current.request response = current.response session = current.session cache = current.cache T = current.T provide intellisense. For debugging try this: https://groups.google.com/forum/#!topic/web2py/3

[web2py] Re: web2py gunicorn dockerfile

2018-01-27 Thread 黄祥
want to share the docker stack recipe, if anyone interest perhaps i can pr to the web2py repo or share it on this group [stack] $ ls | grep web2py web2py-gunicorn-nginx web2py-rocket-nginx web2py-rocket-ssl-nginx web2py-rocket-ssl-nginx-db-adminer web2py-rocket-ssl-nginx-memcached web2py-rocket-s

Re: [web2py] Re: web2py IDE

2018-01-26 Thread Jim Steil
PyCharm Community is free. -Jim On Fri, Jan 26, 2018 at 12:57 PM, Andrea Fae' wrote: > Thanks a lot, but I'd like free IDE, without cost. > > > Il giorno venerdì 26 gennaio 2018 13:32:14 UTC+1, Jim S ha scritto: >> >> Great post Mirek! >> >> I can confirm that paid PyCharm does work better with

Re: [web2py] Re: web2py IDE

2018-01-26 Thread Andrea Fae'
Is there available a debugger too? Il giorno venerdì 26 gennaio 2018 20:04:42 UTC+1, Ramos ha scritto: > > for free > Sublime Text 3 + w2p plugin > > Work and gives you a web2py console and some other stuff > > Regards > > 2018-01-26 18:57 GMT+00:00 Andrea Fae' >: > >> Thanks a lot, but I'd like

Re: [web2py] Re: web2py IDE

2018-01-26 Thread António Ramos
for free Sublime Text 3 + w2p plugin Work and gives you a web2py console and some other stuff Regards 2018-01-26 18:57 GMT+00:00 Andrea Fae' : > Thanks a lot, but I'd like free IDE, without cost. > > > Il giorno venerdì 26 gennaio 2018 13:32:14 UTC+1, Jim S ha scritto: >> >> Great post Mirek! >

[web2py] Re: web2py IDE

2018-01-26 Thread Andrea Fae'
Thanks a lot, but I'd like free IDE, without cost. Il giorno venerdì 26 gennaio 2018 13:32:14 UTC+1, Jim S ha scritto: > > Great post Mirek! > > I can confirm that paid PyCharm does work better with web2py than the > Community version. What I like about PyCharm is that in addition to a > Python

[web2py] Re: web2py IDE

2018-01-26 Thread Jim S
Great post Mirek! I can confirm that paid PyCharm does work better with web2py than the Community version. What I like about PyCharm is that in addition to a Python IDE, you also get a good editor for HTML, javascript, CSS and a nice database editor if you're using the paid version. If not usi

[web2py] Re: web2py IDE

2018-01-25 Thread Mirek Zvolský
If you use a simple editor only, it is similar as the work with web2py integrated environment. You can just create and edit python files. Of course the suitable editor must be special for Python writting: It must at least convert the Tab into 4 spaces. And work with utf-8. If you want more, then

[web2py] Re: web2py IDE

2018-01-24 Thread Dave S
On Wednesday, January 24, 2018 at 1:28:05 PM UTC-8, Andrea Fae' wrote: > > Web2py integrated ide environment is not bad, but with limited debugging, > no intellisense and so on. > I'd like to know what is a completely free IDE for using with web2py. > Visual Studio Community? Visual Code Editor

[web2py] Re: web2py IDE

2018-01-24 Thread pbreit
If you just need code formatting/coloring a decent text editor works well enough: VS Code, Atom, Bracket Keep it simple. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] Re: web2py api call from angular 4

2018-01-22 Thread yogeshwar khalkar
Yes my angular app running on node.js server running on 4200 Virus-free. www.avast.com

[web2py] Re: web2py api call from angular 4

2018-01-22 Thread Dave S
On Monday, January 22, 2018 at 4:57:34 AM UTC-8, yogeshwar khalkar wrote: > > Please help me, > > > When I am try to login from angular 4 app to web2py rest api browser shows > error like > > OPTIONS http://127.0.0.1:8000/csautomation/user/login 405 (METHOD NOT > ALLOWED) > > *AND* > > Failed t

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Stodge
These are web services running on geographically separate servers. I'm hoping to prototype a single sign on service provider, and something like OpenID was one option. I just started looking into this. Thanks On Tuesday, 9 January 2018 19:20:40 UTC-5, Dave S wrote: > > > > On Tuesday, January 9

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
it works well, my bad, forgot about shell variable is translated when created file using cat thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Dave S
On Tuesday, January 9, 2018 at 12:26:03 PM UTC-8, Stodge wrote: > > That's a shame - I was just looking for a framework to prototype single > sign on for our website. > If you're primarily concerned about different web apps on the same server, would the CAS feature work for you? And web2py ca

Re: {Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2018-01-09 Thread Stodge
That's a shame - I was just looking for a framework to prototype single sign on for our website. On Tuesday, 5 December 2017 11:11:31 UTC-5, Carlos Cesar Caballero wrote: > > Thanks for your answer Massimo, I will study if is feasible to implement > that for this project, or I will use a 3rd par

[web2py] Re: web2py webfaction unable to upload

2018-01-09 Thread Paulo
If usefull for someone googling, found the problem: after upgrading Fedora, for some stupid reason it changed the user permissions of the folder /var/lib/nginx/tmp/uwsgi/ (or nginx changed how it works with uwsgi and and created it for 1st time, not sure, don't remember). A simple "sudo chown -

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks again alex, when executed same like previous tested in https://labs.play-with-docker.com, return an error (acceptable i think because the link and port provided is work (shown web2py welcome apps) ) *error traceback* PING 172.25.0.23 (172.25.0.23): 56 data bytes --- 172.25.0.23 ping stati

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
small fix - use dockerDNS 1 # run.sh docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pnginx --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pguni --format="{{.ID}}")) docker network rm w2pnet docker network create --subnet=172.25.0.0/16 w2pnet d

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks alex, tested in https://labs.play-with-docker.com, it works fine never thought to combine it with gunicorn and make nginx as a reverse proxy (correct me if i'm wrong, still not sure the different with forward proxy yet, hehe) and never thought to build some dockerfiles make it into 1 bash

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
four files in same directory 1 #guniDoc FROM python:2.7 RUN apt update && apt install -y unzip wget ENV PATH=/usr/local/bin:$PATH RUN pip install gunicorn RUN useradd -m -r web2py USER web2py WORKDIR /home/web2py RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \ unzip -o

[web2py] Re: web2py gunicorn dockerfile

2018-01-08 Thread 黄祥
trying with latest ubuntu and web2py/scripts/setup-web2py-ubuntu.sh return an error Failed to connect to bus: No such file or directory step i took echo '# Emperor uWSGI script description "uWSGI Emperor" start on runlevel [2345] stop on runlevel [06] ## #remove the comments in the next section t

[web2py] Re: web2py gunicorn dockerfile

2018-01-07 Thread 黄祥
is there any dockerfile that contain web2py with nginx ? thanks and best regards, stifan -- 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 thi

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread Alex Beskopilny
small fix 1 FROM python:2.7 RUN apt update && apt install -y unzip wget RUN /usr/local/bin/pip install gunicorn RUN groupadd -r web2py && useradd -m -r -g web2py web2py USER web2py WORKDIR /home/web2py RUN wget -c http://web2py.com/examples/static/web2py_src.zip && unzip -o web2py_src.zip && r

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread Alex Beskopilny
1 Dockerfile FROM python:2.7 RUN apt update && apt install -y unzip wget RUN /usr/local/bin/pip install gunicorn RUN groupadd -r web2py && useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && wget -c http://web2py.com/examples/static/web2py_src.zip && unzip -o web2py_src.zip &&

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread 黄祥
after reread and relearn your dockerfile again it works with some modification with python image (installed gunicorn from pip install not from apt install, and port set into 8000, port 80 not work) docker run -p 80:80 imageid [2018-01-07 01:02:10 +] [8] [INFO] Starting gunicorn 19.7.1 [2018-0

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread 黄祥
yes, it works when using os base image (tested using ubuntu (like in the first post), centos, debian, fedora), the problem occured when using python base image. the point is when using os base image, it took longer (to install prerequisites package like python curl, git, dll) than using python b

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread 黄祥
trying to modify but got another error *e.g.* *step i took on play-with-docker.com* cat < Dockerfile FROM python:2.7 RUN apt update && \ apt install -y unzip wget gunicorn RUN groupadd -r web2py && \ useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && \ wget -c http://web2py.com/

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread Alex Beskopilny
Hi set WORKDIR in Dockerfile .. WORKDIR /home/site/web2py EXPOSE 80 CMD . /home/.. .. docker run 3001:80 image-name On Friday, January 5, 2018 at 5:45:04 AM UTC+3, 黄祥 wrote: > > just wondering why gunicorn dockerfile with web2py/anyserver.py is not > work when use with python:2.7 ima

[web2py] Re: web2py 2.16.1 is OUT

2018-01-04 Thread tim . nyborg
My interim solution for computed fields is to set writable=False. It's fixed problems with form submission. On Tuesday, 2 January 2018 19:02:30 UTC, José Leite wrote: > > It seems that compute fields are not working anymore with web2py 2.16.1. > Can not generate thumbnails anymore. > > Is there

[web2py] Re: web2py 2.16.1 is OUT

2018-01-02 Thread José Leite
It seems that compute fields are not working anymore with web2py 2.16.1. Can not generate thumbnails anymore. Is there a fix for that? terça-feira, 14 de Novembro de 2017 às 05:59:52 UTC, Massimo Di Pierro escreveu: > > web2py 2.16.1 is OUT > > Lots of bugs fixes contributed by the community. Th

[web2py] Re: web2py GUI graph

2018-01-01 Thread Dave S
On Monday, July 31, 2017 at 1:49:36 AM UTC-7, Dave S wrote: > > In the web2py GUI, what does the "activity" graph show? > > In the case of interest, I'm running with Rocket on W10, and since only > the developer is accessing the machine, I know it's not showing pages > served. > > /dps > > I thi

[web2py] Re: Web2py and leaflet using postgresql as database

2017-12-23 Thread Paolo
Your postgres installation hasn't got postgis. Install/re-install postgis, then clean your postgres database, remove all files in the databases directory and try again. Paolo On Thursday, December 21, 2017 at 3:39:13 AM UTC+1, Gabriel Schubert wrote: > > Hello, > > > I'm trying to run this appl

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-08 Thread Dave S
On Friday, December 8, 2017 at 11:24:25 AM UTC-8, Ramos wrote: > > I like very much the framework http://deployd.com/ > > It produces and updates automatically according to our data model a js > file that is loaded to the user frontend and permits to deal with the > datamodel directly from the

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-08 Thread António Ramos
I like very much the framework http://deployd.com/ It produces and updates automatically according to our data model a js file that is loaded to the user frontend and permits to deal with the datamodel directly from the browser... This way there is no need to REST http://docs.deployd.com/docs/coll

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-07 Thread pbreit
Wouldn't this be just a matter of supplying a "welcome-spa" welcome app/starter with REST "on" and Vue-based (or whatever) views? This doesn't require any changes to core Web2py, does it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-07 Thread Richard Vézina
That why I think we should keep sqlhtml a live so we can choose to create forms/tags from server side when ever it makes sens... I use web2py HELPERS all the time as I find it cleaner to write than HTML despite it slower... Though, at some point server side is painful (for complex form or piece of

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-06 Thread Milton A
All the build tools are the hell. Not for a fullstack js programmer, but for us we use a better programming language for our tasks on server (better programming language is relative for what you need) but we need to use js on client because we can not use python. Those new build tools come to solv

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-06 Thread pbreit
How would the "Browser" install method work? Just a matter of adding those lines to layout.html? Possible to implement this without all the build tools? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-06 Thread Carlos Costa
This bootstrap-vue.js transparently integrated with web2py backend woud be a dream. IMO this would be half the web3py. 2017-12-04 11:42 GMT-02:00 : > Hi Massimo, I thought you might be interested in this: > https://bootstrap-vue.js.org/ > > Quite a new project, MIT license, currently under very

{Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2017-12-05 Thread Carlos Cesar Caballero Díaz
Thanks for your answer Massimo, I will study if is feasible to implement that for this project, or I will use a 3rd party provider. Greetings. El 02/12/17 a las 15:22, Massimo Di Pierro escribió: web2py can be used as Oauth/Open ID consumer but I do not believe anybody has written a provider

[web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-04 Thread tessercat845
Hi Massimo, I thought you might be interested in this: https://bootstrap-vue.js.org/ Quite a new project, MIT license, currently under very active development mainly by a Canadian and an Iranian. On Tuesday, November 14, 2017 at 12:36:52 PM UTC-7, Massimo Di Pierro wrote: > > This is fantastic

[web2py] Re: web2py OpenID or Oauth2 provider

2017-12-02 Thread Massimo Di Pierro
web2py can be used as Oauth/Open ID consumer but I do not believe anybody has written a provider app. On Wednesday, 29 November 2017 11:13:57 UTC-6, Carlos Cesar Caballero wrote: > > Hi, is out there a working web2py Oauth2 or OpenID provider > implementation? The Idea is to use an intranet web2

[web2py] Re: web2py 2.16.1 is OUT

2017-11-26 Thread icodk
I have a compute field (from the web2py book): Field('full_name',compute=lambda r: r['first_name']+' '+r['last_name']), as an extra field in the auth.settings.extra_fields['auth_user'] This worked fine in 2.14.06 but in version 2.16.1 it prevents the profile form to be submitted Any idea (l

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-11-24 Thread Richard Vézina
For me, having a good supported (backward) path to pick ractive/vue/angular (to big for my need) would be nice... Massimo's has made w3 if I recall, but I rapidly feel lost with ractive.js... I try vue.js and find it easier to pick it up. But there is a lot of boiler plate to implement to levrage

[web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-11-23 Thread Carlos A. Armenta Castro
Hi Val K, I believe the future of Web2Py would be: One back-end and so many flavors for the Front-End as Flask, Piramyds and Laravel frameworks are doing. My personal and particular experience using transpilers like rapydscript-ng or coffescript for a medium size project was very bad (maybe usi

<    1   2   3   4   5   6   7   8   9   10   >