[web2py] Anthony was right... web3py has a big naming conflict

2019-07-19 Thread Massimo Di Pierro
Anthony was right... web3py has a big naming conflict with web3py (python library for web3). I am considering renaming it. Not sure I want to start a competition here. For a name to be good I must own the domain and it must not be copyrighted. Not many options. Just heads up. Massimo --

Re: [web2py] Re: please help testing web3py

2019-07-19 Thread KLL
You can view it as a web3py app if you follow the try me from the github source. There are some failures with loading examples app and _scaffold app, but _documentation worked for me. http://127.0.0.1:8000/_documentation On Tuesday, July 16, 2019 at 9:48:14 AM UTC-4, Johann Spies wrote: > > >

[web2py] Web2Py and Angular 4,5,6,7,8... MIXED

2019-07-19 Thread irving navarro
any know how do that?,, wanna develop the view on Angular 7 and make web2py to backend.. any have some themplate ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Web2Py on IIS, multiple apps under virtual directories

2019-07-19 Thread Davidiam
Hello, I have setup Web2Py with IIS using fastcgi and I got the application running (currently testing using the Welcome app). In our project we will have multiple applications running parallel to each other, each under a separate application. To do this, we have created the following

[web2py] Web2Py and ldap integration

2019-07-19 Thread Davidiam
Hello, I have read and implemented the recipe for Windows active directory ldap integration with Web2Py ( http://www.web2py.com/books/default/chapter/29/09/access-control) and for the most part the documentation is clear except for the last bit where it refers to : from

[web2py] Re: Web2py Database Connection with SQL Server and Trusted Connection?

2019-07-19 Thread Massimo Di Pierro
Hello Costanza, sorry for the late reply. I am not too familiar with mssql but your database should be identified by a connection string also known as DSN https://www.connectionstrings.com/sql-server/ In web2py you would use: db = DAL('mssql://...') where ... is your dsn string. nas wrote:

[web2py] Re: Display a list in SQLFORM.grid

2019-07-19 Thread Massimo Di Pierro
SQLFORM.grid( maxtextlength=1e9) On Monday, 8 July 2019 15:21:30 UTC-7, Dave S wrote: > > > > On Thursday, July 4, 2019 at 11:45:48 PM UTC-7, Massimo Di Pierro wrote: >> >> Can you explain more in detail what you want to do? >> > > At the risk of demonstrating that I'm not a mind-reader, >

[web2py] DAL and temporary tables

2019-07-19 Thread Dave S
Does the DAL have any built-in support for temporary tables? I'm thinking that the best I can do here is to build the table inside my script or module (aka "model-less") and drop the table at the end. Do table files persist in "model-less"? There wouldn't be a conflict, though, any more

[web2py] Re: Linking multiple many to many relationships

2019-07-19 Thread Dave S
On Friday, July 19, 2019 at 8:34:04 AM UTC-7, Gavin Kenny wrote: > > > > On Friday, 19 July 2019 15:26:05 UTC+1, Leonel Câmara wrote: >> >> You need another table which is an answer table, the answers will have a >> reference to the question and the team that answered. >> > > Thank you, > > So

[web2py] Re: my grating help

2019-07-19 Thread Dave S
On Friday, July 19, 2019 at 6:45:42 AM UTC-7, Leonel Câmara wrote: > > I would check manually in the database if the table is there with the > structure defined in the model. If it is then do a fake migrate. If it's > not then delete the table file (you already did) and do a regular migrate. >

Re: [web2py] Error PIL path

2019-07-19 Thread Márcio Luis Dresch
#this is a copy from http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box #modules\smarthumb.py from gluon import current import os try: from PIL import Image except: import Image def SMARTHUMB(image, box, fit=True, name="thumb"): '''Downsample the image. @param

[web2py] Re: Sometging wrong with utf-8

2019-07-19 Thread Константин Комков
That error was created becouse in 'cuisines' table field NAME have charset 'NONE' and collate 'NONE'. > > >- > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Sometging wrong with utf-8

2019-07-19 Thread Константин Комков
rows = db( (db.recipes.ID_CUISINE==db.cuisines.id) ).select(db.recipes.ALL) db._lastsql >>> ('SELECT recipes.ID_CUISINE, recipes.DESCRIPTION, recipes.ID_AUTHOR, recipes.ID_CATEGORY, recipes.EXPIRATION_DATE, recipes.IMAGE FROM recipes, cuisines WHERE (recipes.ID_CUISINE =

[web2py] Re: Linking multiple many to many relationships

2019-07-19 Thread Gavin Kenny
On Friday, 19 July 2019 15:26:05 UTC+1, Leonel Câmara wrote: > > You need another table which is an answer table, the answers will have a > reference to the question and the team that answered. > Thank you, So to check my understanding, the Answer Table would have 3 fields, an answer field

[web2py] Re: Linking multiple many to many relationships

2019-07-19 Thread Leonel Câmara
You need another table which is an answer table, the answers will have a reference to the question and the team that answered. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: my grating help

2019-07-19 Thread Leonel Câmara
I would check manually in the database if the table is there with the structure defined in the model. If it is then do a fake migrate. If it's not then delete the table file (you already did) and do a regular migrate. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Too much sessions...

2019-07-19 Thread Gaël Princivalle
Hi Zoltán. python-six module is installed. 0_memcache.py is like in the documentation: from gluon.contrib.memcache import MemcacheClient memcache_servers = ['127.0.0.1:11211'] cache.memcache = MemcacheClient(request, memcache_servers) cache.ram = cache.disk = cache.memcache I've added this in

[web2py] Re: Many apps in a single app.

2019-07-19 Thread Daniel Guilhermino
Leonel, very interesting this possibility, it is possible to avoid rewriting enough thing, thanks for sharing! Em terça-feira, 9 de julho de 2019 18:56:35 UTC-3, Leonel Câmara escreveu: > > This looks good, if you want to take it a step further and have something > like

[web2py] Linking multiple many to many relationships

2019-07-19 Thread Gavin Kenny
Hi, This is a bit of a noob question. I run a club for children, where we have a quiz night and I would like to develop a web2py app to speed up the scoring and create a leaderboard. I would like to use web2py as I love the elegant design, the portability and the focus on security, but I am